/* Дизайн-система «Эфира», направление «Светлый эксперт».
   Все цвета объявлены токенами здесь; в разметке цветов нет.

   Почему ушли с чёрного: тёмный фон во всю страницу читался как
   техническая панель, а не как сайт агентства, и длинный текст на нём
   утомляет. Светлая тёплая база + один приглушённый акцент вместо двух
   неонов. Контраст каждой пары проверен по WCAG — значения в комментариях. */

:root {
  --bg:          #F6F4EF;  /* тёплая светлая основа страницы */
  --surface:     #FFFFFF;  /* карточки, поля, шапка */
  --panel-cool:  #E9EDF1;  /* холодноватая подложка, hover строк */
  --ink:         #202725;  /* тёмные секции и подвал */

  --text:        #202725;  /* 13.9:1 на --bg, 15.2:1 на белом */
  --text-muted:  #5B6661;  /* 5.4:1 на --bg — только подписи */
  --text-faint:  #6E7874;  /* самые мелкие служебные подписи */

  --accent:       #146B75; /* 5.6:1 на --bg — кнопки и ссылки */
  --accent-hover: #0F535B; /* 8.7:1 с белым текстом */
  --accent-soft:  #E1E9B7; /* лаймовая плашка, только с тёмным текстом */
  --accent-ink:   #4E5A1C; /* «лаймовый» там, где нужен цвет текста */

  --divider:      #DEDFD7; /* декоративные линии и границы карточек */
  --field-border: #7A837C; /* 3.9:1 — рамка поля ввода */

  --error:   #B3402F;
  --success: #2E7D4F;
  --warning: #8A6A1F;

  --shadow-sm: 0 1px 2px rgba(32, 39, 37, 0.04), 0 2px 8px rgba(32, 39, 37, 0.05);
  --shadow-md: 0 2px 4px rgba(32, 39, 37, 0.05), 0 10px 28px rgba(32, 39, 37, 0.08);

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", Consolas, monospace;

  --wrap: 1200px;
  --gap: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

/* Содержимое видно по умолчанию. Анимацию появления включает класс js
   на <html> — если скрипт не отработал, страница всё равно читается. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Подчёркивание, а не только цвет: цветом одним ссылку отличать нельзя. */
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

img, svg { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gap); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.14; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.9rem); text-wrap: balance; }

p + p { margin-top: 0.9em; }
/* Лид-абзац — важнейший текст страницы, он не должен выглядеть сноской. */
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text); max-width: 62ch; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: 0.84rem; letter-spacing: 0.02em; }

/* ─── Шапка ─── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
}
.site-header__inner { display: flex; align-items: center; gap: var(--gap); min-height: 74px; }
.site-logo { display: inline-flex; align-items: center; line-height: 0; margin-right: auto; text-decoration: none; }
.site-logo svg { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--text-muted); font-size: 0.95rem; text-decoration: none; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn--ghost { border-color: var(--field-border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(20, 107, 117, 0.06); }

.burger { display: none; background: none; border: 1px solid var(--divider); border-radius: 8px; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); }
.burger span + span { margin-top: 4px; }

@media (max-width: 900px) {
  .nav {
    position: absolute; inset: 74px 0 auto; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--divider);
    padding: 8px var(--gap) 20px; box-shadow: var(--shadow-md);
  }
  .nav:not(.is-open) { display: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--divider); font-size: 1rem; }
  .burger { display: block; }
  .site-header__cta { display: none; }
}

/* ─── Секции ─── */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--line { border-top: 1px solid var(--divider); }
/* Блок без заголовка не нуждается в полном отступе секции: между первым
   экраном и рядом доверия иначе получается пустой провал почти в экран. */
.section--tight { padding-block: clamp(26px, 3.5vw, 44px); }
/* Подпись секции обычным регистром: капс с разрядкой читается как
   машинная метка и добавляет сайту «роботизированности». */
.section__label {
  font-size: 0.9rem; font-weight: 600; color: var(--accent); margin-bottom: 12px;
}
.section__head { max-width: 72ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head p { margin-top: 14px; }

/* Тёмная секция — точечный приём: одна акцентная врезка на странице
   и подвал. Фоном всего сайта тёмный цвет больше не работает. */
.section--ink { background: var(--ink); color: #F2F1EC; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #FFFFFF; }
.section--ink .lead, .section--ink p { color: #D3D7D3; }
.section--ink .section__label { color: var(--accent-soft); }
.section--ink a { color: var(--accent-soft); }

/* ─── Первый экран ─── */
.hero { padding-block: clamp(48px, 8vw, 104px); }
.hero__eyebrow {
  display: inline-block; font-size: 0.86rem; font-weight: 600;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 span { color: var(--accent); }
.hero .lead { margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ─── Карточки услуг ─── */
.grid-h { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 20px; }

.cards { display: grid; gap: 18px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--wide { grid-column: 1 / -1; }
@media (min-width: 1000px) { .card--wide { grid-column: span 2; } }
.card__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.08em; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card__desc { color: var(--text-muted); font-size: 0.98rem; flex: 1; }
.card__price { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 1.02rem; margin-top: auto; }
.card__price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; }
.badge {
  align-self: flex-start; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 0.76rem; font-weight: 600;
}

/* ─── Таблицы ─── */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.table th { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.table td:first-child { font-weight: 600; width: 32%; }
.table tbody tr:hover { background: var(--panel-cool); }
@media (max-width: 640px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { border-bottom: 1px solid var(--divider); padding-block: 12px; }
  .table tr:hover { background: transparent; }
  .table td { border: 0; padding: 4px 0; }
  .table td:first-child { width: auto; color: var(--text-muted); font-size: 0.88rem; }
}

/* ─── Пустой раздел ─── */
.empty {
  border: 1px dashed var(--field-border); border-radius: 14px; background: var(--surface);
  padding: clamp(32px, 6vw, 64px); text-align: center; color: var(--text-muted);
}
.empty h3 { color: var(--text); margin-bottom: 10px; }

/* ─── Подвал ─── */
.site-footer { background: var(--ink); color: #C9CFCB; padding-block: 52px; font-size: 0.92rem; }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: #C9CFCB; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer__h { font-family: var(--font-display); font-size: 0.95rem; color: #FFFFFF; margin-bottom: 12px; }
.site-footer ul li + li { margin-top: 8px; }
.site-footer__logo svg { height: 34px; width: auto; }
.site-footer__legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.84rem; color: #9BA39E; }
.site-footer__legal p + p { margin-top: 6px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gap); top: 10px; z-index: 100; background: var(--accent); color: #FFFFFF; padding: 10px 16px; border-radius: 8px; }

/* ─── Чередование фонов ───
   Ритм задаётся сменой тёплой базы и белого, а не оттенками серого. */
.section--alt { background: var(--surface); }

/* ─── Первый экран: текст + артефакт результата ─── */
.hero__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); } }
.hero__note { color: var(--text-muted); margin-top: 18px; font-size: 0.95rem; }

.artifact {
  border: 1px solid var(--divider); border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow-md); padding: clamp(20px, 3vw, 28px);
}
.artifact__title { color: var(--text); margin-bottom: 16px; font-size: 1.05rem; }
.artifact__rows li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--divider);
}
.artifact__rows li:last-child { border-bottom: 0; }
.artifact__rows span { color: var(--text-muted); font-size: 0.94rem; }
.artifact__rows b { font-family: var(--font-mono); font-size: 1rem; }
.artifact__rows .is-bad { color: var(--error); }
.artifact__rows .is-mid { color: var(--warning); }
.artifact__rows .is-good { color: var(--success); }
.artifact__note { margin-top: 16px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Доверительный ряд ─── */
.trust { display: grid; gap: 14px; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust li {
  background: var(--surface); border: 1px solid var(--divider); border-radius: 12px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px;
}
.trust strong { font-family: var(--font-display); font-size: 1rem; }
.trust span { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Маршрутизация по задаче ─── */
.tasks { display: grid; gap: 16px; }
@media (min-width: 700px) { .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tasks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.task {
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--divider); border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 22px; color: inherit; text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.task:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.task h3 { font-size: 1.08rem; }
.task p { color: var(--text-muted); }
.task__go { margin-top: auto; padding-top: 10px; color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }

/* ─── Шаги процесса ─── */
.steps { display: grid; gap: 14px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.step {
  background: var(--surface); border: 1px solid var(--divider); border-radius: 12px;
  padding: 22px 20px; display: flex; gap: 14px; align-items: flex-start;
}
@media (min-width: 900px) { .step { flex-direction: column; gap: 10px; } }
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 0.86rem;
  color: var(--accent-ink); background: var(--accent-soft);
  border-radius: 999px; padding: 3px 11px; flex-shrink: 0;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--text-muted); }
.step__who { color: var(--text-faint); margin-top: 8px; font-size: 0.78rem; }

/* ─── Две колонки: описание + панель ─── */
.split { display: grid; gap: clamp(20px, 3vw, 32px); margin-top: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; } }
.split--even { grid-template-columns: 1fr; }
@media (min-width: 900px) { .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel { border: 1px solid var(--divider); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); padding: clamp(20px, 3vw, 26px); }
.panel h3 { margin-bottom: 14px; font-size: 1.05rem; }
.panel--good { border-top: 3px solid var(--success); }
.panel--warn { border-top: 3px solid var(--error); }

/* ─── Списки с маркерами ─── */
.list li { position: relative; padding-left: 28px; color: var(--text-muted); font-size: 0.98rem; }
.list li + li { margin-top: 10px; }
.list--check li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.list--cross li::before { content: "✕"; position: absolute; left: 0; color: var(--error); font-weight: 700; }
.list--kpi li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.list--dot li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ─── Вопросы и ответы ───
   Нативный <details>: работает без JavaScript, доступен с клавиатуры,
   и текст ответа виден поисковым роботам в HTML. */
.faq-list { border: 1px solid var(--divider); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.faq { border-bottom: 1px solid var(--divider); }
.faq:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.faq[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq__a { padding: 0 24px 22px; color: var(--text-muted); font-size: 0.98rem; max-width: 80ch; }

/* ─── Уведомление о cookie ───
   Узкая полоса внизу: прежний баннер накрывал первый экран, и первое
   впечатление портилось до того, как человек что-то прочитал.
   Кнопка отказа так же заметна, как кнопка согласия: приглушённый отказ
   рядом с ярким согласием — тёмный паттерн, при котором согласие
   перестаёт быть свободным, а значит и действительным. */
/* Без этой строки баннер не исчезает никогда: атрибут hidden даёт
   display:none браузерным стилем, а .cookie с display:flex — авторским,
   и авторский выигрывает. Нажатие кнопки срабатывало, выбор сохранялся,
   а полоса оставалась на экране. */
.cookie[hidden] { display: none; }

.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: center;
  background: var(--surface); border-top: 1px solid var(--divider);
  padding: 14px var(--gap); box-shadow: 0 -4px 24px rgba(32, 39, 37, 0.1);
}
.cookie__text { flex: 1 1 420px; max-width: 760px; }
.cookie__text p { font-size: 0.88rem; color: var(--text-muted); }
.cookie__text p + p { margin-top: 2px; }
.cookie__text strong { color: var(--text); font-family: var(--font-display); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.cookie__actions .btn { font-size: 0.84rem; padding: 10px 18px; }
.cookie__actions .btn--ghost { border-color: var(--field-border); color: var(--text); background: transparent; }
.cookie__actions .btn--ghost:hover { border-color: var(--text); background: rgba(32, 39, 37, 0.05); }
@media (max-width: 700px) {
  .cookie { padding: 14px 16px; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1 1 auto; }
}

.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; font: inherit; font-size: inherit; text-align: left;
  text-decoration: underline; text-underline-offset: 3px;
}
.linklike:hover { color: #FFFFFF; }

/* ─── Правовые документы ─── */
.wrap--doc { max-width: 920px; }
.doc__toc { border: 1px solid var(--divider); border-radius: 14px; background: var(--surface); padding: 22px 24px; margin-bottom: 36px; }
.doc__toc p { color: var(--text); font-weight: 600; margin-bottom: 12px; }
.doc__toc ol { counter-reset: toc; }
.doc__toc li + li { margin-top: 7px; }
.doc__toc a { color: var(--accent); font-size: 0.96rem; }
.doc__sec { scroll-margin-top: 92px; }
.doc__sec + .doc__sec { margin-top: 34px; }
.doc h2 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-bottom: 14px; }
.doc p { color: var(--text-muted); font-size: 0.98rem; max-width: 78ch; }
.doc p + p { margin-top: 10px; }
.doc .list { margin-top: 12px; }
.doc .table { margin-top: 14px; }
.doc__req { margin-top: 44px; }
.doc__date { margin-top: 24px; font-size: 0.88rem; }

/* ─── Форма заявки ─── */
.formwrap { border: 1px solid var(--divider); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-md); padding: clamp(22px, 3.5vw, 36px); }
.form h2, .form__done h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin-bottom: 8px; }
.form > .muted { margin-bottom: 22px; font-size: 0.96rem; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 680px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field label span { color: var(--error); }
.field input, .field textarea {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--field-border); border-radius: 8px; padding: 13px 15px;
  font-family: var(--font-body); font-size: 1rem; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(20, 107, 117, 0.16); }
.field .is-invalid, .field input.is-invalid, .field textarea.is-invalid { border-color: var(--error); }
.field__err { color: var(--error); font-size: 0.86rem; margin-top: 6px; min-height: 0; }
.field__err:empty { display: none; }

.check { display: flex; gap: 11px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.check span { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

/* Ловушка для ботов: убрана из потока и от скринридеров,
   но остаётся в DOM — человек её не видит и не заполнит. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { margin-top: 22px; }
.form__note { margin-top: 14px; font-size: 0.84rem; color: var(--text-muted); max-width: 60ch; }
.form__error { margin-top: 14px; color: var(--error); font-size: 0.92rem; }
.form__done h2 { color: var(--success); }
.form__done p + p { margin-top: 10px; }

/* ─── Кейсы ─── */

.crumbs { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 26px; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; opacity: 0.5; }

.cases { display: grid; gap: 18px; }
@media (min-width: 700px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.casecard {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 26px 22px; background: var(--surface);
  border: 1px solid var(--divider); border-radius: 16px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.casecard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.casecard__industry { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 8px; }
.casecard h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 10px; }
.casecard h3 a { color: var(--text); text-decoration: none; }
.casecard h3 a::after { content: ""; position: absolute; inset: 0; }
.casecard:hover h3 a { color: var(--accent); }
.casecard .card__desc { flex: 1; }
.casecard__metric { display: flex; align-items: baseline; gap: 10px; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--divider); }
.casecard__metric strong { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--accent); }
.casecard__metric span { font-size: 0.9rem; color: var(--text-muted); }
.casecard__second { margin-top: 8px; font-size: 0.86rem; color: var(--text-muted); }
.casecard .task__go { margin-top: 14px; color: var(--text-faint); font-weight: 400; font-family: var(--font-body); }

/* Крупные цифры в шапке кейса */
.bignums { display: grid; gap: 14px; margin: 28px 0 10px; }
@media (min-width: 620px) { .bignums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bignum { padding: 22px 26px; background: var(--surface); border: 1px solid var(--divider);
  border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; box-shadow: var(--shadow-sm); }
.bignum strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3rem);
  line-height: 1; color: var(--accent); }
.bignum span { display: block; margin-top: 8px; font-size: 0.94rem; color: var(--text-muted); }

.caselinks { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Скриншоты: максимальная ширина контейнера, высота из разметки —
   вёрстка не прыгает, пока картинка едет. */
.shot { margin: 24px 0 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--divider);
  border-radius: 12px; background: var(--surface); }
.shot figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--text-muted); }

.gallery { display: grid; gap: 22px; margin: 10px 0 44px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.gallery .shot { margin: 0; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--divider); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); }
.timeline li:last-child { padding-bottom: 0; }
.timeline__when { font-weight: 700; font-size: 0.92rem; color: var(--accent); margin-bottom: 4px; }
.timeline__what { color: var(--text-muted); max-width: 72ch; }

.table--metrics .was { color: var(--text-muted); }
.table--metrics .now { color: var(--success); font-weight: 600; }
.table--facts td:first-child { color: var(--text-muted); width: 42%; }

.casenote {
  margin-top: 32px; padding: 16px 20px; border-left: 3px solid var(--warning);
  background: var(--surface); border: 1px solid var(--divider); border-left-width: 3px;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem; color: var(--text-muted); max-width: 80ch;
}

/* На узком экране четырёхколоночная таблица метрик не помещается —
   пусть прокручивается вбок, а не ломает страницу. */
@media (max-width: 720px) {
  .table--metrics { display: block; overflow-x: auto; white-space: nowrap; }
}

.diagram { margin: 26px 0 0; padding: 18px; background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 620px; height: auto; }

/* ─── Кейс: шапка ─── */

.section--case { padding-bottom: 36px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 4px; padding: 0; }
.chips li {
  font-size: 0.86rem; padding: 7px 14px; border-radius: 999px;
  color: var(--text-muted); background: var(--surface); border: 1px solid var(--divider);
}

/* ─── Было / Стало ─── */

.cmp { display: grid; gap: 18px; }
@media (min-width: 820px) { .cmp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cmp__col { padding: 26px 26px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--divider); box-shadow: var(--shadow-sm); }
.cmp__col h2 { font-size: 1.15rem; margin-bottom: 16px; }
.cmp__col--before { border-top: 3px solid var(--error); }
.cmp__col--before h2 { color: var(--error); }
.cmp__col--after { border-top: 3px solid var(--success); }
.cmp__col--after h2 { color: var(--success); }
.cmp__col .list li { font-size: 0.98rem; }

.cmp__shots { display: grid; gap: 20px; margin-top: 22px; }
@media (min-width: 820px) { .cmp__shots { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.cmp__shots .shot { margin: 0; }

/* ─── Живые скриншоты в рамке браузера ─── */

.shots { display: grid; gap: 26px; }
@media (min-width: 860px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.shot--browser { margin: 0; }

.browser { border: 1px solid var(--divider); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.browser__bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--panel-cool); border-bottom: 1px solid var(--divider); }
.browser__dots { display: flex; gap: 5px; flex-shrink: 0; }
.browser__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--divider); }
.browser__url {
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted);
  background: var(--surface); border-radius: 5px; padding: 4px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  /* Без min-width:0 длинный адрес не сжимается и выталкивает страницу
     за край узкого экрана: флекс-элемент по умолчанию не уже своего текста. */
  min-width: 0; flex: 1 1 auto;
}
.shots > *, .browser { min-width: 0; }
.browser img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }

/* ─── Выноска ─── */

.pull {
  margin: 10px 0 44px; padding: 4px 0 4px 26px;
  border-left: 4px solid var(--accent-soft);
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.42; color: var(--text); max-width: 60ch;
}

/* ─── Блоки «как делали» ─── */

.caseblock { margin-bottom: 40px; max-width: 76ch; }
.caseblock h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); margin-bottom: 12px; }
.caseblock p { color: var(--text-muted); }
.caseblock .list { margin-top: 14px; }
.caseblock__h { font-size: clamp(1.15rem, 2.4vw, 1.45rem); margin: 8px 0 20px; }


/* ─── Страница «SEO + GEO» ─── */

/* Якоря не должны прятаться под липкой шапкой. */
section[id], .formwrap[id] { scroll-margin-top: 90px; }

/* Содержание страницы: быстрые переходы. */
.pagenav { margin-top: 30px; }
.pagenav__t { font-size: 0.86rem; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.pagenav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.pagenav a {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--divider); background: var(--surface);
  color: var(--text-muted); font-size: 0.9rem; text-decoration: none;
  transition: border-color .18s ease, color .18s ease;
}
.pagenav a:hover { border-color: var(--accent); color: var(--accent); }

/* Формула видимости в первом экране. */
.formula__list { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.formula__item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--divider);
}
.formula__item span { font-weight: 600; }
.formula__item b {
  font-family: var(--font-mono); font-size: 0.84rem; letter-spacing: 0.04em;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 999px;
}
.formula__op { text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.formula__item--result { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.formula__item--result b { background: #FFFFFF; color: var(--accent); }

/* Путь клиента: было → сейчас → дальше. */
.journey { display: grid; gap: 16px; }
@media (min-width: 900px) { .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.journey__col { background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.journey__col--now { border-top: 3px solid var(--accent); box-shadow: var(--shadow-md); }
.journey__tag { font-size: 0.84rem; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.journey__col--now .journey__tag { color: var(--accent); }
.journey__col h3 { margin-bottom: 14px; }
.journey__steps { counter-reset: j; }
.journey__steps li { counter-increment: j; position: relative; padding-left: 36px; color: var(--text-muted); font-size: 0.98rem; }
.journey__steps li + li { margin-top: 12px; }
.journey__steps li::before {
  content: counter(j); position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 0.8rem;
}
.journey__note { margin-top: 20px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; max-width: 60ch; }
.measure { margin-top: 28px; padding: 24px 26px; border-radius: 16px; background: var(--panel-cool); border: 1px solid var(--divider); }
.measure h3 { margin-bottom: 8px; }
.measure > p { color: var(--text-muted); max-width: 70ch; margin-bottom: 14px; }

/* Карточки-пояснения: три проверки, четыре опоры, внешний контур. */
.features { display: grid; gap: 16px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); }
.feature__num {
  display: inline-block; margin-bottom: 12px; padding: 3px 11px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft);
}
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.98rem; }

.entries { display: grid; gap: 16px; }
@media (min-width: 900px) { .entries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.entries__sub { margin: -6px 0 14px; font-size: 0.94rem; }
.entries__common { margin-top: 24px; max-width: 74ch; color: var(--text-muted); }

.panel--term { border-top: 3px solid var(--accent); }
.term__tag { font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--accent); margin-bottom: 8px; }
.panel--term .term__tag { font-size: 1.7rem; line-height: 1; letter-spacing: 0.02em; }
.panel--term > p { color: var(--text-muted); margin-bottom: 14px; }

.scenarios { display: grid; gap: 16px; }
@media (min-width: 900px) { .scenarios { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scenario > p { color: var(--text-muted); font-size: 0.96rem; }
.scenario__q { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text) !important; margin-bottom: 10px; }
.scenario .chips { margin-top: 16px; }

/* Шаги: число колонок задаёт модификатор. */
.steps--3 { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Таблицы страницы. */
.table--myths td:first-child { width: 34%; font-weight: 600; }
.table--contractor td:first-child { width: 30%; font-weight: 600; }
.table--contractor td:nth-child(2) { width: 26%; }
@media (max-width: 640px) {
  .table--contractor td:nth-child(2)::before { content: "Что должно быть в ответе: "; font-weight: 600; }
  .table--contractor td:nth-child(3)::before { content: "Как отвечаем мы: "; font-weight: 600; color: var(--accent); }
  .table--myths td:nth-child(2)::before { content: "На деле: "; font-weight: 600; }
}

/* ─── Тарифы ─── */
.tiers { display: grid; gap: 22px; align-items: stretch; margin-top: 8px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--divider); border-radius: 18px;
  box-shadow: var(--shadow-sm); padding: 30px 26px 26px;
}
.tier--featured { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.tier__badge { position: absolute; top: -13px; left: 26px; background: var(--accent); color: #FFFFFF; }
.tier h3 { font-size: 1.5rem; }
.tier__for { color: var(--text-muted); font-size: 0.96rem; min-height: 3.2em; }
.tier__price { display: flex; align-items: baseline; gap: 8px; padding: 6px 0 4px; }
.tier__price strong { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.3rem); line-height: 1; }
.tier__price span { color: var(--text-muted); font-size: 0.96rem; }
.tier__inherits { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--divider); font-weight: 700; font-size: 0.94rem; }
.tier .list { flex: 1; }
.tier .list li { font-size: 0.95rem; }
.tier .btn { margin-top: 14px; }
.tiers__note { margin-top: 24px; max-width: 70ch; color: var(--text-muted); }

/* ─── Тёмная врезка: единственная на странице ─── */
.section--ink .list li { color: #D3D7D3; }
.section--ink .list--check li::before { color: var(--accent-soft); }
.section--ink strong { color: #FFFFFF; }
/* Акцент #146B75 на графите даёт мало контраста самой кнопке, поэтому
   в тёмной секции кнопка светлая. */
.section--ink .btn--primary { background: var(--accent-soft); color: var(--ink); }
.section--ink .btn--primary:hover { background: #D2DDA3; color: var(--ink); }

.combo { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .combo { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; } }
.combo__price { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 10px; }
.combo__price strong { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1; color: #FFFFFF; }
.combo__price span { color: #D3D7D3; }
.combo__note { color: #AEB5B0 !important; font-size: 0.92rem; margin-bottom: 22px; }
.combo__list { padding: 26px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); }
.combo__list h3 { margin-bottom: 14px; }

/* Врезка на главной. */
.promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.promo > div { flex: 1 1 420px; }

/* Внутренние страницы с длинным заголовком: на главной заголовок короткий
   и может быть крупным, здесь он занимал бы четыре строки. */
.hero--page h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.hero--page .crumbs { margin-bottom: 20px; }
.combo h2 + .lead { margin-top: 14px; }
