@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* ===== ТОКЕНЫ ===== */
:root {
    --v1: #1e0a52;
    --v2: #4c1d95;
    --v3: #6d28d9;
    --v4: #ede9fe;
    --amber: #f59e0b;
    --amber-d: #d97706;
    --green: #10b981;
    --red: #ef4444;
    --bg: #ffffff;
    --bg2: #f8f5ff;
    --text: #18122b;
    --text2: #6b7280;
    --border: #e8e0ff;
    --sh-sm: 0 2px 8px rgba(76,29,149,.07);
    --sh-md: 0 10px 36px rgba(76,29,149,.12);
}

/* ===== СБРОС ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-width: 320px; overflow-x: hidden; color: var(--text);
       background: var(--bg); font-family: 'Inter', Arial, sans-serif;
       font-size: 15px; line-height: 1.6; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
section { scroll-margin-top: 74px; }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* ===== HEADER ===== */
.header {
    position: sticky; top: 0; z-index: 1000;
    height: 74px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}
.header__container { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo {
    flex-shrink: 0;
}
.logo__img {
    height: 48px;
    width: auto;
    display: block;
    border-radius: 8px;
}
.navigation { display: flex; align-items: center; gap: 4px; }
.navigation__link {
    position: relative; padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--text2);
    transition: color .2s, background .2s;
}
.navigation__link:hover  { color: var(--v2); background: var(--v4); }
.navigation__link.active { color: var(--v2); background: var(--v4); font-weight: 700; }
.navigation__link.active::after {
    content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px; border-radius: 2px; background: var(--amber);
}
.header__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__phone { white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--v2); }
.socials { display: flex; align-items: center; gap: 6px; }
.social-link {
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 10px; border: 1px solid var(--border); background: var(--bg2);
    transition: border-color .2s, transform .2s;
}
.social-link img { width: 22px; height: 22px; object-fit: contain; }
.social-link:hover { border-color: var(--v2); transform: translateY(-2px); }

/* ===== КНОПКИ ===== */
.button {
    display: inline-flex; min-height: 52px; padding: 0 28px;
    align-items: center; justify-content: center;
    border-radius: 999px; background: var(--amber);
    color: #1a0a00; font-size: 14px; font-weight: 700;
    box-shadow: 0 4px 18px rgba(245,158,11,.35);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { background: var(--amber-d); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,158,11,.45); }
.button:active { transform: scale(.97); }
.button--small { min-height: 38px; padding: 0 16px; font-size: 12px; }

/* ===== HERO ===== */
.hero {
    position: relative; overflow: hidden;
    padding: 80px 0 0;
    background: linear-gradient(130deg, #1a0645 0%, var(--v2) 50%, var(--v3) 100%);
}
.hero__bg-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__orb {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: .35;
}
.hero__orb--1 { width: 520px; height: 520px; top: -160px; right: -80px;
                background: radial-gradient(circle, #f59e0b 0%, transparent 70%); }
.hero__orb--2 { width: 380px; height: 380px; bottom: 60px; left: -60px;
                background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); }
.hero__orb--3 { width: 280px; height: 280px; top: 40%; left: 35%;
                background: radial-gradient(circle, #c4b5fd 0%, transparent 70%); opacity: .18; }

.hero__container {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: flex-end;
}

.hero__top { padding-bottom: 72px; }

.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 999px;
    background: rgba(245,158,11,.18); border: 1px solid rgba(245,158,11,.35);
    color: #fcd34d; font-size: 12px; font-weight: 700;
    margin-bottom: 28px;
}
.hero__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(30px, 3.4vw, 52px);
    font-weight: 900; line-height: 1.1; letter-spacing: -1.5px;
    color: #fff;
}
.hero__title em { font-style: normal; color: var(--amber); }
.hero__sub {
    margin-top: 24px; font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.5;
}
.hero__sub strong { color: #fff; font-weight: 700; }
.hero__actions { margin-top: 32px; display: flex; align-items: center; gap: 22px; }
.hero__cta { min-height: 56px; padding: 0 32px; font-size: 15px; }
.hero__scroll {
    color: rgba(255,255,255,.55); font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    transition: color .2s;
}
.hero__scroll span { animation: bobDown 1.5s ease-in-out infinite; display: inline-block; }
.hero__scroll:hover { color: rgba(255,255,255,.9); }

/* СУМКИ В HERO */
.hero__visual {
    position: relative; min-height: 480px; overflow: visible;
    display: flex; align-items: flex-end; justify-content: center;
}
.hero__glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(139,92,246,.25) 0%, transparent 65%);
    pointer-events: none;
}
.bag { position: absolute; cursor: pointer; outline: none; }
.bag__floating { width: 100%; height: 100%; }
.bag__image {
    width: 100%; height: 100%; object-fit: contain;
    user-select: none; pointer-events: none;
    will-change: transform;
    filter: drop-shadow(0 28px 22px rgba(0,0,0,.25));
    transition: scale .3s cubic-bezier(.2,.8,.2,1), filter .3s;
}
.bag__label {
    position: absolute; bottom: -4px; left: 50%;
    padding: 4px 12px; border-radius: 999px;
    background: var(--amber); color: #1a0a00;
    font-size: 11px; font-weight: 800; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245,158,11,.4);
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}
.hero__visual:hover .bag:not(:hover) .bag__floating { opacity: .5; filter: saturate(.5); }
.bag:hover .bag__image, .bag:focus-visible .bag__image {
    scale: 1.1;
    filter: drop-shadow(0 36px 28px rgba(0,0,0,.3)) drop-shadow(0 0 18px rgba(245,158,11,.2));
}
.bag:hover .bag__label, .bag:focus-visible .bag__label {
    opacity: 1; transform: translateX(-50%) translateY(0);
}
.bag:focus-visible { border-radius: 20px; box-shadow: 0 0 0 3px rgba(245,158,11,.5); }

/* позиции hero-сумок */
.bag--yandex { z-index:3; top:0; left:30%; width:235px; animation: bagY 1s .2s cubic-bezier(.2,.8,.2,1) both; }
.bag--kuper  { z-index:2; bottom:0; left:0%; width:265px; animation: bagK 1s .4s cubic-bezier(.2,.8,.2,1) both; }
.bag--magnit { z-index:4; right:-4%; bottom:0; width:275px; animation: bagM 1s .6s cubic-bezier(.2,.8,.2,1) both; }
.bag__floating--yandex { animation: floatY 5s 1.3s ease-in-out infinite; }
.bag__floating--kuper  { animation: floatK 5.7s 1.5s ease-in-out infinite; }
.bag__floating--magnit { animation: floatM 5.3s 1.7s ease-in-out infinite; }

/* ===== STATS STRIP ===== */
.stats-strip {
    background: var(--v1);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.stats-strip__grid {
    display: grid; grid-template-columns: repeat(4,1fr);
}
.stat-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 28px 16px; gap: 6px; text-align: center;
    border-right: 1px solid rgba(255,255,255,.07);
}
.stat-item:last-child { border-right: 0; }
.stat-item__num {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 2.4vw, 32px); font-weight: 900;
    color: #fff; line-height: 1;
}
.stat-item--accent .stat-item__num { color: var(--amber); }
.stat-item__label { font-size: 12px; color: rgba(255,255,255,.45); font-weight: 500; }

/* ===== SECTION HEAD ===== */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head__tag {
    display: inline-block; padding: 6px 18px; border-radius: 999px;
    background: var(--v4); color: var(--v2);
    font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 16px;
}
.section-head__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(26px, 3vw, 42px); font-weight: 900; line-height: 1.12; color: var(--text);
}
.section-head__title span { color: var(--v2); }
.section-head__sub { margin-top: 14px; color: var(--text2); font-size: 15px; }

/* ===== ПАРТНЁРЫ (pcard) ===== */
.partners { padding: 88px 0 96px; background: var(--bg2); }
.partners__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.pcard {
    --pa: var(--v2);
    display: flex; flex-direction: column;
    border-radius: 20px; overflow: hidden;
    background: var(--bg); border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
    transition: transform .3s, box-shadow .3s, opacity .6s;
}
.pcard:hover { transform: translateY(-10px); box-shadow: var(--sh-md); }
.pcard--yandex { --pa: #f1b900; }
.pcard--kuper  { --pa: #00b927; }
.pcard--magnit { --pa: #f00018; }

.pcard__bag-zone {
    position: relative; min-height: 260px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, rgba(76,29,149,.06) 0%, transparent 70%);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    overflow: visible;
}
/* сумки внутри карточки партнёра */
.bag--yandex-sm, .bag--kuper-sm, .bag--magnit-sm {
    position: relative !important;
    top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
    width: 175px; height: 200px;
    animation: none !important;
}
.pcard__bag-zone:hover .bag__image { scale: 1.08; }
.pcard__bag-zone:hover .bag__label { opacity: 1; transform: translateX(-50%) translateY(0); }
.bag--yandex-sm .bag__label,
.bag--kuper-sm  .bag__label,
.bag--magnit-sm .bag__label { bottom: -10px; }

.pcard__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.pcard__logo-box { height: 44px; }
.pcard__logo { height: 100%; object-fit: contain; object-position: left center; }
.pcard__bonus { display: flex; flex-direction: column; gap: 4px; }
.pcard__bonus-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: var(--text2); }
.pcard__bonus-range { font-size: 16px; color: var(--text); }
.pcard__bonus-range b { font-size: 22px; font-weight: 800; color: var(--pa); }
.pcard__btn {
    align-self: flex-start;
    min-height: 42px; padding: 0 20px;
    border: 2px solid var(--pa); border-radius: 999px;
    color: var(--pa); background: transparent;
    font-size: 13px; font-weight: 700;
    transition: color .2s, background .2s, transform .2s;
}
.pcard__btn:hover { color: #fff; background: var(--pa); transform: translateY(-2px); }

/* ===== ШАГИ (timeline) ===== */
.steps { padding: 88px 0 96px; background: var(--bg); }
.timeline {
    position: relative;
    display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
    margin-bottom: 48px;
}
.timeline__track {
    position: absolute; top: 56px; left: calc(1/6 * 100%); right: calc(1/6 * 100%);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--v4) 0, var(--v4) 8px, transparent 8px, transparent 16px);
}
.tcard {
    position: relative; display: flex; flex-direction: column; align-items: center;
    padding: 36px 24px 32px;
    text-align: center;
    border-radius: 20px; background: var(--bg2);
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s, opacity .6s;
}
.tcard:hover { transform: translateY(-8px); box-shadow: var(--sh-md); }
.tcard__num {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 50%; background: var(--amber); color: #1a0a00;
    font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 900;
    box-shadow: 0 4px 14px rgba(245,158,11,.4);
}
.tcard__icon {
    width: 96px; height: 96px; display: grid; place-items: center;
    margin: 16px 0 20px;
    border-radius: 50%; background: var(--bg); border: 2px solid var(--border);
}
.tcard__icon img { width: 60px; height: 60px; object-fit: contain; transition: transform .3s; }
.tcard:hover .tcard__icon img { transform: scale(1.1) rotate(-4deg); }
.tcard__title { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.3; }
.tcard__text { margin-top: 14px; color: var(--text2); font-size: 14px; line-height: 1.6; }
.steps__action { text-align: center; }

/* ===== ПРЕИМУЩЕСТВА (bgrid / bcard) ===== */
.benefits { padding: 88px 0 96px; background: var(--bg2); }
.bgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

.bcard {
    display: grid; grid-template-columns: 160px 1fr;
    border-radius: 20px; overflow: hidden; background: var(--bg);
    border: 1px solid var(--border); border-left: 4px solid var(--v2);
    transition: transform .3s, box-shadow .3s, opacity .6s;
}
.bcard:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.bcard__icon-wrap {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, var(--v4) 0%, rgba(237,233,254,.4) 100%);
    padding: 24px 12px;
}
.bcard__icon { width: 110px; height: 110px; object-fit: contain; transition: transform .3s; }
.bcard__icon--wide { width: 140px; height: 100px; }
.bcard:hover .bcard__icon { transform: scale(1.08) rotate(-3deg); }
.bcard__body {
    padding: 28px 24px; display: flex; flex-direction: column; gap: 8px;
    position: relative;
}
.bcard__num {
    position: absolute; top: 16px; right: 16px;
    width: 34px; height: 30px; display: grid; place-items: center;
    border-radius: 8px; background: var(--bg2); border: 1px solid var(--border);
    font-size: 11px; font-weight: 800; color: var(--v2);
}
.bcard__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px; font-weight: 700; line-height: 1.25;
}
.bcard__title em { font-style: normal; color: var(--v2); }
.bcard__text { color: var(--text2); font-size: 13px; line-height: 1.65; margin-top: 4px; }

/* ===== FAQ ===== */
.faq { padding: 88px 0 96px; background: var(--v1); }
.faq .section-head__tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }
.faq .section-head__title { color: #fff; }
.faq .section-head__title span { color: var(--amber); }

.faq__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.faq-item {
    overflow: hidden; border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    transition: border-color .2s, background .2s;
}
.faq-item.is-open {
    background: rgba(255,255,255,.08);
    border-color: rgba(245,158,11,.35);
}
.faq-question {
    width: 100%; min-height: 54px; display: flex; padding: 12px 18px;
    align-items: center; justify-content: space-between; gap: 16px;
    background: transparent; color: rgba(255,255,255,.85);
    text-align: left; font-size: 14px; font-weight: 600;
    transition: color .2s;
}
.faq-question:hover { color: #fff; }
.faq-question__plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq-question__plus::before,
.faq-question__plus::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 14px; height: 2px; border-radius: 10px; background: var(--amber);
    transform: translate(-50%,-50%); transition: transform .2s;
}
.faq-question__plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item.is-open .faq-question__plus::after { transform: translate(-50%,-50%) rotate(0); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer__inner { overflow: hidden; padding: 0 18px; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.7; }
.faq-item.is-open .faq-answer__inner { padding-bottom: 18px; }
.faq-answer__inner p { margin-bottom: 10px; }
.faq-check-list { margin: 10px 0 14px; list-style: none; }
.faq-check-list li { position: relative; margin-bottom: 8px; padding-left: 24px; }
.faq-check-list li::before {
    content: "✓"; position: absolute; left: 0;
    width: 16px; height: 16px; display: grid; place-items: center;
    border-radius: 50%; color: #fff; background: var(--v2);
    font-size: 9px; font-weight: 900;
}
.faq__cta {
    margin-top: 52px; display: flex; align-items: center;
    justify-content: center; gap: 24px; flex-wrap: wrap;
}
.faq__cta p { color: rgba(255,255,255,.55); font-size: 15px; }

/* ===== КОНТАКТЫ ===== */
.contacts { padding: 88px 0 100px; background: var(--bg2); }
.contacts__wrap {
    display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: start;
}

.application {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 20px; padding: 52px 48px; box-shadow: var(--sh-sm);
}
.application__head { margin-bottom: 32px; }
.application__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(22px, 2.4vw, 34px); font-weight: 900; line-height: 1.1;
}
.application__title span { color: var(--v2); }
.application__subtitle { margin-top: 12px; color: var(--text2); font-size: 15px; }

.application-form__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 18px; }
.form-field { position: relative; padding-bottom: 20px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.form-field input,
.form-field select {
    width: 100%; height: 52px; padding: 0 14px; outline: none;
    border: 1.5px solid var(--border); border-radius: 10px;
    color: var(--text); background: var(--bg2); font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.form-field input::placeholder { color: var(--text2); }
.form-field input:focus, .form-field select:focus {
    border-color: var(--v2); box-shadow: 0 0 0 3px rgba(109,40,217,.1); background: #fff;
}
.form-field.is-invalid input, .form-field.is-invalid select { border-color: var(--red); }
.form-field.is-valid   input, .form-field.is-valid   select { border-color: var(--green); }
.form-field__error { position: absolute; bottom: 2px; left: 2px; color: var(--red); font-size: 11px; }
.form-field__error--consent { position: relative; display: block; min-height: 18px; margin: 4px 0; }

.consent { width: fit-content; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box {
    position: relative; width: 20px; height: 20px; flex-shrink: 0;
    border: 2px solid var(--v2); border-radius: 5px; background: #fff; transition: background .2s;
}
.consent input:checked + .consent__box { background: var(--v2); }
.consent input:checked + .consent__box::after {
    content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
    color: #fff; font-size: 12px; font-weight: 900;
}
.consent input:focus-visible + .consent__box { box-shadow: 0 0 0 3px rgba(109,40,217,.15); }
.consent__text { padding-top: 2px; color: var(--text2); font-size: 12px; line-height: 1.5; }
.consent__text a { color: var(--v2); text-decoration: underline; }

.application-form__submit {
    width: 100%; min-height: 54px; margin-top: 10px;
    border-radius: 999px; color: #1a0a00; background: var(--amber);
    box-shadow: 0 4px 16px rgba(245,158,11,.35); font-size: 15px; font-weight: 800;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.application-form__submit:hover:not(:disabled) {
    background: var(--amber-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.45);
}
.application-form__submit:disabled {
    color: var(--text2); background: var(--border); box-shadow: none; cursor: not-allowed;
}
.application-form__success {
    min-height: 20px; margin-top: 12px;
    color: var(--green); font-size: 13px; font-weight: 700; text-align: center;
}

.contacts-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 20px; padding: 36px 28px; box-shadow: var(--sh-sm);
    position: sticky; top: 90px;
}
.contacts-card__title { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 900; }
.contacts-card__subtitle { margin-top: 6px; color: var(--text2); font-size: 14px; }
.contacts-card__list { margin-top: 20px; }
.contact-item {
    min-height: 60px; display: flex; padding: 8px 0;
    align-items: center; gap: 14px; border-bottom: 1px solid var(--border);
    transition: transform .2s;
}
a.contact-item:hover { transform: translateX(4px); }
.contact-item__icon {
    width: 42px; height: 42px; display: grid; flex-shrink: 0; place-items: center;
    border-radius: 12px; background: var(--v4); border: 1px solid var(--border);
}
.contact-item__icon img { width: 26px; height: 26px; object-fit: contain; }
.contact-item__content { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.contact-item__content strong { font-size: 11px; font-weight: 800; color: var(--v2); }
.contact-item--time { border-bottom: 0; }

/* ===== МОДАЛКА ===== */
.partner-modal {
    position: fixed; inset: 0; z-index: 5000;
    display: grid; padding: 20px; place-items: center;
}
.partner-modal__overlay {
    position: absolute; inset: 0; background: rgba(20,8,50,.7);
    backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s;
}
.partner-modal__dialog {
    position: relative; z-index: 1; width: min(660px,100%);
    max-height: calc(100vh - 40px); overflow-y: auto;
    border-radius: 20px; background: var(--bg); border: 1px solid var(--border);
    box-shadow: 0 40px 100px rgba(0,0,0,.25);
    opacity: 0; transform: translateY(20px) scale(.97);
    transition: opacity .25s, transform .25s;
}
.partner-modal.is-open .partner-modal__overlay { opacity: 1; }
.partner-modal.is-open .partner-modal__dialog  { opacity: 1; transform: translateY(0) scale(1); }
.partner-modal__top {
    position: sticky; top: 0; z-index: 3; min-height: 64px;
    display: flex; padding: 12px 20px; align-items: center; justify-content: space-between; gap: 12px;
    border-bottom: 1px solid var(--border); background: var(--bg); border-radius: 20px 20px 0 0;
}
.partner-modal__back {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--v2); background: transparent; font-size: 12px; font-weight: 700;
    transition: transform .2s;
}
.partner-modal__back:hover { transform: translateX(-3px); }
.partner-modal__back span { font-size: 16px; }
.partner-modal__logo-box { position: relative; width: 130px; height: 42px; }
.partner-modal__logo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; object-position: right center;
}
.theme-logo--dark { display: none; }
.partner-modal__close {
    width: 34px; height: 34px; display: none; place-items: center;
    border-radius: 50%; color: var(--text); background: var(--bg2); border: 1px solid var(--border);
    font-size: 20px; transition: background .2s;
}
.partner-modal__close:hover { background: var(--v4); color: var(--v2); }
.partner-modal__content { padding: 24px 28px 30px; }
.partner-modal__title { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 700; }
.partner-modal__description { margin-top: 12px; color: var(--text2); font-size: 14px; line-height: 1.65; }
.partner-modal__section { margin-top: 24px; }
.partner-modal__section-title { margin-bottom: 10px; font-weight: 800; font-size: 15px; }
.partner-modal__list { list-style: none; }
.partner-modal__list-item {
    position: relative; min-height: 36px; padding: 7px 5px 7px 30px;
    border-bottom: 1px solid var(--border); color: var(--text2); font-size: 13px; line-height: 1.5;
}
.partner-modal__list-item::before {
    position: absolute; top: 9px; left: 2px; width: 18px; height: 18px;
    display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 900;
}
.partner-modal__list-item--plus::before  { content: "✓"; background: #22c55e; }
.partner-modal__list-item--minus::before { content: "×"; background: #ef4444; }
.partner-modal__bonus { color: var(--text2); font-size: 13px; line-height: 1.65; }
.partner-modal__bonus p { margin-bottom: 10px; }
.partner-modal__bonus-list { margin: 10px 0 14px; padding-left: 20px; }
.partner-modal__bonus-list li { margin-bottom: 6px; font-weight: 700; }
.partner-modal__choose {
    width: 100%; min-height: 50px; margin-top: 26px;
    border-radius: 999px; color: #1a0a00; background: var(--amber);
    box-shadow: 0 4px 16px rgba(245,158,11,.35); font-size: 14px; font-weight: 800;
    transition: background .2s, transform .2s;
}
.partner-modal__choose:hover { background: var(--amber-d); transform: translateY(-2px); }
.partner-modal__choose:focus-visible { outline: 3px solid rgba(245,158,11,.4); outline-offset: 3px; }

/* ===== ФУТЕР ===== */
.footer {
    color: #d4cafe;
    background: linear-gradient(155deg, #140833 0%, #1e0a52 60%, #2d1070 100%);
    border-top: 1px solid rgba(167,139,250,.1);
}
.footer__container {
    display: grid; grid-template-columns: 1.3fr .65fr .95fr 1fr;
    gap: 52px; padding-top: 64px; padding-bottom: 48px;
}
.footer__brand { max-width: 310px; }
.footer__logo {
    display: inline-flex;
    transition: transform .2s;
}
.footer__logo:hover { transform: translateY(-2px); }
.footer__description { margin-top: 16px; color: #8b7eb8; font-size: 14px; line-height: 1.7; }
.footer__warning { margin-top: 18px; padding-left: 12px; border-left: 3px solid var(--amber); color: #6b5f90; font-size: 12px; line-height: 1.6; }
.footer__title { margin-bottom: 18px; color: #c4b5fd; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.footer__navigation { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; }
.footer__navigation a { color: #6b5f90; font-size: 13px; transition: color .2s, transform .2s; }
.footer__navigation a:hover { color: #c4b5fd; transform: translateX(4px); }
.footer__documents { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; }
.footer__document { position: relative; padding-left: 14px; color: #6b5f90; font-size: 13px; transition: color .2s; }
.footer__document::before { content: ''; position: absolute; top: 8px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.footer__document:hover { color: #c4b5fd; }
.footer__column--details p { margin-bottom: 10px; color: #6b5f90; font-size: 13px; line-height: 1.55; }
.footer__column--details p:first-of-type { color: #e2d9f3; font-weight: 700; }
.footer__bottom {
    min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    border-top: 1px solid rgba(167,139,250,.1); color: #4a4070; font-size: 12px;
}
.footer__up { color: #c4b5fd; font-weight: 700; transition: color .2s, transform .2s; }
.footer__up:hover { color: #fff; transform: translateY(-3px); }

/* ===== АНИМАЦИИ ===== */
@keyframes bagY {
    from { opacity:0; transform: translateY(-160px) rotate(-15deg) scale(.74); }
    to   { opacity:1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes bagK {
    from { opacity:0; transform: translate(-160px,100px) rotate(-18deg) scale(.72); }
    to   { opacity:1; transform: translate(0,0) rotate(0) scale(1); }
}
@keyframes bagM {
    from { opacity:0; transform: translate(160px,100px) rotate(18deg) scale(.72); }
    to   { opacity:1; transform: translate(0,0) rotate(0) scale(1); }
}
@keyframes floatY {
    0%,100% { transform: translateY(0) rotate(-2deg); }
    50%     { transform: translateY(-14px) rotate(3deg); }
}
@keyframes floatK {
    0%,100% { transform: translateY(0) rotate(2deg); }
    50%     { transform: translateY(-12px) rotate(-3deg); }
}
@keyframes floatM {
    0%,100% { transform: translateY(0) rotate(-2deg); }
    50%     { transform: translateY(-16px) rotate(3deg); }
}
@keyframes bobDown {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(5px); }
}

/* ===== REVEAL ===== */
.js .reveal-section .reveal-card {
    opacity: 0; transform: translateY(32px);
    transition: opacity .55s ease, transform .55s ease;
}
.js .reveal-section.is-visible .reveal-card { opacity:1; transform:translateY(0); }
.js .reveal-section.is-visible .reveal-card:nth-child(2) { transition-delay:.09s; }
.js .reveal-section.is-visible .reveal-card:nth-child(3) { transition-delay:.18s; }
.js .reveal-section.is-visible .reveal-card:nth-child(4) { transition-delay:.27s; }

/* ===== ПЛАНШЕТ ===== */
@media (max-width:1100px) {
    .navigation { display:none; }
    .hero__container { grid-template-columns:1fr 1fr; }
    .stats-strip__grid { grid-template-columns:repeat(2,1fr); }
    .stat-item { border-bottom: 1px solid rgba(255,255,255,.07); }
    .partners__grid { grid-template-columns:repeat(2,1fr); }
    .bgrid { grid-template-columns:1fr; }
    .bcard { grid-template-columns:140px 1fr; }
    .faq__cols { grid-template-columns:1fr; }
    .contacts__wrap { grid-template-columns:1fr; }
    .contacts-card { position:relative; top:auto; }
    .footer__container { grid-template-columns:repeat(2,1fr); gap:40px; }
    .timeline { grid-template-columns:1fr; gap:40px; }
    .timeline__track { display:none; }
}

/* ===== МОБИЛА ===== */
@media (max-width:760px) {
    section { scroll-margin-top: 66px; }
    .container { width:min(100% - 24px,1200px); }
    .header { height:66px; }
    .header__container { gap:6px; }
    .logo { font-size:15px; }
    .header__phone { display:none; }
    .social-link { width:30px; height:30px; }
    .social-link img { width:20px; height:20px; }

    .hero { padding:52px 0 0; }
    .hero__container { grid-template-columns:1fr; gap:0; }
    .hero__top { padding-bottom:40px; }
    .hero__title { font-size:clamp(28px,10vw,46px); letter-spacing:-1px; }
    .hero__actions { flex-direction:column; align-items:flex-start; gap:14px; }
    .hero__visual { min-height:300px; }
    .bag--yandex { left:28%; width:155px; }
    .bag--kuper  { left:-2%; width:175px; }
    .bag--magnit { right:-3%; width:185px; }

    .stats-strip__grid { grid-template-columns:repeat(2,1fr); }
    .partners__grid { grid-template-columns:1fr; }

    .application { padding:32px 20px; }
    .application-form__grid { grid-template-columns:1fr; gap:0; }
    .application__title { font-size:26px; }
    .contacts-card { padding:28px 20px; }

    .footer__container { grid-template-columns:1fr; gap:32px; padding:44px 0 36px; }
    .footer__bottom { min-height:auto; padding:16px 0; flex-direction:column; align-items:flex-start; gap:8px; }

    .partner-modal { padding:8px; }
    .partner-modal__dialog { max-height:calc(100vh - 16px); }
    .partner-modal__close { display:grid; }

    .bgrid { grid-template-columns:1fr; }
    .bcard { grid-template-columns:100px 1fr; }
    .bcard__icon { width:80px; height:80px; }

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

@media (max-width:500px) { .socials { display:none; } }
@media (max-width:430px) { .button--small { display:none; } }

@media (hover:none) {
    .hero__visual:hover .bag:not(:hover) .bag__floating { opacity:1; filter:none; }
}
@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        scroll-behavior:auto !important;
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
    }
}
