/* ==========================================================================
   budakovpravo.ru — визуальная система сайта

   Подключается на всех 38 страницах. Внутренние страницы добавляют к ней
   pages.css; старая таблица style.css к сайту больше не подключается.

   Что здесь
   ---------
    1. Шрифты          — Manrope и Golos Text, свои файлы, без Google
    2. Токены          — цвет, ширина, ритм, тени
    3. База            — сброс, типографика, контейнер, служебные классы
    4. Кнопки          — .btn и ссылка со стрелкой
    5. Шапка           — логотип, меню, бургер
    6. Первый экран    — фон-помещение, поле рассказа, фигура
    7. Стена фраз      — «своими словами»
    8. Навигатор       — тёмная секция, разметку рисует navigator.js
    9. Сергей          — «кто будет заниматься делом»
   10. Дела            — карточки результатов
   11. Шаги            — «что будет дальше»
   12. Цены            — короткий прайс на главной
   13. Что делать сегодня
   14. Конструктор     — плитки инструментов
   15. Отзывы
   16. Контакты и форма
   17. Подвал
   18. Появление блоков при прокрутке

   Принятые решения
   ----------------
   1. Шрифты. Раньше весь сайт набирался Georgia — системной антиквой из
      девяностых; отсюда ощущение бланка. Теперь две гарнитуры, обе с
      кириллицей, обе лежат на своём сервере:
        Manrope 800/700 — заголовки, геометрический гротеск с характером;
        Golos Text 400/500 — текст и интерфейс, рисовался под русский язык.
   2. Фон. Был кремовый (#f3f0eb) — тёплая бумага, из-за неё страница
      читалась старомодно. Стал холодный белый и светло-серый.
   3. Красный остался ровно тот же и ровно там, где нужен: кнопка, акцент,
      отметка. Доля красного на экране уменьшена.
   4. Углы скруглены. Нулевой радиус читается канцелярией; 14–20 px —
      человеческая интонация, при этом не «детская».
   5. Разделители почти убраны. Блоки разводит воздух и смена фона, а не
      сетка линий.

   Файл собран из тридцати двух дописанных блоков правок в один
   упорядоченный. Значения — итоговые: то, что браузер считал по всей
   цепочке переопределений. Перекрытые и мёртвые правила удалены.
   ========================================================================== */

/* ------------------------------------------------------------- 1. Шрифты

   font-display: optional — не опечатка и не перестраховка. При swap
   браузер рисует текст системным шрифтом, а через сто-двести миллисекунд
   подменяет своим: у Manrope и Golos другая ширина знака, строки
   перевёрстываются, и страница дёргается. Замер по восьми страницам и
   шести ширинам: при swap скачок доходил до 0,29 при норме 0,1, при
   optional максимум 0,12, а медиана упала с 0,05 до 0,015.

   Чем платим: если шрифт не успел прийти за первые ~150 мс, этот один
   показ страницы рисуется системным шрифтом и подмены уже не будет.
   Файлы предзагружаются (<link rel=preload>) и кешируются на год, так что
   это только самый первый заход на медленной связи; со второй страницы и
   при любом возврате шрифт свой. Хотите обратное — заменить optional на
   swap в восьми строках ниже. */

@font-face{font-family:'Golos Text';font-style:normal;font-weight:400;font-display:optional;src:url('../fonts/golos-text-400-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400;font-display:optional;src:url('../fonts/golos-text-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D,U+2026}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:500;font-display:optional;src:url('../fonts/golos-text-500-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:500;font-display:optional;src:url('../fonts/golos-text-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D,U+2026}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:optional;src:url('../fonts/manrope-700-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:optional;src:url('../fonts/manrope-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D,U+2026}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:optional;src:url('../fonts/manrope-800-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:optional;src:url('../fonts/manrope-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+2013-2014,U+2018-201D,U+2026}

/* Подложки под веб-шрифты.

   Пока Manrope и Golos качаются, браузер рисует текст системным шрифтом, а
   потом подменяет — и страница дёргается: у системного другая ширина знака.
   Замер показал скачок вёрстки 0,16 на внутренних страницах при 768 px;
   с заблокированными шрифтами скачок ровно нулевой, то есть виновата именно
   подмена.

   Эти два начертания — не шрифты, а метрики: они берут Arial (в Linux его
   метрический двойник Liberation Sans) и растягивают его так, чтобы строка
   занимала столько же места, сколько займёт настоящий шрифт. Коэффициенты
   посчитаны по средней ширине знака на русском тексте самого сайта, а не
   взяты на глаз. */
@font-face {
  font-family: 'Golos Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 104.8%;
  ascent-override: 93.6%;
  descent-override: 21%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Manrope Fallback';
  font-weight: 700 800;
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 98.9%;
  ascent-override: 107.8%;
  descent-override: 30.3%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------- 2. Токены */

:root {
  --ink:        #14171b;   /* графит с синевой — основной тёмный */
  --ink-2:      #1c2026;   /* поверхности внутри тёмных секций */
  --ink-3:      #2a2f37;   /* границы на тёмном */
  --paper:      #ffffff;
  --paper-2:    #f4f5f7;   /* холодная подложка вместо кремовой */
  --paper-3:    #eceef1;
  --grey:       #656d78;   /* текст второго плана на светлом, 5,6 : 1 */
  --grey-light: #9aa2ad;   /* на тёмном, 5,4 : 1 */
  --line:       #e2e5e9;
  --red:        #a3211b;
  --red-hover:  #8a1c17;
  /* Красный для текста на тёмном фоне. 22.10.2026 коралловый #e4685d заменён
     на чистый красный по просьбе Сергея. #f5473f — тот же оттенок, что --red,
     и проходит норму 4,5 : 1 для мелкого текста: 5,0 : 1 на --ink и 4,56 : 1
     на --ink-2. Темнее брать нельзя — на панелях упадёт ниже нормы. */
  --red-bright: #f5473f;
  /* Красный знака на тёмном фоне (черта монограммы и разделитель в подвале).
     Тот же оттенок, что --red, но светлее: на #0f1114 даёт 3,8 : 1 —
     для графики норма 3 : 1. Для мелкого текста темноват, там --red-bright. */
  --red-mark:   #d7261e;
  --red-wash:   #fbeeed;

  --wrap: 1200px;
  --gutter: 28px;
  --pad: 128px;            /* вертикальный ритм секций */
  --r: 16px;               /* базовый радиус */
  --r-lg: 22px;
  --head-h: 74px;          /* высота шапки; первый экран поднят под неё */
  --shadow: 0 1px 2px rgba(20,23,27,.04), 0 12px 32px -12px rgba(20,23,27,.12);
  --shadow-lift: 0 2px 4px rgba(20,23,27,.06), 0 22px 48px -16px rgba(20,23,27,.18);
  --ease: cubic-bezier(.2,.7,.3,1);
}

@media (max-width: 900px) {
  :root { --pad: 76px; --gutter: 20px; }
}

/* --------------------------------------------------------------- 3. База */

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

/* Плавная прокрутка только для переходов внутри страницы (22.10.2026).
   Раньше scroll-behavior: smooth действовал и при заходе с другой страницы
   по ссылке с якорем: страница открывалась сверху и «ехала» вниз. Теперь при
   загрузке переход к якорю мгновенный, а плавно — только по клику на ссылку
   на этой же странице: класс is-smooth вешает скрипт уже после загрузки. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.is-smooth { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.is-smooth { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Golos Text', 'Golos Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Manrope Fallback', 'Golos Text', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Якорные переходы не должны загонять заголовок под шапку. */
section[id] { scroll-margin-top: 92px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec { padding-block: var(--pad); }
.sec--dark { background: var(--ink); color: #fff; }
.sec--soft { background: var(--paper-2); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px; top: 16px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 10px;
}

/* Надзаголовок. Не моноширинный и без декоративной черты: просто мелкая
   строчная метка, которая говорит, где ты находишься. */
.tag {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--red);
  margin: 0 0 14px;
  display: block;
}
.sec--dark .tag { color: var(--red-bright); }

.h-xl { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.h-lg { font-size: clamp(2rem, 4vw, 3rem); }
.h-md { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  color: var(--grey);
  max-width: 62ch;
}
.sec--dark .lead { color: var(--grey-light); }

/* Заголовок секции: метка и заголовок слева, пояснение справа. Асимметрия
   вместо привычного центрирования — она же задаёт ритм всей странице. */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px 56px;
  align-items: end;
  margin-bottom: 56px;
}
.head > :last-child { padding-bottom: 6px; }
@media (max-width: 860px) {
  .head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; }
  .head > :last-child { padding-bottom: 0; }
}

/* ------------------------------------------------------------ 4. Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 500;
  line-height: 1;
  padding: 16px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }

.btn--quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--quiet:hover { border-color: var(--ink); }
.sec--dark .btn--quiet { border-color: var(--ink-3); color: #fff; }
.sec--dark .btn--quiet:hover { border-color: #fff; }

.btn--wide { width: 100%; }

/* Длинная и короткая надписи на одной кнопке: на телефоне «Разобрать
   ситуацию» не помещается в шапку, там остаётся «Написать». */
.btn__short { display: none; }

/* Ссылка со стрелкой: стрелка отъезжает при наведении. Единственная
   микроанимация, которая повторяется по всей странице. */
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--red);
  text-decoration: none;
}
.arrow::after {
  content: "→";
  transition: transform .2s var(--ease);
}
.arrow:hover::after { transform: translateX(4px); }
.sec--dark .arrow { color: var(--red-bright); }

/* ------------------------------------------------------------- 5. Шапка

   Шапка прозрачна, пока страница не прокручена: первый экран поднят под
   неё, и любой фон под шапкой рисовал бы горизонтальный шов. Как только
   под шапкой появляется текст — она белеет.

   Переносам в шапке места нет: строка одна по определению, поэтому всё
   её содержимое набрано без переносов. */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.header.is-stuck {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}

/* Логотип. Монограмма «СБ» — отдельный SVG, обведённый по присланному
   файлу логотипа (две заливки: графит и красный), а не картинка-растр:
   в шапке она живёт на 32 px, в подвале на 44 px, в фавиконе на 64 — растр
   на этом диапазоне пришлось бы возить в трёх размерах. Имя набрано
   шрифтом сайта, а не шрифтом из файла логотипа: в оригинале это антиква,
   и ради двух слов пришлось бы тянуть ещё один файл шрифта на каждую
   страницу. Подпись под именем ниже 1200 px снимается — правило уже было,
   оно не менялось. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
  color: var(--ink);
}
.logo__mark {
  display: block;
  height: 32px;
  width: auto;
  flex: none;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.logo b {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo__role {
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.01em;
  margin-top: 3px;
}

.nav { display: flex; gap: 26px; }
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { border-bottom-color: var(--red); }

.header__side {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header__tel {
  text-decoration: none;
  font-weight: 500;
}
/* Кнопка в шапке — контурная. Главный CTA страницы стоит в первом
   экране, и две красные кнопки на одном экране спорят друг с другом.
   Полупрозрачный белый нужен, чтобы контур читался и поверх фотографии
   комнаты, пока шапка не побелела. */
.header .btn { padding: 12px 20px; }
.header .btn--quiet {
  background: rgba(255,255,255,.72);
  border-color: rgba(20,23,27,.16);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header .btn--quiet:hover {
  background: #fff;
  border-color: var(--ink);
}
.header.is-stuck .btn--quiet { background: transparent; backdrop-filter: none; }
.header.is-stuck .btn--quiet:hover { background: var(--paper-2); }
.logo__role { font-size: 0.71rem; }

.logo b, .logo__role, .nav a, .header__tel, .header .btn { white-space: nowrap; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 50%; margin-left: -9px;
  width: 18px; height: 2px;
  background: var(--ink);
  content: "";
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before { margin-left: 0; top: -6px; }
.burger span::after { margin-left: 0; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Ширины взяты из прогона по восьми экранам (1920 … 320):
   на 1200 перестаёт помещаться телефон, на 1100 — горизонтальное меню,
   на 600 кнопка ужимается до «Написать», на 360 снимается совсем
   (та же форма есть ниже, в первом экране). */
@media (max-width: 1200px) {
  .logo__role { display: none; }
  .header__tel { display: none; }
}
@media (max-width: 1100px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 74px 0 auto;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  /* main.js вешает класс на body, а не на меню — имя менять нельзя. */
  body.menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .btn__long { display: none; }
  .btn__short { display: inline; }
  /* Рядом стояли две одинаковые рамки — кнопка и бургер, — и шапка
     читалась как две кнопки подряд. Рамка снята с бургера: коробка в
     шапке остаётся одна, и видно, куда нажимать. */
  .burger { border-color: transparent; width: 40px; }
  .header .btn {
    padding: 9px 15px;
    font-size: 0.93rem;
    border-radius: 10px;
  }
  .header__side { gap: 4px; }
}
@media (max-width: 360px) {
  .header .btn { display: none; }
  .logo b { font-size: .98rem; }
}

/* --------------------------------------------------- 6. Первый экран

   Главное решение страницы. Раньше первый экран был плакатом: портрет во
   весь рост, слоган, две кнопки. Теперь это поле для ответа: вопрос задан,
   курсор мигает, примеры чужих ситуаций сменяются в подсказке. Человек
   начинает не с выбора раздела, а с рассказа — то есть ровно с того, зачем
   он пришёл. Написанное переносится в заявку внизу страницы.

   Фон — правая часть присланного макета: стена с оконным светом, шкаф,
   стол, растение в углу. Из макета вычищены и человек, и вся вёрстка, а
   остаток уведён в расфокус. Помещение выдуманное, и это стоит помнить:
   появится фотография реального кабинета — встанет на то же место без
   правок вёрстки. Слева на фон положена белая вуаль с плавным краем: без
   неё текст на светлой стене читается, но контраст падает ниже нормы.

   Экран поднят под шапку на её высоту и на столько же получает отступ
   сверху — иначе на стыке белой шапки с фоном комнаты шла линия во всю
   ширину. */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: calc(var(--head-h) * -1);
  padding-top: calc(var(--head-h) + 30px);
  padding-bottom: clamp(56px, 8vw, 104px);
  min-height: calc(min(100svh, 980px) + var(--head-h));
  background-color: #f3f4f6;
  background-image:
    /* Низ экрана уходит в белый: раньше и комната, и фигура обрывались
       ровно по границе секции, и через всю страницу шла горизонтальная
       линия среза. Теперь экран растворяется в следующей секции. */
    linear-gradient(to bottom,
      rgba(255,255,255,0) 78%,
      rgba(255,255,255,.55) 92%,
      #ffffff 100%),
    /* Вуаль держит читаемость заголовка слева и отпускает комнату справа.
       Раньше она гасила до 62 % ширины — на широком экране под ней
       оказывались и шкафы, и весь правый угол: комната превращалась в
       белёсое пятно. Теперь полное освобождение к 56 %. */
    linear-gradient(97deg,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.90) 28%,
      rgba(255,255,255,.40) 44%,
      rgba(255,255,255,.06) 52%,
      rgba(255,255,255,0) 58%),
    image-set(url("../img/room-1536.webp") type("image/webp"),
              url("../img/room-1100.jpg") type("image/jpeg"));
  background-size: cover, cover, cover;
  /* Комната прижата вправо: при cover на широком экране кадр растёт от
     центра, и шкафы уезжали за правый край — оставалась голая стена. */
  background-position: 50% 0, 50% 42%, 88% 44%;
  background-repeat: no-repeat;
}
/* Едва заметное пятно света за полем ввода. */
.hero::before {
  content: "";
  position: absolute;
  top: -260px; left: -180px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(163,33,27,.06), transparent 64%);
  pointer-events: none;
}

/* position: static — не опечатка. При relative абсолютная фигура считала
   высоту от колонки с текстом, и «во всю высоту» давало 690 px. */
.hero__inner {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
/* Левая колонка укрупнена 14.09 примерно на 6 % по общему масштабу:
   на широком экране она смотрелась мелко против свободного поля справа.
   Увеличены кегли всех строк и ширина колонки; заголовок поднят слабее
   остальных (+4 %), чтобы не перетягивать экран на себя. Кнопка не
   тронута — это общий компонент сайта, её размер держит все страницы. */
.hero__inner > div:first-child {
  max-width: 648px;
  position: relative;
  z-index: 2;
  /* Колонка отцентрована по высоте секции, и над первой строкой
     оставался тот же зазор, что и под последней, — слишком большой.
     Сдвиг на 25 px вверх убирает его, не трогая саму раскладку.
     Ниже 900 px секция перестаёт быть сеткой с центрированием, и сдвиг
     снимается — иначе текст полез бы под шапку. */
  top: -25px;
}

/* H1 и вопрос — разные элементы. H1 несёт ключевые слова, по которым
   страницу находят, и стоит мелкой строкой над вопросом. Человек читает
   вопрос, поисковик — H1. */
/* Две строки, а не абзац: первая говорит кто и где, вторая перечисляет
   направления. Обе набраны мелко и не спорят с вопросом ниже.
   Вторая строка легче первой по начертанию и на полтона светлее —
   перечисление не должно звучать так же твёрдо, как представление.
   Цвета держат контраст на фоне комнаты: 7,4 : 1 и 6,0 : 1. */
.hero__kw {
  font-family: 'Golos Text', 'Golos Fallback', sans-serif;
  font-size: 1.01rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin: 0 0 20px;
  /* 46ch считались от кегля самого блока, а первая строка набрана на 10 %
     крупнее — в Chromium она из-за этого переносилась на два ряда, в
     WebKit нет. 52ch дают запас в обоих движках; колонка всё равно
     ограничена своей шириной. */
  max-width: 52ch;
}
.hero__kw-a,
.hero__kw-b { display: block; }
.hero__kw-a {
  /* Кегль поднят на 10 %; начертание оставлено прежним (500) — строка
     должна стать заметнее размером, а не весом. */
  font-size: 1.11rem;
  font-weight: 500;
  color: #4d545e;
}
.hero__kw-b {
  font-weight: 400;
  font-size: 0.95rem;
  color: #5d646e;
  margin-top: 2px;
}
.hero__q {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 800;
  font-size: clamp(3.02rem, 6.86vw, 5.41rem);
  letter-spacing: -0.042em;
  line-height: 1.06;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero__q span { color: var(--red); }

.hero__sub {
  font-size: clamp(1.12rem, 1.48vw, 1.29rem);
  color: var(--grey);
  max-width: 44ch;
  margin-bottom: 10px;
}
/* Отдельная строка, а не часть абзаца: это обещание, и оно должно
   читаться голосом самого юриста — тёмным, а не серым. */
.hero__blunt {
  font-size: clamp(1.08rem, 1.38vw, 1.19rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 28px;
}

/* Поле ответа */
/* Высота карточки снижена 14.09 примерно на 8 % (245 → 226 px на 1512):
   ужаты вертикальные отступы и минимальная высота поля. Ни один элемент
   не снят, кегль текста и размер кнопки не тронуты — на удобство ввода
   это не влияет, поле по-прежнему принимает три строки без прокрутки. */
.ask {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 17px 20px 14px;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
/* 22.10.2026, по выбору Сергея (вариант «Б»): текст внутри карточки
   стоял на 21 px правее строк над и под ней (рамка 1 px + поле 20 px).
   Карточка вынесена влево на эти 21 px: подпись, поле ввода и строка
   с фото — на одной вертикали с заголовком и «Первые 15 минут»; рамка
   выступает влево. Правый край не сдвигается. Только от 1260 px: уже
   поле страницы сжимается до 28 px, и рамка подошла бы к краю экрана. */
@media (min-width: 1260px) {
  .ask { margin-left: -21px; }
}
.ask:focus-within {
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}
.ask label {
  display: block;
  font-size: 0.87rem;
  color: var(--grey);
  margin-bottom: 6px;
}
.ask textarea {
  width: 100%;
  border: 0;
  resize: none;
  font: inherit;
  font-size: 1.14rem;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  min-height: 84px;
  padding: 0;
}
.ask textarea:focus { outline: none; }
.ask textarea::placeholder { color: #b4bac2; }

.ask__foot .btn { white-space: nowrap; }
.ask__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ask__who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.91rem;
  color: var(--grey);
  margin-right: auto;
}
.ask__who img {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--grey);
}
.hero__meta b { color: var(--ink); font-weight: 500; }

/* Фигура. Снимок вырезан из исходного кадра, тень впечатана в сам файл
   (по краям оставлены прозрачные поля: 110 px слева, 50 сверху, 60
   справа) — CSS-фильтр рисовал бы её в границах картинки и обрывал
   прямой линией по краю. Кадр прижат к верху, лишнее уходит вниз за
   границу секции и растворяется маской точно на стыке с соседней
   секцией. Маска висит на <picture>, а не на контейнере: на контейнере
   она обрезала бы подпись, вынесенную влево за край. */
.hero__figure {
  position: absolute;
  right: 30px;
  top: 0;
  bottom: 0;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--head-h) + 6px);
  pointer-events: none;
  z-index: 1;
}
/* Маска низа фигуры.

   История в двух шагах. Сначала она была линейной и короткой (82 -> 98 %):
   костюм обрывался в полосе полтораста пикселей ровной горизонталью, и
   это читалось как вырезанный снимок. Затем затухание растянули до 64 %
   и перевели на кривую — срез пропал, но человек стал растворяться в
   белом слишком рано: ниже пояса он уходил в туман.

   Затухание сначала укоротили вдвое (плотная фигура до 78 % вместо 64 %),
   затем добавили мягкости: старт сдвинут на 74 %, стопов стало больше,
   хвост спускается положе. Полоса перехода — около 260 px. Плотность
   при этом не вернулась к прежней: альфа в середине полосы выше, чем
   была в «туманной» версии. Кривая (а не прямая) оставлена: прямая даёт
   видимую ступень там, где градиент начинается.

   mask-repeat и mask-size заданы явно: по умолчанию маска повторяется,
   а картинка выше бокса на 1 % — на стыке тайлов шла тонкая полоса.

   translateY поднимает снимок на 45 px, не меняя его размера: высота
   задана на <img>, а сдвиг висит на <picture>. Через padding это дало бы
   не подъём, а увеличение — контейнер растянулся бы вместе с картинкой. */
.hero__figure picture {
  display: block;
  height: 100%;
  transform: translateY(-45px);
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 74%,
    rgba(0,0,0,.98) 79%,
    rgba(0,0,0,.94) 83.5%,
    rgba(0,0,0,.86) 87.5%,
    rgba(0,0,0,.73) 91%,
    rgba(0,0,0,.55) 94%,
    rgba(0,0,0,.36) 96.5%,
    rgba(0,0,0,.18) 98.5%,
    rgba(0,0,0,.06) 99.5%,
    rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 74%,
    rgba(0,0,0,.98) 79%,
    rgba(0,0,0,.94) 83.5%,
    rgba(0,0,0,.86) 87.5%,
    rgba(0,0,0,.73) 91%,
    rgba(0,0,0,.55) 94%,
    rgba(0,0,0,.36) 96.5%,
    rgba(0,0,0,.18) 98.5%,
    rgba(0,0,0,.06) 99.5%,
    rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.hero__figure img {
  height: 101%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom;
  /* В файле вырезки слева остался обрезанный чёрный ореол: прозрачность
     идёт нулём до 8,0 % ширины и там же скачком встаёт на 4 % — на светлом
     фоне это читалось вертикальной полоской. Во всех трёх размерах файла
     цифры одинаковы: ореол с 8,00 %, тело с 11,85 %. Перо гасит ореол от
     7 % до 11,8 % и к телу подходит уже единицей — фигуры оно не касается.
     Маска здесь на <img>, а не на <picture>: та уже держит нижнее
     растворение, и вложенность перемножает их без mask-composite. */
  -webkit-mask-image: linear-gradient(to right,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 7%,
    rgba(0,0,0,.20) 8.4%,
    rgba(0,0,0,.45) 9.4%,
    rgba(0,0,0,.68) 10.3%,
    rgba(0,0,0,.86) 11%,
    rgba(0,0,0,.96) 11.5%,
    rgba(0,0,0,1) 11.8%,
    rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to right,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 7%,
    rgba(0,0,0,.20) 8.4%,
    rgba(0,0,0,.45) 9.4%,
    rgba(0,0,0,.68) 10.3%,
    rgba(0,0,0,.86) 11%,
    rgba(0,0,0,.96) 11.5%,
    rgba(0,0,0,1) 11.8%,
    rgba(0,0,0,1) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
/* Круг за плечами и кольцо по его краю сняты: в помещении они читались
   бы пятном на стене. Разметка (<span class="ring">) оставлена. */
.hero__figure::before,
.hero__figure .ring { display: none; }

/* Дымка поверх низа фигуры. Одной маски мало: она гасит фигуру ровно
   по её же контуру, и до самого исчезновения у брюк остаётся острый
   вырезанный край. Эта подложка лежит НАД снимком и шире его бокса —
   она снимает контур вместе с куском комнаты вокруг, как воздух в
   глубине кадра. Цвет тот же, в который уходит низ секции, поэтому
   стыка с соседним блоком не видно.

   pointer-events наследуется от .hero__figure (none) — клики проходят
   насквозь. */
.hero__figure::after {
  content: "";
  position: absolute;
  /* Слева дымка выходит за бокс далеко и гасится собственной маской:
     без неё по её левому краю шла вертикальная ступень в 12 единиц
     яркости (241 → 253) — тот самый шов, который видно на светлой
     стене. Справа она уходит за пределы экрана, там гасить нечего. */
  left: -30%;
  right: -45%;
  bottom: 0;
  /* Высота и плотность уменьшены вдвое: прежние 44 % и почти сплошной
     белый в самом низу давали ощущение, что человек уходит в туман.
     Теперь дымка только снимает контур, а не гасит фигуру. Высота потом
     поднята с 30 до 35 %: та же плотность, растянутая дальше, читается
     мягче. */
  height: 35%;
  -webkit-mask-image: linear-gradient(to right,
    rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 14%, rgba(0,0,0,.55) 26%,
    rgba(0,0,0,.85) 36%, #000 46%, #000 100%);
  mask-image: linear-gradient(to right,
    rgba(0,0,0,0) 0%, rgba(0,0,0,.18) 14%, rgba(0,0,0,.55) 26%,
    rgba(0,0,0,.85) 36%, #000 46%, #000 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0)   0%,
    rgba(255,255,255,.03) 22%,
    rgba(255,255,255,.08) 40%,
    rgba(255,255,255,.17) 56%,
    rgba(255,255,255,.28) 70%,
    rgba(255,255,255,.38) 82%,
    rgba(255,255,255,.46) 92%,
    rgba(255,255,255,.50) 100%);
  z-index: 2;
}

/* Тихая подпись у плеча («Частнопрактикующий юрист») снята 14.09
   вместе с разметкой: то же самое стоит в шапке — «Сергей Будаков ·
   юрист, Екатеринбург», — и на первом экране это был второй заголовок
   при одном человеке. Правила удалены целиком, мёртвых селекторов
   не оставлено. */

@media (max-width: 1360px) {
  .hero__figure { right: -20px; }
  .hero__figure img { height: 97%; }
}
/* Ниже 1240 фигура раньше уезжала за правый край на 90 px. В файле
   справа от силуэта только 9,5 % прозрачного поля, поэтому за экран
   уходило ещё и сорок с лишним пикселей самого человека: в неполном
   окне он показывался обрезанным по плечу. Экран уже не даёт держать
   прежний рост — значит фигура должна уменьшаться, а не съезжать.

   Здесь другая механика, чем выше по ширинам: фигура прижата к низу
   секции (align-items: flex-end) и задана в пикселях, а не в процентах
   от высоты. Так при любом уменьшении она продолжает стоять на том же
   основании, а не повисает в воздухе. Сдвиг translateX(9.5 %) гасит
   прозрачное поле в файле: силуэт встаёт ровно по краю экрана и не
   зависит от того, какой размер выбран. */
@media (max-width: 1240px) {
  .hero__figure {
    right: 0;
    align-items: flex-end;
    padding-top: 0;
  }
  .hero__figure picture {
    height: auto;
    /* Здесь фигура стоит на низу секции, и подъём на 30 px не нужен:
       translateY сбросил бы её с основания. Остаётся только боковой
       сдвиг, гасящий прозрачное поле файла. */
    transform: translateX(9.5%);
  }
  .hero__figure img { height: 820px; }
  /* Дымка задана в пикселях, а не в процентах от секции: ниже 1240
     фигура фиксированной высоты, а секция тянется за экраном, и доля
     в процентах накрывала бы человека уже от груди. Значения уменьшены
     вдвое вместе с основной дымкой. */
  .hero__figure::after { height: 290px; }
}
@media (max-width: 1100px) {
  .hero__figure img { height: 700px; }
  .hero__figure::after { height: 250px; }
}
@media (max-width: 960px) {
  .hero__figure img { height: 620px; }
  .hero__figure::after { height: 220px; }
}
/* Ниже 1100 фигура чуть приглушена: на узких экранах она подходит близко
   к тексту, и полная плотность костюма перетягивала внимание. */
@media (max-width: 1100px) {
  .hero__figure { opacity: .96; }
  .hero__inner > div:first-child { max-width: 572px; }
}
/* На телефоне фигура не прячется — она и есть доказательство, что за
   сайтом стоит человек. Но встаёт в поток под текстом, справа. */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
}
/* Телефон. Фигура снята совсем.

   История правки: сначала снимок вставал отдельным куском под формой на
   белом, потом под него довели комнату и прижали к правому краю. Стало
   аккуратнее, но суть не изменилась: в одну колонку человек в полный
   рост стоит сбоку от пустого поля и ни на что не работает — на узком
   экране рядом с ним нечему быть. Лицо на первом экране осталось: оно в
   строке «Читаю и отвечаю лично» у поля рассказа, где оно и нужно —
   рядом с обещанием ответить.

   Комната за текстом оставлена: без неё первый экран становится листом
   белой бумаги. */
@media (max-width: 900px) {
  .hero {
    display: block;
    min-height: 0;
    padding-top: calc(var(--head-h) + 22px);
    padding-bottom: 30px;
    background-image:
      linear-gradient(to bottom,
        rgba(255,255,255,0) 72%,
        rgba(255,255,255,.55) 90%,
        #ffffff 100%),
      linear-gradient(180deg,
        rgba(255,255,255,.97) 0%,
        rgba(255,255,255,.94) 40%,
        rgba(255,255,255,.78) 66%,
        rgba(255,255,255,.6) 100%),
      image-set(url("../img/room-1536.webp") type("image/webp"),
                url("../img/room-1100.jpg") type("image/jpeg"));
    /* 96 %, а не центр: при cover на узком экране в кадр попадала голая
       стена, шкафы оставались за правым краем */
    background-position: 50% 0, 50% 0, 96% 46%;
  }
  .hero__figure { display: none; }
  /* строки под формой лежат не на белом, а на комнате: со светло-серым
     контраст падал до 4,1 */
  .hero__meta { color: #4d545e; }
  /* центрирования здесь нет — подъём колонки снимается */
  .hero__inner > div:first-child { top: 0; }
}
/* 22.10.2026, по просьбе Сергея: фигура на первом экране крупнее —
   голова у меню, плечо на шкафу справа. Снимок тот же (portrait-cut5),
   но размер задан шириной, а не высотой. Вторая итерация («ещё
   крупнее»): ширина 81vw − 175px — левая рука уходит под карточку
   с формой (форма белая и лежит выше, z-index 2), правое плечо на
   широких экранах частично за краем экрана. Заголовок и лид фигура не
   задевает. padding-top подобран так, чтобы волосы были в ~5 px под
   меню на любой ширине (верх волос — 3,4 % высоты файла). Кадр прижат
   к верху под меню и к правому краю
   экрана, сдвинут на 6 % своей ширины: справа от плеча в файле 6 %
   пустоты, так плечо доходит до края и ложится на шкаф. Ниже пояса
   снимок уходит за низ секции и растворяется прежней маской и дымкой.
   До 1100 px включительно остаётся прежняя раскладка (фигура стоит на
   низу секции): при ширине, зажатой текстом, кадр сверху не доставал бы
   до низа и обрывался в воздухе. */
@media (min-width: 1101px) {
  .hero__figure {
    right: 0;
    align-items: flex-start;
    padding-top: calc(89px - 4.3vw);
  }
  .hero__figure picture {
    height: 100%;
    transform: none;
  }
  .hero__figure img {
    height: auto;
    width: calc(81vw - 175px);
    transform: translateX(6%);
  }
  .hero__figure::after { height: 30%; }
}

@media (max-width: 620px) {
  .ask__foot { flex-wrap: wrap; gap: 12px; }
  .ask__who { margin-right: 0; flex: 1 0 100%; }
  .ask__foot .btn { width: 100%; }
  /* Те же −9 % по высоте, что и на широком экране. */
  .ask textarea { min-height: 92px; }
}
/* На 360×740 кнопка «Продолжить» уходила за нижний край экрана. */
@media (max-width: 430px) {
  .hero { padding-top: calc(var(--head-h) + 14px); }
  .hero__kw { margin-bottom: 12px; font-size: .88rem; }
  .hero__q { margin-bottom: 14px; }
  .hero__sub { margin-bottom: 20px; font-size: 1rem; }
  .ask { padding: 14px 16px 12px; }
  .ask textarea { min-height: 80px; }
}

/* --------------------------------------------- 7. Стена фраз «своими словами»

   Вместо плиток с названиями отраслей — то, как люди говорят на самом деле.
   Каждая фраза ведёт в свой разбор, так что перелинковка не только цела,
   но и стала шире. Это главный навигационный элемент страницы, поэтому
   начертание плотнее обычного, а при наведении появляется стрелка. */

.say__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}
.say__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 36px 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 500;
  line-height: 1.35;
  background: transparent;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.say__item::before {
  content: "";
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper-3);
  transform: translateY(-2px);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.say__item::after {
  content: "→";
  position: absolute;
  right: 16px;
  opacity: 0;
  transform: translateX(-6px);
  color: var(--red);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.say__item:hover {
  background: var(--paper);
  box-shadow: var(--shadow);
}
.say__item:hover::before { background: var(--red); }
.say__item:hover::after { opacity: 1; transform: none; }
.say__item--ask {
  color: var(--red);
  font-weight: 500;
}
.say__item--ask::before { background: var(--red-wash); }

/* Вкладки «Для физических лиц / Для юридических лиц и ИП» (22.10.2026).
   Без JS вкладки не нужны: видны обе группы с подписями (.say__caption);
   со скриптом подписи прячутся — их роль играют вкладки. */
.say__tabs {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.say-js .say__tabs { display: flex; }
.say__tabs button {
  font: inherit;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.say__tabs button:hover { border-color: var(--ink); }
.say__tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.say__caption {
  margin: 0 0 12px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--grey);
}
/* Подсказка под «Вашими словами»: что сделать посетителю, одно предложение (22.10.2026). */
.say__how {
  margin: 18px 0 0;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--grey);
}
.say__panel + .say__panel { margin-top: 30px; }
.say-js .say__caption { display: none; }
.say-js .say__panel + .say__panel { margin-top: 0; }

.say__rest {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: baseline;
  font-size: 0.94rem;
}
.say__rest > span { color: var(--grey); }
.say__rest a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.say__rest a:hover { border-color: var(--red); color: var(--red); }

@media (max-width: 760px) {
  .say__grid { grid-template-columns: 1fr; gap: 4px; }
  .say__item { padding: 13px 36px 13px 14px; }
}

/* ---------------------------------------------------------- 8. Навигатор

   Разметку рисует navigator.js, имена классов оставлены прежние.
   Тёмная секция: это единственное место, где страница что-то предполагает
   о деле, и она должна читаться как отдельная комната. */

.wiz__panel {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--r-lg);
  padding: 32px 32px 28px;
}
.wiz__step {
  font-size: 0.82rem;
  color: var(--grey-light);
  margin: 0 0 12px;
}
.wiz__q {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 800;
  letter-spacing: -0.028em;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  margin: 0 0 24px;
}
.wiz__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wiz__opt {
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--ink-3);
  border-radius: 12px;
  padding: 13px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.wiz__opt:hover { border-color: #59606b; background: rgba(255,255,255,.07); }
.wiz__opt[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
}
.wiz__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}
.wiz__back {
  font: inherit;
  font-size: 0.94rem;
  color: var(--grey-light);
  background: none;
  border: 0;
  padding: 10px 2px;
  cursor: pointer;
}
.wiz__back:hover { color: #fff; }

.wiz__result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.wiz__col {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--ink-3);
  border-radius: 14px;
  padding: 22px 20px;
}
.wiz__col h4 {
  font-family: 'Golos Text', 'Golos Fallback', sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 0.84rem;
  color: var(--red-bright);
  margin: 0 0 12px;
}
.wiz__col ul { margin: 0; padding-left: 18px; }
.wiz__col li {
  font-size: 0.96rem;
  color: #d8dbe0;
  line-height: 1.55;
  margin-bottom: 10px;
}
.wiz__col li::marker { color: #4d545e; }
.wiz__col a { color: #fff; }
.wiz__disclaimer {
  font-size: 0.88rem;
  color: var(--grey-light);
  margin: 18px 0 0;
  max-width: 76ch;
}
.wiz__disclaimer a { color: #fff; }

@media (max-width: 880px) {
  .wiz__result { grid-template-columns: 1fr; }
  .wiz__panel { padding: 24px 20px; }
}

/* ------------------------------------------------------------- 9. Сергей

   Кадр обрезан по формату 3:4 и прилипает к верху колонки, пока читается
   текст: иначе снимок тянулся на всю свою высоту и оставлял под текстом
   полметра пустоты. */

.who__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.who__photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  margin: 0;
  aspect-ratio: 3 / 4;
  max-width: 380px;
  position: sticky;
  top: 100px;
}
.who__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
}
.who__text p { color: var(--grey); max-width: 62ch; }
.who__text p.first {
  font-size: 1.16rem;
  color: var(--ink);
  margin-bottom: 22px;
}
.who__text a:not(.arrow) { color: var(--ink); text-decoration-color: var(--line); }
.who__text a:not(.arrow):hover { color: var(--red); }

.who__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 26px 0 24px;
  padding: 0;
  list-style: none;
}
.who__facts li {
  font-size: 0.9rem;
  color: var(--grey);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 8px 14px;
}
@media (max-width: 900px) {
  .who__inner { grid-template-columns: 1fr; gap: 32px; }
  .who__photo { position: static; aspect-ratio: 4 / 3; max-width: 100%; }
  .who__photo img { object-position: 50% 22%; }
}

/* --------------------------------------------------------------- 10. Дела */

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.case {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.case__tag {
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 14px;
}
.case h3 {
  font-size: 1.2rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.case__meta {
  font-size: 0.86rem;
  color: var(--grey);
  margin-bottom: 18px;
}
/* Плашка результата должна кончаться на одной высоте во всех карточках.
   У неё margin-top: auto, поэтому тянуться до низа карточки должен сам
   <dl>, а не только карточка. */
.case dl { margin: 0; display: flex; flex-direction: column; flex: 1; }
.case dt {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 4px;
}
.case dd {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.case__result {
  margin-top: auto;
  background: var(--red-wash);
  border-radius: 12px;
  padding: 14px 16px;
}
.case__result dt { color: var(--red); }
.case__result dd { margin: 0; font-weight: 500; }
/* Результат ведёт на отзыв доверителя (22.10.2026): ссылка внизу плашки,
   её ::after растянут на всю плашку. */
.case__result--link { position: relative; transition: background .18s var(--ease); }
.case__result--link:hover { background: #f6dcda; }
.case__result .case__go { margin-top: 10px; font-weight: 400; font-size: .88rem; }
.case__go a { color: var(--red-mark); text-decoration: none; }
.case__go a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.case__go i { display: inline-block; margin-left: 6px; font-style: normal; transition: transform .18s var(--ease); }
.case__result--link:hover .case__go i { transform: translateX(4px); }
.case__result--link:has(a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.case__go a:focus-visible { outline: none; }
/* Зеркало «дело ↔ отзыв» на главной (22.10.2026): плавная прокрутка уже есть
   (html { scroll-behavior: smooth }); цель не прячется под шапку и подсвечивается. */
.case, .rev { scroll-margin-top: calc(var(--head-h) + 24px); }
.case:target, .rev:target { box-shadow: 0 0 0 3px var(--red-mark), var(--shadow); animation: mirror-arrive 1.6s var(--ease) 1; }
@keyframes mirror-arrive { 0% { box-shadow: 0 0 0 12px rgba(215,38,30,.22), var(--shadow); } 100% { box-shadow: 0 0 0 3px var(--red-mark), var(--shadow); } }
@media (prefers-reduced-motion: reduce) { .case:target, .rev:target { animation: none; } }

@media (max-width: 980px) {
  .cases__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- 11. Что будет дальше

   Единственное место, где нумерация оправдана: это настоящая
   последовательность, и порядок шагов несёт смысл. */

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--ink-3);
}
.step:last-child { border-bottom: 1px solid var(--ink-3); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red-bright);
}
.step h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}
.step p { color: var(--grey-light); margin: 0; }

@media (max-width: 820px) {
  .step { grid-template-columns: 44px 1fr; gap: 12px 16px; }
  .step p { grid-column: 2; }
}

/* -------------------------------------------------------------- 12. Цены */

.price__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}
.price__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.price__row b {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.price__row--free b { color: var(--red); }
.price__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 34px;
}
@media (max-width: 760px) {
  .price__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- 13. Что делать сегодня

   Без номеров: это не последовательность, а пять независимых вещей.
   Нумеровать их значило бы соврать читателю о характере списка. */

.today__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.today__list { margin: 0; padding: 0; list-style: none; }
.today__list li {
  position: relative;
  padding: 0 0 20px 30px;
  font-size: 1.04rem;
  line-height: 1.5;
}
.today__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--red);
}
/* «Первая помощь» (22.10.2026): каждый пункт целиком — ссылка на свою тему.
   Признак ссылки — красная стрелка в конце; при наведении текст краснеет,
   стрелка сдвигается. */
.today__list a.today__link {
  display: block;
  color: var(--ink);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.today__link i {
  display: inline-block;
  margin-left: 8px;
  font-style: normal;
  color: var(--red-mark);
  transition: transform .18s var(--ease);
}
.today__list a.today__link:hover { color: var(--red-mark); }
.today__link:hover i { transform: translateX(4px); }
.today__link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .today__link i { transition: none; } }
@media (max-width: 860px) {
  .today__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* -------------------------------------------------------- 14. Конструктор */

.tool__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tool__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  background: var(--paper-2);
  border-radius: var(--r);
  padding: 24px 22px;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.tool__item:hover { background: var(--paper-3); transform: translateY(-2px); }
.tool__item h3 { font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1.25; }
.tool__item p { font-size: 0.92rem; color: var(--grey); margin: 0; }
.tool__item span {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.82rem;
  color: var(--red);
}
.tool__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  margin-top: 32px;
}
@media (max-width: 1000px) { .tool__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tool__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ 15. Отзывы */

.rev__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.rev {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.rev p {
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.rev b { display: block; font-weight: 500; }
.rev span { font-size: 0.86rem; color: var(--grey); }
@media (max-width: 900px) { .rev__grid { grid-template-columns: 1fr; } }

/* Отзыв-ссылка (22.10.2026): карточка целиком ведёт на разбор похожей
   ситуации. Ссылка — внизу карточки, её ::after растянут на всю карточку,
   поэтому кликается любое место, а в дереве доступности — одна ссылка. */
.rev--link {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.rev--link > span { margin-bottom: auto; }
.rev__go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0;
}
.rev__go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rev__go i {
  font-style: normal;
  color: var(--red-mark);
  transition: transform .25s var(--ease);
}
.rev--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.rev--link:hover .rev__go i { transform: translateX(5px); }
.rev__go:focus-visible { outline: none; }
.rev--link:has(.rev__go:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .rev--link, .rev__go i { transition: none; }
  .rev--link:hover { transform: none; }
}


/* ------------------------------------------------- 16. Контакты и форма */

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.contact__list { margin: 28px 0 0; padding: 0; list-style: none; }
.contact__list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-3);
}
.contact__list span {
  display: block;
  font-size: 0.84rem;
  color: var(--grey-light);
  margin-bottom: 4px;
}
.contact__list a, .contact__list i {
  font-style: normal;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
}
.contact__list a:hover { color: var(--red-bright); }
.contact__ways { display: flex; gap: 12px; margin-top: 24px; }
.contact__ways a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.94rem;
  color: #fff;
  border: 1px solid var(--ink-3);
  border-radius: 12px;
  padding: 11px 16px;
}
.contact__ways a:hover { border-color: #fff; }

.form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 30px 30px 28px;
}
.form h3 { font-size: 1.45rem; margin-bottom: 6px; }
.form__hint { font-size: 0.92rem; color: var(--grey); margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.88rem;
  color: var(--grey);
  margin-bottom: 7px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
/* Список направлений — со своей стрелкой: системная у каждого браузера
   своя и всюду выглядит чужой. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23656d78' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: #aab0b9; }
.field__error {
  display: none;
  font-size: 0.84rem;
  color: var(--red);
  margin-top: 6px;
}
.field.has-error input,
.field.has-error textarea { border-color: var(--red); background: var(--red-wash); }
.field.has-error .field__error { display: block; }
.field--honeypot { position: absolute; left: -9999px; }
.field__note { font-size: 0.86rem; color: var(--grey); margin-top: 8px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--grey);
  margin: 4px 0 20px;
  cursor: pointer;
}
.consent input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; }
.consent a { color: var(--ink); }
.consent.has-error { color: var(--red); }

.form__status {
  margin-top: 18px;
  font-size: 0.94rem;
  background: var(--paper-2);
  border-radius: 12px;
  padding: 16px 18px;
}
.form__ways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.form__way {
  display: inline-flex;
  text-decoration: none;
  font-size: 0.92rem;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
}
.form__way--plain { background: transparent; color: var(--ink); border: 1px solid var(--line); }

@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; gap: 34px; }
  .form { padding: 24px 20px; }
}

/* ------------------------------------------------------------- 17. Подвал */

.footer {
  background: #0f1114;
  color: #fff;
  padding-block: 72px 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h2 {
  font-family: 'Golos Text', 'Golos Fallback', sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 0.84rem;
  color: var(--grey-light);
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: #d8dbe0; text-decoration: none; font-size: 0.95rem; }
.footer a:hover { color: #fff; }
.footer__about p { color: var(--grey-light); font-size: 0.95rem; max-width: 34ch; }
/* В подвале стоит полная замкóвая композиция логотипа: монограмма,
   красная черта, имя и подпись — ровно так, как в присланном файле.
   Монограмма здесь в белом варианте, красный — тот, что сайт уже держит
   для тёмного фона (--red-bright, 5,5 : 1 на графите; обычный --red на
   #0f1114 даёт 2,6 : 1 и на черте читался бы грязным пятном). */
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
  text-decoration: none;
  color: #fff;
}
.footer__logo-mark {
  display: block;
  height: 44px;
  width: auto;
  flex: none;
}
.footer__logo-text {
  display: flex;
  flex-direction: column;
  padding-left: 15px;
  border-left: 2px solid var(--red-mark);
  line-height: 1.15;
}
.footer__logo-text b {
  font-family: 'Manrope', 'Manrope Fallback', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.footer__logo-text span {
  margin-top: 5px;
  font-size: 0.67rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-light);
}
@media (max-width: 420px) {
  .footer__logo { gap: 12px; }
  .footer__logo-mark { height: 38px; }
  .footer__logo-text { padding-left: 12px; }
  .footer__logo-text span { letter-spacing: 0.1em; }
}
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--grey-light);
}
/* Серый для тёмной среды: серый для светлого фона давал на графите
   3,4 : 1 при требуемых 4,5. */
.footer__disclaimer {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--grey-light);
  max-width: 90ch;
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- 18. Появление

   Одна общая анимация на всю страницу: блок выезжает на 14 px и проявляется.
   Больше движения здесь не нужно — сайт про спокойствие. */
.rise { opacity: 0; transform: translateY(14px); }
.rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .rise, .rise.is-in { opacity: 1; transform: none; transition: none; }
}
