/* --- ПОДКЛЮЧЕНИЕ ШРИФТОВ --- */
@font-face {
    font-family: 'DXRigraf';
    src: url('fonts/DXRigraf-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'DXRigraf Expanded';
    src: url('fonts/DXRigraf-SemiBoldExpanded.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

/* --- ОСНОВНЫЕ ПЕРЕМЕННЫЕ И СТИЛИ --- */
:root {
    --purple: #6a11cb;
    --pink: #ff4b75;
    --pink-light: #FF8FAB;
    --blue: #2575fc;
    --lavender: #c792ea;
    --lavender-light: #E0C3FC;
    --bg-color-start: #0f0c29;
    --bg-color-mid: #302b63;
    --bg-color-end: #24243e;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --primary-text: #f0f0f0;
    --secondary-text: #c0c0c0;
    --font-family: 'DXRigraf', sans-serif;
    /* Цвета для иконок */
    --icon-color-1: #2699f7;
    --icon-color-2-dark: #008ccf;
    --icon-color-2-light: #00aeef;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--primary-text);
    overflow-x: hidden;
    background: linear-gradient(-45deg, var(--bg-color-start), var(--bg-color-mid), var(--bg-color-end));
    background-size: 400% 400%;
    animation: animated-gradient 15s ease infinite;
}

@keyframes animated-gradient {
    0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}

/* --- ДИНАМИЧЕСКИЙ ФОН И ФИГУРЫ --- */
.shape-blob {
    background: linear-gradient(180deg, var(--purple) 0%, var(--pink) 100%);
    height: 300px; width: 300px; border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: transform 18s ease-in-out infinite both alternate;
    opacity: 0.5; position: fixed; z-index: -2; filter: blur(70px);
}
.shape-blob.one {
    background: linear-gradient(180deg, var(--blue) 0%, var(--lavender) 100%);
    height: 400px; width: 400px; top: -150px; right: -150px; animation-duration: 20s;
}
.shape-blob.two {
    height: 250px; width: 250px; bottom: -100px; left: -100px; animation-duration: 16s;
}
@keyframes transform {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    14% { border-radius: 40% 60% 50% 50% / 30% 60% 40% 60%; }
    28% { border-radius: 60% 40% 50% 50% / 40% 40% 60% 60%; }
    56% { border-radius: 60% 40% 40% 60% / 30% 70% 30% 70%; }
    84% { border-radius: 40% 60% 40% 60% / 50% 50% 50% 50%; }
}

/* --- АНИМАЦИЯ ПАДАЮЩИХ ИКОНОК --- */
.falling-coins-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; overflow: hidden;
}
@keyframes drift-fall {
    0% { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.26; } /* Заметность увеличена */
    50% { transform: translateY(50vh) translateX(20px) rotate(180deg); }
    90% { opacity: 0.26; } /* Заметность увеличена */
    100% { transform: translateY(110vh) translateX(-20px) rotate(720deg); opacity: 0; }
}
.coin {
    position: absolute;
    width: 68px; /* Базовый размер увеличен на 50% */
    height: 68px; /* Базовый размер увеличен на 50% */
    background-size: contain;
    background-repeat: no-repeat;
    animation: drift-fall 10s linear infinite;
}
/* --- ИЗМЕНЕННЫЙ КОД С 7 ИКОНКАМИ --- */
.coin:nth-child(7n+1) { background-image: url('icons/1_ico.svg'); }
.coin:nth-child(7n+2) { background-image: url('icons/2_ico.svg'); }
.coin:nth-child(7n+3) { background-image: url('icons/3_ico.svg'); }
.coin:nth-child(7n+4) { background-image: url('icons/4_ico.svg'); }
.coin:nth-child(7n+5) { background-image: url('icons/5_ico.svg'); }
.coin:nth-child(7n+6) { background-image: url('icons/6_ico.svg'); }
.coin:nth-child(7n+7) { background-image: url('icons/7_ico.svg'); } /* Новая иконка */

.coin:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: -5s; width: 57px; height: 57px; }
.coin:nth-child(2) { left: 20%; animation-duration: 8s; animation-delay: -2s; }
.coin:nth-child(3) { left: 30%; animation-duration: 15s; animation-delay: -10s; width: 45px; height: 45px; }
.coin:nth-child(4) { left: 40%; animation-duration: 10s; animation-delay: -1s; }
.coin:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: -7s; width: 78px; height: 78px; }
.coin:nth-child(6) { left: 60%; animation-duration: 9s; animation-delay: -4s; }
.coin:nth-child(7) { left: 70%; animation-duration: 11s; animation-delay: -8s; width: 50px; height: 50px; }
.coin:nth-child(8) { left: 80%; animation-duration: 14s; animation-delay: 0s; }
.coin:nth-child(9) { left: 90%; animation-duration: 7s; animation-delay: -3s; }
.coin:nth-child(10) { left: 5%; animation-duration: 16s; animation-delay: -12s; width: 41px; height: 41px; }
.coin:nth-child(11) { left: 85%; animation-duration: 12s; animation-delay: -9s; width: 63px; height: 63px; }
.coin:nth-child(12) { left: 45%; animation-duration: 10s; animation-delay: -6s; }
.coin:nth-child(13) { left: 25%; animation-duration: 13s; animation-delay: -3s; width: 55px; height: 55px; } /* Новый стиль */


/* --- ОСНОВНОЙ КОНТЕЙНЕР И СЕКЦИИ --- */
.container {
    max-width: 700px; margin: 0 auto; padding: 3rem 1.5rem;
    position: relative; z-index: 1;
}
.hero-section { text-align: center; padding: 0 0 3rem 0; }
.footer-section { text-align: center; padding: 3rem 0; }
.footer-section h2 { margin-bottom: 10px; }
.hero-section p, .footer-section p {
    font-size: clamp(1rem, 4vw, 1.2rem); max-width: 500px; margin: 0 auto 1.5rem auto;
    color: var(--secondary-text); line-height: 1.6;
}

/* --- СТИЛИ ДЛЯ БЕГУЩЕЙ СТРОКИ --- */
.marquee-container {
    width: 100vw; position: relative; left: 50%; transform: translateX(-50%);
    overflow: hidden; padding: 1.5rem 0; margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(5px);
}
.marquee-content {
    display: flex; align-items: center; width: fit-content;
    animation: scroll-marquee 10s linear infinite;
}
@keyframes scroll-marquee {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}
.marquee-text {
    font-family: 'DXRigraf Expanded', sans-serif;
    font-size: clamp(2rem, 6vw, 3rem); font-weight: 600;
    white-space: nowrap; padding: 0 1rem;
    color: var(--primary-text);
}
.marquee-icon {
    width: clamp(2.8rem, 7vw, 3.5rem);
    height: auto;
    margin: 0 0.5rem;
    flex-shrink: 0;
}
.icon-style-1 path { fill: var(--icon-color-1); }
.icon-style-2 path:nth-child(1) { fill: var(--icon-color-2-light); }
.icon-style-2 path:nth-child(2) { fill: var(--icon-color-2-dark); }

/* --- СТИЛИ АККОРДЕОНА --- */
.accordion-section { display: flex; flex-direction: column; gap: 1rem; }
details {
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    overflow: hidden; transition: background-color 0.3s ease;
}
details[open] { background: rgba(255, 255, 255, 0.15); }
summary {
    display: flex; align-items: center; padding: 1.25rem; cursor: pointer;
    list-style: none; position: relative;
}
summary::-webkit-details-marker { display: none; }
/** summary:hover { background: rgba(255, 255, 255, 0.05); } **/

.summary-icon { width: 32px; height: 32px; margin-right: 1rem; flex-shrink: 0; }
.summary-icon svg { width: 100%; height: 100%; stroke: var(--lavender); }
.summary-title { font-size: 1.1rem; font-weight: 600; }
.summary-chevron {
    margin-left: auto; width: 24px; height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    transition: transform 0.3s ease;
}
details[open] > summary .summary-chevron { transform: rotate(180deg); }

/* --- ФОРМАТИРОВАНИЕ ТЕКСТА ВНУТРИ --- */
.details-content {
    padding: 0 1.25rem 1.25rem 1.25rem; color: #e0e0e0;
    font-weight: 600; line-height: 1.7;
}
.details-content h4 {
    font-size: 1rem; color: var(--primary-text);
    margin: 1.5rem 0 0.75rem; font-weight: 600;
    padding-left: 1rem; border-left: 4px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to bottom, var(--lavender), var(--pink));
}
.details-content > h4:first-of-type {
    margin-top: 0;
}
.details-content p { margin-bottom: 1rem; }
.details-content p:last-child { margin-bottom: 0; }
.details-content strong, .details-content b { color: #fff; font-weight: 600; }
.details-content ul { list-style: none; padding-left: 0; }
.details-content ul li { position: relative; padding-left: 25px; margin-bottom: 0.5rem; }
.details-content ul li::before {
    content: '•'; color: var(--lavender); font-size: 1.5rem; line-height: 1;
    position: absolute; left: 5px; top: 1px;
}
.highlight-box { padding: 1rem; margin: 1rem 0; border-radius: 8px; border-left: 4px solid; }
.highlight-box.warning { background-color: rgba(252, 161, 38, 0.1); border-color: #fca126; }
.highlight-box.danger { background-color: rgba(220, 53, 69, 0.1); border-color: #dc3545; }
.highlight-box.info { background-color: rgba(13, 202, 240, 0.1); border-color: #0dcaf0; }

/* --- АНИМАЦИЯ ПРОРИСОВКИ SVG --- */
.draw-icon.is-drawing svg path,
.draw-icon.is-drawing svg circle,
.draw-icon.is-drawing svg line,
.draw-icon.is-drawing svg polyline {
    stroke-dasharray: 500; stroke-dashoffset: 500; animation: draw 1.5s ease-out forwards;
}
.draw-icon.is-drawing svg *:nth-child(2) { animation-delay: 0.2s; }
.draw-icon.is-drawing svg *:nth-child(3) { animation-delay: 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --- СТИЛИ ДЛЯ ЧЕКБОКСА И КНОПКИ --- */
.agreement-container {
    display: flex; justify-content: flex-start;
    max-width: 450px; margin-left: auto; margin-right: auto;
    margin-bottom: 1.5rem;
}
.custom-checkbox-label {
    display: flex; align-items: center; cursor: pointer; color: var(--secondary-text);
    transition: color 0.3s ease; font-weight: 600; text-align: left;
}
.custom-checkbox-label:hover { color: var(--primary-text); }
.custom-checkbox-label input[type="checkbox"] { display: none; }
.custom-checkbox {
    width: 34px; height: 34px;
    border: 2px solid var(--glass-border); border-radius: 8px;
    margin-right: 12px; display: flex; align-items: center; justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease; flex-shrink: 0;
}
.custom-checkbox::after {
    content: '';
    width: 17px; height: 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
    opacity: 0; transform: scale(0.5); transition: opacity 0.3s ease, transform 0.3s ease;
}
.custom-checkbox-label input:checked + .custom-checkbox { background-color: var(--blue); border-color: var(--blue); }
.custom-checkbox-label input:checked + .custom-checkbox::after { opacity: 1; transform: scale(1); }

.join-button {
    font-family: var(--font-family);
    border: none; border-radius: 12px; padding: 1rem 2rem;
    font-size: 1.1rem; font-weight: 600; color: white;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; position: relative; transition: all 0.3s ease;
    width: 100%; max-width: 450px; margin-top: 20px;
}
.join-button span, .join-button svg { z-index: 1; }
.join-button:disabled {
    background: #4A4A5A; color: #9090A0; cursor: not-allowed; box-shadow: none;
}
.join-button:disabled svg path {
    stroke: #9090A0;
}
.join-button:not(:disabled) {
    background: linear-gradient(45deg, var(--purple), var(--blue));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.join-button:not(:disabled):hover {
    transform: translateY(-2px); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}
.join-button:not(:disabled)::before {
    content: ''; position: absolute; z-index: 0; left: 50%; top: 50%;
    transform: translateX(-50%) translateY(-50%); display: block;
    width: 100%; height: 100%; background: transparent; border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: sonar-pulse-button 2.5s infinite;
}
@keyframes sonar-pulse-button {
    0% { transform: translateX(-50%) translateY(-50%) scale(1); opacity: 0.6; }
    100% { transform: translateX(-50%) translateY(-50%) scale(1.2); opacity: 0; }
}

/* --- АНИМАЦИЯ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
details.reveal:nth-of-type(2) { transition-delay: 0.1s; }
details.reveal:nth-of-type(3) { transition-delay: 0.2s; }
details.reveal:nth-of-type(4) { transition-delay: 0.3s; }
details.reveal:nth-of-type(5) { transition-delay: 0.4s; }