  :root {
    --bg: #0A0A0B;
    --surface: #141418;
    --surface-2: #1C1C21;
    --line: #26262C;
    --line-2: #34343C;
    --ink: #F2F2F0;
    --ink-2: #D6D6D4;
    --mute: #8A8A90;
    --mute-2: #74747C;
    --accent: #C6FF5A;
    --accent-dim: #8FB840;
    --signal-red: #FF5A50;
    --signal-green: #5AFFA0;
    --nav-bg: rgba(10, 10, 11, 0.78);
    --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  }
  /* ====== СВЕТЛАЯ ТЕМА ======
     Бумага + чернильные акценты; фирменный лайм живёт (1) маркером под заголовком,
     (2) в кнопках с тёмным текстом, (3) в точках, (4) в полную силу — внутри
     пришпиленных ТЁМНЫХ панелей-инструментов (консоль, сага). Правило из аудита:
     тёмное = только «машинный вывод» (code-terminal и error-card уже тёмные в коде);
     маркетинг-карточки — бумажные. */
  html[data-theme="light"] {
    --bg: #F5F4EF;
    --surface: #FFFFFF;
    --surface-2: #ECEAE1;
    --line: #D8D6CB;
    --line-2: #BFBCAE;
    --ink: #16161A;
    --ink-2: #3A3A40;
    --mute: #63636D;
    --mute-2: #6B6860;
    --accent: #16161A;
    --accent-dim: #47474E;
    --signal-red: #C4342B;
    --signal-green: #0F7A43;
    --nav-bg: rgba(245, 244, 239, 0.85);
  }
  /* Лайм-маркер под второй строкой заголовка */
  /* В светлой теме заголовку даём чуть больше воздуха между строками — иначе
     highlighter-маркер не может покрыть капы, не задев строку выше (при 0.96 «окна» нет). */
  html[data-theme="light"] .hero-h1 { line-height: 1.08; }
  html[data-theme="light"] .hero-h1 .line-2 {
    color: #0A0A0B;
    /* Highlighter-маркер: полоса фикс. высоты (em), привязанная к низу каждой строки.
       Высота 0.94em покрывает капы→базовую линию; при line-height 1.08 остаётся
       внутри line-box и не задевает соседние строки. box-decoration-break клонирует
       фон на каждую визуальную строку обёрнутого текста. */
    background-image: linear-gradient(#C6FF5A, #C6FF5A);
    background-repeat: no-repeat;
    background-size: 100% 1.0em;
    background-position: left 0 bottom 0.0em;
    padding: 0 14px; margin-left: -14px;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
  /* Лайм-точки (заливка читается на бумаге, свечение — нет) */
  html[data-theme="light"] .brand-dot {
    background: #C6FF5A;
    box-shadow: none;
    border: 1px solid rgba(10, 10, 11, 0.18);
  }
  /* Точки/бегунки статуса на светлом фоне: лайм на белом бледный + чёрное свечение
     от чернильного --accent — берём насыщенный зелёный без glow. */
  html[data-theme="light"] .txn-status,
  html[data-theme="light"] .saga-arrow .runner,
  html[data-theme="light"] .flow-arrow-v .runner {
    background: #5FA82B;
    box-shadow: none;
  }
  html[data-theme="light"] .rate-delta.up {
    color: #2E7D46;
    border-color: rgba(95, 168, 43, 0.35);
  }
  /* Кнопки: лайм-заливка + тёмный текст (как в тёмной теме) */
  html[data-theme="light"] .btn-primary {
    background: #C6FF5A; color: #0A0A0B; border-color: #C6FF5A;
  }
  html[data-theme="light"] .btn-primary:hover {
    background: transparent; color: #0A0A0B; border-color: #0A0A0B;
  }
  /* Консоль и сага — светлые панели: наследуют
     светлые токены :root. Мягкая тень как у бумажной карточки. */
  html[data-theme="light"] .dashboard,
  html[data-theme="light"] .saga-wrapper {
    box-shadow: 0 1px 4px rgba(20, 20, 26, 0.06);
  }
  /* Спарклайн: лайм #C6FF5A на белом слишком бледный для тонкой линии —
     берём насыщенный зелёный из лайм-семьи, читаемый на бумаге. */
  html[data-theme="light"] .sparkline path.line {
    stroke: #5FA82B; filter: none;
  }
  html[data-theme="light"] .sparkline path.area { fill: rgba(159, 214, 46, 0.16); }
  html[data-theme="light"] .sparkline circle.dot-end {
    fill: #5FA82B; filter: none;
  }
  /* Лог саги: тёмно-зелёные теги на белом (вместо лайма из тёмной темы) */
  html[data-theme="light"] .saga-wrapper .log-tag,
  html[data-theme="light"] .saga-wrapper .log-tag.ok { color: #2E7D46; }
  /* Активные блоки в светлой теме (сага + флоу-диаграмма кабинета) — БЕЗ заливки:
     лаймовый контур + мягкое свечение.
     Тёмная тема не тронута. */
  html[data-theme="light"] .saga-node.active,
  html[data-theme="light"] .flow-node.active {
    background: var(--surface-2);
    border: 2px solid #8FCE1E;
    box-shadow: 0 0 0 3px rgba(198, 255, 90, 0.20);
  }
  html[data-theme="light"] .saga-node.active .node-label,
  html[data-theme="light"] .saga-node.active .node-currency,
  html[data-theme="light"] .flow-node.active .node-label,
  html[data-theme="light"] .flow-node.active .node-currency {
    color: #4E8A16;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: hidden; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }
  .mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 1; }
  .accent { color: var(--accent); }
  .mute { color: var(--mute); }
  .up { color: var(--signal-green); }
  .down { color: var(--signal-red); }
  a { color: inherit; text-decoration: none; }

  /* Доступность: видимое кольцо фокуса с клавиатуры (обе темы) */
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
  }
  html[data-theme="light"] :focus-visible { outline-color: #4E8A16; }

  /* ====== TOP TICKER BAR ====== */
  .ticker-bar {
    position: fixed; top: 0; left: 0; right: 0;
    height: 28px; background: var(--bg);
    border-bottom: 1px solid var(--line);
    overflow: hidden; z-index: 100;
    display: flex; align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  .ticker-track {
    display: flex; gap: 48px; white-space: nowrap;
    animation: scroll 90s linear infinite;
    padding-left: 100%;
  }
  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }
  .ticker-item { display: inline-flex; gap: 8px; color: var(--mute); }
  .ticker-item strong { color: var(--ink); font-weight: 500; }

  /* ====== NAV ====== */
  .nav-left { display: flex; align-items: center; gap: 16px; }
  .theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex-shrink: 0;
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--mute); cursor: pointer;
    transition: border-color .15s, color .15s;
  }
  .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
  .theme-toggle svg { display: none; }
  html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
  html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

  nav {
    position: fixed; top: 28px; left: 0; right: 0;
    padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 90;
  }
  .brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-weight: 600;
    font-size: 13px; letter-spacing: 0.06em;
    white-space: nowrap; flex-shrink: 0;
  }
  .brand-dot {
    width: 8px; height: 8px; background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 12px var(--accent);
  }
  .nav-links { display: flex; gap: 28px; font-size: 13px; }
  .nav-links a { color: var(--mute); transition: color .15s; }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta {
    display: inline-flex; align-items: center;
    height: 36px; padding: 0 14px; box-sizing: border-box; line-height: 1;
    border: 1px solid var(--line-2);
    font-family: var(--mono); font-size: 12px;
    color: var(--ink); transition: all .2s;
  }
  .nav-cta:hover { border-color: var(--accent); color: var(--accent); }
  .nav-right { display: flex; align-items: center; gap: 20px; }
  /* Telegram-кнопка «связаться» в шапке (справа, рядом с меню). Акцентная,
     остаётся видимой на мобильном (в отличие от nav-cta), т.к. это главный контакт. */
  .nav-tg {
    display: inline-flex; align-items: center; gap: 7px;
    height: 36px; padding: 0 15px; box-sizing: border-box; line-height: 1;
    background: transparent; color: var(--ink-2);
    font-family: var(--mono); font-size: 12px; font-weight: 600;
    letter-spacing: 0.02em; white-space: nowrap;
    border: 1px solid var(--line-2);
    transition: border-color .2s, color .2s;
  }
  .nav-tg:hover { border-color: var(--accent); color: var(--accent); }
  .nav-tg svg { width: 15px; height: 15px; flex-shrink: 0; }

  /* ====== LAYOUT ====== */
  main {
    padding-top: 90px;
    max-width: 1440px; margin: 0 auto;
    padding-left: 32px; padding-right: 32px;
  }

  /* ====== HERO ====== */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 80px;
    min-height: calc(100vh - 90px);
    align-items: start; /* карточка потока не растягивается пустотой до низа hero */
  }
  .hero-left { padding-top: 32px; }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 11px;
    color: var(--mute); letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 10px;
    border: 1px solid var(--line);
    margin-bottom: 28px;
  }
  h1.hero-h1 {
    font-family: var(--sans);
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.96;
    color: var(--ink);
    margin-bottom: 28px;
  }
  .hero-h1 .line-2 { color: var(--accent); }
  .hero-sub {
    font-size: 18px; line-height: 1.55;
    color: var(--mute);
    max-width: 520px;
    margin-bottom: 36px;
  }
  .hero-sub strong { color: var(--ink); font-weight: 500; }
  .hero-ctas { display: flex; gap: 12px; margin-bottom: 18px; }
  .hero-badge {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 12px;
    color: var(--ink-2); letter-spacing: 0.05em;
    margin-bottom: 40px;
  }
  .hero-badge .sep { color: var(--accent); }
  .link-inline {
    color: var(--ink);
    border-bottom: 1px dotted var(--mute);
    transition: color .15s, border-color .15s;
  }
  .link-inline:hover { color: var(--accent); border-color: var(--accent); }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px;
    background: var(--accent); color: var(--bg);
    font-family: var(--mono); font-size: 13px; font-weight: 600;
    border: 1px solid var(--accent);
    letter-spacing: 0.02em;
    transition: all .15s;
    cursor: pointer;
  }
  .btn-primary:hover { background: transparent; color: var(--accent); }
  .btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px;
    background: transparent; color: var(--ink);
    font-family: var(--mono); font-size: 13px; font-weight: 500;
    border: 1px solid var(--line-2);
    letter-spacing: 0.02em;
    transition: all .15s;
    cursor: pointer;
  }
  .btn-secondary:hover { border-color: var(--ink); }

  .hero-microcopy {
    font-family: var(--mono); font-size: 11px;
    color: var(--mute); letter-spacing: 0.04em;
    margin-top: 4px;
  }

  /* ====== LIVE DASHBOARD (HERO RIGHT) ====== */
  .dashboard {
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex; flex-direction: column;
  }
  .dashboard-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    font-family: var(--mono); font-size: 11px;
    color: var(--mute);
  }
  .dashboard-title { display: flex; align-items: center; gap: 10px; }
  .dashboard-title strong { color: var(--ink); font-weight: 500; letter-spacing: 0.08em; }
  .dashboard-traffic-dots {
    display: flex; gap: 6px;
  }
  .traffic-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--line-2);
  }

  .hero-rate-card {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--line);
  }
  .rate-label {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--mute); margin-bottom: 14px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .rate-updated { color: var(--mute-2); font-size: 10px; }
  .rate-main {
    display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px;
  }
  .rate-value {
    font-family: var(--mono); font-size: 48px;
    font-weight: 500; letter-spacing: -0.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }
  .rate-unit { font-family: var(--mono); font-size: 14px; color: var(--mute); }
  .rate-delta {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--mono); font-size: 12px;
    padding: 2px 6px;
    border: 1px solid transparent;
  }
  .rate-delta.up { color: var(--signal-green); border-color: rgba(90, 255, 160, 0.25); }

  /* Sparkline */
  .spark-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px;
  }
  .spark-meta {
    font-family: var(--mono); font-size: 10px; color: var(--mute);
    display: flex; gap: 12px;
  }
  .sparkline { width: 100%; height: 56px; margin-top: 8px; }
  .sparkline path.area { fill: rgba(198, 255, 90, 0.08); }
  .sparkline path.line {
    fill: none; stroke: var(--accent); stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(198, 255, 90, 0.4));
  }
  .sparkline circle.dot-end {
    fill: var(--accent); r: 3;
    filter: drop-shadow(0 0 6px var(--accent));
  }

  /* Stats grid */
  .stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--line);
  }
  .stat-cell {
    padding: 16px 20px;
    border-right: 1px solid var(--line);
  }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(3), .stat-cell:nth-child(4) { border-top: 1px solid var(--line); }
  .stat-label {
    font-family: var(--mono); font-size: 10px;
    color: var(--mute); letter-spacing: 0.1em;
    text-transform: uppercase; margin-bottom: 8px;
  }
  .stat-value {
    font-family: var(--mono); font-size: 22px;
    font-weight: 500; color: var(--ink);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
  }
  .stat-sub {
    font-family: var(--mono); font-size: 10px;
    color: var(--mute-2); margin-top: 4px;
  }

  /* Recent transactions */
  .recent-txn {
    padding: 16px 20px;
  }
  .txn-header {
    display: flex; justify-content: space-between;
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--mute); margin-bottom: 12px;
  }
  .txn-list { display: flex; flex-direction: column; gap: 6px; }
  .txn-row {
    display: grid; grid-template-columns: auto 1fr auto auto;
    gap: 12px; align-items: center;
    font-family: var(--mono); font-size: 11px;
    padding: 4px 0;
  }
  .txn-time { color: var(--mute-2); }
  .txn-id { color: var(--mute); }
  .txn-amount { color: var(--ink); text-align: right; }
  .txn-status {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 4px var(--accent);
  }
  .txn-row.new { animation: highlight 2s ease-out; }
  @keyframes highlight {
    0% { background: rgba(198, 255, 90, 0.1); }
    100% { background: transparent; }
  }

  /* ====== SECTION HEADERS ====== */
  .section {
    padding: 100px 0;
    border-top: 1px solid var(--line);
  }
  .section-header {
    display: grid; grid-template-columns: 1fr 2fr; gap: 48px;
    margin-bottom: 56px; align-items: end;
  }
  .section-label {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--mute);
    display: flex; align-items: center; gap: 10px;
  }
  .section-label::before {
    content: ''; width: 24px; height: 1px;
    background: var(--accent);
  }
  .section-title {
    font-family: var(--sans); font-size: clamp(32px, 4vw, 48px);
    font-weight: 600; letter-spacing: -0.02em;
    line-height: 1.05;
  }

  /* ====== HERO FLOW DIAGRAM (поток денег · одна операция) ====== */
  .flow-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex; flex-direction: column;
  }
  .flow-body { padding: 20px; display: flex; flex-direction: column; }
  .flow-node {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    transition: all .3s;
  }
  .flow-node.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(198,255,90,0.18);
  }
  .flow-node .node-label {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--mute); margin-bottom: 6px;
    transition: color .3s;
  }
  .flow-node.active .node-label { color: var(--accent); }
  .flow-node .node-actor {
    font-family: var(--mono); font-size: 10px;
    color: var(--mute-2); letter-spacing: 0.04em;
    line-height: 1.5;
  }
  .flow-node-value { text-align: right; flex-shrink: 0; }
  .flow-node .node-amount {
    font-family: var(--mono); font-size: 22px;
    font-weight: 500; color: var(--ink);
    letter-spacing: -0.01em; line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .flow-node .node-currency {
    font-family: var(--mono); font-size: 10px;
    color: var(--accent); margin-top: 5px;
    letter-spacing: 0.05em;
  }
  .flow-arrow-v {
    position: relative;
    width: 2px; height: 34px;
    background: var(--line);
    margin-left: 30px;
  }
  .flow-arrow-v::after {
    content: ''; position: absolute;
    bottom: -1px; left: 50%; transform: translateX(-50%);
    border-top: 6px solid var(--line);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
  }
  .flow-arrow-v .runner {
    position: absolute; left: 50%; top: -3px;
    transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: flowRun 2.7s linear infinite;
  }
  @keyframes flowRun {
    0% { top: -3px; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: calc(100% - 3px); opacity: 0; }
  }
  .flow-arrow-v .arrow-label {
    position: absolute; left: 18px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--mono); font-size: 10px;
    color: var(--mute); letter-spacing: 0.08em;
    white-space: nowrap;
  }
  .flow-caption {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 11px;
    color: var(--mute); line-height: 1.6;
    letter-spacing: 0.02em;
  }
  .flow-note {
    font-family: var(--mono); font-size: 11px;
    color: var(--mute);
  }

  /* ====== HOW · ПОДКЛЮЧЕНИЕ — ТРИ ШАГА ====== */
  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .step-card {
    background: var(--bg);
    padding: 32px 28px;
    min-height: 220px;
    display: flex; flex-direction: column;
    transition: background .2s;
  }
  .step-card:hover { background: var(--surface); }
  .step-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
  }
  .step-num {
    font-family: var(--mono); font-size: 11px;
    color: var(--mute); letter-spacing: 0.12em;
  }
  .step-term {
    font-family: var(--mono); font-size: 11px;
    color: var(--accent);
    border: 1px solid rgba(198, 255, 90, 0.35);
    padding: 4px 8px;
    letter-spacing: 0.04em;
  }
  .step-title {
    font-family: var(--sans); font-size: 18px;
    font-weight: 600; color: var(--ink);
    letter-spacing: -0.01em; line-height: 1.3;
    margin-bottom: 12px;
  }
  .step-desc {
    font-size: 14px; color: var(--mute);
    line-height: 1.55;
  }
  .step-desc a { color: var(--ink); border-bottom: 1px dotted var(--mute); }
  .step-desc a:hover { color: var(--accent); border-color: var(--accent); }
  .steps-note {
    margin-top: 20px;
    font-family: var(--mono); font-size: 12px;
    color: var(--mute); letter-spacing: 0.02em;
  }
  .steps-note::before { content: '→ '; color: var(--accent); }


  /* ====== PAINS ====== */
  .pains-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .pain-card {
    background: var(--bg);
    padding: 32px 28px;
    min-height: 280px;
    display: flex; flex-direction: column;
    transition: background .2s;
  }
  .pain-card:hover { background: var(--surface); }
  .pain-num {
    font-family: var(--mono); font-size: 11px;
    color: var(--mute); letter-spacing: 0.12em;
    margin-bottom: 22px;
  }
  .pain-title {
    font-family: var(--sans); font-size: 18px;
    font-weight: 600; color: var(--ink);
    letter-spacing: -0.01em; line-height: 1.3;
    margin-bottom: 12px;
  }
  .pain-desc {
    font-size: 14px; color: var(--mute);
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .pain-answer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--line-2);
    font-size: 13px; color: var(--ink-2);
    line-height: 1.55;
  }
  .pain-answer .arrow {
    font-family: var(--mono); color: var(--accent);
    margin-right: 6px;
  }


  /* ====== VERTICALS ====== */
  .section-sub {
    font-size: 15px; color: var(--mute);
    margin-top: 14px; max-width: 560px;
    line-height: 1.55;
  }
  .verticals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .vertical-card {
    position: relative;
    background: var(--bg);
    padding: 26px 22px;
    min-height: 300px;
    display: flex; flex-direction: column;
    transition: background .2s;
  }
  .vertical-card:hover { background: var(--surface); }
  .vertical-head {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: 10px;
    color: var(--mute); letter-spacing: 0.1em;
    margin-bottom: 18px;
  }
  .vertical-head .v-slug { color: var(--accent); }
  .vertical-title {
    font-family: var(--sans); font-size: 16px;
    font-weight: 600; color: var(--ink);
    letter-spacing: -0.01em; line-height: 1.3;
    margin-bottom: 12px;
  }
  .vertical-pain {
    font-size: 13px; color: var(--mute);
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .vertical-solution {
    padding-top: 14px;
    border-top: 1px dashed var(--line-2);
    font-size: 13px; color: var(--ink-2);
    line-height: 1.5;
  }
  .vertical-solution .arrow {
    font-family: var(--mono); color: var(--accent);
    margin-right: 6px;
  }
  /* Deep-dive CTA — mono micro-label pinned to card floor; slack collects
     here (not mid-content). Accent arrow = only lime per card, no filled button. */
  .vertical-cta {
    margin-top: auto;
    padding-top: 18px;
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-2);
    transition: color .15s;
  }
  .vertical-cta .cta-arrow {
    color: var(--accent);
    transition: transform .15s;
  }
  .vertical-card:hover .vertical-cta,
  .vertical-cta:focus-visible { color: var(--accent); }
  .vertical-card:hover .cta-arrow { transform: translateX(3px); }
  .vertical-cta::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
  }
  .verticals-note {
    margin-top: 24px;
    padding: 18px 22px;
    border: 1px dashed var(--line-2);
    font-size: 13px; color: var(--mute);
    line-height: 1.65;
  }

  /* ====== CABINET ====== */
  .cabinet-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
  }
  .cabinet-copy h3 {
    font-family: var(--sans); font-size: 24px;
    font-weight: 600; letter-spacing: -0.015em;
    margin-bottom: 14px;
  }
  .cabinet-copy p {
    font-size: 14.5px; line-height: 1.55; color: var(--mute);
  }
  .cabinet-copy p strong { color: var(--ink); font-weight: 500; }
  .cabinet-list {
    margin: 20px 0;
    display: flex; flex-direction: column; gap: 10px;
    font-family: var(--mono); font-size: 12px;
    color: var(--ink-2); line-height: 1.5;
  }
  .cabinet-list .arrow { color: var(--accent); margin-right: 6px; }
  .cabinet-note {
    font-family: var(--mono); font-size: 11px;
    color: var(--mute-2) !important; letter-spacing: 0.02em;
  }


  /* ====== 5 PILLARS ====== */
  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .pillar {
    background: var(--bg);
    padding: 32px 28px;
    display: flex; flex-direction: column;
    min-height: 280px;
    position: relative;
    transition: background .2s;
  }
  .pillar:hover { background: var(--surface); }
  .pillar-num {
    font-family: var(--mono); font-size: 11px;
    color: var(--mute); letter-spacing: 0.12em;
    margin-bottom: 24px;
    display: flex; justify-content: space-between;
  }
  .pillar-num .tag-inline {
    color: var(--accent); font-size: 10px;
  }
  .pillar-metric {
    font-family: var(--mono); font-size: 40px;
    font-weight: 500; color: var(--accent);
    letter-spacing: -0.02em; line-height: 1;
    margin-bottom: 6px;
  }
  .pillar-metric-sub {
    font-family: var(--mono); font-size: 11px;
    color: var(--mute); margin-bottom: 24px;
    letter-spacing: 0.04em;
  }
  .pillar-title {
    font-family: var(--sans); font-size: 18px;
    font-weight: 600; color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.3; margin-bottom: 12px;
  }
  .pillar-desc {
    font-size: 14px; color: var(--mute);
    line-height: 1.55;
    margin-top: auto;
  }


  /* ====== FAQ ====== */
  .faq-list { border-top: 1px solid var(--line); }
  .faq-item {
    border-bottom: 1px solid var(--line);
  }
  .faq-q {
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 0; cursor: pointer;
    font-size: 17px; font-weight: 500;
    transition: color .15s;
  }
  .faq-q:hover { color: var(--accent); }
  .faq-q .num {
    font-family: var(--mono); font-size: 12px;
    color: var(--mute); margin-right: 20px;
    letter-spacing: 0.06em;
  }
  .faq-q .q-text { flex: 1; }
  .faq-q .icon {
    font-family: var(--mono); font-size: 14px;
    color: var(--mute);
    transition: transform .2s;
  }
  .faq-item.open .faq-q .icon { transform: rotate(45deg); color: var(--accent); }
  .faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    color: var(--mute); font-size: 15px; line-height: 1.6;
    padding: 0 0 0 60px;
  }
  .faq-item.open .faq-a { max-height: 720px; padding: 0 0 28px 60px; }

  /* ====== FINAL CTA (перенос из 02v2-marketing) ====== */
  .final-cta {
    padding: 120px 0 96px;
    border-top: 1px solid var(--line);
    text-align: left;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 72px;
    align-items: center;
  }
  .final-cta h2 {
    font-family: var(--sans); font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 600; letter-spacing: -0.03em;
    line-height: 1.02; color: var(--ink);
  }
  .final-cta h2 .accent { color: var(--accent); }
  .final-cta p {
    font-size: 16px; color: var(--mute);
    margin-top: 18px; max-width: 520px;
    line-height: 1.55;
  }
  .final-cta-right {
    display: flex; flex-direction: column; gap: 12px;
    font-family: var(--mono);
  }
  .final-cta-meta {
    padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: 11px; color: var(--mute);
    display: flex; justify-content: space-between;
  }
  .final-cta-meta strong { color: var(--ink); font-weight: 500; }

  /* ====== LEAD FORM ====== */
  .lead-form-section {
    padding: 0 0 110px;
  }
  .lead-form-box {
    border: 1px solid var(--line); background: var(--surface);
    padding: 40px; max-width: 880px;
  }
  .lead-form-title {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--mute); margin-bottom: 28px;
  }
  .lead-form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  }
  .lead-field { display: flex; flex-direction: column; gap: 7px; }
  .lead-field.full { grid-column: 1 / -1; }
  .lead-field label {
    font-family: var(--mono); font-size: 11px;
    color: var(--mute); letter-spacing: 0.05em;
  }
  .lead-field input,
  .lead-field select,
  .lead-field textarea {
    font-family: var(--mono); font-size: 13px; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line);
    padding: 12px 14px; border-radius: 0; width: 100%;
    transition: border-color .15s;
  }
  .lead-field input:focus,
  .lead-field select:focus,
  .lead-field textarea:focus {
    border-color: var(--accent); outline: none;
  }
  .lead-field textarea { resize: vertical; min-height: 88px; }
  .lead-field ::placeholder { color: var(--mute-2); }
  /* Honeypot: вне экрана, невидим для людей, боты заполняют. */
  .lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .lead-submit-row {
    display: flex; align-items: center; gap: 20px;
    margin-top: 22px; flex-wrap: wrap;
  }
  button.btn-primary { cursor: pointer; }
  button.btn-primary:disabled { opacity: 0.55; cursor: wait; }
  .lead-status { font-family: var(--mono); font-size: 12px; color: var(--mute); }
  .lead-status.ok { color: var(--accent); }
  .lead-status.err { color: #E5484D; }
  html[data-theme="light"] .lead-status.ok { color: #2E7D46; }
  html[data-theme="light"] .lead-status.err { color: #C4373D; }

  /* ====== FOOTER ====== */
  footer {
    border-top: 1px solid var(--line);
    padding: 48px 32px 28px;
    max-width: 1440px; margin: 0 auto;
  }
  .footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 40px;
  }
  .footer-brand .brand { margin-bottom: 16px; }
  .footer-brand .f-desc {
    font-size: 13px; color: var(--mute);
    line-height: 1.6; max-width: 320px;
  }
  .footer-col h4 {
    font-family: var(--mono); font-size: 10px;
    color: var(--mute); letter-spacing: 0.14em;
    text-transform: uppercase; font-weight: 500;
    margin-bottom: 16px;
  }
  .footer-col a {
    display: block; color: var(--mute);
    font-size: 13px; padding: 5px 0;
    transition: color .15s;
  }
  .footer-col a:hover { color: var(--ink); }
  .footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 11px;
    color: var(--mute-2);
    letter-spacing: 0.04em;
  }

  /* ====== RESPONSIVE ====== */
  @media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; gap: 32px; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .pains-grid, .steps-grid { grid-template-columns: 1fr; }
    .verticals-grid { grid-template-columns: repeat(2, 1fr); }
    .pain-card, .step-card, .vertical-card { min-height: 0; }
    /* minmax(0,1fr): голый 1fr не сжимается ниже min-content — длинные mono-строки (payment_url) раздували трек и ломали 390px */
    .cabinet-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .final-cta { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section-header { grid-template-columns: 1fr; gap: 16px; }
  }
  @media (max-width: 680px) {
    main { padding-left: 20px; padding-right: 20px; }
    nav { padding: 12px 20px; }
    .nav-links { display: none; }
    .pillars-grid { grid-template-columns: 1fr; }
    .verticals-grid { grid-template-columns: 1fr; }
    .flow-node { flex-direction: column; align-items: flex-start; gap: 10px; }
    .flow-node-value { text-align: left; }
    .faq-a { padding: 0 0 0 34px; }
    .faq-item.open .faq-a { max-height: 1100px; padding: 0 0 24px 34px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
    .stat-cell:last-child { border-bottom: none; }
    .lead-form-grid { grid-template-columns: 1fr; }
    .lead-form-box { padding: 24px 20px; }
  }
  /* Телефоны: контент должен ВЛЕЗАТЬ (body/html overflow-x:hidden обрезают лишнее,
     а не переносят) — стекаем ряды кнопок, ужимаем hero-заголовок, ломаем длинные
     токены, чтобы ничего не обрезалось по правому краю. */
  @media (max-width: 600px) {
    h1.hero-h1 { font-size: clamp(30px, 8.2vw, 42px); overflow-wrap: anywhere; }
    .hero-sub { font-size: 16px; }
    .hero-left { padding-top: 20px; }
    /* .hero-ctas — общий класс рядов кнопок (hero + финальный CTA): в столбец,
       кнопки на всю ширину, стрелка прижата вправо. Раньше 2 кнопки в ряд не
       влезали в 360–390px и обрезались. */
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary { width: 100%; justify-content: space-between; }
    .rate-label { flex-wrap: wrap; gap: 4px 10px; }
    /* Шапка на телефоне: слишком много кнопок → бренд/кнопки переносились на 2
       строки и наезжали. Оставляем бренд + тумблер + Telegram-кнопку; форма-CTA
       «Обсудить подключение» скрыта (форма есть в hero и внизу). */
    .nav-cta { display: none; }
    .nav-right { gap: 12px; }
    /* Mono-ряды (транзакции, лог саги) не сжимаются по контенту → на узком
       телефоне вылезали за карточку и обрезались. Даём id-колонке сжиматься
       (minmax(0,1fr)) с усечением, а в логе убираем min-width и правый id. */
    .txn-row { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; }
    .txn-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .log-time, .log-tag { min-width: 0; }
    .log-id { display: none; }
  }
  @media (max-width: 430px) {
    main { padding-left: 16px; padding-right: 16px; }
    h1.hero-h1 { font-size: clamp(26px, 8.4vw, 34px); }
  }
  .footer-col p {
    color: var(--mute); font-size: 13px;
    line-height: 1.6; padding: 5px 0;
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    .ticker-track { animation: none; padding-left: 0; }
  }

  /* ====== SAGA MECHANISM ====== */
  .saga-wrapper {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 32px;
  }
  .saga-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 18px; margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
  .saga-header .h-label {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--mute);
  }
  .saga-header .h-label strong { color: var(--ink); font-weight: 500; }
  .saga-cycle {
    font-family: var(--mono); font-size: 11px;
    color: var(--mute);
  }
  .saga-cycle strong { color: var(--accent); }

  .saga-diagram {
    display: grid;
    grid-template-columns: 1fr 0.5fr 1fr 0.5fr 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
  }
  .saga-node {
    padding: 20px; border: 1px solid var(--line-2);
    background: var(--surface-2);
    text-align: center;
    transition: all .3s;
    position: relative;
  }
  .saga-node.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(198,255,90,0.2);
  }
  .saga-node .node-label {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--mute); margin-bottom: 10px;
  }
  .saga-node .node-amount {
    font-family: var(--mono); font-size: 26px;
    font-weight: 500; color: var(--ink);
    letter-spacing: -0.01em; line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .saga-node .node-currency {
    font-family: var(--mono); font-size: 11px;
    color: var(--accent); margin-top: 4px;
    letter-spacing: 0.05em;
  }
  .saga-node .node-actor {
    font-family: var(--mono); font-size: 10.5px;
    color: var(--mute-2); margin-top: 8px;
    letter-spacing: 0.08em; text-transform: uppercase;
  }

  .saga-arrow {
    position: relative; height: 2px; background: var(--line);
    display: flex; align-items: center; justify-content: center;
  }
  .saga-arrow::after {
    content: ''; position: absolute; right: -1px; top: 50%;
    width: 0; height: 0; transform: translateY(-50%);
    border-left: 6px solid var(--line);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
  }
  .saga-arrow .runner {
    position: absolute; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    top: 50%; transform: translateY(-50%);
    left: 0;
  }
  .saga-arrow .arrow-label {
    position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
    font-family: var(--mono); font-size: 10px;
    color: var(--mute); background: var(--surface); padding: 0 6px;
    letter-spacing: 0.08em;
  }

  .saga-log {
    background: var(--bg); border: 1px solid var(--line);
    padding: 16px 20px;
    font-family: var(--mono); font-size: 11px;
    line-height: 1.8;
    max-height: 180px; overflow: hidden;
  }
  .log-row { display: flex; gap: 14px; }
  .log-time { color: var(--mute-2); min-width: 80px; }
  .log-tag { color: var(--accent); min-width: 80px; }
  .log-tag.ok { color: var(--signal-green); }
  .log-msg { color: var(--ink); }
  .log-id { color: var(--mute); margin-left: auto; }
  @media (max-width: 760px) {
    .saga-diagram { grid-template-columns: 1fr; gap: 8px; }
    .saga-arrow { display: none; }
  }

  /* ===== Мобильное меню (гамбургер) + sticky-CTA к форме (зеркало index.html) ===== */

  /* ===== Trust-strip перед финальным CTA ===== */
  .trust-strip {
    max-width: 1240px; margin: 0 auto; padding: 36px 32px;
    border-top: 1px solid var(--line);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  }
  .ts-item { display: flex; gap: 10px; align-items: flex-start; }
  .ts-mark { font-family: var(--mono); color: var(--accent); font-weight: 700; margin-top: 1px; }
  html[data-theme="light"] .ts-mark { color: #2E7D46; }
  .ts-item strong { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 3px; }
  .ts-item span:not(.ts-mark) { font-size: 12px; color: var(--mute); line-height: 1.5; }
  @media (max-width: 900px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .trust-strip { grid-template-columns: 1fr; gap: 16px; } }

  /* ===== Success-карта формы ===== */
  .lead-success {
    border: 1px solid var(--line); background: var(--surface);
    padding: 36px 30px; text-align: center;
  }
  .lead-success .ls-mark {
    width: 52px; height: 52px; margin: 0 auto 16px;
    border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--accent);
  }
  html[data-theme="light"] .lead-success .ls-mark { border-color: #2E7D46; color: #2E7D46; }
  .lead-success h3 { font-size: 22px; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
  .lead-success p { color: var(--mute); font-size: 14px; line-height: 1.6; max-width: 46ch; margin: 0 auto 8px; }

  /* Подсветка невалидных полей */
  .lead-field input[aria-invalid="true"],
  .lead-field textarea[aria-invalid="true"] { border-color: #E5484D; }
  html[data-theme="light"] .lead-field input[aria-invalid="true"],
  html[data-theme="light"] .lead-field textarea[aria-invalid="true"] { border-color: #C4373D; }

  /* Мобильная читабельность: body 15→16 */
  @media (max-width: 680px) { body { font-size: 16px; } }


  /* CTA-ячейка в хвосте сетки вертикалей (закрывает пустые ячейки) */
  .vertical-card--cta { grid-column: span 2; border: 1px dashed var(--line-2); background: var(--surface); }
  .vertical-card--cta .vertical-title { max-width: 30ch; }
  @media (max-width: 1024px) { .vertical-card--cta { grid-column: span 2; } }
  @media (max-width: 640px) { .vertical-card--cta { grid-column: span 1; } }

  .nav-burger {
    display: none;
    flex-direction: column; justify-content: center; align-items: stretch; gap: 4px;
    width: 38px; height: 38px; padding: 10px 9px;
    background: none; border: 1px solid var(--line-2); cursor: pointer;
  }
  .nav-burger span { display: block; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav-links .burger-only { display: none; }
  .mobile-cta { display: none; }
  @media (max-width: 680px) {
    .nav-burger { display: inline-flex; }
    nav.nav-open .nav-links {
      display: flex; flex-direction: column; gap: 0;
      position: absolute; top: 100%; left: 0; right: 0;
      background: var(--bg);
      border-bottom: 1px solid var(--line);
      padding: 4px 20px 12px;
    }
    nav.nav-open .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
    nav.nav-open .nav-links a:last-child { border-bottom: none; }
    nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
    nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
    nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
    nav.nav-open .nav-links .burger-only { display: block; }
    .mobile-cta {
      display: flex; align-items: center; justify-content: center; gap: 10px;
      position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 70;
      padding: 14px 20px;
      background: var(--accent); color: var(--bg);
      font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
      text-decoration: none;
      box-shadow: 0 6px 24px rgba(10, 10, 11, 0.28);
      /* Появляется только после скролла за hero и прячется над формой (JS ставит .is-visible) */
      transform: translateY(140%); opacity: 0; pointer-events: none;
      transition: transform .25s, opacity .25s;
    }
    .mobile-cta.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
    body { padding-bottom: 68px; }
  }
  html[data-theme="light"] .mobile-cta { background: #C6FF5A; color: #0A0A0B; }
