/* ============================================================
   adpar.ru — эталон главной, направление A (Чистый минимал)
   Реальный контент, синий бренд сохранён (§8). Свет committed:
   реальный сайт светлый. Правки только визуального слоя.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; margin: 0; }

:root {
  --accent: #1f6bf0;
  --accent-hover: #175ad6;
  --accent-soft: #e9f0fe;
  --accent-ring: #9cc0fb;
  --ink: #0e1726;
  --ink-2: #33405a;
  --muted: #59647a;
  --line: #e6eaf2;
  --line-strong: #d6dce8;
  --paper: #ffffff;
  --paper-2: #f7f9fc;
  --paper-3: #eef2f8;
  --logo-chip: #7c869a;
  --ok: #16a34a;
  --ok-soft: #e5f6ec;
  --no: #c3cbd8;
  --shadow-sm: 0 1px 2px rgba(16,23,38,.05);
  --shadow-md: 0 6px 22px -12px rgba(16,23,38,.22);
  --shadow-lg: 0 24px 60px -30px rgba(16,23,38,.32);
  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1120px;
  --card: #ffffff;
  --nav-bg: rgba(255,255,255,.86);
}

/* ── Тёмная тема: по умолчанию системная (@media prefers-color-scheme), плюс явный оверрайд через data-theme ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #4d8bf5; --accent-hover: #6ba0f7; --accent-soft: #17233b; --accent-ring: #2f4d7a;
    --ink: #e9eef6; --ink-2: #b9c3d6; --muted: #8b97ad;
    --line: #26324a; --line-strong: #37455f;
    --paper: #0f1622; --paper-2: #141c2a; --paper-3: #1b2536;
    --card: #151d2c; --nav-bg: rgba(15,22,34,.86);
    --logo-chip: #8a94a8; --ok: #3ecf7a; --ok-soft: #16321f; --no: #55617b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow-md: 0 8px 26px -14px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -30px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --accent: #4d8bf5; --accent-hover: #6ba0f7; --accent-soft: #17233b; --accent-ring: #2f4d7a;
  --ink: #e9eef6; --ink-2: #b9c3d6; --muted: #8b97ad;
  --line: #26324a; --line-strong: #37455f;
  --paper: #0f1622; --paper-2: #141c2a; --paper-3: #1b2536;
  --card: #151d2c; --nav-bg: rgba(15,22,34,.86);
  --logo-chip: #8a94a8; --ok: #3ecf7a; --ok-soft: #16321f; --no: #55617b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow-md: 0 8px 26px -14px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -30px rgba(0,0,0,.7);
}

/* Vue: прячем неотрисованный шаблон до монтирования (убирает вспышку buy-modal и {{...}} на главной) */
[v-cloak]:not(#modules-table) { display: none !important; }
/* Калькулятор: резервируем высоту до и после Vue — иначе CLS на desktop */
#modules-table { min-height: 1140px; }
#modules-table[v-cloak] > * { visibility: hidden; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* a11y: убирает 300ms-задержку и double-tap zoom на интерактивных */
:where(a, button, summary, [role="radio"], .module-tile) { touch-action: manipulation; }
/* цели якорей не уходят под sticky-навбар (66px + запас) */
section[id], .proof[id], #calc { scroll-margin-top: 84px; }
/* skip-link — появляется при фокусе с клавиатуры */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 9px; font-weight: 600; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 12px; }

a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -.02em; line-height: 1.15; }

/* ---- Кнопки ---- */
.btn {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  border-radius: var(--radius-sm); padding: 12px 20px; border: 1px solid transparent;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--accent); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--muted); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 66px; }
.logo { text-decoration: none; display: inline-flex; align-items: center; }
.logo svg { height: 28px; width: 82px; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: 6px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 10px 2px; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
/* Переключатель темы — компактная иконка-призрак, не бросается в глаза */
.theme-toggle { position: relative; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease; }
.theme-toggle:hover { background: var(--paper-2); color: var(--ink); }
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* обе иконки в DOM, кросс-фейд по теме (opacity/scale/blur) вместо display-переключения */
.theme-toggle svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .2s cubic-bezier(0.2,0,0,1), transform .2s cubic-bezier(0.2,0,0,1), filter .2s cubic-bezier(0.2,0,0,1); }
.theme-toggle .i-sun { opacity: 0; transform: scale(.25); filter: blur(4px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { opacity: 1; transform: scale(1); filter: blur(0); }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { opacity: 0; transform: scale(.25); filter: blur(4px); }
}
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: scale(1); filter: blur(0); }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: scale(.25); filter: blur(4px); }
.nav-phone { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nav-phone:hover { color: var(--accent); }

/* Бургер-меню (мобайл) — нативный disclosure, без JS */
.burger { display: none; position: relative; }
.burger > summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border: 1px solid var(--line-strong);
  border-radius: 10px; display: grid; place-items: center; color: var(--ink); background: var(--card); }
.burger > summary::-webkit-details-marker { display: none; }
.burger > summary svg { width: 22px; height: 22px; }
.burger > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.burger[open] > summary { border-color: var(--accent); color: var(--accent); }
.burger-menu { position: absolute; right: 0; top: calc(100% + 12px); min-width: 230px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 8px; display: grid; gap: 2px; }
.burger-menu a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500;
  padding: 12px 14px; border-radius: 9px; }
.burger-menu a:hover { background: var(--paper-2); color: var(--accent); }
.burger-menu a.is-phone { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--line); margin-top: 4px; }

/* ---- Hero ---- */
.hero { padding: 72px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; }
.eyebrow { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 650; line-height: 1.05; margin: 0 0 20px;
  overflow-wrap: anywhere; min-width: 0; }
.hero h1 .hl { color: var(--accent); }
.hero .sub { font-size: 18px; color: var(--muted); margin: 0 0 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .micro { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }

/* Продуктовый визуал — вертикальная лента синхронизаций */
.visual { min-width: 0; }
.sync-view {
  position: relative; overflow: hidden;
  height: 482px; /* 5×~86px + 4×14px — совпадает с measure(), иначе CLS */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.26), #000 24%, #000 76%, rgba(0,0,0,.26));
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.26), #000 24%, #000 76%, rgba(0,0,0,.26));
}
.sync-track { display: flex; flex-direction: column; gap: 14px; will-change: transform; }
/* мягкое размытие верхней и нижней «подглядывающих» карточек — привязано к области, не к карточке */
.sync-view::before, .sync-view::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none;
  height: var(--row, 66px);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.sync-view::before { top: 0;    -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent); mask-image: linear-gradient(to bottom, #000 35%, transparent); }
.sync-view::after  { bottom: 0; -webkit-mask-image: linear-gradient(to top, #000 35%, transparent);    mask-image: linear-gradient(to top, #000 35%, transparent); }
.sync {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
}
.sync-dot { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; }
.sync-dot svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sync .t { font-weight: 650; font-size: 14.5px; }
.sync .s { color: var(--muted); font-size: 13px; }
.sync .s .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.badge { font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge.neu { color: var(--muted); background: var(--paper-3); }

/* ---- Proof: логотипы + цифры ---- */
.proof { padding: 52px 0 64px; }
.proof .lbl { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 18px; letter-spacing: .03em; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 32px; }
.logos span { font-weight: 600; font-size: 15px; color: var(--logo-chip); letter-spacing: .01em; }
.proof .stats { margin-top: 46px; }

/* ---- Section shell ---- */
.section { padding: 74px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-head { margin: 0 0 40px; }
.s-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.s-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin: 0 0 12px; }
.s-head p { font-size: 17px; color: var(--muted); margin: 0; }

/* ---- Feature cards (единая система) ---- */
/* 6-колоночная сетка: 3 карточки по span-2 (ряд 1) + 2 по span-3 (ряд 2, ровно на всю ширину) */
.features { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 20px; }
.features .card { grid-column: span 2; }
.features .card:nth-child(4), .features .card:nth-child(5) { grid-column: span 3; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; font-weight: 700; margin: 0 0 9px; }
.card p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---- Audience ---- */
.aud { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.aud-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.aud-num { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.aud-item p { margin: 12px 0 0; font-size: 15.5px; color: var(--ink-2); }
.aud-item p b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 4px; font-size: 16px; }

/* ---- Как это работает (шаги) ---- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.step { position: relative; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 18px; font-weight: 700; margin: 0 0 9px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---- Цифры ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat-v { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--accent); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; line-height: 1; }
.stat-l { font-size: 14px; color: var(--muted); margin-top: 9px; }

/* ---- Свой дистрибьютор (строка под плитками) ---- */
.byo-inline { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.byo-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.byo-link:hover { text-decoration: underline; }

/* ---- Modules table + calc ---- */
/* Таблица транспонирована (поставщики-строки × 5 возможностей): 6 колонок влезают без гор. скролла */
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.mods { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
table.mods th:first-child { width: 30%; }
table.mods th, table.mods td { padding: 12px 6px; border-bottom: 1px solid var(--line); text-align: center; }
table.mods thead th { background: var(--paper-2); font-size: 11px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--muted); font-weight: 700; line-height: 1.2; }
table.mods thead th:first-child, table.mods tbody th { text-align: left; }
table.mods tbody th { font-weight: 650; color: var(--ink); padding-left: 16px; }
table.mods .yes { color: var(--ok); font-weight: 800; }
table.mods .no { color: var(--no); font-weight: 800; }
table.mods tbody tr:last-child th, table.mods tbody tr:last-child td { border-bottom: none; }
table.mods tbody tr:hover td, table.mods tbody tr:hover th { background: var(--paper-2); }

/* Калькулятор: мультивыбор плиток модулей + панель расчёта */
.calc2 { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 30px; margin-top: 28px; }
.calc2-head h3 { font-size: 20px; margin: 0 0 8px; }
.calc2-head p { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.calc2-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 34px; align-items: start; }
.pick-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.pick-count { color: var(--accent); margin-left: 6px; font-variant-numeric: tabular-nums; text-transform: none; letter-spacing: 0; }
.modules-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.module-tile { position: relative; border: 1.5px solid var(--line-strong); border-radius: 11px; padding: 13px 12px 12px;
  cursor: pointer; background: var(--card); font: inherit; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .12s ease; }
.module-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.module-tile:active { transform: scale(0.96); }
.module-tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.module-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Логотип в «белом окне»: нормализует любые пропорции (широкие/квадратные) и остаётся видимым в тёмной теме — фон окна всегда светлый, пер-логотипные тёмные версии не нужны */
/* Окно без обводки: на светлой теме белый фон сливается с плиткой (лого «дышит»), на тёмной — остаётся светлым чипом */
.mt-logo { width: 100%; height: 48px; background: #fff; border-radius: 8px;
  display: grid; place-items: center; padding: 5px 10px; }
.mt-logo img { width: 80px; height: 32px; max-height: 32px; max-width: 100%; object-fit: contain; display: block; }
.mt-name { font-weight: 650; font-size: 13.5px; color: var(--ink-2); letter-spacing: -.01em; }
.mt-check { position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.25); filter: blur(4px);
  transition: opacity .16s cubic-bezier(0.2,0,0,1), transform .16s cubic-bezier(0.2,0,0,1), filter .16s cubic-bezier(0.2,0,0,1); }
.mt-check svg { width: 12px; height: 12px; }
.module-tile[aria-pressed="true"] .mt-check { opacity: 1; transform: scale(1); filter: blur(0); }
.mt-badge { position: absolute; top: -9px; left: 12px; background: #e5484d; color: #fff; font-size: 10.5px;
  font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; }
.calc2-panel { border-left: 1px solid var(--line); padding-left: 32px; }
/* Подарок: по умолчанию приглушён (не активирован); при выборе 3+ дистрибьюторов — .is-active «загорается» */
.gift { display: flex; align-items: center; gap: 10px; background: var(--paper-2); color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: 10px; padding: 11px 13px; margin-bottom: 16px; font-size: 13.5px; opacity: .7;
  transition: background .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease, box-shadow .25s ease; }
.gift svg { width: 22px; height: 22px; color: var(--muted); flex: none; transition: color .25s ease; }
.gift b { color: inherit; }
.gift.is-active { background: var(--accent-soft); color: var(--ink-2); border-style: solid; border-color: var(--accent-ring);
  opacity: 1; box-shadow: 0 8px 22px -10px rgba(31,107,240,.45); }
.gift.is-active svg { color: var(--accent); }
.gift.is-active b { color: var(--accent); }
.calc-field { display: grid; gap: 9px; margin-bottom: 18px; }
.calc-field label, .calc-flabel { font-size: 13px; color: var(--muted); font-weight: 600; }
/* Кастомный выбор лицензии — радио-плитки вместо системного select */
.lic-pick { display: grid; gap: 8px; }
.lic-opt { display: flex; align-items: center; gap: 11px; border: 1.5px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px; cursor: pointer; background: var(--card); font-size: 14.5px; font-weight: 500; color: var(--ink);
  transition: border-color .14s ease, background .14s ease, transform .12s ease; }
.lic-opt:hover { border-color: var(--accent); }
.lic-opt:active { transform: scale(0.985); }
.lic-opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.lic-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lic-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none;
  position: relative; transition: border-color .14s ease; }
.lic-opt[aria-checked="true"] .lic-radio { border-color: var(--accent); }
.lic-opt[aria-checked="true"] .lic-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.calc-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px;
  padding: 16px 0 6px; border-top: 1px solid var(--line); }
.calc-total .k { font-weight: 600; }
.calc-total .v { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calc-econ { font-size: 13px; color: var(--muted); margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.calc-econ s { color: var(--muted); }
.calc-econ b { color: var(--ok); font-weight: 700; }
.calc2 .btn { width: 100%; justify-content: center; }
.calc2 .hint { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
/* Подсвеченная подсказка про выгоду с лицензией */
.hint-hl { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 9px 12px;
  background: var(--ok-soft); color: var(--ink-2); border-radius: 8px; font-size: 13px; }
.hint-hl svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hint-hl b { color: var(--ok); }

/* ---- Консультация: мягкий второй конверсионный путь ---- */
/* padding-top: 0 — верхний зазор берётся только от padding-bottom предыдущей секции,
   так он равен нижнему зазору (padding-bottom этой секции) до футера */
.consult-sec { padding-top: 0; }
.consult { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 44px; }
.consult-txt h2 { font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 8px; }
.consult-txt p { color: var(--muted); font-size: 16px; margin: 0; }
.consult .btn { flex: none; }

/* Плавная прокрутка к якорям (#calc, #consult) + отступ под липкую шапку */
html { scroll-behavior: smooth; }
#calc, #consult { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Форма консультации (needConsult) */
.consult-form { flex: 0 0 340px; max-width: 100%; display: grid; gap: 10px; }
.consult-form .fld { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; background: var(--card); color: var(--ink); }
.consult-form .fld::placeholder { color: var(--muted); }
.consult-form .fld:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.consult-form .btn { width: 100%; justify-content: center; margin-top: 2px; }
.consult-form .buy-alert { margin-top: 2px; }
@media (max-width: 560px) { .consult-form { flex-basis: 100%; } }

/* Подсветка невалидных полей форм (live-валидация) */
.buy-fld.is-invalid, .fld.is-invalid { border-color: #e5484d !important; box-shadow: 0 0 0 3px rgba(229,72,77,.16) !important; }

/* Модалка заявки калькулятора (tableA) */
.buy-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(10, 16, 28, .55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.buy-box {
  width: 100%; max-width: 460px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.buy-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.buy-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.buy-x { border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.buy-x:hover { color: var(--ink); }
.buy-body { padding: 20px 22px; }
.buy-empty { margin: 0; color: var(--muted); }
.buy-sum { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--ink-2); }
.buy-sum .buy-gift { color: var(--accent); font-weight: 600; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.buy-total s { color: var(--muted); font-size: 13px; margin-left: 6px; }
.buy-fld {
  width: 100%; margin-top: 10px; padding: 12px 14px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
}
.buy-fld::placeholder { color: var(--muted); }
.buy-fld:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.buy-alert { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.buy-alert.is-success { background: rgba(34, 164, 96, .1); border: 1px solid rgba(34, 164, 96, .32); color: #22a460; }
.buy-alert.is-danger { background: rgba(229, 72, 77, .09); border: 1px solid rgba(229, 72, 77, .3); color: #e5484d; }
.buy-foot { padding: 0 22px 22px; }
.buy-foot .btn { width: 100%; justify-content: center; }

/* ---- Footer ---- */
.foot { background: #0e1626; color: #c4cee0; padding: 54px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot .logo { color: #fff; display: inline-block; margin-bottom: 14px; }
.foot p { margin: 0; font-size: 14.5px; color: #8f9cb5; }
.foot h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: #c4cee0; text-decoration: none; font-size: 14.5px; }
.foot a:hover { color: #fff; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #1e2a40; font-size: 13px; color: #6f7d97;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---- Адаптив ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .features { grid-template-columns: 1fr 1fr; }
  .features .card, .features .card:nth-child(4), .features .card:nth-child(5) { grid-column: auto; }
  .aud { grid-template-columns: 1fr 1fr; }
  .calc2-grid { grid-template-columns: 1fr; gap: 26px; }
  .calc2-panel { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-phone { display: none; }
  .burger { display: block; }
}
/* Таблица → вертикальные карточки: без горизонтального скролла */
@media (max-width: 640px) {
  .table-card { border: none; background: transparent; box-shadow: none; overflow: visible; }
  table.mods, table.mods thead, table.mods tbody, table.mods tr, table.mods th, table.mods td { display: block; }
  table.mods thead { display: none; }
  table.mods th:first-child { width: auto; }
  table.mods tr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 4px 16px 8px; margin-bottom: 12px; }
  table.mods tbody th { padding: 12px 0 10px; font-size: 16px; border-bottom: 1px solid var(--line); }
  table.mods td { display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--paper-3); text-align: right; }
  table.mods tr td:last-child { border-bottom: none; }
  table.mods td::before { content: attr(data-label); color: var(--muted); font-weight: 500; font-size: 14px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }           /* больше ширины контенту + чинит клип шапки на узких экранах (≤340px) */
  .nav-cta { gap: 8px; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 52px 0; }
  .features, .aud { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
  .calc2 { padding: 22px 18px; }
  .modules-pick { grid-template-columns: 1fr 1fr; }
  .consult { padding: 28px 22px; }
  .consult .btn { width: 100%; justify-content: center; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Гарантированный отступ последнего блока до футера (симметрично верхнему зазору) */
main#main > section:last-of-type { padding-bottom: 88px; }

/* CTA-блоки «текст + кнопка»: текст занимает доступную ширину, кнопка справа (не уезжает вниз) */
.consult-txt { flex: 1 1 0; min-width: 260px; }
.cfg-cta > div:first-child { flex: 1 1 0; min-width: 260px; }
