/* ═══════════════════════════════════════════════════
   PayWall — landing styles
   Dark + gold by default, light theme via [data-theme="light"]
   No external assets: fonts, icons and art are inline.
   ═══════════════════════════════════════════════════ */

/* ─────────── tokens ─────────── */

:root {
    --gold:   #d4af37;
    --gold-2: #f0d98c;
    --gold-3: #a8842a;
    --grad-gold: linear-gradient(135deg, #f7e3a1 0%, #d4af37 45%, #b08d2c 100%);

    --radius:    18px;
    --radius-sm: 12px;
    --maxw:      1200px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;

    --ease: cubic-bezier(.22, .8, .3, 1);
}

/* dark (default) */
:root, [data-theme="dark"] {
    --bg:        #08090c;
    --bg-alt:    #0c0d12;
    --surface:   #111219;
    --surface-2: #161822;
    --border:    #23252f;
    --border-2:  #1a1c24;

    --text:  #f2efe6;
    --muted: #9a9a93;
    /* Третичный цвет: подписи, капшены, мелочь в макете дашборда. Держим его
       на контрасте не ниже 4.5:1 — это всё ещё читаемый текст, а не декор. */
    --dim:   #8a8a84;

    --gold-soft: rgba(212, 175, 55, .12);
    --gold-line: rgba(212, 175, 55, .32);
    --gold-text: #e6c964;

    --ok:   #4ade80;
    --warn: #fbbf24;
    --err:  #f87171;

    --shadow: 0 40px 90px -50px rgba(0, 0, 0, .95);
    --glow:   0 10px 40px -14px rgba(212, 175, 55, .55);
}

[data-theme="light"] {
    --bg:        #fbfaf6;
    --bg-alt:    #f4f2ea;
    --surface:   #ffffff;
    --surface-2: #f7f5ee;
    --border:    #e4dfd0;
    --border-2:  #eeeade;

    --text:  #16160f;
    --muted: #63625a;
    --dim:   #6f6d63;

    --gold-soft: rgba(168, 132, 42, .1);
    --gold-line: rgba(168, 132, 42, .35);
    /* Заметно темнее самого золота: акцентным текстом набраны мелкие бейджи
       и надзаголовки, и читаться они должны в том числе на золотой подложке. */
    --gold-text: #755b16;

    --ok:   #166534;
    --warn: #b45309;
    --err:  #dc2626;

    --shadow: 0 30px 70px -46px rgba(60, 48, 12, .45);
    --glow:   0 10px 34px -14px rgba(168, 132, 42, .5);
}

/* ─────────── base ─────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background .3s var(--ease), color .3s var(--ease);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic { width: 22px; height: 22px; flex: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.wrap--narrow { max-width: 860px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
    left: 16px; top: 16px; z-index: 200;
    background: var(--gold); color: #14120a;
    padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600;
}

::selection { background: var(--gold); color: #14120a; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ─────────── type ─────────── */

.h2 {
    font-size: clamp(28px, 3.9vw, 46px);
    line-height: 1.14;
    letter-spacing: -.025em;
    font-weight: 700;
    margin: 0 0 18px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-text);
    margin: 0 0 14px;
}

.slead {
    font-size: 18px;
    color: var(--muted);
    max-width: 70ch;
    margin: 0;
}

.gold {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.shead { margin-bottom: 52px; max-width: 900px; }
.shead--center { margin-inline: auto; text-align: center; }
.shead--center .slead { margin-inline: auto; }

.mockcap { text-align: center; font-size: 13px; color: var(--dim); margin: 14px 0 0; }

/* ─────────── buttons ─────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font: inherit;
    font-weight: 650;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 13px 24px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .14s var(--ease), filter .18s, background .18s, border-color .18s, box-shadow .25s;
}
.btn:active { transform: translateY(1px) scale(.995); }

.btn--gold {
    background: var(--grad-gold);
    color: #14120a;
    box-shadow: var(--glow);
}
.btn--gold:hover { filter: brightness(1.07); box-shadow: 0 14px 46px -14px rgba(212, 175, 55, .75); }

.btn--outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn--outline:hover { border-color: var(--gold-line); background: var(--gold-soft); }

.btn--sm { padding: 9px 17px; font-size: 15px; }
.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--full { width: 100%; }

/* ─────────── nav ─────────── */

.nav {
    position: sticky; top: 0; z-index: 90;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, background .3s;
}
.nav.is-stuck { border-bottom-color: var(--border-2); }

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

.logo { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.logo__mark {
    width: 34px; height: 34px; flex: none;
    border-radius: 10px;
    background: var(--grad-gold);
    color: #14120a;
    display: grid; place-items: center;
    box-shadow: var(--glow);
}
.logo__mark svg { width: 24px; height: 24px; }
.logo__text em { font-style: normal; color: var(--gold-text); }

.nav__links { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
.nav__links a { position: relative; padding: 4px 0; transition: color .18s; }
.nav__links a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
    background: var(--grad-gold); transition: right .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { right: 0; }

.nav__side { display: flex; align-items: center; gap: 10px; }

.icon-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s;
}
.icon-btn:hover { color: var(--gold-text); border-color: var(--gold-line); background: var(--gold-soft); }
.icon-btn .ico { width: 19px; height: 19px; }
[data-theme="dark"] .ico--sun  { display: block; }
[data-theme="dark"] .ico--moon { display: none; }
[data-theme="light"] .ico--sun  { display: none; }
[data-theme="light"] .ico--moon { display: block; }

.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.lang__btn {
    font: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
    padding: 8px 12px;
    background: transparent; color: var(--muted); border: none; cursor: pointer;
    transition: background .18s, color .18s;
}
.lang__btn.is-active { background: var(--grad-gold); color: #14120a; }

.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: transparent; cursor: pointer; padding: 0; }
.burger span { display: block; width: 17px; height: 1.6px; margin: 3.4px auto; background: var(--text); transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobmenu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 10px 26px 24px;
    border-top: 1px solid var(--border-2);
    background: var(--bg);
}
.mobmenu.is-open { display: flex; }
.mobmenu a:not(.btn) { padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--border-2); }
.mobmenu .btn { margin-top: 14px; }

/* ─────────── hero ─────────── */

.hero {
    position: relative;
    padding: clamp(60px, 10vw, 130px) 0 clamp(56px, 8vw, 100px);
    overflow: hidden;
    border-bottom: 1px solid var(--border-2);
}

.hero__aura {
    position: absolute; top: -340px; left: 50%; transform: translateX(-50%);
    width: 1100px; height: 800px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(212, 175, 55, .22), transparent 70%);
}
[data-theme="light"] .hero__aura { background: radial-gradient(closest-side, rgba(212, 175, 55, .3), transparent 70%); }

.hero__grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--border-2) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-2) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
    opacity: .6;
}

.hero__inner { position: relative; text-align: center; }

.pill {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 13.5px; color: var(--muted);
    border: 1px solid var(--gold-line);
    background: var(--gold-soft);
    border-radius: 999px;
    padding: 7px 16px 7px 12px;
    margin-bottom: 26px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.hero__title {
    font-size: clamp(35px, 6.4vw, 72px);
    line-height: 1.06;
    letter-spacing: -.035em;
    font-weight: 760;
    margin: 0 0 24px;
}

.hero__lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 68ch; margin: 0 auto 36px; }

.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 42px; }

.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0 0 44px; padding: 0; }
.hero__chips li {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 14px; color: var(--muted);
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 8px 16px;
}
.hero__chips .ic { width: 17px; height: 17px; color: var(--gold-text); }

.hero__facts {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
    background: var(--gold-line);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: left;
}
.fact {
    display: grid; gap: 6px;
    padding: 22px 30px;
    background: linear-gradient(135deg, var(--gold-soft), transparent 70%), var(--surface);
}
.fact__num {
    font-size: clamp(26px, 3.4vw, 38px); font-weight: 760; letter-spacing: -.03em; line-height: 1.05;
    background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fact__num em { font-style: normal; font-size: .48em; }
.fact__cap { font-size: 14.5px; color: var(--muted); max-width: 30ch; }

/* ─────────── sections ─────────── */

.section { padding: clamp(64px, 8.5vw, 112px) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border-2); }

/* ─────────── cards / grid ─────────── */

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    overflow: hidden;
    transition: border-color .22s, transform .22s var(--ease), box-shadow .25s;
}
.card::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
    opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card__ic {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-line);
    color: var(--gold-text);
    margin-bottom: 16px;
}
.card__title { font-size: 18px; font-weight: 650; margin: 0 0 8px; letter-spacing: -.015em; }
.card__text { font-size: 15px; color: var(--muted); margin: 0; }

/* ─────────── steps ─────────── */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: border-color .22s, transform .22s var(--ease);
}
.step:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.step__num {
    display: block;
    font-size: 30px; font-weight: 760; letter-spacing: -.03em;
    background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 12px;
}
.step__title { font-size: 17px; font-weight: 650; margin: 0 0 8px; }
.step__text { font-size: 15px; color: var(--muted); margin: 0; }

/* ─────────── способы оплаты ─────────── */

.pays {
    margin-top: 44px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.pays__head { margin-bottom: 24px; }
.pays__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.pays__sub { font-size: 15px; color: var(--muted); margin: 0; max-width: 66ch; }

.pays__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.pay {
    display: grid; gap: 6px; align-content: start;
    padding: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    transition: border-color .2s, transform .2s var(--ease);
}
.pay:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.pay__ic {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-text);
    margin-bottom: 4px;
}
.pay__name { font-size: 15.5px; font-weight: 650; }
.pay__desc { font-size: 13.5px; color: var(--muted); }
.pay .badge { justify-self: start; margin-top: 6px; }

.badge--live { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.badge--req  { background: var(--surface); color: var(--dim); border: 1px solid var(--border); }

/* ─────────── dashboard mockup ─────────── */

.dash {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dash__chrome {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 18px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.dash__url { font-size: 12.5px; color: var(--dim); flex: 1; text-align: center; }
.dash__live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.dash__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s infinite; }

.dash__tabs { display: flex; gap: 4px; padding: 12px 18px 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.dash__tab {
    font: inherit; font-size: 14.5px; font-weight: 600;
    padding: 9px 18px; border: none; background: transparent; color: var(--muted);
    cursor: pointer; border-radius: 10px 10px 0 0; border-bottom: 2px solid transparent;
    white-space: nowrap; transition: color .18s, border-color .18s, background .18s;
}
.dash__tab:hover { color: var(--text); }
.dash__tab.is-active { color: var(--gold-text); border-bottom-color: var(--gold); background: var(--gold-soft); }

.dash__body { padding: 22px; }
.dash__pane { display: none; }
.dash__pane.is-active { display: grid; gap: 16px; animation: fadein .35s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
    display: grid; gap: 6px;
    padding: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
}
.kpi__label { font-size: 12px; color: var(--dim); letter-spacing: .02em; }
.kpi__val { font-size: 25px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.kpi__val em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi__delta { font-size: 12.5px; font-weight: 600; }
.kpi__delta.up { color: var(--ok); }
.kpi__delta.down { color: var(--ok); }

.dash__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }

.panel {
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    padding: 18px;
}
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 0 0 16px; }
.panel__tag { font-size: 11.5px; color: var(--dim); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.panel__big { font-size: 30px; font-weight: 730; letter-spacing: -.03em; margin: 0; }
.panel__big em { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 500; }
.panel__sub { font-size: 13px; color: var(--dim); margin: 6px 0 0; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.bars span {
    flex: 1; height: var(--h); border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, var(--gold-2), var(--gold-3));
    opacity: .55;
    transform-origin: bottom;
    animation: grow .8s var(--ease) backwards;
}
.bars span:last-child { opacity: 1; box-shadow: 0 0 22px -4px var(--gold); }
@keyframes grow { from { transform: scaleY(0); } }
.bars span:nth-child(1){animation-delay:.02s}.bars span:nth-child(2){animation-delay:.06s}
.bars span:nth-child(3){animation-delay:.1s}.bars span:nth-child(4){animation-delay:.14s}
.bars span:nth-child(5){animation-delay:.18s}.bars span:nth-child(6){animation-delay:.22s}
.bars span:nth-child(7){animation-delay:.26s}.bars span:nth-child(8){animation-delay:.3s}
.bars span:nth-child(9){animation-delay:.34s}.bars span:nth-child(10){animation-delay:.38s}
.bars span:nth-child(11){animation-delay:.42s}.bars span:nth-child(12){animation-delay:.46s}

.legend { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 11px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.legend b { margin-left: auto; color: var(--text); font-weight: 650; }

.stack { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.stack span { width: var(--w); background: var(--c); }

.cohort { display: grid; gap: 6px; font-size: 13px; overflow-x: auto; }
.cohort__row { display: grid; grid-template-columns: 70px repeat(6, 1fr); gap: 6px; min-width: 480px; align-items: center; }
.cohort__row--head { color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.cohort__row > span:first-child { color: var(--muted); }
/* Заливка меняет насыщенность вместе со значением, поэтому текст всегда
   основного цвета: на тёмной теме светлый, на светлой — тёмный. Так контраст
   держится и на самой бледной ячейке, и на самой плотной. */
.cohort b {
    text-align: center; padding: 9px 4px; border-radius: 7px; font-weight: 600;
    background: color-mix(in srgb, var(--gold) calc(var(--v) * 55%), transparent);
    color: var(--text);
}
.cohort b.empty { background: var(--surface); color: var(--dim); }

.log { width: 100%; font-size: 13.5px; }
.log td { padding: 11px 8px; border-bottom: 1px solid var(--border-2); color: var(--muted); }
.log tr:last-child td { border-bottom: none; }
.log__t { color: var(--dim); width: 62px; font-variant-numeric: tabular-nums; }
.log__s { width: 150px; font-weight: 600; }
.log__s.ok { color: var(--ok); }
.log__s.warn { color: var(--warn); }
.log__s.info { color: var(--gold-text); }
.log__a { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

.dash__feats { margin-top: 44px; }

/* ─────────── split / AI ─────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 16px; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .45em;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.ticks li::after {
    content: ""; position: absolute; left: 5.5px; top: .72em;
    width: 6px; height: 3px;
    border-left: 1.8px solid var(--gold-text); border-bottom: 1.8px solid var(--gold-text);
    transform: rotate(-45deg);
}

.ai { overflow: hidden; }
.ai__aura {
    position: absolute; right: -180px; top: 10%;
    width: 700px; height: 700px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(212, 175, 55, .16), transparent 70%);
}

.chat {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.chat__head { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.chat__ava { width: 32px; height: 32px; border-radius: 9px; background: var(--grad-gold); color: #14120a; display: grid; place-items: center; }
.chat__ava .ic { width: 18px; height: 18px; }
.chat__name { font-weight: 650; font-size: 15px; }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.badge--soon { margin-left: auto; background: var(--gold-soft); color: var(--gold-text); border: 1px solid var(--gold-line); }

.chat__body { padding: 18px; display: grid; gap: 12px; }
.msg { max-width: 88%; padding: 13px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; }
.msg p { margin: 0; }
.msg--me { justify-self: end; background: var(--grad-gold); color: #14120a; border-bottom-right-radius: 5px; font-weight: 500; }
.msg--ai { justify-self: start; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); border-bottom-left-radius: 5px; }
.msg__hint { margin-top: 9px !important; padding-top: 9px; border-top: 1px dashed var(--border); color: var(--gold-text); font-size: 13.5px; }

.chat__input {
    display: flex; align-items: center; gap: 4px;
    padding: 15px 18px; border-top: 1px solid var(--border);
    color: var(--dim); font-size: 14px; background: var(--surface-2);
}
.chat__input i { display: inline-block; width: 1.5px; height: 15px; background: var(--gold); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ─────────── SLA ─────────── */

.sla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px; }
.sla__item {
    text-align: center;
    padding: 32px 22px;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--gold-soft), transparent 60%), var(--surface);
}
.sla__num { display: block; font-size: 40px; font-weight: 760; letter-spacing: -.035em; line-height: 1.05; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sla__num em { font-style: normal; font-size: 19px; }
.sla__cap { display: block; font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ─────────── feature columns ─────────── */

.fcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fcol {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: border-color .22s;
}
.fcol:hover { border-color: var(--gold-line); }
.fcol__title { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 700; margin: 0 0 20px; letter-spacing: -.01em; }
.fcol__title .ic { color: var(--gold-text); }

.flist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.flist li { display: grid; gap: 3px; position: relative; padding-left: 22px; }
.flist li::before {
    content: ""; position: absolute; left: 0; top: .55em;
    width: 7px; height: 7px; border-radius: 2px;
    background: var(--grad-gold);
}
.flist b { font-size: 15px; font-weight: 650; }
.flist span { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ─────────── pricing ─────────── */

/* ─── лестница ставок ─── */

.ladder {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    margin-bottom: 18px;
}
.ladder__row {
    display: grid;
    grid-template-columns: 1fr 130px 1.4fr;
    gap: 18px;
    align-items: center;
    padding: 16px 26px;
    border-bottom: 1px solid var(--border-2);
    transition: background .18s;
}
.ladder__row:last-child { border-bottom: none; }
.ladder__row:not(.ladder__row--head):hover { background: var(--gold-soft); }
.ladder__row--head {
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--dim); background: var(--surface-2);
}
/* подсвечивается калькулятором */
.ladder__row.is-current { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }

.ladder__range { font-weight: 600; font-size: 16px; }
.ladder__rate {
    font-size: 26px; font-weight: 770; letter-spacing: -.03em;
    background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ladder__note { font-size: 14.5px; color: var(--muted); }

/* ─── калькулятор ─── */

.calc {
    border: 1px solid var(--gold-line);
    border-radius: 20px;
    background: linear-gradient(180deg, var(--gold-soft), transparent 45%), var(--surface);
    padding: clamp(24px, 3.4vw, 38px);
    margin-bottom: 34px;
    box-shadow: var(--shadow);
}
.calc__head { margin-bottom: 26px; }
.calc__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
.calc__sub { font-size: 15px; color: var(--muted); margin: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.calc__slider { display: block; margin-bottom: 28px; }

#calcRange {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px; border-radius: 999px;
    background: linear-gradient(90deg, var(--gold) var(--fill, 42%), var(--border) var(--fill, 42%));
    outline: none; cursor: pointer;
}
#calcRange::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--grad-gold);
    border: 3px solid var(--surface);
    box-shadow: var(--glow);
    cursor: grab;
}
#calcRange::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--surface);
    box-shadow: var(--glow);
    cursor: grab;
}

.calc__out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.calc__cell {
    display: grid; gap: 5px; align-content: start;
    padding: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
}
.calc__cell--rate { border-color: var(--gold-line); background: var(--gold-soft); }
.calc__cell--keep { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.calc__label { font-size: 12.5px; color: var(--dim); }
.calc__val { font-size: clamp(20px, 2.2vw, 26px); font-weight: 730; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc__cell--keep .calc__val { color: var(--ok); }
.calc__unit { font-size: 12px; color: var(--dim); }
/* Составной селектор, чтобы скрытие выигрывало у display:flex ниже
   независимо от порядка правил. */
.calc__min.is-hidden { display: none; }

.calc__min {
    display: flex; gap: 10px;
    font-size: 13.5px; color: var(--gold-text);
    margin: 18px 0 0; padding: 12px 16px;
    border: 1px dashed var(--gold-line);
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
}
.calc__note { font-size: 13.5px; color: var(--dim); margin: 18px 0 0; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.plan--mor { border-color: var(--gold-line); }

.plan {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 34px 28px;
    transition: border-color .22s, transform .22s var(--ease), box-shadow .25s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.plan--main {
    border-color: var(--gold-line);
    background: linear-gradient(180deg, var(--gold-soft), transparent 42%), var(--surface);
    box-shadow: var(--shadow);
}

.plan__badge {
    position: absolute; top: -13px; left: 28px;
    background: var(--grad-gold); color: #14120a;
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 999px;
    box-shadow: var(--glow);
}
.plan__ic {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-text);
    margin-bottom: 16px;
}
.plan__name { font-size: 22px; font-weight: 720; margin: 0 0 5px; letter-spacing: -.02em; }
.plan__for { font-size: 14px; color: var(--dim); margin: 0 0 20px; min-height: 42px; }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.plan__amount { font-size: clamp(38px, 4vw, 52px); font-weight: 770; letter-spacing: -.04em; line-height: 1; }
.plan__per { font-size: 16px; color: var(--muted); }
.plan__note { font-size: 13.5px; color: var(--dim); margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border-2); min-height: 60px; }

.plan__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; }
.plan__list li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--muted); }
.plan__list li::before {
    content: ""; position: absolute; left: 0; top: .3em;
    width: 17px; height: 17px; border-radius: 50%;
    background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.plan__list li::after {
    content: ""; position: absolute; left: 5px; top: .55em;
    width: 6px; height: 3px;
    border-left: 1.8px solid var(--gold-text); border-bottom: 1.8px solid var(--gold-text);
    transform: rotate(-45deg);
}

.prnote {
    display: flex; gap: 14px; align-items: flex-start;
    margin-top: 26px; padding: 20px 24px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.prnote .ic { color: var(--gold-text); margin-top: 2px; }
.prnote p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ─────────── compare ─────────── */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.cmp { width: 100%; min-width: 660px; font-size: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-2); }
.cmp tr:last-child td { border-bottom: none; }
.cmp thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 700; }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; width: 16%; }
.cmp td:first-child { color: var(--muted); }
.cmp .yes { color: var(--ok); font-weight: 700; font-size: 17px; }
.cmp .no { color: var(--dim); }
.cmp .is-us { background: var(--gold-soft); }
.cmp thead .is-us { color: var(--gold-text); font-weight: 800; letter-spacing: .04em; font-size: 14px; }

/* ─────────── faq ─────────── */

.faq { display: grid; gap: 12px; }
.qa { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 24px; transition: border-color .22s; }
.qa[open] { border-color: var(--gold-line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 38px 20px 0; font-weight: 620; font-size: 17px; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
    content: ""; position: absolute; right: 4px; top: 50%;
    background: var(--gold-text); transition: transform .25s var(--ease), opacity .2s;
}
.qa summary::before { width: 13px; height: 1.8px; transform: translateY(-50%); }
.qa summary::after { width: 1.8px; height: 13px; right: 9.6px; transform: translateY(-50%); }
.qa[open] summary::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.qa > div { padding-bottom: 22px; }
.qa p { margin: 0; color: var(--muted); font-size: 16px; }

/* ─────────── contact ─────────── */

.contact { overflow: hidden; }
.contact__aura {
    position: absolute; left: 50%; bottom: -300px; transform: translateX(-50%);
    width: 1000px; height: 600px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(212, 175, 55, .18), transparent 70%);
}

.contact__box {
    position: relative;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px;
    background: var(--surface);
    border: 1px solid var(--gold-line);
    border-radius: 24px;
    padding: clamp(30px, 4.5vw, 56px);
    box-shadow: var(--shadow);
}

.contacts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.contacts a {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.contacts a:hover { border-color: var(--gold-line); transform: translateX(3px); background: var(--gold-soft); }
.contacts__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--grad-gold); color: #14120a; flex: none; }
.contacts b { display: block; font-size: 12.5px; color: var(--dim); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.contacts em { font-style: normal; font-size: 16px; font-weight: 600; }

/* ─────────── form ─────────── */

.form { display: grid; gap: 15px; }
.form__title { font-size: 16px; font-weight: 650; margin: 0 0 4px; }

.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--muted); }

.field input, .field select {
    font: inherit; font-size: 16px; color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 15px; width: 100%;
    transition: border-color .16s, box-shadow .16s;
}
.field input::placeholder { color: var(--dim); }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field input.is-error, .field select.is-error { border-color: var(--err); }

.field select {
    appearance: none; padding-right: 42px;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 21px) 22px, calc(100% - 16px) 22px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
.field select option { background: var(--bg-alt); color: var(--text); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__note { font-size: 12.5px; color: var(--dim); margin: 0; text-align: center; }
.form__status { margin: 0; font-size: 15px; text-align: center; min-height: 22px; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }

/* ─────────── footer ─────────── */

.footer { border-top: 1px solid var(--border-2); padding: 60px 0 30px; background: var(--bg-alt); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__tag { font-size: 14px; color: var(--dim); margin: 16px 0 0; max-width: 36ch; }
.footer__col { display: flex; flex-direction: column; gap: 11px; font-size: 15px; color: var(--muted); }
.footer__col h4 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 4px; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding-top: 26px; border-top: 1px solid var(--border-2);
}
.footer__bottom p { margin: 0; font-size: 13px; color: var(--dim); }

/* ─────────── reveal ─────────── */

/* Прячем только при живом JS: класс .js ставится инлайн в <head>.
   Без скрипта — и если он почему-то не отработал — страница видна целиком. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ─────────── responsive ─────────── */

@media (max-width: 1100px) {
    .nav__links { display: none; }
    .burger { display: block; }
    .nav__cta { display: none; }
    .fcols { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: 1fr; }
    .plan__for, .plan__note { min-height: 0; }
}

@media (max-width: 980px) {
    .grid--4, .steps, .sla, .kpis { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .split, .contact__box { grid-template-columns: 1fr; gap: 40px; }
    .dash__row { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .calc__out { grid-template-columns: repeat(2, 1fr); }
    .pays__grid { grid-template-columns: repeat(2, 1fr); }
    .pays { padding: 24px 20px; }
    .ladder__row { grid-template-columns: 1fr 110px; row-gap: 6px; padding: 16px 20px; }
    .ladder__row--head { display: none; }
    .ladder__note { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    body { font-size: 16px; }
    html { scroll-padding-top: 76px; }
    .wrap { padding: 0 18px; }
    .grid--2, .grid--3, .grid--4, .steps, .fcols, .kpis, .sla { grid-template-columns: 1fr; }
    .hero__actions .btn { width: 100%; }
    .hero__facts { display: grid; grid-template-columns: 1fr; width: 100%; text-align: center; }
    .fact { padding: 20px; justify-items: center; }
    .fact__cap { max-width: none; }
    .calc { padding: 22px 18px; }
    .footer__inner { grid-template-columns: 1fr; }
    .dash__body { padding: 14px; }
    .panel { padding: 15px; }
    .contact__box { padding: 26px 20px; }
    .qa summary { font-size: 16px; }
    .msg { max-width: 95%; }
}

@media (max-width: 520px) {
    .calc__out, .pays__grid { grid-template-columns: 1fr; }
}

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