/* ============================================================
   Ефименко В.В. — адвокатский кабинет

   Фирменная палитра (бриф заказчика, строго 4 цвета — без
   самовольных производных оттенков, только сами цвета и их
   alpha-варианты для линий/обводок):
     --ink   #0B1520  50% — основной фон
     --cream #F7F3EF  30% — второй фон и основной цвет букв
     --blue  #6FA3E8  15% — акценты, кнопки, подчёркивания
     --red   #C62A1E   5% — знак на заставке и нити «карты
                            обстоятельств». Больше нигде: в тексте,
                            линиях и кнопках красный не появляется.

   Серебро #A6A9AA (Pantone 10077 C) выведено из палитры. Роль
   приглушённого текста перешла к --muted, и он набирается голубым:
   серого текста на сайте не осталось нигде.

   Шрифты: EB Garamond (display) + Golos Text (body)
   Easing: cubic-bezier(.22,1,.36,1) — единственная кривая
   Радиусы: 0 по всему проекту
   ============================================================ */

/* ============================================================
   Шрифты — локально, из assets/fonts (SIL Open Font License).
   Только кириллица и базовая латиница: остальные наборы знаков
   сайту не нужны. Golos Text вариативный — 400 и 600 в одном файле.
   ============================================================ */

@font-face{
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face{
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/golos-text-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: swap;
  src: url("assets/fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/golos-text-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: 600;
  font-display: swap;
  src: url("assets/fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family: "Marck Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/marck-script-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face{
  font-family: "Marck Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/marck-script-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  /* --- фирменная палитра: ровно 4 цвета --- */
  --ink:    #0B1520;
  --cream:  #F7F3EF;
  --blue:   #6FA3E8;
  --red:    #C62A1E;

  /* Приглушённый текст — надзаголовки, номера шагов, подписи. По решению
     заказчика набирается голубым: серых оттенков в тексте на сайте нет.
     Оба токена сохранены, чтобы точки применения остались прежними. */
  --muted: var(--blue);
  --muted-on-ink: var(--blue);

  /* Нити «карты обстоятельств» — тень и блик красного. Единственное
     место, где допущены производные оттенки: из трёх вместе на канвасе
     читается кручёная верёвка. Область применения — только #karta. */
  --thread:      #C62A1E;   /* тот же --red; хексом, т.к. канвас читает токен напрямую */
  --thread-dark: #6B140D;
  --thread-lite: #F0563A;

  /* --- шкала отступов --- */
  --s1: 4px;  --s2: 8px;  --s3: 16px; --s4: 24px;
  --s5: 40px; --s6: 64px; --s7: 96px; --s8: 160px;

  /* --- система --- */
  --e: cubic-bezier(.22, 1, .36, 1);
  --r: 0;
  --hair: 1px;
  --wrap: 1360px;
  --pad: clamp(20px, 5vw, 88px);
  --hdr-h: 92px;

  --serif: "EB Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Golos Text", ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
}

/* ============================================================
   БАЗА
   ============================================================ */

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

html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3{
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
  hyphens: none;
}

h1{
  /* нижняя граница подобрана по замеру: «Выкуп права требования» —
     22 знака × 0.47em, при 32px это 331px и умещается в 375px экрана */
  font-size: clamp(2rem, 6.2vw, 6.2rem);
  line-height: .94;
  letter-spacing: -.02em;
}

h2{
  /* нижняя граница = 24px: при ней строка держит ~31 знака и заголовки
     на 375px укладываются в одну-две полные строки, а не в обрубки */
  font-size: clamp(1.5rem, 3.6vw, 3.5rem);
  line-height: .95;
  letter-spacing: -.018em;
}

h3{
  font-size: clamp(1.25rem, 1.9vw, 1.72rem);
  line-height: 1.08;
  letter-spacing: -.012em;
}

p{ margin: 0; text-wrap: pretty; }

ul, ol{ margin: 0; padding: 0; list-style: none; }

:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip{
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream);
  padding: 14px 20px; font-size: 14px;
}
.skip:focus{ left: 0; }

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

/* ============================================================
   ТИПОГРАФИЧЕСКИЕ РОЛИ
   ============================================================ */

.eyebrow{
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s4);
  text-wrap: balance;
}

.lead{
  font-size: clamp(15.5px, 1.05vw, 17.5px);
  line-height: 1.62;
  max-width: 56ch;
  margin-top: var(--s4);
  text-wrap: balance;   /* блок 2–4 строк — выравниваем в прямоугольник */
}

.reassure{
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--cream);
  margin-top: var(--s3);
}

/* ============================================================
   СЕКЦИИ И КОНТЕКСТНЫЕ ТОКЕНЫ КНОПОК
   ============================================================ */

.sect{ padding-block: clamp(72px, 11vw, 150px); }

.sect--ink{
  background: var(--ink);
  color: var(--cream);
  --line: rgba(247,243,239,.16);
  --muted: var(--muted-on-ink);
}

.sect--milk{
  background: var(--cream);
  color: var(--ink);
  --line: rgba(11,21,32,.16);
}

.sect--milk2{
  background: var(--cream);        /* второй оттенок молочного упразднён — только 4 цвета брифа */
  color: var(--ink);
  --line: rgba(11,21,32,.16);
}

.sect__head{ margin-bottom: clamp(48px, 6vw, 88px); }
.sect__head .lead{ margin-top: var(--s4); }

/* ============================================================
   ХЕДЕР
   ============================================================ */

.hdr{
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--hdr-h);
  display: flex; align-items: center;
  /* Голубой по решению заказчика. Всё в шапке — пункты меню, черта у марки,
     рамка кнопки — строится на currentColor, поэтому цвет задаётся здесь
     одной строкой. Монограмма — картинка, она остаётся кремовой. */
  color: var(--blue);
  transition: background 420ms var(--e), border-color 420ms var(--e), color 420ms var(--e);
  border-bottom: var(--hair) solid transparent;
}

.hdr.is-stuck{
  background: rgba(11,21,32,.96);
  border-bottom-color: rgba(247,243,239,.14);
}

.hdr__in{
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--pad);
  display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px);
}

.brand{
  display: flex; align-items: center; gap: 14px;
  margin-right: auto;
  min-height: 44px;
}
/* Монограмма «ЕВ» — фирменный знак слева от слова. Файл уже в cream,
   поэтому тонировать не нужно: ложится и на герой, и на закреплённую шапку. */
.brand__mark{
  flex: none;
  width: clamp(32px, 2.7vw, 42px); height: auto;
  display: block;
}
.brand__name{
  font-family: var(--serif);
  font-size: clamp(21px, 1.75vw, 26px);
  letter-spacing: .12em; line-height: 1;
}
/* Подпись «В.В.» — кремовая: красный по новому брифу закреплён
   за знаком на заставке и нитями, в шапке и подвале не появляется. */
.brand__sign{
  font-family: "Marck Script", cursive;
  font-size: clamp(24px, 2vw, 29px); line-height: 1;
  color: var(--cream);
  margin-left: -4px;
  transform: translateY(2px) rotate(-4deg);
}
.brand__rule{
  width: var(--hair); height: 32px;
  background: var(--blue);   /* черта — единственный голубой элемент марки */
}
.brand__sub{
  font-size: 10.5px; line-height: 1.35;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream);
}
/* Подпись марки — кремовая: голубой в шапке оставлен навигации, кнопке
   и черте, а сама марка читается как знак, а не как пункт меню. */
.hdr .brand__sub{ color: var(--cream); opacity: 1; }

/* Зазор в навигации сжимается вместе с окном: при укрупнённых марке
   и пунктах фиксированные 40px не давали строке уложиться на 1000px. */
.nav{ display: none; gap: clamp(20px, 2.4vw, 40px); }
.nav a{
  position: relative;
  font-size: 15px; letter-spacing: .015em;
  padding: 12px 0;
  transition: opacity 320ms var(--e);
}
.nav a::after{
  content: ""; position: absolute; left: 0; bottom: 6px;
  width: 100%; height: var(--hair);
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 520ms var(--e);
}
.nav a:hover{ opacity: 1; }
.nav a:hover::after{ transform: scaleX(1); transform-origin: left; }

/* Специфичность выше, чем у .btn ниже по файлу: иначе inline-flex
   из .btn перебивает это правило и кнопка лезет в мобильную шапку. */
.hdr .hdr__cta{ display: none; }

/* --- бургер --- */
.burger{
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit;
}
.burger span{
  display: block; width: 22px; height: var(--hair);
  background: currentColor;
  transition: transform 420ms var(--e), opacity 320ms var(--e);
}
.burger[aria-expanded="true"] span:first-child{ transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child{ transform: translateY(-3.5px) rotate(-45deg); }

/* --- мобильное меню --- */
.mmenu{
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--hdr-h) + var(--s5)) var(--pad) var(--s6);
  opacity: 0;
  transition: opacity 420ms var(--e);
}
.mmenu.is-open{ opacity: 1; }

/* Атрибут hidden обязан скрывать меню по-настоящему.
   Правило [hidden]{display:none} браузер держит в своей таблице стилей,
   а она слабее авторской: .mmenu{display:flex} её перебивал. Меню с
   hidden оставалось разложенным на весь экран — прозрачное (opacity: 0),
   но кликабельное, z-index 90 поверх всего. Ниже 1200px, то есть на всей
   мобильной версии, каждое касание попадало в невидимый слой и в ссылку
   меню под пальцем: вместо раскрытия вопроса страница прыгала по якорю.
   На десктопе этого не было видно — там меню гасит display:none. */
.mmenu[hidden]{ display: none; }

/* Пока меню закрыто или догорает анимация закрытия, оно не перехватывает
   касания: hidden ставится только через 420 мс после начала затухания. */
.mmenu:not(.is-open){ pointer-events: none; }
.mmenu.is-open{ pointer-events: auto; }
.mmenu__nav{ display: grid; gap: var(--s2); }
.mmenu__nav a{
  font-family: var(--serif);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1.24;
  letter-spacing: -.015em;
  padding: 6px 0;
  min-height: 44px;
}
.mmenu__foot{
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: var(--hair) solid rgba(247,243,239,.16);
  display: grid; gap: 6px;
  font-size: 14px; color: var(--muted-on-ink);
}

/* ============================================================
   КНОПКИ — два типа, радиус 0
   ============================================================ */

.btn{
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px;
  padding: 15px 28px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 14px; letter-spacing: .012em;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}

/* Основная кнопка — фиксированного синего цвета вне зависимости от секции:
   «кнопки на сайте» прямо названы в брифе зоной синего акцента (15%). */
.btn--solid{ background: var(--blue); color: var(--ink); border: 0; }
.btn--ghost{ background: transparent; color: inherit; border: var(--hair) solid currentColor; }
.btn--lg{ min-height: 60px; padding: 19px 34px; font-size: 15px; }

.btn__fill{
  position: absolute; inset: 0; z-index: 0;
  background: var(--ink);   /* инверсия синего в чернильный по ховеру у основной кнопки */
  transform: scaleX(0); transform-origin: left;
  transition: transform 500ms var(--e);
}
.btn--ghost .btn__fill{ background: var(--blue); }

.btn__label{ position: relative; z-index: 2; transition: color 320ms var(--e); }
.btn__arw{
  position: relative; z-index: 2;
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: square;
  transition: transform 520ms var(--e), color 320ms var(--e);
}

.btn:hover .btn__fill{ transform: scaleX(1); }
.btn:hover .btn__arw{ transform: translateX(7px); }
.btn--solid:hover .btn__label,
.btn--solid:hover .btn__arw{ color: var(--cream); }
.btn--ghost:hover .btn__label,
.btn--ghost:hover .btn__arw{ color: var(--ink); }

/* ============================================================
   §1 ПЕРВЫЙ ЭКРАН — суть и навигация, без фотографии
   Снимок здания намеренно вынесен ниже (.shot): при открытии страницы
   читатель получает предложение словами, кадр раскрывается при скролле.
   ============================================================ */

/* ============================================================
   §0 ЗАСТАВКА — знак на чернильном поле, ничего больше

   Открываем сайт паузой: одно имя во весь экран и тишина вокруг.
   Знак дан в полную силу — на заставке он единственный объект,
   приглушать его не от чего.
   ============================================================ */

.gate{
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  background: var(--ink);
  padding: calc(var(--hdr-h) + var(--s5)) var(--pad) var(--s6);
  overflow: hidden;
}

/* Зерно 5% — как на первом экране: чистая тёмная плашка выглядит
   цифрово-плоской. */
.gate::after{
  content: ""; position: absolute; inset: 0;
  pointer-events: none; opacity: .05;
  background-image: url("assets/grain.png");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.gate__logo{
  position: relative; z-index: 1;
  width: min(760px, 78vw); height: auto;
  animation: gate-in 1400ms var(--e) both;
}

@keyframes gate-in{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: none; }
}

@media (max-width: 640px){
  .gate__logo{ width: 86vw; }
}

.intro{
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--ink);
  color: var(--cream);
  --line: rgba(247,243,239,.16);
  --muted: var(--muted-on-ink);
  padding-block: calc(var(--hdr-h) + var(--s6)) var(--s7);
  overflow: hidden;
}

/* Зерно 5% — тот же приём, что был на фоне снимка: тёмная плашка
   на весь экран без него выглядит цифрово-плоской. */
.intro::after{
  content: ""; position: absolute; inset: 0;
  pointer-events: none; opacity: .05;
  background-image: url("assets/grain.png");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.intro__in{ position: relative; z-index: 1; }

/* переносы в h1 заданы вручную через <br> — ограничение по ширине сняло бы их */
.intro h1{ max-width: none; }

.intro__lead{
  margin-top: clamp(22px, 2.8vh, 38px);
  max-width: 58ch;
  font-size: clamp(16px, 1.2vw, 19.5px);
  line-height: 1.6;
  opacity: .78;
  text-wrap: pretty;
}

.intro__act{
  margin-top: clamp(28px, 3.6vh, 48px);
  display: flex; flex-wrap: wrap; gap: var(--s3);
}

.intro .reassure{ margin-top: var(--s4); }

/* Якорь вниз — он же обещание, что за первым экраном есть продолжение */
.intro__more{
  position: relative; z-index: 1;
  align-self: flex-start;
  margin-top: clamp(40px, 7vh, 88px);
  margin-inline: auto;
  width: 100%; max-width: var(--wrap);
  padding-inline: var(--pad);
  display: flex; align-items: center; gap: var(--s3);
  font-size: 12px; letter-spacing: .19em; text-transform: uppercase;
  color: var(--muted);
}
.intro__more-l{
  display: block; width: 64px; height: var(--hair);
  background: currentColor; opacity: .5;
  transition: width 520ms var(--e);
}
.intro__more:hover .intro__more-l{ width: 104px; }

/* ============================================================
   §1b КАДР — здание суда, раскрывается при скролле
   ============================================================ */

.shot{
  position: relative;
  background: var(--ink);
  color: var(--cream);
  --muted: var(--muted-on-ink);
  overflow: hidden;
}

.shot__media{ position: relative; height: clamp(380px, 78svh, 820px); }
.shot__media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 40%;
  opacity: .38;
}
.shot__media::after{
  content: ""; position: absolute; inset: 0;
  pointer-events: none; opacity: .05;
  background-image: url("assets/grain.png");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* Собственный вариант входа: кадр не «подъезжает», а разжимается из
   лёгкого зума — иначе видна пустая полоса под ним во время анимации. */
.shot__media.rise{ opacity: 0; transform: scale(1.06); filter: none; }
.shot__media.rise.is-in{
  opacity: 1; transform: scale(1);
  transition: opacity 1100ms var(--e), transform 1500ms var(--e);
}
.shot__media.rise.is-done{ transform: none; }

.shot__cap{
  position: absolute; left: 0; right: 0; z-index: 2;
  bottom: clamp(28px, 5vh, 64px);
}
.shot__cap .eyebrow{ margin-bottom: var(--s3); }
.shot__t{
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 2.3rem);
  line-height: 1.12; letter-spacing: -.015em;
  max-width: 27ch;
  text-wrap: balance;
}

/* ============================================================
   ФАКТЫ
   ============================================================ */

.facts{
  background: var(--ink);
  color: var(--cream);
  border-top: var(--hair) solid rgba(247,243,239,.14);
  padding-block: clamp(40px, 5vw, 68px);
}

.facts__grid{ display: grid; gap: var(--s5); }

.fact__k{
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1; letter-spacing: -.018em;
  margin-bottom: 12px;
}
.fact__v{
  font-size: 14px; line-height: 1.6;
  max-width: 46ch; opacity: .62;
  text-wrap: balance;
}

/* ============================================================
   СИТУАЦИЯ
   ============================================================ */

/* Подложка уходит за правый край макета — подрезаем её секцией,
   иначе документ получает горизонтальную прокрутку. */
.situ{ overflow: hidden; }

.situ__grid{ display: grid; gap: clamp(48px, 6vw, 80px); }

.situ__fig{ margin: 0; }

/* Подзаголовок перед перечнем форматов работы. */
.situ__k{
  margin-top: clamp(28px, 3.4vw, 44px);
  font-size: 12px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--muted);
}
/* Текст блока «Ситуация» выключен по формату. Переносы включены,
   иначе на узкой колонке между словами появляются широкие дыры. */
.situ__text .lead,
.situ__forms li{
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.situ__forms{ margin-top: var(--s3); }
/* Первый пункт отбивается собственной чертой сверху — так перечень читается
   отдельным блоком, а не продолжением абзаца. */
.situ__forms li:first-child{ border-top: var(--hair) solid var(--line); }

.situ__act{
  margin-top: clamp(28px, 3.4vw, 44px);
  display: flex; flex-wrap: wrap; gap: var(--s3);
}

/* Блок и фото — отдельная обёртка, а не весь <figure>: так тёмная плашка
   не может выйти за пределы снимка ни на какой ширине. Подписи под фото
   больше нет, но обёртку оставляем — на ней держится позиционирование. */
.situ__frame{ position: relative; }
/* Плашка выступает из-под снимка вправо и вниз на одну и ту же величину:
   так она читается как второй слой и даёт фотографии объём. Прежний
   вариант выглядывал только снизу узкой полосой — это выглядело browser-багом,
   а не приёмом. */
.situ__block{
  position: absolute;
  right: -30px; bottom: -30px;
  width: 58%; height: 62%;
  background: var(--ink);
  z-index: 0;
}
.situ__frame img{
  position: relative; z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sr-only{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   КАРТА ОБСТОЯТЕЛЬСТВ — узлы, линии, курсор как «жидкость»
   ============================================================ */

.map{ overflow: hidden; }
/* Лид «карты обстоятельств» — выключка по формату, как в «Ситуации». */
.map .sect__head .lead{
  color: var(--cream); opacity: 1;   /* чистый молочный, без приглушения */
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.map__stage{
  position: relative;
  width: 100%;
  height: clamp(620px, 72vw, 880px);
  margin-top: clamp(40px, 5vw, 64px);
  cursor: default;
}
.map__stage canvas{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* Обстоятельство = пустая карточка полароида на булавке. Верстается
   элементами, а не рисуется в canvas: текст остаётся чётким на ретине
   и доступным, а canvas отвечает только за нити. */
.pola{
  position: absolute; top: 0; left: 0; margin: 0;
  width: 120px;
  padding: 9px 9px 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.35);
  pointer-events: none;
  will-change: transform;
}
/* пустое поле кадра — «фотография ещё не проявлена»: обстоятельство
   названо, но что на нём изображено, разбирается уже в работе */
.pola__frame{
  display: block; height: 62px;
  background: rgba(11,21,32,.085);
  box-shadow: inset 0 0 0 var(--hair) rgba(11,21,32,.07);
}
/* Подписи разной длины — от «Иное» до пяти слов: высота выровнена под
   три строки, иначе карточки на доске разъезжаются по росту и раскладка,
   считающая радиус по первой из них, начинает их накладывать. */
.pola__cap{
  display: flex; align-items: center; justify-content: center;
  min-height: 58px;
  padding: 7px 2px 10px;
  font-size: 9.5px; line-height: 1.28;
  letter-spacing: .005em; text-align: center;
  text-wrap: balance;
}
/* Канцелярская кнопка в месте крепления нити: голубая шляпка с бликом,
   тень под ней и тонкий чернильный кант по нижней кромке — купол. */
.pola__pin{
  position: absolute; top: -5px; left: 50%;
  width: 13px; height: 13px; border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 34% 28%,
      rgba(247,243,239,.95) 0 14%,
      var(--blue) 46%,
      rgba(11,21,32,.55) 100%);
  box-shadow:
    0 2px 4px rgba(0,0,0,.55),
    inset 0 -1px 1px rgba(11,21,32,.45);
}
/* Миниатюра на карточке: контурный кадр вместо фотографии. Обводка
   берёт цвет от .pola__pic — поэтому у фигур внутри symbol нет своих
   fill/stroke, кроме точек, где fill задан атрибутом. */
.pola__pic{
  width: 100%; height: 100%; display: block;
  /* голубой вместо приглушённого чернильного: серых тонов на сайте нет */
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Круглая форма — единственное отступление от нулевого радиуса
   в проекте: узел графа читается как точка, а не как карточка,
   и по просьбе заказчика этот элемент решён свободнее остальных. */
.map__cta{
  position: absolute; left: 50%; top: 50%; z-index: 3;
  transform: translate(-50%, -50%);
  width: 152px; height: 152px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: var(--ink);
  text-align: center;
  transition: transform 420ms var(--e), box-shadow 420ms var(--e);
  box-shadow: 0 0 0 0 rgba(111,163,232,0);
}
.map__cta:hover{
  transform: translate(-50%, -50%) scale(1.055);
  box-shadow: 0 0 0 14px rgba(111,163,232,.12);
}
/* Основной шрифт, жирный, капсом: кнопка должна читаться как действие,
   а не как заголовок — антиква в круге спорила с нитями. Капс требует
   разрядки, иначе буквы слипаются. */
.map__cta-word{
  font-family: var(--sans); font-weight: 600;
  font-size: 13px; line-height: 1.15;
  letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
}
/* На телефоне карточки и кнопка мельче — так на доску помещается
   вдвое больше обстоятельств, а не шесть штук из четырнадцати. */
@media (max-width: 640px){
  .map__stage{ height: 720px; }
  .pola{ width: 64px; padding: 4px 4px 0; }
  .pola__frame{ height: 30px; }
  .pola__cap{ font-size: 7.5px; padding: 4px 1px 6px; }
  .pola__pin{ width: 10px; height: 10px; top: -4px; }
  .map__cta{ width: 96px; height: 96px; }
  .map__cta-word{ font-size: 9px; letter-spacing: .04em; }
}

/* ============================================================
   МОДЕЛЬ 60/40 — signature interaction
   ============================================================ */

.model__top{ margin-bottom: clamp(40px, 5vw, 72px); }
/* Текст модели 60/40 — выключка по формату, как в «Ситуации». */
.model__lead .lead{
  color: var(--cream); opacity: 1;   /* чистый молочный, без приглушения */
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.model__top .sect__head{ margin-bottom: clamp(24px, 3vw, 36px); }
.model__lead{ margin-bottom: clamp(40px, 5vw, 56px); }

.split{ margin-bottom: 0; }

.split__bar{
  display: flex;
  height: clamp(84px, 11vw, 132px);
  overflow: hidden;
  outline: var(--hair) solid rgba(247,243,239,.22);
  outline-offset: 0;
}

.split__seg{
  display: flex; align-items: center;
  width: 0;
  transition: width 1100ms var(--e);
  overflow: hidden;
}
.split__seg--a{ background: var(--cream); color: var(--ink); padding-left: clamp(20px, 2.4vw, 34px); }
.split__seg--b{ background: var(--blue); color: var(--ink); padding-left: clamp(20px, 2.4vw, 34px); }

.split.is-in .split__seg--a{ width: 60%; }
.split.is-in .split__seg--b{ width: 40%; }

.split__pct{
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1; letter-spacing: -.02em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 600ms var(--e) 760ms;
}
.split.is-in .split__pct{ opacity: 1; }

.split__legend{
  display: grid; grid-template-columns: 60% 40%;
  margin-top: var(--s4);
}
.split__legend-r{ padding-left: clamp(20px, 2.4vw, 34px); }
.split__legend .split__role{ overflow-wrap: anywhere; hyphens: auto; }
/* --- ползунок 60/40 --- */
.calc{ margin-bottom: clamp(56px, 7vw, 96px); }
.calc__label{
  display: block;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.calc__range{
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; margin: 18px 0 0;
  height: 2px; background: rgba(247,243,239,.24);
  outline: none; cursor: pointer;
}
.calc__range::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); border: 0; cursor: grab;
  transition: transform 200ms var(--e);
}
.calc__range::-webkit-slider-thumb:hover{ transform: scale(1.15); }
.calc__range::-moz-range-thumb{
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); border: 0; cursor: grab;
}
.calc__range:focus-visible{ outline: var(--hair) solid var(--blue); outline-offset: 8px; }

.calc__sum{
  display: block; margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; letter-spacing: -.02em;
}
.calc__out{
  display: grid; grid-template-columns: 60% 40%;
  margin-top: var(--s4);
}
.calc__cell--r{ padding-left: clamp(20px, 2.4vw, 34px); }
.calc__cell{ display: block; }
.calc__k{ display: block; font-size: 13px; color: var(--muted-on-ink); }
.calc__v{
  display: block; margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1; letter-spacing: -.02em;
}
.calc__cell--r .calc__v{ color: var(--blue); }

.split__role{ font-size: 14px; letter-spacing: .015em; }
/* Пояснения под ролями — голубым, как остальные служебные подписи
   на чернильном фоне: серого в палитре нет. */
.split__note{ font-size: 13px; line-height: 1.55; color: var(--muted-on-ink); margin-top: 4px; }

/* --- параметры сделки --- */
.terms{
  margin: 0 0 clamp(56px, 7vw, 96px);
  border-top: var(--hair) solid var(--line);
}
.terms__row{
  display: grid; gap: 6px;
  padding: 22px 0;
  border-bottom: var(--hair) solid var(--line);
}
.terms dt{
  font-size: 12px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--muted);
}
.terms dd{
  margin: 0;
  font-size: 15.5px; line-height: 1.55;
  max-width: 62ch;
}

/* --- две колонки списков --- */
.cols{ display: grid; gap: clamp(40px, 5vw, 72px); }
.col h3{ margin-bottom: var(--s4); }

.ticks li{
  position: relative;
  padding: 13px 0 13px 34px;
  font-size: 15px; line-height: 1.55;
  border-bottom: var(--hair) solid var(--line);
}
.ticks li::before{
  content: ""; position: absolute;
  left: 0; top: 23px;
  width: 16px; height: var(--hair);
  background: currentColor; opacity: .45;
}

/* ============================================================
   УСЛУГИ
   ============================================================ */

/* Переносы в заголовках расставлены вручную через <br>.
   Ограничение по ширине в ch их перебивает и рвёт строки — не задаём. */
.srv{
  display: grid; gap: 0;
  border-top: var(--hair) solid var(--line);
}
.srv__i{
  padding: clamp(32px, 3.4vw, 48px) 0;
  border-bottom: var(--hair) solid var(--line);
}
.srv__n{
  font-family: var(--serif);
  font-size: 13px; letter-spacing: .12em;
  color: var(--muted);
  opacity: 1;              /* .srv__i p ниже гасит его до .74 — это тоже <p> */
  margin-bottom: var(--s4);
}
.srv__i h3{ margin-bottom: var(--s3); }
.srv__i p{
  font-size: 15px; line-height: 1.6;
  max-width: 44ch; opacity: .74;
}

/* ============================================================
   ПОРЯДОК
   ============================================================ */

/* Карусель этапов. До инициализации скрипта (is-ready) карточки
   лежат столбиком — без JS раздел остаётся читаемым. */
.flow__car{ margin-top: clamp(32px, 4vw, 48px); }
/* Лид секции и описание этапа — выключка по формату, как в «Ситуации». */
.flow .sect__head .lead,
.flow__d{
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.flow__viewport{ overflow: hidden; }

.flow__track{
  display: grid; gap: var(--s4);
  margin: 0; padding: 0; list-style: none;
}
.flow__car.is-ready .flow__track{
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  transition: transform 620ms var(--e);
  will-change: transform;
}

/* Подложка карточки — фирменный голубой, текст чернильный:
   та же пара, что в правой части полосы 60/40. */
.flow__slide{
  background: var(--ink);
  color: var(--cream);
  padding: clamp(28px, 3.4vw, 44px);
  display: grid; gap: 14px; align-content: start;
}
.flow__car.is-ready .flow__slide{ min-height: clamp(300px, 26vw, 360px); }

.flow__n{
  font-size: 12px; letter-spacing: .17em; line-height: 1.8; /* как у .eyebrow — строки совпадают */
  text-transform: uppercase; color: var(--muted-on-ink);
}
.flow__n span{ opacity: 1; }
.flow__slide h3{
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.15; letter-spacing: -.01em;
  max-width: 22ch;
}
/* Описание — молочным по голубому; заголовок и срок остаются чернильными */
.flow__d{ font-size: 15px; line-height: 1.62; color: var(--cream); max-width: 46ch; }
.flow__t{
  font-family: var(--serif);
  font-size: 18px; letter-spacing: .01em;
  margin-top: auto; padding-top: var(--s2);
}

.flow__nav{
  display: none;
  align-items: center; gap: var(--s3);
  margin-top: var(--s4);
}
.flow__car.is-ready .flow__nav{ display: flex; }

.flow__btn{
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: inherit; cursor: pointer;
  border: var(--hair) solid var(--line);
  transition: background 320ms var(--e), border-color 320ms var(--e), opacity 320ms var(--e);
}
.flow__btn svg{ width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
/* При наведении кнопка заливается фирменным голубым, стрелка — чернильная */
.flow__btn:hover:not(:disabled){
  background: var(--blue);
  border-color: var(--blue);
  color: var(--ink);
}
.flow__btn:disabled{ opacity: .3; cursor: default; }
.flow__btn:focus-visible{ outline: var(--hair) solid var(--blue); outline-offset: 3px; }

.flow__dots{
  display: flex; gap: var(--s2);
  margin: 0 0 0 var(--s2); padding: 0; list-style: none;
}
.flow__dots li{
  position: relative; overflow: hidden;
  width: 22px; height: 2px;
  background: rgba(11,21,32,.22);
}
/* Активный штрих заполняется слева направо за время показа слайда —
   это же и индикатор автопрокрутки. */
.flow__dots li::after{
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left center;
}
.flow__dots li.is-on::after{ transform: scaleX(1); }
.flow__dots li.is-run::after{
  animation: flow-dot var(--flow-dur, 7000ms) linear forwards;
}
.flow__car.is-paused .flow__dots li.is-run::after{ animation-play-state: paused; }

@keyframes flow-dot{
  from{ transform: scaleX(0); }
  to  { transform: scaleX(1); }
}

/* ============================================================
   ДОКУМЕНТЫ
   ============================================================ */

.docs__grid{ display: grid; gap: clamp(48px, 6vw, 88px); }
.docs__head .btn{ margin-top: clamp(28px, 3vw, 40px); }

.docs__list{ border-top: var(--hair) solid var(--line); }
.docs__list li{
  position: relative;
  padding: 17px 0 17px 34px;
  font-size: 15px; line-height: 1.55;
  border-bottom: var(--hair) solid var(--line);
  opacity: .82;
}
.docs__list li::before{
  content: ""; position: absolute;
  left: 0; top: 27px;
  width: 16px; height: var(--hair);
  background: currentColor; opacity: .45;
}

/* ============================================================
   АДВОКАТ
   ============================================================ */

.advokat__grid{ display: grid; gap: clamp(48px, 6vw, 80px); }
/* Текст об адвокате — выключка по формату, как в «Ситуации». */
.advokat__role,
.advokat__text .lead{
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Имя — в одну строку: любой перенос внутри ФИО даёт рваный блок */
.advokat__text h2{ font-size: clamp(1.6rem, 2.9vw, 2.85rem); }

.advokat__role{
  margin-top: var(--s3);
  font-size: 13.5px; letter-spacing: .015em;
  color: var(--muted);
}

.tags{
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(32px, 3.6vw, 48px);
}
.tags li{
  padding: 9px 16px;
  border: var(--hair) solid var(--line);
  font-size: 12.5px; letter-spacing: .04em;
  opacity: .78;
}

/* Портрет адвоката. Приём тот же, что у снимка суда в «Ситуации»:
   тёмная плашка выступает из-под фотографии вправо и вниз. */
.port{ align-self: start; }
.port__fig{ margin: 0; }
.port__frame{ position: relative; }
.port__block{
  position: absolute;
  right: -30px; bottom: -30px;
  width: 58%; height: 62%;
  /* секция чернильная — плашка молочная, иначе она сливалась бы с фоном */
  background: var(--cream);
  z-index: 0;
}
.port__frame img{
  position: relative; z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1);          /* как снимки зданий — чёрно-белые */
}


/* ============================================================
   FAQ
   ============================================================ */

.faq__grid{ display: grid; gap: clamp(40px, 5vw, 72px); }

/* Разделители вопросов — фирменным голубым, сами заголовки чернильные */
.faq__list{ border-top: var(--hair) solid var(--blue); }

.qa{ border-bottom: var(--hair) solid var(--blue); }
.qa summary{
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  min-height: 44px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.4;
  transition: opacity 320ms var(--e);
}
.qa summary > span:first-child{ text-wrap: balance; }
.qa summary::-webkit-details-marker{ display: none; }

/* Подсветка наведения — только для мыши. На тач-экране :hover залипает
   после касания: строка остаётся притушенной, и ответ выглядит так,
   будто он мигнул и погас. */
@media (hover: hover) and (pointer: fine){
  .qa summary:hover{ opacity: .62; }
}

/* Открытая строка всегда читается: даже если анимация появления
   по какой-то причине не отыграла, ответ не должен остаться невидимым. */
.qa[open]{ opacity: 1; }

.qa__ic{
  position: relative; flex: none;
  width: 15px; height: 15px;
}
.qa__ic::before, .qa__ic::after{
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: var(--hair); background: currentColor;
  transition: transform 420ms var(--e), opacity 320ms var(--e);
}
.qa__ic::after{ transform: rotate(90deg); }
.qa[open] .qa__ic::after{ transform: rotate(0deg); opacity: 0; }

.qa__b{
  padding-bottom: 26px;
  max-width: 62ch;
}
.qa__b p{ font-size: 15px; line-height: 1.62; }
/* Ответы — выключка по формату, как в остальных блоках. */
.qa__b p,
.qa__l li{
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* Перечень внутри ответа — тем же ритмом, что список документов:
   короткое тире вместо маркера. */
.qa__l{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qa__l li{
  position: relative; padding-left: 26px;
  font-size: 15px; line-height: 1.62;
}
.qa__l li::before{
  content: ""; position: absolute; left: 0; top: .8em;
  width: 14px; height: var(--hair); background: currentColor; opacity: .5;
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */

/* Контакты пиктограммами: телефон, почта, Telegram. Номеров два, а знак
   один — оба открываются всплывающей карточкой над кнопкой, иначе в ряду
   получалось бы две одинаковые трубки без способа их различить. */
.cico{
  display: flex; align-items: center; gap: var(--s4);
  margin-left: -10px;      /* оптическая компенсация: рамок больше нет,
                              и знак должен вставать по краю колонки */
}
.cico__slot{ position: relative; }

.cico__b{
  display: grid; place-items: center;
  width: 44px; height: 44px;          /* тач-таргет; рамки нет, знак стоит сам */
  border: 0; background: none; color: var(--blue);
  padding: 0; cursor: pointer;
  transition: opacity 320ms var(--e);
}
.cico__b svg{
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter;
}
.cico__b:hover{ opacity: .6; }

/* Карточка с номерами: появляется при наведении на трубку и при переходе
   на неё табом, вверх — под кнопкой в подвале места нет. Скрыта через
   visibility, а не display: иначе не работает переход. */
.cico__pop{
  position: absolute; bottom: calc(100% + 8px); left: 0;
  z-index: 4;
  display: grid;
  min-width: max-content;
  background: var(--ink);
  border: var(--hair) solid var(--line);
  padding: var(--s2) 0;
  opacity: 0; visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 260ms var(--e), transform 260ms var(--e), visibility 260ms;
}
/* Мостик через зазор: без него карточка гаснет, пока курсор идёт к номеру. */
.cico__pop::after{
  content: ""; position: absolute;
  left: 0; right: 0; top: 100%; height: 8px;
}
.cico__slot:hover .cico__pop,
.cico__slot:focus-within .cico__pop{
  opacity: 1; visibility: visible;
  transform: none;
  pointer-events: auto;
}
.cico__pop a{
  display: flex; align-items: center;
  min-height: 44px;
  padding: 0 var(--s4);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background-color 320ms var(--e);
}
.cico__pop a:hover{ background: rgba(247,243,239,.06); }

.geo{
  display: grid; gap: var(--s5);
  padding-block: clamp(48px, 6vw, 80px);
}
/* В подвале интервалы задаёт .foot__contacts — собственные отступы блока
   там лишние: вместе с ними между знаками и адресами зияла пустота. */
.foot .geo{ padding-block: 0; }
/* Только адрес: снимки зданий сняты с сайта, город и улица стоят
   в одну строку и переносятся на узких экранах. */
.geo__i{
  margin: 0;
  display: flex; align-items: baseline; gap: var(--s3);
  flex-wrap: wrap;
}
/* Город набирается так же, как улица — тем же шрифтом и кеглем,
   отличается только плотностью цвета. */
.geo__city{ font-size: 13.5px; color: var(--muted-on-ink); }
.geo__addr{ font-size: 13.5px; color: var(--cream); }

/* Лид «Контактов» — выключка по формату, как в остальных блоках. */
.kont .sect__head .lead{
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}


/* ============================================================
   ПОДВАЛ
   ============================================================ */

.foot{
  background: var(--ink);
  color: var(--cream);
  border-top: var(--hair) solid rgba(247,243,239,.14);
  padding-block: clamp(32px, 3.4vw, 52px);
  /* Контакты и адреса переехали сюда из секции «Запуск сделки»: подвал —
     тёмная секция, поэтому ему нужны те же токены линий и приглушённого
     текста, что .sect--ink задаёт своим блокам. */
  --line: rgba(247,243,239,.16);
  --muted: var(--muted-on-ink);
}
/* Знаки контактов и адреса — один ярус подвала с общим ритмом.
   На широких экранах встают рядом: знаки слева, адреса справа. */
.foot__contacts{ display: grid; gap: clamp(20px, 2.4vw, 32px); }
.foot__in{ display: grid; gap: var(--s4); }

/* Верхний ярус: марка кабинета слева, монограмма справа.
   Знак — обычный элемент потока, не абсолют: так он не может обрезаться
   краем футера ни на какой ширине и всегда держит воздух вокруг себя. */
/* На узких экранах знак встаёт над маркой (column-reverse: в разметке он
   идёт вторым), иначе строка «ЕФИМЕНКО В.В. | АДВОКАТСКИЙ КАБИНЕТ» плюс
   монограмма не помещаются по ширине и знак выходит за край. */
.foot__top{
  display: flex; flex-direction: column-reverse; align-items: flex-start;
  gap: var(--s4);
}
/* Марка подвала повторяет шапку: монограмма, черта, подпись. Прежний
   полупрозрачный знак справа снят — он дублировал ту же монограмму. */
.foot__brand{ margin-right: 0; gap: var(--s4); }
.foot__brand .brand__mark{ width: clamp(44px, 4.4vw, 62px); }

.foot__bot{
  display: grid; gap: var(--s2);
  padding-top: var(--s3);
  border-top: var(--hair) solid rgba(247,243,239,.12);
}
/* Оговорка идёт во всю ширину подвала: узкой колонкой она липла к левому
   краю и оставляла полосу пустоты справа. */
.foot__c{ font-size: 12.5px; line-height: 1.55; color: var(--cream); text-wrap: pretty; }
.foot__y{ font-size: 12.5px; color: var(--cream); }

/* ============================================================
   §7 ДВИЖЕНИЕ — вход со сдвигом и размытием
   ============================================================ */

.rise{
  opacity: 0;
  transform: translateY(28px);
  filter: blur(14px);
}
.rise.is-in{
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity   900ms var(--e) var(--d, 0ms),
    transform 900ms var(--e) var(--d, 0ms),
    filter    900ms var(--e) var(--d, 0ms);
}

/* Анимация отыграла — снимаем filter и transform совсем.
   blur(0) визуально ничего не меняет, но держит композитный слой
   на каждом из блоков до конца жизни страницы. */
.rise.is-done{
  filter: none;
  transform: none;
  transition: none;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* --- узкие экраны --- */
@media (max-width: 699px){
  /* Ручные переносы сохраняем: обе половины каждого заголовка
     умещаются в 375px, и деление по смыслу ровнее, чем авторазбивка. */

  /* Лиды укладываются в 3–4 строки — это в пределах, где работает
     balance, поэтому выравниваем их в прямоугольник и здесь. */
  .lead{ text-wrap: balance; }

  /* Кнопка во всю ширину: подпись помещается в одну строку,
     стрелка уходит к правому краю. */
  .btn{ width: 100%; justify-content: space-between; padding-inline: 22px; }
  .btn--lg{ padding: 17px 22px; font-size: 14px; }
}

@media (min-width: 700px){
  .cols{ grid-template-columns: 1fr 1fr; }
  .geo{ grid-template-columns: 1fr 1fr; }
  .calc__label{ font-size: 12px; }
  .foot__top{
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: var(--s5);
  }
  .foot__bot{
    grid-template-columns: 1fr auto;
    align-items: baseline; gap: var(--s5);
  }
  .foot__contacts{
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center; gap: clamp(32px, 5vw, 88px);
  }
  /* Адреса идут друг под другом: рядом со знаками ширины на две колонки
     города и улицы уже не хватает. */
  .foot .geo{ grid-template-columns: 1fr; gap: var(--s2); }
  .terms__row{ grid-template-columns: 240px 1fr; gap: var(--s5); align-items: baseline; }
  /* Четыре колонки под четыре элемента этапа: номер, заголовок,
     описание, срок. Трёх колонок не хватало — срок уезжал на вторую строку. */
  .srv{ grid-template-columns: repeat(3, 1fr); gap: 0 var(--s5); }
  .srv__i{ border-bottom: 0; }
}

@media (min-width: 1000px){
  /* Подвал в одну строку: марка слева, адреса по центру страницы,
     знаки связи справа. display:contents у .foot__contacts нужен, чтобы
     знаки и адреса встали в ту же сетку, что и марка. */
  .foot__in{
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(32px, 4vw, 72px);
  }
  /* Все три блока держим в первой строке — иначе автопоток уводит
     адреса на вторую и центры перестают совпадать по горизонтали. */
  .foot__top{ grid-column: 1; grid-row: 1; }
  .foot__contacts{ display: contents; }
  .foot .geo{ grid-column: 2; grid-row: 1; justify-self: center; }
  .foot .cico{ grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; margin-right: -10px; }
  /* Знаки стоят у правого края — карточку с контактами раскрываем влево,
     иначе она вылезает за макет и включает горизонтальный скролл. */
  .foot .cico__pop{ left: auto; right: 0; }
  .foot__bot{ grid-column: 1 / -1; grid-row: 2; }


  /* Три колонки только здесь: на 768px они дают по 216px,
     и подпись факта разваливается на короткие огрызки. */
  .facts__grid{ grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
  .fact__v{ max-width: 34ch; }

  .situ__grid{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
  /* Снимок уходит в край макета, но не вплотную: 34px остаётся под вылет
     плашки, иначе она обрезалась бы краем секции и объём пропадал. */
  .situ__fig{ margin-right: calc(var(--pad) * -1 + 34px); }
  .situ__frame img{ aspect-ratio: 5 / 6; }

  .docs__grid{ grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(64px, 7vw, 120px); }
  .advokat__grid{ grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .faq__grid{ grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); align-items: start; }
  .kont__grid{ grid-template-columns: repeat(3, 1fr); }
  /* Две колонки: слева заголовок и текст, справа график.
     График садится во вторую строку — его верх совпадает
     с верхом первого абзаца, а не с заголовком. */
  .model__top{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .model__top .sect__head{ grid-column: 1; grid-row: 1; max-width: 100%; }
  .model__lead{ grid-column: 1; grid-row: 2; margin-bottom: 0; }
  /* margin-top как у первого .lead — верх графика встаёт вровень с текстом */
  .model__top .split{ grid-column: 2; grid-row: 2; margin-top: var(--s4); }

  /* Порядок: слева заголовок и лид, справа карусель этапов */
  .flow{
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  /* Отступ равен внутреннему полю карточки: надзаголовок «Сроки и порядок»
     встаёт на одну строку с «Этап N из 4». */
  .flow .sect__head{
    max-width: 100%; margin-bottom: 0;
    padding-top: clamp(28px, 3.4vw, 44px);
  }
  .flow__car{ margin-top: 0; }

  .sect__head{ max-width: 62%; }
  .sect__head--wide{ max-width: 100%; }
}

/* Семь пунктов меню плюс кнопка помещаются в строку только от 1200px:
   на 1000–1199px они вылезали за край и включали горизонтальный скролл.
   Ниже работает бургер. */
@media (min-width: 1200px){
  .nav{ display: flex; }
  /* flex: none — иначе кнопка сжимается соседями и подпись рвётся на две строки */
  .hdr .hdr__cta{ display: inline-flex; flex: none; white-space: nowrap; }
  .burger{ display: none; }
  .mmenu{ display: none !important; }
}

@media (min-width: 1400px){
  :root{ --hdr-h: 106px; }
}

/* ============================================================
   MOT-05 — уважение к prefers-reduced-motion
   ============================================================ */

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .rise{ opacity: 1; transform: none; filter: none; }
  .split__seg--a{ width: 60%; }
  .split__seg--b{ width: 40%; }
  .split__pct{ opacity: 1; }
}

/* ============================================================
   Форма заявки — секция «Контакты», тёмный фон

   Раскладка блока: слева порядок работы и прямые контакты,
   справа сама форма в рамке-волосинке с синей кромкой сверху.
   Поля остаются волосинками, как в остальном проекте: рамок
   нет, есть подчёркивание, которое наливается синим от левого
   края по фокусу.
   ============================================================ */

.kont__act{
  padding-top: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

@media (max-width: 1000px){
  .kont__act{ grid-template-columns: 1fr; gap: clamp(32px, 5vw, 48px); }
}

/* --- левая колонка: порядок работы --- */

.kont__steps{ list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }

.kstep{ display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; }
.kstep__n{
  font-family: var(--serif);
  font-size: 20px; line-height: 1.2;
  color: var(--muted);
  padding-top: 2px;
}
.kstep__t{ margin: 0; font-size: 15px; line-height: 1.65; color: var(--cream); }

/* --- левая колонка: прямая связь --- */

.kdir{
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: var(--hair) solid var(--line);
  display: grid; gap: var(--s2);
}
.kdir__lab{
  margin: 0 0 var(--s2);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.kdir__l{
  justify-self: start;
  font-size: 15px;
  color: var(--cream);
  border-bottom: var(--hair) solid var(--line);
  transition: border-color 320ms var(--e);
}
.kdir__l:hover{ border-bottom-color: var(--blue); }

/* --- правая колонка: сама форма --- */

.lead-form{
  position: relative;
  border: var(--hair) solid var(--line);
  border-top: 2px solid var(--blue);
  padding: clamp(24px, 2.8vw, 40px);
}

.lead-form__ttl{
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  margin: 0 0 clamp(20px, 2.4vw, 32px);
}

.lead-form__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4) var(--s5);
}
.fld--wide{ grid-column: 1 / -1; }

@media (max-width: 720px){
  .lead-form__grid{ grid-template-columns: 1fr; gap: var(--s4); }
}

.fld{ position: relative; margin: 0; }

.fld__lab{
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s2);
  transition: color 320ms var(--e);
}
.fld__opt{
  text-transform: none;
  letter-spacing: .02em;
  opacity: .7;
}

/* Обёртка нужна ради наливающегося подчёркивания: сама линия
   лежит на поле, а синяя — на обёртке и растёт от левого края. */
.fld__box{ position: relative; display: block; }
.fld__box::after{
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--e);
}
.fld__box:focus-within::after{ transform: scaleX(1); }

.fld__in{
  display: block; width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: var(--hair) solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;              /* 16px, иначе iOS увеличивает страницу при фокусе */
  line-height: 1.5;
  transition: border-color 420ms var(--e);
}
.fld__in--area{ resize: vertical; min-height: 104px; }

.fld__in::placeholder{ color: var(--cream); opacity: .32; }
.fld__in:focus{ outline: 0; }
.fld__in:focus-visible{ outline: 0; }

/* Автозаполнение браузера не должно возвращать белый фон полей. */
.fld__in:-webkit-autofill,
.fld__in:-webkit-autofill:focus{
  -webkit-text-fill-color: var(--cream);
  transition: background-color 100000s;
}

.fld:focus-within .fld__lab{ color: var(--cream); }

.fld.is-bad .fld__in{ border-bottom-color: var(--red); }
.fld.is-bad .fld__box::after{ background: var(--red); }

.fld__err,
[data-err-for]{
  display: block;
  min-height: 18px;
  margin-top: var(--s1);
  font-size: 13px;
  color: var(--red);
}

/* --- ловушка для ботов --- */
.lead-form__trap{
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- согласие --- */
.agree{
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: var(--s4);
  cursor: pointer;
}
.agree__box{
  position: absolute;
  opacity: 0; width: 0; height: 0;
}
.agree__mark{
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: var(--hair) solid var(--line);
  display: grid; place-items: center;
  transition: border-color 320ms var(--e), background 320ms var(--e);
}
.agree__mark svg{
  width: 14px; height: 14px;
  fill: none; stroke: var(--ink); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: scale(.6);
  transition: opacity 260ms var(--e), transform 260ms var(--e);
}
.agree:hover .agree__mark{ border-color: var(--blue); }
.agree__box:checked + .agree__mark{ background: var(--blue); border-color: var(--blue); }
.agree__box:checked + .agree__mark svg{ opacity: 1; transform: scale(1); }
.agree__box:focus-visible + .agree__mark{ outline: 2px solid var(--blue); outline-offset: 3px; }

.agree__txt{ font-size: 14px; line-height: 1.6; color: var(--muted); }

.lead-form.is-bad-agree .agree__mark{ border-color: var(--red); }

/* --- низ формы --- */
.lead-form__foot{
  display: flex; align-items: center; gap: var(--s4);
  flex-wrap: wrap;
  margin-top: var(--s4);
}
.lead-form__foot .reassure{ margin: 0; }

.btn.is-sending{ pointer-events: none; opacity: .6; }

/* Сообщение о неудачной отправке: заявка не ушла, человеку нужен запасной путь. */
.lead-form__fail{
  margin-top: var(--s4);
  padding-left: var(--s3);
  border-left: 2px solid var(--red);
  font-size: 14px; line-height: 1.6;
  color: var(--cream);
}
.lead-form__fail a{ color: var(--cream); border-bottom: var(--hair) solid var(--line); }
.lead-form__fail a:hover{ border-bottom-color: var(--blue); }

/* --- экран благодарности --- */
.lead-done{
  border-left: 2px solid var(--blue);
  padding-left: var(--s4);
  animation: leadDoneIn 620ms var(--e) both;
}
.lead-done:focus{ outline: 0; }
.lead-done__ttl{
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}
.lead-done__txt{
  margin-top: var(--s3);
  font-size: 16px; line-height: 1.7;
  color: var(--muted);
}
.lead-done__txt a{ color: var(--cream); border-bottom: var(--hair) solid var(--line); }

@keyframes leadDoneIn{
  from{ opacity: 0; transform: translateY(14px); }
  to  { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce){
  .lead-done{ animation: none; }
  .fld__box::after{ transition: none; }
}

/* ============================================================
   Согласие на cookie
   Небольшая карточка в углу, а не полоса на весь экран: страницу
   не перекрывает и прокрутку не блокирует. Появляется через пару
   секунд или при первой прокрутке, чтобы не встречать человека
   на входе. Цвета — фирменные: чернильный фон, синяя кромка.
   ============================================================ */

.ck{
  position: fixed;
  left: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 95;
  width: min(400px, calc(100vw - 24px));
  padding: 20px 22px;
  background: var(--ink);
  color: var(--cream);
  border: var(--hair) solid rgba(247,243,239,.16);
  border-top: 2px solid var(--blue);
  box-shadow: 0 18px 48px rgba(11,21,32,.28);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--e), transform 520ms var(--e);
}
.ck.is-on{ opacity: 1; transform: none; }

.ck__t{ margin: 0; font-size: 13.5px; line-height: 1.6; }

.ck__act{
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
}

.ck__ok{
  min-height: 40px;
  padding: 9px 22px;
  border: 0;
  border-radius: var(--r);
  background: var(--blue);
  color: var(--ink);
  font: 14px/1.4 var(--sans);
  cursor: pointer;
  transition: background 320ms var(--e);
}
.ck__ok:hover{ background: var(--cream); }

.ck__no{
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: 13.5px/1.4 var(--sans);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: var(--hair);
  text-underline-offset: 4px;
  transition: color 320ms var(--e);
}
.ck__no:hover{ color: var(--cream); }

.ck__ok:focus-visible,
.ck__no:focus-visible{ outline: 2px solid var(--blue); outline-offset: 3px; }

/* На телефоне карточка — во всю ширину у нижнего края, в две строки. */
@media (max-width: 560px){
  .ck{ left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px 18px; }
  .ck__t{ font-size: 13px; }
}

@media (prefers-reduced-motion: reduce){
  .ck{ transition: none; }
}

/* Вход в настройки cookie из подвала. */
.foot__y{ display: flex; align-items: center; gap: 20px; }
.foot__ck{
  padding: 0; border: 0; background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: var(--hair);
  text-underline-offset: 3px;
}
.foot__ck:hover{ color: var(--cream); }

/* ============================================================
   Без JavaScript
   Блоки .rise прячутся до анимации появления, а показывает их
   скрипт. Если он не запустился — сбой, блокировщик, робот без
   рендера, — текст остался бы невидимым. Класс js ставится
   первой строкой в <head>; без него всё видно сразу.
   ============================================================ */
html:not(.js) .rise{
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
