/* ============================================================
   Сенсор Лицензирование — v2
   Фундамент: master-grid на всю ширину, полноэкранные «комнаты»
   с инверсией темы, семантический интерактив, Lenis-инерция.
   ============================================================ */

:root {
  /* Светлая комната */
  --paper:   #F4F5F6;
  --paper-2: #EAECEE;
  --ink:     #14181C;
  --graphite:#5A6470;
  --line:    #D9DCDF;

  /* Тёмная комната */
  --dark:     #121519;
  --dark-2:   #1A1F25;
  --on-dark:  #ECEEF0;
  --on-dark-2:#9AA3AD;
  --line-dark:rgba(255,255,255,0.12);

  /* Акцент — сургуч */
  --wax:        #8B2E2E;
  --wax-bright: #C24B45;   /* для тёмных комнат */

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* master-grid */
  --cols: 12;
  --gutter: clamp(20px, 4.2vw, 88px);   /* поля от края вьюпорта */
  --col-gap: clamp(14px, 1.6vw, 28px);
  --room-y: clamp(80px, 12vh, 200px);

  /* движение */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --expo:   cubic-bezier(0.84, 0, 0.16, 1);
  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
canvas { display: block; }

.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.wax  { color: var(--wax); }
::selection { background: var(--wax); color: #fff; }

/* ============================================================
   MASTER GRID — каждый блок прибит к колонкам, на всю ширину
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--col-gap);
  width: 100%;
  padding-inline: var(--gutter);
}

/* ============================================================
   КОМНАТЫ — полноэкранные цветовые поля
   ============================================================ */
.room {
  position: relative;
  padding-block: var(--room-y);
  background: var(--paper);
  color: var(--ink);
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
.room[data-theme="dark"] {
  background: var(--dark);
  color: var(--on-dark);
}
.room[data-theme="dark"] .lead { color: var(--on-dark-2); }
.room[data-theme="dark"] .wax { color: var(--wax-bright); }

/* Призрачный номер раздела — в поле сетки, вместо eyebrow-лейбла */
.ghost {
  position: absolute;
  top: clamp(24px, 5vh, 64px);
  left: var(--gutter);
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(5rem, 13vw, 13rem);
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.ghost--dark { color: #fff; opacity: 0.06; }

/* ============================================================
   ТИПОГРАФИКА — флюид от ширины вьюпорта
   ============================================================ */
.h-section {
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.h-big {
  font-size: clamp(2.1rem, 5.6vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 1.0;
}
.lead {
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.55;
  color: var(--graphite);
  max-width: 46ch;
}
.lead--dim { color: var(--graphite); opacity: 0.75; }

.kicker {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ============================================================
   REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--expo), transform 0.8s var(--expo);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   FILEMARK — оглавление дела (scroll-spy)
   ============================================================ */
.filemark {
  position: fixed;
  top: 50%;
  right: clamp(14px, 1.6vw, 26px);
  transform: translateY(-50%);
  z-index: 40;
  mix-blend-mode: difference;
}
.filemark ul { display: flex; flex-direction: column; gap: 9px; }
.filemark a {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  color: #fff;
  opacity: 0.45;
  transition: opacity 0.3s var(--ease);
}
.filemark a:hover, .filemark li.is-active a { opacity: 1; }
.filemark__n {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.filemark__t {
  font-size: 0.78rem;
  font-weight: 500;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.4s var(--ease), opacity 0.3s var(--ease);
}
.filemark a:hover .filemark__t,
.filemark li.is-active .filemark__t { max-width: 120px; opacity: 1; }
.filemark li.is-active .filemark__n { color: var(--wax-bright); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
  padding-inline: var(--gutter);
  color: var(--ink);
  transition: color 0.5s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s;
}
.header.is-dark { color: var(--on-dark); }
.header.is-stuck { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); }
.header.is-stuck.is-dark { background: color-mix(in srgb, var(--dark) 80%, transparent); }

.wordmark {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
}
.wordmark__logo { display: block; height: 26px; width: auto; transition: filter 0.4s var(--ease); }
.header.is-dark .wordmark__logo { filter: brightness(0) invert(1); }
.wordmark__mark { color: var(--wax); margin: 0 1px; }
.header.is-dark .wordmark__mark { color: var(--wax-bright); }
.wordmark__sub {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.6em;
  letter-spacing: 0.02em;
  opacity: 0.6;
  text-transform: lowercase;
}
.header__nav {
  margin-left: auto;
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 0.95rem;
  font-weight: 500;
}
.header__nav a { opacity: 0.7; transition: opacity 0.2s; }
.header__nav a:hover { opacity: 1; }

/* ---------- Бургер (появляется ≤1000, см. медиазапросы) ---------- */
.menu-toggle {
  display: none;            /* на десктопе навигацию закрывают ссылки + filemark */
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  appearance: none; -webkit-appearance: none;
  background: none; border: none; border-radius: 0;
  padding: 10px 2px; margin: 0; cursor: pointer; color: inherit;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; transition: width 0.3s var(--ease); }
.menu-toggle span:last-child { width: 18px; }
.menu-toggle:hover span:last-child { width: 26px; }

/* ---------- Полноэкранное мобильное меню ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  padding: clamp(18px, 4vh, 40px) var(--gutter) clamp(24px, 5vh, 56px);
  overflow: hidden;            /* сам оверлей не скроллится — крестик неподвижен */
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);  /* плотнее, чем шапка (86%) */
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.menu__top { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; }
.menu__logo { height: 28px; width: auto; display: block; }
.menu__close {
  position: relative;
  width: 48px; height: 48px; flex: 0 0 auto;
  appearance: none; -webkit-appearance: none; background: none; border: none; border-radius: 0;
  cursor: pointer; color: var(--graphite); transition: color 0.2s;
}
.menu__close:hover { color: var(--wax); }
.menu__close::before, .menu__close::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 24px; height: 2px; background: currentColor;
}
.menu__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.menu__nav {
  flex: 1 1 auto; min-height: 0;        /* забирает остаток высоты и скроллится сам */
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  margin-top: clamp(12px, 3vh, 36px);
}
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { border-top: 1px solid var(--line); }
.menu__list li:last-child { border-bottom: 1px solid var(--line); }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: clamp(11px, 1.6vh, 16px) 0;
  color: var(--ink);
  transition: color 0.2s, padding-left 0.3s var(--ease);
}
.menu__list a:hover, .menu__list a:focus-visible { color: var(--wax); padding-left: 10px; outline: none; }
.menu__n { flex: 0 0 auto; font-family: var(--mono); font-size: 0.8rem; color: var(--graphite); }
.menu__t { font-size: clamp(1.4rem, 4.5vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.menu__item--accent .menu__t,
.menu__item--accent .menu__n { color: var(--wax); }
.menu__item--accent a:hover .menu__t { color: var(--wax-bright); }
html.is-menu-open { overflow: hidden; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--spring), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn--line {
  padding: 10px 18px;
  border-color: currentColor;
  opacity: 0.85;
}
.btn--line:hover { opacity: 1; transform: translateY(-2px); }
.btn--solid {
  padding: 16px 26px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  width: 100%;
}
.btn--solid:hover { background: var(--wax); transform: translateY(-2px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 70px;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}
.hero__grid { position: relative; z-index: 1; align-items: end; row-gap: clamp(36px, 5vh, 64px); }
.hero__copy { grid-column: 1 / span 9; }
.kicker { margin-bottom: clamp(14px, 1.8vh, 20px); }
.hero__title {
  font-size: clamp(2.1rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero__lead {
  margin-top: clamp(12px, 1.4vh, 16px);
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--graphite);
}
.hero__actions { margin-top: clamp(30px, 4.5vh, 48px); }
.btn--hero { width: auto; font-size: 1.02rem; padding: 16px 30px; }
.hero__title .wax, .hero__title .nowrap { white-space: nowrap; }

.hero__values {
  grid-column: 1 / span 12;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
  margin-top: clamp(32px, 5vh, 64px);
  padding-top: clamp(20px, 3vh, 30px);
  border-top: 1px solid var(--line);
}
.hero__values li { padding-left: 20px; border-left: 2px solid var(--wax); }
.hero__values-k {
  display: block;
  font-size: clamp(1rem, 1.2vw, 1.18rem); font-weight: 700;
  letter-spacing: -0.015em; color: var(--ink); margin-bottom: 8px;
}
.hero__values p { color: var(--ink); font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.5; max-width: 42ch; }
.hero__proof {
  grid-column: 9 / span 4;
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 1.6vw, 24px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__proof-num b {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.78;
  color: var(--wax);
  letter-spacing: -0.05em;
}
.hero__proof-cap { display: flex; flex-direction: column; gap: 5px; padding-bottom: 0.35em; }
.hero__proof-word { font-size: clamp(1.15rem, 1.5vw, 1.5rem); font-weight: 700; color: var(--ink); letter-spacing: -0.015em; line-height: 1; }
.hero__proof-sub { font-size: clamp(0.9rem, 1vw, 1rem); color: var(--graphite); line-height: 1.35; }

.hero__cue {
  position: absolute;
  bottom: clamp(24px, 5vh, 48px);
  left: var(--gutter);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--graphite);
}
.hero__cue-line { width: 70px; height: 1px; background: var(--graphite); position: relative; overflow: hidden; }
.hero__cue-line::after {
  content: ""; position: absolute; inset: 0; background: var(--wax);
  transform: translateX(-100%); animation: cue 2.8s var(--ease) infinite;
}
@keyframes cue { 0%{transform:translateX(-100%)} 50%{transform:translateX(0)} 100%{transform:translateX(100%)} }

/* ============================================================
   01 — PREMISE / paperstack
   ============================================================ */
.premise__grid { align-items: start; row-gap: clamp(48px, 7vh, 90px); }
.premise__head { grid-column: 1 / span 6; }
.premise__head .lead { margin-top: 28px; }
.premise__head .lead--dim { margin-top: 16px; }

.paperstack {
  grid-column: 8 / span 5;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6vh, 72px);
  padding-block: clamp(16px, 3vh, 40px);
}
.paperstack__sheets {
  position: relative;
  width: clamp(210px, 21vw, 320px);
  aspect-ratio: 7 / 10;
}
.sheet {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20,24,28,0.06);
  transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--sr, 0deg));
  transition: transform 0.9s var(--expo);
  will-change: transform;
}
.sheet--top {
  padding: 0;
  overflow: hidden;
  border-color: var(--line);
  box-shadow: 0 22px 50px rgba(20,24,28,0.18);
}
.sheet--top img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.paperstack__cap {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--on-dark-2);
}
.paperstack__cap b { font-family: var(--mono); font-size: 1.5rem; color: var(--on-dark); font-weight: 500; }
.paperstack__arrow { color: var(--wax-bright); font-size: 1.2rem; }
.paperstack__to b { color: var(--wax-bright); }

/* «15 рабочих дней» — продолжение таймлайна, без большой паузы */
.process { padding-bottom: clamp(24px, 3.5vh, 56px); }
.speed { padding-top: clamp(28px, 4vh, 56px); }

/* ============================================================
   02 — AUTHOR
   ============================================================ */
.author__grid { align-items: center; row-gap: clamp(40px, 6vh, 72px); }
.author__photo { grid-column: 1 / span 5; }
.author__body { grid-column: 7 / span 6; }
.author__body .lead { margin-top: 26px; }

.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 26px; background: var(--dark-2);
  border: 1px dashed var(--line-dark); color: var(--on-dark-2);
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.5;
}
.ph--portrait { aspect-ratio: 4 / 5; }
.author__photo figcaption { margin-top: 14px; font-size: 0.85rem; color: var(--on-dark-2); }

/* пункт регламента */
.reg {
  margin-top: 34px;
  padding: clamp(20px, 2.5vw, 30px);
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  border-left: 2px solid var(--wax-bright);
}
.reg__meta { display: block; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--on-dark-2); text-transform: uppercase; }
.reg__text {
  margin-top: 16px;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--on-dark);
}
.reg__mark {
  background: transparent;
  color: var(--on-dark);
  box-shadow: inset 0 0 0 0 var(--wax);
  padding: 1px 2px;
  transition: box-shadow 0.8s var(--expo), color 0.6s var(--expo);
}
.reg.is-lit .reg__mark { box-shadow: inset 0 -0.75em 0 0 rgba(194,75,69,0.45); }
.reg__tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--wax-bright);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease) 0.4s, transform 0.5s var(--ease) 0.4s;
}
.reg.is-lit .reg__tag { opacity: 1; transform: none; }

/* ============================================================
   03 — CLEAN (доверие)
   ============================================================ */
.clean__grid { row-gap: clamp(40px, 6vh, 72px); }
.clean__head { grid-column: 1 / span 6; }
.clean__head .lead { margin-top: 24px; }

.zero {
  grid-column: 8 / span 5;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  align-self: start;
  padding-top: 10px;
}
.zero__num b {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 0.75;
  color: var(--wax-bright);
  letter-spacing: -0.05em;
}
.zero__cap { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; line-height: 1.35; }

.experts {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
  margin-top: clamp(20px, 3vh, 40px);
}
.expert {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  transition: transform 0.4s var(--spring), border-color 0.3s;
  outline: none;
}
.expert:hover, .expert:focus-visible { transform: translateY(-4px); border-color: var(--wax-bright); }
.expert__ph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--on-dark-2);
  font-family: var(--mono); font-size: 0.7rem; margin-bottom: 20px;
}
.expert__name { display: block; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.expert__role { display: block; margin-top: 6px; color: var(--on-dark-2); font-size: 0.92rem; }
.expert__more {
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--on-dark-2);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--expo), opacity 0.4s var(--ease), margin-top 0.4s var(--expo);
}
.expert:hover .expert__more, .expert:focus-visible .expert__more { max-height: 120px; opacity: 1; }

.docs {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
  margin-top: var(--col-gap);
}
.doc { display: flex; align-items: center; gap: 16px; }
.doc__ph {
  flex: 0 0 auto;
  width: 64px; height: 84px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--dark-2); border: 1px dashed var(--line-dark);
  color: var(--on-dark-2); font-family: var(--mono); font-size: 0.6rem; line-height: 1.3;
  padding: 6px;
}
.doc__t { font-size: 0.95rem; font-weight: 500; }

/* ============================================================
   04 — RECORD (цифры)
   ============================================================ */
.record__title { grid-column: 1 / span 12; margin-bottom: clamp(36px, 5vh, 64px); }
.record__grid {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.rec { background: var(--paper); padding: clamp(28px, 3.5vw, 52px) clamp(20px, 2.5vw, 40px); }
.rec__num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.rec__num--money { letter-spacing: -0.03em; }
.rec__pre, .rec__cur { font-size: 0.42em; font-weight: 500; color: var(--graphite); letter-spacing: 0; }
.rec__pre { margin-right: 0.6em; }
.rec__cur { margin-left: 0.5em; }
.rec__lbl {
  margin-top: 16px;
  color: var(--graphite);
  font-size: clamp(0.92rem, 1vw, 1.02rem);
  line-height: 1.4;
  max-width: 24ch;
}

/* ============================================================
   05 — PROCESS spine
   ============================================================ */
.process__grid { row-gap: clamp(40px, 5vh, 64px); }
.process__head { grid-column: 1 / span 12; }
.process__head .lead { margin-top: clamp(18px, 2.5vh, 26px); }
.spine {
  grid-column: 2 / span 9;
  position: relative;
}
.spine::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 1px; background: var(--line-dark);
}
.spine::after {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 1px; height: var(--spine-fill, 0%);
  max-height: calc(100% - 16px);
  background: var(--wax-bright);
  transition: height 0.3s linear;
}
.spine__step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(22px, 3vh, 40px) 0 clamp(22px, 3vh, 40px) clamp(28px, 4vw, 56px);
}
.spine__step::before {
  content: ""; position: absolute; left: -4px; top: calc(clamp(22px,3vh,40px) + 0.45em);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dark); border: 1px solid var(--on-dark-2);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--spring);
}
.spine__step.is-active::before { background: var(--wax-bright); border-color: var(--wax-bright); transform: scale(1.3); }
.spine__no { color: var(--on-dark-2); padding-top: 0.3em; font-size: 0.95rem; }
.spine__step h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -0.02em; }
.spine__step p { margin-top: 10px; color: var(--on-dark-2); max-width: 52ch; }

/* ============================================================
   06 — SCOPE / cloud (адаптация облака тегов)
   ============================================================ */
.scope__grid { row-gap: clamp(32px, 4.5vh, 56px); align-items: start; }
.scope__main { grid-column: 1 / span 7; align-self: start; }
.scope__head .lead { margin-top: 22px; }
.cloud {
  margin-top: clamp(28px, 4vh, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1vw, 16px);
  align-content: flex-start;
}
/* группировка чипов по рядам — нужна только в «мелкой» версии (≤866);
   на десктопе ряды растворяются, облако остаётся обычным flex-wrap */
.cloud__row { display: contents; }
.chip {
  --chip-scale: 1;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  letter-spacing: -0.01em;
  transform: scale(var(--chip-scale));
  transition: transform 0.4s var(--spring), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.chip:hover, .chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
/* Карточка-деталь выбранного направления */
.scope__detail {
  grid-column: 8 / span 5;
  align-self: center;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-left: 2px solid var(--wax);
  background: var(--paper);
  overflow: hidden;
  transition: height 0.45s var(--expo);
}
.scope__detail-idx {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--wax);
}
.scope__detail-name {
  margin-top: 16px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.scope__detail-text {
  margin-top: 14px;
  color: var(--graphite);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.5;
}
.scope__detail-list {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
}
.scope__detail-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.35;
}
.scope__detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wax);
}
.scope__detail.is-swap .scope__detail-name,
.scope__detail.is-swap .scope__detail-text,
.scope__detail.is-swap .scope__detail-list { animation: detailSwap 0.4s var(--expo); }
@keyframes detailSwap {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   07 — KIT (оборудование, тёмная)
   ============================================================ */
.kit__grid { align-items: center; row-gap: clamp(40px, 6vh, 72px); }
.kit__head { grid-column: 1 / span 5; }
.kit__head .lead { margin-top: 24px; }
.kit__grid-cells {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(6px, 0.7vw, 12px);
}
.cell {
  aspect-ratio: 1;
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  opacity: 0.3;
  transform: scale(0.9);
  transition: opacity 0.5s var(--expo), transform 0.5s var(--spring), background 0.3s, border-color 0.3s;
  transition-delay: calc(var(--i) * 30ms);
}
.kit.is-filled .cell { opacity: 1; transform: scale(1); }
.cell:hover { background: var(--wax-bright); border-color: var(--wax-bright); }
.cell--count {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--wax); border-color: var(--wax);
  color: #fff; font-size: 0.72rem; line-height: 1.2;
}
.cell--count:hover { background: var(--wax); }

/* ============================================================
   SPEED
   ============================================================ */
.speed__inner { grid-column: 2 / span 9; }
.speed__inner .lead { margin-top: 28px; max-width: 60ch; }

/* ============================================================
   GUARANTEES + stamp
   ============================================================ */
.guarantees__title { grid-column: 1 / span 12; margin-bottom: clamp(36px, 5vh, 60px); }
.guar-grid {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.guar { border: 1px solid var(--line); padding: clamp(28px, 3.5vw, 44px); background: var(--paper); color: var(--ink); }
.stamp {
  display: inline-flex; align-items: center; justify-content: center;
  width: 78px; height: 78px; border-radius: 50%;
  border: 1.5px solid var(--wax); color: var(--wax);
  font-family: var(--mono); font-size: 0.9rem; font-weight: 500;
  margin-bottom: 24px;
  background: rgba(139,46,46,0.06);
  transform: rotate(-12deg) scale(0.4);
  opacity: 0;
}
.guar.is-stamped .stamp {
  opacity: 1;
  transform: rotate(-8deg) scale(1);
  transition: transform 0.6s var(--spring), opacity 0.3s var(--ease);
}
.guar h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.guar p { margin-top: 12px; color: var(--graphite); font-size: 0.98rem; }

/* ============================================================
   CLIENTS
   ============================================================ */
/* guarantees → clients идут подряд и оба тёмные: между ними двойной --room-y.
   Режем стык вдвое (низ guarantees + верх clients = половинки от --room-y) */
.guarantees { padding-bottom: clamp(40px, 6vh, 100px); }
.clients { padding-top: clamp(40px, 6vh, 100px); }
.clients__title { grid-column: 1 / span 12; margin-bottom: clamp(36px, 5vh, 60px); }
.logos {
  grid-column: 1 / span 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.logos li {
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  min-height: 130px; padding: 26px;
  transition: background 0.25s var(--ease);
}
.logos li:hover { background: var(--dark-2); }

/* ============================================================
   08 — PRICE
   ============================================================ */
.price__title { grid-column: 1 / span 12; margin-bottom: clamp(36px, 5vh, 60px); }

/* раскладка: слева 2 карточки + строки, справа «под ключ» во всю высоту */
.price__main {
  grid-column: 1 / span 8;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}
.plans-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.price__main .price-notes { margin-top: auto; }
.plan--tall { grid-column: 9 / span 4; }

.plan {
  --plan-pad: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  padding: var(--plan-pad);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.plan--feature { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* строка госпошлины — обрамлённая ячейка во всю ширину внизу карточки */
.plan__fee {
  margin-top: auto;
  margin-inline: calc(-1 * var(--plan-pad));
  margin-bottom: calc(-1 * var(--plan-pad));
  padding: 16px var(--plan-pad);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.plan__fee-k { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite); }
.plan__fee-v { text-align: right; font-weight: 500; }
/* гарантированный воздух между списком и строкой госпошлины */
.plan__list:has(+ .plan__fee) { margin-bottom: clamp(18px, 2vw, 26px); }
.plan__name { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite); }
.plan--feature .plan__name { color: rgba(255,255,255,0.6); }
.plan__price { margin-top: 14px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
.plan__from { font-size: 0.5em; font-weight: 500; color: var(--graphite); }
.plan__sub { margin-top: 8px; font-size: 0.88rem; color: var(--graphite); }
.plan--feature .plan__sub { color: rgba(255,255,255,0.65); }
.plan__list { margin-top: 20px; display: grid; gap: 10px; }
.plan__list li {
  position: relative; padding-left: 18px;
  font-size: 0.93rem; line-height: 1.4; color: var(--ink);
}
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--wax);
}
.plan--feature .plan__list li { color: rgba(255,255,255,0.86); }
.plan--feature .plan__list li::before { background: var(--wax-bright); }

.price-notes { margin-top: var(--col-gap); border: 1px solid var(--line); }
.price-notes li {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 18px clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line);
}
.price-notes li:last-child { border-bottom: none; }
.price-notes li span:first-child { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite); align-self: center; }
.price-notes li span:last-child { text-align: right; font-weight: 500; }

/* price: стек уже с 1360px (карточки крупные — в строку тесно).
   1 / -1 = полная ширина при любом --cols (12/6/4), без фантомных треков. */
@media (max-width: 1360px) {
  .price__title, .price__main, .plan--tall { grid-column: 1 / -1; }
  .plan--tall { margin-top: clamp(16px, 2vw, 28px); }
}

/* ============================================================
   CTA
   ============================================================ */
.cta__grid { align-items: center; row-gap: clamp(40px, 6vh, 72px); }
.cta__copy { grid-column: 1 / span 6; }
/* заголовок: ровный баланс строк (узкая колонка на 1000–1377 крошила его) */
.cta__copy .h-big { text-wrap: balance; }
.cta__copy .lead { margin-top: 24px; color: var(--on-dark-2); }
.cta__contacts { margin-top: 30px; display: flex; flex-direction: column; gap: 8px; font-size: 1rem; }
.cta__contacts a { width: fit-content; transition: color 0.2s; }
.cta__contacts a:hover { color: var(--wax-bright); }

.form { grid-column: 8 / span 5; background: var(--dark-2); border: 1px solid var(--line-dark); padding: clamp(24px, 3vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; }
.field .opt { color: var(--on-dark-2); font-weight: 400; }
.field input {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line-dark); border-radius: 2px;
  background: var(--dark); color: var(--on-dark);
  font-family: var(--sans); font-size: 1rem;
  transition: border-color 0.2s;
}
.field input:focus { outline: none; border-color: var(--wax-bright); }
.form .btn--solid { margin-top: 6px; background: var(--on-dark); color: var(--dark); }
.form .btn--solid:hover { background: var(--wax-bright); color: #fff; }
.form__note { margin-top: 16px; font-size: 0.72rem; color: var(--on-dark-2); line-height: 1.5; }
.form__status { margin-top: 14px; font-size: 0.82rem; line-height: 1.45; color: var(--on-dark); }
.form__status.is-error { color: var(--wax-bright); }

.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.8rem; line-height: 1.45; color: var(--on-dark-2); cursor: pointer; }
.check:first-of-type { margin-top: 4px; }
.check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--wax-bright); cursor: pointer; }
.check a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.check a:hover { color: var(--wax-bright); }
.form .btn--solid { margin-top: 12px; }
.form .btn--solid:disabled { opacity: 0.4; cursor: not-allowed; }
.form .btn--solid:disabled:hover { background: var(--on-dark); color: var(--dark); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__grid { row-gap: clamp(28px, 4vh, 48px); }
.faq__head { grid-column: 1 / span 12; max-width: 42rem; }
.faq__intro { margin-top: 18px; color: var(--graphite); font-size: 1rem; line-height: 1.55; max-width: 52ch; }
.faq__list { grid-column: 1 / span 12; max-width: 900px; border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__h { margin: 0; }
.faq__q {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  border-radius: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 28px) 0;
  text-align: left;
  font: inherit;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s;
}
.faq__q:hover { color: var(--wax); }
.faq__item.is-open .faq__q { color: var(--wax); }

.faq__icon { position: relative; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 0.35em; }
.faq__icon::before,
.faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: currentColor; transform: translate(-50%, -50%);
  transition: transform 0.35s var(--expo), opacity 0.35s var(--expo);
}
.faq__icon::before { width: 100%; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 100%; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq__item.is-open .faq__icon::before { transform: translate(-50%, -50%) rotate(180deg); }

.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--expo); }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel-inner { overflow: hidden; }
.faq__panel-inner p {
  color: var(--graphite); font-size: 0.98rem; line-height: 1.62; max-width: 62ch;
  opacity: 0; transition: opacity 0.3s ease 0.05s;
}
.faq__item.is-open .faq__panel-inner p { opacity: 1; }
.faq__panel-inner p:first-child { padding-top: 2px; }
.faq__panel-inner p:last-child { padding-bottom: clamp(20px, 2.4vw, 28px); }
.faq__panel-inner p + p { margin-top: 14px; }

/* ============================================================
   КОНТАКТЫ / КАРТА
   ============================================================ */
.office__grid { align-items: stretch; }
.office__info {
  grid-column: 1 / span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(20px, 3vh, 48px);
  padding-right: clamp(20px, 2.5vw, 44px);
}
.office__body { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.office__addr { font-size: 1.05rem; line-height: 1.55; max-width: 34ch; }
.office__lines { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 1.05rem; }
.office__lines a { width: fit-content; transition: color 0.2s; }
.office__lines a:hover { color: var(--wax); }
.office__hours { font-family: var(--mono); font-size: 0.95rem; line-height: 1.7; color: var(--graphite); }
.office__route { margin-top: clamp(28px, 3.5vw, 40px); width: fit-content; }

.office__map-wrap {
  grid-column: 5 / span 8;
  position: relative;
  min-height: clamp(460px, 68vh, 640px);
  border: 1px solid var(--line);
}
.office__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

/* office на 600–1000: инфо над картой — не длинная колонка, а двухколоночная лента
   (адрес слева, телефоны/часы справа). Заголовок сверху, кнопка снизу — как и в других состояниях. */
@media (min-width: 601px) and (max-width: 1000px) {
  .office__info { justify-content: flex-start; }
  .office__body {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    column-gap: clamp(24px, 4vw, 56px);
    row-gap: 18px;
    align-items: start;
  }
  .office__addr { grid-column: 1; grid-row: 1 / span 2; max-width: none; }
  .office__lines { grid-column: 2; grid-row: 1; }
  .office__hours { grid-column: 2; grid-row: 2; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: var(--on-dark); padding-block: clamp(48px, 6vh, 80px); }
.footer__grid { row-gap: 32px; align-items: start; }
.footer__brand { grid-column: 1 / span 5; }
.footer__brand .wordmark { color: var(--on-dark); }
.footer__brand .wordmark__logo { height: 30px; filter: brightness(0) invert(1); }
.footer__brand p { margin-top: 16px; color: var(--on-dark-2); font-size: 0.92rem; max-width: 34ch; }
.footer__nav { grid-column: 7 / span 3; display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { color: var(--on-dark-2); transition: color 0.2s; }
.footer__nav a:hover { color: var(--on-dark); }
.footer__legal { grid-column: 10 / span 3; }
.footer__legal p { color: var(--on-dark-2); font-size: 0.78rem; line-height: 1.5; }
.footer__legal p + p { margin-top: 10px; }
.footer__docs { display: flex; flex-direction: column; gap: 7px; }
.footer__docs a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.footer__docs a:hover { color: var(--on-dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  :root { --cols: 6; }
  /* hero: поток сверху вместо вертикального центрирования —
     иначе на узких текст либо прижат к верху, либо «отрывается» от шапки.
     Отступ от шапки до kicker контролируем явно и компактно. */
  .hero {
    justify-content: flex-start;
    min-height: auto;
    padding-top: clamp(94px, 13vh, 130px);
    padding-bottom: var(--room-y);
  }
  .hero__copy, .hero__title { grid-column: 1 / span 6; }
  .hero__proof { grid-column: 1 / span 6; }
  .hero__values { grid-column: 1 / span 6; }
  .premise__head, .paperstack,
  .author__photo, .author__body,
  .clean__head, .zero,
  .scope__main, .scope__detail,
  .kit__head, .kit__grid-cells,
  .cta__copy, .form,
  .faq__head, .faq__list,
  .office__info, .office__map-wrap,
  .speed__inner, .spine { grid-column: 1 / span 6; }
  .office__map-wrap { min-height: clamp(360px, 50vh, 460px); }
  .faq__head { position: static; top: auto; }
  .faq__intro { max-width: 46ch; }
  .author__photo { max-width: 380px; }
  /* paperstack: убираем лишние паддинги, зазор держим выше развала листов (~45px вниз),
     иначе подпись наезжает; размер листов не трогаем — он базовый */
  .paperstack { padding-block: 0; gap: clamp(50px, 6vh, 64px); }
  /* нижний отступ секции до process — короче, чем общий --room-y */
  .premise { padding-bottom: clamp(40px, 6vh, 72px); }
  .record__grid, .guar-grid, .docs { grid-template-columns: repeat(2, 1fr); }
  .filemark { display: none; }
  /* навигация по разделам ≤1000 переезжает в бургер (filemark скрыт) */
  .menu-toggle { display: inline-flex; }
}

/* подвал на 600–1000: nav (2-я колонка) — справа в первом ряду, legal (3-я) — под брендом */
@media (min-width: 601px) and (max-width: 1000px) {
  .footer__brand { grid-column: 1 / span 4; grid-row: 1; }
  .footer__nav { grid-column: 5 / span 2; grid-row: 1; }
  .footer__legal { grid-column: 1 / span 4; grid-row: 2; }
}

@media (max-width: 700px) {
  /* шапка уходит в мобильный режим: inline-ссылки прячем (их полный список — в бургере),
     бургер прижимаем вправо распоркой, CTA остаётся за ним */
  .header__nav { display: none; }
  .menu-toggle { margin-left: auto; }
}

@media (max-width: 600px) {
  :root { --cols: 4; }
  .hero__copy, .hero__title, .hero__proof, .hero__values,
  .premise__head, .paperstack,
  .author__photo, .author__body,
  .clean__head, .zero,
  .scope__main, .scope__detail,
  .kit__head, .kit__grid-cells,
  .speed__inner, .spine,
  .cta__copy, .form,
  .record__title, .record__grid,
  .guarantees__title, .guar-grid,
  .clients__title, .logos,
  .price__title, .price__main, .plan--tall, .price-notes,
  .faq__head, .faq__list,
  .office__info, .office__map-wrap,
  .process__head { grid-column: 1 / span 4; }
  .record__grid, .guar-grid, .experts, .docs, .plans-two { grid-template-columns: 1fr; }
  /* paperstack: меньше базового, но заполняет ширину (без пустых боков).
     зазор до подписи и padding-block наследуем из правила ≤1000 (развал листов ~45px) */
  .paperstack__sheets { width: clamp(150px, 50vw, 190px); }
  .premise { padding-bottom: clamp(32px, 5vh, 56px); }
  /* record: тот же столбик, компактнее за счёт отступов (шрифт не трогаем) */
  .rec { padding: clamp(18px, 5vw, 26px) clamp(14px, 4vw, 20px); }
  .rec__lbl { margin-top: 10px; }
  .hero__values { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .kit__grid-cells { grid-template-columns: repeat(5, 1fr); }
  .hero__proof { flex-direction: column; align-items: flex-start; gap: 10px; }
  .price-notes li { flex-direction: column; gap: 4px; }
  /* в колонку метка не должна центрироваться (базовый align-self: center — это для строки) */
  .price-notes li span:first-child { align-self: flex-start; }
  .price-notes li span:last-child { text-align: left; }
  .footer__brand, .footer__nav, .footer__legal { grid-column: 1 / span 4; }
}

/* ── SCOPE: «мелкая» версия облака чипов ──
   На узких блоки scope встают друг под друга, и при flex-wrap чипы занимают
   много рядов — деталь уезжает за экран, и подмена контента не видна.
   С ≤866px облако = 3 ряда с горизонтальной прокруткой, деталь сразу под ним. */
@media (max-width: 866px) {
  /* облако = 3 ряда чипов, скроллятся вместе по горизонтали */
  .cloud {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    /* стрип скроллится до краёв экрана, первый чип — по гаттеру */
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 10px;
  }
  /* ряд = сумма чипов по тексту (не ужимается под облако → есть горизонтальный скролл) */
  .cloud__row { display: flex; gap: 10px; width: max-content; }
  .chip { white-space: nowrap; flex: 0 0 auto; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html, html.lenis { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__cue-line::after { animation: none; }
  .sheet { transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--wax);
  outline-offset: 3px;
}
.room[data-theme="dark"] a:focus-visible,
.room[data-theme="dark"] button:focus-visible { outline-color: var(--wax-bright); }

/* ============================================================
   v3 — реальные ассеты и новые блоки
   ============================================================ */

/* --- Фото основателя (реальное) --- */
.author__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  filter: grayscale(0.15);
}
.author__photo figcaption { margin-top: 14px; font-size: 0.85rem; color: var(--on-dark-2); }

/* --- Чистота: раскладка --- */
.clean-facts { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.clean-facts li {
  display: flex; align-items: baseline; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--line-dark);
}
.clean-facts b { font-size: 1.5rem; color: var(--wax-bright); font-weight: 500; flex: 0 0 auto; min-width: 5ch; }
.clean-facts span { color: var(--on-dark-2); font-size: 0.98rem; }

.registry {
  grid-column: 8 / span 5; align-self: start;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--dark-2); border: 1px solid var(--line-dark);
}
.registry__t { font-size: 0.98rem; color: var(--on-dark-2); line-height: 1.55; }
.registry__link { display: inline-block; margin-top: 14px; color: var(--wax-bright); font-size: 0.85rem; }
.registry__link:hover { color: var(--on-dark); }

/* --- Эксперты: реальные фото + раскрытие (горизонтальная карточка) --- */
.experts { grid-column: 1 / span 12; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.expert { display: flex; align-items: center; gap: clamp(18px, 2vw, 28px); }
.expert__photo {
  flex: 0 0 clamp(110px, 12vw, 160px);
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; margin-bottom: 0;
  background: var(--dark);
}
.expert__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: grayscale(0.4) contrast(1.02);
  transition: filter 0.4s var(--ease), transform 0.6s var(--spring);
}
.expert:hover .expert__photo img, .expert:focus-visible .expert__photo img {
  filter: grayscale(0); transform: scale(1.03);
}
.expert__body { flex: 1; min-width: 0; }

/* --- 06 Где отличаемся --- */
.edge__grid { row-gap: clamp(36px, 5vh, 60px); }
.edge__head { grid-column: 1 / span 5; }
.edge__head .lead { margin-top: 24px; }
.edge__list {
  grid-column: 6 / span 7;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.2vw, 36px) clamp(24px, 3vw, 48px);
}
.edge__item { padding-top: 22px; border-top: 1px solid var(--line); position: relative; }
.edge__item::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--wax);
}
.edge__item h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -0.02em; }
.edge__item p { margin-top: 10px; color: var(--graphite); font-size: 0.96rem; line-height: 1.55; }

/* --- 08 Оборудование: реальная галерея (все 18 позиций), текст слева --- */
.kit__grid { align-items: center; row-gap: clamp(28px, 4vh, 48px); }
.kit__head { grid-column: 1 / span 5; }
.kit__gallery {
  grid-column: 6 / span 7;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(5px, 0.5vw, 9px);
  margin-top: 0;
}
.kit__gallery figure {
  margin: 0; aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid var(--line); border-radius: 3px; background: var(--paper);
}
.kit__gallery img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
  transition: filter 0.5s var(--ease), transform 0.6s var(--spring);
}
.kit__gallery figure:hover img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.04); }
/* 1001–1380px: 5 в ряд (18 позиций = 4 ряда), чтобы плитки не были слишком крупными */
@media (min-width: 1001px) and (max-width: 1380px) {
  .kit__gallery { grid-template-columns: repeat(5, 1fr); }
}

/* --- Логотипы клиентов --- */
.logo {
  width: 100%; max-width: 160px; height: 48px;
  background-color: var(--on-dark-2);
  -webkit-mask: var(--logo) no-repeat center / contain;
  mask: var(--logo) no-repeat center / contain;
  transition: background-color 0.25s var(--ease);
}
.logos li:hover .logo { background-color: var(--on-dark); }
.logo--lg { height: 72px; max-width: 210px; }

/* --- Адаптив новых блоков --- */
@media (max-width: 1000px) {
  .clean-facts, .registry,
  .edge__head, .edge__list,
  .kit__head, .kit__gallery { grid-column: 1 / span 6; }
  .kit__gallery { grid-template-columns: repeat(4, 1fr); }
  /* тач: ховера нет — раскрываем инфо сразу, карточки в столбик */
  .experts { grid-template-columns: 1fr; align-items: stretch; }
  .expert { align-items: flex-start; }
  .expert__more { max-height: none; opacity: 1; margin-top: 14px; }
}
@media (max-width: 600px) {
  .clean-facts, .registry,
  .edge__head, .edge__list,
  .kit__head, .kit__gallery { grid-column: 1 / span 4; }
  .edge__list { grid-template-columns: 1fr; }
  .experts { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .kit__gallery { grid-template-columns: repeat(3, 1fr); }
  .expert { gap: 16px; }
}

/* === тема-флип v5: тёмная подпись lead--dim, вынос стопки внахлёст === */
.room[data-theme="dark"] .lead--dim { color: var(--on-dark-2); }
.premise { z-index: 1; }
/* десктопный «вынос стопки внахлёст» на process — только на широких */
@media (min-width: 1001px) { .paperstack { margin-bottom: clamp(-140px, -13vh, -90px); } }

/* === hero v5: строка-пара офферов, подпись поля засечек === */
.hero__offers { margin-top: clamp(20px, 2.8vh, 32px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; font-size: clamp(1.05rem, 1.55vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.hero__offers-sep { color: var(--graphite); opacity: 0.5; font-weight: 400; }
.hero__tally-cap { grid-column: 10 / span 3; align-self: end; font-family: var(--mono); font-size: 0.74rem; line-height: 1.45; color: var(--graphite); max-width: 34ch; }
.hero__tally-cap b { color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) { .hero__tally-cap { grid-column: 1 / span 6; } }
@media (max-width: 600px) { .hero__tally-cap { grid-column: 1 / span 4; } }

.hero__title .u { text-decoration: underline; text-decoration-color: rgba(139,46,46,0.45); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }

/* скрытый нулевой пункт навигации (только для scroll-spy первого экрана) */
.filemark__mute { display: none; }
/* «Как проходит работа»: тесный верх (стык с premise) — только на десктопе,
   на ≤1000 секция держит обычный нижний отступ (--room-y) */
@media (min-width: 1001px) { .premise { padding-bottom: clamp(20px, 3vh, 48px); } }
