/* =========================================================================
   Seosite · прототипы
   Дизайн-система: «от шума к сигналу».
   Тёмные зоны — проблема клиента и живые сцены, светлые — цифры, состав работ, цены.
   Синий — трафик и данные, янтарный — заявки и главное действие.
   ========================================================================= */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------- токены */
:root {
  --night: #0b1324;
  --night-2: #111c33;
  --night-3: #18264a;
  --night-line: #243457;
  --paper: #f3f5f9;
  --paper-2: #ffffff;
  --paper-3: #e9edf4;
  --paper-line: #dbe1ec;
  --ink: #121a2b;
  --ink-soft: #4a5470;
  --fog: #aab5cf;
  --fog-dim: #7d89a8;
  --flow: #4c7dff;
  --flow-ink: #2f5be0;
  --flow-light: #8eabff;
  --signal: #ffb020;
  --signal-deep: #e89400;
  --signal-soft: #fff1d6;
  --leak: #ff6b5b;
  --ok: #2fbf8a;

  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-text: "Golos Text", "Segoe UI", Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.09rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.22rem + 0.6vw, 1.7rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.6vw, 3.9rem);
  --step-5: clamp(2.3rem, 1.6rem + 3.3vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --shell: 1240px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Зоны задают свои цвета, компоненты берут их через переменные */
.zone-night {
  --bg: var(--night);
  --surface: var(--night-2);
  --surface-2: var(--night-3);
  --fg: #eef2fb;
  --fg-soft: var(--fog);
  --fg-dim: var(--fog-dim);
  --line: var(--night-line);
  --link: var(--flow-light);
  color-scheme: dark;
  background: var(--bg);
  color: var(--fg);
}
.zone-paper {
  --bg: var(--paper);
  --surface: var(--paper-2);
  --surface-2: var(--paper-3);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-dim: #5d6783;
  --line: var(--paper-line);
  --link: var(--flow-ink);
  color-scheme: light;
  background: var(--bg);
  color: var(--fg);
}

/* ------------------------------------------------------------- база */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  background: var(--night);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--signal); color: var(--ink); border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------- раскладка */
.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 60rem; }
.section-head p { color: var(--fg-soft); font-size: var(--step-1); margin: 0; }

/* ------------------------------------------------------------- типографика */
.display, .h1 {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h1--long { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.h2 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 { font-size: var(--step-2); font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: var(--step-1); color: var(--fg-soft); line-height: 1.55; max-width: 44ch; }
.muted { color: var(--fg-soft); }
.num {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
}
.small { font-size: var(--step--1); }

/* ------------------------------------------------------------- шапка */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  color: #eef2fb;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s;
}
.site-header.is-scrolled { background: rgba(11, 19, 36, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.on-paper { color: var(--ink); background: rgba(243, 245, 249, 0.86); box-shadow: 0 1px 0 var(--paper-line); }
.site-header .shell { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 650; line-height: 1.1; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-weight: 400; opacity: 0.7; font-size: 0.78rem; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: inherit; text-decoration: none; font-size: 0.97rem; opacity: 0.86; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.btn.menu-toggle { display: none; }

/* ------------------------------------------------------------- кнопки */
.btn {
  --btn-bg: var(--signal); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, box-shadow 0.25s;
}
.btn:hover { background: #ffc04d; transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(255, 176, 32, 0.7); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--fg-dim); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn .tg-icon { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ------------------------------------------------------------- первый экран */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; overflow: hidden; padding-top: calc(var(--header-h) + 32px); padding-bottom: 56px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-content: center; }
.hero-copy .lead { max-width: 40ch; }
.hero-kicker { color: var(--fg-soft); font-size: var(--step-0); max-width: 48ch; }
/* Цифры первого экрана — одной строкой равных колонок. Раньше было flex с колонками до 15rem: в колонке
   первого экрана третья цифра («5,0 на Kwork») уезжала на новую строку. Размер цифры считается от ширины
   строки (cqi), чтобы «37→90%» помещалось в колонку на любом экране. */
.hero-proof { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 18px clamp(14px, 2.6vw, 36px); margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); container-type: inline-size; }
.hero-proof div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.hero-proof .num { font-size: clamp(1.15rem, 5.3cqi, 2.4rem); color: var(--signal); white-space: nowrap; }
/* Узкий телефон: в колонке шириной около 100 px подписи вышли бы в 5–6 строк, поэтому три строки «цифра — подпись».
   Колонка цифр общая для всех строк (subgrid) и равна самой широкой цифре страницы. Раньше стояла
   постоянная 7.6rem (122 px): «37→90%» (128 px), «≈0→1 300» (133) и «6 или 10 ч» (146) залезали на подпись. */
@media (max-width: 480px) {
  .hero-proof { grid-auto-flow: row; grid-auto-columns: auto; gap: 14px; }
  .hero-proof div { grid-template-columns: minmax(0, 7.6rem) minmax(0, 1fr); align-items: center; column-gap: 14px; }
  .hero-proof .num { font-size: 1.55rem; }
  @supports (grid-template-columns: subgrid) {
    .hero-proof { grid-template-columns: max-content minmax(0, 1fr); }
    .hero-proof div { grid-column: 1 / -1; grid-template-columns: subgrid; }
  }
}
.hero-proof span:last-child { color: var(--fg-soft); font-size: var(--step--1); line-height: 1.4; }
.hero-stage { position: relative; min-height: 460px; height: 100%; }
.scene { position: absolute; inset: 0; }
.scene canvas { width: 100%; height: 100%; }
.hero-bg-scene { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }

/* ------------------------------------------------------------- блок «узнаёте ситуацию?» */
.pains { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pain-tabs { display: grid; gap: 8px; }
.pain-tab {
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; text-align: left;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: transparent; cursor: pointer; color: var(--fg-soft);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.pain-tab:hover { color: var(--fg); border-color: var(--fg-dim); }
.pain-tab[aria-selected="true"] { background: var(--surface); color: var(--fg); border-color: var(--signal); }
.pain-tab .pain-dot { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; border: 2px solid currentColor; }
.pain-tab[aria-selected="true"] .pain-dot { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 6px rgba(255, 176, 32, 0.18); }
.pain-tab strong { display: block; font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.pain-panel { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); min-height: 100%; }
.pain-panel[hidden] { display: none; }
.pain-panel .h3 { margin-bottom: 18px; }
.pain-panel .split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0 28px; }
.pain-panel .split h4 { font-size: var(--step--1); font-weight: 600; color: var(--fg-dim); margin-bottom: 10px; }
.pain-panel ul { list-style: none; display: grid; gap: 10px; }
.pain-panel li { position: relative; padding-left: 22px; color: var(--fg-soft); line-height: 1.5; }
.pain-panel li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--flow-light); }
.pain-panel .result { display: flex; gap: 16px; align-items: baseline; padding: 18px 20px; border-radius: var(--radius-md); background: rgba(255, 176, 32, 0.1); color: var(--fg); margin-bottom: 24px; }
.pain-panel .result .num { color: var(--signal); font-size: var(--step-3); white-space: nowrap; }

/* ------------------------------------------------------------- переход «шум → сигнал» */
.signal-band { position: relative; height: clamp(320px, 52vw, 560px); overflow: hidden; }
.signal-band .scene { inset: 0; }
.signal-band .signal-caption { position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vw, 48px); z-index: 2; }
.signal-band .signal-caption p { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; max-width: 22ch; margin: 0; }

/* ------------------------------------------------------------- что получите */
.outcomes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.outcome { grid-column: span 6; display: grid; grid-template-rows: auto 1fr; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.outcome--wide { grid-column: span 7; }
.outcome--narrow { grid-column: span 5; }
.outcome h3 { font-size: var(--step-2); font-weight: 650; line-height: 1.2; }
.outcome p { color: var(--fg-soft); margin: 0; }
.outcome .viz { min-height: 170px; border-radius: var(--radius-md); background: var(--surface-2); position: relative; overflow: hidden; }

/* ------------------------------------------------------------- направления */
.directions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.direction { position: relative; display: grid; gap: 16px; align-content: start; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color 0.3s, transform 0.4s var(--ease-out); }
.direction:hover { border-color: var(--flow); transform: translateY(-3px); text-decoration: none; }
.direction .h3 { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: -0.02em; }
.direction .when { color: var(--fg-soft); }
.direction ul { list-style: none; display: grid; gap: 8px; }
.direction li { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.direction li span:last-child { color: var(--fg-dim); white-space: nowrap; }
.direction .go { margin-top: 6px; font-weight: 600; color: var(--link); }
.quickfix { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; padding: 22px 28px; border-radius: var(--radius-lg); border: 1.5px dashed var(--fg-dim); }
.quickfix p { margin: 0; font-size: var(--step-1); }

/* ------------------------------------------------------------- кейсы */
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.case { grid-column: span 4; display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.case--feature { grid-column: span 8; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.case .meta { color: var(--fg-dim); font-size: var(--step--1); }
.case .big { font-size: clamp(2.6rem, 2rem + 3vw, 4.6rem); color: var(--flow-ink); }
.zone-night .case .big { color: var(--signal); }
.case .big-label { color: var(--fg-soft); margin-top: -4px; }
.case h3 { font-size: var(--step-1); font-weight: 650; line-height: 1.3; }
.case p { color: var(--fg-soft); margin: 0; font-size: 0.97rem; }
.case .spark { height: 90px; }
.case .spark path.line { fill: none; stroke: var(--flow); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.case .spark path.area { fill: url(#sparkFill); opacity: 0.5; }
.case .source { font-size: var(--step--1); color: var(--fg-dim); }

/* ------------------------------------------------------------- состав работ и этапы */
.timeline { position: relative; display: grid; gap: 0; }
.timeline-line { position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-line i { position: absolute; inset: 0 0 auto 0; height: 100%; background: linear-gradient(var(--flow), var(--signal)); transform-origin: top; transform: scaleY(0); }
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 22px; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step .marker { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font-weight: 700; font-size: 0.95rem; z-index: 1; transition: border-color 0.3s, background-color 0.3s; }
.step.is-active .marker { border-color: var(--signal); background: var(--signal); color: var(--ink); }
.step h3 { font-size: var(--step-1); font-weight: 650; margin-bottom: 6px; }
.step .when { font-size: var(--step--1); color: var(--fg-dim); margin-bottom: 8px; }
.step p { color: var(--fg-soft); margin: 0; }
.step .deliver { margin-top: 10px; font-size: 0.95rem; }
.step .deliver b { font-weight: 600; color: var(--fg); }

.scope { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.checklist { list-style: none; display: grid; gap: 0; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist svg { width: 22px; height: 22px; margin-top: 2px; }
.checklist b { display: block; font-weight: 600; margin-bottom: 2px; }
.checklist span { color: var(--fg-soft); font-size: 0.97rem; }

/* ------------------------------------------------------------- отчёт (собран в HTML) */
.report { border-radius: var(--radius-lg); background: var(--night); color: #eef2fb; padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 40px 80px -40px rgba(11, 19, 36, 0.55); }
.report-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--fog); font-size: 0.85rem; margin-bottom: 18px; }
.report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.report-kpi { padding: 14px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--night-line); }
.report-kpi .num { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.report-kpi small { display: block; color: var(--fog); font-size: 0.78rem; margin-top: 6px; line-height: 1.3; }
.report-kpi .delta { display: block; margin-top: 6px; color: var(--ok); font-size: 0.78rem; font-weight: 600; line-height: 1.3; }
.report-chart { height: 150px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--night-line); padding: 12px; margin-bottom: 14px; }
.report-chart svg { width: 100%; height: 100%; }
.report-rows { display: grid; gap: 8px; font-size: 0.86rem; }
.report-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--night-2); color: var(--fog); }
.report-row b { color: #eef2fb; font-weight: 500; }
.report-row .tag { color: var(--signal); font-weight: 600; }
.report-note { font-size: var(--step--1); color: var(--fg-dim); margin-top: 12px; }

/* ------------------------------------------------------------- цены */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price { display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.price--accent { background: var(--night); color: #eef2fb; border-color: var(--night); --fg-soft: var(--fog); --line: var(--night-line); --link: var(--flow-light); }
.price h3 { font-size: var(--step-1); font-weight: 650; }
.price .cost { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .cost .num { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); }
.price .cost span:last-child { color: var(--fg-soft); }
.price ul { list-style: none; display: grid; gap: 10px; align-content: start; }
.price li { position: relative; padding-left: 24px; color: var(--fg-soft); line-height: 1.45; }
.price li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.price .for { font-size: 0.95rem; color: var(--fg-soft); }
.price-note { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; color: var(--fg-soft); font-size: 0.97rem; }
.price-note b { color: var(--fg); font-weight: 600; }

/* ------------------------------------------------------------- вопросы */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-list { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: center; padding: 22px 0; cursor: pointer; font-size: var(--step-1); font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; transition: transform 0.35s var(--ease-out), background-color 0.3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity 0.3s; }
.faq details[open] summary .plus { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.faq details[open] summary .plus::after { opacity: 0; }
.faq .answer { padding: 0 44px 24px 0; color: var(--fg-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- об эксперте, отзывы */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.portrait-scene { position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.about-facts div { padding-top: 14px; border-top: 1px solid var(--line); }
.about-facts .num { font-size: var(--step-3); color: var(--signal); display: block; }
.about-facts span:last-child { color: var(--fg-soft); font-size: var(--step--1); line-height: 1.4; }
.ratings { display: flex; flex-wrap: wrap; gap: 12px; }
.rating { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); color: inherit; text-decoration: none; }
.rating .num { font-size: 1.4rem; color: var(--signal); }
.rating small { display: block; color: var(--fg-soft); line-height: 1.3; }
.reviews { position: relative; overflow: hidden; margin-top: clamp(48px, 6vw, 80px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reviews-track { display: flex; gap: 20px; width: max-content; align-items: flex-start; }
.review { width: min(78vw, 400px); flex: none; padding: 24px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.review blockquote { margin: 0 0 16px; color: var(--fg); line-height: 1.55; }
.review figcaption { color: var(--fg-dim); font-size: var(--step--1); }

/* ------------------------------------------------------------- форма */
.lead-zone { overflow: hidden; }
.lead-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.lead-copy ul { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.lead-copy li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--fg-soft); }
.lead-copy li b { color: var(--fg); font-weight: 600; }
.lead-copy li .step-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 0.85rem; font-weight: 700; color: var(--fg); }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.form .h3 { margin-bottom: 4px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: var(--step--1); color: var(--fg-dim); }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px;
  background: var(--bg); border: 1.5px solid var(--line); color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--flow); box-shadow: 0 0 0 4px rgba(76, 125, 255, 0.22); }
.field input[aria-invalid="true"] { border-color: var(--leak); }
.field .error { color: var(--leak); font-size: var(--step--1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-switch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg); border: 1.5px solid var(--line); }
.contact-switch label { position: relative; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 8px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 0.88rem; color: var(--fg-soft); transition: background-color .25s, color .25s; }
.contact-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.contact-switch label:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 2px; }
.contact-switch label:has(input:checked) { background: var(--signal); color: var(--ink); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: var(--step--1); color: var(--fg-soft); line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--signal); }
.form-alt { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 0.95rem; color: var(--fg-soft); }
.form-success { display: none; gap: 10px; padding: 18px; border-radius: var(--radius-md); background: rgba(47, 191, 138, 0.12); color: var(--fg); }
.form.is-sent .form-success { display: grid; }
.form.is-sent .form-body { display: none; }

/* ------------------------------------------------------------- материалы и соседние услуги */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related a { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color 0.3s; }
.related a:hover { border-color: var(--flow); }
.related small { color: var(--fg-dim); }
.related b { font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
/* Четыре карточки — сетка 2×2, а не три в ряд и одна внизу. Только на широком экране: уже 1080 px карточки в один столбец */
@media (min-width: 1081px) { .related:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Материалы внизу страниц услуг: статья крупно слева, справа услуги с ценой или вторая статья.
   Вариант «Б. Статья крупно» (выбор владельца, docs/owner-todo.md № 36), в теме — блок seosite/related.
   Вся карточка — одна ссылка, поэтому кнопка и стрелка — span, а реакция на наведение висит на карточке. */
.related-h { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin-bottom: clamp(20px, 3vw, 28px); }
.related-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
.related-grid--solo { grid-template-columns: minmax(0, 1fr); }
.related-tag { justify-self: start; display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; line-height: 1.15; letter-spacing: 0.02em; }
.related-tag--art { color: var(--flow-ink); background: rgba(76, 125, 255, 0.12); }
/* #8a5200 на signal-soft — тот же янтарный текст, что у меток приоритета: --signal-deep на светлом не читается */
.related-tag--svc { color: #8a5200; background: var(--signal-soft); }

.related-feat {
  --fg: #eef2fb; --fg-soft: var(--fog); --fg-dim: var(--fog-dim); --line: var(--night-line);
  position: relative; isolation: isolate; overflow: hidden; min-width: 0;
  display: grid; gap: 16px; align-content: start;
  padding: clamp(22px, 3vw, 30px); border-radius: var(--radius-lg);
  background: var(--night); color: var(--fg); text-decoration: none;
}
.related-feat::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(76, 125, 255, 0.35), transparent 70%); pointer-events: none; }
.related-feat:focus-visible { border-radius: var(--radius-lg); }
.related-feat .related-tag--art { color: #a9c0ff; background: rgba(76, 125, 255, 0.18); }
.related-feat .related-tag--svc { color: var(--signal); background: rgba(255, 176, 32, 0.14); }
.related-feat-h { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; max-width: 22ch; }
.related-feat p { margin: 0; max-width: 52ch; color: var(--fg-soft); font-size: 0.95rem; line-height: 1.5; }
.related-feat .related-price { color: var(--fg); font-size: 1.2rem; line-height: 1.25; }
.related-checks { display: grid; gap: 8px; list-style: none; }
.related-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; }
.related-checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; border: 1.6px solid #3a5288; }
.related-checks li.is-on::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.related-checks small { color: var(--fg-dim); font-size: 0.82rem; white-space: nowrap; }
.related-cta { justify-self: start; margin-top: 4px; }
.related-cta svg, .related-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.related-feat:hover .related-cta { background: #ffc04d; transform: translateX(3px); }

.related-side { display: grid; gap: 18px; min-width: 0; }
.related-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; min-width: 0;
  padding: 22px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: border-color 0.25s, box-shadow 0.25s;
}
.related-card:hover { border-color: #c6d1ea; box-shadow: 0 18px 40px -24px rgba(18, 26, 43, 0.35); }
.related-card:focus-visible { border-radius: var(--radius-md); }
.related-card-body { display: grid; gap: 6px; min-width: 0; }
.related-card h3 { margin-top: 4px; font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.related-price { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--fg); }
.related-price small { font-family: var(--font-text); font-size: 0.82rem; font-weight: 500; letter-spacing: 0; color: var(--fg-dim); }
.related-note, .related-meta { margin: 0; color: var(--fg-soft); font-size: 0.92rem; line-height: 1.45; }
.related-arrow { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--fg); transition: transform 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s, color 0.25s; }
.related-card:hover .related-arrow { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateX(3px); }
@media (max-width: 860px) { .related-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------- подвал */
.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 0.9rem; font-weight: 600; color: var(--fg-dim); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--fg-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--fg); text-decoration: underline; }
.footer-bottom { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--fg-dim); font-size: var(--step--1); }

/* ------------------------------------------------------------- метка прототипа */
.proto-note { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 300px; padding: 12px 14px; border-radius: 14px; background: rgba(17, 28, 51, 0.92); color: #dfe6f6; font-size: 0.8rem; line-height: 1.4; box-shadow: 0 12px 30px -12px rgba(0,0,0,0.5); }
.proto-note button { margin-left: 8px; background: none; border: 0; color: var(--signal); cursor: pointer; padding: 0; font-weight: 600; }
.ph { color: inherit; }

/* ------------------------------------------------------------- состояния анимации */
/* Текст первого экрана виден с первого кадра (важно для LCP): только сдвиг, без прозрачности */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: hero-rise 0.9s var(--ease-out) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.07s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.21s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.28s; }
}
@keyframes hero-rise { from { transform: translateY(22px); } }
html.js [data-reveal] { visibility: hidden; }
html.js.motion-off [data-reveal], html.no-motion [data-reveal] { visibility: visible; }

/* ------------------------------------------------------------- адаптив */
@media (max-width: 1080px) {
  .nav { display: none; }
  .btn.menu-toggle { display: inline-flex; }
  .hero-grid, .pains, .scope, .faq, .about, .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { min-height: 380px; }
  .pain-panel { position: static; }
  .directions, .prices, .related { grid-template-columns: minmax(0, 1fr); }
  .outcome, .outcome--wide, .outcome--narrow { grid-column: span 12; }
  .case, .case--feature { grid-column: span 12; }
  .case--feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 8px); }
  .hero-stage { min-height: 300px; }
  .pain-panel .split, .field-row, .about-facts { grid-template-columns: 1fr; }
  .report-kpis { grid-template-columns: 1fr 1fr; }
  .report-kpis .report-kpi:last-child { grid-column: span 2; }
  .header-cta .btn { display: none; }
  .header-cta .btn.btn--menu { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .proto-note { left: 12px; right: 12px; bottom: 12px; max-width: none; font-size: 0.75rem; }
  .quickfix { padding: 20px; }
  .faq .answer { padding-right: 0; }
}

/* мобильное меню: аккордеон (вариант «А», выбор владельца 14.11.2026)
   Раньше 19 пунктов и контакты шли одним столбцом крупным шрифтом: на 360×640 меню занимало три экрана,
   телефон и кнопка заявки оказывались в самом низу. Теперь направления — свёрнутые строки (раскрыта одна,
   группа текущего раздела), «О работе» — кнопки, связь закреплена внизу. Прокручивается только .mm-body. */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  /* Выше плавающих кнопок плагинов (кружок чата и «Выключить эффекты», 2147481000–2147481001): при z-index 49
     они ложились на WhatsApp и «Обсудить задачу» в панели связи. Ниже баннера cookie (2147482000). */
  z-index: 2147481500;
  display: flex; flex-direction: column;
  background: var(--night); color: #eef2fb; border-top: 1px solid var(--night-line);
  --mm-w: 640px;
}
.mobile-menu[hidden] { display: none; }
/* Пока меню открыто, страница под ним не прокручивается (Lenis останавливает motion.js) */
html.mm-open { overflow: hidden; }
html.mm-open .site-header, html.mm-open .site-header.on-paper {
  --fg: #eef2fb; --line: rgba(238, 242, 251, 0.24); --surface: rgba(238, 242, 251, 0.08); --fg-dim: #aab5cf;
  color: #eef2fb; background: var(--night); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
/* В шапке открытого меню — логотип, звонок и «Закрыть». Telegram и кнопка заявки есть в панели связи внизу:
   на планшете и телефоне боком они стояли бы дважды, а кнопка шапки на 667 px переносилась в две строки. */
html.mm-open .header-cta > .btn:not(.header-call):not(.menu-toggle) { display: none; }
/* Баннер cookie (плагин заявок, z-index выше меню) при первом заходе ложился на панель связи открытого меню:
   на телефоне не было видно ни номера, ни кнопки заявки, пока не нажмёшь «Понятно». Пока меню открыто, баннер
   прячем; согласие он не теряет и после закрытия меню снова на месте. */
html.mm-open .slc-cookie { visibility: hidden; }
/* На планшете столбец меню не шире 640 px и стоит по левому краю, под логотипом */
.mm-body, .mm-dock { padding-left: var(--gutter); padding-right: max(var(--gutter), calc(100% - var(--mm-w) - var(--gutter))); }
.mm-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-top: 14px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.mm-acc { flex: none; border: 1px solid var(--night-line); border-radius: 16px; background: var(--night-2); }
.mm-acc-btn {
  width: 100%; min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  border: 0; border-radius: 15px; background: none; color: inherit; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.02em;
}
.mm-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--night-3); }
.mm-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--flow-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mm-cnt { margin-left: auto; font-family: var(--font-text); font-weight: 500; font-size: 0.8rem; letter-spacing: 0; color: var(--fog-dim); }
.mm-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--fog); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out); }
.mm-acc-btn[aria-expanded="true"] .mm-chev { transform: rotate(180deg); }
/* Свёрнутый список скрыт через visibility: ссылки не попадают в Tab и в дерево доступности,
   но высота успевает плавно уйти в 0 (visibility меняется после анимации) */
.mm-list { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.32s var(--ease-out), visibility 0s linear 0.32s; }
.mm-acc-btn[aria-expanded="true"] + .mm-list { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.32s var(--ease-out), visibility 0s; }
.mm-list > div { min-height: 0; overflow: hidden; }
.mm-list a { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 14px 6px 58px; border-top: 1px solid rgba(36, 52, 87, 0.6); color: inherit; text-decoration: none; font-size: 1rem; line-height: 1.25; }
.mm-list a:first-child { border-top-color: var(--night-line); }
.mm-list a:last-child { border-radius: 0 0 15px 15px; }
.mm-list .mm-hub { color: var(--flow-light); font-weight: 600; font-size: 0.94rem; }
.mm-list a[aria-current="page"] { color: var(--signal); }
.mm-arr { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Список обрезан по краю (overflow для анимации высоты), поэтому рамка фокуса — внутри элемента */
.mm-acc :focus-visible { outline-offset: -3px; }
.mm-about { flex: none; display: grid; gap: 8px; margin-top: 6px; }
.mm-lbl { margin: 0 2px; color: var(--fog-dim); font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-chip { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--night-line); border-radius: 999px; background: var(--night-2); color: inherit; text-decoration: none; font-size: 0.94rem; line-height: 1.2; }
.mm-chip[aria-current="page"] { border-color: var(--signal); color: var(--signal); }
.mm-dock { flex: none; display: grid; gap: 8px; padding-top: 10px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--night-line); background: var(--night-2); }
.mm-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mm-tel { flex: 1; min-width: 0; min-height: 44px; display: grid; align-content: center; gap: 2px; color: inherit; text-decoration: none; line-height: 1.15; }
.mm-tel b { font-weight: 650; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; }
.mm-tel small { color: var(--fog-dim); font-size: 0.78rem; }
.mm-msg { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #fff; }
.mm-msg svg { width: 22px; height: 22px; fill: currentColor; }
.mm-msg--tg { background: #229ed9; }
.mm-msg--wa { background: #1fa855; }
.mobile-menu .mm-cta { width: 100%; min-height: 48px; }
/* Широкий экран (телефон боком, планшет): связь и кнопка одной строкой, панель вдвое ниже */
@media (min-width: 560px) {
  .mm-dock { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
  .mobile-menu .mm-cta { width: auto; }
}
/* Телефон боком (высота до 520 px): строки ниже, подпись «О работе» слева от кнопок — свёрнутое меню
   помещается на 667×375 без прокрутки, раскрытая группа прокручивается внутри списка */
@media (max-height: 520px) {
  .mm-body { padding-top: 10px; padding-bottom: 10px; gap: 6px; }
  .mm-acc-btn { min-height: 48px; }
  .mm-about { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; margin-top: 2px; }
  .mm-dock { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .mm-list, .mm-acc-btn[aria-expanded="true"] + .mm-list, .mm-chev { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Визуалы на коде: макеты, собранные в HTML и CSS
   ========================================================================= */

.stage-caption { position: absolute; left: 0; right: 0; bottom: -4px; z-index: 3; color: var(--fg-dim); font-size: var(--step--1); }
.scene-frame { position: relative; height: 100%; min-height: inherit; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--night); }
.scene-frame .scene { position: absolute; inset: 0; }

/* переключатель режимов сцены */
.toggle { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.toggle button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--fg-soft); font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--signal); color: var(--ink); }
.stage-controls { position: absolute; left: 16px; top: 16px; z-index: 3; }

/* ---------- поисковая выдача (схема) ---------- */
.serp { position: relative; display: grid; gap: 14px; padding: clamp(14px, 2vw, 22px); border-radius: var(--radius-lg); background: var(--night-2); border: 1px solid var(--night-line); color: #eef2fb; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.serp-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--night); border: 1px solid var(--night-line); font-size: 0.95rem; }
.serp-bar svg { width: 18px; height: 18px; flex: none; color: var(--fog); }
.serp-list { list-style: none; display: grid; gap: 8px; }
.serp-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid transparent; }
.serp-item .fav { width: 22px; height: 22px; border-radius: 6px; background: var(--night-3); }
.serp-item b { display: block; font-weight: 500; font-size: 0.93rem; color: #cdd6ea; line-height: 1.25; }
.serp-item small { display: block; color: var(--fog); font-size: 0.8rem; }
.serp-item .pos { font-family: var(--font-display); font-size: 0.85rem; color: var(--fog-dim); min-width: 2ch; text-align: right; }
.serp-item.is-you { border-color: rgba(255, 176, 32, 0.45); background: rgba(255, 176, 32, 0.08); }
.serp-item.is-you .fav { background: var(--signal); }
.serp-item.is-you b { color: #fff; }
.serp-item.is-you .pos { color: var(--signal); font-size: 1rem; }
.serp-item.is-you.is-up { border-color: var(--signal); }
.serp-gap { text-align: center; color: var(--fog-dim); font-size: 0.8rem; letter-spacing: 0.3em; }
.serp-graph { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding-top: 6px; border-top: 1px solid var(--night-line); }
.serp-graph small { color: var(--fog); font-size: 0.8rem; line-height: 1.3; max-width: 11ch; }
.serp-graph svg { height: 54px; width: 100%; }
.serp-graph path { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; }

/* ---------- макет сайта для доработок ---------- */
.fix-stage { position: relative; display: grid; grid-template-columns: 1fr; gap: 26px; }
.devices { position: relative; margin-right: 34px; }
.browser { position: relative; border-radius: 18px; background: #f7f8fb; color: var(--ink); overflow: hidden; border: 1px solid var(--night-line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.browser-top { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #e8ecf3; }
.browser-top i { width: 9px; height: 9px; border-radius: 50%; background: #c7cfdd; }
.browser-top .tab { margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: #fff; font-size: 0.72rem; color: #4a5470; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-top .tab .empty { color: #c7362a; }
.browser-top .tab .filled { display: none; }
.browser-top .tab.is-fixed .empty { display: none; }
.browser-top .tab.is-fixed .filled { display: inline; }
.browser-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; padding: 16px; min-height: 220px; }
.mock-lines { display: grid; gap: 8px; align-content: start; }
.mock-lines span { display: block; height: 10px; border-radius: 4px; background: #dfe4ee; }
.mock-lines span.h { height: 18px; width: 85%; background: #c9d1e1; }
.mock-lines span:nth-child(3) { width: 70%; }
.mock-lines span:nth-child(4) { width: 55%; }
.mock-hero { height: 70px; border-radius: 10px; background: linear-gradient(110deg, #dfe4ee 30%, #edf0f6 50%, #dfe4ee 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.mock-hero.is-fixed { animation: none; background: linear-gradient(135deg, #4c7dff, #8eabff); }
@keyframes shimmer { to { background-position: -200% 0; } }
.mock-form { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #e3e8f1; }
.mock-form span { height: 26px; border-radius: 7px; background: #f0f3f8; border: 1px solid #e3e8f1; }
.mock-form em { font-style: normal; font-size: 0.72rem; color: #c7362a; }
.mock-form b { display: grid; place-items: center; height: 30px; border-radius: 999px; background: #c9d1e1; color: #2c3550; font-size: 0.75rem; font-weight: 600; }
.mock-form.is-fixed em { color: #1d7d59; }
.mock-form.is-fixed b { background: var(--signal); color: var(--ink); }
.mock-form .msg-ok { display: none; }
.mock-form.is-fixed .msg-ok { display: inline; }
.mock-form.is-fixed .msg-err { display: none; }
.phone { position: absolute; right: -34px; bottom: -14px; width: 132px; padding: 8px; border-radius: 24px; background: #0e1628; border: 1px solid var(--night-line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.phone-screen { display: grid; gap: 6px; padding: 12px 8px 14px; border-radius: 18px; background: #f7f8fb; min-height: 200px; overflow: hidden; }
.phone-screen span { display: block; height: 8px; border-radius: 3px; background: #dfe4ee; }
.phone-screen span.h { height: 14px; background: #c9d1e1; }
.phone-btn { margin-top: 8px; height: 26px; border-radius: 999px; background: var(--signal); transform: translateX(46%) rotate(-6deg); width: 92%; transition: transform 0.7s var(--ease-out); }
.phone-btn.is-fixed { transform: none; }
.issues { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.issue { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 107, 91, 0.08); border: 1px solid rgba(255, 107, 91, 0.3); font-size: 0.86rem; line-height: 1.3; color: #eef2fb; transition: background-color 0.4s, border-color 0.4s; }
.issue::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--leak); justify-self: center; }
.issue.is-working { border-color: var(--signal); background: rgba(255, 176, 32, 0.1); }
.issue.is-working::before { background: var(--signal); box-shadow: 0 0 0 5px rgba(255, 176, 32, 0.2); }
.issue.is-fixed { background: rgba(47, 191, 138, 0.1); border-color: rgba(47, 191, 138, 0.45); }
.issue.is-fixed::before { width: 12px; height: 7px; border-radius: 0; background: none; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translate(1px, -2px); }
.score { position: absolute; left: 14px; top: 58px; display: grid; place-items: center; width: 108px; padding: 10px 8px 8px; border-radius: 16px; background: rgba(11, 19, 36, 0.92); border: 1px solid var(--night-line); color: #eef2fb; }
.score svg { width: 84px; height: 48px; overflow: visible; }
.score .track { fill: none; stroke: var(--night-line); stroke-width: 8; stroke-linecap: round; }
.score .arc { fill: none; stroke: var(--leak); stroke-width: 8; stroke-linecap: round; transition: stroke 0.4s; }
.score .arc.is-mid { stroke: var(--signal); }
.score .arc.is-good { stroke: var(--ok); }
.score .num { font-size: 1.5rem; margin-top: -26px; }
.score small { font-size: 0.68rem; color: var(--fog); margin-top: 4px; }

/* ---------- мини-визуалы в блоке «что получите» ---------- */
.viz svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.viz .axis { stroke: var(--line); stroke-width: 1; }
.viz .bar { fill: var(--flow); }
.viz .bar.hot { fill: var(--signal); }
.viz .line { fill: none; stroke: var(--flow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.viz .line.hot { stroke: var(--signal); }
.viz .dot { fill: var(--signal); }
.viz text { font-family: var(--font-text); font-size: 12px; fill: var(--fg-dim); }
.viz text.strong { font-family: var(--font-display); font-size: 20px; fill: var(--fg); font-weight: 600; }

@media (max-width: 640px) {
  .issues { grid-template-columns: 1fr; }
  .browser-body { grid-template-columns: 1fr; }
  .phone { width: 104px; right: -22px; bottom: -10px; }
  .devices { margin-right: 22px; }
  .phone-screen { min-height: 160px; }
  .score { top: 48px; width: 96px; }
}

/* =========================================================================
   Блоки посадочных
   ========================================================================= */

/* шапка над тёмной и светлой зоной */
.site-header { --fg: #eef2fb; --line: rgba(238, 242, 251, 0.24); --surface: rgba(238, 242, 251, 0.08); --fg-dim: #aab5cf; }
.site-header.on-paper { --fg: var(--ink); --line: var(--paper-line); --surface: #fff; --fg-dim: #5d6783; }
.site-header .btn--ghost { color: var(--fg); }

/* пары «что вижу — как делаю» */
.pairs { display: grid; border-top: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); padding: 26px 0; border-bottom: 1px solid var(--line); }
.pair > div { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: start; }
.pair > div::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; }
.pair .seen::before { background: var(--leak); }
.pair .done::before { background: var(--ok); }
.pair h3 { font-size: var(--step-1); font-weight: 650; line-height: 1.35; margin-bottom: 6px; }
.pair p { margin: 0; color: var(--fg-soft); }
.pair-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); padding-bottom: 12px; color: var(--fg-dim); font-size: var(--step--1); font-weight: 600; }

/* путь заявки */
.lead-path { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 8px 0 36px; }
.lead-path svg.path-line { position: absolute; left: 0; right: 0; top: 34px; width: 100%; height: 8px; overflow: visible; pointer-events: none; }
.lead-path svg.path-line line { stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 6; }
.lead-path svg.path-line circle { fill: var(--signal); }
.node { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: start; }
.node .ico { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.node .ico svg { width: 30px; height: 30px; stroke: var(--fg); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node.is-key .ico { border-color: var(--signal); box-shadow: 0 0 0 6px rgba(255, 176, 32, 0.12); }
.node b { font-weight: 600; line-height: 1.3; }
.node small { color: var(--fg-soft); font-size: 0.9rem; line-height: 1.4; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks li { list-style: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.95rem; }
.checks li::before { content: ""; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translateY(-2px); }

/* смета и калькулятор */
.budget-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.calc { display: grid; gap: 26px; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.range { display: grid; gap: 10px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-top label { font-weight: 600; }
.range-top output { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.range input[type="range"] { width: 100%; accent-color: var(--signal); height: 28px; }
.range .hint { color: var(--fg-dim); font-size: var(--step--1); }
.calc-result { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius-md); background: var(--night); color: #eef2fb; }
.calc-result .num { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); color: var(--signal); }
.calc-result small { color: var(--fog); line-height: 1.45; }
.calc-result .warn { color: #ffd38a; }
.receipt { position: relative; padding: 28px 26px 30px; border-radius: 6px 6px 0 0; background: var(--paper-2); color: var(--ink); box-shadow: 0 30px 60px -36px rgba(18, 26, 43, 0.4); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 8px -2px, transparent 8px, var(--paper-2) 8.5px) 0 0 / 16px 10px repeat-x; }
.receipt h3 { font-size: var(--step-1); font-weight: 650; margin-bottom: 18px; }
.receipt-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 14px 0; border-bottom: 1px dashed var(--paper-line); }
.receipt-row b { font-weight: 600; }
.receipt-row .sum { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt-row small { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.9rem; }
.receipt-row.to-yandex .sum { color: var(--flow-ink); }
.receipt-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; font-weight: 650; }

/* план запуска по дням */
.gantt { display: grid; gap: 10px; }
.gantt-head, .gantt-row { display: grid; grid-template-columns: minmax(150px, 0.9fr) 2fr; gap: 18px; align-items: center; }
.gantt-days { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; color: var(--fg-dim); font-size: 0.78rem; text-align: center; }
.gantt-row > span { font-weight: 500; line-height: 1.3; }
.gantt-track { position: relative; height: 30px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.gantt-track::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--surface-2) 0 calc(10% - 4px), transparent calc(10% - 4px) 10%); border-radius: 8px; }
.gantt-bar { position: relative; z-index: 1; height: 30px; border-radius: 8px; background: var(--flow); transform-origin: left center; }
.gantt-bar.launch { background: var(--signal); }
.gantt-bar.after { background: repeating-linear-gradient(135deg, var(--ok) 0 8px, #4fd3a2 8px 16px); }
.first-month { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.first-month div { padding-top: 18px; border-top: 2px solid var(--line); }
.first-month div:first-child { border-color: var(--flow); }
.first-month div:nth-child(2) { border-color: var(--signal); }
.first-month div:last-child { border-color: var(--ok); }
.first-month b { display: block; font-weight: 650; margin-bottom: 6px; }
.first-month p { color: var(--fg-soft); margin: 0; }

/* гарантии */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promise > div { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.promise > div:first-child { background: var(--surface); }
.promise h3 { font-size: var(--step-1); font-weight: 650; margin-bottom: 16px; }
.promise ul { list-style: none; display: grid; gap: 14px; }
.promise li { position: relative; padding-left: 26px; color: var(--fg-soft); }
.promise li b { color: var(--fg); font-weight: 600; }
.promise .yes li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.promise .no li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 12px; height: 2px; background: var(--fg-dim); }

/* развилка после запуска */
.forks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fork { display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); }
.fork b { font-size: var(--step-1); font-weight: 650; line-height: 1.3; }
.fork p { margin: 0; color: var(--fg-soft); }
.fork .cost { font-weight: 600; color: var(--fg); }

/* выбор диапазона кнопками */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; padding: 0; }
.chips label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-size: 0.93rem; font-weight: 500; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label:has(input:checked) { border-color: var(--signal); background: rgba(255, 176, 32, 0.12); }
.chips label:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 2px; }

/* кейс без подтверждённых цифр */
.gap-note { display: grid; gap: 10px; padding: 24px; border-radius: var(--radius-md); border: 1.5px dashed var(--signal); background: rgba(255, 176, 32, 0.06); }
.gap-note b { font-weight: 650; }
.gap-note p { margin: 0; color: var(--fg-soft); }

@media (max-width: 1080px) {
  .budget-grid, .promise, .forks, .first-month { grid-template-columns: minmax(0, 1fr); }
  .lead-path { grid-template-columns: 1fr; gap: 18px; }
  .lead-path svg.path-line { display: none; }
  .node { grid-template-columns: 68px 1fr; align-items: center; column-gap: 16px; }
  .node .ico { grid-row: span 2; }
}
@media (max-width: 640px) {
  .pair, .pair-head { grid-template-columns: 1fr; gap: 14px; }
  .pair-head { display: none; }
  .gantt-head { display: none; }
  .gantt-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- каталог правок ---------- */
.tasks { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--fg-soft); font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.task-list { display: grid; border-top: 1px solid var(--line); }
.task { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.task[hidden] { display: none; }
.task input { width: 20px; height: 20px; accent-color: var(--signal); margin: 0; }
.task b { font-weight: 550; line-height: 1.35; }
.task small { display: block; color: var(--fg-dim); font-size: 0.85rem; }
.task .hrs { font-variant-numeric: tabular-nums; color: var(--fg-soft); white-space: nowrap; font-size: 0.95rem; }
.task:has(input:checked) { background: rgba(255, 176, 32, 0.07); }
.tasks-total { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius-lg); background: var(--night); color: #eef2fb; }
.tasks-total small { color: var(--fog); }
.tasks-total .num { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); color: var(--signal); }
.tasks-total .hours { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.tasks-total p { margin: 0; color: var(--fog); font-size: 0.93rem; line-height: 1.5; }
.tasks-total .btn { width: 100%; }

/* ---------- симптомы ---------- */
.symptoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.symptom { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.6vw, 32px); background: var(--bg); }
.symptom q { font-size: var(--step-1); font-weight: 600; line-height: 1.35; quotes: "«" "»"; }
.symptom p { margin: 0; color: var(--fg-soft); }
.symptom svg { width: 36px; height: 36px; stroke: var(--signal); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- безопасность: доступ и проверки ---------- */
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.safety > div { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.safety h3 { font-size: var(--step-1); font-weight: 650; margin-bottom: 8px; }
.safety > div > p { color: var(--fg-soft); margin-bottom: 20px; }
.keyline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keyline::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 2px; background: var(--line); }
.keyline div { position: relative; display: grid; gap: 8px; justify-items: start; }
.keyline i { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--flow); }
.keyline div:nth-child(2) i { border-color: var(--signal); }
.keyline div:last-child i { border-color: var(--ok); background: var(--ok); }
.keyline b { font-weight: 600; font-size: 0.95rem; }
.keyline small { color: var(--fg-soft); font-size: 0.85rem; line-height: 1.35; }
.afterchecks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.afterchecks li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 0.93rem; }
.afterchecks li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 191, 138, 0.18); }

/* ---------- доработать или новый сайт ---------- */
.decide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.decide ol { list-style: none; counter-reset: q; display: grid; gap: 12px; }
.decide li { counter-increment: q; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); }
.decide li::before { content: counter(q); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; }
.decide li b { display: block; font-weight: 600; margin-bottom: 2px; }
.decide li span { color: var(--fg-soft); font-size: 0.95rem; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.platforms span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.93rem; }

@media (max-width: 1080px) {
  .tasks, .safety, .decide { grid-template-columns: minmax(0, 1fr); }
  .tasks-total { position: static; }
  .symptoms { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .symptoms { grid-template-columns: 1fr; }
  .afterchecks { grid-template-columns: 1fr; }
  .task { grid-template-columns: 24px 1fr; }
  .task .hrs { grid-column: 2; }
}

/* ---------- кейсы на главной ---------- */
.case-feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--night); color: #eef2fb; --fg-soft: var(--fog); --line: var(--night-line); }
.case-feature .meta { color: var(--fog-dim); font-size: var(--step--1); margin-bottom: 14px; }
.case-feature h3 { font-size: var(--step-2); font-weight: 650; line-height: 1.25; margin-bottom: 14px; }
.case-feature .big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.case-feature .big .num { font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); color: var(--signal); }
.case-feature .big .from { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); color: var(--fog-dim); }
.case-feature p { color: var(--fog); }
.case-chart { position: relative; }
.case-chart svg { width: 100%; height: auto; overflow: visible; }
.case-chart .grid line { stroke: var(--night-line); stroke-width: 1; }
.case-chart .grid text, .case-chart .lbl { font-family: var(--font-text); font-size: 12px; fill: var(--fog-dim); }
.case-chart .val { font-family: var(--font-display); font-size: 15px; font-weight: 600; fill: #eef2fb; }
.case-chart .line { fill: none; stroke: var(--signal); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.case-chart .area { fill: url(#caseFill); }
.case-chart .pt { fill: var(--night); stroke: var(--signal); stroke-width: 3; }
.case-source { margin-top: 14px; font-size: var(--step--1); color: var(--fog-dim); }
.case-rows { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.case-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 18px 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.case-row h3 { font-size: var(--step-1); font-weight: 650; line-height: 1.3; }
.case-row .meta { color: var(--fg-dim); font-size: 0.9rem; }
.case-row .bars { display: grid; gap: 6px; }
.case-row .bar { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--fg-soft); }
.case-row .bar i { height: 12px; border-radius: 6px; background: var(--paper-line); transform-origin: left center; }
.case-row .bar.after i { background: var(--flow); }
.case-row .bar b { font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-row .mult { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); letter-spacing: -0.03em; color: var(--flow-ink); min-width: 4ch; text-align: right; }
.case-row a { font-size: 0.9rem; }

@media (max-width: 1080px) {
  .case-feature { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 1fr auto; }
  .case-row .bars { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- позиции против заявок ---------- */
.compare { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.compare-chart { position: relative; padding: clamp(16px, 2vw, 24px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.compare-chart svg { width: 100%; height: auto; overflow: visible; }
.compare-chart .grid line { stroke: var(--line); }
.compare-chart .pos { fill: none; stroke: var(--flow-light); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 7; }
.compare-chart .leads { fill: none; stroke: var(--signal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.compare-chart text { font-family: var(--font-text); font-size: 13px; fill: var(--fg-soft); }
.compare-chart text.k { font-weight: 600; }
.compare-chart .toggle { margin-bottom: 16px; }
.compare-note { color: var(--fg-dim); font-size: var(--step--1); margin-top: 10px; }

/* ---------- состав тарифа по часам ---------- */
.plan-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.plan-card .cost { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 14px 0 18px; }
.plan-card .cost .num { font-size: clamp(2.2rem, 1.7rem + 2vw, 3.2rem); }
.hours-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; margin: 16px 0 14px; gap: 2px; }
.hours-bar i { display: block; height: 100%; transform-origin: left center; }
.hours-legend { list-style: none; display: grid; gap: 10px; }
.hours-legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; color: var(--fg-soft); }
.hours-legend li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.hours-legend b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.extra { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--fg-soft); font-size: 0.95rem; }
.extra b { color: var(--fg); font-weight: 600; }
.alt-starts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

/* ---------- кому не подойдёт ---------- */
.notfor { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.notfor li { padding: 22px; border-radius: var(--radius-md); border: 1px solid var(--line); color: var(--fg-soft); }
.notfor b { display: block; color: var(--fg); font-weight: 600; margin-bottom: 6px; }

@media (max-width: 1080px) {
  .compare, .plan-card, .alt-starts { grid-template-columns: 1fr; }
  .notfor { grid-template-columns: 1fr; }
}

/* =========================================================================
   Версия 2: доверие, живость, навигация
   ========================================================================= */
:root { --brand: #35e28b; }

/* шапка: знак «В» и выпадающие меню */
.brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.nav { align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-size: 0.97rem; opacity: 0.88; }
.nav-item > .nav-top::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; }
.nav-top:hover, .nav-top[aria-current="page"], .nav-item:focus-within > .nav-top { opacity: 1; background: var(--surface); text-decoration: none; }
.nav-drop { position: absolute; top: calc(100% + 6px); left: -8px; min-width: 300px; display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(11, 19, 36, 0.45), 0 0 0 1px rgba(11, 19, 36, 0.06); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease-out), transform .3s var(--ease-out), visibility .25s; }
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; visibility: visible; transform: none; }
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.nav-drop a:hover, .nav-drop a:focus-visible { background: var(--paper); }
.nav-drop b { font-weight: 600; font-size: 0.95rem; }
.nav-drop small { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.35; }
.footer-logo img { width: 240px; height: auto; display: block; }

/* линия прокрутки слева, как на vizun4ik.com */
.scroll-line { position: fixed; left: 22px; top: calc(var(--header-h) + 24px); bottom: 32px; width: 2px; z-index: 40; background: rgba(170, 181, 207, 0.18); border-radius: 2px; pointer-events: none; }
.scroll-line i { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: linear-gradient(var(--flow), var(--signal)); border-radius: 2px; }
.scroll-line b { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(255, 176, 32, 0.2), 0 0 18px rgba(255, 176, 32, 0.8); }
@media (max-width: 1280px) { .scroll-line { display: none; } }

/* кнопка «Наверх» с кольцом прогресса */
.to-top { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 55; width: 56px; height: 56px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(17, 28, 51, 0.92); color: #fff; cursor: pointer; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9); transition: opacity .3s, transform .4s var(--ease-out), visibility .3s, background-color .25s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--night-3); }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke-width: 3; }
.to-top .ring .bg { stroke: rgba(255, 255, 255, 0.12); }
.to-top .ring .fg { stroke: var(--signal); stroke-linecap: round; }
.to-top .arrow { width: 18px; height: 18px; }

/* полоса доверия на первом экране */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.trust-me { display: flex; align-items: center; gap: 12px; padding-right: 18px; border-right: 1px solid var(--line); }
.trust-me .avatar { position: relative; width: 52px; height: 52px; flex: none; }
.trust-me .avatar img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.1); box-shadow: 0 0 0 2px var(--night), 0 0 0 3.5px var(--signal); }
.trust-me .avatar::after { content: ""; position: absolute; right: 1px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2.5px var(--night); }
.trust-me b { display: block; font-weight: 650; font-size: 0.98rem; line-height: 1.2; }
.trust-me small { color: var(--fg-soft); font-size: 0.82rem; }
.badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .25s, transform .3s var(--ease-out); }
a.badge:hover { border-color: var(--fg-dim); transform: translateY(-2px); text-decoration: none; }
.badge .logo { width: 28px; height: 28px; flex: none; }
.badge .b-txt { display: grid; gap: 2px; }
.badge .b-row { display: flex; align-items: baseline; gap: 6px; }
.badge-score { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1.1; }
.badge .stars { color: var(--signal); font-size: 0.7rem; letter-spacing: 1px; line-height: 1; }
.badge small { display: block; color: var(--fg-soft); font-size: 0.76rem; line-height: 1.2; white-space: nowrap; }
@media (max-width: 640px) { .trust-me { border-right: 0; padding-right: 0; width: 100%; } }

/* живой фон тёмных блоков */
.ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.85; }
.has-ambient { position: relative; isolation: isolate; }
.has-ambient > .shell { position: relative; z-index: 1; }
.spot { --x: 50%; --y: 30%; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(600px circle at var(--x) var(--y), rgba(76, 125, 255, 0.14), transparent 60%); transition: opacity .4s; }

/* бегущая лента */
.ribbon { position: relative; z-index: 2; overflow: hidden; padding: 18px 0; background: var(--signal); color: var(--ink); transform: rotate(-1.6deg); margin: -10px -20px; box-shadow: 0 20px 40px -24px rgba(11, 19, 36, 0.5); }
.ribbon + .ribbon { background: var(--night-3); color: #eef2fb; transform: rotate(1.2deg); margin-top: -18px; z-index: 1; }
.ribbon-track { display: flex; width: max-content; gap: 0; }
.ribbon-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 0.9rem + 1vw, 1.7rem); letter-spacing: -0.02em; white-space: nowrap; }
.ribbon-track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.ribbon-wrap { position: relative; overflow: hidden; padding: 34px 0; background: linear-gradient(var(--paper) 50%, var(--night) 50%); }

/* раскрытие заголовков по строкам */
.h2 .line { display: block; }

/* журнал тестовой заявки */
.testlog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.testlog-term { position: relative; padding: 20px 22px; border-radius: var(--radius-md); background: #070d1a; border: 1px solid var(--night-line); font-family: var(--font-text); font-size: 0.93rem; min-height: 260px; overflow: hidden; }
.testlog-term .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.testlog-term .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--night-line); }
.testlog-line { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; color: var(--fog); border-bottom: 1px dashed rgba(170, 181, 207, 0.12); }
.testlog-line .st { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--night-line); }
.testlog-line.is-run .st { border-color: var(--signal); border-top-color: transparent; animation: spin .8s linear infinite; }
.testlog-line.is-ok { color: #eef2fb; }
.testlog-line.is-ok .st { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 3px #070d1a; }
.testlog-line .tm { color: var(--fog-dim); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
@keyframes spin { to { transform: rotate(360deg); } }
.lead-card { display: grid; gap: 10px; align-content: start; padding: 20px 22px; border-radius: var(--radius-md); background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); transform-origin: 50% 100%; }
.lead-card .lc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--ink-soft); }
.lead-card .lc-top b { color: var(--ink); font-size: 1rem; }
.lead-card .lc-tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: #e8fbf2; color: #1d7d59; font-weight: 600; font-size: 0.78rem; }
.lead-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 0.9rem; }
.lead-card dt { color: var(--ink-soft); }
.lead-card dd { margin: 0; font-weight: 600; word-break: break-all; }
.lead-card .src { color: var(--flow-ink); }
@media (max-width: 860px) { .testlog { grid-template-columns: 1fr; } }

/* отзывы: высота по тексту, источник и звёзды */
.review { position: relative; padding: 26px 24px 22px; }
.review::before { content: "«"; position: absolute; right: 18px; top: 4px; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--signal); opacity: 0.25; }
.review figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review .stars { color: var(--signal); letter-spacing: 1px; font-size: 0.85rem; }

/* подпись «отвечаю сам» у формы */
.signoff { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); max-width: 460px; }
.signoff img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: grayscale(1); flex: none; }
.signoff p { margin: 0; font-size: 0.95rem; color: var(--fg-soft); line-height: 1.45; }
.signoff b { color: var(--fg); font-weight: 600; }

/* наклон карточек за курсором */
[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform .5s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .ribbon-track { transform: none !important; }
  .testlog-line.is-run .st { animation: none; }
}
.report-chart--rich { height: auto; padding: 14px 12px 8px; }
.report-chart--rich svg { height: auto; }
.report-chart--rich text { font-family: var(--font-text); font-size: 9px; fill: var(--fog-dim); }
.report-chart--rich text.cpl { font-family: var(--font-display); font-size: 11px; font-weight: 600; fill: var(--signal); }
.report-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -4px 0 14px; color: var(--fog); font-size: 0.8rem; }
.report-legend span { display: inline-flex; align-items: center; gap: 6px; }
.report-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.report-legend i.ln { height: 2px; width: 14px; background: #eef2fb; border-radius: 1px; }
.motion-off .testlog-line .st, html:not(.js) .testlog-line .st { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 3px #070d1a; }
.node .ico { transition: border-color .3s, box-shadow .3s, transform .3s var(--ease-out); }
.node.is-hit .ico { border-color: var(--signal); box-shadow: 0 0 0 8px rgba(255, 176, 32, 0.16); transform: translateY(-3px); }

.hero-grid--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
@media (max-width: 1080px) { .hero-grid--wide { grid-template-columns: minmax(0, 1fr); } }
.dir-viz { width: 100%; height: 70px; margin-bottom: 6px; overflow: visible; }

/* ---------- Коммерческие факторы: телефон и часы в шапке, крошки, контакты в меню и подвале ---------- */
.header-phone { gap: 1px; color: inherit; text-decoration: none; text-align: right; white-space: nowrap; line-height: 1.15; }
.header-phone b { font-weight: 650; font-size: 0.98rem; letter-spacing: -0.01em; }
.header-phone small { color: var(--fg-dim); font-size: 0.74rem; }
.header-phone:hover b { text-decoration: underline; text-underline-offset: 3px; }
.btn--icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
.btn--icon svg { width: 18px; height: 18px; }
/* Блок с телефоном помещается в шапку, когда ширина контейнера максимальная (1240 px). Уже — иконка звонка. */
.header-phone { display: none; }
.header-cta .btn.header-call { display: none; }
@media (min-width: 1320px) {
  .header-phone { display: grid; }
  .site-header .shell { gap: 20px; }
  .header-cta { gap: 10px; }
  .site-header .nav-top { padding-inline: 10px; }
  .site-header .nav-top, .brand > span, .header-cta .btn { white-space: nowrap; }
}
@media (max-width: 1319px) { .header-cta .btn.header-call { display: inline-flex; } }
/* Шапка на всю ширину экрана с 1280 px (решение владельца 14.11.2026, owner-todo № 42). С пятым пунктом «Инструменты»
   в контейнер 1240 px шапка не помещалась: на 1280–1319 пункт приходилось прятать, а с 1320 кнопка «Обсудить задачу»
   выходила за край контейнера на 106 px и на 1320–1380 px обрезалась краем экрана. Теперь шапка шире контента,
   пункты не переносятся, а где тесно — телефон свёрнут в значок и отступы меньше. Пять пунктов проверены на 1280–1920. */
@media (min-width: 1280px) {
  .site-header .shell { width: calc(100% - 2 * var(--gutter)); }
  .site-header .nav-top, .site-header .brand > span, .header-cta .btn { white-space: nowrap; }
}
@media (min-width: 1280px) and (max-width: 1499px) {
  .header-phone { display: none; }
  .header-cta .btn.header-call { display: inline-flex; }
  .site-header .shell { gap: 16px; }
  .site-header .nav { gap: 2px; }
  .site-header .nav-top { padding-inline: 9px; }
}
@media (min-width: 1280px) and (max-width: 1359px) {
  .site-header .shell { gap: 12px; }
  .site-header .nav-top { padding-inline: 7px; font-size: 0.94rem; }
}
/* Меню услуг целиком помещается с 1280 px, уже — кнопка «Меню», кнопки шапки прижаты вправо */
@media (max-width: 1279px) {
  .site-header .nav { display: none; }
  .site-header .btn.menu-toggle { display: inline-flex; }
  .site-header .header-cta { margin-left: auto; }
}
/* На телефоне в шапке только звонок и «Меню»/«Закрыть»: обе кнопки под палец, 44 px (было 40 и 42).
   Промежуток между ними меньше на те же 4 px, иначе имя в шапке при «Закрыть» переносилось в четыре строки на 390 px. */
@media (max-width: 640px) {
  .site-header .btn.menu-toggle { min-height: 44px; }
  .header-cta .btn.header-call { width: 44px; height: 44px; }
  .site-header .header-cta { gap: 10px; }
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 16px; padding: 0; color: var(--fg-dim); font-size: 0.85rem; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; }
.crumbs [aria-current] { color: var(--fg-soft); }
.footer-about { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
.footer-hours { color: var(--fg-dim); font-size: var(--step--1); line-height: 1.5; margin-top: 6px; }

/* Телефоны: четыре канала связи в два ряда, иначе «WhatsApp» не помещается (в Firefox до 414 px включительно) */
@media (max-width: 440px) {
  .contact-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pain-panel .result { flex-wrap: wrap; gap: 4px 16px; }
}

/* Узкие телефоны: длинные слова в заголовках («недвижимости», «продвижение») не должны вылезать за экран */
@media (max-width: 400px) {
  .h2 { font-size: min(var(--step-4), 1.85rem); }
  .h1, .h2, .h3 { overflow-wrap: break-word; }
}

/* Кнопка «Выключить эффекты» плагина времён года стоит над кнопкой «Наверх», по её центру */
:root { --seosite-seasons-toggle-bottom: 68px; --seosite-seasons-toggle-right: 29px; }

/* С чатом ИИ-консультанта: внизу кружок чата, над ним «Наверх», выше кнопка времён года, по одной вертикали */
html.has-seosite-chat .to-top { right: max(22px, env(safe-area-inset-right, 0px)); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
html.has-seosite-chat { --seosite-seasons-toggle-bottom: 158px; --seosite-seasons-toggle-right: 33px; }
@media (max-width: 640px) {
  /* на телефоне кружок 56 px и отступ 16 px */
  html.has-seosite-chat .to-top { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  html.has-seosite-chat { --seosite-seasons-toggle-bottom: 150px; --seosite-seasons-toggle-right: 27px; }
}

/* ---------- Последние разработанные проекты: собственные сервисы (хаб разработки W01) ----------
   Блок «Что я делаю для себя» с vizun4ik.com в оформлении этого сайта (владелец, 14.11.2026). Вся карточка —
   ссылка на сервис в новой вкладке, поэтому реакция на наведение висит на карточке. Логотип и название в одну
   строку, а не столбиком, как на vizun4ik.com: карточка ниже, лента на телефоне короче.
   На телефоне видны первые карточки (data-more у списка), остальные открывает кнопка (motion.js, moreLists):
   восемь–десять карточек в одну колонку растягивались на пять-шесть экранов. Классы is-clipped и is-more ставит
   скрипт, поэтому без JS видны все карточки, а кнопка скрыта атрибутом hidden. */
.own-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.own-grid > li { display: grid; min-width: 0; }
.own-card {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; align-content: start; gap: 18px 16px; min-width: 0;
  padding: 24px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.own-card:hover { border-color: var(--flow); transform: translateY(-3px); text-decoration: none; }
.own-card:focus-visible { border-radius: var(--radius-md); }
.own-logo { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.own-logo img { width: auto; height: auto; max-width: 40px; max-height: 40px; }
.own-head { display: grid; gap: 4px; min-width: 0; }
.own-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
/* Стрелка наискосок — «откроется другой сайт»; маска, чтобы стрелку не читали с экрана как текст */
.own-url { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--link); font-size: 0.9rem; line-height: 1.3; overflow-wrap: anywhere; }
.own-url::after {
  content: ""; flex: none; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.own-card:hover .own-url::after { transform: translate(2px, -2px); }
.own-text { grid-column: 1 / -1; margin: 0; color: var(--fg-soft); font-size: 0.95rem; line-height: 1.55; }
.btn.own-more[hidden] { display: none; }
@media (max-width: 1080px) { .own-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 641px) { .btn.own-more { display: none; } }
@media (max-width: 640px) {
  .own-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .own-card { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 20px; }
  .own-logo { width: 48px; height: 48px; border-radius: 12px; }
  .own-logo img { max-width: 34px; max-height: 34px; }
  .own-grid.is-clipped > .is-more { display: none; }
  .btn.own-more { width: 100%; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .own-card, .own-url::after { transition: none; }
  .own-card:hover { transform: none; }
}
