/* ParserPlus — shared styles
   Light corporate B2B, blue primary, JetBrains Mono accents, dark "data" sections. */

:root {
  /* Palette */
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef2f7;
  --ink: #0b1220;
  --ink-2: #1b2538;
  --muted: #5b6b82;
  --muted-2: #8896ad;
  --line: #e3e8ef;
  --line-2: #cbd5e1;
  --primary: #1e40af;
  --primary-700: #1e3a8a;
  --primary-100: #dbe4f7;
  --primary-50: #eef3fc;
  --accent: #1e40af;
  --warn: #ea580c;
  --danger: #dc2626;
  --dark: #0a1020;
  --dark-2: #0f1830;
  --dark-3: #1a2547;
  --dark-line: #1f2a47;
  --dark-ink: #e8edf7;
  --dark-muted: #8c9bbe;

  /* Density (comfortable default) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-22: 22px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-48: 48px;
  --fs-56: 56px;
  --fs-64: 64px;

  --r-2: 6px;
  --r-3: 8px;
  --r-4: 8px;
  --r-5: 8px;
  --r-6: 8px;

  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-2: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-3: 0 6px 20px -6px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-blue: 0 1px 2px rgba(15, 23, 42, 0.06);

  --container: 1240px;
  --container-tight: 1080px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-density="compact"] {
  --s-3: 10px;
  --s-4: 12px;
  --s-5: 16px;
  --s-6: 20px;
  --s-8: 24px;
  --s-10: 32px;
  --s-12: 36px;
  --s-16: 48px;
  --s-20: 60px;
  --s-24: 72px;
  --s-32: 96px;

  --fs-16: 15px;
  --fs-18: 16px;
  --fs-20: 18px;
  --fs-22: 20px;
  --fs-24: 22px;
  --fs-28: 26px;
  --fs-32: 28px;
  --fs-40: 36px;
  --fs-48: 42px;
  --fs-56: 48px;
  --fs-64: 56px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-16);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(40px, 5vw, var(--fs-64)); letter-spacing: -0.01em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.2vw, var(--fs-40)); letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: var(--fs-24); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--primary); color: #fff; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container-tight {
  width: 100%;
  max-width: var(--container-tight);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.section { padding: var(--s-16) 0; }
.section-sm { padding: var(--s-10) 0; }
.section-tight { padding: var(--s-12) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--primary);
}

.lead {
  font-size: var(--fs-20);
  color: var(--muted);
  line-height: 1.5;
  max-width: 64ch;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: var(--s-8);
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: var(--s-3);
  font-weight: 800;
  font-size: var(--fs-18);
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-blue);
}
.brand-mark::after { content: '{}'; letter-spacing: -1px; }
.brand-name { color: var(--ink); }
.brand-name b { color: var(--primary); }

.nav {
  display: flex; align-items: center; gap: var(--s-2);
  margin-left: auto;
}
.nav-link {
  padding: 8px 12px;
  font-size: var(--fs-14);
  color: var(--ink-2);
  border-radius: 8px;
  transition: background .15s, color .15s;
  font-weight: 500;
}
.nav-link:hover { background: var(--surface); color: var(--primary); }
.nav-link.is-active { color: var(--primary); background: var(--primary-50); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0;
  width: 600px; max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: var(--s-4);
  box-shadow: var(--shadow-3);
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s;
  margin-top: 6px;
}
.nav-dd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-3); }
.nav-dd-group-title {
  font-size: var(--fs-12); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 12px 4px;
}
.nav-dd-group-title--mt { margin-top: var(--s-3); }
.nav-dd-foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3);
  margin-top: var(--s-3); padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.nav-dropdown-menu a.nav-dd-lead {
  gap: 3px;
  padding: 2px 12px 13px;
  margin-bottom: 11px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.nav-dropdown-menu a.nav-dd-lead b { font-size: var(--fs-16); color: var(--ink); font-weight: 700; line-height: 1.3; }
.nav-dropdown-menu a.nav-dd-lead small { font-size: var(--fs-13); color: var(--muted); font-weight: 400; line-height: 1.45; }
.nav-dropdown-menu a.nav-dd-lead:hover { background: transparent; }
.nav-dropdown-menu a.nav-dd-lead:hover b { color: var(--primary); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: var(--fs-14);
}
.nav-dropdown-menu a small {
  font-size: var(--fs-12);
  color: var(--muted);
  font-weight: 400;
}
.nav-dropdown-menu a:hover { background: var(--surface); color: var(--primary); }

/* Меню «Решения»: узкая колонка под короткий список. Триггер не ссылка,
   потому что вести его некуда, у решений нет общей страницы. */
.nav-dropdown-menu--sm { width: 380px; }
.nav-dropdown > .nav-link { cursor: default; user-select: none; }



.header-cta {
  display: flex; align-items: center; gap: var(--s-3);
}
.header-phone {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink);
}
.header-phone:hover { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  height: 44px;
  padding: 0 var(--s-5);
  border-radius: var(--r-2);
  font-weight: 600;
  font-size: var(--fs-15);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { }
.btn:active { }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-700); }
.btn-ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; }
.btn-lg { height: 52px; padding: 0 var(--s-6); font-size: var(--fs-16); border-radius: var(--r-2); }
.btn-sm { height: 36px; padding: 0 var(--s-4); font-size: var(--fs-13); }
.btn-block { width: 100%; }

.btn .arr { }
.btn:hover .arr { }

/* Hero */
.hero {
  position: relative;
  padding: var(--s-12) 0 var(--s-10);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: var(--s-10);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-8); }
}
.hero h1 b { color: var(--primary); }
.hero-sub {
  margin-top: var(--s-5);
  font-size: var(--fs-20);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.5;
}
.hero-ctas {
  margin-top: var(--s-8);
  display: flex; gap: var(--s-3);
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: var(--s-6);
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  color: var(--muted);
  font-size: var(--fs-14);
}
.dl-sample {
  display: inline-block;
  margin-top: var(--s-5);
  color: var(--primary);
  font-weight: 600;
  font-size: var(--fs-14);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dl-sample:hover { color: var(--primary-700); }

/* ---------- Contact modal ---------- */
.contact-modal[hidden] { display: none; }
.contact-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-5);
}
.contact-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(11,18,32,0.55);
  opacity: 0; transition: opacity .2s ease;
}
.contact-modal.is-open .contact-modal__backdrop { opacity: 1; }
.contact-modal__card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 18px;
  padding: var(--s-8) var(--s-6) var(--s-6);
  box-shadow: 0 30px 80px rgba(11,18,32,0.30);
  transform: translateY(12px) scale(.98); opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.contact-modal.is-open .contact-modal__card { transform: none; opacity: 1; }
.contact-modal__x {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font-size: 24px; line-height: 1;
  cursor: pointer; transition: background .15s, color .15s;
}
.contact-modal__x:hover { background: var(--surface-2); color: var(--ink); }
.contact-modal__title { font-size: var(--fs-22); margin: 0 0 6px; }
.contact-modal__sub { color: var(--muted); font-size: var(--fs-14); margin: 0 0 var(--s-5); line-height: 1.5; }
.contact-modal__opts { display: grid; gap: 10px; }
.contact-opt {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; font: inherit;
  padding: 14px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer; text-decoration: none;
  transition: border-color .15s, background .15s, transform .1s;
}
.contact-opt:hover { border-color: var(--primary); background: var(--primary-50); }
.contact-opt:active { transform: scale(.99); }
.contact-opt:focus { outline: none; }
.contact-opt:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.contact-modal__card:focus { outline: none; }
.contact-opt__ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
}
.contact-opt__ic svg { width: 22px; height: 22px; display: block; }
.contact-opt__ic--tg { background: #229ED9; }
.contact-opt__ic--vk { background: #0077FF; }
.contact-opt__ic--mail { background: var(--primary); }
.contact-opt__ic--chat { background: #16a34a; }
.contact-opt__tx { display: flex; flex-direction: column; line-height: 1.3; }
.contact-opt__tx b { font-size: var(--fs-15); color: var(--ink); }
.contact-opt__tx small { font-size: var(--fs-13); color: var(--muted); }
.contact-opt__arr { margin-left: auto; color: var(--muted-2); font-size: 18px; transition: transform .15s, color .15s; }
.contact-opt:hover .contact-opt__arr { color: var(--primary); transform: translateX(3px); }
body.contact-open { overflow: hidden; }
.contact-opt.is-copied { border-color: #16a34a; background: #f0fdf4; }
.contact-opt.is-copied .contact-opt__tx small { color: #16a34a; font-weight: 600; }
.contact-opt.is-copied .contact-opt__ic--mail { background: #16a34a; }

/* ---------- Toast ---------- */
.app-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  z-index: 300; max-width: calc(100vw - 32px);
  background: var(--ink); color: #fff;
  font-size: var(--fs-14); font-weight: 500;
  padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 12px 34px rgba(11,18,32,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.app-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 280; display: flex; justify-content: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}
.cookie-banner.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner-inner {
  width: 100%; max-width: 880px;
  display: flex; align-items: center; gap: var(--s-6);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-4);
  box-shadow: 0 18px 48px rgba(11,18,32,0.18);
  padding: 16px 20px;
}
.cookie-banner-text {
  margin: 0; flex: 1 1 auto;
  font-size: var(--fs-14); line-height: 1.55; color: var(--muted);
}
.cookie-banner-text a { color: var(--primary); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: var(--s-3); flex: 0 0 auto; }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: var(--s-4); padding: 16px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1 1 0; }
}

/* ---------- Consent checkbox ---------- */
.form-consent-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin: var(--s-4) 0 var(--s-2);
  font-size: var(--fs-13); line-height: 1.5; color: var(--muted);
  cursor: pointer;
}
.form-consent-check input[type="checkbox"] {
  flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px;
  accent-color: var(--primary); cursor: pointer;
}
.form-consent-check a { color: var(--primary); text-decoration: underline; }
/* Ссылка на политику под галочкой. Отдельной строкой, а не внутри галочки:
   с 01.09.2025 согласие на обработку персональных данных оформляется отдельно
   от других документов (156-ФЗ), и в одну отметку их не объединяем.
   Селектор с [data-form]: в тёмном блоке заявки на главной правило `.mask p`
   иначе раздувало подпись до основного текста и отодвигало её от галочки. */
[data-form] .form-consent-note {
  margin: 0 0 var(--s-3) 28px;
  font-size: var(--fs-12); line-height: 1.5; color: var(--muted-2);
}
[data-form] .form-consent-note a { color: inherit; text-decoration: underline; }
/* Строка под тарифами: валюта, НДС, способы оплаты и ссылки на условия. */
.mplans-note {
  margin: var(--s-6) auto 0; max-width: 760px;
  text-align: center; font-size: var(--fs-13); line-height: 1.6; color: var(--muted);
}
.mplans-note a { color: inherit; text-decoration: underline; }
.form-error-msg {
  margin: 0 0 var(--s-3);
  padding: 12px 14px;
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: var(--r-3);
  color: #b42318;
  font-size: var(--fs-13); line-height: 1.5;
}
.hero-meta-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  color: var(--ink-2);
}
.hero-meta-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-bg {
  display: none;
}

/* Hero terminal visual */
.term {
  background: var(--dark);
  border-radius: var(--r-5);
  box-shadow: 0 30px 70px -20px rgba(11,18,32,0.45), 0 8px 24px -6px rgba(11,18,32,0.18);
  overflow: hidden;
  color: var(--dark-ink);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.55;
}
.term-bar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px 14px;
  background: var(--dark-2);
  border-bottom: 1px solid var(--dark-line);
}
.term-dots { display: flex; gap: 6px; }
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: #424b6b; }
.term-dot.red { background: #ff5f56; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #27c93f; }
.term-title {
  color: var(--dark-muted);
  font-size: 12px;
}
.term-tabs {
  display: flex; gap: 2px;
  margin-left: auto;
}
.term-tab {
  padding: 4px 10px;
  font-size: 11px;
  color: var(--dark-muted);
  border-radius: 6px;
}
.term-tab.is-active { color: var(--dark-ink); background: var(--dark-3); }

.term-body {
  padding: var(--s-5) var(--s-6);
  min-height: 360px;
  position: relative;
}
.term-line { opacity: 0; transform: translateY(4px); animation: termIn .35s var(--ease) forwards; }
.term-line + .term-line { margin-top: 2px; }
.term-c-gray { color: #6b7a99; }
.term-c-blue { color: #7aa7ff; }
.term-c-green { color: #5cf2a4; }
.term-c-yellow { color: #ffd166; }
.term-c-pink { color: #ff9bd2; }
.term-c-cyan { color: #6fe6f5; }
.term-c-white { color: #e8edf7; }
.term-prompt::before { content: '$ '; color: var(--accent); }

@keyframes termIn { to { opacity: 1; transform: translateY(0); } }

.term-progress {
  margin-top: 10px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
}
.term-bar-fill {
  flex: 1; height: 6px;
  background: var(--dark-3);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.term-bar-fill::after {
  content: '';
  position: absolute; inset: 0;
  width: var(--p, 64%);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  animation: progFlow 2.4s ease-in-out infinite alternate;
}
@keyframes progFlow {
  0% { width: 12%; }
  100% { width: 96%; }
}

.term-rows {
  margin-top: 12px;
  border-top: 1px dashed var(--dark-line);
  padding-top: 10px;
  display: grid;
  grid-template-columns: 24px 1.4fr 1fr 0.6fr;
  gap: 4px 12px;
  font-size: 12px;
}
.term-rows-h { color: var(--dark-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.term-rows .badge-ok { color: var(--accent); }

/* Counters strip */
.stat-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: var(--s-8) 0;
  gap: var(--s-6);
}
@media (max-width: 760px) { .stat-strip-inner { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }
.stat {
  text-align: left;
}
.stat-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-40);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-num .unit { color: var(--primary); }
.stat-label {
  margin-top: 8px;
  font-size: var(--fs-14);
  color: var(--muted);
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-5);
  padding: var(--s-6);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--line-2); }
.card-flat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: var(--s-5);
}

/* Section heads */
.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
}
.sec-head-text { max-width: 720px; }
.sec-head h2 { margin-top: 0; }
.sec-head p { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-18); }

/* Sites grid */
.sites {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 980px) { .sites { grid-template-columns: repeat(2, 1fr); } }
.site-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  transition: all .15s;
  position: relative;
  overflow: hidden;
}
.site-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.site-card-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700; font-size: 14px;
  color: #fff;
  letter-spacing: -0.02em;
}
.site-card-name { font-weight: 700; font-size: var(--fs-16); }
.site-card-meta {
  font-size: var(--fs-13);
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.site-card-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-13);
  color: var(--primary);
  font-weight: 600;
}
.site-card-cta::after { content: ''; transition: transform .15s; }
.site-card:hover .site-card-cta::after { transform: translateX(3px); }

/* Pricing cards */
.tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 980px) { .tariffs { grid-template-columns: 1fr; } }
.tariff {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-5);
  padding: var(--s-8) var(--s-6) var(--s-6);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tariff:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.tariff.is-popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-50), #fff 30%);
  box-shadow: var(--shadow-blue);
}
.tariff-badge {
  position: absolute; top: -12px; left: var(--s-6);
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  font-size: var(--fs-12);
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.tariff-name {
  font-size: var(--fs-14);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.tariff-price {
  margin-top: var(--s-3);
  font-size: var(--fs-48);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 8px;
  line-height: 1;
}
.tariff-price small {
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--muted);
}
.tariff-price-from {
  font-size: var(--fs-14);
  color: var(--muted);
  margin-top: 2px;
}
.tariff-desc {
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: var(--fs-15);
}
.tariff-features {
  margin: var(--s-5) 0;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: var(--s-3);
}
.tariff-features li {
  list-style: none;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--fs-14);
  color: var(--ink-2);
}
.tariff-features li::before {
  content: '';
  width: 16px; height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
  border-radius: 4px;
  background:
    linear-gradient(45deg, transparent 46%, #fff 47%, #fff 53%, transparent 54%) 2px 6px / 8px 2px no-repeat,
    linear-gradient(-45deg, transparent 46%, #fff 47%, #fff 53%, transparent 54%) 6px 2px / 2px 8px no-repeat,
    var(--primary);
}
.tariff-cta { margin-top: auto; }

/* Calculator */
.calc-wrap {
  background: var(--dark);
  border-radius: var(--r-6);
  color: var(--dark-ink);
  overflow: hidden;
  position: relative;
}
.calc-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
}
@media (max-width: 980px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-body { padding: var(--s-10); }
.calc-summary {
  background: var(--dark-2);
  padding: var(--s-10);
  border-left: 1px solid var(--dark-line);
  display: flex; flex-direction: column;
}
@media (max-width: 980px) { .calc-summary { border-left: 0; border-top: 1px solid var(--dark-line); } }

.calc-h {
  font-size: var(--fs-24);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.calc-sub {
  color: var(--dark-muted);
  font-size: var(--fs-14);
  margin-bottom: var(--s-6);
}

.field-group {
  margin-top: var(--s-6);
}
.field-group:first-of-type { margin-top: 0; }
.field-label {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 10px;
}
.field-label .val { color: var(--accent); }

.chip-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--dark-3);
  border: 1px solid var(--dark-line);
  color: var(--dark-ink);
  font-size: var(--fs-14);
  font-weight: 500;
  transition: all .15s;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { border-color: var(--primary); }
.chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px -6px var(--primary);
}
.chip-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}
.chip-small { padding: 6px 10px; font-size: 12px; }

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--dark-3);
  border-radius: 999px;
  outline: none;
  margin: 0;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.5);
  cursor: pointer;
  transition: transform .15s;
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid #fff;
  cursor: pointer;
}

.calc-summary-h {
  font-size: 13px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: var(--s-4);
}
.calc-rows {
  border-top: 1px solid var(--dark-line);
  margin-bottom: var(--s-5);
}
.calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--dark-line);
  font-size: var(--fs-14);
}
.calc-row span:first-child { color: var(--dark-muted); }
.calc-row span:last-child { color: var(--dark-ink); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.calc-total {
  margin-top: auto;
  padding-top: var(--s-5);
  border-top: 1px dashed var(--dark-line);
}
.calc-total-label {
  color: var(--dark-muted);
  font-size: var(--fs-14);
  margin-bottom: 6px;
}
.calc-total-val {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-48);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.calc-total-val small {
  font-size: var(--fs-18);
  color: var(--dark-muted);
  font-weight: 500;
}
.calc-note {
  margin-top: 10px;
  color: var(--dark-muted);
  font-size: 12px;
  line-height: 1.5;
}
.calc-cta {
  margin-top: var(--s-5);
}

/* ===== Light calculator + form (replaces dark calc) ===== */
.calc-light {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-5);
  padding: var(--s-8);
  box-shadow: var(--shadow-2);
}
.calc-light .field-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-13);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Manrope', sans-serif;
}
.calc-light .field-label .val {
  color: var(--primary);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-13);
  font-weight: 600;
}
.calc-light .field-group { margin-top: var(--s-5); }
.calc-light .field-group:first-of-type { margin-top: 0; }
.calc-light .chip {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}
.calc-light .chip:hover { border-color: var(--primary); color: var(--primary); }
.calc-light .chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.calc-light .slider {
  background: var(--surface-2);
}
.calc-light .slider::-webkit-slider-thumb {
  background: var(--primary);
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.4), 0 0 0 1px var(--line);
}
.calc-light .slider-marks {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Calculator preset cards (site selector) */
.calc-sites {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 980px) { .calc-sites { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .calc-sites { grid-template-columns: repeat(2, 1fr); } }
.calc-site {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.calc-site:hover { border-color: var(--primary); transform: translateY(-1px); }
.calc-site.is-active {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 2px var(--primary) inset, var(--shadow-2);
}
.calc-site .wm {
  height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.calc-site .name { font-size: var(--fs-13); font-weight: 700; }
.calc-site .price { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.calc-site.is-fix .price { color: var(--accent); }

/* Radio cards (что собирать) */
.scope-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 640px) { .scope-row { grid-template-columns: 1fr; } }
.scope-card {
  position: relative;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  cursor: pointer;
  background: #fff;
  transition: all .15s;
  display: flex; flex-direction: column; gap: 6px;
}
.scope-card:hover { border-color: var(--primary); }
.scope-card input { position: absolute; opacity: 0; pointer-events: none; }
.scope-card .scope-t {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  font-size: var(--fs-15);
}
.scope-card .scope-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  flex: 0 0 18px;
  position: relative;
}
.scope-card .scope-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: transparent;
  transition: background .15s;
}
.scope-card input:checked + .scope-t .scope-radio { border-color: var(--primary); }
.scope-card input:checked + .scope-t .scope-radio::after { background: var(--primary); }
.scope-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-50);
}
.scope-card p { color: var(--muted); font-size: var(--fs-13); padding-left: 28px; }
.scope-card .price-tag {
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  padding-left: 28px;
  font-weight: 600;
}
.scope-card .price-tag .up { color: var(--primary); }

/* Info tooltip */
.info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  cursor: help;
  position: relative;
}
.info::after {
  content: 'i';
}
.info:hover { background: var(--primary); color: #fff; }
.info[data-tip]:hover::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  white-space: normal;
  width: 260px;
  text-align: left;
  z-index: 10;
  box-shadow: var(--shadow-3);
  line-height: 1.5;
}

/* Urgency single toggle */
.urg-toggle {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border-radius: var(--r-3);
  border: 1px solid var(--line);
  cursor: pointer;
}
.urg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.urg-toggle .urg-check {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--line-2);
  flex: 0 0 22px;
  position: relative;
  background: #fff;
}
.urg-toggle .urg-check::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'><path d='M1 5l3 3 7-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px 10px no-repeat;
  opacity: 0;
}
.urg-toggle:has(input:checked) { background: var(--primary-50); border-color: var(--primary); }
.urg-toggle:has(input:checked) .urg-check { background: var(--primary); border-color: var(--primary); }
.urg-toggle:has(input:checked) .urg-check::after { opacity: 1; }
.urg-toggle .urg-text { display: flex; flex-direction: column; gap: 2px; }
.urg-toggle .urg-text b { font-size: var(--fs-15); }
.urg-toggle .urg-text small { color: var(--muted); font-size: var(--fs-13); }
.urg-toggle .urg-text small b { color: var(--primary); font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Total panel (light) */
.calc-total-light {
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-5);
  align-items: end;
}
@media (max-width: 640px) { .calc-total-light { grid-template-columns: 1fr; } }
.calc-total-light .label {
  font-size: var(--fs-13);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  margin-bottom: 6px;
}
.calc-total-light .num {
  display: flex; align-items: baseline; gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-56);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.calc-total-light .num .prefix {
  font-size: var(--fs-22);
  color: var(--muted);
  font-weight: 600;
}
.calc-total-light .num small {
  font-size: var(--fs-22);
  font-weight: 600;
  color: var(--muted);
}
.calc-total-light .meta {
  margin-top: 6px;
  font-size: var(--fs-13);
  color: var(--muted);
}
.calc-total-light .meta .accent {
  color: var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
}

/* ===== Light contact form (replaces dark) ===== */
.contact-light {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-5);
  padding: var(--s-8);
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
}
@media (max-width: 860px) { .contact-light { grid-template-columns: 1fr; padding: var(--s-6); } }
.contact-light .info-col h3 { font-size: var(--fs-24); margin-bottom: var(--s-3); }
.contact-light .info-col p { color: var(--muted); font-size: var(--fs-15); }
.contact-light .contact-list { margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.contact-light .contact-list li {
  list-style: none;
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-14);
  color: var(--ink);
}
.contact-light .contact-list .k {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  width: 80px;
  flex: 0 0 80px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-light .contact-list a { color: var(--primary); font-weight: 600; }
.contact-light .form .field-name {
  font-size: var(--fs-13);
  color: var(--ink);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.contact-light .form .field input,
.contact-light .form .field select,
.contact-light .form .field textarea {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
}
.contact-light .form .field input::placeholder,
.contact-light .form .field textarea::placeholder { color: var(--muted-2); }
.contact-light .form .field input:focus,
.contact-light .form .field textarea:focus,
.contact-light .form .field select:focus { border-color: var(--primary); background: var(--primary-50); }
.contact-light .file-drop {
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  padding: var(--s-4);
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-14);
  cursor: pointer;
  transition: all .15s;
  background: var(--surface);
}
.contact-light .file-drop:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.contact-light .file-drop strong { color: var(--primary); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.contact-light .file-drop input { display: none; }
.contact-light .file-drop.has-file { border-style: solid; border-color: var(--accent); color: var(--accent); }
.contact-light .urls-light input {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.contact-light .urls-light input:focus { border-color: var(--primary); background: var(--primary-50); outline: none; }
.contact-light .urls-light input::placeholder { color: var(--muted-2); }
.contact-light .url-row-light .icon-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}
.contact-light .url-row-light .icon-btn:hover { color: var(--danger); border-color: var(--danger); }
.contact-light .url-add {
  border: 1px dashed var(--line-2);
  color: var(--muted);
}
.contact-light .url-add:hover { color: var(--primary); border-color: var(--primary); }
.contact-light .form-consent { color: var(--muted); }
.contact-light .form-consent a { color: var(--ink); text-decoration: underline; }
.contact-light .urgency-row .urg-card {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
.contact-light .urgency-row .urg-card .urg-s { color: var(--muted); }
.contact-light .urgency-row input:checked + .urg-card {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.contact-light .urgency-row input:checked + .urg-card .urg-s { color: rgba(255,255,255,0.85); }
.contact-light .form-success { border-color: var(--accent); background: rgba(0,194,119,0.06); }

/* ===== Sheet preview (replaces CLI terminal in hero) ===== */
.sheet {
  background: #fff;
  border-radius: var(--r-5);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.sheet-bar {
  height: 38px;
  background: #f4f6fa;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
}
.sheet-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.sheet-bar .file {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.sheet-bar .file::before {
  content: 'X';
  width: 18px; height: 18px;
  border-radius: 4px;
  background: #1d6f42;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 11px;
  display: grid; place-items: center;
  letter-spacing: -0.04em;
}
.sheet-bar .live {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Manrope', sans-serif;
}
.sheet-bar .live::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.sheet-tabs {
  display: flex; align-items: stretch;
  background: var(--surface-2);
  height: 34px;
}
.sheet-tab {
  height: 34px;
  padding: 0 16px;
  font-size: 12px;
  display: flex; align-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 500;
}
.sheet-tab.is-active {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  position: relative;
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}
.sheet-tab.is-active::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--primary);
}
.sheet-tabs .sheet-tab-plus { color: var(--muted-2); border-right: 0; }

.sheet-table {
  display: flex; flex-direction: column;
  background: #fff;
}
.sheet-row {
  display: grid;
  grid-template-columns: 44px 1.8fr 1fr 1.2fr 0.9fr;
  border-bottom: 1px solid #f0f3f7;
  align-items: center;
  min-height: 38px;
}
.sheet-row > div {
  padding: 8px 14px;
  font-size: 13px;
  font-family: 'Manrope', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-row > div + div { border-left: 1px solid #f0f3f7; }
.sheet-header {
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.sheet-header > div { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; }
.sheet-cell-num { color: var(--muted-2); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }
.sheet-cell-price { color: var(--ink); font-weight: 700; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.sheet-cell-contact { color: var(--muted); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.sheet-status { color: var(--accent); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.sheet-status::before {
  content: '';
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'><path d='M1 5l3 3 7-7' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center;
  background-size: 9px 8px;
  background-repeat: no-repeat;
  flex: 0 0 14px;
}
.sheet-row.is-new {
  background: linear-gradient(90deg, rgba(0,194,119,0.08), transparent 30%);
  animation: rowIn .5s ease both;
}
@keyframes rowIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.sheet-progress {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
}
.sheet-progress-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.sheet-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.sheet-progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  animation: sheetProg 3.5s ease-in-out infinite alternate;
}
@keyframes sheetProg { from { width: 28%; } to { width: 92%; } }
.sheet-progress-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  color: var(--ink);
}

/* ===== Quiz calculator (parsingmaster-style) ===== */
.quiz {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  min-height: 560px;
  overflow: hidden;
}
.quiz-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.quiz-screen {
  padding: var(--s-10);
  flex: 1;
  display: none;
  flex-direction: column;
  gap: var(--s-6);
}
@media (max-width: 760px) { .quiz-screen { padding: var(--s-6); } }
.quiz-screen.is-active { display: flex; }
.quiz-q {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 800px;
  color: var(--ink);
}
.quiz-sub {
  margin-top: -8px;
  font-size: var(--fs-15);
  color: var(--muted);
  max-width: 60ch;
}
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: auto;
}
@media (max-width: 640px) { .quiz-options { grid-template-columns: 1fr; } }
.quiz-opt {
  position: relative;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  cursor: pointer;
  background: #fff;
  display: flex; align-items: center; gap: var(--s-4);
  transition: border-color .15s, background .15s, box-shadow .15s;
  min-height: 78px;
}
.quiz-opt:hover { border-color: var(--primary); }
.quiz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-opt .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  flex: 0 0 22px;
  position: relative;
  background: #fff;
  transition: border-color .15s;
}
.quiz-opt .dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: transparent;
  transition: background .15s;
}
.quiz-opt:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 1px var(--primary) inset;
}
.quiz-opt:has(input:checked) .dot { border-color: var(--primary); }
.quiz-opt:has(input:checked) .dot::after { background: var(--primary); }
.quiz-opt-text {
  flex: 1;
  display: flex; flex-direction: column;
}
.quiz-opt-t {
  font-weight: 600;
  font-size: var(--fs-16);
  color: var(--ink);
  line-height: 1.3;
}
.quiz-opt-s {
  margin-top: 4px;
  font-size: var(--fs-13);
  color: var(--muted);
  line-height: 1.4;
}

.quiz-footer {
  border-top: 1px solid var(--line);
  padding: var(--s-4) var(--s-10);
  display: flex; align-items: center; gap: var(--s-4);
  background: var(--surface);
}
@media (max-width: 760px) { .quiz-footer { padding: var(--s-4) var(--s-6); } }
.quiz-progress {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-13);
  color: var(--muted);
  flex: 1;
}
.quiz-progress-label {
  white-space: nowrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.quiz-progress-label b { color: var(--primary); font-weight: 700; }
.quiz-progress-bar {
  flex: 1; height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 320px;
}
.quiz-progress-bar > span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  width: 0%;
  transition: width .35s var(--ease);
}
.quiz-actions {
  display: flex; gap: 8px;
  align-items: center;
}
.quiz-back, .quiz-next {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px;
  font-weight: 600;
  border-radius: var(--r-3);
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.quiz-back {
  width: 46px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 18px;
}
.quiz-back:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.quiz-back:disabled { opacity: 0.35; cursor: not-allowed; }
.quiz-next {
  padding: 0 var(--s-6);
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
  font-size: var(--fs-15);
}
.quiz-next:hover:not(:disabled) { background: var(--primary-700); border-color: var(--primary-700); }
.quiz-next:disabled { opacity: 0.5; cursor: not-allowed; }
.quiz-enter-hint {
  font-size: 11px;
  color: var(--muted);
  margin-left: var(--s-3);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.quiz-enter-hint b { color: var(--ink); }

/* Result screen */
.quiz-result {
  padding: var(--s-10);
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-4);
  flex: 1;
  justify-content: center;
}
.quiz-result.is-active { display: flex; }
.quiz-result-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.quiz-result-price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 800;
  font-size: clamp(56px, 9vw, 96px);
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 12px;
  line-height: 1;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.quiz-result-price .prefix {
  font-size: clamp(20px, 3vw, 32px);
  color: var(--muted);
  font-weight: 600;
}
.quiz-result-price small {
  font-size: clamp(24px, 3.5vw, 40px);
  color: var(--muted);
  font-weight: 600;
}
.quiz-result-note {
  font-size: var(--fs-15);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.55;
  margin-top: 4px;
}
.quiz-result-note b { color: var(--ink); }
.quiz-result-cta {
  margin-top: var(--s-3);
  display: flex; gap: var(--s-3);
  flex-wrap: wrap; justify-content: center;
}

/* ===== Price block on SEO pages ===== */
.price-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-5);
  padding: var(--s-8);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-8);
  align-items: center;
  box-shadow: var(--shadow-2);
}
@media (max-width: 760px) { .price-block { grid-template-columns: 1fr; padding: var(--s-6); } }
.price-block-text p { color: var(--muted); font-size: var(--fs-16); line-height: 1.6; }
.price-block-text p + p { margin-top: var(--s-3); }
.price-block-amount {
  display: flex; flex-direction: column;
  gap: 6px;
  padding: var(--s-6);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--r-4);
  text-align: center;
  align-items: center;
}
.price-block-amount .prefix {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 700;
}
.price-block-amount .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.price-block-amount .meta {
  font-size: var(--fs-13);
  color: var(--muted);
  margin-top: 4px;
}
.price-block-cta {
  margin-top: var(--s-5);
  display: flex; align-items: center; gap: var(--s-4);
  flex-wrap: wrap;
  font-size: var(--fs-15);
  color: var(--muted);
}
.price-block-cta .btn { margin-left: auto; }

/* Order form (simplified, no price) */
.order-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-2);
  padding: var(--s-8);
  display: block;
}
@media (max-width: 860px) { .order-form { padding: var(--s-6); } }
.order-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
@media (max-width: 640px) { .order-contacts { grid-template-columns: 1fr; } }
.order-contact {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  background: #fff;
  transition: border-color .15s;
}
.order-contact:hover { border-color: var(--primary); }
.order-contact .oc-k {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.order-contact .oc-v {
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--primary);
}
.order-hours {
  margin-top: var(--s-3);
  font-size: var(--fs-13);
  color: var(--muted);
}
.order-reqs {
  font-size: var(--fs-12);
  color: var(--muted);
  margin-top: 2px;
}
.order-form-info h3 { font-size: var(--fs-22); margin-bottom: var(--s-3); }
.order-form-info p { color: var(--muted); font-size: var(--fs-15); }
.order-form-info .contact-list { margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.order-form-info .contact-list li {
  list-style: none;
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-14);
  color: var(--ink);
}
.order-form-info .contact-list .k {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
  width: 80px;
  flex: 0 0 80px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.order-form-info .contact-list a { color: var(--primary); font-weight: 600; }
.order-form-grid { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-6); }
.order-form-grid .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 540px) { .order-form-grid .form-row { grid-template-columns: 1fr; } }
.order-form .field { display: flex; flex-direction: column; gap: 6px; }
.order-form .field-name {
  font-size: var(--fs-13);
  color: var(--ink);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}
.order-form .field input,
.order-form .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: 12px 14px;
  font-size: var(--fs-15);
  color: var(--ink);
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.order-form .field textarea { min-height: 110px; resize: vertical; font-family: inherit; font-size: var(--fs-15); line-height: 1.55; }
.order-form .field input::placeholder,
.order-form .field textarea::placeholder { color: var(--muted-2); }
.order-form .field input:focus,
.order-form .field textarea:focus { outline: none; border-color: var(--primary); background: var(--primary-50); }
.order-form .file-drop {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-2);
  padding: var(--s-4);
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-14);
  cursor: pointer;
  transition: all .15s;
  background: var(--surface);
}
.order-form .file-drop:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.order-form .file-drop strong { color: var(--primary); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.order-form .file-drop input { display: none; }
.order-form .file-drop.has-file { border-style: solid; border-color: var(--accent); color: var(--accent); }
.order-form .form-consent { color: var(--muted); font-size: var(--fs-13); margin-top: 4px; }
.order-form .form-consent a { color: var(--ink); text-decoration: underline; }

/* ===== Combined widget (calc + form in one card) ===== */
.combo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-2);
  padding: 0;
  overflow: hidden;
}
.combo-step {
  padding: var(--s-6) var(--s-8);
  border-bottom: 1px solid var(--line);
}
.combo-step:last-of-type { border-bottom: 0; }
@media (max-width: 640px) { .combo-step { padding: var(--s-5); } }
.combo-step-h {
  display: flex; align-items: baseline; gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.combo-step-h .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  color: var(--primary);
  font-size: var(--fs-13);
  letter-spacing: 0.04em;
}
.combo-step-h h3 {
  font-size: var(--fs-18);
  font-weight: 700;
}
.combo-step-h .hint {
  margin-left: auto;
  font-size: var(--fs-13);
  color: var(--muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.combo-price-strip {
  background: linear-gradient(180deg, var(--primary-50), #fff);
  padding: var(--s-6) var(--s-8);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: center;
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .combo-price-strip { grid-template-columns: 1fr; padding: var(--s-5); } }
.combo-price-strip .label {
  font-size: var(--fs-12);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
}
.combo-price-strip .num {
  display: flex; align-items: baseline; gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-56);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-top: 6px;
}
.combo-price-strip .num .prefix {
  font-size: var(--fs-20);
  color: var(--muted);
  font-weight: 600;
}
.combo-price-strip .num small {
  font-size: var(--fs-22);
  color: var(--muted);
  font-weight: 600;
}
.combo-price-strip .meta {
  margin-top: 8px;
  font-size: var(--fs-13);
  color: var(--muted);
}
.combo-price-strip .meta .accent {
  color: var(--accent);
  font-weight: 700;
}
.combo-price-strip .below {
  text-align: right;
  font-size: var(--fs-13);
  color: var(--muted);
}
@media (max-width: 640px) { .combo-price-strip .below { text-align: left; } }

.combo-form .urls-field textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  resize: vertical;
  line-height: 1.6;
  color: var(--ink);
}
.combo-form .urls-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--primary-50);
}
.combo-form .urls-field textarea::placeholder { color: var(--muted-2); }

.combo-submit-wrap {
  padding: var(--s-6) var(--s-8);
  background: var(--surface);
}
@media (max-width: 640px) { .combo-submit-wrap { padding: var(--s-5); } }

/* Real logo cards */
.sites-real {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 860px) { .sites-real { grid-template-columns: repeat(2, 1fr); } }
.site-real {
  display: flex; flex-direction: column;
  padding: var(--s-5);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  transition: all .15s;
  position: relative;
  min-height: 180px;
}
.site-real:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-2);
}
/* Карточки без ссылки: под ними больше нет строки «Смотреть»,
   поэтому и высота под неё не нужна, и подсветка при наведении. */
.site-real.is-static { min-height: 0; }
.site-real.is-static:hover { border-color: var(--line); box-shadow: none; }
.site-real .wm {
  height: 48px;
  margin-bottom: var(--s-4);
  display: flex; align-items: center;
}
.site-real .name { font-weight: 700; font-size: var(--fs-16); }
.site-real .meta {
  font-size: var(--fs-13);
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.site-real .cta {
  margin-top: auto;
  padding-top: var(--s-3);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-13);
  color: var(--primary);
  font-weight: 600;
}
.site-real .cta::after { content: ''; transition: transform .15s; }
.site-real:hover .cta::after { transform: translateX(3px); }

/* Multi-site URL input */
.urls {
  display: flex; flex-direction: column; gap: 8px;
}
.url-row {
  display: flex; gap: 8px;
}
.url-row input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  background: var(--dark-3);
  border: 1px solid var(--dark-line);
  color: var(--dark-ink);
  border-radius: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.url-row input:focus { outline: none; border-color: var(--primary); background: var(--dark-2); }
.url-row input::placeholder { color: var(--dark-muted); opacity: 0.7; }
.url-row .icon-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--dark-3);
  border: 1px solid var(--dark-line);
  color: var(--dark-muted);
  display: grid; place-items: center;
  font-size: 18px;
  transition: all .15s;
}
.url-row .icon-btn:hover { color: var(--danger); border-color: var(--danger); }
.url-add {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px dashed var(--dark-line);
  color: var(--dark-muted);
  border-radius: 8px;
  font-size: 13px;
  transition: all .15s;
}
.url-add:hover { color: var(--primary); border-color: var(--primary); }
.url-add::before { content: '+'; font-size: 16px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: var(--s-6);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-5);
}
.step-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0;
}
.step h3 {
  margin-top: var(--s-2);
  margin-bottom: var(--s-3);
  font-size: var(--fs-20);
}
.step p { color: var(--muted); font-size: var(--fs-15); }

/* Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 980px) { .cases { grid-template-columns: 1fr; } }
.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-5);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: all .15s;
}
.case:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.case-tag {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: 999px;
  font-size: var(--fs-12);
  font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
}
.case h3 { font-size: var(--fs-22); }
.case-quote {
  color: var(--muted);
  font-size: var(--fs-15);
  line-height: 1.55;
}
.case-metrics {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.case-metric-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-24);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.case-metric-label {
  font-size: var(--fs-12);
  color: var(--muted);
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.feature {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.feature-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-18);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0;
}
.feature h3 { font-size: var(--fs-18); font-weight: 700; }
.feature p { color: var(--muted); font-size: var(--fs-15); }

/* Formats */
.formats {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.format-chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-13);
  font-weight: 600;
  background: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.format-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* FAQ */
.faq-list {
  display: flex; flex-direction: column;
  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; gap: var(--s-4);
  width: 100%;
  padding: var(--s-5) 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-18);
  color: var(--ink);
}
.faq-q .ico {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all .15s;
  position: relative;
}
.faq-q .ico::before, .faq-q .ico::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform .2s;
}
.faq-q .ico::before { width: 12px; height: 2px; }
.faq-q .ico::after { width: 2px; height: 12px; }
.faq-item[open] .faq-q .ico { background: var(--primary); border-color: var(--primary); }
.faq-item[open] .faq-q .ico::before, .faq-item[open] .faq-q .ico::after { background: #fff; }
.faq-item[open] .faq-q .ico::after { transform: rotate(90deg); }
.faq-a {
  padding: 0 0 var(--s-5);
  color: var(--muted);
  font-size: var(--fs-16);
  line-height: 1.6;
  max-width: 80ch;
}

/* Trust */
.trust {
  background: var(--surface);
  border-radius: var(--r-6);
  padding: var(--s-10);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-10);
  align-items: center;
}
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
.trust-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5);
  margin-top: var(--s-6);
}
@media (max-width: 600px) { .trust-list { grid-template-columns: 1fr; } }
.trust-item {
  display: flex; gap: var(--s-3);
}
.trust-item-ico {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 14px;
}
.trust-item h4 { font-size: var(--fs-16); margin-bottom: 4px; font-weight: 700; }
.trust-item p { color: var(--muted); font-size: var(--fs-14); line-height: 1.5; }

/* Contact form */
.contact {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-6);
  padding: var(--s-12);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-10);
  position: relative;
  overflow: hidden;
}
@media (max-width: 980px) { .contact { grid-template-columns: 1fr; padding: var(--s-8); } }
.contact::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--primary) 25%, transparent), transparent 60%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.contact-text { position: relative; }
.contact-text h2 { color: #fff; }
.contact-text .lead { color: rgba(255,255,255,0.7); margin-top: var(--s-4); }
.contact-list { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.contact-list li {
  list-style: none;
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-15);
  color: rgba(255,255,255,0.9);
}
.contact-list .k {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
  width: 90px;
  flex: 0 0 90px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form { position: relative; display: flex; flex-direction: column; gap: var(--s-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-name {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: var(--fs-15);
  transition: border-color .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.1); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.urls-light {
  display: flex; flex-direction: column; gap: 8px;
}
.url-row-light { display: flex; gap: 8px; }
.url-row-light input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
}
.url-row-light input:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.1); }
.url-row-light input::placeholder { color: rgba(255,255,255,0.4); }
.url-row-light .icon-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  display: grid; place-items: center;
  font-size: 18px;
}
.url-row-light .icon-btn:hover { color: var(--danger); border-color: var(--danger); }
.url-counter {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
}

.file-drop {
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: var(--s-5);
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-14);
  cursor: pointer;
  transition: all .15s;
}
.file-drop:hover { border-color: var(--primary); color: #fff; background: rgba(255,255,255,0.03); }
.file-drop strong { color: var(--accent); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.file-drop input { display: none; }
.file-drop.has-file { border-style: solid; border-color: var(--accent); color: var(--accent); }

.urgency-row { display: flex; gap: 8px; flex-wrap: wrap; }
.urgency-row label {
  flex: 1; min-width: 120px;
  position: relative;
  cursor: pointer;
}
.urgency-row input { position: absolute; opacity: 0; }
.urgency-row .urg-card {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  transition: all .15s;
}
.urgency-row .urg-card .urg-t { font-size: var(--fs-13); font-weight: 700; }
.urgency-row .urg-card .urg-s { font-size: 11px; color: rgba(255,255,255,0.5); font-family: 'JetBrains Mono', ui-monospace, monospace; margin-top: 2px; }
.urgency-row input:checked + .urg-card {
  background: var(--primary);
  border-color: var(--primary);
}
.urgency-row input:checked + .urg-card .urg-s { color: rgba(255,255,255,0.8); }

.form-consent {
  font-size: var(--fs-12);
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.form-consent a { color: rgba(255,255,255,0.8); text-decoration: underline; text-underline-offset: 2px; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--s-10);
  border: 1px solid var(--accent);
  border-radius: var(--r-5);
  background: rgba(0,194,119,0.08);
}
.form-success.is-on { display: block; }
.form-success-ico {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto var(--s-4);
  font-size: 28px;
  color: #fff;
  font-weight: 700;
}

/* Demo parser */
.demo {
  background: var(--dark);
  border-radius: var(--r-5);
  overflow: hidden;
  color: var(--dark-ink);
}
.demo-head {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--dark-line);
  background: var(--dark-2);
}
.demo-head input {
  flex: 1;
  background: var(--dark);
  border: 1px solid var(--dark-line);
  color: var(--dark-ink);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
}
.demo-head input:focus { outline: none; border-color: var(--primary); }
.demo-head button {
  height: 40px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
}
.demo-body { padding: var(--s-5); }

/* SEO list */
.seo-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
}
@media (max-width: 760px) { .seo-list { grid-template-columns: 1fr; } }
.seo-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: var(--fs-14);
  transition: all .15s;
}
.seo-list a::after { content: ''; color: var(--muted); transition: all .15s; }
.seo-list a:hover { border-color: var(--primary); color: var(--primary); }
.seo-list a:hover::after { color: var(--primary); transform: translateX(3px); }

/* Cta band */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-6);
  padding: var(--s-10);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  display: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 24ch; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 50ch; margin-top: var(--s-3); }
/* Ghost button sitting on the dark CTA band: keep it transparent so white text stays readable */
.cta-band .btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.cta-band .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: var(--s-10) 0 var(--s-5);
  margin-top: var(--s-10);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: var(--s-8);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: var(--fs-14); margin-top: var(--s-3); max-width: 36ch; }
.footer-social { display: flex; gap: 10px; margin-top: var(--s-4); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.72);
  transition: background .15s ease, color .15s ease;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social svg { width: 20px; height: 20px; display: block; }
.footer-col h5 {
  color: #fff;
  font-size: var(--fs-13);
  font-weight: 700;
  margin: 0 0 var(--s-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.footer-col a {
  font-size: var(--fs-14);
  color: rgba(255,255,255,0.6);
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
/* Документы в подвале. Отдельной строкой, а не колонкой: пять ссылок в
   колонке растягивали бы подвал, а Robokassa и закон требуют, чтобы оферта,
   политика и согласие были видны с любой страницы. */
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  padding: var(--s-5) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-legal a,
.footer-legal button {
  font-family: inherit;
  font-size: var(--fs-13);
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  background: none; border: 0; padding: 0;
  cursor: pointer;
  transition: color .15s;
}
.footer-legal a:hover,
.footer-legal button:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-4);
  padding-top: var(--s-5);
  font-size: var(--fs-12);
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
}

/* Sticky CTA bar (mobile-style float on every page) */
.float-cta {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.float-cta-btn {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 600;
  font-size: var(--fs-15);
  box-shadow: var(--shadow-3);
  display: inline-flex; align-items: center; gap: 8px;
  border: 0;
  transition: background .15s;
}
.float-cta-btn:hover { background: var(--primary-700); }
.float-cta-btn .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}


/* Page hero (SEO pages) */
.page-hero {
  padding: var(--s-16) 0 var(--s-10);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.crumbs {
  display: flex; gap: 8px;
  font-size: var(--fs-13);
  color: var(--muted);
  margin-bottom: var(--s-5);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { color: var(--line-2); }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-10);
  align-items: center;
}
@media (max-width: 980px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* Fields list (SEO page details) */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 760px) { .fields-grid { grid-template-columns: repeat(2, 1fr); } }
.field-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: var(--fs-13);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.field-pill::before {
  content: '';
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--primary);
  flex: 0 0 8px;
}

/* Misc utilities */
.text-muted { color: var(--muted); }
.center { text-align: center; }
.mt-s5 { margin-top: var(--s-5); }
.mt-s8 { margin-top: var(--s-8); }
.divider { height: 1px; background: var(--line); width: 100%; margin: var(--s-10) 0; }

/* GUI mockup (parser app preview) */
.gui-mock {
  border-radius: var(--r-5);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-3);
}
.gui-bar {
  height: 36px;
  background: #ecf0f5;
  display: flex; align-items: center; padding: 0 12px; gap: 8px;
  border-bottom: 1px solid var(--line);
}
.gui-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #ccc; }
.gui-bar .dot.red { background: #ff5f56; }
.gui-bar .dot.yellow { background: #ffbd2e; }
.gui-bar .dot.green { background: #27c93f; }
.gui-bar .title { margin-left: auto; margin-right: auto; font-size: 13px; color: var(--muted); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.gui-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 320px;
}
.gui-side {
  background: #f7f9fc;
  border-right: 1px solid var(--line);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px;
}
.gui-side .it { padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.gui-side .it.active { background: var(--primary); color: #fff; font-weight: 600; }
.gui-side .grp { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; text-transform: uppercase; color: var(--muted-2); padding: 8px 10px 4px; letter-spacing: 0.06em; }
.gui-main { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.gui-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}
.gui-row .b { background: var(--surface); padding: 4px 8px; border-radius: 6px; }
.gui-row .ok { color: var(--accent); margin-left: auto; }
.gui-progress {
  height: 10px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}
.gui-progress span {
  display: block; width: 73%; height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
}
.gui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.gui-stat { padding: 8px 10px; background: var(--surface); border-radius: 8px; }
.gui-stat .v { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 18px; }
.gui-stat .l { font-size: 11px; color: var(--muted); }


/* =========================================================
   MOBILE RESPONSIVE — comprehensive overrides (≤768px / ≤480px)
   ========================================================= */
@media (max-width: 980px) {
  .nav { display: none; }
  .header-phone { display: none; }
  .header-inner { gap: var(--s-4); height: 56px; }
  /* .nav carried margin-left:auto on desktop; with it hidden, pin the CTA + burger to the right edge */
  .header-cta { margin-left: auto; }
}
@media (max-width: 768px) {
  .container, .container-tight { padding: 0 var(--s-4); }
  .section { padding: var(--s-12) 0; }

  /* Hero */
  .hero { padding: var(--s-10) 0 var(--s-8); }
  .hero h1 { font-size: clamp(30px, 8.6vw, 42px); line-height: 1.08; }
  .hero h1 br { display: none; }
  .hero-sub { font-size: var(--fs-16); margin-top: var(--s-4); }
  .hero-ctas { margin-top: var(--s-6); flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-meta { gap: var(--s-3); flex-direction: column; margin-top: var(--s-5); }
  .hero-meta-item { font-size: var(--fs-13); }

  /* Sec heads */
  .sec-head { gap: var(--s-4); }
  .sec-head p { font-size: var(--fs-15); }

  /* Stats: tighten font sizes for mobile */
  .stat-strip { padding: var(--s-8) 0; }
  .stat-strip-inner { gap: var(--s-4); }
  .stat-num { font-size: clamp(26px, 7vw, 36px) !important; }
  .stat-label { font-size: var(--fs-12); }

  /* Buttons */
  .btn-lg { height: 48px; font-size: var(--fs-15); padding: 0 var(--s-5); }

  /* Quiz */
  .quiz-screen { padding: var(--s-5); gap: var(--s-4); }
  .quiz-q { font-size: var(--fs-20); }
  .quiz-sub { font-size: var(--fs-14); }
  .quiz-footer { padding: var(--s-3) var(--s-4); flex-wrap: wrap; gap: var(--s-3); }
  .quiz-footer .btn { flex: 1; min-width: 0; }
  .quiz-progress { width: 100%; order: -1; }

  /* Sheet preview shrink */
  .sheet { font-size: 11px; }
  .sheet-row { padding: 6px 8px; }

  /* Features / trust / steps */
  .feature { padding: var(--s-5); }
  .feature h3 { font-size: var(--fs-18); }
  .step { padding: var(--s-5); }
  .trust-item h4 { font-size: var(--fs-16); }

  /* FAQ */
  .faq-q { font-size: var(--fs-16); }

  /* Order form */
  .order-form-info { padding: 0; }
  .order-form-grid .form-row { grid-template-columns: 1fr; }
  .field input, .field textarea, .order-form .field input, .order-form .field textarea { font-size: 16px; } /* prevent iOS zoom */

  /* CTA band */
  .cta-band { padding: var(--s-8) var(--s-5); }
  .cta-band h2 { font-size: var(--fs-28); }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: var(--s-6); }

  /* Floating CTA — smaller and lower */
  .float-cta-btn { right: 12px !important; bottom: 12px !important; padding: 10px 14px !important; font-size: var(--fs-13); }

  /* Custom-parser cta card on mobile */
  .order-form + div, [style*="margin-top: var(--s-8)"][style*="display: flex"] { flex-direction: column; align-items: flex-start !important; }
}

@media (max-width: 480px) {
  .container, .container-tight { padding: 0 var(--s-3); }
  .section { padding: var(--s-10) 0; }
  .hero { padding: var(--s-8) 0 var(--s-6); }
  .hero h1 { font-size: clamp(28px, 9vw, 36px); }
  h2 { font-size: clamp(24px, 7vw, 32px); }

  .header-inner { gap: var(--s-3); }
  .header-cta .btn { padding: 0 var(--s-3); font-size: var(--fs-13); height: 36px; }
  .brand-name span { display: none; } /* hide .ru suffix */

  .stat-strip-inner { grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
  .stat { padding: var(--s-3) 0; }

  .formats { gap: 6px; }
  .format-chip { font-size: var(--fs-12); padding: 4px 8px; }

  .sites, .sites-real { grid-template-columns: 1fr 1fr !important; }
  .site-card, .site-real { padding: var(--s-4); }

  .quiz-q { font-size: var(--fs-18); }
  .quiz-options { gap: var(--s-3); }
  .quiz-opt { padding: var(--s-4); }

  .sheet { display: none; } /* hero sheet preview hidden on tiny screens to save vertical space */
}

/* =========================================================
   UNIFIED GRID SYSTEM  —  consistent gutters & column tiers
   Single source of truth. Loaded last so it wins.
   ========================================================= */

/* 1) ONE content grid for the whole site.
   Every section — wide or "tight" — shares the same max-width AND the
   same fluid gutter, so every block's left/right edges line up exactly
   down the entire page. (Reading width is handled per-element instead.) */
.container,
.container-tight {
  max-width: var(--container);
  padding-inline: clamp(16px, 4.5vw, 28px);
}

/* Keep long-form copy readable inside the now-wider tight sections:
   cap raw text/list columns to a comfortable measure, but let full-width
   components (forms, quiz, FAQ rows, grids) use the whole grid. */
.container-tight > .sec-head .sec-head-text { max-width: 760px; }
.container-tight > p,
.container-tight > .text-muted,
.price-block-text { max-width: 70ch; }

/* 2) Consistent column tiers for every card grid.
   Avoids the jarring "3 columns → 1 column" jump on tablets:
   wide desktop = full count, tablet = 2, phone = 1. */

/* Tablet band: collapse heavy grids to a clean 2-up */
@media (min-width: 561px) and (max-width: 980px) {
  .features,
  .cases,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sites-real,
  .sites { grid-template-columns: repeat(2, 1fr); }
}

/* Phone band: everything stacks to a single aligned column */
@media (max-width: 560px) {
  .features,
  .cases,
  .steps,
  .trust-list,
  .case-metrics { grid-template-columns: 1fr; }
}

/* =========================================================
   MOBILE NAVIGATION  —  hamburger + slide-in drawer
   Injected by app.js on every page.
   ========================================================= */

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 0;
  transition: border-color .15s, background .15s;
}
.nav-toggle:hover { border-color: var(--line-2); }
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle.is-active { background: var(--surface); }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 28, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
  z-index: 90;
}
.mobile-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: #fff;
  z-index: 95;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -20px rgba(8, 14, 28, 0.35);
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  padding: 0 var(--s-5);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: #fff;
}
.mobile-drawer-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.mobile-drawer-close {
  width: 36px; height: 36px;
  border: 0; background: var(--surface);
  border-radius: var(--r-2);
  font-size: 22px; line-height: 1;
  color: var(--ink);
  display: grid; place-items: center;
}
.mobile-drawer-close:hover { background: var(--surface-2); color: var(--primary); }

.mobile-drawer-nav {
  flex: 1;
  padding: var(--s-4) var(--s-4) var(--s-2);
  display: flex; flex-direction: column;
}
.mobile-drawer-group { margin-bottom: var(--s-3); }
.mobile-drawer-group-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: var(--s-3) var(--s-3) var(--s-2);
}
.mobile-drawer-link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 13px var(--s-3);
  border-radius: var(--r-3);
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--ink);
  min-height: 48px;
  justify-content: center;
  transition: background .15s, color .15s;
}
.mobile-drawer-link small {
  font-size: var(--fs-12);
  font-weight: 400;
  color: var(--muted);
}
.mobile-drawer-link:active,
.mobile-drawer-link:hover { background: var(--surface); color: var(--primary); }
.mobile-drawer-link-top {
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.mobile-drawer-group + .mobile-drawer-link-top { border-top: 1px solid var(--line); }

.mobile-drawer-foot {
  padding: var(--s-4) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--s-3);
  position: sticky; bottom: 0;
  background: #fff;
}
.mobile-drawer-phone {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  padding: 6px 0;
}
.mobile-drawer-phone:hover { color: var(--primary); }

/* Show the toggle exactly where the desktop nav disappears */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { gap: var(--s-2); }
}
/* Личный кабинет убираем из шапки там же, где появляется бургер: три кнопки
   рядом не помещаются по ширине. Ссылка продублирована в меню. */
@media (max-width: 980px) {
  .header-cta .btn-login { display: none; }
}
/* Shorten header CTA on small phones: "Написать в Telegram" -> "Telegram" */
@media (max-width: 560px) {
  .header-cta .btn .tg-pre { display: none; }
}
/* Lock body scroll while drawer is open (set via JS too, belt + suspenders) */
body.drawer-open { overflow: hidden; }

/* ==========================================================================
   Оформление разделов: тёмные полосы, карточки решений, шахматные шаги.
   Раньше эти правила лежали внутри index.html и были доступны только ей.
   Перенесены сюда 21.09.2026, чтобы тем же языком оформлять остальные
   страницы. Порядок правил внутри блока не менялся. Модификаторы и
   стили отдельных страниц идут ниже, чтобы перекрывать эти правила.
   ========================================================================== */
/* ==========================================================================
   Страница мониторинга цен
   ========================================================================== */

#obzor, #inside, #journey, #tarify, #order, #faq { scroll-margin-top: 100px; }

/* --- Первый экран -------------------------------------------------------- */
.mh {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 88% 0%, #eef3fc 0%, rgba(238, 243, 252, 0) 62%),
    #fff;
}
.mh-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: var(--s-16);
  align-items: center;
  padding: var(--s-12) 0 var(--s-16);
}
.mh h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -0.03em; }
.mh h1 b { color: var(--primary); font-weight: 800; }
.mh-lead {
  margin-top: var(--s-6);
  max-width: 30em;
  font-size: var(--fs-20);
  line-height: 1.5;
  color: var(--muted);
}
.mh-cta { margin-top: var(--s-8); display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.mh-kp {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.mh-kp:hover { color: var(--primary); border-color: var(--primary); }
.mh-art { width: 100%; height: auto; }
@media (max-width: 1080px) {
  .mh-grid { grid-template-columns: 1fr; gap: var(--s-10); padding: var(--s-12) 0 var(--s-16); }
  .mh-art { max-width: 560px; }
}

/* --- Тёмная полоса преимуществ ------------------------------------------- */
.mband {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-ink);
}
.mband-chev { position: absolute; top: 0; height: 100%; width: auto; opacity: 0.55; pointer-events: none; }
.mband-chev.l { left: -60px; }
.mband-chev.r { right: -60px; }
.mband-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
  padding: var(--s-10) 0;
}
.mband .msec-head h2 { color: #fff; }
.mband .msec-head p { color: var(--dark-muted); }
.mband-item { display: flex; gap: var(--s-4); align-items: flex-start; }
.mband-item svg { flex: 0 0 26px; color: var(--primary); margin-top: 2px; }
.mband-item b { display: block; font-size: var(--fs-16); font-weight: 700; color: #fff; }
.mband-item span { display: block; margin-top: 4px; font-size: var(--fs-14); color: var(--dark-muted); line-height: 1.45; }
@media (max-width: 980px) { .mband-inner { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
@media (max-width: 620px) { .mband-inner { grid-template-columns: 1fr; } }

/* --- Заголовок раздела --------------------------------------------------- */
.msec-head { max-width: 780px; }
.msec-head h2 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.025em; }
.msec-head p { margin-top: var(--s-4); font-size: var(--fs-18); color: var(--muted); line-height: 1.55; }

/* --- Крупный снимок во всю ширину ---------------------------------------- */
.mfull { position: relative; margin-top: var(--s-10); }
.mfull-shape {
  position: absolute; inset: auto -28px -28px 42%;
  height: 72%;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #3b5fd0 100%);
  opacity: 0.12;
}
.mfull figure { position: relative; margin: 0; }
.mfull img {
  width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(11, 18, 32, 0.35);
}
.mcap { margin-top: var(--s-3); font-size: var(--fs-13); color: var(--muted-2); }

/* --- Блок функции -------------------------------------------------------- */
.mf { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: var(--s-12); align-items: center; }
.mf.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
.mf.is-flip .mf-text { order: 2; }
.mf.is-flip .mf-shot { order: 1; }
.mf + .mf { margin-top: var(--s-20); }
.mf-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-13);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
}
.mf-num::after { content: ''; width: 46px; height: 2px; background: var(--primary-100); }
.mf-text h3 { margin-top: var(--s-4); font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -0.02em; line-height: 1.18; }
.mf-text p { margin-top: var(--s-4); font-size: var(--fs-16); line-height: 1.6; color: var(--muted); }
.mf-shot { position: relative; margin: 0; }
.mf-shot::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: 14px;
  background: var(--primary);
  opacity: 0.08;
}
.mf.is-flip .mf-shot::before { inset: 22px 22px -22px -22px; }
.mf-shot img {
  position: relative;
  width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px -24px rgba(11, 18, 32, 0.4);
}
.mf-shot figcaption { position: relative; margin-top: var(--s-3); font-size: var(--fs-13); color: var(--muted-2); }
@media (max-width: 1024px) {
  .mfull-shape { inset: auto 0 -18px 40%; }
  .mf, .mf.is-flip { grid-template-columns: 1fr; gap: var(--s-7, 24px); }
  .mf.is-flip .mf-text { order: 1; }
  .mf.is-flip .mf-shot { order: 2; }
  .mf + .mf { margin-top: var(--s-16); }
  .mf-shot::before, .mf.is-flip .mf-shot::before { inset: 16px -12px -14px 12px; }
}

.mpair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin-top: var(--s-8); }
.mpair figure { margin: 0; }
.mpair img {
  width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px -22px rgba(11, 18, 32, 0.4);
}
@media (max-width: 900px) { .mpair { grid-template-columns: 1fr; } }

/* --- Решения (три карточки) ----------------------------------------------- */
.msol { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-10); }
.msol-card {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: var(--s-8);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--primary) 0%, #16307f 100%);
  color: #fff;
  min-height: 300px;
}
.msol-card svg.msol-chev { position: absolute; right: -40px; bottom: -30px; width: 190px; opacity: 0.14; pointer-events: none; }
.msol-ico {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.msol-card h3 { position: relative; margin-top: var(--s-6); font-size: var(--fs-24); line-height: 1.2; letter-spacing: -0.02em; }
.msol-card p { position: relative; margin-top: var(--s-4); font-size: var(--fs-15); line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.msol-more {
  position: relative;
  margin-top: auto; padding-top: var(--s-6);
  font-size: var(--fs-14); font-weight: 700; color: #fff;
}
.msol-more span { border-bottom: 1px solid rgba(255, 255, 255, 0.45); padding-bottom: 2px; }
.msol-more:hover span { border-color: #fff; }
@media (max-width: 980px) { .msol { grid-template-columns: 1fr; } .msol-card { min-height: 0; } }

/* --- Вкладки со снимками -------------------------------------------------- */
.mtabs-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: var(--s-8); }
.mtab {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: var(--fs-15);
  font-weight: 600;
  color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.mtab:hover { color: var(--ink); border-color: var(--line-2); }
.mtab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.mtabs-panel { position: relative; margin-top: var(--s-8); }
.mtabs-shape {
  position: absolute; inset: auto -24px -24px 38%;
  height: 64%;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #3b5fd0 100%);
  opacity: 0.12;
}
.mpane { position: relative; margin: 0; display: none; }
.mpane.is-active { display: block; }
.mpane img {
  width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(11, 18, 32, 0.35);
}
.mpane figcaption { margin-top: var(--s-3); font-size: var(--fs-13); color: var(--muted-2); text-align: center; }
@media (max-width: 1024px) { .mtabs-shape { inset: auto 0 -16px 40%; } }

/* --- Шаги на тёмном, шахматкой ------------------------------------------- */
.mstep { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: var(--s-12); align-items: center; }
.mstep.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
.mstep.is-flip .mstep-text { order: 2; }
.mstep.is-flip .mstep-shot { order: 1; }
.mstep + .mstep { margin-top: var(--s-16); padding-top: var(--s-16); border-top: 1px solid var(--dark-line); }
.mstep-num {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.mstep-num i {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  font-style: normal;
  font-size: var(--fs-15);
  color: #fff;
}
.mstep:first-child .mstep-num i { background: var(--primary); border-color: var(--primary); }
.mstep-num span { width: 44px; height: 2px; background: var(--dark-3); }
.mstep-text h3 { margin-top: var(--s-5); font-size: clamp(22px, 2.1vw, 30px); color: #fff; letter-spacing: -0.02em; line-height: 1.18; }
.mstep-text p { margin-top: var(--s-4); font-size: var(--fs-16); line-height: 1.65; color: var(--dark-muted); }
.mstep-list { margin: var(--s-6) 0 0; padding: 0; display: grid; gap: 11px; }
.mstep-list li {
  list-style: none; position: relative; padding-left: 28px;
  font-size: var(--fs-15); line-height: 1.5; color: rgba(232, 237, 247, 0.86);
}
.mstep-list li::before {
  content: '';
  position: absolute; left: 0; top: 2px;
  width: 17px; height: 17px; border-radius: 5px;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}
.mstep-shot { position: relative; margin: 0; }
.mstep-shot::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: 14px;
  background: var(--primary);
  opacity: 0.18;
}
.mstep.is-flip .mstep-shot::before { inset: 22px 22px -22px -22px; }
.mstep-shot img {
  position: relative;
  width: 100%; height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #fff;
  box-shadow: 0 26px 54px -30px rgba(0, 0, 0, 0.85);
}
.mstep-shot.is-narrow { max-width: 470px; margin-left: auto; margin-right: auto; }
@media (max-width: 1024px) {
  .mstep, .mstep.is-flip { grid-template-columns: 1fr; gap: var(--s-6); }
  .mstep.is-flip .mstep-text { order: 1; }
  .mstep.is-flip .mstep-shot { order: 2; }
  .mstep + .mstep { margin-top: var(--s-10); padding-top: var(--s-10); }
  .mstep-shot::before, .mstep.is-flip .mstep-shot::before { inset: 16px -12px -14px 12px; }
  .mstep-shot.is-narrow { max-width: 100%; }
}

/* --- Видеообзор и заявка -------------------------------------------------- */
.mask {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: var(--s-12);
  align-items: center;
  border-radius: 18px;
  padding: var(--s-12);
  background:
    radial-gradient(80% 130% at 0% 0%, rgba(30, 64, 175, 0.5) 0%, rgba(30, 64, 175, 0) 60%),
    var(--dark);
}
.mask h2 { color: #fff; font-size: clamp(26px, 2.9vw, 38px); letter-spacing: -0.025em; line-height: 1.14; }
.mask p { margin-top: var(--s-5); font-size: var(--fs-16); line-height: 1.65; color: var(--dark-muted); }
/* Видеообзор лежит файлом на нашем сервере, а не на видеохостинге: чужой плеер
   принёс бы на страницу свои cookie и счётчики, а в конце показывал бы чужие
   ролики. Файл грузится только по нажатию (preload="none"), до этого видна
   обложка, поэтому страница не тяжелеет. */
.mask-frame {
  margin-top: var(--s-8);
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid var(--dark-line);
  background: var(--dark-2);
  overflow: hidden;
  container-type: inline-size;
}
.mask-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #05070d; }
/* Нажать можно в любом месте кадра. Сам знак запуска стоит в нижней четверти,
   под подписью заставки: по центру он закрыл бы логотип и название. Размер
   считается от ширины кадра, иначе на телефоне круг наезжает на текст. */
.mask-play {
  position: absolute; inset: 0;
  border: 0; background: none; cursor: pointer; padding: 0;
}
.mask-play[hidden] { display: none; }
.mask-play span {
  position: absolute; left: 50%; top: 86%;
  width: 48px; height: 48px;
  width: clamp(38px, 10cqw, 52px); height: clamp(38px, 10cqw, 52px);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 16, 32, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.mask-play:hover span, .mask-play:focus-visible span {
  background: var(--primary); border-color: var(--primary);
  transform: translate(-50%, -50%) scale(1.08);
}
.mask-play:focus-visible { outline: none; }
.mask-play i {
  width: 0; height: 0;
  border-left: 13px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 4px;
}
.mask-form {
  position: relative;
  border-radius: 14px;
  border-color: transparent;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.8);
}
.mask-form h3 { font-size: var(--fs-20); letter-spacing: -0.01em; }
.mask-form > p { margin-top: 10px; font-size: var(--fs-14); color: var(--muted); line-height: 1.55; }
.mask-form .order-form-grid { margin-top: var(--s-6); }
.mask-form .form-success { padding: var(--s-8) 0; }
@media (max-width: 980px) { .mask { grid-template-columns: 1fr; padding: var(--s-8); gap: var(--s-8); } }

/* --- Тарифы -------------------------------------------------------------- */
.mplans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-10); align-items: stretch; }
.mplans.has-free { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }

.mplan {
  --pc: var(--primary);
  --pcbg: var(--primary-50);
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.mplan:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgba(11, 18, 32, 0.45); }
.mplan-bar { height: 5px; background: var(--pc); }
.mplan-in { display: flex; flex-direction: column; flex: 1; padding: var(--s-6) var(--s-5) var(--s-6); }

.mplan.is-free { --pc: #059669; --pcbg: #e7f8f0; background: linear-gradient(180deg, #f3fcf8 0%, #fff 46%); }
.mplan.is-start { --pc: #1e40af; --pcbg: #eef3fc; }
.mplan.is-biz { --pc: #7c3aed; --pcbg: #f3edff; }
.mplan.is-top {
  --pc: #5b83f5; --pcbg: rgba(255, 255, 255, 0.13);
  background: linear-gradient(170deg, #14224a 0%, var(--dark) 62%);
  border-color: var(--dark);
  color: #fff;
  box-shadow: 0 28px 60px -32px rgba(11, 18, 32, 0.7);
}

.mplan-name {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--pcbg);
  color: var(--pc);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mplan.is-top .mplan-name { color: #fff; }
.mplan-flag {
  position: absolute; top: 17px; right: var(--s-5);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pc);
}
.mplan-price {
  margin-top: var(--s-6);
  display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
  font-size: var(--fs-32);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.mplan-price small { font-size: var(--fs-13); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.mplan.is-top .mplan-price { color: #fff; }
.mplan.is-top .mplan-price small { color: rgba(255, 255, 255, 0.6); }
.mplan-vol {
  margin-top: var(--s-4);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--pcbg);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--ink-2);
}
.mplan-vol span { display: block; margin-top: 3px; font-family: 'Manrope', sans-serif; font-weight: 500; font-size: var(--fs-12); color: var(--muted-2); }
.mplan.is-top .mplan-vol { color: #fff; }
.mplan.is-top .mplan-vol span { color: rgba(255, 255, 255, 0.55); }
.mplan-desc { margin-top: var(--s-5); font-size: var(--fs-14); line-height: 1.55; color: var(--muted); }
.mplan.is-top .mplan-desc { color: rgba(255, 255, 255, 0.72); }

.mplan-list { margin: var(--s-6) 0 0; padding: var(--s-6) 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.mplan.is-top .mplan-list { border-top-color: rgba(255, 255, 255, 0.14); }
.mplan-list li {
  list-style: none; position: relative; padding-left: 26px;
  font-size: var(--fs-13); line-height: 1.45; color: var(--ink-2);
}
.mplan.is-top .mplan-list li { color: rgba(255, 255, 255, 0.9); }
.mplan-list li::before {
  content: '';
  position: absolute; left: 0; top: 1px;
  width: 17px; height: 17px; border-radius: 5px;
  background: var(--pc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}
.mplan-list li.is-off { color: var(--muted); }
.mplan.is-top .mplan-list li.is-off { color: rgba(255, 255, 255, 0.55); }
.mplan-list li.is-off::before {
  background: #c3cddd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

/* Кнопка «Начать бесплатно» в карточке бесплатного тарифа. Своё имя, потому что
   .mplan-cta занят обёрткой кнопки в блоке «Виды парсеров» ниже, и её
   padding-top растягивал эту кнопку, сдвигая надпись к нижнему краю. */
.mplan-start { margin-top: var(--s-6); }

/* «Подробнее» с полным составом тарифа, как в кабинете */
.mplan-more { margin-top: auto; padding-top: var(--s-6); }
.mplan-more > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-13); font-weight: 700; color: var(--pc);
}
.mplan-more > summary::-webkit-details-marker { display: none; }
.mplan-more > summary::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s;
}
.mplan-more[open] > summary::after { transform: rotate(-135deg) translateY(1px); }
.mplan-full { margin: var(--s-5) 0 0; display: grid; gap: 9px; }
.mplan-full > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-13);
}
.mplan.is-top .mplan-full > div { border-bottom-color: rgba(255, 255, 255, 0.13); }
.mplan-full > div:last-child { border-bottom: 0; padding-bottom: 0; }
.mplan-full dt { color: var(--muted); }
.mplan.is-top .mplan-full dt { color: rgba(255, 255, 255, 0.6); }
.mplan-full dd { margin: 0; font-weight: 700; color: var(--ink-2); text-align: right; }
.mplan.is-top .mplan-full dd { color: #fff; }
.mplan-full dd.no { color: var(--muted-2); font-weight: 500; }

/* Корпоративный отдельной полосой */
.mcorp {
  margin-top: var(--s-5);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-10);
  align-items: center;
  padding: var(--s-8);
  border: 1px solid var(--line);
  border-left: 5px solid #ea580c;
  border-radius: 14px;
  background: linear-gradient(100deg, #fff9f5 0%, #fff 44%);
}
.mcorp-name {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fdece1;
  color: #c2410c;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mcorp h3 { margin-top: var(--s-4); font-size: var(--fs-22); letter-spacing: -0.015em; line-height: 1.25; }
.mcorp p { margin-top: 10px; font-size: var(--fs-15); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.mcorp .mplan-more { margin-top: var(--s-5); padding-top: 0; }
.mcorp .mplan-more > summary { color: #c2410c; }
.mcorp .mplan-full { max-width: 520px; }
.mcorp-price { text-align: right; }
.mcorp-num {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 7px;
  font-size: var(--fs-32); font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap;
}
.mcorp-num small { font-size: var(--fs-13); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.mcorp-vol {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-13); font-weight: 600; color: var(--ink-2);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .mcorp { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-6); }
  .mcorp-price { text-align: left; }
  .mcorp-num { justify-content: flex-start; }
}

/* Итог витрины: что входит без доплат и одна кнопка */
.mafter {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0;
  margin-top: var(--s-10);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.mafter-main { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--s-6); align-items: start; padding: var(--s-8); }
.mafter-ico {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.mafter-main h3 { font-size: var(--fs-20); letter-spacing: -0.015em; line-height: 1.25; }
.mafter-main p { margin-top: 10px; font-size: var(--fs-15); line-height: 1.65; color: var(--muted); }
.mafter-link {
  display: inline-block;
  margin-top: var(--s-5);
  font-size: var(--fs-15);
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--primary-100);
  padding-bottom: 2px;
}
.mafter-link:hover { border-color: var(--primary); }

.mafter-cta {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: var(--s-8);
  background: var(--primary-50);
  border-left: 1px solid var(--primary-100);
}
.mafter-cta b { font-size: var(--fs-18); letter-spacing: -0.01em; line-height: 1.3; }
.mafter-cta p { margin-top: 8px; font-size: var(--fs-14); line-height: 1.55; color: var(--muted); }
.mafter-cta .btn { margin-top: var(--s-6); }
.mafter-cta small { display: block; margin-top: var(--s-4); font-size: var(--fs-13); color: var(--muted-2); line-height: 1.5; }
.mafter-cta small a { color: var(--primary); font-weight: 600; border-bottom: 1px solid var(--primary-100); }
@media (max-width: 980px) {
  .mafter { grid-template-columns: 1fr; }
  .mafter-cta { border-left: 0; border-top: 1px solid var(--primary-100); }
}
@media (max-width: 620px) {
  .mafter-main { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-6); }
  .mafter-ico { width: 44px; height: 44px; border-radius: 11px; }
  .mafter-main h3 { font-size: var(--fs-18); }
  .mafter-cta { padding: var(--s-6); }
  .mafter-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 1180px) { .mplans, .mplans.has-free { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }
@media (max-width: 700px) { .mplans, .mplans.has-free { grid-template-columns: 1fr; } }

/* --- Поддержка ----------------------------------------------------------- */
.msupport { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.msupport-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: var(--s-8); }
.msupport-card h3 { font-size: var(--fs-20); }
.msupport-card p { margin-top: var(--s-4); font-size: var(--fs-15); line-height: 1.65; color: var(--muted); }
.mlink {
  display: inline-block; margin-top: var(--s-5);
  font-size: var(--fs-14); font-weight: 700; color: var(--primary);
  border-bottom: 1px solid var(--primary-100); padding-bottom: 2px;
}
@media (max-width: 880px) { .msupport { grid-template-columns: 1fr; } }

/* --- Итоговая полоса ------------------------------------------------------ */
.mfin {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--s-12);
  align-items: center;
  border-radius: 18px;
  padding: var(--s-16) var(--s-12);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(30, 64, 175, 0.55) 0%, rgba(30, 64, 175, 0) 58%),
    var(--dark);
}
.mfin-lines { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.mfin h2 { position: relative; color: #fff; font-size: clamp(27px, 3.1vw, 42px); letter-spacing: -0.03em; line-height: 1.12; }
.mfin p { position: relative; margin-top: var(--s-5); font-size: var(--fs-16); line-height: 1.6; color: var(--dark-muted); max-width: 34em; }
.mfin-acts { position: relative; margin-top: var(--s-8); display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center; }
.mfin-kp { font-size: var(--fs-14); font-weight: 600; color: var(--dark-muted); border-bottom: 1px solid var(--dark-3); padding-bottom: 2px; }
.mfin-kp:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.mfin-art { position: relative; width: 100%; height: auto; }
@media (max-width: 980px) {
  .mfin { grid-template-columns: 1fr; gap: var(--s-8); padding: var(--s-10) var(--s-8); }
  .mfin-art { max-width: 420px; }
}


/* --- Мобильные правила ---------------------------------------------------- */
.zoom { display: block; position: relative; }

@media (max-width: 760px) {
  /* снимки кабинета в ширину телефона нечитаемы, поэтому открываем их целиком */
  .zoom::after {
    content: 'Открыть в полном размере';
    position: absolute; left: 50%; bottom: 12px;
    transform: translateX(-50%);
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(11, 18, 32, 0.86);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
  }

  /* вкладки одной строкой с прокруткой, чтобы не рассыпались на три ряда */
  .mtabs-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(clamp(16px, 4.5vw, 28px) * -1);
    padding-inline: clamp(16px, 4.5vw, 28px);
  }
  .mtabs-nav::-webkit-scrollbar { display: none; }
  .mtab { flex: 0 0 auto; padding: 10px 18px; font-size: var(--fs-14); }
  .mtabs-panel { margin-top: var(--s-6); }
  .mpane figcaption { text-align: left; }

  /* первый экран компактнее */
  .mh-grid { padding: var(--s-8) 0 var(--s-10); gap: var(--s-8); }
  .mh-lead { font-size: var(--fs-17, 17px); margin-top: var(--s-5); }
  .mh-cta { margin-top: var(--s-6); gap: var(--s-4); }
  .mh-cta .btn { width: 100%; justify-content: center; }
  .mh-art { max-width: 100%; }

  /* тёмная полоса преимуществ */
  .mband-inner { padding: var(--s-8) 0; gap: var(--s-5); }
  .mband-chev { display: none; }

  /* карточки решений */
  .msol { gap: var(--s-4); }
  .msol-card { padding: var(--s-6); }
  .msol-card h3 { margin-top: var(--s-5); font-size: var(--fs-20); }
  .msol-card svg.msol-chev { width: 140px; right: -34px; bottom: -22px; }

  /* шаги */
  .mstep-shot::before, .mstep.is-flip .mstep-shot::before { display: none; }
  .mstep-text h3 { margin-top: var(--s-4); }
  .mstep + .mstep { margin-top: var(--s-8); padding-top: var(--s-8); }

  /* видеообзор и заявка */
  .mask { padding: var(--s-6); border-radius: 14px; }
  .mask-frame { margin-top: var(--s-6); }
  .mask-form { padding: var(--s-6); }
  .mask-form h3 { font-size: var(--fs-18); }

  /* тарифы */
  .mplan-in { padding: var(--s-5) var(--s-5) var(--s-6); }
  .mcorp { padding: var(--s-6); }


  /* итоговая полоса */
  .mfin { padding: var(--s-8) var(--s-6); border-radius: 14px; }
  .mfin-acts .btn { width: 100%; justify-content: center; }
  .mfin-art { display: none; }

  /* декоративные подложки под снимками */
  .mfull-shape, .mtabs-shape { display: none; }
}

@media (max-width: 400px) {
  .mtabs-nav { gap: 8px; }
  .msec-head h2 { font-size: 26px; }
}

/* Блок «Виды парсеров» использует те же карточки, что и тарифы на главной.
   Здесь только то, чего в тарифах нет: две колонки вместо трёх, свой цвет
   для разовой услуги и кнопка вместо раскрывающегося списка. */
/* Ширину не режем: иначе карточки не совпадают по краям с полосой
   «Программа-парсер» под ними и с заголовком раздела. */
.mplans.is-two { grid-template-columns: repeat(2, 1fr); }
.mplan.is-order { --pc: #0891b2; --pcbg: #e2f5f9; }
.mplan-cta { margin-top: auto; padding-top: var(--s-6); }
.mplan-cta .btn { width: 100%; justify-content: center; }
.mcorp-price .btn { margin-top: var(--s-5); }
@media (max-width: 860px) { .mplans.is-two { grid-template-columns: 1fr; } }

/* ==========================================================================
   Страница облачного парсера. Оформление взято с главной, здесь только то,
   чего в общем наборе нет: номер шага в тёмной полосе, плитки видов
   изменений на тёмном фоне и строка стоимости.
   ========================================================================== */

/* Номер у светлого шахматного блока */
.mf-num i {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--primary-50); color: var(--primary);
  font-style: normal; font-size: var(--fs-14); font-weight: 800;
}
.mf-text h3 { margin-top: var(--s-5); font-size: clamp(21px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.2; }

/* Шаги в тёмной полосе: вместо иконки порядковый номер */
.mband-item .mband-step {
  flex: 0 0 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark-2); border: 1px solid var(--dark-line);
  color: var(--primary);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-13); font-weight: 700;
}
.mband-item:first-child .mband-step { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Виды изменений на тёмном фоне */
.cp-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-8); }
.cp-kind {
  position: relative;
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6);
  border-radius: 12px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
}
.cp-kind::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--kc, var(--primary));
}
.cp-kind b { display: block; font-size: var(--fs-16); color: #fff; }
.cp-kind span { display: block; margin-top: 6px; font-size: var(--fs-14); line-height: 1.55; color: var(--dark-muted); }

/* Стоимость четырьмя строками */
.cp-cost { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); margin-top: var(--s-10); }
.cp-cost-item {
  padding: var(--s-6);
  border: 1px solid var(--line); border-radius: var(--r-4); background: #fff;
  border-left: 3px solid var(--primary);
}
.cp-cost-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--fs-20); font-weight: 700; color: var(--primary); letter-spacing: -0.02em;
}
.cp-cost-item b { display: block; margin-top: var(--s-4); font-size: var(--fs-16); }
.cp-cost-item span { display: block; margin-top: 8px; font-size: var(--fs-14); line-height: 1.6; color: var(--muted); }
.cp-cost-item a { color: var(--primary); font-weight: 600; }

@media (max-width: 980px) {
  .cp-kinds { grid-template-columns: 1fr 1fr; }
  .cp-cost { grid-template-columns: 1fr; }
}
@media (max-width: 620px) { .cp-kinds { grid-template-columns: 1fr; } }
