/* Шувалова и партнеры — главная, v4 (2026-09-26, доработка по аудиту заказчика).
   Глубокий navy на первом экране, в блоке исполнения и в финале; слоновая кость в теле;
   электрический синий только на главном действии. Onest — только H1, H2
   и крупные цифры; всё остальное — Golos Text. Линии и воздух вместо теней.
   Попап заявки и плашка cookie из script.js берут --ink/--muted/--accent/--sans. */

/* Golos Text и Onest: по одному переменному файлу (толщина 400–600) на семейство, только нужные символы —
   кириллица, латиница, цифры, пунктуация, ₽ № × ≈ → (fontTools, 2026-09-27). Раньше было 10 файлов Google-нарезки. */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/golos-text.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/onest.woff2) format("woff2"); }

/* Запасные шрифты с метриками Golos/Onest: пока свои шрифты грузятся, системный Arial (на Android — Roboto)
   занимает то же место, и текст не прыгает при подмене (CLS). Поправки посчитаны по файлам шрифтов. */
@font-face { font-family: "Golos Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Roboto"), local("Helvetica"); size-adjust: 106.04%; ascent-override: 92.41%; descent-override: 20.75%; line-gap-override: 0%; }
@font-face { font-family: "Onest Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Roboto"), local("Helvetica"); size-adjust: 103.09%; ascent-override: 94.1%; descent-override: 29.59%; line-gap-override: 0%; }

:root {
  --night: #0b1119;
  --night-2: #111a26;
  --on-night: #f3f1eb;
  --on-night-2: #b9bec6;
  --on-night-3: #8d949e;
  --cold: #8fa9c5;
  --line-night: rgb(243 241 235 / .14);

  --paper: #f3f1eb;
  --paper-2: #e8e5de;
  --card: #fbfaf7;
  --ink: #20242a;
  --ink-2: #3e434a;
  --muted: #5d626a;
  --line: #d6d2c8;
  --line-2: #bfbab0;
  --success: #16784a;
  --error: #b3261e;

  --blue: #155afd;
  --blue-2: #0c47d6;
  --accent: var(--blue);

  --display: "Onest", "Onest Fallback", system-ui, sans-serif;
  --sans: "Golos Text", "Golos Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1344px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec: clamp(88px, 10vw, 152px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
/* плавная прокрутка только с мышью: на iPhone при фокусе поля она сбивает курсор ниже поля ввода */
@media (hover: hover) and (pointer: fine) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.6 var(--sans); font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.num { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--blue); color: #fff; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- типографика ---------- */
.h2 { font: 500 clamp(34px, 3.8vw, 56px)/1.08 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.link { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--line-2); transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--ink); }

/* ссылка-действие второго уровня: текст + стрелка, стрелка уходит на 5px */
.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; font: 500 16px/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.more__ico { display: inline-flex; color: var(--ink); transition: transform .35s var(--ease); }
.more__ico .ico { width: 18px; height: 18px; }
.more:hover .more__ico { transform: translateX(5px); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 58px; padding: 0 28px; border: 1px solid var(--blue); border-radius: var(--r);
  background: var(--blue); color: #fff; font: 500 16px/1.2 var(--sans); letter-spacing: .005em;
  cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn:hover .ico { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

.ghost { display: inline-flex; align-items: center; gap: 14px; min-height: 58px; font-weight: 500; color: var(--on-night); }
.ghost > span:first-child { border-bottom: 1px solid rgb(243 241 235 / .4); padding-bottom: 2px; transition: border-color .2s; }
.ghost__ring { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(243 241 235 / .35); border-radius: 50%; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s; }
.ghost__ring .ico { width: 16px; height: 16px; }
.ghost:hover > span:first-child { border-color: var(--on-night); }
.ghost:hover .ghost__ring { background: var(--on-night); border-color: var(--on-night); color: var(--night); }

/* ---------- шапка ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--on-night); transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-night); transition: opacity .35s; }
.hdr__in { display: flex; align-items: center; gap: 28px; height: 80px; }
.hdr.is-scrolled { background: var(--night); box-shadow: 0 1px 0 var(--line-night); }
.hdr.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr.is-solid::after { opacity: 0; }
.hdr.is-hidden { transform: translateY(-100%); }

.brand { --lh: 38px; position: relative; display: block; width: fit-content; flex: none; height: var(--lh); }
.brand__art { position: relative; display: block; }
.brand__img img { height: var(--lh); width: auto; }
.on-light { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.on-dark { transition: opacity .35s; }
.hdr.is-solid .on-light { opacity: 1; }
.hdr.is-solid .on-dark { opacity: 0; }

.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); margin: 0 auto; font-size: 15.5px; font-weight: 500; }
.nav a { position: relative; padding: 10px 0; opacity: .86; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__tel { display: none; }
.hdr__cta { display: flex; align-items: center; gap: 24px; flex: none; }
.hdr__tel { font-weight: 500; font-size: 16px; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; background: none; cursor: pointer; opacity: .9; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }
.hdr.menu-open { background: var(--night); color: var(--on-night); }
.hdr.menu-open .on-light { opacity: 0; }
.hdr.menu-open .on-dark { opacity: 1; }

/* ---------- первый экран ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: max(660px, min(92svh, 960px)); display: flex; flex-direction: column; background: var(--night); color: var(--on-night); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; transform: scale(1.04); transition: transform 2.4s var(--ease); }
.hero.is-ready .hero__bg img { transform: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--night) 0%, rgb(11 17 25 / .93) 26%, rgb(11 17 25 / .6) 46%, rgb(11 17 25 / .12) 66%, transparent 80%),
    linear-gradient(0deg, var(--night) 0%, rgb(11 17 25 / .8) 14%, transparent 36%),
    linear-gradient(180deg, rgb(11 17 25 / .55) 0%, transparent 18%);
}
.hero__in { flex: 1; position: relative; display: flex; align-items: center; padding-top: 132px; padding-bottom: 56px; }
.hero__copy { max-width: 860px; }
.hero__lead, .hero__note { max-width: 36em; }
.hero__title { font: 500 clamp(44px, 4.9vw, 72px)/1.04 var(--display); letter-spacing: -.022em; margin-bottom: 28px; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .ln > span { display: inline-block; white-space: nowrap; } /* три строки всегда: перенос только между .ln */
.hero__lead { max-width: 32em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--on-night-2); margin-bottom: 40px; text-wrap: pretty; }
.hero__note { margin-top: 18px; font-size: 14.5px; color: var(--on-night-3); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
.hero__sign { position: absolute; right: var(--gutter); bottom: 56px; display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid rgb(243 241 235 / .35); font-size: 14px; line-height: 1.45; color: var(--on-night-2); }
.hero__sign b { font-weight: 600; font-size: 16px; color: var(--on-night); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-night); }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px 38px; border-left: 1px solid var(--line-night); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts b { font-weight: 600; font-size: 17px; letter-spacing: .005em; }
.facts span { font-size: 14.5px; color: var(--on-night-3); }

/* начальные состояния с JS: без JS всё видно сразу */
.js .hero__title .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero__title .ln:nth-child(2) > span { transition-delay: .08s; }
.js .hero__title .ln:nth-child(3) > span { transition-delay: .16s; }
/* подзаголовок не прячем: это самый крупный текст первого экрана на телефоне (LCP) */
.js .hero__actions, .js .hero__sign, .js .facts { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) .35s, transform .9s var(--ease) .35s; }
.js .hero__actions { transition-delay: .45s; }
.js .facts { transition-delay: .6s; }
.js .hero__sign { transition-delay: .7s; }
.js .hero.is-ready .hero__title .ln > span { transform: none; }
.js .hero.is-ready .hero__lead, .js .hero.is-ready .hero__actions, .js .hero.is-ready .hero__sign, .js .hero.is-ready .facts { opacity: 1; transform: none; }

/* ---------- общие секции ---------- */
.sec { padding: var(--sec) 0; }
.sec--alt { background: var(--paper-2); }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; align-items: end; margin-bottom: clamp(44px, 5vw, 72px); }
.head > .h2 { grid-column: 1 / span 6; }
.head__side { grid-column: 8 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background .25s var(--ease), color .25s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- практики: шесть групп ---------- */
.head--top { align-items: start; }
.grp-bar { margin: -24px 0 28px; }
.grp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grp { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .3s var(--ease); }
.grp[hidden] { display: none; }
.grp:hover { border-color: var(--line-2); }
.grp__img { aspect-ratio: 16 / 7; overflow: hidden; background: var(--night-2); }
.grp__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.2s var(--ease), filter .6s; }
.grp:hover .grp__img img { transform: scale(1.04); filter: saturate(1); }
.grp__body { flex: 1; display: flex; flex-direction: column; padding: 26px 28px 20px; }
.grp__title { font-weight: 600; font-size: 21px; line-height: 1.25; letter-spacing: -.005em; margin-bottom: 10px; }
.grp__desc { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin-bottom: 18px; }
.grp__subs { border-top: 1px solid var(--line); margin-bottom: 14px; }
.sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 15.5px; color: var(--ink); cursor: pointer; transition: color .2s; }
.sub::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .5; flex: none; transition: transform .35s var(--ease), opacity .2s; }
.sub:hover { color: var(--ink); }
.sub:hover::after { transform: translateX(4px) rotate(45deg); opacity: 1; }
.grp__more { margin-top: auto; align-self: flex-start; }

.allpr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.allpr__title { grid-column: 1 / span 3; font-weight: 600; font-size: 16px; padding-top: 10px; }
.allpr__list { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: none; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.allpr__list li[hidden] { display: none; }

/* ---------- панель направления ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0; width: min(760px, 100vw); max-width: none; height: 100dvh; max-height: none; background: var(--paper); color: var(--ink); overflow: hidden; display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: drawer-in .55s var(--ease); }
.drawer::backdrop { background: rgb(11 17 25 / .56); animation: fade-in .4s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.drawer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(22px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.drawer__meta { display: flex; gap: 6px; }
.drawer__meta span { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.drawer__close { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.drawer__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.drawer__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 4vw, 48px) clamp(22px, 4vw, 48px) 48px; }
.pd__title { font: 500 clamp(30px, 3.4vw, 44px)/1.08 var(--display); letter-spacing: -.018em; margin-bottom: 28px; text-wrap: balance; }
.pd__title:focus { outline: 0; }
.pd__img { aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--r); margin-bottom: 36px; background: var(--night-2); }
.pd__img img { width: 100%; height: 100%; object-fit: cover; }
.pd__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; margin-bottom: 32px; }
.drawer__body .pd__col h3, .drawer__body .pd__result h3 { font: 600 14px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pd__col li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.pd__col li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 8px; height: 1px; background: var(--ink); }
.pd__result { padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; }
.pd__result h3 { color: var(--ink); margin-bottom: 6px; }
.pd__result p { font-size: 17.5px; font-weight: 500; line-height: 1.5; }
.pd__norm { font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.pd__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.pd__note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- дела ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); margin-bottom: 56px; }
.stats li { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 0; border-left: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b { font: 500 clamp(36px, 3.4vw, 52px)/1 var(--display); letter-spacing: -.02em; }
.stats span { font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 16em; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case { display: flex; flex-direction: column; padding: 30px 30px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s var(--ease); }
.case:hover { border-color: var(--line-2); }
.case__type { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 22px; }
.case__big { font: 500 clamp(36px, 3vw, 46px)/1 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.case__bigcap { font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-bottom: 24px; }
.case__title { font-weight: 600; font-size: 19px; line-height: 1.3; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: 16px; text-wrap: balance; }
.case__dl { display: grid; gap: 12px; margin-bottom: 26px; }
.case__dl dt { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.case__dl dd { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.case__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.case__foot .num { white-space: normal; }
.case__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .22em; }
.case__link .ico { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.case__link:hover .ico { transform: translateX(5px); }

.reg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; margin-top: 56px; }
.reg__title { grid-column: 1 / span 3; font-weight: 600; font-size: 16px; padding-top: 18px; }
.reg__list { grid-column: 4 / -1; border-top: 1px solid var(--line-2); }
.reg__list a { display: grid; grid-template-columns: 170px 210px 1fr 20px; align-items: center; gap: 20px; min-height: 60px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); transition: color .2s; }
.reg__list a .num { font-weight: 600; color: var(--ink); }
.reg__list a .ico { width: 18px; height: 18px; color: var(--ink); transition: transform .35s var(--ease); }
.reg__list a:hover { color: var(--ink); }
.reg__list a:hover .ico { transform: translateX(5px); }
.reg__note { grid-column: 4 / -1; font-size: 14px; color: var(--muted); }

/* ---------- исполнение ---------- */
.enf { padding: var(--sec) 0; background: var(--night-2); color: var(--on-night); }
.enf__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; align-items: end; margin-bottom: clamp(48px, 5vw, 80px); }
.enf__head .h2 { grid-column: 1 / span 7; }
.enf__head .lead { grid-column: 8 / -1; color: var(--on-night-2); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.flow li { position: relative; padding-top: 30px; }
.flow li::before { content: ""; position: absolute; left: 0; right: -24px; top: 21px; height: 1px; background: var(--line-night); }
.flow li:last-child::before { right: 0; }
.flow li::after { content: ""; position: absolute; right: -4px; top: 17px; width: 8px; height: 8px; border-top: 1px solid var(--cold); border-right: 1px solid var(--cold); transform: rotate(45deg); }
.flow li:last-child::after { display: none; }
.flow__no { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--cold); border-radius: 50%; background: var(--night-2); color: var(--cold); font: 500 20px/1 var(--display); }
.flow h3 { margin-top: 30px; font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.flow p { font-size: 15.5px; line-height: 1.55; color: var(--on-night-2); max-width: 22em; }
.enf__proof { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; align-items: end; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line-night); }
.enf__big { grid-column: 1 / span 5; font: 500 clamp(52px, 5.4vw, 80px)/1 var(--display); letter-spacing: -.02em; }
.enf__big span { font-size: .4em; color: var(--on-night-2); letter-spacing: 0; }
.enf__cap { grid-column: 7 / -1; font-size: 16.5px; line-height: 1.55; color: var(--on-night-2); max-width: 34em; }

/* ---------- команда ---------- */
.team { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.team__photo { grid-column: 1 / span 5; position: sticky; top: 104px; }
.team__photo picture { border-radius: var(--r); overflow: hidden; background: var(--line); }
.team__photo img { width: 100%; aspect-ratio: 1600 / 1141; object-fit: cover; }
.team__photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.team__body { grid-column: 7 / -1; }
.team__body .h2 { margin-bottom: 24px; }
.team__body .lead { margin-bottom: 40px; }
.people { border-top: 1px solid var(--line-2); }
.person { display: grid; grid-template-columns: 76px 1fr auto; gap: 22px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.person img { width: 76px; height: 95px; object-fit: cover; border-radius: var(--r); }
.person h3 { font-weight: 600; font-size: 19px; line-height: 1.3; margin-bottom: 2px; }
.person__role { font-size: 14.5px; color: var(--ink-2); margin-bottom: 6px; }
.person__spec { font-size: 15px; line-height: 1.5; color: var(--muted); }
.person__years { text-align: right; min-width: 96px; }
.person__years b { display: block; font: 500 26px/1.1 var(--display); }
.person__years span { font-size: 14px; color: var(--muted); }

/* ---------- как работаем ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step { position: relative; padding: 36px 24px 0 0; border-top: 1px solid var(--line-2); }
.step::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--ink); }
.step--you::before { background: var(--ink); border-color: var(--ink); }
.step__no { display: block; font: 500 clamp(52px, 4.6vw, 68px)/1 var(--display); letter-spacing: -.02em; color: var(--ink); margin-bottom: 20px; }
.step h3 { font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* ---------- условия ---------- */
.terms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.terms__main { grid-column: 1 / span 7; }
.terms__main .lead { margin: 20px 0 44px; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.rules li { padding: 24px 0 30px; border-top: 1px solid var(--line); }
.rules h3 { font-weight: 600; font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.rules p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.quote { grid-column: 8 / -1; position: sticky; top: 104px; padding: 36px 34px 26px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); }
.quote__title { font-weight: 600; font-size: 18px; margin-bottom: 18px; }
.quote__price .num { font: 500 clamp(40px, 3.3vw, 54px)/1 var(--display); letter-spacing: -.02em; white-space: normal; }
.quote__desc { margin: 18px 0 28px; padding-bottom: 26px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.quote__note { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.quote__link { margin-top: 14px; font-size: 15px; }

/* ---------- вопросы ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.faq__aside { grid-column: 1 / span 4; position: sticky; top: 104px; display: flex; flex-direction: column; align-items: flex-start; }
.faq__aside .lead { margin: 20px 0 26px; }
.faq__tel { font: 500 clamp(28px, 2.4vw, 34px)/1 var(--display); margin-bottom: 20px; transition: color .2s; }
.faq__tel:hover { color: var(--ink-2); }
.msg { display: flex; flex-wrap: wrap; gap: 8px; }
.msg__a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; font-weight: 500; transition: border-color .2s, background .2s, color .2s; }
.msg__a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.msg__a:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 17.5px; line-height: 1.4; transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa__icon { border-color: var(--ink); }
.qa__icon { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; transition: background .3s var(--ease), border-color .3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .4s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa__a { padding: 0 56px 24px 0; }
.qa__a p { font-size: 16.5px; color: var(--ink-2); max-width: 42em; }
.qa__a a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- заявка ---------- */
.apply { position: relative; isolation: isolate; overflow: hidden; padding: var(--sec) 0; background: var(--night); color: var(--on-night); }
.apply__bg { position: absolute; inset: 0; z-index: -2; }
.apply__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 70%; }
.apply::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(11 17 25 / .93) 0%, rgb(11 17 25 / .74) 42%, rgb(11 17 25 / .3) 72%, rgb(11 17 25 / .42) 100%), linear-gradient(180deg, var(--night) 0%, transparent 28%, transparent 78%, rgb(11 17 25 / .8) 100%); }
.apply__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.apply__copy { grid-column: 1 / span 6; }
.apply .lead { color: var(--on-night-2); margin: 24px 0 44px; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; padding-top: 28px; border-top: 1px solid var(--line-night); }
.contacts li { display: flex; flex-direction: column; gap: 4px; }
.contacts span { font-size: 14px; color: var(--on-night-3); }
.contacts a, .contacts b { font-weight: 400; font-size: 16px; line-height: 1.5; }
.contacts a.num { font-weight: 500; font-size: 20px; }
.contacts a:hover { color: var(--cold); }
.contacts b a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgb(243 241 235 / .35); }

.form { grid-column: 8 / -1; position: relative; padding: 36px 34px 28px; background: var(--paper); color: var(--ink); border-radius: var(--r); }
.form__title, .form h3 { font-weight: 600; font-size: 22px; line-height: 1.25; margin-bottom: 22px; }
.form__who { display: flex; align-items: center; gap: 12px; margin: -8px 0 22px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.form__faces { display: flex; flex: none; }
.form__faces img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--paper); margin-left: -8px; }
.form__faces img:first-child { margin-left: 0; }
.form label { display: block; margin-bottom: 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form label small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 7px; padding: 14px 16px; min-height: 54px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); font: 400 16px/1.4 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.form textarea { resize: vertical; min-height: 96px; }
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:hover, .form textarea:hover { border-color: var(--muted); }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(21 90 253 / .16); }
.form .btn { margin-top: 6px; }
.form__safe { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.form__safe svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.form__note, .form__reassure { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.form__note a { text-decoration: underline; text-underline-offset: .2em; }
.form__note.is-ok { color: var(--success); }
.form__done { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; background: var(--paper); border-radius: var(--r); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.form__done svg { width: 64px; height: 64px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.form__done svg path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .8s var(--ease) .3s; }
.form__done b { font: 500 30px/1.1 var(--display); }
.form__done span { color: var(--muted); }
.form.is-sent .form__done { opacity: 1; visibility: visible; transition-delay: 0s; }
.form.is-sent .form__done svg path { stroke-dashoffset: 0; }

/* попап заявки из script.js: та же форма .form */
dialog.lexpop::backdrop { background: rgb(11 17 25 / .62); }
.lexpop .form { grid-column: auto; }
.lexpop .lexpop__topic b { color: var(--ink); }

/* ---------- подвал ---------- */
.ftr { background: var(--night); color: var(--on-night-2); border-top: 1px solid var(--line-night); }
.ftr__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; padding-top: 72px; padding-bottom: 36px; }
.ftr__brand { grid-column: 1 / span 3; }
.ftr__brand .brand { margin-bottom: 22px; }
.ftr__brand .brand { --lh: 44px; }
.ftr__brand p { font-size: 15px; line-height: 1.6; max-width: 26em; }
.ftr__col { display: flex; flex-direction: column; align-items: flex-start; }
.ftr__col--nav { grid-column: 5 / span 2; }
.ftr__col--prx { grid-column: 7 / span 2; }
.ftr__col--contacts { grid-column: 9 / span 2; }
.ftr__col--docs { grid-column: 11 / span 2; }
.ftr__col h3 { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-3); margin-bottom: 12px; }
.ftr__col a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15.5px; transition: color .2s; }
.ftr__col a:hover { color: var(--on-night); }
.ftr__col p { margin-top: 8px; font-size: 15px; }
.ftr__col a.num { font-size: 17px; font-weight: 500; color: var(--on-night); }
.ftr__copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-night); font-size: 14px; color: var(--on-night-3); }

.mbar { display: none; }

/* ---------- появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================== адаптив */
@media (max-width: 1180px) {
  .ftr__brand { grid-column: 1 / -1; }
  .ftr__col--nav, .ftr__col--prx, .ftr__col--contacts, .ftr__col--docs { grid-column: span 3; }
  .nav { display: none; }
  .hdr__cta { margin-left: auto; }
  .burger { display: block; }
  .nav.is-open { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 24px; background: var(--night); color: var(--on-night); border-top: 1px solid var(--line-night); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); font-size: 20px; }
  .nav.is-open a { padding: 16px 0; border-bottom: 1px solid var(--line-night); opacity: 1; }
  .nav.is-open a::after { display: none; }
  .nav.is-open .nav__tel { display: block; border: 0; font-size: 18px; color: var(--cold); }
  .grp-grid, .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .terms__main { grid-column: 1 / -1; }
  .quote { grid-column: 1 / span 8; position: static; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .flow li:nth-child(2)::before { right: 0; }
  .flow li:nth-child(2)::after { display: none; }
  .reg__list a { grid-template-columns: 160px 1fr 20px; }
  .reg__list a span:nth-child(3) { grid-column: 2; grid-row: 2; font-size: 14.5px; color: var(--muted); }
  .reg__list a .ico { grid-row: 1 / span 2; grid-column: 3; }
}

@media (max-width: 960px) {
  .hdr__tel { display: none; }
  .head > .h2, .head__side, .enf__head .h2, .enf__head .lead { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li { padding: 20px 18px 24px; border-top: 1px solid var(--line-night); }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stats--3 li:nth-child(3n+1) { padding-left: 24px; border-left: 1px solid var(--line-night); }
  .stats--3 li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .allpr__title, .allpr__list, .reg__title, .reg__list, .reg__note { grid-column: 1 / -1; }
  .team__photo { grid-column: 1 / -1; position: static; }
  .team__body { grid-column: 1 / -1; }
  .faq__aside { grid-column: 1 / -1; position: static; }
  .faq__list { grid-column: 1 / -1; }
  .apply__copy, .form { grid-column: 1 / -1; }
  .form { max-width: 560px; }
  .ftr__brand { grid-column: 1 / -1; }
  .ftr__col--nav, .ftr__col--prx, .ftr__col--contacts, .ftr__col--docs { grid-column: span 3; }
  .hero__sign { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hdr__in { height: 68px; gap: 12px; }
  .hdr__cta .btn { display: none; }
  .brand { --lh: 26px; }

  /* первый экран: текст, затем фото */
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero::before { display: none; }
  .hero__in { order: 1; display: block; padding-top: 104px; padding-bottom: 28px; }
  .hero__bg { order: 2; position: relative; inset: auto; height: min(104vw, 520px); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%); margin-top: -8px; }
  .hero__bg img { object-position: 50% 14%; transform: none; }
  .hero__proof { order: 3; }
  .hero__title { font-size: clamp(28px, 9vw, 42px); letter-spacing: -.025em; margin-bottom: 18px; }
  .hero__lead { font-size: 17px; margin-bottom: 26px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 6px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .ghost { justify-content: center; }
  .hero__note { text-align: center; margin-top: 10px; font-size: 14px; }
  .facts li { padding: 18px 12px 20px 16px; }
  .facts li:nth-child(odd) { padding-left: 0; }
  .facts b { font-size: 16px; }
  .facts span { font-size: 14px; }

  .seg { width: 100%; }
  .grp-bar { margin: -16px 0 20px; }
  .enf__big, .enf__cap { grid-column: 1 / -1; }
  .enf__proof { margin-top: 44px; padding-top: 28px; }
  .seg button { flex: auto; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .grp-grid, .cases { grid-template-columns: 1fr; gap: 14px; }
  .grp__body { padding: 22px 20px 16px; }
  .grp__img { aspect-ratio: 16 / 6; }
  .allpr { margin-top: 36px; }

  .drawer { width: 100vw; inset: auto 0 0 0; height: 94dvh; border-radius: 14px 14px 0 0; }
  .drawer[open] { animation: sheet-in .5s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(60px); opacity: 0; } }
  .pd__cols { grid-template-columns: 1fr; gap: 24px; }
  .pd__cta .btn { width: 100%; }

  .stats { margin-bottom: 36px; }
  .stats b.num { white-space: normal; font-size: clamp(28px, 8vw, 36px); }
  .stats li { padding: 20px 14px 0 16px; }
  .stats li:nth-child(odd) { padding-left: 0; }
  .case { padding: 24px 20px 16px; }
  .reg__list a { grid-template-columns: 1fr 20px; gap: 4px 12px; }
  .reg__list a span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .reg__list a span:nth-child(3) { grid-column: 1; grid-row: 3; }
  .reg__list a .ico { grid-row: 1 / span 3; grid-column: 2; }

  .flow { grid-template-columns: 1fr; row-gap: 0; }
  .flow li { padding: 0 0 30px 62px; min-height: 42px; }
  .flow li::before { left: 20px; right: auto; top: 42px; bottom: 0; width: 1px; height: auto; }
  .flow li:nth-child(2)::before { right: auto; }
  .flow li::after { display: none; }
  .flow li:last-child::before { display: none; }
  .flow h3 { margin-top: 8px; }

  .person { grid-template-columns: 64px 1fr; gap: 16px; }
  .person img { width: 64px; height: 80px; }
  .person__years { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .person__years b { display: inline; font-size: 20px; }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 0 0 30px 26px; border-top: 0; border-left: 1px solid var(--line-2); margin-left: 4px; }
  .step::before { left: -5px; top: 6px; }
  .step:last-child { border-left-color: transparent; padding-bottom: 0; }
  .step__no { font-size: 44px; margin: 0; }

  .rules { grid-template-columns: 1fr; }
  .quote { grid-column: 1 / -1; padding: 28px 22px 22px; }
  .qa summary { font-size: 17px; }
  .qa__a { padding-right: 0; }

  .contacts { grid-template-columns: 1fr; }
  .form { padding: 28px 20px 22px; }
  .apply::before { background: linear-gradient(180deg, rgb(11 17 25 / .72) 0%, var(--night) 60%); }
  .ftr__col--nav, .ftr__col--prx, .ftr__col--contacts, .ftr__col--docs { grid-column: 1 / -1; }
  .ftr__grid { padding-top: 56px; gap: 32px; grid-template-columns: minmax(0, 1fr); }
  .head, .enf__head, .team, .terms, .faq, .apply__in, .allpr, .reg, .founder, .digest, .enf__proof, .art-layout { grid-template-columns: minmax(0, 1fr); }
  .head > *, .enf__head > *, .team > *, .terms > *, .faq > *, .apply__in > *, .allpr > *, .reg > *, .founder > *, .digest > *, .enf__proof > *, .art-layout > * { grid-column: 1 / -1; }

  body { padding-bottom: 76px; }
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(11 17 25 / .96); border-top: 1px solid var(--line-night); transition: transform .4s var(--ease); }
  .mbar.is-off { transform: translateY(110%); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--r); font-weight: 500; font-size: 15.5px; }
  .mbar__call { color: var(--on-night); border: 1px solid rgb(243 241 235 / .3); }
  .mbar__call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
  .mbar__apply { background: var(--blue); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero__lead, .js .hero__actions, .js .hero__sign, .js .facts, .js .hero__title .ln > span { opacity: 1; transform: none; }
  .hero__bg img { transform: none; }
}

/* =========================================================== внутренние страницы */
/* темная шапка страницы: та же ночь, что на первом экране главной, без фото */
.phead { position: relative; padding: 148px 0 64px; background: var(--night); color: var(--on-night); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 28px; font-size: 14px; color: var(--on-night-3); }
.crumbs a { display: inline-block; padding: 3px 0; color: var(--on-night-2); text-decoration: underline; text-decoration-color: rgb(243 241 235 / .25); text-underline-offset: .2em; transition: color .2s; }
.crumbs a:hover { color: var(--on-night); }
.crumbs__sep { opacity: .5; }
.phead__title { max-width: 18em; font: 500 clamp(36px, 4.4vw, 62px)/1.06 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.phead__lead { max-width: 40em; margin-top: 22px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--on-night-2); text-wrap: pretty; }
.phead__lead b, .phead__lead strong { color: var(--on-night); font-weight: 500; }
.phead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-night); font-size: 14.5px; color: var(--on-night-3); }
.phead__author { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night-2); }
.phead__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.phead__author b { color: var(--on-night); font-weight: 600; }
.phead__norm { padding: 5px 12px; border: 1px solid var(--line-night); border-radius: 999px; color: var(--on-night-2); }
.phead--article { padding-bottom: 150px; }

/* разбор: кадр заходит на темную шапку, дальше содержание + текст */
.art-hero { margin-top: -110px; position: relative; }
.art-figure { margin: 40px 0; }
.art-figure picture { border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.art-figure img { width: 100%; }
.art-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.art-figure--hero { margin: 0; }
.art-figure--hero img { aspect-ratio: 1680 / 713; object-fit: cover; }
.art-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; padding-top: 64px; padding-bottom: var(--sec); }
.toc { grid-column: 1 / span 3; position: sticky; top: 104px; }
.toc__title { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { counter-reset: t; border-top: 1px solid var(--line); }
.toc li { counter-increment: t; border-bottom: 1px solid var(--line); }
.toc li a { display: grid; grid-template-columns: 24px 1fr; gap: 6px; padding: 10px 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); transition: color .2s; }
.toc li a::before { content: counter(t, decimal-leading-zero); font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.toc li a:hover, .toc li a.is-active { color: var(--ink); }
.toc li a.is-active::before { color: var(--ink); }
.toc__cta { margin-top: 24px; min-height: 52px; font-size: 15px; }
.art-body { grid-column: 5 / span 7; min-width: 0; }

/* текст разбора: гротеск для чтения, антиква только в H2 */
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 20px; }
.prose h2, .art-h2 { margin: 64px 0 18px; font: 500 clamp(28px, 2.6vw, 38px)/1.15 var(--display); letter-spacing: -.015em; color: var(--ink); scroll-margin-top: 100px; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 36px 0 10px; font-weight: 600; font-size: 20px; line-height: 1.35; color: var(--ink); }
.prose p { text-wrap: pretty; }
.prose strong, .prose b { font-weight: 600; color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .2em; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 26px; }
.prose ul > li + li, .prose ol > li + li { margin-top: 8px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .8em; width: 10px; height: 1px; background: var(--ink); }
.prose ol { counter-reset: o; }
.prose ol > li { counter-increment: o; }
.prose ol > li::before { content: counter(o) "."; position: absolute; left: 0; top: 0; font-weight: 600; color: var(--ink); }

.art-table { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.art-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.art-table th { padding: 14px 16px; text-align: left; font-weight: 600; font-size: 14px; color: var(--ink); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.art-table td { padding: 14px 16px; vertical-align: top; border-top: 1px solid var(--line); color: var(--ink-2); }
.art-table tr:first-child td { border-top: 0; }
.art-table td:last-child { color: var(--ink); font-weight: 500; }

.callout { margin: 32px 0; padding: 24px 26px; background: var(--paper-2); border-radius: var(--r); }
.callout__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.callout p { font-size: 17px; }
.callout p + p { margin-top: 10px; }

.norm-box { margin: 32px 0; padding: 26px 28px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.norm-box p { font: 500 20px/1.5 var(--display); color: var(--ink); }
.norm-box cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: var(--muted); }

.doclist { border-top: 1px solid var(--line); }
.prose .doclist > li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); margin: 0; }
.prose .doclist > li::before { left: 4px; top: 22px; width: 14px; height: 8px; background: none; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }

.sample { margin: 28px 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--card); }
.sample__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.sample__copy { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sample__copy:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sample pre { margin: 0; padding: 20px 18px; max-height: 420px; overflow: auto; font: 400 14.5px/1.6 var(--sans); white-space: pre-wrap; color: var(--ink-2); }

.calc { margin: 32px 0; padding: 30px 28px 26px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); }
.calc h3 { margin: 0 0 8px; font-weight: 600; font-size: 21px; }
.calc__hint { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.calc label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.calc input, .calc select { display: block; width: 100%; margin-top: 7px; padding: 12px 14px; min-height: 52px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); font: 400 16px/1.4 var(--sans); color: var(--ink); }
.calc input:focus, .calc select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(21 90 253 / .16); }
.calc__out { margin-top: 24px; border-top: 1px solid var(--line); }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.calc__row b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__row--total b { font: 500 34px/1 var(--display); letter-spacing: -.01em; }
.calc__note { margin-top: 12px; font-size: 14px; color: var(--muted); }

.art-faq { margin-top: 72px; }
.art-faq .faq__list { border-top: 1px solid var(--line-2); }
.art-author { display: grid; grid-template-columns: 88px 1fr; gap: 22px; margin-top: 64px; padding: 28px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.art-author img { width: 88px; height: 110px; object-fit: cover; object-position: 50% 15%; border-radius: var(--r); }
.art-author__name { font-weight: 600; font-size: 19px; color: var(--ink); }
.art-author__role { margin: 2px 0 10px; font-size: 14.5px; color: var(--muted); }
.art-author p:last-child { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.art-cta { margin-top: 56px; padding: 40px 38px; background: var(--night-2); color: var(--on-night); border-radius: var(--r); }
.art-cta h2 { font: 500 clamp(26px, 2.4vw, 34px)/1.15 var(--display); letter-spacing: -.015em; }
.art-cta p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--on-night-2); max-width: 38em; }
.art-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.art-cta__note { font-size: 14px; color: var(--on-night-3); }

.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.rel { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s var(--ease); }
.rel:hover { border-color: var(--line-2); }
.rel:hover .more__ico { transform: translateX(5px); }
.rel__norm { font-size: 14px; color: var(--muted); }
.rel__title { flex: 1; font-weight: 600; font-size: 19px; line-height: 1.35; color: var(--ink); }

@media (max-width: 1180px) {
  .toc { grid-column: 1 / span 4; }
  .art-body { grid-column: 5 / -1; }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .toc { grid-column: 1 / -1; position: static; }
  .toc__cta { display: none; }
  .art-body { grid-column: 1 / -1; }
  .art-layout { padding-top: 40px; }
}
@media (max-width: 760px) {
  .phead { padding: 108px 0 44px; }
  .phead--article { padding-bottom: 96px; }
  .art-hero { margin-top: -64px; }
  .phead__title { font-size: clamp(30px, 8.4vw, 38px); }
  .phead__meta { gap: 8px 18px; font-size: 14px; }
  .prose { font-size: 17px; }
  .prose h2, .art-h2 { margin-top: 48px; }
  .calc__fields { grid-template-columns: 1fr; }
  .calc, .art-cta { padding: 26px 20px; }
  .art-author { grid-template-columns: 64px 1fr; gap: 16px; }
  .art-author img { width: 64px; height: 80px; }
  .rel-grid { grid-template-columns: 1fr; }
  .art-table table { min-width: 520px; }
}

/* =========================================================== лендинги направлений (/loesk/) */
.hero--loesk .hero__bg img { object-position: 70% 50%; }
.hero--loesk .crumbs { margin-bottom: 24px; }
.hero__title--md { font-size: clamp(36px, 3.6vw, 54px); line-height: 1.07; max-width: 16.5em; }
.hero--loesk .hero__copy { max-width: 820px; }
.hero--loesk .hero__in { padding-top: 116px; }
.hero__points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin: -14px 0 32px; max-width: 46em; }
.hero__points li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.5; color: var(--on-night-2); }
.hero__points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 5px; border-left: 1.5px solid var(--cold); border-bottom: 1.5px solid var(--cold); transform: rotate(-45deg); }

.sec__note { margin-top: 36px; max-width: 48em; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.sec__note a, .enf__foot a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .2em; }

.lined { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.lined li { padding: 26px 0 30px; border-top: 1px solid var(--line-2); }
.lined h3 { font-weight: 600; font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.lined p { font-size: 16px; line-height: 1.6; color: var(--muted); }

.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stats--night { border-top-color: var(--line-night); margin-bottom: 0; }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
.stats--3 li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.stats--night li { border-left-color: var(--line-night); }
.stats--night span { color: var(--on-night-2); }
.enf__foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-night); max-width: 52em; font-size: 16.5px; line-height: 1.6; color: var(--on-night-2); }
.enf__foot strong { color: var(--on-night); font-weight: 600; }
.enf .enf__head .lead { color: var(--on-night-2); }

.reg--full { display: block; margin-top: 0; }
.reg--full .reg__list a { grid-template-columns: 170px 220px 1fr 20px; }
.reg--full .reg__note { margin-top: 20px; }

.founder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.founder__photo { grid-column: 1 / span 5; }
.founder__photo picture { border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.founder__body { grid-column: 7 / -1; }
.founder__role { margin: 12px 0 20px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.founder__cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px 32px; margin: 32px 0 36px; }
.founder__cols h3 { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.founder__cols li, .ticks li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.founder__cols li::before, .ticks li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 11px; height: 6px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.ticks { margin-top: 28px; border-top: 1px solid var(--line); }

.digest { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.dg-feature { grid-column: 1 / span 7; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .3s var(--ease); }
.dg-feature picture { aspect-ratio: 16 / 8; overflow: hidden; background: var(--night-2); }
.dg-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dg-feature:hover { border-color: var(--line-2); }
.dg-feature:hover img { transform: scale(1.03); }
.dg-feature:hover .more__ico { transform: translateX(5px); }
.dg-feature__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 20px; }
.dg-feature__title { font: 500 clamp(26px, 2.3vw, 32px)/1.15 var(--display); letter-spacing: -.012em; color: var(--ink); }
.dg-list { grid-column: 8 / -1; border-top: 1px solid var(--line-2); }
.dg-row { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line-2); transition: color .2s; }
.dg-row__norm { font-size: 14px; color: var(--muted); }
.dg-row__title { font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--ink); }
.dg-row__sub { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.dg-row:hover .dg-row__title { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .2em; }

@media (max-width: 1180px) {
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .reg--full .reg__list a { grid-template-columns: 160px 1fr 20px; }
  .dg-feature, .dg-list { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .lined { grid-template-columns: 1fr; }
  .founder__photo { grid-column: 1 / span 12; max-width: 520px; }
  .founder__body { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero__title--md { font-size: clamp(30px, 8.4vw, 38px); }
  .hero__points { margin: -6px 0 24px; grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
  .hero__points li { font-size: 15.5px; }
  .hero--loesk .hero__bg img { object-position: 72% 50%; }
  .steps--4 { grid-template-columns: 1fr; row-gap: 0; }
  .founder__cols { grid-template-columns: 1fr; }
  .reg--full .reg__list a { grid-template-columns: 1fr 20px; }
}

@media (max-width: 360px) {
  .seg button { padding: 0 8px; font-size: 13.5px; }
}

/* =========================================================== служебные страницы */
.legal-wrap { padding-top: 64px; padding-bottom: var(--sec); }
.legal { max-width: 760px; }
.prose.legal { font-size: 17px; }
.prose.legal h2 { margin: 48px 0 14px; font: 600 21px/1.3 var(--sans); letter-spacing: 0; }
.prose.legal > p:first-child { font-size: 18px; color: var(--ink); }
.phead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; margin-top: 32px; }
@media (max-width: 760px) { .phead__actions { flex-direction: column; align-items: stretch; gap: 6px; } .phead__actions .ghost { justify-content: center; } }
.phead--nf { padding-bottom: 88px; }

/* ===== 404: запрошенный адрес строкой реестра + куда перейти ===== */
.nf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.nf__copy { grid-column: 1 / span 7; }
.nf__copy .phead__title { max-width: 11em; }
.nf__card { grid-column: 9 / -1; padding-left: 32px; border-left: 1px solid var(--line-night); }
.nf__code { font: 500 clamp(112px, 12vw, 184px)/.8 var(--display); letter-spacing: -.055em; color: var(--cold); margin: 0 0 28px -.04em; }
.nf__dl > div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line-night); }
.nf__dl dt { font-size: 14px; color: var(--on-night-3); }
.nf__dl dd { font-size: 15.5px; line-height: 1.45; color: var(--on-night-2); }
.nf__dl .nf__path { color: var(--on-night); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.js .phead--nf .nf__code { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) .15s, transform 1.1s var(--ease) .15s; }
.js .phead--nf.is-ready .nf__code { opacity: 1; transform: none; }

.nf-go__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 36px 0; border-top: 1px solid var(--line-2); }
.nf-go__row:first-child { border-top: 0; padding-top: 0; }
.nf-go__h { grid-column: 1 / span 3; font: 500 20px/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.nf-go__chips, .nf-go__list, .nf-go__msg { grid-column: 4 / -1; }
.nf-go__chips, .nf-go__msg { display: flex; flex-wrap: wrap; gap: 8px; }
.nf-go__chips .chip, .nf-go__msg .chip { display: inline-flex; align-items: center; }
.nf-go__list { border-top: 1px solid var(--line-2); }
.nf-go__list a { display: grid; grid-template-columns: 200px 1fr 20px; align-items: center; gap: 20px; min-height: 60px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; color: var(--ink-2); transition: color .2s; }
.nf-go__list a:hover { color: var(--ink); }
.nf-go__list a .ico { width: 18px; height: 18px; color: var(--ink); transition: transform .35s var(--ease); }
.nf-go__list a:hover .ico { transform: translateX(5px); }
.nf-go__list--cases b { font: 500 22px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.nf__norm { font-size: 14px; color: var(--muted); }
@media (max-width: 1180px) {
  .nf__copy { grid-column: 1 / span 8; }
  .nf__card { grid-column: 9 / -1; padding-left: 24px; }
}
@media (max-width: 960px) {
  .nf { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .nf__copy, .nf__card { grid-column: 1 / -1; }
  .nf__card { padding-left: 0; border-left: 0; }
  .nf-go__row { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 28px 0; }
  .nf-go__h, .nf-go__chips, .nf-go__list, .nf-go__msg { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nf__code { font-size: 96px; margin-bottom: 20px; }
  .nf-go__list a { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 14px; }
  .nf-go__list a > :first-child { grid-column: 1; grid-row: 1; }
  .nf-go__list a > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .nf-go__list a .ico { grid-column: 2; grid-row: 1 / span 2; }
  .nf-go__chips .chip { min-height: 44px; height: auto; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; text-align: left; }
}

/* строки доплат в карточке цены лендингов */
.quote__more { margin: -28px 0 24px; }
.quote__more li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.quote__more b { font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 960px) { .stats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =========================================================== доработка по аудиту 2 (2026-09-26) */
.hero__sign { padding: 12px 16px; border-left: 0; border-radius: var(--r); background: rgb(11 17 25 / .62); }

.stats__note { margin: -32px 0 48px; max-width: 52em; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* одно крупное дело вместо трех равных карточек */
.kase { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 40px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); }
.kase__main { grid-column: 1 / span 6; display: flex; flex-direction: column; }
.kase__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.kase__tags span { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.kase__tags .kase__ok { background: none; border: 1px solid var(--line-2); color: var(--ink); }
.kase__title { font: 500 clamp(28px, 2.6vw, 38px)/1.15 var(--display); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.kase__who { margin-top: 16px; font-size: 15px; color: var(--muted); }
.kase__who .num { white-space: normal; }
.kase__links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: auto; padding-top: 28px; }
.kase__dl { grid-column: 8 / -1; display: grid; gap: 0; border-top: 1px solid var(--line); }
.kase__dl div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.kase__dl dt { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.kase__dl dd { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
#cases .reg__note .more { font-size: 15.5px; }

/* исполнение: пример из дела + призыв для тех, у кого решение не исполняют */
.enf__ex { grid-column: 1 / span 6; }
.enf__label { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cold); margin-bottom: 12px; }
.enf__ex .enf__cap { margin-top: 16px; }
.enf__cta { grid-column: 8 / -1; padding: 28px 28px 30px; border: 1px solid var(--line-night); border-radius: var(--r); }
.enf__cta h3 { font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.enf__cta p { font-size: 16px; line-height: 1.55; color: var(--on-night-2); margin-bottom: 22px; }
.enf__proof { align-items: start; }

/* команда: четыре полноценные карточки */
.crew { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mate { display: flex; flex-direction: column; }
.mate picture { border-radius: var(--r); overflow: hidden; background: var(--paper-2); margin-bottom: 18px; }
.mate img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
.mate h3 { font-weight: 600; font-size: 20px; line-height: 1.3; }
.mate__role { font-size: 15px; color: var(--ink-2); margin: 2px 0 10px; }
.mate__spec { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.mate__fact { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.mate__spec { margin-bottom: 16px; }

/* этапы: что делаем, что от вас, что на выходе */
.steps--detail dl { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.steps--detail dt { font-weight: 600; color: var(--ink); }
.steps--detail dd { color: var(--muted); margin-bottom: 8px; }

/* стоимость: состав работы */
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin-top: 8px; }
.scope h3 { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.scope .ticks { margin-top: 8px; }
.dashes { margin-top: 8px; border-top: 1px solid var(--line); }
.dashes li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.dashes li::before { content: ""; position: absolute; left: 3px; top: 19px; width: 12px; height: 1.5px; background: var(--ink); }

/* вопросы: шесть главных, остальные по кнопке */
.faq__toggle { display: inline-flex; align-items: center; min-height: 52px; margin-top: 12px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: var(--r); background: none; font-size: 15.5px; font-weight: 500; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.faq__toggle:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.qa[open] summary { color: var(--ink); }

/* форма: подсказка и ошибки у поля */
.form__hint { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--muted); }
.form .is-invalid { border-color: var(--error); box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 14%, transparent); }
.field-err { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--error); }

@media (max-width: 1180px) {
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .kase__main, .kase__dl, .enf__ex, .enf__cta { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .kase { padding: 24px 20px; }
  .stats__note { margin: -16px 0 32px; }
  .scope { grid-template-columns: 1fr; }
  .crew { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .mate h3 { font-size: 17px; }
  .mate__spec { font-size: 14.5px; }
  .enf__cta { padding: 22px 20px; }
}

/* этапы: строки всех пяти колонок на общих горизонталях (subgrid) */
@media (min-width: 1181px) {
  .steps--detail { grid-template-rows: repeat(7, auto); column-gap: 24px; }
  .steps--detail .step { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; padding-right: 0; }
  .steps--detail .step > div, .steps--detail .step dl { display: contents; }
  .steps--detail .step p { padding-bottom: 16px; }
  .steps--detail .step dt:first-of-type { padding-top: 12px; border-top: 1px solid var(--line); }
  .steps--detail dl { margin: 0; padding: 0; border: 0; }
}

/* команда: текстовые блоки всех карточек ряда на общих горизонталях (subgrid) */
.crew { grid-auto-rows: auto; row-gap: 0; }
.mate { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 36px; }
.mate__fact { margin-top: 0; align-self: start; }

/* =========================================================== по итогам критики (2026-09-26) */
/* первый экран на телефоне: лицо и имя основателя сразу, лид короче */
.hero__who { display: none; }
@media (max-width: 760px) {
  .hero__who { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; line-height: 1.35; color: var(--on-night-2); }
  .hero__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
  .hero__who b { display: block; color: var(--on-night); font-weight: 600; font-size: 15px; }
  .hero__lead-list { display: none; }
  .btn { padding-left: 18px; padding-right: 18px; }
}
/* зоны нажатия не меньше 44px */
.contacts a { display: inline-flex; align-items: center; min-height: 44px; }
.contacts b a { min-height: 44px; }
.ftr__col a { min-height: 44px; }
.faq__tel { display: inline-flex; align-items: center; min-height: 44px; }
.form__note a { display: inline-block; padding: 6px 0; }
@media (max-width: 760px) { #apply { scroll-margin-bottom: 84px; } }

/* крупные цифры итогов никогда не наезжают на соседнюю колонку */
.stats b.num { white-space: normal; overflow-wrap: anywhere; }
.stats b small { font-size: .45em; font-weight: 500; letter-spacing: 0; color: inherit; opacity: .75; margin-left: .15em; }

/* ===== кейсы /cases/<slug>/ ===== */
.art-figure--case img { aspect-ratio: 16 / 7; object-position: 50% 30%; }
.case-card { padding: 26px 24px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.case-card__big { font: 500 clamp(30px, 2.3vw, 40px)/1 var(--display); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.case-card__cap { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.case-card__facts { margin-top: 20px; border-top: 1px solid var(--line); }
.case-card__facts li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.case-card__facts b { font: 500 21px/1.2 var(--display); color: var(--ink); letter-spacing: -.01em; }
.case-card__facts span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.case-card .toc__cta { margin-top: 20px; }
.case-lead { font-size: 17px; line-height: 1.6; color: var(--ink); font-weight: 500; }
.case-note { margin-top: 32px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.art-table--result td:last-child { white-space: nowrap; }
@media (max-width: 960px) {
  .case-card { position: static; }
  .case-card .toc__cta { display: none; }
  .case-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
}
@media (max-width: 560px) {
  .case-card__facts { grid-template-columns: 1fr; }
  .art-figure--case img { aspect-ratio: 16 / 9; }
}

/* ===== главная: разобранные дела ===== */
.wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 88px; }
.win__link { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); transition: border-color .25s, transform .35s var(--ease); }
.win__link:hover { border-color: var(--line-2); transform: translateY(-2px); }
.win__link:hover .more__ico { transform: translateX(5px); }
.win__link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.win__img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 30%; }
.win__body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 22px; }
.win__tag { font-size: 14px; color: var(--muted); }
.win__big { margin-top: 14px; font: 500 clamp(40px, 4vw, 60px)/1 var(--display); letter-spacing: -.03em; }
.win__cap { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.win__flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.win__flow > span:not(.win__arr) { display: grid; gap: 2px; }
.win__flow small { font-size: 14px; color: var(--muted); }
.win__flow b { font: 500 20px/1.2 var(--display); color: var(--ink); }
.win__arr { color: var(--muted); }
.win__arr .ico { width: 20px; height: 20px; }
.win__title { margin-top: 18px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.win__court { margin-top: 12px; font-size: 14px; color: var(--muted); white-space: normal; }
.win__body .more { margin-top: auto; padding-top: 14px; }
.cases__sub { margin-bottom: 28px; font: 500 clamp(24px, 2.2vw, 30px)/1.2 var(--display); letter-spacing: -.015em; color: var(--ink); }
.pd__case { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 20px; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .wins { grid-template-columns: 1fr; margin-bottom: 64px; }
}
@media (max-width: 560px) {
  .win__body { padding: 22px 20px 16px; }
}
@media (max-width: 560px) {
  .win__flow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .win__arr { display: none; }
}
@media (max-width: 960px) { .case-card__big { font-size: clamp(36px, 3vw, 46px); } }

/* кнопка «Наверх» (script.js) */
.totop { position: fixed; right: 24px; bottom: 16px; z-index: 80; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgb(243 241 235 / .18); border-radius: 50%; background: var(--night-2); color: var(--on-night); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, visibility .3s, transform .35s var(--ease), bottom .35s var(--ease), background-color .2s; }
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--night); }
.totop:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .totop { display: none; } }
@media (prefers-reduced-motion: reduce) { .totop { transition: opacity .2s, visibility .2s; transform: none; } }

/* таблица итогов кейса на телефоне: все колонки видны */
@media (max-width: 560px) {
  .art-table--result table { min-width: 0; font-size: 14.5px; }
  .art-table--result th, .art-table--result td { padding: 12px 10px; }
  .art-table--result td:last-child { white-space: normal; }
}

/* ===== главная: судебная практика (2026-09-27) ===== */
.prx-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; align-items: end; margin-bottom: clamp(44px, 5vw, 72px); }
.prx-head__main { grid-column: 1 / span 7; }
.prx-head__lead { grid-column: 8 / -1; }
.prx-eyebrow { margin-bottom: 18px; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.prx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.prx-grid:has(.prx-card.is-open) { align-items: start; }
.prx-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 3vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.prx-card__cat { font-size: 14px; line-height: 1.4; color: var(--muted); }
.prx-card__big { margin-top: 20px; font: 500 clamp(44px, 5vw, 72px)/1 var(--display); letter-spacing: -.03em; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.prx-card__cap { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.prx-card__title { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font: 500 clamp(22px, 1.9vw, 27px)/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.prx-card__dl { display: grid; gap: 18px; margin: 22px 0 28px; }
.prx-card__dl dt, .prx-case__dl dt { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.prx-card__dl dd, .prx-case__dl dd { font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

.prx-toggle, .prx-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0; border: 0; border-top: 1px solid var(--line-2); background: none; font: 500 17px/1.3 var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.prx-toggle { margin-top: auto; width: 100%; }
.prx-toggle[hidden] { display: none; }
.prx-toggle__ico { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; transition: background .25s, border-color .25s, color .25s; }
.prx-toggle__ico::before, .prx-toggle__ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .3s var(--ease); }
.prx-toggle__ico::after { transform: rotate(90deg); }
.prx-toggle:hover .prx-toggle__ico, .prx-list summary:hover .prx-toggle__ico { border-color: var(--ink); }
.prx-toggle[aria-expanded="true"] .prx-toggle__ico, .prx-list[open] summary .prx-toggle__ico { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.prx-toggle[aria-expanded="true"] .prx-toggle__ico::after, .prx-list[open] summary .prx-toggle__ico::after { transform: rotate(0); }
.prx-toggle:focus-visible, .prx-list summary:focus-visible, .prx-ext:focus-visible, #cases .link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 2px; }

.prx-more { margin-bottom: 28px; border-top: 1px solid var(--line); }
.prx-more[hidden] { display: none; }
.prx-step { padding: 20px 0; border-bottom: 1px solid var(--line); }
.prx-step h4 { margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prx-step p, .prx-step li { font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.prx-step ul { display: grid; gap: 8px; }
.prx-step li { position: relative; padding-left: 20px; }
.prx-step li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 1px; background: var(--ink); }
.prx-step__links { padding-top: 20px; font-size: 16px; }

/* технологическое присоединение */
.prx-tp { margin-top: clamp(88px, 9vw, 136px); padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--line-2); }
.prx-tp__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 24px; align-items: end; }
.prx-tp__title { grid-column: 1 / span 6; font: 500 clamp(30px, 3vw, 44px)/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.prx-tp__lead { grid-column: 8 / -1; font-size: 17px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

.prx-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 44px 0 40px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.prx-kpi li { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 24px 28px; border-left: 1px solid var(--line); min-width: 0; }
.prx-kpi li:first-child { padding-left: 0; border-left: 0; }
.prx-kpi b { font: 500 clamp(36px, 3.4vw, 52px)/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.prx-kpi b.prx-kpi__text { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -.01em; }
.prx-kpi span { font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 20em; }

.prx-case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; padding: clamp(24px, 3vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.prx-case__main { grid-column: 1 / span 7; min-width: 0; }
.prx-case__side { grid-column: 9 / -1; min-width: 0; padding-left: 28px; border-left: 1px solid var(--line); }
.prx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.prx-tags span { font-size: 13px; line-height: 1.3; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink-2); }
.prx-case__title { font: 500 clamp(24px, 2.2vw, 32px)/1.2 var(--display); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.prx-case__dl { display: grid; gap: 18px; margin-top: 24px; }
.prx-case__big { font: 500 clamp(44px, 5vw, 72px)/1 var(--display); letter-spacing: -.03em; color: var(--ink); white-space: normal; }
.prx-case__cap { margin-top: 12px; font-size: 17px; line-height: 1.45; color: var(--ink); }
.prx-case__note { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--muted); }
.prx-case__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); }
.prx-ext { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--line-2); transition: text-decoration-color .2s; }
.prx-ext:hover { text-decoration-color: var(--ink); }
.prx-ext .num { white-space: nowrap; }
.prx-ext__ico { font-size: .95em; text-decoration: none; }

.prx-list { margin-top: 40px; border-bottom: 1px solid var(--line-2); }
.prx-list summary { list-style: none; }
.prx-list summary::-webkit-details-marker { display: none; }
.prx-list__rows { border-top: 1px solid var(--line); }
.prx-list__rows li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; align-items: center; gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prx-list__rows li:last-child { border-bottom: 0; }
.prx-list__id { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
.prx-list__id b { font-size: 16px; font-weight: 600; color: var(--ink); }
.prx-list__id span, .prx-list__res { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.prx-tp__note { margin-top: 24px; max-width: 52em; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.prx-tp__more { margin-top: 12px; font-size: 16px; }

@media (max-width: 960px) {
  .prx-head__main, .prx-head__lead, .prx-tp__title, .prx-tp__lead { grid-column: 1 / -1; }
  .prx-grid { grid-template-columns: minmax(0, 1fr); }
  .prx-case__main, .prx-case__side { grid-column: 1 / -1; }
  .prx-case__side { margin-top: 28px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 760px) {
  .prx-kpi { grid-template-columns: minmax(0, 1fr); margin: 32px 0; }
  .prx-kpi li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .prx-kpi li:first-child { border-top: 0; }
  .prx-list__rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .prx-list__rows .prx-ext { justify-self: start; min-height: 40px; }
  .prx-card__dl dd, .prx-case__dl dd { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .prx-toggle__ico, .prx-toggle__ico::before, .prx-toggle__ico::after { transition: none; }
}

/* ===== исполнение решения: заголовок слева, ведомость справа (2026-09-27) ===== */
.enf--v3 { padding: clamp(72px, 8vw, 120px) 0; }
.xe { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; align-items: start; }
.xe-intro { grid-column: 1 / span 4; position: sticky; top: 112px; }
.xe-eyebrow { margin-bottom: 20px; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--cold); }
.xe-title { font-size: clamp(34px, 3.4vw, 50px); color: var(--on-night); }
.xe-intro__lead { margin-top: 28px; font: 500 clamp(19px, 1.5vw, 21px)/1.35 var(--display); color: var(--on-night); }
.xe-intro__text { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--on-night-2); text-wrap: pretty; }

.xe-sheet { grid-column: 6 / -1; border-top: 1px solid var(--line-night); }
.xe-row { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px 32px; padding: 32px 0; border-bottom: 1px solid var(--line-night); }
.xe-row__key { padding-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--cold); }
.xe-h3 { font: 500 clamp(21px, 1.7vw, 25px)/1.25 var(--display); letter-spacing: -.01em; color: var(--on-night); text-wrap: balance; }
.xe-text { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--on-night-2); max-width: 36em; text-wrap: pretty; }

.xe-ways { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 24px; margin-top: 24px; }
.xe-way__tag { font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-2); }
.xe-way h4 { margin-top: 10px; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--on-night); }
.xe-way p:last-child { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--on-night-2); }
.xe-or { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--on-night-3); }
.xe-or::before, .xe-or::after { content: ""; flex: 1; width: 1px; background: var(--line-night); }

.xe-row--goal { padding: 40px 0; }
.xe-goal { font: 500 clamp(28px, 2.6vw, 38px)/1.12 var(--display); letter-spacing: -.02em; color: var(--on-night); text-wrap: balance; }
.xe-goal__act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 24px; }
.xe-goal__act .xe-text { margin-top: 0; }

.xe-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; cursor: pointer; list-style: none; font: 500 17px/1.35 var(--sans); color: var(--on-night); }
.xe-qa summary::-webkit-details-marker { display: none; }
.xe-qa summary:focus-visible { outline: 2px solid var(--on-night); outline-offset: 4px; border-radius: 2px; }
.xe-qa .prx-toggle__ico { border-color: var(--line-night); }
.xe-qa summary:hover .prx-toggle__ico { border-color: var(--on-night); }
.xe-qa[open] summary .prx-toggle__ico { background: var(--on-night); border-color: var(--on-night); color: var(--night-2); }
.xe-qa[open] summary .prx-toggle__ico::after { transform: rotate(0); }
.xe-qa > p { padding: 12px 0 4px; max-width: 40em; font-size: 16px; line-height: 1.6; color: var(--on-night-2); }
.xe-case { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-night); font-size: 15px; line-height: 1.55; color: var(--on-night-3); }
.xe-case__label { color: var(--on-night-2); font-weight: 600; }
.xe-case b { color: var(--on-night); font-weight: 600; }

@media (max-width: 1100px) {
  .xe-intro { grid-column: 1 / -1; position: static; max-width: 720px; }
  .xe-title br { display: none; }
  .xe-sheet { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .xe { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .xe-row { grid-template-columns: minmax(0, 1fr); padding: 26px 0; gap: 10px; }
  .xe-row__key { padding-top: 0; }
  .xe-ways { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 18px; }
  .xe-or { flex-direction: row; margin: 20px 0; }
  .xe-or::before, .xe-or::after { width: auto; height: 1px; }
  .xe-goal { font-size: clamp(26px, 7.4vw, 32px); }
  .xe-goal__act .btn { width: 100%; white-space: normal; text-align: center; }
  .xe-text, .xe-intro__text { font-size: 16px; }
}


/* шапка: логотип «Ход Ферзем» (только словесный знак, с 2026-10-11) и справа подпись «Юридическое бюро».
   Подпись видна только в верхней точке страницы, при прокрутке гаснет (место остается, меню не сдвигается). */
.hdr .brand { display: flex; align-items: center; width: auto; }
.brand__tag { position: relative; top: -1px; width: min-content; margin-left: 16px; padding-left: 16px; font: 500 10px/1.35 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); pointer-events: none; transition: opacity .3s var(--ease), color .35s var(--ease); }
/* черта: на всю высоту знака без выносных элементов, чуть выше текста подписи */
.brand__tag::before { content: ""; position: absolute; left: 0; top: -1px; bottom: 1px; width: 1px; background: var(--line-night); transition: background .35s var(--ease); }
.hdr.is-solid .brand__tag { color: var(--muted); }
.hdr.is-solid .brand__tag::before { background: var(--line-2); }
.hdr.menu-open .brand__tag { color: var(--on-night-2); }
.hdr.menu-open .brand__tag::before { background: var(--line-night); }
.hdr.is-scrolled .brand__tag, .hdr.is-solid .brand__tag, .hdr.menu-open .brand__tag { opacity: 0; }
@media (min-width: 1181px) and (max-width: 1340px) {
  .hdr__in { gap: 20px; }
  .nav { gap: 16px; font-size: 15px; }
  .brand__tag { margin-left: 12px; padding-left: 12px; }
}
@media (max-width: 760px) {
  .brand__tag { margin-left: 12px; padding-left: 12px; font-size: 9px; letter-spacing: .12em; }
}
/* совсем узкие телефоны: подпись не помещается рядом с меню */
@media (max-width: 379px) { .brand__tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .brand__tag { transition: opacity .2s; } }

/* телефон: шапка не прилипает, прокручивается вместе со страницей и не меняет вид */
@media (max-width: 760px) {
  html { scroll-padding-top: 16px; }
  .hdr { position: absolute; }
  .hdr.is-scrolled, .hdr.is-solid { background: transparent; color: var(--on-night); box-shadow: none; }
  .hdr.is-solid::after { opacity: 1; }
  .hdr.is-solid .on-light { opacity: 0; }
  .hdr.is-solid .on-dark { opacity: 1; }
  .hdr.is-hidden { transform: none; }
  .hdr.is-scrolled .brand__tag, .hdr.is-solid .brand__tag { opacity: 1; }
  .hdr.menu-open { background: var(--night); }
}
/* якорь «Контакты» — верхняя граница блока заявки, а не список контактов внутри него */
.apply__anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* =========================================================== лендинги направлений v2 (/postavka/, 2026-10-19) */
/* первый экран: фото справа открыто, текст слева, внизу расчет из решения по нашему делу */
.hero--dir .hero__bg img { object-position: 78% 55%; }
.hero--dir .crumbs { margin-bottom: 24px; }
.hero--dir .hero__copy { max-width: 760px; }
.hero--dir .hero__in { padding-top: 116px; padding-bottom: 32px; }
.hero--dir .hero__lead { margin-bottom: 32px; }

/* расчет: слагаемые из резолютивной части и итог; знаки — холодный голубой на ночи */
.sum { border-top: 1px solid var(--line-night); padding-bottom: 36px; }
.sum__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 16px 0 4px; font-size: 14.5px; color: var(--on-night-3); }
.sum__head a { color: var(--on-night); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(243 241 235 / .3); text-underline-offset: .2em; transition: text-decoration-color .2s; }
.sum__head a:hover { text-decoration-color: var(--on-night); }
.sum__head .sum__case { margin-left: auto; }
.sum__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.35fr); }
.sum__row li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 0 30px; }
.sum__row li:first-child { padding-left: 0; }
.sum__op { position: absolute; left: 0; top: 19px; width: 18px; font: 500 22px/1 var(--display); color: var(--cold); text-align: center; }
.sum__row b { font: 500 clamp(22px, 1.9vw, 28px)/1.1 var(--display); letter-spacing: -.015em; color: var(--on-night); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum__row span:not(.sum__op) { font-size: 15px; font-weight: 500; color: var(--on-night-2); }
.sum__row small { font-size: 14px; line-height: 1.4; color: var(--on-night-3); }
.sum__row .sum__total { padding-left: 40px; }
.sum__row .sum__total .sum__op { left: 6px; }
.sum__total b { font-size: clamp(32px, 3vw, 46px); line-height: 1; }
.sum__total span:not(.sum__op) { color: var(--on-night); }
/* знаки появляются по очереди, итог последним — одно движение на страницу */
.js .hero--dir .sum__row li, .js .hero--dir .sum__head { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .hero--dir.is-ready .sum__head { transition-delay: .5s; }
.js .hero--dir.is-ready .sum__row li:nth-child(1) { transition-delay: .62s; }
.js .hero--dir.is-ready .sum__row li:nth-child(2) { transition-delay: .74s; }
.js .hero--dir.is-ready .sum__row li:nth-child(3) { transition-delay: .86s; }
.js .hero--dir.is-ready .sum__row li:nth-child(4) { transition-delay: .98s; }
.js .hero--dir.is-ready .sum__row li:nth-child(5) { transition-delay: 1.2s; }
.js .hero--dir.is-ready .sum__row li, .js .hero--dir.is-ready .sum__head { opacity: 1; transform: none; }

/* ситуации — каждая ведет в свой разбор */
.sit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.sit a { display: flex; flex-direction: column; height: 100%; padding: 26px 0 18px; border-top: 1px solid var(--line-2); transition: border-color .3s var(--ease); }
.sit a:hover { border-top-color: var(--ink); }
.sit a:hover .more__ico { transform: translateX(5px); }
.sit h3 { font-weight: 600; font-size: 19px; line-height: 1.3; margin-bottom: 10px; color: var(--ink); }
.sit p { flex: 1; font-size: 16px; line-height: 1.6; color: var(--muted); margin-bottom: 14px; }

/* хронология дела на ночи: даты над шагами */
.flow__date { display: block; margin-top: 30px; font-size: 14.5px; color: var(--cold); }
.flow__date + h3 { margin-top: 6px; }
.enf__foot .more { color: var(--on-night); }

/* кто ведет: заголовок слева, люди справа */
.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.duo__head { grid-column: 1 / span 5; }
.duo__head .lead { margin-top: 20px; }
.duo .people { grid-column: 7 / -1; }
.duo .person { grid-template-columns: 96px 1fr; }
.duo .person img { width: 96px; height: 120px; object-position: 50% 18%; }

@media (max-width: 1180px) {
  .sum__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .sum__row li:nth-child(odd) { padding-left: 0; }
  .sum__row li:nth-child(odd):not(:first-child) .sum__op { left: auto; right: calc(100% + 2px); }
  .sum__row .sum__total { grid-column: 1 / -1; padding: 20px 0 0; margin-top: 10px; border-top: 1px solid var(--line-night); flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 16px; }
  .sum__row .sum__total .sum__op { position: static; width: auto; }
  .sum__head .sum__case { margin-left: 0; }
}
@media (max-width: 960px) {
  .sit { grid-template-columns: 1fr; }
  .duo__head, .duo .people { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero--dir .hero__in { padding-top: 104px; padding-bottom: 28px; }
  .hero--dir .hero__bg img { object-position: 70% 50%; }
  .sum__row { grid-template-columns: 1fr; row-gap: 0; }
  .sum__row li, .sum__row li:nth-child(odd) { display: grid; grid-template-columns: 22px 1fr auto; column-gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-night); }
  .sum__row li .sum__op, .sum__row li:nth-child(odd):not(:first-child) .sum__op { position: static; width: auto; grid-row: 1 / span 2; font-size: 18px; }
  .sum__row li:first-child::before { content: ""; grid-row: 1 / span 2; }
  .sum__row b { grid-column: 3; grid-row: 1; font-size: 19px; text-align: right; }
  .sum__row span:not(.sum__op) { grid-column: 2; grid-row: 1; }
  .sum__row small { grid-column: 2 / -1; grid-row: 2; }
  .sum__row li.sum__total { margin-top: 0; padding: 16px 0 0; border-bottom: 0; border-top: 0; }
  .sum__total b { font-size: 30px; }
  .sum__total span:not(.sum__op) { align-self: center; }
  .sum { padding-bottom: 24px; }
  .duo .person { grid-template-columns: 76px 1fr; }
  .duo .person img { width: 76px; height: 95px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero--dir .sum__row li, .js .hero--dir .sum__head { opacity: 1; transform: none; transition: none; }
}
.enf .lead .link { color: var(--on-night); text-decoration-color: rgb(243 241 235 / .35); }
.enf .lead .link:hover { text-decoration-color: var(--on-night); }
.enf__foot .more .ico { color: var(--cold); }

/* правки по финальной проверке (2026-10-19) */
/* расчет запускается по появлению строки на экране, а не по готовности первого экрана */
.js .hero--dir.is-ready .sum__row li, .js .hero--dir.is-ready .sum__head { opacity: 0; transform: translateY(12px); }
.js .hero--dir .sum.is-in .sum__row li, .js .hero--dir .sum.is-in .sum__head { opacity: 1; transform: none; }
.js .hero--dir .sum.is-in .sum__head { transition-delay: 0s; }
.js .hero--dir .sum.is-in .sum__row li:nth-child(1) { transition-delay: .12s; }
.js .hero--dir .sum.is-in .sum__row li:nth-child(2) { transition-delay: .24s; }
.js .hero--dir .sum.is-in .sum__row li:nth-child(3) { transition-delay: .36s; }
.js .hero--dir .sum.is-in .sum__row li:nth-child(4) { transition-delay: .48s; }
.js .hero--dir .sum.is-in .sum__row li:nth-child(5) { transition-delay: .7s; }

/* хронология дела: даты главные, кольца с номерами убраны; скобка над двумя последними этапами */
.flow--time .flow__no { width: 9px; height: 9px; top: 17px; border-radius: 50%; font-size: 0; background: var(--cold); border-color: var(--cold); }
.flow--time .flow__date { margin-top: 26px; font: 500 clamp(20px, 1.7vw, 24px)/1.2 var(--display); letter-spacing: -.01em; color: var(--on-night); }
.flow--time .flow__date + h3 { margin-top: 10px; font-size: 17px; color: var(--cold); }
.flow-span { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 14px; }
.flow-span span { grid-column: 3 / -1; position: relative; padding: 0 0 12px; border-bottom: 1px solid var(--cold); font-size: 14.5px; color: var(--cold); }
.flow-span span::before, .flow-span span::after { content: ""; position: absolute; bottom: -1px; width: 1px; height: 8px; background: var(--cold); }
.flow-span span::before { left: 0; }
.flow-span span::after { right: 0; }

/* разборы: кадр ниже, чтобы карточка не перерастала список справа */
.digest--dir .dg-feature picture { aspect-ratio: 16 / 5; }

@media (max-width: 1180px) {
  .flow-span { display: none; }
}
@media (max-width: 760px) {
  .hero--dir { min-height: 0; }
  .hero--dir .hero__in { align-items: flex-start; padding-bottom: 20px; }
  .hero--dir .hero__lead { margin-bottom: 24px; }
  .hero--dir .hero__lead-more, .hero--dir .hero__ghost { display: none; }
  .hero--dir .sum__row small { display: none; }
  .hero--dir .sum__row li, .hero--dir .sum__row li:nth-child(odd) { padding: 9px 0; }
  .hero--dir .sum__head { padding-top: 12px; }
  .flow--time .flow__date { margin-top: 0; }
}
@media (max-width: 760px) {
  /* расчет сразу под текстом, кадр склада — под расчетом и ниже */
  .hero--dir .hero__bg { order: 4; height: 56vw; margin-top: -24px; }
  .hero--dir .hero__bg img { object-position: 72% 60%; }
}
@media (max-width: 760px) {
  .hero--dir .sum__head > span { display: none; }
  .hero--dir .sum__head { justify-content: space-between; }
}

/* расчет из трех слагаемых (вред здоровью) и номер дела без ссылки (суды общей юрисдикции) */
.sum__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr); }
.sum__head .sum__num { color: var(--on-night); font-weight: 500; }
@media (max-width: 1180px) {
  .sum__row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sum__row--3 { grid-template-columns: 1fr; }
}

/* неденежный итог дела на первом экране лендинга (семья, жилье): значения словами, итог мельче суммы */
.sum__row--plain .sum__total b { font-size: clamp(28px, 2.4vw, 38px); white-space: normal; }
@media (max-width: 760px) {
  .sum__row--plain .sum__total b { font-size: 26px; }
}

/* =========================================================== правки по визуальной проверке (2026-10-27) */
/* расчет на первом экране: подпись слагаемого переносится, а не выталкивает сумму за правый край */
@media (max-width: 760px) {
  .sum__row, .sum__row--3 { grid-template-columns: minmax(0, 1fr); }
  .sum__row li, .sum__row li:nth-child(odd) { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .sum__row span:not(.sum__op) { min-width: 0; overflow-wrap: break-word; }
  /* итог: «=» и сумма в строку, пояснение под суммой во всю ширину */
  .sum__row li.sum__total { grid-template-columns: 22px minmax(0, 1fr); row-gap: 6px; }
  .sum__row .sum__total b { grid-column: 2; grid-row: 1; text-align: left; white-space: normal; }
  .sum__row .sum__total span:not(.sum__op) { grid-column: 2; grid-row: 2; align-self: start; }
  .sum__row .sum__total .sum__op { grid-row: 1; align-self: center; }
}
@media (max-width: 379px) {
  .sum__row li, .sum__row li:nth-child(odd) { column-gap: 8px; grid-template-columns: 16px minmax(0, 1fr) auto; }
  .sum__row li.sum__total { grid-template-columns: 16px minmax(0, 1fr); }
  .sum__row b { font-size: 17px; }
  .sum__total b { font-size: 26px; }
  .sum__row--plain .sum__total b { font-size: 22px; }
}

/* широкая таблица на телефоне: подсказка, что ее можно листать вбок (ставит site.js) */
.art-table__hint { display: flex; align-items: center; gap: 8px; margin: 28px 0 -18px; font-size: 13.5px; color: var(--muted); }
.art-table__hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art-table.is-scroll { position: relative; background:
  linear-gradient(90deg, var(--card) 30%, transparent) left / 40px 100% no-repeat local,
  linear-gradient(270deg, var(--card) 30%, transparent) right / 40px 100% no-repeat local,
  linear-gradient(90deg, rgb(11 17 25 / .14), transparent) left / 16px 100% no-repeat scroll,
  linear-gradient(270deg, rgb(11 17 25 / .14), transparent) right / 16px 100% no-repeat scroll,
  var(--card); }
.art-table.is-scroll td { background: transparent; }

/* мобильное меню: затемняет страницу под собой, не длиннее экрана, подпись у логотипа остается */
@media (max-width: 1180px) {
  .nav.is-open { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5), 0 0 0 100vmax rgb(11 17 25 / .6); clip-path: inset(0 -100vmax -100vmax -100vmax); }
  .hdr.menu-open .brand__tag { opacity: 1; }
}

/* подвал: многострочные ссылки не слипаются и не вылезают за колонку */
.ftr__col a { max-width: 100%; padding: 6px 0; line-height: 1.3; }
@media (min-width: 761px) and (max-width: 1180px) { .ftr__col a { font-size: 14.5px; } }

/* попап на телефоне: крестик лежит на затемнении над карточкой, поэтому фон под ним плотнее */
@media (max-width: 760px) { dialog.lexpop::backdrop { background: rgb(11 17 25 / .88); } }
