:root {
    --ink: #0a0a0a;
    --paper: #ffffff;
    --g-700: #2e2e2e;
    --g-500: #6e6e6e;
    --g-400: #9a9a9a;
    --g-300: #cfcfcf;
    --g-200: #e6e6e6;
    --g-100: #f3f3f3;
    --display: 'Bricolage Grotesque', sans-serif;
    --body: 'Hanken Grotesk', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* ---------- NAV ---------- */
.nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    padding: 26px clamp(20px, 5vw, 64px);
}
.nav-brand {
    display: flex; align-items: center; gap: 11px;
    font-family: var(--display); font-weight: 700; font-size: 20px;
    color: var(--paper); text-decoration: none; letter-spacing: -.02em;
}
.nav-mark {
    width: 13px; height: 13px; background: var(--paper);
    border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}
.nav-logo { width: 22px; height: 22px; flex-shrink: 0; }
.nav-login {
    color: var(--paper); text-decoration: none; font-weight: 500; font-size: 15px;
    padding: 9px 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 100px;
    transition: background .2s, color .2s;
}
.nav-login:hover { background: var(--paper); color: var(--ink); }

/* ---------- HERO ---------- */
.hero {
    position: relative; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 clamp(20px, 5vw, 64px);   /* вертикальные отступы задаём отдельно для десктопа */
    color: var(--paper);
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img {
    width: 100%; height: 100%; object-fit: cover; object-position: 60% center;
    filter: grayscale(1) contrast(1.05);
    animation: slowZoom 18s ease-out forwards;
}
@keyframes slowZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 42%, rgba(0,0,0,.12) 100%),
        linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 40%);
}

.hero-inner { max-width: 980px; }
.hero-promo {
    display: inline-flex; align-items: center; gap: 8px; vertical-align: middle;
    font-family: inherit; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer;
    background: rgba(34,197,94,.18); border: 1px solid rgba(34,197,94,.55);
    padding: 8px 16px; border-radius: 100px; margin-bottom: 20px; margin-right: 16px;
    transition: background .2s;
}
.hero-promo:hover { background: rgba(34,197,94,.30); }
/* Модалка условий акции */
.terms-box { width: min(540px, calc(100vw - 40px)); max-height: 85vh; overflow-y: auto; }
.terms-lead { margin-top: 12px; font-weight: 700; }
.terms-body { font-size: 14px; line-height: 1.55; color: var(--ink); }
.terms-body ul { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; }
.hero-chips {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none;
}
.hero-chips li {
    font-size: 13.5px; color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    padding: 7px 14px; border-radius: 100px;
}
.eyebrow {
    display: inline-block; vertical-align: middle; font-size: 13px; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase; color: var(--g-300);
    margin-bottom: 22px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.25);
}
.hero-title {
    font-family: var(--display); font-weight: 800;
    font-size: clamp(2.6rem, 8vw, 6.6rem); line-height: .94;
    letter-spacing: -.03em; text-transform: uppercase;
}
.hero-title span { display: block; }
.hero-sub {
    margin-top: 26px; max-width: 540px;
    font-size: clamp(1rem, 1.5vw, 1.22rem); color: rgba(255,255,255,.85); font-weight: 400;
}
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 34px; border-radius: 100px; cursor: pointer;
    font-family: var(--body); font-size: 16px; font-weight: 600;
    text-decoration: none; border: 1px solid transparent; transition: all .2s;
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
/* Пробегающий блик + лёгкая пульсация у кнопки-оффера — привлекает внимание */
.btn-glow { position: relative; overflow: hidden; animation: ctaPulse 2s ease-in-out infinite; }
.btn-glow:hover { animation: none; }
.btn-glow > .btn-label { position: relative; z-index: 1; }
.btn-glow::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%; z-index: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(0,0,0,.16) 50%, transparent 65%);
    transform: skewX(-18deg); pointer-events: none;
    animation: ctaShine 2.6s ease-in-out infinite;
}
@keyframes ctaShine { 0% { left: -80%; } 55%, 100% { left: 150%; } }
@keyframes ctaPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .btn-glow, .btn-glow::after { animation: none; } }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,.08); }
.btn-ghost.dark { color: var(--ink); border-color: var(--g-300); }
.btn-ghost.dark:hover { border-color: var(--ink); background: var(--g-100); }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.kicker {
    display: inline-block; font-size: 13px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; color: var(--g-400); margin-bottom: 18px;
}
.kicker.light { color: var(--g-400); }
.section-title {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.02; letter-spacing: -.025em;
}
.section-title.light { color: var(--paper); }
.section-lead { margin-top: 20px; font-size: 1.1rem; color: var(--g-500); max-width: 560px; }

/* ---------- FEATURES ---------- */
.features {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--g-200);
    border: 1px solid var(--g-200); border-radius: 18px; overflow: hidden;
}
.feature { background: var(--paper); padding: 38px 32px; transition: background .25s; }
.feature:hover { background: var(--g-100); }
.feature-num { font-family: var(--display); font-size: 22px; color: var(--g-300); }
.feature h3 { font-size: 1.3rem; font-weight: 600; margin: 16px 0 10px; letter-spacing: -.01em; }
.feature p { color: var(--g-500); font-size: .98rem; }

/* ---------- МОДЕЛИ (тёмный блок) ---------- */
.models {
    background: var(--ink); color: var(--paper);
    padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 64px);
}
.models .section-head { margin: 0 auto 56px; max-width: 1240px; }
.models-grid {
    max-width: 1240px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.model-col { padding: 34px 30px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; }
.model-col h4 {
    font-family: var(--display); font-size: 1.5rem; font-weight: 700;
    letter-spacing: -.02em; margin-bottom: 18px;
}
.model-top { font-size: 1.05rem; font-weight: 600; color: var(--paper); }
.model-light { font-size: .95rem; color: var(--g-400); margin-top: 6px; }
.models-note {
    max-width: 1240px; margin: 44px auto 0; color: var(--g-400);
    font-size: .95rem; text-align: center;
}

/* ---------- ТАРИФЫ ---------- */
.pricing {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.plan {
    position: relative; display: flex; flex-direction: column;
    padding: 34px 26px; border: 1px solid var(--g-200); border-radius: 18px;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.plan:hover { transform: translateY(-5px); border-color: var(--g-400); box-shadow: 0 18px 40px rgba(0,0,0,.07); }
.plan-featured { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plan-featured:hover { box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.plan-badge {
    position: absolute; top: -11px; left: 26px;
    background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
    font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 11px; border-radius: 100px;
}
.plan-name { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.plan-credits { margin-top: 14px; font-size: .9rem; color: var(--g-400); }
.plan-featured .plan-credits { color: var(--g-300); }
.plan-price { font-family: var(--display); font-size: 2.4rem; font-weight: 700; margin: 6px 0 16px; letter-spacing: -.02em; }
.plan-est { font-size: .85rem; color: var(--g-400); margin: -8px 0 14px; }
.plan-featured .plan-est { color: var(--g-300); }
.plan-desc { font-size: .95rem; color: var(--g-500); margin-top: auto; }
.plan-featured .plan-desc { color: var(--g-300); }
.pricing-note { text-align: center; margin-top: 36px; color: var(--g-500); font-size: .98rem; }

/* ---------- CTA ---------- */
.cta {
    text-align: center; padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 64px);
    background: var(--g-100); border-top: 1px solid var(--g-200);
}
.cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.025em; }
.cta p { margin: 16px 0 32px; color: var(--g-500); font-size: 1.1rem; }
.cta .hero-cta { justify-content: center; }

/* ---------- FOOTER ---------- */
.footer {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px;
    padding: 56px clamp(20px, 5vw, 64px);
    border-top: 1px solid var(--g-200);
    font-size: 14px; color: var(--g-500); font-family: var(--body); font-weight: 400;
}
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-logo { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.footer-tagline { color: var(--g-500); }
.footer-head { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-400); margin-bottom: 2px; }
.footer-col a { color: var(--g-700); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.footer-req p { line-height: 1.5; }
.footer-copy { margin-top: 8px; color: var(--g-400); }
@media (max-width: 760px) {
    .footer { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px clamp(20px, 5vw, 64px); }
}
@media (max-width: 440px) {
    .footer { grid-template-columns: 1fr; }
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .5s; }
.d4 { animation-delay: .68s; } .d5 { animation-delay: .9s; } .d6 { animation-delay: 1.08s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.fade { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.fade.in { opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
/* десктоп: отступ от логотипа сверху и от «прокрутите ниже» снизу, без ухода кнопок за экран */
@media (min-width: 761px) {
    .hero { padding-top: 84px; padding-bottom: 56px; }
}
@media (max-width: 900px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .models-grid { grid-template-columns: 1fr; }
    .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .features { grid-template-columns: 1fr; }
    .pricing { grid-template-columns: 1fr; }
    .hero-veil { background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,.35)); }
    .nav-login { display: none; }
    /* на мобиле сдвигаем кадр правее, чтобы девушка попадала в видимую область */
    .hero-media img { object-position: 78% center; }
    /* кнопки героя — стопкой во всю ширину */
    .hero .hero-cta { flex-direction: column; align-items: stretch; }
    .hero .hero-cta .btn { width: 100%; }
}

/* Согласие с офертой и политикой у кнопок входа */
.consent {
    display: flex; align-items: center; justify-content: flex-start; gap: 7px;
    margin-top: 12px; font-size: 13px; color: var(--g-500, #737373);
    cursor: pointer; user-select: none;
}
/* в блоке CTA контент по центру - и чекбокс тоже */
.cta .consent { justify-content: center; }
.consent input { width: 15px; height: 15px; accent-color: #0d0d0d; cursor: pointer; flex-shrink: 0; }
/* ссылки - цветом обычного текста, только подчеркнутые */
.consent a, .consent a:link, .consent a:visited { color: inherit !important; text-decoration: underline; }
.consent.consent-error { color: #b3261e !important; }
.consent.consent-error input { outline: 2px solid #b3261e; outline-offset: 2px; border-radius: 3px; }
.pwd-consent.consent-error { animation: consent-shake .45s ease; }
@keyframes consent-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ---------- ЕДИНАЯ МОДАЛКА ВХОДА (Яндекс + почта + согласие) ---------- */
.btn-primary.dark { background: var(--ink); color: var(--paper); }
.btn-primary.dark:hover { box-shadow: 0 12px 30px rgba(0,0,0,.18); }

.pwd-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.pwd-modal.hidden { display: none; }
.pwd-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.pwd-box {
    position: relative; width: min(400px, calc(100vw - 40px));
    background: var(--paper); color: var(--ink);
    border-radius: 14px; padding: 28px 26px 26px;
    box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.pwd-box h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.pwd-yandex {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 16px; padding: 12px 0; border-radius: 10px;
    background: var(--ink); color: var(--paper); text-decoration: none;
    font-family: var(--body); font-size: 15px; font-weight: 600;
}
.pwd-yandex:hover { opacity: .9; }
.pwd-yandex .ya { color: #FC3F1D; font-weight: 800; font-size: 17px; }
.pwd-yandex.hidden { display: none; }
.pwd-divider {
    display: flex; align-items: center; gap: 12px; margin: 16px 0 2px;
    color: var(--g-400); font-size: 12.5px;
}
.pwd-divider::before, .pwd-divider::after { content: ""; flex: 1; height: 1px; background: var(--g-200); }
.pwd-divider.hidden { display: none; }
.pwd-consent { margin-top: 16px; font-size: 12.5px; justify-content: center; }
.pwd-consent.hidden { display: none; }
.pwd-note { margin: 10px 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--g-500); }
.pwd-note.hidden { display: none; }
.pwd-box form { margin-top: 12px; }
.pwd-box form { display: flex; flex-direction: column; gap: 10px; }
.pwd-box input {
    font-family: var(--body); font-size: 15px; color: var(--ink);
    padding: 11px 13px; border: 1px solid var(--g-300); border-radius: 9px; outline: none;
}
.pwd-box input:focus { border-color: var(--ink); }
.pwd-error { font-size: 13px; line-height: 1.45; color: #b3261e; }
.pwd-error.hidden { display: none; }
.pwd-ok { font-size: 13px; line-height: 1.45; color: #1b7a3d; }
.pwd-ok.hidden { display: none; }
.pwd-tabs { display: flex; gap: 6px; margin-top: 14px; background: var(--g-100); border-radius: 9px; padding: 4px; }
.pwd-tabs.hidden { display: none; }
.pwd-tab {
    flex: 1; padding: 8px 0; border: none; border-radius: 7px; background: transparent;
    font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--g-500); cursor: pointer;
}
.pwd-tab.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.pwd-forgot {
    background: none; border: none; margin-top: 2px; padding: 4px 0; align-self: center;
    font-family: var(--body); font-size: 13px; color: var(--g-500);
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.pwd-forgot:hover { color: var(--ink); }
.pwd-forgot.hidden { display: none; }
.pwd-box input.hidden { display: none; }
.pwd-submit { background: var(--ink); color: var(--paper); justify-content: center; margin-top: 4px; }
.pwd-submit:disabled { opacity: .6; cursor: default; }
.pwd-close {
    position: absolute; top: 10px; right: 14px; background: none; border: none;
    font-size: 26px; line-height: 1; color: var(--g-400); cursor: pointer; padding: 4px;
}
.pwd-close:hover { color: var(--ink); }

/* ---------- ОТДЕЛЬНАЯ СТРАНИЦА ВХОДА (/login.html) ---------- */
.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(900px 500px at 50% -10%, rgba(10,10,10,.06), transparent 70%),
        var(--paper);
}
.auth-wrap {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 18px; padding: 40px 20px;
}
.auth-brand {
    display: flex; align-items: center; gap: 9px;
    font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em;
    color: var(--ink); text-decoration: none;
}
.auth-brand .nav-logo { width: 26px; height: 26px; }
.auth-card { box-shadow: 0 18px 50px rgba(0,0,0,.12); border: 1px solid var(--g-200); }
.auth-bonus { font-size: 13.5px; color: var(--g-500); text-align: center; }
.auth-back {
    font-size: 13.5px; color: var(--g-500); text-decoration: none;
}
.auth-back:hover { color: var(--ink); }
