/* ============================================================
   VEZOO — Новый лендинг. Светлая/тёмная темы, акцент #3B82F6.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
    --brand: #2C5F9E;
    --brand-dark: #1A3D7C;
    --brand-deep: #122C5C;
    --brand-bright: #3B82F6;
    --cta: #FF7A30;
    --cta-hover: #FF9A5B;
    --cta-press: #ED6614;

    --accent: #3B82F6;
    --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);

    --font-display: 'Manrope', system-ui, sans-serif;
    --font-text: 'Inter', system-ui, sans-serif;

    --bg: #F4F7FB;
    --bg-alt: #ECF2F9;
    --surface: #FFFFFF;
    --surface-2: #F7FAFD;
    --border: #E2E9F2;
    --border-strong: #CFDAE8;
    --heading: #16294C;
    --text: #2A3852;
    --text-muted: #64748B;
    --on-brand: #FFFFFF;

    --shadow-sm: 0 2px 8px rgba(18, 44, 92, 0.06);
    --shadow: 0 12px 32px rgba(18, 44, 92, 0.10);
    --shadow-lg: 0 28px 70px rgba(18, 44, 92, 0.16);
    --glow: 0 0 0 1px rgba(59, 130, 246, 0.18), 0 18px 50px rgba(59, 130, 246, 0.22);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --container: 1180px;
    --header-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
    --bg: #0A1426;
    --bg-alt: #0E1B33;
    --surface: #11203B;
    --surface-2: #15263F;
    --border: #21314F;
    --border-strong: #2C3F63;
    --heading: #EAF1FB;
    --text: #C2D0E6;
    --text-muted: #8195B4;
    --brand: #4F8BD4;
    --brand-dark: #2C5F9E;
    --on-brand: #FFFFFF;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* ---------- Сброс ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    font-family: var(--font-text);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-bottom: 74px;
    transition: background .4s var(--ease), color .4s var(--ease);
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--heading); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Material Symbols ---------- */
.micon {
    font-family: 'Material Symbols Outlined';
    font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal;
    text-transform: none; display: inline-flex; align-items: center; justify-content: center;
    white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    font-size: 24px; user-select: none;
}
.micon.fill { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

/* ---------- Раскладка ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.section { padding: 64px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display);
    font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--brand); background: var(--accent-soft);
    padding: 7px 14px; border-radius: 100px; margin-bottom: 20px;
}
[data-theme="dark"] .eyebrow { color: var(--accent); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(28px, 4vw, 44px); }
.section-sub { margin-top: 18px; font-size: clamp(16px, 2vw, 19px); color: var(--text-muted); line-height: 1.6; }

.grad-text {
    background: linear-gradient(100deg, var(--brand) 0%, var(--accent) 70%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 16px; border-radius: var(--radius-sm); padding: 15px 26px; min-height: 48px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap; }
.btn .micon { font-size: 20px; }
.btn-cta { background: linear-gradient(135deg, var(--cta), var(--cta-press)); color: #fff; box-shadow: 0 10px 26px rgba(255, 122, 48, 0.32); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255, 122, 48, 0.42); }
.btn-cta:active { transform: translateY(0); }
.btn-ghost { background: var(--surface); color: var(--heading); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
    display: flex; align-items: center;
    transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.brand-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--heading); letter-spacing: -0.02em; }
.brand-logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.brand-logo .tld { color: var(--accent); }

.main-nav { display: none; align-items: center; gap: 4px; }
.main-nav a { font-size: 15px; font-weight: 600; color: var(--text); padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--brand); background: var(--accent-soft); }
[data-theme="dark"] .main-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .lang-switch, .header-actions .btn-cta { display: none; }
.theme-toggle { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
[data-theme="dark"] .theme-toggle:hover { color: var(--accent); }
.theme-toggle .micon { font-size: 22px; }

.lang-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 100px; padding: 3px; }
.lang-switch button { font-size: 13px; font-weight: 700; color: var(--text-muted); padding: 6px 12px; border-radius: 100px; transition: all .2s; font-family: var(--font-display); }
.lang-switch button.active { background: var(--brand-dark); color: #fff; }

.burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; }
.burger span { width: 24px; height: 2.5px; background: var(--heading); border-radius: 2px; transition: all .3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + 36px); padding-bottom: 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg .grid-overlay {
    position: absolute; inset: -2px;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 54px 54px; opacity: .5;
    mask-image: radial-gradient(circle at 70% 28%, #000 0%, transparent 62%);
    -webkit-mask-image: radial-gradient(circle at 70% 28%, #000 0%, transparent 62%);
}
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero-bg .blob-1 { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, var(--accent), transparent 70%); }
.hero-bg .blob-2 { width: 460px; height: 460px; bottom: -200px; left: -140px; background: radial-gradient(circle, var(--brand-bright), transparent 70%); opacity: .35; }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; white-space: normal; background: var(--surface); border: 1px solid var(--border); padding: 7px 16px 7px 8px; border-radius: 100px; font-size: 13.5px; font-weight: 600; color: var(--text); box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.hero-badge .pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: .06em; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 5px 11px; border-radius: 100px; }
.hero-badge .pill .pd { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.3); }

.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; }
.hero h1 .grad-text { display: block; }
.hero .lead { margin-top: 22px; font-size: clamp(16px, 2.1vw, 20px); color: var(--text-muted); max-width: 540px; line-height: 1.6; }

.hero-earn { margin-top: 30px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hero-earn .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.2vw, 62px); line-height: 1; letter-spacing: -0.03em; }
.hero-earn .cur { font-size: .5em; }
/* Подпись держим на одной строке с суммой: на узких экранах ужимается, а не переносится. */
.hero-earn .cap { font-size: 13px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

.hero-trust { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; font-weight: 600; }
.hero-trust .tick { color: #1Fae65; display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .tick .micon { font-size: 18px; }

/* ---------- Карточка формы ---------- */
.hero-form-wrap { position: relative; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.form-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--cta), var(--accent)); }
.form-card h3 { font-size: 22px; }
.form-card .fc-sub { color: var(--text-muted); font-size: 14px; margin-top: 6px; margin-bottom: 22px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field input, .field select { width: 100%; padding: 14px 16px; min-height: 48px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 15px; background: var(--surface-2); color: var(--heading); transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--accent-soft); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C5F9E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; min-height: 44px; padding: 6px 0; }
/* Высота чекбокса ≈ строке подписи (12.5px × 1.45), поэтому без сдвига он
   встаёт ровно по центру первой строки — при переносе текста тоже. */
.consent input { width: 20px; height: 20px; margin-top: 0; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.consent label { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; cursor: pointer; padding: 4px 0; }
.consent a { color: var(--brand); text-decoration: underline; }
[data-theme="dark"] .consent a { color: var(--accent); }
.lead-form-error { background: rgba(225, 60, 60, .1); color: #d63d3d; border: 1px solid rgba(225, 60, 60, .25); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.lead-form-error ul { margin-top: 6px; padding-left: 18px; list-style: disc; font-weight: 500; }
.lead-form button[type=submit]:disabled { opacity: .6; pointer-events: none; }

.page-messages { margin-top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 10px; }
.page-message { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--heading); font-weight: 600; box-shadow: var(--shadow-sm); }
.page-message-success { border-left-color: #16C172; }
.page-message-error { border-left-color: #d63d3d; }

.form-success { text-align: center; padding: 26px 8px; }
.form-success .suc-ic { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(145deg, #16C172, #0F9F5E); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 36px rgba(16,193,114,.4); animation: pop .5s var(--ease); }
.form-success .suc-ic .micon { font-size: 42px; color: #fff; font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 40; }
.form-success h3 { font-size: 23px; }
.form-success p { color: var(--text-muted); margin-top: 8px; }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- Бегущая строка ---------- */
.marquee-section { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.marquee-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 26px; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; will-change: transform; animation: scrollx var(--marq-dur, 32s) linear infinite; }
.marquee-group { display: flex; gap: 18px; padding-right: 18px; flex: 0 0 auto; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--marq-w, 50%))); } }
.svc-chip { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 100px; padding: 12px 22px 12px 12px; flex-shrink: 0; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.svc-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-chip img { width: 38px; height: 38px; border-radius: 9px; object-fit: contain; background: #fff; padding: 3px; }
.svc-chip span { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--heading); white-space: nowrap; }

/* ---------- Цифры ---------- */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card .stat-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
[data-theme="dark"] .stat-card .stat-ic { color: var(--accent); }
.stat-card .stat-ic .micon { font-size: 26px; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 42px); color: var(--heading); line-height: 1; letter-spacing: -.02em; }
.stat-label { margin-top: 10px; color: var(--text-muted); font-size: 15px; font-weight: 500; }

/* ---------- Преимущества ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; position: relative; overflow: hidden; }
.feature-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--accent), transparent 50%); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card:hover::after { opacity: 1; }
.feature-ic { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(26,61,124,.25); }
.feature-ic .micon { font-size: 28px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Как начать ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; position: relative; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 15px; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--brand); margin-bottom: 18px; }
[data-theme="dark"] .step-num { color: var(--accent); }
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 14.5px; }
.step-card .step-arrow { display: none; position: absolute; top: 48px; right: -16px; color: var(--border-strong); z-index: 2; }
.step-card .step-arrow .micon { font-size: 26px; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.calc-controls { padding: 28px; border-bottom: 1px solid var(--border); }
.calc-result { padding: 28px; background: linear-gradient(160deg, var(--brand-deep), var(--brand-dark)); color: #fff; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.calc-result::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 70%); top: -80px; right: -80px; opacity: .4; filter: blur(20px); }
.calc-field { margin-bottom: 28px; position: relative; z-index: 1; }
.calc-field-last { margin-bottom: 0; }
.calc-field .cf-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calc-field .cf-label { font-weight: 700; color: var(--heading); font-size: 15px; }
.calc-field .cf-val { font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: 16px; }
[data-theme="dark"] .calc-field .cf-val { color: var(--accent); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 0; padding: 12px 10px; min-height: 44px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 14px; font-family: var(--font-display); transition: all .2s; white-space: nowrap; }
.seg button:hover { border-color: var(--brand); }
.seg button.active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; box-shadow: var(--shadow-sm); }
.calc-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 44px; background: transparent; outline: none; }
.calc-slider::-webkit-slider-runnable-track { height: 7px; border-radius: 100px; background: var(--border-strong); }
.calc-slider::-moz-range-track { height: 7px; border-radius: 100px; background: var(--border-strong); }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8.5px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s; }
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: var(--shadow); cursor: pointer; }
.calc-result .cr-label { font-size: 15px; opacity: .8; font-weight: 600; }
.calc-result .cr-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 60px); line-height: 1.05; margin: 8px 0 4px; letter-spacing: -.02em; }
.calc-result .cr-sub { opacity: .75; font-size: 14px; }
.calc-result .cr-break { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.calc-result .cr-row { display: flex; justify-content: space-between; font-size: 14px; }
.calc-result .cr-row span:first-child { opacity: .8; }
.calc-result .cr-row span:last-child { font-weight: 700; font-family: var(--font-display); }
.calc-result .btn { margin-top: 28px; position: relative; z-index: 1; }
.calc-disclaim { font-size: 12px; color: var(--text-muted); margin-top: 18px; }
.cr-gauge { margin-top: 18px; height: 8px; border-radius: 100px; background: rgba(255,255,255,.16); overflow: hidden; position: relative; z-index: 1; }
.cr-gauge-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--cta), #FFC15E); transition: width .65s var(--ease); width: 0; }

/* ---------- Квиз ---------- */
.quiz { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; max-width: 760px; margin: 0 auto; }
.quiz-bar { height: 6px; background: var(--border); }
.quiz-bar .fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .4s var(--ease); width: 0; }
.quiz-body { padding: 28px; }
.quiz-step-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
[data-theme="dark"] .quiz-step-label { color: var(--accent); }
.quiz-q { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 800; color: var(--heading); margin-bottom: 28px; }
.quiz-opts { display: grid; gap: 12px; }
.quiz-opt { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2); text-align: left; transition: all .2s var(--ease); font-size: 16px; font-weight: 600; color: var(--text); }
.quiz-opt:hover { border-color: var(--brand); background: var(--accent-soft); transform: translateX(4px); }
.quiz-opt .qo-ic { width: 44px; height: 44px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--brand); }
[data-theme="dark"] .quiz-opt .qo-ic { color: var(--accent); }
.quiz-opt .qo-ic .micon { font-size: 24px; }
.quiz-back { margin-top: 24px; background: none; color: var(--text-muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.quiz-back:hover { color: var(--brand); }
.quiz-result { text-align: center; padding: 12px 0; }
.quiz-result .qr-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.quiz-result .qr-logo { width: 92px; height: 92px; margin: 18px auto 10px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.quiz-result .qr-logo img { width: 64px; height: 64px; object-fit: contain; }
.quiz-result h3 { font-size: 30px; }
.quiz-result .qr-desc { color: var(--text-muted); max-width: 460px; margin: 12px auto 24px; }
.quiz-result .qr-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Сравнение ---------- */
.cmp-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.cmp-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.cmp-filter button { padding: 9px 16px; min-height: 44px; border-radius: 100px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 700; font-size: 13.5px; font-family: var(--font-display); transition: all .2s; }
.cmp-filter button.active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.cmp-hint { font-size: 13px; color: var(--text-muted); }
.cmp-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.cmp-scroll { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 760px; }
table.cmp thead th { text-align: left; padding: 18px; font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
table.cmp th.sortable { cursor: pointer; user-select: none; transition: color .2s; }
table.cmp th.sortable:hover { color: var(--brand); }
table.cmp th .arrow { opacity: .4; margin-left: 5px; transition: opacity .2s; }
table.cmp th.sorted .arrow { opacity: 1; color: var(--brand); }
table.cmp tbody tr { transition: background .2s; }
table.cmp tbody tr:hover { background: var(--accent-soft); }
table.cmp tbody td { padding: 16px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.cmp tbody tr:last-child td { border-bottom: none; }
.cmp-svc { display: flex; align-items: center; gap: 12px; }
.cmp-svc img { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: #fff; padding: 3px; border: 1px solid var(--border); }
.cmp-svc .nm { font-family: var(--font-display); font-weight: 800; color: var(--heading); font-size: 15px; }
.cmp-svc .tag { font-size: 11px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 1px 7px; border-radius: 6px; margin-left: 6px; }
.cmp-price { font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: 17px; }
[data-theme="dark"] .cmp-price { color: var(--accent); }
.cmp-price small { display: block; font-weight: 500; color: var(--text-muted); font-size: 12px; }
.cmp-cell-muted { color: var(--text-muted); font-size: 14px; }
.cmp-pay { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.cmp-pay .pdot { width: 7px; height: 7px; border-radius: 50%; background: #1Fae65; }
.btn-apply-sm { display: inline-flex; align-items: center; background: var(--brand-dark); color: #fff; padding: 9px 18px; min-height: 40px; border-radius: 10px; font-weight: 700; font-size: 13.5px; font-family: var(--font-display); transition: all .2s; white-space: nowrap; }
.btn-apply-sm:hover { background: var(--cta); transform: translateY(-1px); }

/* ---------- Кому подходит ---------- */
.who-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.who-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.who-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.who-icon { width: 56px; height: 56px; border-radius: 15px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 8px 20px rgba(26,61,124,.22); }
.who-icon .micon { font-size: 30px; }
.who-card h3 { font-size: 18px; margin-bottom: 8px; }
.who-card p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Astana Hub ---------- */
.hub { background: linear-gradient(150deg, var(--brand-deep), var(--brand-dark) 60%, #15346B); border-radius: var(--radius-lg); padding: 28px; color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.hub::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%); }
.hub-content { position: relative; z-index: 1; }
.hub-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 700; margin-bottom: 22px; backdrop-filter: blur(8px); }
.hub-badge .hb-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.hub h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.hub p { color: rgba(255,255,255,.82); margin-top: 16px; font-size: 17px; max-width: 520px; }
.hub-feats { margin-top: 28px; display: grid; gap: 14px; }
.hub-feat { display: flex; gap: 13px; align-items: flex-start; }
.hub-feat .hf-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.hub-feat .hf-ic .micon { font-size: 22px; }
.hub-feat .hf-t { font-weight: 700; font-family: var(--font-display); }
.hub-feat .hf-d { font-size: 14px; color: rgba(255,255,255,.7); }
.cabinet { position: relative; z-index: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(10px); box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.cabinet-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.cabinet-top .cdot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.25); }
.cabinet-top .cabinet-title { margin-left: auto; font-size: 12px; color: rgba(255,255,255,.65); font-weight: 600; }
.cabinet-bal { background: linear-gradient(135deg, var(--cta), var(--cta-press)); border-radius: var(--radius-sm); padding: 20px; color: #fff; }
.cabinet-bal .cb-l { font-size: 13px; opacity: .9; }
.cabinet-bal .cb-n { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin-top: 4px; }
.cabinet-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.cabinet-row { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.08); border-radius: 12px; padding: 13px 15px; }
.cabinet-row .cr-l { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.cabinet-row .cr-ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: #fff; }
.cabinet-row .cr-ic .micon { font-size: 18px; }
.cabinet-row .cr-amt { font-family: var(--font-display); font-weight: 700; color: #6EE7B7; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq-item.open { box-shadow: var(--shadow); border-color: var(--border-strong); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 26px; cursor: pointer; user-select: none; width: 100%; text-align: left; background: none; }
.faq-q span:first-child { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--heading); }
.faq-tog { display: block; position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); flex-shrink: 0; transition: transform .3s var(--ease), background .3s, color .3s; }
.faq-tog::before, .faq-tog::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq-tog::after { transform: translate(-50%, -50%) rotate(90deg); }
[data-theme="dark"] .faq-tog { color: var(--accent); }
.faq-item.open .faq-tog { transform: rotate(45deg); background: var(--brand-dark); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; color: var(--text-muted); font-size: 15.5px; line-height: 1.65; }

/* ---------- Отзывы ---------- */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-stars { display: flex; gap: 3px; margin-bottom: 16px; color: #FBBF24; }
.review-stars .micon { font-size: 19px; }
.review-text { color: var(--text); font-size: 15.5px; line-height: 1.65; }
.review-who { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.review-av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.review-who .rw-n { font-family: var(--font-display); font-weight: 700; color: var(--heading); font-size: 15px; }
.review-who .rw-m { font-size: 13px; color: var(--text-muted); }

/* ---------- Финальный CTA ---------- */
.final-cta { background: linear-gradient(150deg, var(--brand-deep), var(--brand-dark) 65%, #16346D); border-radius: var(--radius-lg); padding: 28px; color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.final-cta::before { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 70%); top: -160px; left: -120px; opacity: .35; filter: blur(40px); }
.final-cta::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 30% 40%, #000, transparent 65%); -webkit-mask-image: radial-gradient(circle at 30% 40%, #000, transparent 65%); }
.final-cta-content { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.final-cta p { color: rgba(255,255,255,.85); margin-top: 18px; font-size: 18px; max-width: 480px; }
.final-cta-points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.final-cta-points li { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.final-cta-points .micon { font-size: 22px; flex-shrink: 0; color: #4ADE80; }
.final-cta .form-card { z-index: 1; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,.78); padding: 64px 0 32px; }
[data-theme="dark"] .site-footer { background: #060d1c; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 44px; }
.footer-brand .brand-logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-family: var(--font-display); }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Лента заказов ---------- */
/* minmax(0,…) — иначе колонка растягивается по min-content плиток и распирает страницу. */
.lo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: stretch; }
.lo-side { display: flex; flex-direction: column; gap: 16px; }
.lo-cities { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm); display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; justify-content: space-between; }
.lo-city { display: flex; flex: 1 1 140px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; transition: background .2s; width: 100%; }
.lo-city:hover { background: var(--surface-2); }
.lo-city.active { background: var(--brand-dark); }
.lo-city-name { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--heading); }
.lo-city-name .micon { font-size: 19px; color: var(--brand); }
[data-theme="dark"] .lo-city-name .micon { color: var(--accent); }
.lo-city.active .lo-city-name, .lo-city.active .lo-city-name .micon { color: #fff; }
.lo-city-num { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--text-muted); background: var(--surface-2); padding: 3px 11px; border-radius: 100px; }
.lo-city.active .lo-city-num { background: rgba(255,255,255,.18); color: #fff; }
/* Две плитки в ряд не влезают на экраны уже ~360px и распирают всю секцию. */
.lo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 16px; }
.lo-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.lo-tile-num { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--brand); letter-spacing: -.02em; }
[data-theme="dark"] .lo-tile-num { color: var(--accent); }
.lo-tile-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.lo-feed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); }
.lo-feed-head { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.lo-live { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--heading); }
.lo-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #16C172; animation: lopulse 1.8s infinite; }
@keyframes lopulse { 0% { box-shadow: 0 0 0 0 rgba(22,193,114,.55); } 70% { box-shadow: 0 0 0 8px rgba(22,193,114,0); } 100% { box-shadow: 0 0 0 0 rgba(22,193,114,0); } }
.lo-online { font-size: 13px; color: var(--text-muted); }
.lo-online b { color: var(--heading); font-family: var(--font-display); }
.lo-list { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface-2); transition: border-color .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease); animation: orderIn .5s var(--ease); }
.order-row.fresh { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--glow); }
@keyframes orderIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.order-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--brand); transition: background .45s, color .45s; }
[data-theme="dark"] .order-ic { color: var(--accent); }
.order-row.fresh .order-ic { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-color: transparent; }
.order-ic .micon { font-size: 22px; }
.order-main { flex: 1; min-width: 0; }
.order-place { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-addr { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-meta { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.order-price { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--heading); white-space: nowrap; }
.order-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* ---------- Прогресс прокрутки ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: left; transform: scaleX(0); z-index: 200; will-change: transform; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Тост ---------- */
.live-toast { position: fixed; left: 22px; bottom: 22px; z-index: 150; display: none; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 30px 14px 13px; box-shadow: var(--shadow-lg); max-width: 320px; opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.live-toast.show { opacity: 1; transform: none; pointer-events: auto; }
.live-toast .lt-ic { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.live-toast .lt-ic .micon { font-size: 24px; }
.live-toast .lt-ic.payout { background: rgba(16,193,114,.14); color: #0F9F5E; }
.live-toast .lt-ic.join { background: var(--accent-soft); color: var(--brand); }
[data-theme="dark"] .live-toast .lt-ic.join { color: var(--accent); }
.live-toast .lt-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--heading); }
.live-toast .lt-text { font-size: 13px; color: var(--text-muted); }
.live-toast .lt-x { position: absolute; top: 8px; right: 11px; font-size: 18px; line-height: 1; color: var(--text-muted); opacity: .55; }
.live-toast .lt-x:hover { opacity: 1; }

/* ---------- Наверх ---------- */
.to-top { position: fixed; right: 16px; bottom: 88px; z-index: 150; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-dark); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: all .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--cta); transform: translateY(-2px); }
.to-top .micon { font-size: 24px; }

/* ---------- Мобильное меню ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--surface); transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; padding: 100px 32px 40px; }
.mobile-menu.open { transform: none; }
.mobile-menu a { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--heading); padding: 16px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 24px; border-bottom: none; color: #fff; }

.mobile-cta-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 160; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(18,44,92,.12); }
.mobile-cta-bar .mc-info { display: flex; flex-direction: column; line-height: 1.15; }
.mobile-cta-bar .mc-info strong { font-family: var(--font-display); font-weight: 800; color: var(--heading); font-size: 16px; }
.mobile-cta-bar .mc-info span { font-size: 11.5px; color: var(--text-muted); }
.mobile-cta-bar .btn { padding: 12px 18px; font-size: 14px; min-height: 44px; }

/* ---------- Юридические страницы ---------- */
.legal-inner { max-width: 860px; }
.legal-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); margin-bottom: 16px; }
.legal-crumbs a { color: var(--brand); font-weight: 600; }
[data-theme="dark"] .legal-crumbs a { color: var(--accent); }
.legal-title { font-size: clamp(28px, 4vw, 42px); }
.legal-updated { margin-top: 10px; color: var(--text-muted); font-size: 14.5px; }
.legal-body { margin-top: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(20px, 4vw, 40px); }
.legal-body h2 { font-size: clamp(19px, 2.4vw, 23px); margin-top: 34px; }
.legal-body > h2:first-child { margin-top: 0; }
.legal-body p { margin-top: 14px; line-height: 1.7; }
.legal-body ul { margin-top: 14px; padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.legal-body a { color: var(--brand); text-decoration: underline; }
[data-theme="dark"] .legal-body a { color: var(--accent); }
.legal-back { margin-top: 30px; }

/* ---------- Адаптив: mobile-first ----------
   Базовые правила выше описывают мобильную раскладку; ниже она расширяется
   до планшета и десктопа. */

/* Планшет и шире */
@media (min-width: 721px) {
    .wrap { padding: 0 24px; }
    .section { padding: 96px 0; }
    .section-tight { padding: 64px 0; }
    .legal { padding-top: calc(var(--header-h) + 48px); }
    body { padding-bottom: 0; }

    .main-nav { display: flex; }
    .header-actions .lang-switch { display: inline-flex; }
    .header-actions .btn-cta { display: inline-flex; }
    .burger { display: none; }
    .mobile-cta-bar { display: none; }

    .hero { padding-top: calc(var(--header-h) + 70px); }
    .hero-badge { white-space: nowrap; }
    .hero-earn .cap { font-size: clamp(12.5px, 1.15vw, 14.5px); }

    .stats-grid, .why-grid, .steps, .who-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .hub, .final-cta { padding: 44px; }
    .calc-controls, .calc-result { padding: 40px; }
    .quiz-body { padding: 44px; }

    .lo-feed { padding: 22px; }
    .lo-feed-head { flex-direction: row; align-items: center; gap: 12px; }
    .lo-tiles { grid-template-columns: 1fr 1fr; }

    .live-toast { display: flex; }
    .to-top { right: 22px; bottom: 22px; width: 48px; height: 48px; }
}

/* Десктоп */
@media (min-width: 1025px) {
    .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }

    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .step-card .step-arrow { display: block; }
    .who-grid { grid-template-columns: repeat(4, 1fr); }
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }

    .calc { grid-template-columns: 1fr 1fr; }
    .calc-controls { border-right: 1px solid var(--border); border-bottom: none; }

    .hub { grid-template-columns: 1.1fr 0.9fr; gap: 48px; padding: 56px; }
    .final-cta { grid-template-columns: 1fr 440px; gap: 52px; padding: 60px; }

    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }

    .lo-grid { grid-template-columns: 340px 1fr; }
    .lo-cities { flex-direction: column; flex-wrap: nowrap; }
    .lo-city { flex: 0 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
    * { scroll-behavior: auto !important; }
}
