/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a2233;
    background: #fff;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

:root {
    --navy: #0b1c3f;
    --navy-2: #142a55;
    --accent: #e63946;
    --accent-2: #ff5a67;
    --muted: #6b7688;
    --line: #e6eaf2;
    --bg-soft: #f5f7fb;
    --radius: 14px;
    --shadow: 0 18px 50px -20px rgba(11, 28, 63, .35);
    --max: 1200px;
    --header-h: 72px;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 110px 0; }
.section--dark {
    background: linear-gradient(180deg, #0b1c3f 0%, #0a1731 100%);
    color: #fff;
}

.section__head { max-width: 720px; margin-bottom: 56px; }
.section__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section__title {
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.section__sub { color: var(--muted); font-size: 17px; margin: 0; }
.section--dark .section__sub { color: rgba(255,255,255,.7); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    white-space: nowrap;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 14px 30px -10px rgba(230,57,70,.7);
}
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); }

.btn--outline {
    border: 1.5px solid rgba(255,255,255,.5);
    color: #fff;
}
.btn--outline:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }

/* Кнопка "Войти" в шапке — контрастная белая */
.btn--ghost {
    padding: 10px 22px;
    background: #ffffff;
    border: 1.5px solid #ffffff;
    color: var(--navy);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
}
.btn--ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Когда шапка становится светлой — инвертируем, чтобы не пропала на белом */
.header--scrolled .btn--ghost,
.header--solid .btn--ghost {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    box-shadow: none;
}
.header--scrolled .btn--ghost:hover,
.header--solid .btn--ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
}



.btn--full { width: 100%; }

/* ============ HEADER ============ */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header--scrolled {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px -12px rgba(11,28,63,.25);
}
.header--solid {
    position: static;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__text { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.header--scrolled .logo__text,
.header--solid .logo__text { color: var(--navy); }
.logo__text span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    position: relative;
    transition: color .2s ease;
}
.header--scrolled .nav__link,
.header--solid .nav__link { color: var(--navy); }
.nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width .3s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 8px; }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;                 /* ← было center */
    padding: calc(var(--header-h) + 60px) 0 80px; /* ← запас сверху и снизу */
    color: #fff;
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.08) translateY(0); }
    to   { transform: scale(1.16) translateY(-14px); }
}
.hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(8,17,38,.92) 0%, rgba(8,17,38,.7) 45%, rgba(8,17,38,.35) 100%),
        radial-gradient(1200px 500px at 80% 40%, rgba(230,57,70,.25), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 720px; }

.hero__badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}
.hero__title {
    font-size: clamp(32px, 5vw, 62px);
    line-height: 1.06;
    letter-spacing: -.025em;
    font-weight: 800;
    margin: 0 0 22px;
}
.hero__title span {
    background: linear-gradient(90deg, var(--accent-2), #ffb4b9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__text {
    font-size: 18px;
    color: rgba(255,255,255,.82);
    max-width: 600px;
    margin: 0 0 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    list-style: none;
    padding: 26px 0 0;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,.16);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.hero__stats span { font-size: 13px; color: rgba(255,255,255,.65); }

.hero__scroll {
    position: absolute;
    left: 50%; bottom: 26px;
    transform: translateX(-50%);
    width: 26px; height: 44px;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 999px;
    z-index: 2;
}
.hero__scroll span {
    position: absolute;
    left: 50%; top: 8px;
    width: 4px; height: 8px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0%   { opacity: 0; transform: translate(-50%, 0); }
    40%  { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ============ ABOUT ============ */
.about__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 70px;
    align-items: center;
}
.about__media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.about__media img { width: 100%; height: 520px; object-fit: cover; transition: transform .8s ease; }
.about__media:hover img { transform: scale(1.05); }
.about__badge {
    position: absolute;
    left: 24px; bottom: 24px;
    background: rgba(255,255,255,.95);
    color: var(--navy);
    padding: 14px 20px;
    border-radius: 12px;
    display: flex; flex-direction: column;
    box-shadow: 0 14px 30px -12px rgba(0,0,0,.4);
}
.about__badge strong { font-size: 22px; }
.about__badge span { font-size: 12px; color: var(--muted); }

.about__content p { color: var(--muted); margin: 0 0 16px; }
.about__content .btn { margin-top: 12px; }

/* ============ ADVANTAGES ============ */
.advantages { background: var(--bg-soft); }
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.advantage {
    background: #fff;
    border-radius: var(--radius);
    padding: 34px 28px;
    border: 1px solid var(--line);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.advantage:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.advantage__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid; place-items: center;
    color: var(--navy);
    margin: 0 auto 22px;    /* ← центрируем по горизонтали */
    transition: color .35s ease, border-color .35s ease, background .35s ease, transform .35s ease;
}
.advantage__icon svg { display: block; }

/* При наведении на карточку — иконка «оживает» */
.advantage:hover .advantage__icon {
    color: var(--accent);
    border-color: rgba(230, 57, 70, .35);
    background: #fff5f6;
    transform: translateY(-2px);
}
.advantage__title { font-size: 18px; margin: 0 0 10px; font-weight: 700; }
.advantage__text { color: var(--muted); font-size: 15px; margin: 0; }

/* ============ COLLECTIONS ============ */
.collections__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.collection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 26px 24px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    font-weight: 700;
    font-size: 17px;
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.collection:hover {
    transform: translateY(-6px);
    background: rgba(230,57,70,.18);
    border-color: rgba(230,57,70,.55);
}
.collection__arrow {
    font-size: 20px;
    transition: transform .3s ease;
}
.collection:hover .collection__arrow { transform: translateX(6px); }

/* ============ JOIN ============ */
.join__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}
.join__content p { color: var(--muted); margin: 0 0 20px; }
.join__list {
    list-style: none;
    padding: 0; margin: 0;
}
.join__list li {
    position: relative;
    padding: 10px 0 10px 32px;
    color: var(--navy);
    font-weight: 600;
}
.join__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 18px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--accent);
}

.join__form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px;
    box-shadow: var(--shadow);
}
.join__form h3 { margin: 0 0 22px; font-size: 20px; }
.join__form label { display: block; margin-bottom: 16px; }
.join__form label span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}
.join__form input,
.join__form textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font: inherit;
    color: var(--navy);
    background: #fbfcfe;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.join__form input:focus,
.join__form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(230,57,70,.1);
}
.join__note { font-size: 12px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.join__note a { color: var(--accent); text-decoration: underline; }

/* ============ CONTACTS ============ */
.contacts__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 70px;
}
.contacts__lead { color: rgba(255,255,255,.7); margin: 0 0 30px; }
.contacts__list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 22px 30px;
}
.contacts__list li span {
    display: block;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 4px;
}
.contacts__list li a,
.contacts__list li { color: #fff; font-weight: 600; }
.contacts__list li a:hover { color: var(--accent-2); }

.contacts__col h3 { margin: 0 0 20px; font-size: 20px; }
.login__form label { display: block; margin-bottom: 16px; }
.login__form span {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.6);
    margin-bottom: 6px;
}
.login__form input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: #fff;
    font: inherit;
    transition: border-color .2s ease, background .2s ease;
}
.login__form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,.1);
}
.contacts__socials {
    display: flex; gap: 20px;
    margin-top: 24px;
    font-size: 14px;
}
.contacts__socials a {
    color: rgba(255,255,255,.7);
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.contacts__socials a:hover { color: #fff; border-color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
    background: #060e1f;
    color: rgba(255,255,255,.7);
    padding: 34px 0;
}
.footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 0;
    font-size: 13px;
}
.footer__legal a {
    color: rgba(255,255,255,.55);
    transition: color .2s;
}
.footer__legal a:hover { color: #fff; }

.footer__copy {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    color: rgba(255,255,255,.45);
}
.footer__brand {
    display: flex; align-items: center; gap: 12px;
    color: #fff;
}
.footer__brand strong { display: block; font-size: 16px; }
.footer__brand span { font-size: 13px; color: rgba(255,255,255,.55); }

.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { font-size: 14px; transition: color .2s; }
.footer__nav a:hover { color: #fff; }

.footer__copy { font-size: 13px; }

/* ============ LEGAL ============ */
.legal { padding: 60px 0 100px; }
.legal__inner { max-width: 820px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -.02em; }
.legal__date { color: var(--muted); margin: 0 0 34px; }
.legal h2 { font-size: 20px; margin: 34px 0 12px; }
.legal p { color: #303a4d; margin: 0 0 14px; }
.legal__foot { margin-top: 44px; color: var(--muted); }

/* ============ ANIMATIONS ============ */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--d, 0s);
}
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-animate] { opacity: 1; transform: none; }
}

/* ============ BURGER & MOBILE ============ */
.burger {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.burger span {
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s, background .3s;
}
.header--scrolled .burger span,
.header--solid .burger span { background: var(--navy); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
    .section { padding: 80px 0; }
    .about__inner,
    .join__inner,
    .contacts__inner { grid-template-columns: 1fr; gap: 40px; }
    .about__media img { height: 400px; }
    .contacts__list { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .burger { display: flex; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(14px);
        padding: 16px 24px 28px;
        box-shadow: 0 20px 40px -20px rgba(11,28,63,.3);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: transform .3s ease, opacity .3s ease;
    }
    .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav__link { color: var(--navy) !important; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav__cta {
        margin: 16px 0 0;
        align-self: flex-start;
        background: var(--navy) !important;
        border-color: var(--navy) !important;
        color: #fff !important;
    }
    .nav__cta:hover {
        background: var(--accent) !important;
        border-color: var(--accent) !important;
    }
    .hero {
        min-height: 100vh;          /* было 90vh */
        padding: calc(var(--header-h) + 40px) 0 90px; /* верх под шапку, низ с запасом */
        align-items: flex-start;
        height: auto;
    }
    .hero__inner { padding-top: 8px; }

    .hero__content { max-width: 100%; }

    .hero__badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 18px;
    }
    .hero__title { font-size: clamp(28px, 8vw, 40px); margin-bottom: 16px; }
    .hero__text { font-size: 16px; margin-bottom: 26px; }
    .hero__actions { gap: 10px; margin-bottom: 34px; }
    .hero__actions .btn { padding: 12px 22px; font-size: 14px; }

    /* Статистика: две колонки, нормальные отступы от низа */
    .hero__stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding-top: 22px;
        margin-bottom: 30px;   /* ← отступ снизу, чтобы не липло к краю */
    }
    .hero__stats strong { font-size: 20px; }
    .hero__stats span { font-size: 12px; line-height: 1.3; }

    /* Стрелка скролла — прячем на мобильном, мешает */
    .hero__scroll { display: none; }
    
    .footer__top {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    }
    .footer__legal {
    flex-direction: column;
    gap: 10px;
    }
    .footer__copy { text-align: left; }
}

@media (max-width: 480px) {
    .hero { padding-bottom: 70px; }
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 20px;
    }
}


/* ============ КОМПАКТНАЯ ВЫСОТА ЭКРАНА (десктоп) ============ */
@media (min-width: 821px) and (max-height: 820px) {
    .hero {
        padding: calc(var(--header-h) + 30px) 0 50px;
    }
    .hero__badge { margin-bottom: 14px; }
    .hero__title {
        font-size: clamp(30px, 3.6vw, 46px);
        margin-bottom: 16px;
    }
    .hero__text {
        font-size: 16px;
        margin-bottom: 24px;
        max-width: 560px;
    }
    .hero__actions { margin-bottom: 28px; }
    .hero__stats {
        padding-top: 18px;
        gap: 32px;
    }
    .hero__stats strong { font-size: 22px; }
    .hero__scroll { display: none; }   /* мешает на низких экранах */
}

@media (min-width: 821px) and (max-height: 680px) {
    .hero {
        padding: calc(var(--header-h) + 16px) 0 32px;
    }
    .hero__badge { display: none; }    /* самое первое, что убираем */
    .hero__title {
        font-size: clamp(26px, 3vw, 36px);
        margin-bottom: 12px;
    }
    .hero__text {
        font-size: 15px;
        margin-bottom: 18px;
        max-width: 520px;
    }
    .hero__actions { margin-bottom: 20px; }
    .hero__stats {
        padding-top: 14px;
        gap: 26px;
    }
    .hero__stats strong { font-size: 19px; }
    .hero__stats span { font-size: 12px; }
}

/* ============ JOIN / STATUS ============ */
.join__status {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}
.join__status.is-ok {
    background: #e6f6ee;
    color: #1e7a4d;
    border: 1px solid #b8e6cc;
}
.join__status.is-err {
    background: #fff0f1;
    color: #b31f2a;
    border: 1px solid #f8d7db;
}


.contacts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
    .contacts__list { grid-template-columns: 1fr; }
}