/* Дизайн-система и каркас публичных страниц (#43).

   Источник значений — утверждённый эталон docs/design/approved-2026-09-08/style.css.
   Здесь только фундамент: токены, база, контейнер, шапка, подвал, светлые и тёмные
   секции и общие компоненты. Вёрстка главной (#44), движения (#45) и страниц услуг
   (#46) добавляется поверх.

   Восемь токенов — палитра проекта. Локальные оттенки внутри компонентов (границы,
   плейсхолдеры, ховеры) взяты из эталона как есть: handoff требует «точные локальные
   оттенки брать из CSS», а не сводить их к ближайшему токену.

   Инлайновых стилей нет: политика CSP публичных страниц держит style-src 'self'. */


/* Honeypot формы заявки. Скрытие вынесено из инлайнового `style`: CSP держит
   `style-src 'self'` без `unsafe-inline`, инлайн не применялся — и поле «Не
   заполняйте это поле» видел посетитель, а заполнивший его человек уходил в спам
   (#113). `display:none` и `hidden` не годятся: часть ботов их уважает, ловушка
   должна оставаться в потоке и быть заполнимой программно. */
.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


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

:root {
  --bg: #202922;
  --surface: #2b382f;
  --cream: #f1eee4;
  --ink: #26362b;
  --text: #f3f0e5;
  --muted: #c0c8bb;
  --accent: #c5b77f;
  --line: #475448;
  --serif: 'Prata', Georgia, serif;
  --sans: 'Onest', 'Onest Fallback', system-ui, sans-serif;
}


/* --- База и типографика ----------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Заголовки не переносятся по слогам (#195). `hyphens: auto` давал на телефоне
   «Юрист в Реуто-ве» и «В сложной ситу-ации»: слово рвалось ради ровного края, и
   читать заголовок становилось труднее, чем терпеть рваную правую границу.
   `manual` оставляет перенос только там, где его поставил редактор мягким дефисом.

   `break-word` вместо `anywhere` — это предохранитель, а не приём вёрстки: слово
   рвётся, только если целиком не помещается в строку и иначе ушло бы за экран.
   `anywhere` рвал слова при первой же возможности. */
h1,
h2 {
  font-weight: 400;
  overflow-wrap: break-word;
  hyphens: manual;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 4.5vw, 66px);
  line-height: 1.27;
  letter-spacing: -2.7px;
}

h2 {
  font-family: var(--serif);
  font-size: 43px;
  line-height: 1.3;
  letter-spacing: -1.8px;
}

h3 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 500;
}

em {
  font-style: normal;
  color: var(--accent);
}


/* --- Фокус ------------------------------------------------------------------ */

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #a69761;
  outline-offset: 2px;
}


/* --- Контейнер и секции ------------------------------------------------------ */

.wrap {
  width: min(1280px, calc(100% - 100px));
  margin: auto;
}

/* Смысловой поток страницы до её вёрстки (#44/#46): контейнер и вертикальные поля.
   Когда страница получит свои секции, `wrap` уедет с `main` на них. */
main.wrap {
  padding: 40px 0 72px;
}

.light-section {
  background: var(--cream);
  color: var(--ink);
}

.dark-section {
  background: var(--bg);
  color: var(--text);
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
}

.light-section .eyebrow {
  color: #5c6957;
}

.tiny-line {
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}


/* --- Шапка ------------------------------------------------------------------- */

.site-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* `min-width: 0` и обрезка: название берётся из org_profile, его длину каркас не
   контролирует, а без этого длинное название распирает документ на 320 px. */
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 600;
  white-space: nowrap;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -5px;
  font-weight: 400;
}

.brand-mark span {
  color: var(--accent);
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .015em;
  color: var(--muted);
  margin-top: 4px;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--accent);
}

.header-phone {
  font-size: 14px;
}

.mobile-menu {
  display: none;
}

/* Кнопка меню (#194): значок плюс слово. «☰»/«×» в одиночку закрытия не показывали,
   поэтому рядом со значком стоит подпись — «Меню», а у открытого меню «Закрыть».
   Площадь нажатия задана min-width/min-height: подпись делает кнопку шире минимума,
   но меньше 48×48 она не станет ни на одной ширине экрана. `z-index` поднимает её
   над подложкой — иначе закрыть меню самой кнопкой было бы нельзя. */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  position: relative;
  z-index: 21;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: none;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-toggle-icon {
  font-size: 15px;
  line-height: 1;
}

.menu-toggle-icon::after {
  content: "☰";
}

.mobile-menu[open] .menu-toggle-icon::after {
  content: "×";
  font-size: 19px;
}

.mobile-menu[open] .menu-toggle {
  border-color: var(--accent);
  color: var(--accent);
}

/* Подпись переключает CSS, а не скрипт: без JS меню закрывается той же кнопкой,
   и слово на ней всё равно меняется. */
.mobile-menu:not([open]) .menu-toggle-label--close {
  display: none;
}

.mobile-menu[open] .menu-toggle-label--open {
  display: none;
}

/* Подложка: клик мимо панели закрывает меню и заодно видно, что страница под
   панелью сейчас не работает. Ставит её site.js — см. `_header.html`.
   Оттенок не новый: это тот же `#101c15aa`, которым эталон затемняет фон под
   диалогом (`.site-dialog::backdrop`). */
.menu-scrim {
  display: none;
}

.mobile-menu[open] .menu-scrim {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 15;
  background: #101c15aa;
}


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

.site-footer {
  background: #1a241d;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1.2fr 1fr;
  gap: 25px;
  padding-top: 35px;
  padding-bottom: 35px;
  align-items: start;
}

.footer-top small {
  font-size: 8px;
  letter-spacing: .1em;
  color: #a7b29f;
}

.footer-top p {
  font-size: 11px;
  margin-top: 9px;
  line-height: 1.8;
  color: #c8d0be;
}

.footer-top .quiet-link {
  margin-top: 12px;
  justify-self: end;
  font-size: 11px;
}

.footer-bottom {
  border-top: 1px solid #ffffff12;
  padding-top: 18px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: #a2af9a;
}


/* --- Кнопки и ссылки ---------------------------------------------------------- */

/* Кнопка отправки общей формы заявки (§4.2) класса не несёт — разметка формы одна
   на живую /zayavka и на пререндер, и её поля сверяются побайтово. Красим селектором. */
.button,
.form-panel button[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 16px 20px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s, transform .2s;
}

.button span {
  font-size: 20px;
  line-height: 1;
}

.primary,
.form-panel button[type=submit] {
  background: var(--accent);
  color: #243027;
}

.primary:hover,
.form-panel button[type=submit]:hover {
  background: #d7c995;
  transform: translateY(-2px);
}

.quiet-link {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.quiet-link:hover {
  color: var(--accent);
}

/* По умолчанию — для тёмного фона: на гео-странице ссылка стоит в тёмной секции, и
   тёмно-зелёный текст давал контраст 1,5:1 (аудит доступности). Светлые секции
   переопределяют цвет ниже (`.light-section .text-link`). */
.text-link {
  font-size: 12px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  white-space: nowrap;
}

.text-link span {
  margin-left: 20px;
}


/* --- Карточки ------------------------------------------------------------------ */

.card {
  background: #faf8f0;
  border: 1px solid #dce0d2;
  border-radius: 5px;
  padding: 25px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

a.card,
button.card {
  cursor: pointer;
}

a.card:hover,
button.card:hover {
  border-color: #7b8e77;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px #2029220b;
}

/* Отступ справа — под стрелку в углу карточки: без него длинный заголовок
   заезжает под неё (в эталоне место занимала иконка над заголовком). */
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  padding-right: 30px;
}

.card p {
  font-size: 12px;
  color: #5c6957;
  line-height: 1.7;
  max-width: 28ch;
}

.card-arrow {
  position: absolute;
  right: 23px;
  top: 23px;
  color: #778871;
  font-size: 20px;
}


/* --- Поля формы ------------------------------------------------------------------ */

.form-panel {
  background: var(--surface);
  padding: 30px;
  border: 1px solid #485a48;
  border-radius: 5px;
}

.form-panel label:not(.check-label) {
  display: block;
  font-size: 11px;
  color: #d3ddcc;
  margin-bottom: 18px;
}

.form-panel input:not([type=checkbox]),
.form-panel textarea {
  width: 100%;
  background: #243027;
  border: 1px solid #596951;
  color: var(--text);
  padding: 13px 14px;
  border-radius: 3px;
  margin-top: 7px;
  font-size: 13px;
}

.form-panel input::placeholder,
.form-panel textarea::placeholder {
  color: #97a68e;
}

.form-panel textarea {
  resize: vertical;
}

.form-panel .button,
.form-panel button[type=submit] {
  width: 100%;
}

.optional {
  float: right;
  font-size: 9px;
  color: #aab79d;
}

.check-label {
  font-size: 10px;
  color: #c2ceb8;
  display: flex;
  gap: 10px;
  line-height: 1.7;
  margin: 5px 0 18px;
}

.check-label input {
  margin: 3px 0 0;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-error {
  font-size: 12px;
  color: #ffc5ac;
  margin: 10px 0;
}

.form-error:empty {
  display: none;
}

/* Ошибка поля рядом с полем: та же палитра, что у общей ошибки формы. */
.field-error {
  display: block;
  font-size: 12px;
  color: #ffc5ac;
  margin-top: 6px;
}


/* --- Переключатель аудитории ------------------------------------------------------ */

/* Состояние держит radio, а не класс от JS: §10 п.11 требует чистый CSS через
   сиблинг-селектор, чтобы оба набора услуг оставались в DOM и индексировались. */
.segmented {
  display: inline-flex;
  background: #e5e5d9;
  border: 1px solid #d2d8c9;
  padding: 4px;
  border-radius: 5px;
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 3px;
  color: #5a6856;
  font-size: 12px;
  min-height: 40px;
  cursor: pointer;
}

.segmented input:checked + label {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 2px 5px #26362b13;
}

.segmented input:focus-visible + label {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}


/* --- Диалог и тост ------------------------------------------------------------------ */

.site-dialog {
  background: var(--cream);
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 40px;
  width: min(560px, calc(100% - 32px));
  max-height: 85vh;
}

.site-dialog::backdrop {
  background: #101c15aa;
  backdrop-filter: blur(4px);
}

.site-dialog h2 {
  font-size: 30px;
  margin: 10px 0 18px;
}

.site-dialog p,
.site-dialog li {
  font-size: 14px;
  line-height: 1.8;
}

.site-dialog ul {
  padding-left: 20px;
  margin: 22px 0;
}

.site-dialog .button {
  margin-top: 20px;
}

.site-dialog .eyebrow {
  color: #697b5e;
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 26px;
  border: 0;
  background: transparent;
  color: inherit;
  width: 35px;
  height: 35px;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #e9eddc;
  color: #26362b;
  padding: 14px 24px;
  border-radius: 5px;
  box-shadow: 0 5px 40px #10191130;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  font-size: 13px;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* --- Первый экран (#44) ------------------------------------------------------- */

/* Значения — из утверждённого эталона docs/design/approved-2026-09-08/style.css:
   секции главной строятся на примитивах #43 (.wrap, .card, .segmented, .form-panel,
   .button), собственных копий кнопок и карточек здесь не заводится. */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 30px 0 54px;
}

.hero-copy {
  padding: 32px 0;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-intro {
  font-size: 16px;
  line-height: 1.8;
  color: #dae0d3;
}

.hero-name {
  font-size: 11px;
  color: #aeb9a8;
  margin-top: 22px;
}

.hero-name span {
  margin: 0 7px;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 32px;
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 45px;
}

.location-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.vertical-rule {
  width: 1px;
  height: 14px;
  background: var(--line);
  margin: 0 7px;
}

.hero-visual {
  position: relative;
  height: 540px;
  overflow: hidden;
  border-radius: 3px 3px 60px 3px;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* Затемнение низа иллюстрации: подпись читается поверх фотографии. */
.hero-visual:after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, #15231bc9);
  pointer-events: none;
}

.visual-caption {
  position: absolute;
  z-index: 1;
  bottom: 42px;
  left: 30px;
}

.visual-caption > span {
  font-size: 8px;
  letter-spacing: .2em;
  color: #dfdac5;
}

.visual-caption p {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
  margin-top: 12px;
}

.image-index {
  position: absolute;
  right: 17px;
  top: 18px;
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: .2em;
  color: var(--ink);
}


/* --- Полоса принципов --------------------------------------------------------- */

.trust-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #d5dacb;
}

.trust-strip span {
  font-size: 10px;
  color: var(--accent);
  margin-right: 14px;
}


/* --- Услуги ------------------------------------------------------------------- */

.services {
  padding: 76px 0 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-grid .card {
  min-height: 220px;
}

/* Оба набора услуг остаются в DOM (индексируются), спрятан только невыбранный:
   состояние держит radio, JS не участвует (§10 п.11). */
.audience:has(.audience-input--priv:checked) .service-grid--biz,
.audience:has(.audience-input--biz:checked) .service-grid--priv {
  display: none;
}

.service-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #d5dacc;
  padding-top: 25px;
  margin-top: 28px;
  font-size: 12px;
}


/* --- Процесс работы ----------------------------------------------------------- */

/* Статичный список этапов. Закреплённая сцена и движение при прокрутке — #45. */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding-top: 90px;
  padding-bottom: 85px;
}

.approach-intro > p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 23px;
}

.approach .quiet-link {
  margin-top: 25px;
  color: var(--accent);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: flex;
  gap: 23px;
  padding: 25px 0 30px;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child {
  padding-top: 0;
}

.step-number {
  font-size: 11px;
  color: var(--accent);
  padding-top: 5px;
}

.steps h3 {
  font-size: 20px;
}

.steps p {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 16px;
  line-height: 1.8;
}

.step-detail {
  font-size: 8px;
  letter-spacing: .14em;
  color: #a8b79d;
}


/* --- FAQ ---------------------------------------------------------------------- */

.faq-section {
  padding: 70px 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 70px;
}

.faq-layout > div > p {
  font-size: 13px;
  margin-top: 22px;
}

.faq-list details {
  border-bottom: 1px solid #cfd6c6;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  font-size: 24px;
  color: #839178;
  transition: transform .2s;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list .faq-answer {
  font-size: 13px;
  line-height: 1.9;
  padding: 0 40px 25px 0;
}


/* --- Обращение ---------------------------------------------------------------- */

.contact-section {
  padding-top: 85px;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.contact-section h2 {
  font-size: 49px;
}

.contact-section > div > p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 25px;
}

.contact-section > div > p.small {
  font-size: 11px;
  margin-top: 6px;
  color: #a9b5a3;
}

.big-phone {
  display: block;
  font-size: 24px;
  letter-spacing: -.7px;
  margin-top: 34px;
}

.big-phone span {
  font-size: 20px;
  color: var(--accent);
  margin-left: 20px;
}

/* Кнопки мессенджеров в блоке обращения и в контактах (#200).

   Ряд набирает колонки сам: две кнопки рядом в колонке блока обращения и одна во
   всю ширину на телефоне. Третий мессенджер (MAX) встанет в тот же ряд без новой
   ширины и без медиазапроса.

   `auto-fill`, а не `auto-fit`: пока заказчик не прислал номер, кнопка остаётся
   одна — Telegram, — и `auto-fit` схлопнул бы пустую колонку, растянув её на всю
   ширину блока. Кнопка на 450 px с подписью у одного края и значком у другого
   выглядит ошибкой вёрстки; `auto-fill` держит ширину колонки независимо от того,
   сколько мессенджеров заполнено.

   Кнопки контурные. Заливная кнопка в блоке одна — отправка формы: переход в
   мессенджер её не подменяет, а стоит рядом. Размеры, скругление и площадь
   нажатия наследуются от `.button` (min-height 52px), своего размера шрифта у
   мессенджера нет — иначе подпись разъехалась бы с остальными кнопками. */
.messengers {
  margin-top: 30px;
}

.messenger-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.button.messenger {
  border-color: var(--line);
  color: var(--text);
  gap: 16px;
  width: 100%;
}

.button.messenger:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.button.messenger span {
  color: var(--accent);
}

/* Оговорка про обработку ПДн стоит под кнопками и видна без наведения и без
   разворачивания: переписка в мессенджере — тоже обработка (#200). */
.messengers-note {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.8;
  color: #a9b5a3;
  max-width: 62ch;
}

.messengers-note a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.messengers-note a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Панель «Как начать» на месте формы, пока приём через сайт закрыт (ADR 0016).
   Тот же контейнер .form-panel, что у формы: блок обращения не меняет сетку. */
.contact-steps {
  list-style: none;
  counter-reset: contact-step;
  margin: 0 0 26px;
  padding: 0;
}

.contact-steps li {
  counter-increment: contact-step;
  display: grid;
  grid-template-columns: 34px 1fr;
  row-gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contact-steps li::before {
  content: counter(contact-step, decimal-leading-zero);
  grid-row: span 2;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
  padding-top: 3px;
}

.contact-steps strong {
  font-weight: 600;
  font-size: 15px;
}

.contact-steps span {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-panel .button {
  width: 100%;
}

/* Справка «Сайт не собирает персональные данные» (/privacy, /consent-revoke). */
.legal-notice {
  max-width: 72ch;
  padding-bottom: 90px;
}

.legal-notice h2 {
  font-size: 26px;
  margin: 40px 0 12px;
}

.legal-notice p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.legal-notice a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.form-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.form-top > span {
  color: var(--accent);
  font-size: 25px;
}


/* --- Адаптив --------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .main-nav {
    gap: 18px;
  }

  .header-phone {
    font-size: 12px;
  }

  .brand {
    font-size: 10px;
  }

  .brand-mark {
    font-size: 37px;
  }

  h2 {
    font-size: 37px;
  }

  .card {
    padding: 22px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top .quiet-link {
    justify-self: start;
  }

  h1 {
    font-size: 46px;
  }

  .hero {
    gap: 28px;
  }

  .hero-visual {
    height: 480px;
  }

  .hero-intro {
    font-size: 14px;
  }

  .hero-name {
    font-size: 10px;
  }

  .hero-actions {
    gap: 15px;
    flex-wrap: wrap;
  }

  .hero-actions .button {
    padding: 14px;
    font-size: 11px;
  }

  .hero-foot {
    font-size: 9px;
  }

  .approach,
  .contact-section {
    gap: 55px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .site-header {
    height: 80px;
    gap: 12px;
  }

  .brand {
    font-size: 10px;
  }

  .brand small {
    font-size: 9px;
  }

  .header-phone {
    margin-left: auto;
    font-size: 11px;
  }

  .mobile-menu {
    display: block;
    flex-shrink: 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    background: #29372d;
    z-index: 20;
    padding: 25px;
    flex-direction: column;
    box-shadow: 0 15px 25px #0003;
    font-size: 15px;
  }

  .mobile-menu[open] .main-nav {
    display: flex;
  }

  /* Кегль заголовка на телефоне привязан к ширине экрана (#195): слово должно
     помещаться в строку целиком, а не рваться переносом. 9.6vw — измеренный
     предел: самое длинное слово заголовков сайта («Административное», 16 знаков)
     помещается в строку на 320, 375 и 414 px. Выше ~480 px ограничение перестаёт
     быть тесным, и `min()` возвращает прежние 46 px.

     Упрощение: предел посчитан по нынешним текстам. Слово длиннее — и оно
     переносится (`overflow-wrap: break-word` в базовых правилах), а не уезжает
     за экран; тогда предел пересчитывается тем же замером. */
  h1 {
    font-size: min(46px, 9.6vw);
    letter-spacing: -2px;
    line-height: 1.26;
  }

  h2 {
    font-size: 32px;
    letter-spacing: -1.4px;
  }

  .eyebrow {
    font-size: 8px;
    margin-bottom: 19px;
  }

  .section-heading {
    display: block;
    margin-bottom: 25px;
  }

  .segmented {
    margin-top: 24px;
    display: flex;
  }

  .segmented label {
    flex: 1;
    font-size: 11px;
    padding: 9px 12px;
  }

  .card {
    padding: 17px 15px;
  }

  .card h3 {
    font-size: 15px;
    padding-right: 22px;
  }

  .card p {
    font-size: 10px;
    line-height: 1.8;
  }

  .card-arrow {
    right: 15px;
    top: 12px;
    font-size: 17px;
  }

  .form-panel {
    padding: 23px 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .site-dialog {
    padding: 30px 24px;
  }

  .site-dialog h2 {
    font-size: 25px;
  }

  .toast {
    width: calc(100% - 40px);
    text-align: center;
    font-size: 12px;
  }

  /* Мобильная композиция первого экрана эталона: сначала текст, ниже иллюстрация. */
  .hero {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 8px;
    padding-bottom: 24px;
    align-items: stretch;
  }

  .hero-copy {
    padding: 15px 0 10px;
  }

  .hero-intro {
    font-size: 15px;
    max-width: 34ch;
  }

  .hero-name {
    font-size: 10px;
    margin-top: 17px;
  }

  .hero-actions {
    margin-top: 25px;
    gap: 20px;
  }

  .hero-actions .button {
    font-size: 12px;
    padding: 15px 16px;
  }

  .hero-foot {
    margin-top: 28px;
    font-size: 9px;
  }

  .hero-visual {
    height: 350px;
    border-bottom-right-radius: 40px;
  }

  .hero-visual img {
    object-position: 50% 59%;
  }

  .visual-caption {
    bottom: 25px;
    left: 25px;
  }

  .visual-caption p {
    font-size: 22px;
  }

  .trust-strip {
    display: block;
    padding: 14px 0 23px;
  }

  .trust-strip p {
    padding: 7px 0;
    font-size: 11px;
  }

  .trust-strip span {
    margin-right: 15px;
  }

  .services {
    padding: 43px 0 30px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .service-grid .card {
    min-height: 219px;
  }

  .service-bottom {
    display: block;
    font-size: 11px;
  }

  .service-bottom .text-link {
    display: inline-block;
    margin-top: 15px;
  }

  .approach {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 45px;
    padding-bottom: 40px;
  }

  .approach-intro > p {
    font-size: 13px;
  }

  .steps li {
    padding: 22px 0;
  }

  .steps h3 {
    font-size: 18px;
  }

  .steps p {
    font-size: 12px;
  }

  .faq-section {
    padding: 40px 0;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq-layout > div > p {
    font-size: 12px;
    margin-top: 15px;
  }

  .faq-list summary {
    font-size: 12px;
    gap: 15px;
    padding: 20px 0;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .contact-section h2 {
    font-size: 39px;
  }

  .contact-section > div > p {
    font-size: 13px;
    margin-top: 18px;
  }

  .big-phone {
    font-size: 23px;
  }
}

@media (max-width: 370px) {
  /* Своего кегля заголовку тут больше не нужно: 9.6vw уже уменьшает его вместе
     с экраном (#195), а фиксированные 39px снова рвали бы длинное слово. */
  .header-phone {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .hero-foot {
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .quiet-link {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Подъём кнопки и карточки на ховере — часть общих компонентов, поэтому и его отмена
   живёт здесь, а не в motion.css: CRM подключает только site.css, и без этого на
   сенсорном экране ховер там «залипал» бы после касания. */
@media (prefers-reduced-motion: reduce) {
  .primary:hover,
  .form-panel button[type=submit]:hover,
  .button.messenger:hover,
  a.card:hover,
  button.card:hover {
    transform: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .primary:hover,
  .form-panel button[type=submit]:hover,
  .button.messenger:hover,
  a.card:hover,
  button.card:hover {
    transform: none;
  }
}


/* Приглушённый текст на светлой секции: контраст эталона, а не наследование тёмной темы. */
.light-section .card p,
.light-section .text-link {
  border-bottom-color: #aab79e;
}

.light-section .text-link,
.light-section .service-bottom,
.light-section .faq-list .faq-answer,
.light-section .faq-layout > div > p {
  color: #5c6a54;
}


/* --- Страница услуги и разбор практики (#46) ---------------------------------- */

/* Продолжение утверждённого эталона: секции внутренних страниц собраны из тех же
   примитивов, что главная (.wrap, .card, .steps, .faq-list, .form-panel), а свои
   значения здесь — только у того, чего на главной не было: крошек, тегов-условий,
   длинного текста, хронологии и плиты итога дела. Локальные оттенки взяты из
   палитры эталона, новых токенов не заводится. */

.breadcrumbs {
  padding: 18px 0 0;
  font-size: 10px;
  letter-spacing: .06em;
  color: #a2af9a;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li + li:before {
  content: '/';
  margin-right: 8px;
  color: var(--line);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

/* Первый экран внутренней страницы: без иллюстрации, поэтому одна колонка. */
.page-hero {
  padding: 26px 0 54px;
  max-width: 100%;
}

.page-hero h1 {
  margin-bottom: 24px;
  max-width: 18ch;
}

.page-hero .lead {
  font-size: 16px;
  line-height: 1.8;
  color: #dae0d3;
  max-width: 62ch;
}

.condition-tags {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.condition-tags li {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 13px;
  font-size: 11px;
  color: #d5dacb;
}

/* --- Длинный текст (тело из content_block) ------------------------------------ */

.service-body {
  padding: 70px 0;
}

.body-layout {
  max-width: 74ch;
}

.body-heading {
  font-size: 32px;
  margin: 46px 0 18px;
  scroll-margin-top: 120px;
}

.body-layout > .body-heading:first-child {
  margin-top: 0;
}

.body-subheading {
  font-size: 17px;
  margin: 34px 0 14px;
}

.body-text {
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 18px;
}

.body-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.body-list li {
  border-top: 1px solid #d5dacc;
  padding: 14px 0 14px 26px;
  position: relative;
  font-size: 14px;
  line-height: 1.8;
}

.body-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.body-list strong {
  font-weight: 600;
}

.body-list span {
  display: block;
  font-size: 13px;
  color: #5c6a54;
  margin-top: 5px;
}

.callout {
  border-left: 2px solid var(--accent);
  background: #e5e5d9;
  padding: 22px 24px;
  border-radius: 0 5px 5px 0;
  margin: 30px 0;
}

/* Заголовок врезки — подпись блока, а не раздел текста: абзацем, иначе h3 до первого
   h2 статьи ломает порядок заголовков для экранных чтецов (аудит доступности). */
.callout .callout-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px;
}

.callout p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

/* Пометка «материал в разработке»: заметна, но не выдаётся за содержание. */
.callout .callout-note {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .04em;
  color: #5c6957;
}

.body-quote {
  margin: 30px 0;
  padding-left: 24px;
  border-left: 1px solid #aab79e;
}

.body-quote p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.6;
  margin: 0;
}

.body-quote cite {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: .1em;
  color: #5c6957;
  margin-top: 12px;
}

.body-cta {
  margin: 34px 0;
}

.body-figure {
  margin: 30px 0;
}

/* Скан судебного акта приходит шириной до 1600px (#225): без ограничения он
   распирал колонку текста и обрезал строки справа. */
.body-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #d6d2c4;
}

.body-figure figcaption {
  font-size: 11px;
  color: #5c6957;
  margin-top: 10px;
}

/* --- Хронология --------------------------------------------------------------- */

/* Вертикальная ось 3d: последовательность шагов, а не даты конкретного дела. */
.timeline {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0 0 0 26px;
  border-left: 1px solid #cfd6c6;
}

.timeline li {
  position: relative;
  padding: 0 0 26px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:before {
  content: '';
  position: absolute;
  left: -31px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-detail {
  font-size: 9px;
  letter-spacing: .14em;
  color: #5c6957;
}

.timeline h4 {
  font-size: 16px;
  margin: 6px 0 0;
}

.timeline p {
  font-size: 13px;
  line-height: 1.8;
  margin: 7px 0 0;
  color: #5c6a54;
}

/* --- Разбор практики на странице услуги --------------------------------------- */

/* Две колонки, как «процесс работы» на главной: слева короткий разбор, справа
   карточка-ссылка на подробный. Без опубликованного разбора колонка одна. */
.case-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  padding: 76px 0 80px;
  border-top: 1px solid var(--line);
}

.case-teaser--empty {
  grid-template-columns: 1fr;
}

.case-intro p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin: 22px 0 24px;
  max-width: 62ch;
}

.case-intro .quiet-link {
  color: var(--accent);
}

.case-list {
  display: grid;
  gap: 14px;
}

.case-more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 11px;
  color: #5c6957;
}

/* --- Стоимость ----------------------------------------------------------------- */

/* Плита появляется, только если ценовые строки заведены (см. landing.html). */
.prices {
  padding: 40px 0 10px;
}

.prices ul {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.price-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.price-note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.price-value {
  color: var(--accent);
  white-space: nowrap;
}

/* --- Разбор практики: шапка и возврат ------------------------------------------ */

.result-plate {
  padding-bottom: 46px;
}

.result-plate dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.result-plate dt {
  font-size: 9px;
  letter-spacing: .14em;
  color: #a8b79d;
}

.result-plate dd {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 26px;
}

.result-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 76ch;
}

.result-pending {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 76ch;
}

.article-body {
  padding: 66px 0 74px;
}

.article-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 60px;
  align-items: start;
}

/* Колонка текста не шире экрана, даже если внутри длинное слово или картинка. */
.article-layout > * {
  min-width: 0;
}

.article-toc {
  position: sticky;
  top: 30px;
  font-size: 13px;
}

.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid #cfd6c6;
}

.article-toc li a {
  display: block;
  padding: 8px 0 8px 14px;
  color: #344831;
}

.article-toc li a:hover {
  color: #26362b;
}

.article-back {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 70px 0 80px;
}

.article-back p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

.article-back-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.article-back-actions .quiet-link {
  color: var(--accent);
}

/* Светлая секция: приглушённый текст и линии эталона вместо тёмной темы. */
.light-section .body-text,
.light-section .body-list span,
.light-section .timeline p {
  color: #5c6a54;
}

@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 180px 1fr;
    gap: 34px;
  }

  .result-plate dl {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .article-back,
  .case-teaser {
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding: 16px 0 34px;
  }

  .page-hero h1 {
    max-width: none;
  }

  .page-hero .lead {
    font-size: 14px;
  }

  .condition-tags li {
    font-size: 10px;
    padding: 7px 11px;
  }

  .service-body,
  .article-body {
    padding: 40px 0;
  }

  .body-heading {
    font-size: 26px;
    margin: 32px 0 14px;
  }

  .body-text {
    font-size: 14px;
  }

  .body-quote p {
    font-size: 19px;
  }

  .case-teaser {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 42px 0 46px;
  }

  .result-plate dl {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .result-plate dd {
    font-size: 21px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  /* Оглавление на мобильном не липнет: оно уезжает вверх и мешает читать текст. */
  .article-toc {
    position: static;
  }

  .article-back {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 48px;
  }

  .article-back-actions .button {
    width: 100%;
  }
}

/* --- «О юристе» и контакты (#41) ------------------------------------------------ */

/* Место портрета на 3f. Пропорция 3:4 задана самой рамкой: снимка ещё нет,
   и подставлять чужое фото вместо него нельзя, поэтому рамка описывает нужный
   кадр текстом. Когда фото появится, сюда встанет <img> с теми же границами. */
.about-portrait {
  margin: 0;
}

.about-portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 3px 3px 60px 3px;
  background:
    repeating-linear-gradient(
      -45deg, transparent 0 13px, #ffffff08 13px 14px
    ),
    var(--surface);
}

.about-portrait-frame p {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
}

.about-portrait figcaption {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.about-note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 62ch;
}

/* Плита «Образование и статус»: строки ключ-значение на светлой секции. */
.credentials {
  padding: 62px 0 70px;
}

.info-plate {
  margin: 30px 0 0;
  border-top: 1px solid #cfd6c6;
}

.info-plate > div {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #cfd6c6;
}

.info-plate dt {
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5c6957;
}

.info-plate dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #3d4b39;
}

/* Плита NAP на странице контактов: те же ячейки, что в подвале каркаса. */
.nap-plate {
  padding: 8px 0 52px;
}

.nap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.nap-grid small {
  display: block;
  font-size: 9px;
  letter-spacing: .16em;
  color: #a8b79d;
}

.nap-grid p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
}

.nap-grid a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.nap-grid a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Место статичной карты: картинка появится вместе с подтверждённым адресом. */
.map-placeholder {
  padding: 10px 0 56px;
}

.map-placeholder > p {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 76ch;
}

@media (max-width: 1100px) {
  .info-plate > div {
    grid-template-columns: 190px 1fr;
    gap: 18px;
  }

  .nap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 760px) {
  /* Рамка 3:4 во всю ширину телефона стала бы выше экрана — ограничиваем. */
  .about-portrait-frame {
    padding: 20px;
    max-width: 280px;
    border-bottom-right-radius: 40px;
  }

  .about-portrait-frame p {
    font-size: 17px;
  }

  .credentials {
    padding: 40px 0 46px;
  }

  /* На телефоне подпись встаёт над значением: две колонки не читаются. */
  .info-plate > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .nap-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nap-plate {
    padding: 4px 0 36px;
  }

  .map-placeholder {
    padding: 4px 0 40px;
  }
}


/* --- Гео-страница города (#61) ------------------------------------------------ */

/* Лид гео-страницы — два абзаца, поэтому обёртка `div`, а не `p`: типографика
   та же, что у однобзацных лидов первого экрана. */
.page-hero .lead p + p {
  margin-top: 16px;
}

/* На 320px две карточки оставляют слишком узкую строку для русского текста. */
@media (max-width: 360px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Списки направлений: витрина практик гео-страницы и хаб `/uslugi` (#196).
   Все 14 практик ссылками: список не сокращается, поэтому он и не карточки —
   четырнадцать плиток заняли бы экран целиком и утопили бы блок про суды, ради
   которого страницу и открывают. Строчный список тех же токенов.

   Оформление у обоих одно: это один и тот же список направлений, и разъехаться
   им нельзя. Признаков перехода два и оба видны в покое — линейка строки и
   значок «↗» у каждого пункта; на цвет одного наведения опираться нельзя, на
   телефоне наведения нет. */
.hub-list,
.city-practices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 30px;
  border-top: 1px solid var(--line);
}

/* На хабе список идёт сразу за лидом: без отступа его верхняя линейка липнет к
   последней строке текста. У витрины города над списком стоит заголовок секции,
   и свой отступ ей не нужен. */
.hub-list {
  margin-top: 36px;
}

.hub-list li,
.city-practices li {
  border-bottom: 1px solid var(--line);
}

.hub-list a,
.city-practices a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.hub-list a span,
.city-practices a span {
  color: var(--accent);
  font-size: 11px;
}

.hub-list a:hover,
.city-practices a:hover {
  color: var(--accent);
}

/* Территория работы в подвале — ссылки на гео-страницы (#61), а не строка. */
.footer-geo {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
}

.footer-geo a {
  font-size: 11px;
  line-height: 1.9;
  color: #c8d0be;
  text-decoration: none;
}

.footer-geo a:hover {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .hub-list,
  .city-practices {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }
}

@media (max-width: 760px) {
  .hub-list,
  .city-practices {
    grid-template-columns: 1fr;
  }

  .hub-list a,
  .city-practices a {
    padding: 14px 0;
    font-size: 13px;
  }
}

/* Юридические пояснения стоят после полей, не сдвигая начало формы на телефоне. */
[data-lead-form] .form-notice,
[data-lead-form] .form-marketing,
[data-lead-form] .form-status {
  font-size: 13px;
  line-height: 1.6;
}
[data-lead-form] .form-marketing {
  margin-bottom: 18px;
}
[data-lead-form] .form-marketing summary {
  cursor: pointer;
}
[data-lead-form] .form-status:empty {
  display: none;
}
[data-lead-form] button:disabled {
  cursor: default;
  opacity: .65;
}

/* #16: поиск и навигация существующего блога, работают без JavaScript. */
.blog-search-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.blog-search-form input, .blog-search-form select { max-width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; background: var(--surface); color: var(--text); font: inherit; }
.blog-search-form label { font-size: 14px; }
.blog-rubrics, .blog-pagination { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.blog-rubrics a, .blog-pagination a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; }
.blog-rubrics a[aria-current], .blog-pagination a[aria-current] { color: var(--accent); border-color: var(--accent); }
.blog-pagination p { flex-basis: 100%; }
.blog-popular { margin-top: 44px; }
.blog-popular h2 { font-size: 28px; letter-spacing: normal; }
.blog-popular li { margin: 16px 0; }
@media (max-width: 600px) { .blog-search-form { align-items: stretch; } .blog-search-form label, .blog-search-form input, .blog-search-form select { width: 100%; } }

/* Подтверждённый портрет и первая страница диплома (#15, 11.09.2026). */
.hero-visual:has(.client-portrait) { overflow: hidden; }
.hero-visual img.client-portrait { object-position: 53% 70%; }
.about-portrait-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px 3px 60px 3px;
  border: 1px solid var(--line);
}
.about-portrait-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 70%;
}
.diploma-card {
  display: grid;
  gap: 12px;
  max-width: 540px;
  margin-top: 32px;
  color: inherit;
  text-decoration: none;
}
.diploma-card img { display: block; width: 100%; height: auto; border-radius: 6px; }
.diploma-card > span { font-size: 18px; line-height: 1.5; }
.diploma-card small { font-size: 13px; }
.diploma-card:hover > span { text-decoration: underline; }

/* Благодарности и публикации на «О юристе» (#201). */
.credentials-subhead {
  margin: 52px 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
}
.awards-list,
.publications-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Пять сканов: две колонки на телефоне, три на планшете, пять в ряд на широком. */
.awards-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
@media (min-width: 700px) {
  .awards-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1100px) {
  .awards-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.award-card {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.award-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cfd6c6;
  border-radius: 4px;
}
.award-meta { font-size: 12px; color: #5c6957; }
.award-title { font-size: 14px; line-height: 1.45; }
.award-card:hover .award-title { text-decoration: underline; }
.publications-list li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid #cfd6c6;
}
.publications-list a { color: inherit; font-size: 16px; line-height: 1.5; }
.publications-list small { font-size: 12px; color: #5c6957; }
.hero-visual img.client-portrait,
.about-portrait-photo img {
  transform: scale(1.18);
  transform-origin: 53% 76%;
}

/* Страница 404: телефон отдельной строкой под путями назад. */
.not-found-phone {
  margin-top: 30px;
  font-size: 14px;
  color: var(--muted);
}

.not-found-phone a {
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

/* Текст только для экранных чтецов: заголовок раздела, который на экране понятен
   из вида сетки (аудит доступности). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
