/* ==========================================================================
   Публичный сайт — своя палитра на основе знака (электрик-синий силуэт),
   не палитра самого приложения (та служит рабочему инструменту, эта —
   витрине). Committed-тёмная тема.

   Уровень отделки — по образцу apple.com и подобных: крупная уверенная
   типографика, щедрый вертикальный ритм, мягкие плавные переходы вместо
   резких, эффекты только там, где они читаются как содержание
   (состояние наведения, появление секции), а не как украшение.
   ========================================================================== */

:root {
    --ink: #f5f7fb;
    --ink-2: #aab6c9;
    --ink-3: #6b7789;
    --bg: #050710;
    --bg-2: #080a14;
    --surface: #0d101c;
    --surface-2: #121726;
    --line: #1b2133;
    --line-soft: rgba(255, 255, 255, .06);
    --accent: #3b82f6;
    --accent-hi: #6ea3ff;
    --accent-soft: rgba(59, 130, 246, .13);
    --ok: #34d399;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
            "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono",
            Consolas, monospace;
    --r: 14px;
    --r-lg: 22px;
    --r-full: 999px;
    --pad: 24px;
    --max: 1180px;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-out: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

.spot {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(480px circle at var(--sx, 50%) var(--sy, 30%),
                rgba(110, 163, 255, .07), transparent 70%);
    transition: opacity .4s var(--ease-out);
}
html {
    color-scheme: dark;
    scroll-behavior: smooth;
    /* clip, а не hidden: hidden превращает элемент в контейнер прокрутки
       и ломает position: sticky внутри, clip — просто обрезает. Полосы
       прокрутки от полноэкранных подсветок при этом не появляются. */
    overflow-x: clip;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-hi);
    margin: 0 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.eyebrow::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-hi);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --- Кнопки --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; height: 42px; padding: 0 20px; border-radius: var(--r-full);
    font: inherit; font-size: 14.5px; font-weight: 590; text-decoration: none;
    border: 1px solid transparent; white-space: nowrap; cursor: pointer;
    transition: transform .32s var(--ease), background .25s var(--ease-out),
                border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.magnetic { transition: transform .25s var(--ease-out), background .25s var(--ease-out),
                        border-color .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.btn.solid {
    background: linear-gradient(180deg, #4c8dff, var(--accent));
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset,
                0 8px 20px -8px rgba(59, 130, 246, .65);
}
.btn.solid:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset,
                              0 10px 26px -6px rgba(59, 130, 246, .8); }
.btn.ghost {
    border-color: var(--line-soft);
    color: var(--ink);
    background: rgba(255, 255, 255, .02);
}
.btn.ghost:hover { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }
.btn.lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* --- Шапка --- */
.bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 40;
    padding: 14px 0;
    /* backdrop-filter НЕ в списке transition: интерполировать радиус
       размытия кадр за кадром — одна из самых дорогих анимаций CSS.
       Значение просто переключается вместе с классом; на глаз это
       незаметно (перекрывается плавным изменением padding/фона), а
       нагрузка на композитор при прокрутке заметно ниже. */
    transition: padding .4s var(--ease), background .4s var(--ease),
                border-color .4s var(--ease);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}
.bar.scrolled {
    padding: 9px 0;
    background: rgba(5, 7, 16, .72);
    /* Радиус меньше, чем был (20px → 14px): размытие такой площади
       (вся ширина шапки) стоит браузеру заметно, а разница на глаз
       минимальна на реальном фоне из точек и текста. */
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-color: var(--line-soft);
}
.bar-in {
    max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
    height: 40px; display: flex; align-items: center; gap: 32px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 640; font-size: 16px; text-decoration: none;
    margin-right: auto; letter-spacing: -.01em;
}
.brand img { width: 26px; height: 26px; }
.nav { display: flex; gap: 20px; font-size: 13px; color: var(--ink-2); }
.nav a {
    text-decoration: none; position: relative; padding: 6px 0;
    transition: color .2s var(--ease-out);
}
.nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1.5px; background: var(--accent-hi);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
/* Раздел, который человек читает прямо сейчас (ставится из JS) */
.nav a.on { color: var(--ink); }
.nav a.on::after { transform: scaleX(1); opacity: .55; }
.bar-cta { display: flex; gap: 10px; align-items: center; }
body { padding-top: 0; }

/* --- Переключатель языка --- */
.lang-pick { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 12px; border-radius: var(--r-full);
    font: inherit; font-size: 12.5px; font-weight: 640; letter-spacing: .02em;
    color: var(--ink-2); background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line); cursor: pointer;
    transition: all .2s var(--ease-out);
}
.lang-btn:hover { color: var(--ink); border-color: rgba(255, 255, 255, .2); }
.lang-btn svg { transition: transform .2s var(--ease-out); }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
    list-style: none; margin: 0; padding: 6px;
    max-height: 320px; overflow-y: auto;
    background: var(--surface-2); border: 1px solid var(--line-soft);
    border-radius: var(--r); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .55);
    min-width: 160px;
}
.lang-menu li {
    padding: 8px 12px; border-radius: 8px; font-size: 13.5px;
    color: var(--ink-2); cursor: pointer; white-space: nowrap;
    transition: background .15s var(--ease-out), color .15s var(--ease-out);
}
.lang-menu li:hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
.lang-menu li.on { color: var(--accent-hi); font-weight: 600; }
.lang-menu li { display: flex; align-items: center; gap: 9px; }

/* --- Флаги живут в отдельном файле flags.css: они нарисованы CSS'ом    */
/*   (градиенты и clip-path), а не эмодзи. Эмодзи-флаги, которые стояли  */
/*   здесь раньше, на Windows не отображаются в принципе — ни Chrome,    */
/*   ни Edge их не рисуют, и вместо флага человек видит буквы «UA».      */

/* --- Герой --- */
.hero {
    position: relative;
    max-width: var(--max); margin: 0 auto; padding: 168px var(--pad) 88px;
    display: grid; grid-template-columns: 1.12fr .88fr; gap: 40px;
    align-items: center;
}
.hero::before {
    /* Свечение идёт на всю ширину экрана, а не по колонке контента:
       иначе на широком мониторе видны тёмные поля по бокам — там, где
       подсветка обрывается по краю блока (ровно это и было заметно).
       Ширина берётся от вьюпорта, а вылет за края гасится overflow-x:
       clip у html — горизонтальной прокрутки при этом не возникает. */
    content: ""; position: absolute;
    top: -140px; height: 640px;
    left: 50%; width: 100vw; transform: translateX(-50%);
    background:
        radial-gradient(680px 420px at 18% 20%, rgba(59, 130, 246, .16), transparent 68%),
        radial-gradient(520px 360px at 82% 55%, rgba(120, 90, 255, .10), transparent 70%);
    filter: blur(2px);
    pointer-events: none; z-index: -1;
}
.hero h1 {
    font-size: clamp(38px, 4.8vw, 58px);
    margin: 16px 0 22px;
    background: linear-gradient(180deg, #fff, #cfd8ea 120%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; margin: 32px 0 16px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--ink-3); }
.hero-art {
    position: relative;
    display: grid; place-items: center;
    aspect-ratio: 1;
}

/* --- Планета --- */
/* Свечение под шаром: рисуется CSS, а не в canvas — так glow не съедает
   кадры и не зависит от размера холста. */
.globe-glow {
    position: absolute; inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(59, 130, 246, .22), rgba(59, 130, 246, .05) 55%, transparent 72%);
    filter: blur(18px);
    animation: glow-breathe 7s ease-in-out infinite;
}
@keyframes glow-breathe {
    0%, 100% { opacity: .75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}
.globe {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    display: block;
}

/* --- Полоса болей --- */
.band {
    position: relative;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-2);
}
.band-in {
    max-width: var(--max); margin: 0 auto; padding: 56px var(--pad);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
}
.pain { display: flex; flex-direction: column; gap: 10px; }
.pain-n {
    font-family: var(--mono); font-size: 12px; color: var(--accent-hi);
    letter-spacing: .08em;
}
.pain h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pain p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }

/* --- Секции --- */
/* Страница длиной ~17000px — без этого браузер на каждом кадре прокрутки
   считает layout/paint для всех разделов сразу, включая те, что на
   экране ещё не появились. content-visibility: auto пропускает эту
   работу, пока раздел не подошёл к области видимости, — отсюда и
   рывки при быстрой прокрутке вниз, которые не лечатся закрытием
   таймеров: сама раскладка была тяжёлой, а не анимация.
   contain-intrinsic-size — предварительная высота-заглушка, чтобы
   скроллбар не прыгал, пока раздел ни разу не отрисован; auto-часть
   запоминает настоящую высоту после первой отрисовки и дальше
   использует её. */
.section {
    padding: 108px var(--pad);
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}
.section.tight { padding-top: 88px; padding-bottom: 88px; }
.section.alt { background: var(--bg-2); }
.section-in { max-width: var(--max); margin: 0 auto; }
.section-in.narrow { max-width: 880px; }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.section-lede { font-size: 16.5px; color: var(--ink-2); max-width: 62ch;
                margin-bottom: 52px; line-height: 1.65; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

.grid { display: grid; gap: 18px; }
.features { grid-template-columns: repeat(3, 1fr); }
.features .feature:nth-child(1) { transition-delay: 0s; }
.features .feature:nth-child(2) { transition-delay: .08s; }
.features .feature:nth-child(3) { transition-delay: .16s; }
.features .feature:nth-child(4) { transition-delay: .24s; }
.features .feature:nth-child(5) { transition-delay: .32s; }
.features .feature:nth-child(6) { transition-delay: .4s; }
.feature {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
    transition: border-color .3s var(--ease-out), transform .3s var(--ease-out),
                opacity .8s var(--ease), transform .8s var(--ease);
}
.feature:hover { border-color: rgba(110, 163, 255, .35); transform: translateY(-5px); }
.feature h3 { font-size: 16.5px; margin-bottom: 15px; letter-spacing: -.01em; }
.feature li { font-size: 13.8px; color: var(--ink-2); padding: 6px 0 6px 18px;
              position: relative; line-height: 1.55; }
.feature li::before {
    content: ""; position: absolute; left: 0; top: 14px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* --- Интеграции --- */
.integr-tabs {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.integr-tab {
    font: inherit; font-size: 13px; font-weight: 560; color: var(--ink-2);
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-full); padding: 9px 16px; cursor: pointer;
    transition: all .25s var(--ease-out);
}
.integr-tab:hover { color: var(--ink); border-color: rgba(110, 163, 255, .35); }
.integr-tab.on { background: var(--accent-soft); border-color: rgba(110, 163, 255, .5); color: var(--accent-hi); }
.integr-count {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 32px;
}
.integr-stat {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    padding: 20px 22px;
}
.integr-stat b { display: block; font-family: var(--mono); font-size: 26px;
                 font-variant-numeric: tabular-nums; color: var(--ink); }
.integr-stat span { font-size: 12.5px; color: var(--ink-3); }
/* --- Интеграции: два подписанных раздела вместо сплошного облака --- */
/* Раньше 54 одинаковые «таблетки» шли одним полотном, а состояние
   различалось только цветом крошечной точки — читать это было тяжело,
   и главный вопрос («почему одни зелёные, а другие нет») оставался
   без ответа. Теперь состояние вынесено в заголовок группы и объяснено
   словами, а сами сервисы — карточки с назначением, а не просто имена. */
.integr-explain {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin-bottom: 30px;
}
.ix {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 18px 20px;
}
.ix-badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 640; letter-spacing: .02em;
    padding: 5px 11px 5px 8px; border-radius: var(--r-full);
    margin-bottom: 10px;
}
.ix-badge i { width: 7px; height: 7px; border-radius: 50%; }
.ix-badge.live { background: rgba(52, 211, 153, .13); color: var(--ok); }
.ix-badge.live i { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.ix-badge.soon { background: rgba(255, 255, 255, .05); color: var(--ink-2); }
.ix-badge.soon i { background: var(--ink-3); }
.ix p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

.integr-group { margin-top: 30px; }
.integr-group[hidden] { display: none; }
.igh {
    display: flex; align-items: center; gap: 9px;
    font-size: 14px; font-weight: 640; margin-bottom: 14px;
}
.igh .dot { width: 8px; height: 8px; border-radius: 50%; }
.igh .dot.live { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.igh .dot.ready { background: var(--ink-3); }
.igh b {
    font-family: var(--mono); font-size: 12.5px; font-weight: 600;
    color: var(--ink-3); background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-full);
    padding: 2px 9px;
}
.icards {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.icard {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 13px 15px;
    display: flex; flex-direction: column; gap: 3px;
    transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.icard:hover { border-color: rgba(110, 163, 255, .35); transform: translateY(-2px); }
.icard-h { display: flex; align-items: center; gap: 9px; min-width: 0; }
.icard-h b { min-width: 0; overflow-wrap: anywhere; }
.icard b { font-size: 14px; font-weight: 600; }
/* Пометка выравнивается по названию, а не по знаку — иначе колонка
   текста «ломается» об отступ логотипа. */
.icard > span { font-size: 12px; color: var(--ink-3); min-height: 1em;
                padding-left: 35px; }
.icard.live { border-left: 2px solid var(--ok); }
.icard.soon { opacity: .82; }

.integr-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-full); padding: 8px 15px 8px 8px;
    font-size: 13.5px; color: var(--ink); font-weight: 500;
    transition: border-color .25s var(--ease-out);
}
/* В бегущей ленте знак чуть мельче: чипы идут плотно, и полноразмерная
   плашка растянула бы всю ленту вдвое. */
.chip .car-mark { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
.chip .car-mark.has-logo { padding: 3px; }
.chip:hover { border-color: rgba(110, 163, 255, .35); }
.chip-note { color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.chip-note::before { content: "· "; }
.chip .dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.chip.live .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.chip.ready .dot { background: var(--ink-3); }
.integr-legend {
    display: flex; gap: 22px; margin-top: 22px; font-size: 12.5px; color: var(--ink-3);
}
.integr-legend span { display: inline-flex; align-items: center; gap: 7px; }
.integr-legend .dot { width: 7px; height: 7px; border-radius: 50%; }
.integr-legend .dot.live { background: var(--ok); }
.integr-legend .dot.ready { background: var(--ink-3); }

.stats { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--r); padding: 24px 18px; text-align: center; }
.stat-n { display: block; font-family: var(--mono); font-size: 30px;
          font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-l { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

.start { grid-template-columns: repeat(2, 1fr); }
.start-card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 34px;
    display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.start-card h3 { font-size: 19px; }
.start-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* --- Подвал: доверие + бейджи --- */
.foot { border-top: 1px solid var(--line-soft); }
.trust-in {
    max-width: 680px; margin: 0 auto; padding: 56px var(--pad) 0;
    text-align: center;
}
.trust-lede { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-top: 10px; }
.trust-row {
    max-width: var(--max); margin: 0 auto; padding: 28px var(--pad) 0;
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 12px 18px;
    text-decoration: none; color: var(--ink-2); cursor: default;
    transition: border-color .25s var(--ease-out), color .25s var(--ease-out);
}
a.badge:hover { border-color: rgba(110, 163, 255, .35); color: var(--ink); }
.badge svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-hi); }
.badge b { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.badge span { display: block; font-size: 11px; color: var(--ink-3); }
/* Фирменные цвета сканеров — не логотипи цілком (це чужий товарний
   знак), а власна проста іконка в їх впізнаваному кольорі. Правило
   ниже — навмисно після загального .badge svg, щоб перебити його. */
.badge-cf svg { color: #f6821f; }
.badge-moz svg { color: #ff9500; }
.badge-ssl svg { color: #3ba55d; }
.badge-owasp svg { color: #a970ff; }

.foot-in {
    max-width: var(--max); margin: 0 auto; padding: 40px var(--pad) 56px;
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 20px;
}
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.foot-brand img { width: 20px; height: 20px; }
.foot-copy { font-size: 12.5px; color: var(--ink-3); }
.foot-links { display: flex; gap: 20px; font-size: 13px; color: var(--ink-2); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ==========================================================================
   Модальные окна входа/регистрации — поверх лендинга, без перехода
   на отдельную страницу. Матовая подложка (backdrop-filter), мгновенное
   появление: слой уже в DOM с самого начала, переключается только
   видимость и прозрачность — сетевой задержки на открытие нет вообще,
   она есть только у самой отправки формы.
   ========================================================================== */
.overlay {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center; padding: 24px;
    background: rgba(5, 7, 16, .55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease-out), visibility 0s linear .28s;
}
.overlay.open {
    opacity: 1; visibility: visible;
    transition: opacity .28s var(--ease-out), visibility 0s linear;
}
.auth-card {
    width: 100%; max-width: 400px;
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    padding: 32px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
    transform: scale(.96) translateY(10px);
    transition: transform .32s var(--ease);
    max-height: calc(100vh - 48px); overflow-y: auto;
}
.overlay.open .auth-card { transform: scale(1) translateY(0); }
.auth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-head img { width: 30px; height: 30px; }
.auth-head b { font-size: 16px; font-weight: 640; display: block; }
.auth-head span { font-size: 12.5px; color: var(--ink-3); }
.auth-close {
    margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; border: 1px solid var(--line);
    background: transparent; color: var(--ink-3); cursor: pointer; font-size: 15px;
    transition: all .2s var(--ease-out);
}
.auth-close:hover { color: var(--ink); border-color: rgba(255, 255, 255, .2); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field input {
    font: inherit; font-size: 14.5px; color: var(--ink);
    background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
    border-radius: 10px; padding: 11px 13px; outline: none;
    transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.field input:focus { border-color: var(--accent); background: rgba(255, 255, 255, .05); }
.field input::placeholder { color: var(--ink-3); }
.auth-error {
    font-size: 13px; color: #ff9b9b; background: rgba(240, 90, 90, .1);
    border: 1px solid rgba(240, 90, 90, .25); border-radius: 10px;
    padding: 10px 13px; margin-bottom: 14px; display: none;
}
.auth-error.show { display: block; }
.auth-switch { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.auth-switch a { color: var(--accent-hi); text-decoration: none; cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }
.auth-choice { display: flex; flex-direction: column; gap: 12px; }
.auth-back {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
    color: var(--ink-3); background: none; border: none; cursor: pointer;
    padding: 0; margin-bottom: 16px; font-family: inherit;
}
.auth-back:hover { color: var(--ink); }
.auth-note {
    font-size: 13px; color: var(--ink-2); line-height: 1.6;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
    border-radius: 10px; padding: 14px;
}
.checking { opacity: .55; pointer-events: none; }

/* --- Адаптация --- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 128px; }
    .hero-art { order: -1; max-width: 220px; margin: 0 auto; }
    .band-in { grid-template-columns: 1fr; }
    .features, .start { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .integr-count { grid-template-columns: 1fr; }
    .nav { display: none; }
    .bar-cta .btn.ghost { display: none; }
    .section { padding: 76px var(--pad); }
}

/* --- Сравнение Excel/Business OS --- */
.cmp-table {
    border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; background: var(--surface);
}
.cmp-row {
    display: grid; grid-template-columns: 1.1fr 1fr 1fr;
    gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line-soft);
    align-items: center;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-head {
    background: var(--surface-2); font-size: 12px; font-weight: 640;
    letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.cmp-c { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.cmp-e { font-size: 13.5px; color: var(--ink-3); }
.cmp-b { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.cmp-b::before { content: "✓ "; color: var(--ok); }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 4px 22px;
    transition: border-color .25s var(--ease-out);
}
.faq-item[open] { border-color: rgba(110, 163, 255, .35); }
.faq-item summary {
    padding: 18px 0; font-size: 15.5px; font-weight: 600;
    cursor: pointer; list-style: none; position: relative;
    padding-inline-end: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 2px; top: 16px;
    font-size: 20px; color: var(--accent-hi); font-weight: 400;
    transition: transform .25s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }

/* --- RTL (арабский) --- */
:root[dir="rtl"] .pain-n,
html[dir="rtl"] .pain-n { direction: ltr; display: inline-block; }
html[dir="rtl"] .feature li::before { left: auto; right: 0; }
html[dir="rtl"] .feature li { padding: 6px 18px 6px 0; }
html[dir="rtl"] .cmp-b::before { content: ""; }
html[dir="rtl"] .cmp-b::after { content: " ✓"; color: var(--ok); }
html[dir="rtl"] .faq-item summary::after { right: auto; left: 2px; }
html[dir="rtl"] .integr-legend .dot,
html[dir="rtl"] .chip .dot { margin-inline-end: 0; margin-inline-start: 8px; }

/* ==========================================================================
   Лента интеграций
   ========================================================================== */
.marquee-band {
    padding: 8px 0 56px;
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}
.marquee-title {
    text-align: center; font-size: 12.5px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px;
}
.marquee {
    display: flex; gap: 12px; width: max-content;
    /* Дублированный набор + сдвиг ровно на половину = стык невидим:
       лента идёт непрерывно, без рывка в момент перезапуска. */
    animation: marquee 46s linear infinite;
    margin-bottom: 12px;
}
.marquee.rev { animation-duration: 58s; animation-direction: reverse; }
.marquee-band:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee .chip { flex: none; }
/* Края растворяются — лента «уходит за экран», а не обрывается. */
.marquee-band {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ==========================================================================
   Команда
   ========================================================================== */
.team-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start;
}
.team-panel {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 8px 8px 12px;
}
.team-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px 14px;
}
.team-panel-title { font-size: 13px; font-weight: 640; color: var(--ink); }
.team-live {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: var(--ok);
}
.team-live i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); }
    50% { opacity: .7; box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}
.team-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 12px;
    transition: background .2s var(--ease-out);
}
.team-row:hover { background: rgba(255, 255, 255, .03); }
.ava {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 640; color: #fff;
}
.ava.a1 { background: linear-gradient(140deg, #4c8dff, #2563eb); }
.ava.a2 { background: linear-gradient(140deg, #34d399, #059669); }
.ava.a3 { background: linear-gradient(140deg, #a78bfa, #7c3aed); }
.ava.a4 { background: linear-gradient(140deg, #64748b, #475569); }
.team-who { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.team-who b { font-size: 13.5px; font-weight: 600; }
.team-who span { font-size: 11.5px; color: var(--ink-3); }
.team-state {
    font-size: 11.5px; color: var(--ink-3); white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
}
.team-state::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ink-3); flex: none;
}
.team-state.on { color: var(--ok); }
.team-state.on::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.team-points { display: grid; gap: 14px; }
.team-point {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); padding: 18px 20px;
    transition: border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.team-point:hover { border-color: rgba(110, 163, 255, .35); transform: translateX(4px); }
.team-point h3 { font-size: 15px; margin-bottom: 7px; }
.team-point p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* ==========================================================================
   Живая лента заказов
   ========================================================================== */
.live-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.live-panel {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 8px 8px 10px; overflow: hidden;
}
.live-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px 14px;
}
.live-title { font-size: 13px; font-weight: 640; }
.live-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: var(--ok);
}
.live-badge i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
    animation: pulse-dot 2s ease-in-out infinite;
}
/* Окно ленты: высота не меняется никогда. Точное значение ставит JS по
   реальной высоте строки — она зависит от языка и ширины экрана, в CSS
   её не угадать; min-height здесь только чтобы панель не схлопнулась,
   если скрипт не отработал. */
.live-rows { overflow: hidden; min-height: 322px; }
.live-track {
    display: flex; flex-direction: column; gap: 6px;
    will-change: transform;
}

.lrow {
    display: grid; grid-template-columns: auto 1fr auto auto;
    align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--line-soft);
    position: relative; overflow: hidden;
    flex: none;                       /* строки не сжимаются под окно */
}
/* Только что принятый заказ: по строке проходит световая полоса и
   гаснет подсветка рамки — это тот же язык, которым интерфейсы
   показывают «данные приехали и обрабатываются». */
.lrow.fresh { animation: lrow-fresh 1.1s var(--ease-out) both; }
@keyframes lrow-fresh {
    from { border-color: rgba(110, 163, 255, .55);
           background: rgba(110, 163, 255, .09); }
    to   { border-color: var(--line-soft);
           background: rgba(255, 255, 255, .02); }
}
.lrow.fresh::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 30%,
                rgba(255, 255, 255, .07) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: lrow-scan .9s var(--ease-out) both;
    pointer-events: none;
}
@keyframes lrow-scan { to { transform: translateX(100%); } }
.lrow-n {
    font-family: var(--mono); font-size: 12px; color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}
.lrow-city { font-size: 13.5px; font-weight: 550; }
.lrow-city span { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.lrow-sum {
    font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums;
    color: var(--ink-2);
}
.lrow-st {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11.5px; font-weight: 600; white-space: nowrap;
    padding: 5px 11px; border-radius: var(--r-full);
    min-width: 108px; justify-content: center;
    transition: background .35s var(--ease-out), color .35s var(--ease-out);
}
.lrow-st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-new  { background: rgba(110, 163, 255, .13); color: var(--accent-hi); }
.st-pack { background: rgba(167, 139, 250, .14); color: #b9a5ff; }
.st-ship { background: rgba(240, 184, 81, .14); color: #f0b851; }
.st-paid { background: rgba(52, 211, 153, .15); color: var(--ok); }
.st-lost { background: rgba(255, 138, 128, .14); color: #ff8a80; }
/* Тонкая полоска снизу строки — сколько осталось до следующего шага */
.lrow-bar {
    grid-column: 1 / -1; height: 2px; border-radius: 2px;
    background: var(--line); overflow: hidden; margin-top: 2px;
}
.lrow-bar i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hi));
    transition: width .6s linear;
}

.live-side {
    background: linear-gradient(160deg, rgba(59, 130, 246, .10), var(--surface) 60%);
    border: 1px solid rgba(110, 163, 255, .26); border-radius: var(--r-lg);
    padding: 28px 30px;
}
.live-side h3 { font-size: 19px; margin-bottom: 10px; }
.live-side > p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.live-points { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.live-points li {
    font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
    padding-left: 24px; position: relative;
}
.live-points li::before {
    content: "→"; position: absolute; left: 0; top: 0;
    color: var(--accent-hi); font-size: 13px;
}

/* ==========================================================================
   Защита: импульс, атаки и щит
   ========================================================================== */
/* start, а не stretch: иначе сцена растягивается по высоте списка справа,
   и волна оказывается прижатой к низу пустой коробки. */
.sec-wrap { display: flex; flex-direction: column; gap: 20px; }
.sec-stage {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); border-radius: var(--r-lg);
    /* Широкая и низкая: волне нужен длинный путь, а угрозам — углы,
       разнесённые по-настоящему далеко друг от друга. */
    height: 300px;
}
.sec-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sec-stage-head {
    position: absolute; top: 0; left: 0; right: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px;
}
.sec-stage-title { font-size: 13px; font-weight: 640; }
.sec-counter {
    font-family: var(--mono); font-size: 12px; color: var(--ok);
    font-variant-numeric: tabular-nums;
}
/* Карточка «атаки»: прилетает извне, упирается в периметр и её
   отбрасывает обратно наружу. Направление отскока (--rx/--ry) ставит JS
   по тому углу, в котором атака появилась, — поэтому её всегда отбивает
   ОТ центра, а не просто уносит вверх, как было раньше. */
.atk {
    position: absolute; z-index: 3;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 10px;
    background: rgba(30, 10, 12, .92);
    border: 1px solid rgba(255, 120, 110, .45);
    font-size: 12px; color: #ffb3ad; white-space: nowrap;
    animation: atk-life 2.9s cubic-bezier(.3, .9, .35, 1) forwards;
    pointer-events: none;
    --rx: 0px; --ry: -14px;
}
.atk b { color: #fff; font-weight: 600; }
.atk .shield { color: var(--ok); font-weight: 700; opacity: 0; }
@keyframes atk-life {
    /* влетает с той же стороны, в которую потом отскочит */
    0%   { opacity: 0;
           transform: translate(calc(var(--rx) * .8), calc(var(--ry) * .8)) scale(.9); }
    14%  { opacity: 1; transform: none; }
    /* упёрлась в периметр: короткий толчок внутрь — и щит срабатывает */
    50%  { opacity: 1; transform: none;
           border-color: rgba(255, 120, 110, .45); }
    58%  { transform: scale(1.04);
           border-color: rgba(52, 211, 153, .85);
           box-shadow: 0 0 0 4px rgba(52, 211, 153, .13); }
    68%  { transform: none; box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { opacity: 0; transform: translate(var(--rx), var(--ry)) scale(.94); }
}
.atk.blocked b { text-decoration: line-through; opacity: .65; }
.atk.blocked .shield { opacity: 1; }

.sec-list {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 26px 28px;
    display: flex; flex-direction: column;
}
.sec-list-h { margin-bottom: 18px; }
.sec-list h3 { font-size: 19px; margin-bottom: 6px; }
.sec-list-h p { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
/* Шесть пунктов сеткой 3×2: колонкой они тянулись вниз на две сцены. */
.sec-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sec-item {
    display: grid; grid-template-columns: 24px 1fr; gap: 11px;
    align-items: start; padding: 15px 16px;
    background: var(--surface-2); border: 1px solid var(--line-soft);
    border-radius: var(--r);
    transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.sec-item:hover { border-color: rgba(110, 163, 255, .3); transform: translateY(-2px); }
.sec-item svg { width: 18px; height: 18px; margin-top: 1px; }
.sec-item b { font-size: 13.5px; font-weight: 600; display: block; }
.sec-item span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.sec-ic-1 { color: var(--ok); } .sec-ic-2 { color: var(--accent-hi); }
.sec-ic-3 { color: #f0b851; }  .sec-ic-4 { color: #a78bfa; }
.sec-ic-5 { color: #ff8a80; }  .sec-ic-6 { color: #f6821f; }
.sec-proofs {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
    padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.sec-proof {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: var(--ink-2); text-decoration: none;
    background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
    border-radius: var(--r-full); padding: 6px 12px;
    transition: border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.sec-proof:hover { border-color: rgba(110, 163, 255, .4); color: var(--ink); }
.sec-proof b { color: var(--ok); font-weight: 700; }

/* ==========================================================================
   Карусель интеграций (лента брендов + раскрывающиеся подробности)
   ========================================================================== */
.car {
    position: relative; margin-bottom: 26px;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    overflow: hidden;
}
.car-strip {
    display: flex; gap: 6px; padding: 10px;
    overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line-soft);
    /* Края растворяются — видно, что лента продолжается за экраном */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.car-strip::-webkit-scrollbar { display: none; }
.car-item {
    flex: none; display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 16px 10px 11px; border-radius: 12px;
    background: transparent; border: 1px solid transparent;
    font: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink-3);
    cursor: pointer; white-space: nowrap;
    transition: color .25s var(--ease-out), background .25s var(--ease-out),
                border-color .25s var(--ease-out);
}
.car-item:hover { color: var(--ink); background: rgba(255, 255, 255, .03); }
.car-item.on {
    color: var(--ink); background: rgba(110, 163, 255, .10);
    border-color: rgba(110, 163, 255, .35);
}
/* Знак сервиса: настоящий логотип из web/img/logos/, а если файла нет —
   монограмма в фирменном цвете. Почему логотипы можно показывать,
   написано в web/img/logos/ИСТОЧНИК.txt. */
.car-mark {
    width: 26px; height: 26px; border-radius: 8px; flex: none;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 700; color: #fff;
    letter-spacing: -.02em;
}
/* Светлая плашка — единственный фон, на котором одинаково читаются
   и почти чёрный знак Monobank, и почти белый знак Wise. */
.car-mark.has-logo {
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
    padding: 4px;
}
.car-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Одноцветные контуры красятся маской: сам файл чёрный, цвет даёт фон. */
.car-tint {
    width: 100%; height: 100%; display: block;
    -webkit-mask: var(--logo) center / contain no-repeat;
    mask: var(--logo) center / contain no-repeat;
}
.car-big.has-logo { padding: 14px; border-radius: 22px; }
.car-body { padding: 26px 28px; }
.car-panel { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: start; }
.car-panel.swap { animation: car-swap .42s var(--ease) both; }
@keyframes car-swap {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
.car-name { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.car-name h3 { font-size: 22px; }
.car-status {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11.5px; font-weight: 640;
    padding: 5px 11px 5px 8px; border-radius: var(--r-full);
}
.car-status i { width: 7px; height: 7px; border-radius: 50%; }
.car-status.live { background: rgba(52, 211, 153, .13); color: var(--ok); }
.car-status.live i { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.car-status.soon { background: rgba(255, 255, 255, .05); color: var(--ink-2); }
.car-status.soon i { background: var(--ink-3); }
.car-what { font-size: 15px; color: var(--ink-2); line-height: 1.65; max-width: 62ch; }
.car-cat {
    font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
    color: var(--ink-3); margin-top: 14px;
}
.car-big {
    width: 84px; height: 84px; border-radius: 22px; flex: none;
    display: grid; place-items: center;
    font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -.03em;
}

/* ==========================================================================
   Полоса прогресса чтения
   ========================================================================== */
.progress {
    position: fixed; top: 0; left: 0; height: 2px; z-index: 50;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hi));
    box-shadow: 0 0 12px rgba(110, 163, 255, .7);
    /* Ширина ставится из JS покадрово — свой transition тут только мешал бы,
       догоняя уже устаревшее значение. */
    will-change: width;
}

/* ==========================================================================
   Калькулятор маржи
   ========================================================================== */
.calc {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px;
    align-items: stretch;
}
.calc-inputs {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px 28px;
    display: flex; flex-direction: column; gap: 18px;
}
.calc-row {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 12px;
    align-items: center;
}
.calc-name { font-size: 13.5px; color: var(--ink-2); }
.calc-val {
    font-family: var(--mono); font-size: 14px; font-weight: 600;
    color: var(--accent-hi); font-variant-numeric: tabular-nums;
    min-width: 62px; text-align: right;
}
.calc-row input[type="range"] {
    grid-column: 1 / -1;
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px; border-radius: 999px;
    background: var(--line);
    outline: none; cursor: pointer;
}
.calc-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(180deg, #4c8dff, var(--accent));
    border: 2px solid var(--bg);
    box-shadow: 0 2px 10px -2px rgba(59, 130, 246, .9);
    transition: transform .15s var(--ease-out);
}
.calc-row input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.18); }
.calc-row input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg);
    background: var(--accent); cursor: pointer;
}
.calc-row input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.calc-out {
    background: linear-gradient(160deg, rgba(59, 130, 246, .10), var(--surface) 60%);
    border: 1px solid rgba(110, 163, 255, .28); border-radius: var(--r-lg);
    padding: 26px 28px;
    display: flex; flex-direction: column;
}
.calc-out-label {
    font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
    color: var(--ink-3);
}
.calc-big {
    font-family: var(--mono); font-size: 46px; font-weight: 650;
    letter-spacing: -.03em; font-variant-numeric: tabular-nums;
    margin-top: 6px; line-height: 1.1;
}
.calc-big.neg, .calc-big2.neg { color: #ff8a80; }
.calc-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.calc-sub b { color: var(--ok); font-variant-numeric: tabular-nums; }
.calc-sub b.neg { color: #ff8a80; }

/* Полоска состава цены: видно, куда именно ушли деньги */
.calc-bars {
    display: flex; height: 10px; border-radius: 999px; overflow: hidden;
    margin: 20px 0 4px; background: var(--surface-3, var(--line));
}
.cb { height: 100%; transition: width .35s var(--ease-out); }
.cb-cost { background: #64748b; }
.cb-ship { background: #a78bfa; }
.cb-fee  { background: #f0b851; }
.cb-tax  { background: #ff8a80; }
.cb-net  { background: var(--ok); }

.calc-legend {
    display: flex; flex-direction: column; gap: 9px; margin-top: 16px;
}
.calc-legend li {
    display: grid; grid-template-columns: 10px 1fr auto;
    align-items: center; gap: 10px;
    font-size: 12.5px; color: var(--ink-2);
}
.calc-legend i { width: 10px; height: 10px; border-radius: 3px; }
.calc-legend b {
    font-family: var(--mono); font-variant-numeric: tabular-nums;
    color: var(--ink); font-weight: 600;
}
.lg-cost { background: #64748b; }
.lg-ship { background: #a78bfa; }
.lg-fee  { background: #f0b851; }
.lg-tax  { background: #ff8a80; }
.lg-net  { background: var(--ok); }

.calc-real {
    margin-top: auto; padding-top: 20px;
    border-top: 1px solid var(--line-soft);
}
.calc-big2 {
    font-family: var(--mono); font-size: 28px; font-weight: 640;
    font-variant-numeric: tabular-nums; margin-top: 4px;
}
.calc-warn { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin-top: 8px; }

/* ==========================================================================
   Тарифы
   ========================================================================== */
.price-switch {
    display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 30px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-full);
}
.price-per {
    font: inherit; font-size: 13px; font-weight: 560; color: var(--ink-2);
    background: transparent; border: none; border-radius: var(--r-full);
    padding: 9px 18px; cursor: pointer;
    transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.price-per.on { background: var(--accent-soft); color: var(--accent-hi); }
.price-per:hover:not(.on) { color: var(--ink); }
/* Шесть тарифов сеткой 3×2, а не шестью полосками в ряд: при шести
   колонках на карточку остаётся ~215px, и «$499.99» с бейджем
   «найчастіше беруть» туда физически не помещаются. */
.price-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    align-items: stretch;
}
.plan {
    position: relative;
    display: flex; flex-direction: column; gap: 14px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 24px 20px;
    transition: border-color .3s var(--ease-out), transform .3s var(--ease-out),
                box-shadow .3s var(--ease-out);
}
.plan:hover {
    border-color: rgba(110, 163, 255, .35); transform: translateY(-4px);
    box-shadow: 0 20px 50px -24px rgba(59, 130, 246, .5);
}
.plan.best { border-color: rgba(110, 163, 255, .45); }
.plan.best::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit;
    padding: 1px; pointer-events: none;
    background: linear-gradient(160deg, var(--accent-hi), transparent 55%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.plan-badge {
    position: absolute; top: -10px; left: 20px;
    font-size: 10.5px; font-weight: 640; letter-spacing: .04em;
    background: linear-gradient(180deg, #4c8dff, var(--accent)); color: #fff;
    padding: 4px 10px; border-radius: var(--r-full);
    box-shadow: 0 6px 16px -6px rgba(59, 130, 246, .8);
}
.plan h3 { font-size: 17px; }
.plan-for { font-size: 12px; color: var(--ink-3); margin-top: -8px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price b {
    font-size: 30px; font-weight: 660; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.plan-price .cur { font-size: 19px; opacity: .75; margin-right: 1px; }
.plan-price .per, .plan-price span:not(.cur):not(.amt):not(.was) {
    font-size: 12.5px; color: var(--ink-3);
}
/* Обычная цена, зачёркнутая. Видна только в годовом режиме: в
   помесячном она и есть текущая, зачёркивать её было бы враньём. */
.plan-was { display: none; font-size: 13px; color: var(--ink-3); opacity: .75; }
.plan-was .cur { font-size: 11px; }
.price-grid.yearly .plan-was { display: inline; }
.plan-promo {
    font-size: 11.5px; color: var(--ok); margin-top: -8px;
    display: none;
}
.price-grid.yearly .plan-promo { display: block; }

/* Что будет с демо после трёх дней — обещание про удаление данных
   стоит на видном месте, а не сноской в оферте. */
.demo-life {
    margin-top: 22px; padding: 20px 24px;
    background: var(--surface); border: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    border-radius: var(--r);
}
.demo-life h3 { font-size: 15px; margin-bottom: 7px; }
.demo-life p { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; max-width: 92ch; }
.plan ul { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li {
    font-size: 13px; color: var(--ink-2); line-height: 1.5;
    padding-left: 20px; position: relative;
}
.plan li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--ok); font-size: 12px;
}
.price-note {
    font-size: 13px; color: var(--ink-3); line-height: 1.65;
    margin-top: 24px; max-width: 72ch;
}

/* ==========================================================================
   Финальный призыв
   ========================================================================== */
.cta-band {
    position: relative; overflow: hidden;
    padding: 96px var(--pad);
    border-top: 1px solid var(--line-soft);
    background:
        radial-gradient(900px 420px at 50% 120%, rgba(59, 130, 246, .22), transparent 70%),
        var(--bg-2);
}
.cta-in { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.cta-in h2 {
    font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px;
    background: linear-gradient(180deg, #fff, #c5d4ee 130%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-in > p { font-size: 16.5px; color: var(--ink-2); line-height: 1.65; }
.cta-actions {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    margin: 30px 0 18px;
}
.cta-note { font-size: 12.5px; color: var(--ink-3); }
/* Мягкий блик, проходящий по блоку раз в несколько секунд.
   Раньше он стоял видимым у левого края две трети цикла, а дойдя до
   правого — мгновенно прыгал обратно: рывок был заметен и выглядел как
   поломка. Теперь блик и появляется, и исчезает прозрачностью, а
   возврат в начало происходит, пока он полностью невидим. */
.cta-spark {
    position: absolute; top: -60%; bottom: -60%; width: 34%;
    left: -40%; pointer-events: none; opacity: 0;
    background: linear-gradient(100deg, transparent,
        rgba(255, 255, 255, .075) 50%, transparent);
    animation: cta-sweep 11s cubic-bezier(.4, 0, .5, 1) infinite;
}
@keyframes cta-sweep {
    0%   { transform: translateX(0);    opacity: 0; }
    6%   { opacity: .9; }
    42%  { opacity: .9; }
    50%  { transform: translateX(520%); opacity: 0; }
    /* с 50% до 100% блик стоит невидимым за правым краем — именно здесь
       и происходит незаметный возврат к началу цикла */
    100% { transform: translateX(520%); opacity: 0; }
}

@media (max-width: 1080px) {
    .price-grid { grid-template-columns: repeat(2, 1fr); }
    .sec-items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .team-grid { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: 1fr; }
    .calc { grid-template-columns: 1fr; }
    .cta-band { padding: 72px var(--pad); }
    /* Панель заказов и текст рядом с ней в 900px уже не помещались
       в две колонки: строка сжималась так, что сумма налезала на статус. */
    .live-grid { grid-template-columns: 1fr; }
    .car-panel { grid-template-columns: 1fr; }
    .sec-stage { height: 250px; }
}

/* На узком экране шапка не помещалась: знак + название + выбор языка +
   кнопка складывались в 413px при ширине экрана 375 и давали
   горизонтальную прокрутку всей страницы. Убираем ровно лишнее —
   подпись языка (флаг остаётся, он и так узнаётся) и название рядом
   со знаком; сам знак и кнопка «Зарегистрироваться» остаются. */
@media (max-width: 560px) {
    .bar-in { gap: 12px; }
    .brand span { display: none; }
    .lang-btn { padding: 0 8px; }
    .lang-btn #langBtnLabel { display: none; }
    .btn { padding: 0 14px; font-size: 13.5px; }
    .price-switch { width: 100%; }
    .price-per { flex: 1; padding: 9px 10px; font-size: 12px; }
    .cta-actions .btn { width: 100%; }
    .plan { padding: 22px 18px; }
    .team-row { padding: 10px 10px; gap: 10px; }
    .cmp-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
    .cmp-head { display: none; }   /* три подписи над одной колонкой — шум */
    .cmp-e::after { content: " · Excel"; color: var(--ink-3); font-size: 11px; }
    .cmp-b::after { content: " · Business OS"; color: var(--ink-3); font-size: 11px; }
    .faq-item { padding: 2px 16px; }
    .faq-item summary { font-size: 14.5px; }
    .sec-items { grid-template-columns: 1fr; }
    .sec-list { padding: 20px 18px; }
    .sec-stage { height: 220px; }
    /* Карточка атаки во всю ширину телефона выглядела бы плашкой,
       а не «прилетевшей угрозой» — уменьшаем её, а не растягиваем. */
    .atk { font-size: 11px; padding: 6px 9px; gap: 6px; }
    /* Четыре колонки в 375px не живут: сумма налезала на статус.
       Раскладываем в две строки явными grid-area — автоматическое
       размещение здесь идёт только вперёд и оставило бы дыры. */
    .lrow { grid-template-columns: 1fr auto; row-gap: 8px; padding: 11px 12px; }
    .lrow-n   { grid-area: 1 / 1; }
    .lrow-sum { grid-area: 1 / 2; text-align: right; }
    .lrow-city { grid-area: 2 / 1; }
    .lrow-st  { grid-area: 2 / 2; justify-self: end; min-width: 0; }
    .lrow-bar { grid-area: 3 / 1 / auto / -1; }
}

/* ==========================================================================
   iPhone: вырез и «домашняя» полоса
   Контент не должен уезжать под чёлку в горизонтальной ориентации и под
   индикатор снизу — иначе часть кнопок физически не нажимается.
   ========================================================================== */
@supports (padding: max(0px)) {
    .bar-in,
    .hero,
    .section-in,
    .cta-in,
    .foot-in,
    .trust-row {
        padding-left: max(var(--pad), env(safe-area-inset-left));
        padding-right: max(var(--pad), env(safe-area-inset-right));
    }
    .cta-band { padding-bottom: max(96px, calc(72px + env(safe-area-inset-bottom))); }
    .overlay { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Большие экраны: MacBook 16", студийные мониторы, 5K и 6K
   Колонка контента и кегль растут ступенями. Без этого на 6K страница
   превращается в узкую полосу текста посреди пустоты, а шрифт — в
   нечитаемо мелкий: физических пикселей много, но CSS-пиксель тот же.
   ========================================================================== */
@media (min-width: 1600px) {
    :root { --max: 1360px; --pad: 32px; }
    body { font-size: 17.5px; }
    .hero { padding-top: 184px; padding-bottom: 104px; }
    .hero h1 { font-size: clamp(58px, 4.2vw, 70px); }
    .hero .lede { font-size: 19px; }
    .section { padding: 124px var(--pad); }
    .section h2 { font-size: clamp(40px, 3vw, 46px); }
}
@media (min-width: 2000px) {
    :root { --max: 1600px; --pad: 40px; }
    body { font-size: 18.5px; }
    .hero h1 { font-size: clamp(70px, 3.8vw, 82px); }
    .hero .lede { font-size: 21px; }
    .section-lede { font-size: 19px; }
    .section h2 { font-size: clamp(46px, 2.8vw, 56px); }
    .feature li, .team-point p, .plan li { font-size: 15px; }
    .section { padding: 148px var(--pad); }
}
@media (min-width: 2560px) {
    :root { --max: 1920px; --pad: 48px; }
    body { font-size: 20px; }
    .hero h1 { font-size: clamp(82px, 3.4vw, 98px); }
    .hero .lede { font-size: 23px; max-width: 58ch; }
    .section h2 { font-size: clamp(56px, 2.6vw, 68px); }
    .section { padding: 176px var(--pad); }
    .plan-price b { font-size: 38px; }
    .chip { font-size: 15px; padding: 11px 18px 11px 14px; }
}
/* Pro Display XDR и подобные: в CSS-пикселях это примерно 3000+ */
@media (min-width: 3200px) {
    :root { --max: 2280px; --pad: 64px; }
    body { font-size: 23px; }
    .hero h1 { font-size: clamp(98px, 3.2vw, 124px); }
    .hero .lede { font-size: 26px; }
    .section h2 { font-size: clamp(68px, 2.4vw, 84px); }
    .section { padding: 220px var(--pad); }
    .plan-price b { font-size: 46px; }
    .btn { height: 50px; font-size: 17px; padding: 0 26px; }
    .btn.lg { height: 62px; font-size: 19px; padding: 0 34px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .reveal, .hero-art { transition: none; animation: none; }
    .reveal { opacity: 1; transform: none; }
    .globe-glow, .marquee, .team-live i, .cta-spark { animation: none; }
    .cta-spark { opacity: 0; }
}
