/* ==========================================================================
   Идеальный таксопарк - itaxopark.ru
   Палитра и мотив воронки унаследованы от structure.html.
   Семантика цвета: teal = доверие/система, ЯНТАРЬ ТОЛЬКО = утечка денег.
   ========================================================================== */

:root {
  --paper: #F3F5F6;
  --surface: #FFFFFF;
  --surface-2: #FAFBFC;

  --ink: #16242B;
  --ink-soft: #566169;
  --ink-faint: #8B969C;

  --line: #E3E8EB;
  --line-soft: #EEF1F3;

  --teal: #0E756A;
  --teal-strong: #0B5A52;
  --teal-soft: #E2EFEC;

  --amber: #C6741E;
  --amber-soft: #F8EAD7;

  --danger: #C42B2B;
  --danger-soft: #FBE7E7;

  --shadow: 0 1px 2px rgba(22, 36, 43, .04), 0 8px 24px -12px rgba(22, 36, 43, .10);
  --shadow-lg: 0 2px 4px rgba(22, 36, 43, .05), 0 24px 48px -20px rgba(22, 36, 43, .18);
  --radius: 14px;
  --radius-sm: 9px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 64px;
  --container: 1180px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: var(--teal); text-decoration-color: color-mix(in srgb, var(--teal) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--teal-strong); }

/* text-wrap: balance разводит строки заголовков ровнее и убирает висячее
   слово на последней строке; pretty делает то же для абзацев. */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
p, li, dd, .lead { text-wrap: pretty; }
h1 { font-size: clamp(30px, 5.2vw, 56px); letter-spacing: -.03em; }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 23px); letter-spacing: -.015em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 800px; }

/* Секции ------------------------------------------------------------------ */
section { padding-block: clamp(56px, 8vw, 104px); }
section.tight { padding-block: clamp(40px, 5vw, 64px); }
.surface { background: var(--surface); border-block: 1px solid var(--line); }
.deep { background: #10201F; color: #E9F0F1; border-block: 0; }
.deep h2, .deep h3 { color: #FFFFFF; }
.deep .lead, .deep .muted { color: #A9BCB8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.deep .eyebrow { color: #4FC0B0; }

.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 68ch; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); font-size: 14.5px; }
.money { color: var(--amber); font-variant-numeric: tabular-nums; font-weight: 700; }

/* Кнопки ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal-strong); color: #fff; box-shadow: 0 6px 18px -8px rgba(11, 90, 82, .7); }
.btn-primary:hover { background: #0a4d46; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); background: var(--surface); }
.btn-lg { padding: 16px 28px; font-size: 17px; }
/* На узких экранах nowrap у длинных подписей («Получить бесплатный аудит
   воронки») выталкивал кнопку за край и давал горизонтальный скролл. */
@media (max-width: 460px) {
  .btn-lg { padding: 15px 20px; font-size: 16px; white-space: normal; text-align: center; }
}
.btn-sm { padding: 9px 15px; font-size: 14.5px; }
.deep .btn-ghost { color: #E9F0F1; border-color: rgba(233, 240, 241, .28); }
.deep .btn-ghost:hover { background: rgba(233, 240, 241, .07); color: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Микро-CTA в конце смыслового блока */
.micro-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15.5px; text-decoration: none;
  color: var(--teal); padding: 8px 0;
}
.micro-cta::after { content: "→"; transition: transform .16s ease; }
.micro-cta:hover::after { transform: translateX(4px); }

/* Шапка ------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header[data-scrolled="true"] { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }
.header .container { height: 100%; display: flex; align-items: center; gap: 18px; }

/* Логотип - словесный знак «ИДЕАЛЬНЫЙ ТАКСОПАРК» (assets/img/logo.webp,
   261x90 с прозрачным фоном). Он заменил связку «иконка-воронка + текст»:
   название внутри знака, дублировать его подписью не нужно.
   Задаём только высоту - ширина считается из соотношения сторон. */
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; height: 42px; width: auto; }
@media (max-width: 560px) { .brand-logo { height: 36px; } }
/* в футере знак крупнее - там он единственный носитель названия */
.footer .brand-logo { height: 42px; }

/* Меню: только страницы сайта (калькуляторы, блог) */
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 11px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--line-soft); }
.nav a[aria-current] { color: var(--teal); background: var(--teal-soft); font-weight: 600; }

/* Пункт «Клуб директоров»: уголёк в светлом меню -----------------------------
   Ведёт на /club.html. Приём родился в августе 2026 для акселератора
   «Армагеддон» - тогда единственной страницы в эстетике выжженной пустыни,
   отсюда тёмная плашка, огненный градиент на слове и пламя вместо точки.
   2026-09-29 акселератор стал клубом и перешёл на общую светлую тему, а
   подсветку пункта оставили (ТЗ клуба): теперь это метка «главное сейчас».

   Это ЕДИНСТВЕННОЕ исключение из правила «янтарь только для утечки денег»:
   здесь оранжевый не смысловая метка в тексте, а подпись ссылки в меню.
   Оно работает, пока такой пункт один - появится второй «горячий», и приём
   придётся пересматривать, иначе меню станет радугой.

   Плашка тёмная не ради красоты: огонь на бумажном фоне даёт контраст около
   3:1 и не проходит по доступности, а на почти чёрном - с запасом.

   Слово завёрнуто в <span> сознательно: градиент режется по тексту через
   background-clip, а фон нужен самой ссылке - на одном элементе им не ужиться. */
.nav-hot, .drawer a.nav-hot { font-weight: 700; }
.nav-hot::before {
  content: ""; display: inline-block; vertical-align: -2px; flex: none;
  width: 13px; height: 13px; margin-right: 8px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23F9CE4B'/%3E%3Cstop offset='.5' stop-color='%23F08A1C'/%3E%3Cstop offset='1' stop-color='%23DC4212'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23f)' d='M8 0c3 4 6 6 6 9.6A6 6 0 1 1 2 9.6C2 7.7 3 6.1 4.4 4.8c.1 1.6 1 2.7 2.1 3.1C5.4 5.2 6.2 2.4 8 0z'/%3E%3C/svg%3E");
  animation: ember 2.6s ease-in-out infinite alternate;
}
/* Слово горит: сверху жар, снизу остывающий уголь */
.nav-hot > span {
  background: linear-gradient(180deg, #FBD05A 0%, #F4881A 45%, #E2500F 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@keyframes ember {
  from { opacity: .78; transform: scaleY(.94); }
  to { opacity: 1; transform: scaleY(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-hot::before { animation: none; opacity: 1; }
}

/* Плашка в горизонтальном меню */
.nav a.nav-hot {
  display: flex; align-items: center;
  padding: 7px 13px 7px 11px; border-radius: 999px;
  background: linear-gradient(180deg, #2C1D13, #14100C);
  border: 1px solid rgba(232, 87, 28, .45);
  box-shadow: 0 3px 12px -5px rgba(232, 87, 28, .75);
}
/* Базовый ховер меняет background - здесь он бы стёр плашку, поэтому свой */
.nav a.nav-hot:hover {
  background: linear-gradient(180deg, #3A2618, #1B1410);
  border-color: rgba(232, 87, 28, .8);
  box-shadow: 0 4px 18px -5px rgba(232, 87, 28, .95);
}
/* aria-current на самой странице клуба - teal-подсветку тоже гасим */
.nav a.nav-hot[aria-current] { background: linear-gradient(180deg, #3A2618, #1B1410); }

/* В мобильном меню плашки нет - строки там крупные и идут списком, хватает
   пламени и градиента. Но градиент тут другой, темнее: на плашке жёлтая
   макушка букв читалась поверх почти чёрного, а на бумаге она пропадает. */
.drawer a.nav-hot { display: flex; align-items: center; }
.drawer a.nav-hot::before { width: 15px; height: 15px; vertical-align: -3px; }
.drawer a.nav-hot > span {
  background: linear-gradient(180deg, #E8891A 0%, #C93A0B 55%, #9E2A06 100%);
  -webkit-background-clip: text; background-clip: text;
}

.header-cta { display: none; margin-left: 12px; flex: none; }

.burger {
  margin-left: auto; width: 42px; height: 42px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--ink);
}
.burger span { display: block; width: 17px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .2s ease; }
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 55;
  background: var(--paper); padding: 12px var(--gutter) 32px;
  overflow-y: auto; display: none;
}
.drawer[data-open="true"] { display: block; }
.drawer ul { list-style: none; margin: 0 0 20px; padding: 0; }
.drawer a { display: block; padding: 15px 4px; font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer a[aria-current] { color: var(--teal); }
.drawer .btn { width: 100%; }
body[data-drawer="open"] { overflow: hidden; }

@media (min-width: 1000px) {
  .nav, .header-cta { display: flex; }
  .burger, .drawer { display: none !important; }
}

/* Пятый пункт меню («Мероприятия», с 07.09.2026) добавил ряду около 117px,
   и на узком десктопе он перестал помещаться: при 1000px ряд занимает больше
   доступных 960px, самый длинный пункт сжимается и переносится на вторую
   строку внутри шапки высотой 64px. Полоса 1000-1079px - это 1024px, то есть
   iPad в альбоме и часть ноутбуков, отдавать её бургеру не хочется, поэтому
   там ряд идёт чуть компактнее. nowrap не помогает: вместо переноса он даёт
   горизонтальный скролл. Верхнюю границу мерили, а не считали: в полном
   размере ряд вставал в одну строку с 1080px. 2026-09-29 пункт «Акселератор»
   стал «Клубом директоров» (+4 буквы), и порог уехал к 1093-1096px (разный
   на страницах - у каждой своя кнопка в шапке). Граница поднята до 1119px -
   с запасом на шрифты Windows, которые шире маковских. Мерили по CDP: число
   рядов ссылок .nav a на ширинах 1000-1440, страницы с самой длинной кнопкой. */
@media (min-width: 1000px) and (max-width: 1119px) {
  .header .container { gap: 12px; }
  .nav ul { gap: 0; }
  .nav a { padding-inline: 6px; font-size: 13.5px; }
  .header-cta { margin-left: 4px; padding-inline: 13px; }
}

/* Мобильный sticky-CTA ----------------------------------------------------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: flex; gap: 8px;
  padding: 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateY(140%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.mobile-cta[data-show="true"] { transform: none; }
.mobile-cta .btn { flex: 1; }
.mobile-cta .btn-ghost { flex: 0 0 auto; }
@media (min-width: 1000px) { .mobile-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

/* HERO --------------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(32px, 4vw, 56px); }
/* без max-width: на десктопе заголовок встаёт в одну строку (просьба
   тестировщика), на узких экранах переносится сам */
.hero h1 { margin-bottom: .2em; }
.hero h1 .leak { color: var(--amber); }
/* Перечисление стыков - отдельной строкой под заголовком: одной строкой с h1
   оно читалось хуже (замечание тестировщика). */
.hero-sub {
  margin: 0; font-size: clamp(19px, 2.4vw, 27px); font-weight: 600;
  line-height: 1.25; letter-spacing: -.02em; color: var(--ink-soft); max-width: 26ch;
}
.hero .lead { margin-top: 22px; }
.hero .cta-row { margin-top: 32px; }

/* Цепочка, которую закрывает команда - вынесена из абзаца в отдельную строку */
.chain-line {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
}
.chain-line li {
  position: relative;
  font-size: 14.5px; font-weight: 600; color: var(--teal-strong);
  background: var(--teal-soft); border-radius: 999px; padding: 7px 14px;
}
/* стрелка живёт в промежутке между чипами, а не внутри плашки */
.chain-line li + li::before {
  content: "→"; position: absolute; left: -15px; top: 50%; transform: translateY(-50%);
  color: var(--ink-faint); font-weight: 400;
}
/* На телефоне плашки распадались на три ряда и читались как облако тегов:
   смысл «трафик -> ... -> удержание» пропадал. Поэтому там цепочка идёт
   текстом, а стрелка становится обычным inline-символом между словами. */
@media (max-width: 760px) {
  .chain-line { gap: 4px 0; }
  .chain-line li { background: none; padding: 0; font-size: 13.5px; }
  /* стрелка переезжает в конец предыдущего звена: так она не повисает у левого
     края, когда цепочка переносится на новую строку */
  .chain-line li + li::before { content: none; }
  .chain-line li:not(:last-child)::after { content: "→"; margin: 0 8px; color: var(--ink-faint); }
}

.trust-bar {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px;
}
@media (min-width: 760px) { .trust-bar { grid-template-columns: repeat(4, 1fr); } }
.trust-bar dt { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trust-bar dt.drop { color: var(--danger); } /* снижение цены контакта - красным (запрос заказчика) */
.trust-bar dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.4; }

/* Манифест в hero (заменил визуал-цепочку утечек) -------------------------- */
.hero-manifest {
  margin-top: 36px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--teal); border-radius: var(--radius);
}
.hero-manifest p { margin: 0; font-size: clamp(15.5px, 1.7vw, 17.5px); line-height: 1.6; color: var(--ink-soft); }
.hero-manifest b { color: var(--ink); }

/* Главное УТП и награда ----------------------------------------------------
   Обещание крупным заголовком плюс снимок наградной таблички как
   доказательство. Карточка и teal-полоса слева те же, что у манифеста: два
   блока читаются парой «кто мы» -> «что обещаем». Подпись под фото пишется
   строго по тексту таблички, додумывать формулировки награды нельзя. */
.usp-award {
  display: grid; gap: 18px;
  margin-top: 20px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--teal); border-radius: var(--radius);
}
.usp-text .eyebrow { margin-bottom: 10px; }
.usp-award h2 { margin: 0; font-size: clamp(23px, 2.9vw, 34px); }
/* На телефоне фото встаёт под заголовком (как просил заказчик), с шириной
   экрана снимок и подпись расходятся в две колонки - иначе карточка выходит
   высокой и полупустой. */
.usp-photo { margin: 0; }
.usp-photo img {
  display: block; width: 100%; max-width: 300px; height: auto;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.usp-photo figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-faint); }
.usp-photo figcaption b { display: block; margin-bottom: 3px; font-size: 14.5px; color: var(--ink); }
@media (min-width: 620px) {
  .usp-photo { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
  .usp-photo figcaption { margin-top: 0; font-size: 14.5px; max-width: 54ch; }
  .usp-photo figcaption b { margin-bottom: 5px; font-size: 16px; }
}

/* Тизер команды под манифестом: те же вырезки, что и в секции #team, ростом
   56px. Закрывает пустоту в конце первого экрана и сразу показывает «мы». */
.team-teaser {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  margin-top: 20px; padding: 16px 22px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.team-teaser:hover { color: inherit; border-color: color-mix(in srgb, var(--teal) 34%, var(--line)); box-shadow: var(--shadow); }
.tt-figures { display: flex; align-items: flex-end; gap: 2px; flex: none; }
.tt-figures img { display: block; width: auto; height: 56px; object-fit: contain; }
.tt-text { display: block; flex: 1 1 260px; min-width: 0; }
.tt-text b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.tt-text b::after { content: "→"; color: var(--teal); transition: transform .16s ease; }
.team-teaser:hover .tt-text b::after { transform: translateX(4px); }
.tt-text span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 560px) { .tt-figures img { height: 58px; } }
@media (prefers-reduced-motion: reduce) { .team-teaser, .tt-text b::after { transition: none; } }

/* Мобильная выразительность (2026-08-24) -----------------------------------
   На телефоне страница читалась однотонной лентой: белые карточки на почти
   белом фоне, цифры и манифест тонули в сером, кнопки были разной ширины.
   Здесь собраны правки первого экрана и общего ритма; десктоп они не трогают. */
@media (max-width: 760px) {
  /* фон между секциями заметно отличается от белых .surface-секций */
  :root { --paper: #EBF0F1; }

  /* trust-bar - главное доказательство первого экрана: собираем его в карточку
     с разделителями, цифры крупнее */
  .trust-bar {
    margin-top: 30px; padding: 4px 14px; border-top: 0; gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  }
  .trust-bar > div { padding: 14px 10px; }
  .trust-bar > div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .trust-bar > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .trust-bar dt { font-size: 25px; }
  .trust-bar > div:last-child dt { font-size: 19px; }
  .trust-bar dd { font-size: 13.5px; }

  /* стена мелкого текста -> «первая фраза + пояснение» */
  .hero-manifest { padding: 18px; border-left-width: 4px; }
  .hero-manifest p { font-size: 15px; }
  .hero-manifest b { display: block; margin-bottom: 8px; font-size: 17.5px; line-height: 1.35; }
}

@media (max-width: 560px) {
  .hero { padding-top: 28px; }
  /* две кнопки разной ширины выглядели случайно - на телефоне обе во всю ширину */
  .hero .cta-row { gap: 10px; }
  .hero .cta-row .btn { width: 100%; }
}

/* Что мы делаем: перечень услуг плитками --------------------------------- */
.service-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 620px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .service-grid { grid-template-columns: repeat(5, 1fr); } }
.service-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; display: flex; flex-direction: column; gap: 8px;
}
.service-tile .ico { width: 26px; height: 26px; color: var(--teal); flex: none; }
.service-tile b { font-size: 15.5px; line-height: 1.3; }
.service-tile span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* Блок болей: три группы по типу боли, внутри группы - сетка 1/2 колонки.
   Раньше девять карточек с разными тегами шли вперемешку и читались как
   случайный список; тег переехал из карточки в заголовок группы. */
.pain-groups { display: grid; gap: 34px; margin-top: 40px; }
/* группа - вложенный <section>, гасим у него отступы верхнеуровневых секций */
.pain-group { padding-block: 0; }
.pain-group > h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px;
}
.pain-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }

.pain {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.pain q {
  font-size: 16.5px; font-weight: 600; line-height: 1.45; quotes: "«" "»";
  letter-spacing: -.01em;
}
.pain .note { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
/* Тег типа боли: теперь стоит в заголовке группы, а не в каждой карточке */
.pain-group .tag {
  flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber); background: var(--amber-soft); padding: 4px 9px; border-radius: 999px;
}

/* Рефрейм ------------------------------------------------------------------ */
.reframe-strike { color: var(--ink-faint); text-decoration: line-through; text-decoration-thickness: 2px; }

.metric-card {
  margin-top: 36px; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--amber); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow); max-width: 780px;
}
/* Рефрейм: две колонки, карточка метрики справа. Раньше правая половина
   пустовала, а формула была моноширинным текстом. */
.reframe-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 940px) { .reframe-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.reframe-grid > * { min-width: 0; }
.reframe-grid .metric-card { margin-top: 0; }

/* Схема формулы вместо строки кода: коробки и знаки операций. */
.formula-visual { margin-top: 16px; display: grid; gap: 8px; justify-items: start; }
.fv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fv-box {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 9px 13px; font-size: 14.5px; line-height: 1.35; color: var(--ink);
}
.fv-op { font: 700 17px var(--mono); color: var(--ink-faint); }
.fv-op-row { padding-left: 4px; }
.fv-eq, .fv-total { margin: 2px 0; font-size: 15px; color: var(--ink-soft); }
.fv-eq b { color: var(--ink); font-weight: 600; }
.fv-total { font-size: 16px; color: var(--ink); font-weight: 600; }
.fv-total b { color: var(--amber); }

/* Этапы решений ------------------------------------------------------------ */
.stages { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 860px) { .stages { grid-template-columns: repeat(2, 1fr); } }

.stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.stage-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.stage-idx { font: 700 12px var(--mono); color: var(--teal); background: var(--teal-soft); padding: 4px 8px; border-radius: 6px; flex: none; }
.stage-accent { margin-left: auto; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.stage h3 { margin: 0; }
.stage .job { font-size: 13.5px; color: var(--ink-faint); margin: 2px 0 16px; }

/* Крупная цифра-результат этапа: «быстрая информация» вместо абзаца */
.stage-kpi {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 0 0 18px; padding: 12px 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.stage-kpi b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--teal-strong); font-variant-numeric: tabular-nums; }
.stage-kpi span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; flex: 1 1 160px; }

/* Полный текст боли и работ - под спойлером: ничего не потеряно, но по
   умолчанию карточка читается за несколько секунд. */
.stage-more { margin-top: 16px; }
.stage-more summary {
  cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--teal);
  display: inline-flex; align-items: center; gap: 7px;
}
.stage-more summary::-webkit-details-marker { display: none; }
.stage-more summary::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .16s ease;
}
.stage-more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.stage-more p { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .stage-more summary::after { transition: none; } }

.stage dl { margin: 0; display: grid; gap: 14px; }
.stage dt { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
.stage dd { margin: 0; font-size: 15.5px; line-height: 1.55; }
.stage dd.pain-line { color: var(--ink-soft); }
.stage dd.pain-line b { color: var(--amber); font-weight: 600; }
.stage dd.gain-line b { color: var(--teal); font-weight: 600; }
/* «Что делаем» - главная строка карточки: единственная плашка, teal = система */
.stage dl > div.do { background: var(--teal-soft); border-radius: var(--radius-sm); padding: 12px 16px; }
.stage .do dt { color: var(--teal-strong); }
/* CTA прибит к низу карточки: у всех шести этапов ссылка стоит на одной
   линии, а не плавает по высоте вслед за длиной текста. */
.stage .micro-cta { margin-top: auto; padding-top: 20px; align-self: flex-start; }

/* Продуктовая линейка ------------------------------------------------------ */
.packages { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 900px) { .packages { grid-template-columns: repeat(3, 1fr); } }
.package {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
/* средняя ступень - та, с которой чаще всего начинают после диагностики */
.package.is-featured { border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); box-shadow: var(--shadow-lg); }
.pkg-step { font: 700 11px var(--mono); color: var(--teal); letter-spacing: .08em; text-transform: uppercase; }
.package h3 { font-size: 21px; margin: 10px 0 6px; }
.pkg-lead { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.pkg-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.pkg-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.pkg-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--teal);
}
.pkg-meta { margin: 20px 0 0; display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.pkg-meta dt { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
.pkg-meta dd { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }
.package .micro-cta { margin-top: auto; padding-top: 22px; align-self: flex-start; }

/* Команда - линейка «выбор бойца» ------------------------------------------ */
/* Фигуры - вырезки с прозрачным фоном. По умолчанию тёмный силуэт (filter),
   при наведении/фокусе или data-open фигура «оживает» и появляется поповер.
   Состав функций filter в обоих состояниях одинаковый - иначе нет анимации.

   Наведение считает app.js по альфе картинки (data-active), а не CSS :hover:
   курсор должен ловить именно контур человека, а не прозрачные углы кадра.
   Пока скрипт не разметил ряд (нет data-hit-test) - работает CSS-фолбэк. */
.fighter-row {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(6px, 1.6vw, 22px); position: relative;
}
/* линия пола на уровне ступней (имена стоят ниже линии) */
.fighter-row::before {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 34px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.fighter { position: relative; }
/* «Рука» - только когда курсор на контуре (data-active ставит app.js по альфе);
   без хит-теста работает старым способом - на всей рамке картинки. */
.fighter-btn {
  display: block; position: relative; padding: 0; border: 0; background: none;
  font: inherit; cursor: default; text-align: center; -webkit-tap-highlight-color: transparent;
}
.fighter[data-active="true"] .fighter-btn,
.fighter-row:not([data-hit-test]) .fighter-btn { cursor: pointer; }
/* эллипс-тень под ступнями */
.fighter-btn::before {
  content: ""; position: absolute; left: 50%; bottom: 30px; width: 72%; height: 12px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(22, 36, 43, .16), transparent 70%);
}
.fighter-img {
  display: block; margin-inline: auto; position: relative;
  height: clamp(190px, 25vw, 380px); width: auto;
  filter: grayscale(1) brightness(.16) drop-shadow(0 0 0 rgba(14, 117, 106, 0));
  transition: filter .35s ease;
}
.fighter-name {
  display: block; margin-top: 10px; font-weight: 700; font-size: 15px;
  color: var(--ink-soft); transition: color .2s ease;
}
/* Поповер стоит рядом с фигурой, не наезжая на неё, и НЕ ловит курсор:
   под ним - соседние фигуры, и наведение на них должно работать сквозь текст. */
.fighter-pop {
  position: absolute; z-index: 3; top: 4%; left: calc(100% + 16px);
  width: min(280px, 42vw); pointer-events: none;
  background: #10201F; color: #fff; border-radius: 10px; padding: 14px 16px;
  font-size: 13.5px; line-height: 1.5; box-shadow: var(--shadow-lg); text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
/* правой половине ряда поповер уводим влево - иначе уедет за край экрана */
.fighter:nth-child(n+5) .fighter-pop { left: auto; right: calc(100% + 16px); }
.fighter-pop h3 { font-size: 15px; color: #fff; margin: 0 0 2px; }
.fighter-role {
  color: #4FC0B0; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px;
}
.fighter-pop p { margin: 0; color: #A9BCB8; }
.fighter-pop p + p { margin-top: 6px; }

/* «Живое» состояние: data-open - пин по клику, data-active - курсор на контуре
   (оба ставит app.js), :focus-within - клавиатура. */
.fighter[data-open="true"], .fighter[data-active="true"], .fighter:focus-within { z-index: 2; }
.fighter[data-open="true"] .fighter-img,
.fighter[data-active="true"] .fighter-img,
.fighter:focus-within .fighter-img {
  filter: grayscale(0) brightness(1) drop-shadow(0 14px 30px rgba(14, 117, 106, .35));
}
.fighter[data-open="true"] .fighter-name,
.fighter[data-active="true"] .fighter-name,
.fighter:focus-within .fighter-name { color: var(--teal-strong); }
.fighter[data-open="true"] .fighter-pop,
.fighter[data-active="true"] .fighter-pop,
.fighter:focus-within .fighter-pop {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}

/* фолбэк на чистом CSS, пока (или если) app.js не взял ряд под свой хит-тест */
@media (hover: hover) {
  .fighter-row:not([data-hit-test]) .fighter:hover { z-index: 2; }
  .fighter-row:not([data-hit-test]) .fighter:hover .fighter-img {
    filter: grayscale(0) brightness(1) drop-shadow(0 14px 30px rgba(14, 117, 106, .35));
  }
  .fighter-row:not([data-hit-test]) .fighter:hover .fighter-name { color: var(--teal-strong); }
  .fighter-row:not([data-hit-test]) .fighter:hover .fighter-pop {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fighter-img, .fighter-name, .fighter-pop { transition: none; }
}

/* мобильный: карточки - цветная миниатюра + текст, всё видно без ховера */
@media (max-width: 700px) {
  .fighter-row { display: grid; gap: 14px; margin-top: 32px; }
  .fighter-row::before { content: none; }
  .fighter {
    display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
  }
  .fighter-btn { pointer-events: none; cursor: default; }
  .fighter-btn::before { content: none; }
  .fighter-img { height: 132px; filter: none; }
  .fighter-name { display: none; } /* имя даёт заголовок карточки */
  .fighter-pop {
    position: static; width: auto; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; padding: 0; font-size: 14px;
    pointer-events: auto; /* в карточке текст ничего не перекрывает - даём выделять */
  }
  .fighter-pop h3 { color: var(--ink); font-size: 16.5px; }
  .fighter-role { color: var(--teal); }
  .fighter-pop p { color: var(--ink-soft); }
}

/* Форма аудита ------------------------------------------------------------- */
.audit-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 980px) { .audit-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }

.gets { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.gets li { display: flex; gap: 13px; align-items: flex-start; }
.gets .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-strong); display: grid; place-items: center; font: 700 13px var(--mono); }
.gets b { display: block; font-weight: 600; }
.gets span { color: var(--ink-soft); font-size: 15px; }

/* Плашка-гарантия J8 «безопасная смена подрядчика» */
.guarantee {
  margin-top: 32px; background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 22%, transparent);
  border-radius: var(--radius); padding: 22px 24px;
}
.guarantee h3 { font-size: 16.5px; color: var(--teal-strong); display: flex; align-items: center; gap: 9px; }
.guarantee .ico { width: 19px; height: 19px; flex: none; }
.guarantee ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--surface);
  border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft);
}
.field .err { display: none; margin-top: 6px; font-size: 13.5px; color: var(--danger); font-weight: 500; }
.field input[aria-invalid="true"] ~ .err { display: block; }

/* Согласие на обработку данных - галочка + подсказка под ней */
/* Галочка выровнена по первой строке подписи, а не висит над ней.
   Подпись забирает весь остаток строки (flex: 1 1 0), поэтому под галочку
   не переносится, а ошибка и подсказка (flex-basis: 100%) уходят строкой ниже.
   До 2026-09-29 здесь стоял nowrap: он не пускал их на новую строку, и подсказка
   сжималась узкой колонкой справа от подписи - на телефоне в пять строк. */
.field-consent { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.field-consent input[type="checkbox"] { width: 16px; height: 16px; flex: none; margin: 2px 0 0; accent-color: var(--teal); }
.field-consent label { flex: 1 1 0; min-width: 0; font-weight: 400; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 0; }
.field-consent input[type="checkbox"][aria-invalid="true"] {
  outline: 2px solid var(--danger); outline-offset: 2px; box-shadow: none; accent-color: var(--danger);
}
.field-consent .err { flex-basis: 100%; margin-top: 2px; }
/* Мелкая подсказка под полем. Живёт не только под галочкой согласия:
   такой же строкой подписаны необязательные поля (ник в Telegram на странице
   мероприятия). Раньше типографика была прибита к .field-consent, и вне
   галочки подсказка рисовалась обычным текстом в полный размер. */
.consent-note { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-faint); }
/* Внутри галочки занимает всю ширину и отбита влево на размер чекбокса,
   чтобы читалась как продолжение подписи. */
.field-consent .consent-note { flex-basis: 100%; margin-left: 26px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-card .btn { width: 100%; margin-top: 6px; }
.form-card .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--ink-faint); text-align: center; line-height: 1.5; }
.form-error {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  color: #7A4310; font-size: 14.5px; line-height: 1.5;
}

/* Honeypot: убираем из потока, но не через display:none - часть ботов её распознаёт */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Telegram-прогрев --------------------------------------------------------- */
.magnets { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 700px) { .magnets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .magnets { grid-template-columns: repeat(4, 1fr); } }
.magnet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.magnet h3 { font-size: 16.5px; margin: 0 0 8px; }
.magnet p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
/* Секция прогрева идёт на тёмном фоне (.deep) - это единственный контрастный
   экран страницы, он же разбивает светлую ленту на телефоне. */
.deep .magnet { background: rgba(233, 240, 241, .05); border-color: rgba(233, 240, 241, .16); box-shadow: none; }
.deep .magnet p { color: #A9BCB8; }
.deep .btn-primary { background: #F4FBFA; color: var(--teal-strong); box-shadow: none; }
.deep .btn-primary:hover { background: #fff; color: var(--teal-strong); }

/* Точки входа: блог и калькулятор ------------------------------------------ */
.entries { display: grid; gap: 16px; }
@media (min-width: 800px) { .entries { grid-template-columns: repeat(2, 1fr); } }
/* .four - четыре точки входа в ряд на широком экране; на 800-1039px они
   остаются в две колонки (2x2), что как раз ровно делится. */
@media (min-width: 1040px) { .entries.four { grid-template-columns: repeat(4, 1fr); } }
.entry {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.entry:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--teal) 30%, var(--line)); color: inherit; }
.entry h3 { display: flex; align-items: center; gap: 10px; }
.entry h3::after { content: "→"; color: var(--teal); transition: transform .16s ease; }
.entry:hover h3::after { transform: translateX(4px); }
.entry p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Финальный CTA и футер ---------------------------------------------------- */
.final { text-align: center; }
/* 18ch ломало заголовок на три рваные строки - расширено, строки балансируются */
.final h2 { max-width: 46ch; margin-inline: auto; }
.final .lead { max-width: 62ch; margin-inline: auto; text-wrap: balance; }
.final .cta-row { justify-content: center; margin-top: 30px; }

.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 52px 32px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--teal); }
.footer .about p { font-size: 14.5px; color: var(--ink-soft); max-width: 40ch; margin-top: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer-bottom p { margin: 0; font-size: 13.5px; color: var(--ink-faint); }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-contacts a { color: var(--ink-soft); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.footer-contacts a:hover { color: var(--teal); }

/* Появление секций при скролле --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal[data-visible="true"] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Калькулятор потерь -------------------------------------------------------- */
.page-head { padding-block: clamp(40px, 5vw, 68px) 0; }
.page-head h1 { max-width: 20ch; }
.crumbs { font-size: 14px; color: var(--ink-faint); margin-bottom: 18px; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }

/* Ячейки тянутся на всю высоту ряда: тёмная сводка равна форме ввода. */
.calc-grid { display: grid; gap: 28px; align-items: stretch; margin-top: 44px; }
.calc-grid > * { min-width: 0; }
@media (min-width: 980px) { .calc-grid { grid-template-columns: 1fr 1fr; gap: 44px; } }

/* Детальный расчёт под сеткой - на всю ширину контейнера. */
.calc-summary { margin-top: 28px; }
@media (min-width: 980px) {
  .calc-summary { margin-top: 44px; }
  .calc-summary .result-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .calc-summary .result-row.hi { grid-column: 1 / -1; }
}

/* Разбивка бюджета: раздать стоящие машины (teal) против перекрытия оттока (amber). */
.split-title { font-size: 15px; margin-top: 24px; }
.budget-split { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 720px) { .budget-split { grid-template-columns: 1fr 1fr; gap: 16px; } }
.split-item { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius-sm); padding: 16px 18px; }
.split-item.t-churn { border-left-color: var(--amber); }
.split-item .s-title { font-size: 14.5px; font-weight: 600; }
.split-item .s-num { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.split-item .s-num b { font: 700 19px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.split-item.t-churn .s-num b { color: var(--amber); }
.split-item .s-sub { margin-top: 2px; font-size: 13.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.split-item .s-note { margin-top: 8px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.45; }

.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }

.calc-field { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.calc-field:last-child { border-bottom: 0; padding-bottom: 0; }
.calc-field > label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.calc-field .hint { font-size: 13px; color: var(--ink-faint); margin-bottom: 12px; line-height: 1.45; }
.calc-controls { display: flex; align-items: center; gap: 14px; }
.calc-controls input[type="range"] { flex: 1; accent-color: var(--teal); min-width: 0; }
.calc-controls .num { display: flex; align-items: center; gap: 6px; flex: none; }
.calc-controls input[type="number"] {
  width: 92px; padding: 9px 10px; font: 600 15px var(--mono); text-align: right;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}
.calc-controls input[type="number"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.calc-controls .unit { font-size: 13.5px; color: var(--ink-faint); width: 46px; }

/* Колонка: при растяжении по высоте формы полоса с легендой прижимаются к низу. */
.result-hero { display: flex; flex-direction: column; background: #10201F; color: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.result-hero .lbl { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8FA5A1; }
.result-hero .big { font-size: clamp(34px, 5.4vw, 54px); font-weight: 700; letter-spacing: -.03em; color: #E0975A; font-variant-numeric: tabular-nums; margin-top: 8px; line-height: 1.05; }
.result-hero .big small { font-size: .42em; font-weight: 600; letter-spacing: -.01em; color: #A9BCB8; margin-left: 6px; }
.result-hero .sub { margin-top: 12px; font-size: 15px; color: #A9BCB8; }
.result-hero .sub b { color: #fff; font-variant-numeric: tabular-nums; }

.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin-top: 24px; background: rgba(255, 255, 255, .1); }
.result-hero .bar { margin-top: auto; }
.result-hero .sub:last-of-type { margin-bottom: 24px; }
.bar i { display: block; height: 100%; transition: width .28s ease; }
.bar .i-idle { background: #E0975A; }
.bar .i-churn { background: #4FC0B0; }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }
.bar-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; font-size: 13.5px; color: #A9BCB8; }
/* Только ПРЯМОЙ потомок: раньше `.bar-legend span` цеплял и вложенный
   <span> с числом, делал его flex-боксом на всю строку - и «₽/мес»
   уезжало на следующую строку. Пункт легенды не сжимается и не рвётся. */
.bar-legend > span { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; white-space: nowrap; }
.bar-legend .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
/* nowrap: иначе «₽/мес» отрывается от числа и уезжает на новую строку */
/* flex: none - иначе число сжимается как flex-элемент и «₽/мес» уезжает вниз */
.bar-legend b { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }

.result-rows { margin-top: 22px; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.result-row:last-child { border-bottom: 0; }
.result-row .k { font-size: 15px; color: var(--ink-soft); }
.result-row .v { font: 700 17px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-row.hi .k { color: var(--ink); font-weight: 600; }
.result-row.hi .v { color: var(--amber); font-size: 19px; }

.formula-box { margin-top: 24px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.formula-box > summary {
  cursor: pointer; list-style: none; font-size: 15px; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.formula-box > summary::-webkit-details-marker { display: none; }
.formula-box > summary::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-2px) rotate(45deg); transition: transform .16s ease;
}
.formula-box[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.formula-box[open] > summary { margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .formula-box > summary::after { transition: none; } }
.formula-box code { display: block; font-family: var(--mono); font-size: 13.5px; line-height: 2; color: var(--ink-soft); white-space: pre-wrap; }
.formula-box code b { color: var(--amber); font-weight: 600; }

/* Рычаг конверсии: teal-панель «сколько экономит +1 п.п.».
   Teal, а не янтарь: это выигрыш и эффективность, а не утечка. */
.conv-lever { margin-top: 22px; background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 22%, transparent); border-left: 3px solid var(--teal); border-radius: var(--radius-sm); padding: 18px 20px; }
.conv-lever .cl-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--teal); }
.conv-lever .cl-big { margin-top: 7px; font-size: clamp(17px, 2.2vw, 21px); font-weight: 500; letter-spacing: -.02em; color: var(--teal-strong); line-height: 1.4; }
.conv-lever .cl-big b { font-weight: 700; }
.conv-lever .cl-save { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.conv-lever .cl-txt { margin-top: 11px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; font-variant-numeric: tabular-nums; }
.conv-lever .cl-tie { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* Калькулятор потерь: компактная форма.
   Подпись и число в одной строке, ползунок под ними, короткая подсказка снизу;
   парные поля («выдаёте/возвращают», «заявка/конверсия») делят один ряд. */
.lcalc .calc-field { padding: 11px 0; }
.lcalc .f-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lcalc .f-top label { font-size: 14.5px; font-weight: 600; }
.lcalc .num { display: flex; align-items: center; gap: 6px; flex: none; }
.lcalc .num input[type="number"] {
  width: 84px; padding: 7px 9px; font: 600 14.5px var(--mono); text-align: right;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}
.lcalc .num input[type="number"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.lcalc .num .unit { font-size: 13px; color: var(--ink-faint); min-width: 22px; }
.lcalc input[type="range"] { display: block; width: 100%; margin-top: 8px; accent-color: var(--teal); }
.lcalc .hint { font-size: 12.5px; margin: 5px 0 0; }
.lcalc .calc-pair { display: grid; gap: 0 26px; border-bottom: 1px solid var(--line-soft); }
.lcalc .calc-pair .calc-field { border-bottom: 0; padding-bottom: 11px; }
@media (min-width: 620px) { .lcalc .calc-pair { grid-template-columns: 1fr 1fr; } }
.lcalc > :last-child { border-bottom: 0; }
.lcalc > :last-child .calc-field:last-child { padding-bottom: 0; }

/* Блог ---------------------------------------------------------------------- */
.post-list { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 860px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.post:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--teal) 30%, var(--line)); color: inherit; }
.post .cluster { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); }
.post h3 { margin: 0; font-size: 19px; }
.post p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.post .soon { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ink-faint); }
/* «Последние статьи»: три в ряд, без дека - блок для беглого взгляда, а не для чтения. */
.post-list.latest { margin-top: 24px; }
@media (min-width: 860px) { .post-list.latest { grid-template-columns: repeat(3, 1fr); } }
.post .when { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ink-faint); }
.post[aria-disabled="true"] { opacity: .72; pointer-events: none; }

/* Анонсы презентаций (webinar-uderzhanie.html, zagruzka-taksoparka.html):
   тёмные карточки в палитре talk.css - «ночной парк», бирюза. Выделены, чтобы
   на них нажимали (решение Дмитрия 22.09.2026). Какие статьи выделять - словарь
   PRESENTATIONS в articles/build.py. Цвета заданы явно, а не токенами: токены
   сайта светлые, а карточка должна быть тёмной и на светлой странице. */
.talks-lead { margin: 8px 0 0; color: var(--ink-soft); max-width: 60ch; }
.post-list.talks { margin-top: 24px; }
.talk-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #06201C; background: #3CC2B0; border-radius: 999px; padding: 3px 10px; line-height: 1.3;
}
.post .cluster .talk-badge { margin-left: 10px; vertical-align: 1px; }
.talk-go { font-size: 15px; font-weight: 650; color: #3CC2B0; }

.talk-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; overflow: hidden; border-radius: var(--radius); text-decoration: none;
  background: #0F1A1C; color: #EDF2F0; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.talk-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.talk-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 18, 20, .97) 10%, rgba(10, 18, 20, .6) 50%, rgba(10, 18, 20, .08) 88%);
}
.talk-card-body { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: start; padding: 26px 26px 24px; }
.talk-card h3 { margin: 4px 0 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.talk-card-sub { font-size: 15.5px; color: #C1CECB; }
.talk-card .talk-go { margin-top: 6px; }
.talk-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #EDF2F0; }
.talk-card:hover img { transform: scale(1.03); }
.talk-card:focus-visible { outline: 3px solid #3CC2B0; outline-offset: 3px; }

.post.is-talk { background: #0F1A1C; border-color: #0F1A1C; color: #EDF2F0; }
.post.is-talk h3 { color: #fff; }
.post.is-talk p, .post.is-talk .when { color: #A7B6B3; }
.post.is-talk .cluster { color: #3CC2B0; }
.post.is-talk:hover { border-color: #3CC2B0; color: #EDF2F0; }

/* Баннер над текстом статьи-анонса */
.talk-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  max-width: 74ch; margin-bottom: 34px; padding: 20px 24px; text-decoration: none;
  background: #0F1A1C; color: #EDF2F0; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.talk-banner-text { display: grid; gap: 5px; justify-items: start; }
.talk-banner b { font-size: 20px; color: #fff; letter-spacing: -.01em; }
.talk-banner-text > span:last-child { font-size: 14px; color: #A7B6B3; }
.talk-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #EDF2F0; }
.talk-banner:focus-visible { outline: 3px solid #3CC2B0; outline-offset: 3px; }
@media (max-width: 700px) {
  .talk-banner { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .talk-card { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .talk-card, .talk-card img, .talk-banner { transition: none; }
}

/* Служебные страницы -------------------------------------------------------- */
.centered { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.centered .inner { max-width: 620px; }
.centered .icon { width: 64px; height: 64px; margin: 0 auto 24px; color: var(--teal); }
.prose { max-width: 74ch; }
.prose h2 { margin-top: 40px; font-size: clamp(21px, 2.2vw, 26px); }
.prose h3 { margin-top: 28px; font-size: clamp(18px, 1.9vw, 21px); }
.prose ul { color: var(--ink-soft); padding-left: 22px; line-height: 1.8; }
.prose figure { margin: 28px 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-faint); }

/* Калькулятор доходности ---------------------------------------------------- */

/* Вкладки параметров */
.tabs {
  display: flex; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain;
  border-bottom: 1px solid var(--line); margin-bottom: 6px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; appearance: none; background: transparent; border: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 10px 13px; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink-faint); cursor: pointer; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--teal); border-bottom-color: var(--teal); }

.pcalc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-field.bare { padding: 16px 0; }
.group-label { display: block; padding: 0; font-size: 15px; font-weight: 600; margin-bottom: 3px; }

.radios { display: grid; gap: 11px; margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--teal); }
.calc-field > label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.calc-field > label.check + .hint { margin-top: 6px; }

.warn {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  color: #7A4310; font-size: 13.5px; line-height: 1.5;
}

/* Поля: единицы бывают длинные («маш/чел»), пара полей встаёт в один ряд */
.pcalc .calc-controls input[type="number"] { width: 104px; }
.pcalc .calc-controls .unit { width: auto; min-width: 30px; white-space: nowrap; }
.calc-controls.two { flex-wrap: wrap; gap: 12px 18px; }

.park-off { opacity: .45; }

/* Форма компактнее: поля в 2-3 колонки, чтобы блок ввода помещался на один
   экран. Разделители-подчёркивания в сетке не работают - вместо них воздух. */
.pcalc .tab-panel { display: grid; grid-template-columns: 1fr; gap: 0 34px; align-items: start; }
.pcalc .tab-panel[hidden] { display: none; }
.pcalc .calc-field, .pcalc .calc-field.bare { padding: 10px 0; border-bottom: 0; }
.pcalc .calc-field .hint { margin-bottom: 8px; }
#park-fields { display: grid; grid-template-columns: inherit; gap: inherit; grid-column: 1 / -1; }
#panel-park > .calc-field:first-child { grid-column: 1 / -1; }
@media (min-width: 720px) { .pcalc .tab-panel { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pcalc .tab-panel { grid-template-columns: repeat(3, 1fr); } }

/* Полоса-резюме */
.scope-note {
  margin: 34px 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-faint);
}
.kpi-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.kpi .v { font-size: clamp(21px, 2.1vw, 27px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .l { margin-top: 9px; font-size: 14px; font-weight: 600; }
.kpi .s { margin-top: 3px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.4; }
.kpi.pos { border-left-color: var(--teal); }
.kpi.pos .v { color: var(--teal); }
.kpi.neg { border-left-color: var(--amber); }
.kpi.neg .v { color: var(--amber); }

/* График накопленного потока */
.chart-fig { margin: 30px 0 0; }
.chart-wrap {
  position: relative; min-height: 260px; padding: 10px 0 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chart { display: block; width: 100%; height: auto; }
/* у SVG-элементов атрибут hidden сам по себе не работает - он из HTML */
.chart [hidden] { display: none; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
/* ноль левой оси - чёрный и заметный: от него читается «в минусе или в плюсе» */
.chart .axis-zero { stroke: var(--ink); stroke-width: 1.5; }
.chart .marker { stroke: var(--ink-faint); stroke-width: 1; opacity: .45; }
.chart .tick { font: 500 12px var(--sans); fill: var(--ink-faint); }
.chart .axis-cap { font: 600 11px var(--sans); fill: var(--ink-faint); letter-spacing: .05em; }
/* цвет несут точки и столбики, подписи остаются чернильными - иначе не хватает
   контраста. Ореол цвета фона держит текст читаемым поверх линии и столбиков */
.chart .note { font: 600 12px var(--sans); fill: var(--ink-faint); }
.chart .label { font: 600 12.5px var(--sans); fill: var(--ink); }
.chart .label, .chart .note, .chart .axis-cap { paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; }
.chart .flow-pos, .chart .flow-neg { fill: none; stroke-width: 7.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .flow-pos { stroke: var(--teal); }
.chart .flow-neg { stroke: var(--amber); }
.chart .pt { stroke: var(--surface); stroke-width: 2; }
.chart .pt.pos { fill: var(--teal); }
.chart .pt.neg { fill: var(--amber); }
/* Колонки месяцев полупрозрачные, чтобы линия накопленного потока оставалась
   главной. Класс именно `col`: `.bar` занят полосой калькулятора потерь, и его
   CSS height перебил бы атрибут height SVG-прямоугольника (колонки стали бы
   квадратиками). */
.chart .col { opacity: .42; }
.chart .cut { opacity: .85; }
.chart .col.inc, .chart .cut.inc { fill: var(--teal); }
.chart .col.exp, .chart .cut.exp { fill: var(--amber); }
.chart .band { fill: var(--ink); opacity: .05; }
.chart .cross { stroke: var(--ink-faint); stroke-width: 1; opacity: .45; }
.chart .cursor { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.chart .cursor.neg { fill: var(--amber); }
.chart #hit { cursor: crosshair; }

/* Легенда графика: три ряда данных, значит цвет не единственный ключ */
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 10px; font-size: 13px; color: var(--ink-soft); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.sw.inc { background: var(--teal); }
.sw.exp { background: var(--amber); }
/* свотч линии: янтарь в минусе переходит в teal в плюсе - как сама линия */
.sw.cum { width: 18px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--amber) 40%, var(--teal) 60%); }
/* свотчи столбиков в легенде такие же полупрозрачные, как столбики на графике */
.chart-legend .sw.inc, .chart-legend .sw.exp { opacity: .5; }

.chart-tip {
  position: absolute; z-index: 2; pointer-events: none; top: 8px; width: 246px;
  background: #10201F; color: #fff; border-radius: 10px; padding: 11px 13px;
  font-size: 12px; line-height: 1.45; box-shadow: var(--shadow-lg);
}
.chart-tip.flip { transform: translateX(-100%); }
.chart-tip .tip-head { font-weight: 700; font-size: 12.5px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid rgba(233, 240, 241, .16); }
.chart-tip .tip-sum, .chart-tip .tip-row, .chart-tip .tip-total {
  display: flex; align-items: baseline; gap: 8px; padding: 2px 0;
}
.chart-tip .tip-sum { font-weight: 700; margin-top: 5px; }
.chart-tip .tip-sum .sw { margin-right: -2px; }
.chart-tip .tip-row { color: #A9BCB8; padding-left: 19px; font-size: 11.5px; }
.chart-tip span { flex: 1; }
.chart-tip b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.chart-tip .tip-total { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(233, 240, 241, .16); }
.chart-tip .tip-total + .tip-total { margin-top: 0; padding-top: 2px; border-top: 0; }
.chart-tip .tip-total b.pos { color: #4FC0B0; }
.chart-tip .tip-total b.neg { color: #E0975A; }
.chart-fig figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-faint); line-height: 1.55; max-width: 78ch; }

@media (max-width: 520px) { .chart-tip { width: 205px; font-size: 11.5px; } }

/* Таблицы потока */
.table-title { margin-top: 44px; font-size: clamp(19px, 2vw, 23px); }
.table-wrap {
  overflow-x: auto; overscroll-behavior-x: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.flow { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.flow th, .flow td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.flow thead th { background: var(--surface-2); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-faint); text-align: right; }
.flow thead th small { font-weight: 500; letter-spacing: 0; }
.flow tbody th { text-align: left; font-weight: 500; color: var(--ink-soft); }
.flow td { text-align: right; font-variant-numeric: tabular-nums; }
.flow td.neg { color: #7A4310; }
.flow tr.strong th { color: var(--ink); font-weight: 700; }
.flow tr.strong td { font-weight: 700; }
.flow tbody tr:last-child th, .flow tbody tr:last-child td { border-bottom: 0; }
/* первая колонка не должна уезжать при горизонтальном скролле */
.flow thead th:first-child, .flow tbody th {
  position: sticky; left: 0; z-index: 1; text-align: left;
  box-shadow: 1px 0 0 var(--line-soft);
}
.flow thead th:first-child { background: var(--surface-2); }
.flow tbody th { background: var(--surface); }

#months-details { margin-top: 24px; }
#months-details summary { cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--teal); padding: 10px 0; }
#months-details[open] summary { margin-bottom: 12px; }

.assumptions { margin: 12px 0 0; padding-left: 22px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }
.assumptions li { margin-bottom: 6px; }

/* Три точки входа вместо двух */
@media (min-width: 1040px) { .entries.three { grid-template-columns: repeat(3, 1fr); } }

/* Клуб директоров (club.html) ----------------------------------------------
   Страница клуба (с 2026-09-29, сменила акселератор «Армагеддон») живёт на
   общей светлой теме: своей темы у неё нет, здесь только её блоки. Акцент -
   teal; янтарь по правилу сайта только для утечки денег, тут его нет. */

/* Фото-вставки: скругление и тень как у карточек, кадр режется object-fit */
.club-photo {
  margin: 0; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: var(--radius); background: var(--line-soft); box-shadow: var(--shadow);
}
.club-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Hero: текст слева, кадр справа во всю высоту текста. На телефоне кадр
   уходит под текст - первый экран должен показывать заголовок, а не фото. */
.club-hero { padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(48px, 6vw, 80px); }
.club-hero-grid { display: grid; gap: 32px; }
.club-hero h1 { margin-bottom: .3em; }
.club-hero .cta-row { margin-top: 30px; }
/* как на главной: две кнопки разной ширины на телефоне выглядят случайно */
@media (max-width: 560px) {
  .club-hero { padding-top: 28px; }
  .club-hero .cta-row { gap: 10px; }
  .club-hero .cta-row .btn { width: 100%; }
}
/* Строка-предыстория под кнопками: откуда взялся клуб */
.club-origin {
  margin: 26px 0 0; padding-left: 14px; border-left: 3px solid var(--teal);
  font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch;
}

/* Факты: карточки с автоколонками. В hero - 2x2, в «Кто ведёт» - три в ряд,
   на 375px - столбиком (карточка уже 420px не делится на две по 210). */
.club-facts {
  display: grid; gap: 10px; margin: 30px 0 0; padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.club-facts > div {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.surface .club-facts > div { background: var(--paper); }
.club-facts dt { font-size: clamp(18px, 1.9vw, 21px); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; color: var(--teal-strong); }
.club-facts dd { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
#who .club-facts dt { font-size: clamp(26px, 3vw, 34px); font-variant-numeric: tabular-nums; }

/* Кадр hero и кадр правил на широком экране тянутся на высоту соседней
   колонки: картинка лежит абсолютно и в высоту ряда не вмешивается. */
@media (min-width: 980px) {
  .club-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; }
  .club-hero-photo { position: relative; aspect-ratio: auto; min-height: 420px; }
  .club-hero-photo img { position: absolute; inset: 0; object-position: 38% center; }
}

/* Как это устроено: пять шагов с номерами */
.club-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 700px) { .club-steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .club-steps { grid-template-columns: repeat(5, 1fr); } }
.club-steps li {
  counter-increment: step;
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--teal);
  border-radius: var(--radius-sm); padding: 18px 18px 16px;
}
.club-steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px;
  border-radius: 50%; background: var(--teal-soft); color: var(--teal-strong); font: 700 13px var(--mono);
}
.club-steps b { display: block; font-size: 16px; line-height: 1.3; margin-bottom: 6px; }
.club-steps span { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.club-note { margin: 24px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); max-width: 74ch; }

/* Правила: кадр слева, четыре карточки справа */
.club-split { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .club-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; }
  .club-split > .club-photo { position: relative; aspect-ratio: auto; min-height: 340px; }
  .club-split > .club-photo img { position: absolute; inset: 0; }
}
.club-rules { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 560px) { .club-rules { grid-template-columns: repeat(2, 1fr); } }
.club-rules li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 18px 16px; box-shadow: var(--shadow);
}
.club-rules b { display: block; font-size: 16px; line-height: 1.3; margin-bottom: 6px; color: var(--teal-strong); }
.club-rules span { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* О чём уже говорили: широкий кадр, пять тем и выделенный спор */
.club-photo-wide { margin-top: 28px; }
@media (min-width: 760px) { .club-photo-wide { aspect-ratio: 16 / 5; } }
.club-topics { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 700px) { .club-topics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .club-topics { grid-template-columns: repeat(3, 1fr); } }
.club-topic { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.club-topic h3 { font-size: 17.5px; margin: 0 0 8px; }
.club-topic p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.club-topic.is-open { background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); }
.club-tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--teal-strong);
}

/* Кому не сюда */
.nope-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.nope-list li {
  position: relative; padding: 14px 16px 14px 46px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15.5px; line-height: 1.55; color: var(--ink-soft);
}
.nope-list li::before {
  content: "✕"; position: absolute; left: 18px; top: 13px;
  font: 700 15px var(--mono); color: var(--danger);
}

/* Как попасть: кадр под шагами, левая колонка ровняется с формой */
.club-join-photo { margin-top: 32px; }

/* Опрос поставщиков (opros-postavshchikov.html) ------------------------------
   Страница-анкета с 2026-10-11 на общей светлой теме, здесь только её блоки.
   Бирюза - прогресс, кнопки и выбранные варианты. Янтарь - ТОЛЬКО плашка
   с примером переплаты в hero (.survey-leak): это «утечка денег». Поэтому
   звёзды оценки бирюзовые, звёздочка обязательного поля и ошибки - не янтарные. */

.container.survey-col { max-width: 760px; }

/* Hero: на телефоне кадр - полосой сверху, на десктопе - справа с растушёвкой */
.survey-hero { position: relative; overflow: hidden; padding-block: 0 clamp(44px, 6vw, 80px); }
.survey-hero-bg {
  display: block; width: 100%; height: 190px; object-fit: cover; object-position: 30% 60%;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.survey-hero-inner { position: relative; z-index: 1; margin-top: -28px; }
.survey-hero h1 { margin-bottom: .35em; }
.survey-hero .lead { margin-bottom: 22px; }
@media (min-width: 980px) {
  .survey-hero { padding-block: clamp(56px, 6vw, 84px); }
  .survey-hero-bg {
    position: absolute; top: 0; right: 0; width: 54%; height: 100%; object-position: 40% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%);
            mask-image: linear-gradient(to right, transparent 0, #000 38%);
  }
  .survey-hero-inner { margin-top: 0; }
  .survey-hero-inner > * { max-width: 600px; }
}

.survey-notice {
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 22px;
  font-size: 15px; line-height: 1.5;
}
.survey-notice p { margin: 0; }
.survey-notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.survey-promise {
  border: 2px solid var(--teal); background: var(--teal-soft); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px;
}
.survey-promise-title { margin: 0 0 4px; font-weight: 700; font-size: 17.5px; color: var(--teal-strong); }
.survey-promise p:last-child { font-size: 15px; line-height: 1.55; color: var(--ink); }

/* Единственный янтарь на странице: пример переплаты */
.survey-leak {
  margin: 0 0 16px; padding: 13px 16px; border-left: 4px solid var(--amber);
  background: var(--amber-soft); border-radius: var(--radius-sm);
  color: #7A4310; font-size: 15px; line-height: 1.55;
}

.survey-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 22px; }
.survey-facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; }
.survey-facts dt { font-weight: 700; font-size: 15px; line-height: 1.3; }
.survey-facts dd { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.survey-start { min-width: 220px; }
@media (max-width: 560px) { .survey-start { width: 100%; } }
.survey-count { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* Что будет в отчёте */
.survey-banner {
  margin: 0 0 18px; height: 160px; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--line-soft);
}
.survey-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.survey-banner-lg { height: 220px; margin-bottom: 22px; }
@media (max-width: 560px) { .survey-banner { height: 120px; } .survey-banner-lg { height: 150px; } }
.survey-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.survey-list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; }
.survey-list li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--teal); font-weight: 700; }
.survey-h3 { margin-top: 34px; }
.survey-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
@media (min-width: 700px) { .survey-steps { grid-template-columns: repeat(3, 1fr); } }
.survey-steps li {
  counter-increment: step; position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 14px 14px 52px;
}
.survey-steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--teal-strong); color: #fff; display: grid; place-items: center;
  font: 700 13px var(--mono);
}
.survey-steps b { display: block; font-size: 15.5px; line-height: 1.3; margin-bottom: 4px; }
.survey-steps span { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.survey-note { margin: 16px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* Анкета */
.survey-form-wrap { padding-top: clamp(28px, 4vw, 48px); }
.survey-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Полоса прогресса прилипает под шапкой. Чипы листаются внутри полосы,
   страница при этом вбок не едет (overflow-x у самой ленты). */
.survey-progress {
  position: sticky; top: calc(var(--header-h) + 6px); z-index: 30;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px 12px; margin-bottom: 16px;
}
.survey-progress-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; font-size: 14px; }
.survey-saved { font-size: 13px; color: var(--teal); }
.survey-saved.is-warn { color: var(--danger); font-weight: 600; }
.survey-bar { height: 6px; background: var(--line-soft); border-radius: 6px; overflow: hidden; margin: 7px 0 8px; }
.survey-bar span { display: block; height: 100%; width: 0; background: var(--teal); border-radius: 6px; transition: width .25s ease; }
.survey-chips-row { display: flex; align-items: center; gap: 8px; }
.survey-chips {
  position: relative; flex: 1 1 auto; min-width: 0; display: flex; gap: 6px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.survey-chips::-webkit-scrollbar { display: none; }
.survey-chip {
  flex: none; min-height: 38px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2;
}
.survey-chip[data-status="done"] { background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 30%, transparent); color: var(--teal-strong); }
.survey-chip[data-status="done"]::before { content: "✓ "; }
.survey-chip[data-status="skip"] { border-style: dashed; color: var(--ink-faint); }
.survey-chip.is-current { background: var(--teal-strong); border-color: var(--teal-strong); color: #fff; }
.survey-link-btn {
  flex: none; min-height: 38px; padding: 4px 2px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: underline;
  text-underline-offset: 3px; text-align: left;
}
@media (max-width: 560px) {
  .survey-chips-row { flex-wrap: wrap; }
  .survey-chips { flex-basis: 100%; }
}
.survey-resume { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }
.survey-resume p { margin: 0 0 8px; }
.survey-resume-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.survey-url {
  width: 100%; padding: 11px 12px; margin: 4px 0 10px; font: 13.5px/1.4 var(--mono); color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}

.survey-section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(16px, 3vw, 28px); margin-bottom: 16px;
  scroll-margin-top: calc(var(--survey-bar-h, 0px) + 14px);
}
.survey-sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.survey-sec-title h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 0; }
.survey-sec-title h2 span { color: var(--teal); }
.survey-sec-time { flex: none; font-size: 13.5px; color: var(--ink-faint); white-space: nowrap; }
.survey-tag {
  display: inline-block; margin: 8px 6px 0 0; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--line-soft); color: var(--ink-soft);
}
.survey-tag-main { background: var(--teal-soft); color: var(--teal-strong); }
/* Селектор из двух классов: у раздела без кнопки пропуска подзаголовок - последний
   абзац шапки, и общее p:last-child { margin-bottom: 0 } съедало отступ до полей. */
.survey-sec-head .survey-sec-sub { margin: 8px 0 16px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.survey-skip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.survey-skip-btn {
  min-height: 40px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft);
  font: inherit; font-size: 13.5px; line-height: 1.2;
}
.survey-skip-btn:hover { border-color: var(--ink-faint); color: var(--ink); }
.survey-skipped {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.survey-skipped[hidden] { display: none; }
.survey-skipped p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.survey-foot { margin: 14px 0 0; font-size: 13px; color: var(--ink-faint); }

/* Поля анкеты: одна колонка, на ширине от 560px «половинки» встают парой */
.sf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 16px; }
@media (min-width: 560px) {
  .sf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sf-grid > * { grid-column: 1 / -1; }
  .sf-grid > .sf-half { grid-column: auto; }
}
.sf { min-width: 0; }
.sf[hidden] { display: none; }
.sf-label { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 7px; }
.sf-label .req { color: var(--teal); }
.sf input[type="text"], .sf input[type="tel"], .sf input[type="email"], .sf textarea, .sf select,
.sf-basket input[type="text"] {
  width: 100%; min-height: 46px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.sf textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.sf input:focus, .sf textarea:focus, .sf select:focus, .sf-basket input:focus {
  outline: none; background: var(--surface); border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft);
}
.sf [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.sf-num { position: relative; }
.sf-num input { padding-right: 64px; font-variant-numeric: tabular-nums; }
.sf-suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 14.5px; color: var(--ink-faint); pointer-events: none;
}
.sf-hint { margin: 5px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-faint); }
.sf-err { margin: 6px 0 0; font-size: 13.5px; font-weight: 500; color: var(--danger); }
.sf-heading { font-size: 17px; margin: 4px 0 0; }

.sf-options { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-options-col { flex-direction: column; flex-wrap: nowrap; }
.sf.is-invalid .sf-options { border-radius: 14px; box-shadow: 0 0 0 3px var(--danger-soft); }
.sf-opt {
  min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; cursor: pointer; font: inherit; font-size: 15px; line-height: 1.3; color: var(--ink);
  text-align: center; transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.sf-opt:hover { border-color: var(--ink-faint); }
.sf-opt[aria-checked="true"], .sf-opt[aria-pressed="true"] { background: var(--teal-strong); border-color: var(--teal-strong); color: #fff; }
.sf-chip[aria-pressed="true"]::before { content: "✓ "; }
/* Вертикальный выбор - длинные варианты, рисуем радиокнопкой */
.sf-options-col .sf-opt {
  display: flex; align-items: flex-start; gap: 10px; text-align: left; border-radius: var(--radius-sm);
}
.sf-options-col .sf-opt::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  border: 2px solid var(--ink-faint); background: var(--surface);
}
.sf-options-col .sf-opt[aria-checked="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--ink); }
.sf-options-col .sf-opt[aria-checked="true"]::before { border-color: var(--teal); background: radial-gradient(circle, var(--teal) 0 45%, var(--surface) 50%); }

.sf-stars { display: flex; gap: 2px; }
.sf-star {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: #CAD3D7;
}
.sf-star[data-on] { color: var(--teal); }
.sf-month { display: flex; gap: 8px; }
.sf-month select:first-child { flex: 1.4; }
.sf-month select:last-child { flex: 1; }

.sf-litre { grid-column: 1 / -1; }
.sf-litre-val {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-strong); font-weight: 700; font-size: 15.5px;
}
.sf-litre-empty { font-size: 13px; color: var(--ink-faint); }

/* Повторяемые позиции: открыта одна, остальные - строкой-сводкой */
.sf-repeat, .sf-basket { min-width: 0; }
.sf-repeat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.sf-repeat-head b { font-size: 16.5px; }
.sf-repeat-head span { font-size: 13px; color: var(--ink-faint); }
.sf-item {
  display: flex; align-items: stretch; margin-top: 10px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
}
.sf-item-sum {
  flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 10px 14px; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: inherit; font-size: 15px; line-height: 1.35; text-align: left; color: var(--ink);
}
.sf-item-sum span { min-width: 0; overflow-wrap: anywhere; }
.sf-item-sum em { flex: none; font-style: normal; font-size: 13px; color: var(--teal); }
.sf-item.is-open { display: block; padding: 16px 14px; border: 2px solid var(--teal); background: var(--surface); }
.sf-item-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.sf-del {
  flex: none; min-height: 44px; padding: 0 14px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13.5px; color: var(--ink-faint);
}
.sf-del:hover { color: var(--danger); }
.sf-del.is-armed { color: var(--danger); font-weight: 600; }
.sf-add {
  width: 100%; min-height: 48px; margin-top: 10px; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--teal) 45%, transparent); border-radius: var(--radius-sm);
  background: transparent; color: var(--teal-strong); font: inherit; font-size: 15px; font-weight: 600;
}
.sf-add:hover { background: var(--teal-soft); }

/* Корзина Гранты: на телефоне строка в три ряда, на широком - в один */
.sf-basket { margin-top: 2px; }
.sf-brow {
  display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "price kind" "brand brand";
  align-items: center;
}
.sf-bname { grid-area: name; font-size: 14.5px; line-height: 1.35; }
.sf-brow .sf-num { grid-area: price; }
.sf-brow .sf-bkind { grid-area: kind; flex-wrap: nowrap; gap: 6px; }
.sf-brow .sf-bbrand { grid-area: brand; }
.sf-bkind .sf-opt { min-height: 44px; padding: 8px 11px; font-size: 14px; }
@media (min-width: 760px) {
  .sf-brow { grid-template-columns: minmax(0, 1.6fr) 124px auto minmax(0, 1fr); grid-template-areas: "name price kind brand"; }
}
.sf-basket-total { margin: 12px 0 0; font-size: 15.5px; }
.sf-basket-total b { color: var(--teal-strong); }
.sf-basket-total span { font-size: 13px; color: var(--ink-faint); }

/* Согласие, проверка складчины, отправка */
.survey-consent { margin-top: 22px; }
.survey-consent input[type="checkbox"] { width: 22px; height: 22px; margin-top: 0; }
.survey-consent label { font-size: 14.5px; }
.survey-consent .consent-note { margin-left: 32px; }
.survey-consent .sf-err { flex-basis: 100%; }
.survey-skladchina {
  margin: 18px 0 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: 14.5px; line-height: 1.5;
}
.survey-skladchina p { margin: 0 0 4px; }
.survey-skladchina p:last-child { margin: 0; }
.survey-skladchina.is-ok { border: 1px solid color-mix(in srgb, var(--teal) 40%, transparent); background: var(--teal-soft); }
.survey-skl-title { font-weight: 700; font-size: 15.5px; }
.survey-skl-marks .is-yes { color: var(--teal-strong); font-weight: 600; }
.survey-skl-marks .is-no {
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--danger); text-decoration: underline dotted; text-underline-offset: 3px;
}
.survey-skl-ok { color: var(--teal-strong); }
.survey-submit { width: 100%; }
.survey-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
/* Общий .form-error на сайте янтарный - здесь янтарь занят примером переплаты */
.survey-page .form-error {
  background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: #8A1F1F;
}

/* Финальный экран: вместо формы, ссылка для правки видна сразу */
.survey-done {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 32px);
  scroll-margin-top: 16px;
}
.survey-done h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 10px; }
.survey-done-lead { font-size: 17px; line-height: 1.55; margin-bottom: 12px; }
.survey-ticks { display: flex; gap: 4px; margin: 0 0 24px; }
.survey-ticks span { flex: 1; height: 10px; border-radius: 3px; background: var(--line); }
.survey-ticks span.on { background: var(--teal); }
.survey-done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
@media (max-width: 560px) { .survey-done-actions .btn { width: 100%; white-space: normal; } }
.survey-done-share { margin: 6px 0 10px; font-size: 15.5px; color: var(--ink-soft); }
.survey-done-club { margin: 6px 0 0; font-size: 15px; }
.survey-done-new { margin: 18px 0 0; }
.survey-closed { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Доступность -------------------------------------------------------------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal-strong); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 10px;
  text-decoration: none; font-weight: 600; transition: top .18s ease;
}
.skip:focus { top: 0; color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
