/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #101622;
    --bg-secondary: #1a2235;
    --bg-card: #1e2a3f;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-yellow: #FDD856;
    --accent-pink: #FF2272;
    --accent-green: #4CAF50;
    --accent-blue: #039BE5;
    --accent-purple: #C856FD;
    --accent-red: #FF3A3A;
    --radius: 20px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    background-image: url("bg-pattern.svg");
    background-repeat: repeat;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(16, 22, 34, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo__icon {
    font-size: 32px;
}

.logo__img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo__text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 32px;
}

.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--text-primary);
}

.header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__cta {
    font-size: 14px;
    padding: 10px 24px;
}

.btn--support {
    background: #4CAF50;
    color: #ffffff;
    gap: 6px;
    font-size: 14px;
    padding: 10px 24px;
    white-space: nowrap;
}

.btn--support:hover {
    background: #43A047;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.3);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-switcher__btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-switcher__flag {
    font-size: 18px;
    line-height: 1;
}

.lang-switcher__arrow {
    transition: transform 0.2s;
    opacity: 0.6;
}

.lang-switcher__dropdown.open + .lang-switcher__btn .lang-switcher__arrow,
.lang-switcher:has(.lang-switcher__dropdown.open) .lang-switcher__arrow {
    transform: rotate(180deg);
}

.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.lang-switcher__dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.lang-switcher__option:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
}

.lang-switcher__option.active {
    background: rgba(253, 216, 86, 0.1);
    color: var(--accent-yellow);
}

.lang-switcher__option span {
    font-size: 18px;
    line-height: 1;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
}

.btn--primary {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #ffffff;
    padding: 12px 28px;
    font-size: 15px;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(229, 57, 53, 0.4);
}

.btn--outline {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
}

.btn--outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(67, 160, 71, 0.4);
}

.btn--telegram {
    background: #2AABEE;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 15px;
    gap: 8px;
}

.btn--telegram:hover {
    background: #229ED9;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(42, 171, 238, 0.3);
}

.btn__icon {
    flex-shrink: 0;
}

.btn--lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 16px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
}

.hero__glow--1 {
    width: 500px;
    height: 500px;
    background: var(--accent-yellow);
    top: -100px;
    right: -100px;
    opacity: 0.15;
}

.hero__glow--2 {
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    bottom: -50px;
    left: -100px;
    opacity: 0.1;
}

.hero__inner {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #FDD856 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__columns {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero__column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 0 1 240px;
}

.hero__column .btn {
    width: 100%;
}

.hero__telegram {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.hero__logo {
    display: flex;
    justify-content: center;
}

.hero__logo-img {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.4));
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-yellow);
}

.hero__stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== Section Titles ===== */
.section__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section__subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 56px;
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    border-radius: var(--radius);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    border-radius: var(--radius);
}

.feature-card--yellow { background: linear-gradient(135deg, #7a6210, #5c4a0c); border: 1px solid #8a7018; }
.feature-card--pink { background: linear-gradient(135deg, #6e1035, #4e0c26); border: 1px solid #7e1440; }
.feature-card--green { background: linear-gradient(135deg, #1a4d1e, #123812); border: 1px solid #225828; }
.feature-card--blue { background: linear-gradient(135deg, #054a75, #03365a); border: 1px solid #065888; }
.feature-card--purple { background: linear-gradient(135deg, #501668, #3a1050); border: 1px solid #5e1a78; }
.feature-card--red { background: linear-gradient(135deg, #701818, #500e0e); border: 1px solid #802020; }

.feature-card__icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq {
    padding: 100px 0;
}

.faq__list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: color 0.2s;
}

.faq__question:hover {
    color: var(--accent-yellow);
}

.faq__arrow {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--text-secondary);
}

.faq__item.active .faq__arrow {
    transform: rotate(180deg);
    color: var(--accent-yellow);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.faq__answer a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: opacity 0.2s;
}

.faq__answer a:hover {
    opacity: 0.8;
}

.faq__item.active .faq__answer {
    max-height: 500px;
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 16px;
    max-width: 300px;
    line-height: 1.6;
}

.footer__heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--text-primary);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    text-align: center;
}

.footer__bottom p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(16, 22, 34, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav.open {
        display: flex;
    }

    .nav__link {
        font-size: 18px;
    }

    .header__right {
        gap: 10px;
    }

    .header__cta {
        display: none;
    }

    .btn--support {
        padding: 6px 10px;
        font-size: 11px;
    }

    .logo__text {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 130px 0 70px;
    }

    .hero__title {
        letter-spacing: -1px;
    }

    .hero__stats {
        gap: 24px;
    }

    .hero__stat-value {
        font-size: 22px;
    }

    .hero__columns {
        flex-direction: column;
        align-items: center;
    }

    .hero__column {
        width: 100%;
        max-width: 320px;
    }

    .hero__logo-img {
        width: 200px;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .features, .faq {
        padding: 60px 0;
    }

    .section__subtitle {
        margin-bottom: 36px;
    }
}