/* ═══════════════════════════════════════════════════════════════════════════
   СТРОЙХАК — главная страница
   Мир закреплён референсом пользователя: крупные скругления, плавающие белые
   карточки поверх фотографии, пилюли-контролы, полный монохром.
   Третьего цвета нет: насыщенность на странице приносит только фотография.

   ВЁРСТКА РЕЗИНОВАЯ. Ни одного max-width-контейнера и ни одной 12-колоночной
   сетки: страница держится на одной оси --rail и процентах вьюпорта, а кегль
   растёт вместе с шириной экрана (см. html{font-size}). Панели отбиты от края
   одинаковым полем --edge, как в референсе, — это поле, а не контейнер.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Токены ─────────────────────────────────────────────────────────────── */
:root {
  --paper:   #F3F1ED;   /* тёплая почти белая бумага */
  --paper-2: #E9E6E0;
  --card:    #FFFFFF;
  --ink:     #111111;
  --ink-2:   #66645F;
  --ink-3:   #A9A6A0;   /* вторичный на тёмном */
  --line:    #DEDAD3;
  --line-2:  #2E2E2B;   /* линия на тёмном */
  --veil:    rgba(17, 17, 17, .12);   /* ровная вуаль на фотографии */

  /* Ось композиции и поле у края. Контейнеров нет. */
  --rail: 46%;
  --edge: clamp(8px, .7vw, 18px);
  --pad:  clamp(16px, 2.1vw, 46px);

  /* Скругления — определяющая черта референса. */
  --r-lg:   clamp(18px, 1.7vw, 34px);
  --r-md:   clamp(14px, 1.1vw, 22px);
  --r-sm:   clamp(10px, .7vw, 14px);
  --r-xs:   4px;    /* смягчение угла мелкого элемента */
  --r-pill: 999px;

  /* Тень мягкая, со смещением: карточка лежит на кадре, а не светится. */
  --lift:    0 2px 6px rgba(17,17,17,.06), 0 12px 32px rgba(17,17,17,.10);
  --lift-sm: 0 1px 3px rgba(17,17,17,.06), 0 6px 16px rgba(17,17,17,.08);

  /* Дисплей в vw-клэмпах с px-границами, остальное в rem от текучего корня. */
  --d1: clamp(34px, 3.2vw, 78px);
  --d2: clamp(25px, 2.8vw, 60px);
  --d3: clamp(17px, 1.2vw, 25px);
  --d4: clamp(19px, 1.45vw, 29px);
  --d5: clamp(21px, 1.7vw, 34px);    /* цифра показателя */

  --sans: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.16, .84, .3, 1);
}

/* ── База ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  font-size: clamp(16px, 0.30vw + 11.7px, 19px);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--paper-2);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

/* Поверхности, которые рисует браузер, тоже часть системы. */
::selection { background: var(--ink); color: var(--paper); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper-2); border-radius: 999px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--r-xs); }
:focus:not(:focus-visible) { outline: none; }

img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--paper-2); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }

svg:not(.sprite) {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
svg:not(.sprite):not(.brand__mark) { width: 1.1em; height: 1.1em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--pad); top: -100px; z-index: 99;
  background: var(--ink); color: var(--paper);
  padding: .7em 1.3em; border-radius: var(--r-pill); font-weight: 600;
}
.skip:focus { top: .8rem; }

/* Заглушка. Монохром не даёт красного, поэтому её выдаёт форма:
   пунктирное подчёркивание и светлая плашка — поле под заполнение. */
.ph {
  color: #4F4D49;
  background: rgba(17,17,17,.06);
  border-bottom: 2px dotted currentColor;
  padding: 0 .28em; border-radius: var(--r-xs);
  font-style: normal; overflow-wrap: break-word;
}
.btn--dark .ph, .why .ph, .req__intro .ph, .foot .ph, .shop .ph, .col--out .ph {
  color: var(--ink-3); background: rgba(255,255,255,.12);
}

/* ── Типографика ────────────────────────────────────────────────────────── */
.h-sec {
  font-size: var(--d2); font-weight: 800; line-height: .98;
  letter-spacing: -.035em; text-wrap: balance; margin: 0 0 .5em;
}
.sec-lead {
  font-size: 1.06rem; line-height: 1.5; color: var(--ink-2);
  max-width: 58ch; margin: 0 0 2.4rem; text-wrap: pretty;
}
.why .h-sec, .shop .h-sec, .req__intro .h-sec { color: var(--paper); }
.why .sec-lead, .shop .sec-lead, .req__intro .sec-lead { color: var(--ink-3); }

/* Мелкая метка-пилюля: в референсе так подписаны зоны и места. */
.tag {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .45em 1em; border-radius: var(--r-pill);
  background: var(--card); color: var(--ink);
  font-size: .88rem; font-weight: 500; letter-spacing: -.015em;
  box-shadow: var(--lift-sm);
}
.tag--dark { background: var(--ink); color: var(--paper); box-shadow: none; }

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.6em;
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; letter-spacing: -.02em;
  text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: .5em 1.1em; font-size: .94rem; }

.btn--dark  { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark:hover  { background: #000; }
.btn--light { background: var(--card); color: var(--ink); border-color: var(--card); box-shadow: var(--lift-sm); }
.btn--light:hover { background: var(--paper-2); }
.btn--line  { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover  { background: var(--ink); color: var(--paper); }
/* На тёмной панели основная кнопка инвертируется, иначе сливается с фоном. */
.foot .btn--dark, .req__intro .btn--dark, .shop .btn--dark, .why .btn--dark, .col--out .btn--dark {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.foot .btn--dark:hover, .req__intro .btn--dark:hover, .shop .btn--dark:hover,
.why .btn--dark:hover, .col--out .btn--dark:hover { background: var(--card); border-color: var(--card); }
.foot .btn--line, .req__intro .btn--line { color: var(--paper); border-color: #4C4A46; }
.foot .btn--line:hover, .req__intro .btn--line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--block { width: 100%; }
.btn--stack { flex-direction: column; gap: .25em; padding-block: .85em; }
.btn__note { display: block; font-size: .88rem; font-weight: 400; line-height: 1.3; opacity: .8; letter-spacing: 0; }

/* Круглая кнопка-иконка — узнаваемый контрол референса. */
.round {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--card); color: var(--ink); box-shadow: var(--lift-sm);
  transition: background .2s var(--ease), color .2s var(--ease), transform .18s var(--ease);
}
.round:hover { background: var(--ink); color: var(--card); }
.round:active { transform: scale(.94); }
.round--dark { background: var(--ink); color: var(--paper); }
.round--dark:hover { background: var(--card); color: var(--ink); }
.round svg { width: 1.15em; height: 1.15em; }

/* ── Марка и навигация ──────────────────────────────────────────────────── */
.brand {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px;
  text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.045em;
}
.brand__mark { width: 1.5em; height: 1.5em; }

.mini-nav { display: flex; align-items: center; gap: 0; }
.mini-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 clamp(.7rem, 1.1vw, 1.4rem);
  font-size: .94rem; font-weight: 500; text-decoration: none;
  color: var(--ink-2); white-space: nowrap;
  transition: color .18s var(--ease);
}
.mini-nav a:hover { color: var(--ink); }
.mini-nav i { width: 1px; height: 1.1em; background: var(--line); flex: none; }

/* ══ 1. ПЕРВЫЙ ЭКРАН ════════════════════════════════════════════════════ */
.hero {
  display: grid; grid-template-columns: var(--rail) 1fr;
  gap: var(--edge); padding: var(--edge);
  min-height: 100svh;
}
.hero__sheet {
  display: flex; flex-direction: column;
  padding: clamp(.5rem, 1.4vh, 1.2rem) var(--pad) clamp(.5rem, 1.4vh, 1.2rem); min-width: 0;
}
.hero__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1rem, 3.4vh, 2.6rem);
}

.hero__head { display: flex; align-items: flex-start; gap: 1rem; }
.hero__title {
  font-size: var(--d1); font-weight: 800; line-height: .92;
  letter-spacing: -.04em; margin: 0; text-wrap: balance; min-width: 0;
}

/* Три перекрывающихся круглых кадра справа от заголовка. */
.faces { display: flex; flex: none; padding-top: .5em; }
.faces img {
  width: clamp(44px, 4.2vw, 84px); height: clamp(44px, 4.2vw, 84px);
  border-radius: 50%; object-fit: cover; border: 3px solid var(--paper);
}
.faces img + img { margin-left: clamp(-16px, -1.4vw, -9px); }
.faces img:nth-child(2) { transform: translateY(-36%); }
.faces img:nth-child(3) { transform: translateY(12%); }

/* Строка знакомства с уходящей вправо линейкой — приём референса. */
.hero__hi {
  display: flex; align-items: center; gap: 1rem;
  margin: clamp(.9rem, 2.4vh, 1.8rem) 0 clamp(.7rem, 1.8vh, 1.3rem);
  font-size: .94rem; font-weight: 600; letter-spacing: -.025em; white-space: nowrap;
}
.hero__hi::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.hero__pitch {
  display: grid; grid-template-columns: auto 1fr;
  gap: .5rem clamp(.8rem, 1.4vw, 1.6rem); align-items: start;
}
.hero__num { font-size: .88rem; font-weight: 600; color: var(--ink-2); padding-top: .2em; }
.hero__pitch p { margin: 0; font-size: .94rem; line-height: 1.5; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.hero__pitch .btn { grid-column: 2; justify-self: start; margin-top: .5rem; }

/* Показатели: только проверяемые факты, никакой выдуманной статистики. */
.stats {
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: clamp(.8rem, 2vw, 2.4rem);
  margin: clamp(1rem, 2.6vh, 2rem) 0 0; padding: 0; list-style: none;
}
.stats li { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2.4rem); }
.stats li > div { min-width: 0; }
.stats li + li::before { content: ''; width: 1px; align-self: stretch; background: var(--line); }
.stats b {
  display: block; font-size: var(--d5); font-weight: 800;
  letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums;
}
.stats span { display: block; font-size: .88rem; color: var(--ink-2); margin-top: .3em; }

/* Карточка объекта внизу левой колонки. */
.objcard {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--ink); min-height: clamp(150px, 20vh, 300px);
  margin: clamp(1rem, 2.4vh, 2rem) 0 0;
  flex: 1 1 auto;
}
.objcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.objcard__place { position: absolute; top: clamp(.7rem, 1vw, 1.1rem); left: clamp(.7rem, 1vw, 1.1rem); }
.objcard__foot {
  position: absolute; left: clamp(.7rem, 1vw, 1.1rem); bottom: clamp(.7rem, 1vw, 1.1rem);
  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
}
.objcard__nav {
  position: absolute; right: clamp(.7rem, 1vw, 1.1rem); top: 50%; transform: translateY(-50%);
  display: grid; gap: .5rem;
}
/* Полупрозрачное стекло: кадр под кнопкой виден, но аррow читается. */
.objcard__nav .round {
  background: rgba(255, 255, 255, .58);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(17,17,17,.18);
}
.objcard__nav .round:hover { background: #fff; }

/* Правая фотопанель. */
.hero__photo {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--ink); min-height: clamp(340px, 52vh, 900px);
}
.hero__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Два слоя: ровная вуаль по всему кадру плюс градиент под текстом. */
  background: linear-gradient(180deg, rgba(17,17,17,.30) 0%, rgba(17,17,17,0) 24%,
                                      rgba(17,17,17,0) 38%, rgba(17,17,17,.70) 100%),
              var(--veil);
}

.photo__top {
  position: absolute; z-index: 2; top: clamp(.8rem, 1.1vw, 1.4rem); right: clamp(.8rem, 1.1vw, 1.4rem);
  display: flex; align-items: center; gap: .6rem;
}
/* Круглая стрелка свешивается за угол карточки — приём референса. */
.photo__spacer { display: none; }

/* Низ панели — один блок, а не два абсолюта с подобранным отступом. */
.photo__bottom {
  position: absolute; z-index: 2;
  left: clamp(.9rem, 1.4vw, 2rem); right: clamp(.9rem, 1.4vw, 2rem);
  bottom: clamp(.9rem, 1.4vw, 2rem);
  display: grid; gap: clamp(.8rem, 1.2vw, 1.4rem);
}
.photo__over {
  margin: 0; color: #fff; font-size: 1.06rem; line-height: 1.45;
  max-width: 46ch; text-wrap: pretty;
}
/* Три пилюли подбора внизу кадра. */
.finder {
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.finder select { flex: 1 1 8rem; min-width: 0; }
.finder .btn { flex: 0 1 auto; }
.finder select {
  appearance: none; min-height: 52px; padding: 0 2.6em 0 1.3em;
  border: 0; border-radius: var(--r-pill);
  background-color: var(--card); color: var(--ink);
  font-size: .94rem; font-weight: 600; letter-spacing: -.02em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1em center; background-size: 1.05em;
  box-shadow: var(--lift-sm);
}
/* Третий контрол подбора в референсе контурный, а не залитый. */
.finder .btn--find { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.finder .btn--find:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ══ 2. ЧТО НЕ ВХОДИТ ═══════════════════════════════════════════════════ */
.honest { padding: clamp(3rem, 6vw, 8rem) calc(var(--edge) + var(--pad)); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); }
.col { border-radius: var(--r-lg); padding: clamp(1.4rem, 2.2vw, 2.8rem); }
.col--in  { background: var(--card); box-shadow: var(--lift-sm); }
/* Инверсия вместо цвета: «не входит» — главный ход секции. */
.col--out { background: var(--ink); color: var(--paper); }
.col__h {
  display: flex; align-items: center; gap: .6em;
  font-size: var(--d3); font-weight: 800; letter-spacing: -.04em; margin: 0 0 1.2rem;
}
.col__h i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.55em; height: 1.55em; flex: none; border-radius: 50%;
  background: var(--ink); color: var(--card);
}
.col--out .col__h i { background: var(--paper); color: var(--ink); }
.col__h i svg { width: .78em; height: .78em; stroke-width: 2.8; }
.col__list { margin: 0; padding: 0; list-style: none; }
.col__list li { padding: .85rem 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.45; }
.col--out .col__list li { border-top-color: var(--line-2); }
.col__list li:first-child { border-top: 0; padding-top: 0; }
.col__rule {
  margin: 1.4rem 0 0; padding: 1.1rem 1.3rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.09); font-size: .94rem; line-height: 1.45;
}

/* ══ 3. СПЕЦИФИКАЦИЯ ════════════════════════════════════════════════════ */
.spec { padding: 0 calc(var(--edge) + var(--pad)) clamp(3rem, 6vw, 8rem); }
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; table-layout: fixed; }
.spec-table thead { display: none; }
.spec-table .c-pos  { width: 5%; }
.spec-table .c-name { width: 27%; }
.spec-table .c-what { width: 39%; }
.spec-table .c-unit { width: 10%; }
.spec-table .c-act  { width: 19%; text-align: right; }

.spec-table .grp th {
  padding: clamp(1.4rem, 2vw, 2.4rem) 0 .7rem; text-align: left;
  font-size: .88rem; font-weight: 600; color: var(--ink-2); letter-spacing: -.015em;
}
.spec-table tbody tr:not(.grp) > * {
  background: var(--card); padding: 1.05rem 1rem; vertical-align: middle;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.spec-table tbody tr:not(.grp) > *:first-child {
  border-radius: var(--r-md) 0 0 var(--r-md); padding-left: clamp(1rem, 1.4vw, 1.6rem);
}
.spec-table tbody tr:not(.grp) > *:last-child {
  border-radius: 0 var(--r-md) var(--r-md) 0; padding-right: clamp(1rem, 1.4vw, 1.6rem);
}
.spec-table tbody tr:not(.grp):hover > * { background: var(--ink); color: var(--paper); }
.spec-table tbody tr:not(.grp):hover .c-what,
.spec-table tbody tr:not(.grp):hover .c-unit,
.spec-table tbody tr:not(.grp):hover .c-pos { color: var(--ink-3); }
.spec-table .c-pos { font-size: .88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.spec-table tbody .c-name { text-align: left; font-weight: 700; font-size: 1.06rem; letter-spacing: -.03em; }
.spec-table .c-what { color: var(--ink-2); font-size: .94rem; line-height: 1.4; }
.spec-table .c-unit { color: var(--ink-2); font-size: .88rem; }

.take {
  display: inline-flex; align-items: center; gap: .45em;
  min-height: 44px; padding: .45em 1.1em;
  background: transparent; color: inherit;
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  font-size: .94rem; font-weight: 600; letter-spacing: -.02em;
  cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
tr:hover .take { border-color: rgba(255,255,255,.45); }
.take:hover, tr:hover .take:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.take.is-done { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.spec-peek {
  position: fixed; top: 0; left: 0; z-index: 30; pointer-events: none;
  width: clamp(160px, 13vw, 250px);
  border-radius: var(--r-md); overflow: hidden; background: var(--card);
  box-shadow: var(--lift); opacity: 0; transition: opacity .18s var(--ease);
}
.spec-peek.is-on { opacity: 1; }
.spec-peek__img { width: 100%; height: auto; display: block; }
.spec-peek__label { display: block; padding: .6rem .8rem; font-size: .88rem; font-weight: 600; letter-spacing: -.02em; }

.spec-note { margin: clamp(1.6rem, 2.6vw, 3rem) 0 0; font-size: .94rem; color: var(--ink-2); }
.spec-note > span { display: block; max-width: 62ch; }

/* ══ 4. ПОЧЕМУ ОДНА СМЕТА ═══════════════════════════════════════════════ */
.why {
  display: grid; grid-template-columns: 1fr var(--rail);
  gap: var(--edge); padding: 0 var(--edge) clamp(3rem, 6vw, 8rem);
}
.why__media { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 46vh; background: var(--ink); }
.why__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why__body {
  background: var(--ink); color: var(--paper); border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3.4vw, 4.4rem) clamp(1.6rem, 2.6vw, 3.4rem);
}
.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--edge); margin-bottom: 1.8rem; }
.vs__col { border-radius: var(--r-md); padding: clamp(1.1rem, 1.6vw, 1.8rem); background: rgba(255,255,255,.08); }
.vs__col--ours { background: var(--paper); color: var(--ink); }
.vs__h { margin: 0 0 1rem; font-size: .94rem; font-weight: 600; color: var(--ink-3); }
.vs__col--ours .vs__h { color: var(--ink-2); }
.vs__list { margin: 0; }
.vs__list > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .62rem 0; border-top: 1px solid var(--line-2);
}
.vs__col--ours .vs__list > div { border-top-color: var(--line); }
.vs__list > div:first-child { border-top: 0; }
.vs__list dt { font-size: .94rem; color: var(--ink-3); }
.vs__col--ours dt { color: var(--ink-2); }
.vs__list dd { margin: 0; font-weight: 800; font-size: 1.15rem; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.vs__list .is-flag { font-size: 1rem; opacity: .72; }
.why__close { margin: 0; padding-top: 1.4rem; border-top: 1px solid var(--line-2); font-size: 1rem; line-height: 1.45; max-width: 56ch; }

/* ══ 5. ПОРЯДОК РАБОТ ═══════════════════════════════════════════════════ */
.order { padding: 0 calc(var(--edge) + var(--pad)) clamp(3rem, 6vw, 8rem); }
.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--edge); margin: 0; padding: 0; list-style: none;
}
.step {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr auto;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--lift-sm);
  padding: clamp(1.1rem, 1.5vw, 1.8rem);
}
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2em; height: 2.2em; border-radius: 50%; justify-self: start;
  background: var(--ink); color: var(--paper);
  font-size: .88rem; font-weight: 700; margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.step__h { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -.035em; }
.step__t { margin: 0 0 .8rem; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.step__d { margin: 0 0 1rem; font-size: .94rem; line-height: 1.45; color: var(--ink-2); }
.step__g {
  display: block; margin: 0; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .94rem; line-height: 1.4; font-weight: 500;
}
.step__g svg { display: inline-block; vertical-align: -.16em; margin-right: .45em; }

/* ══ 6. ЦЕХ ════════════════════════════════════════════════════════════ */
.shop {
  background: var(--ink); color: var(--paper); border-radius: var(--r-lg);
  margin: 0 var(--edge) clamp(3rem, 6vw, 8rem);
  padding: clamp(2.4rem, 5vw, 6rem) clamp(1.6rem, 2.6vw, 3.6rem);
}
.shop__grid {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: var(--edge);
  margin-bottom: clamp(1.6rem, 2.6vw, 3rem);
}
.shop__fig {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md);
  background: #000; min-height: clamp(15rem, 26vh, 24rem);
}
.shop__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop__fig figcaption {
  position: absolute; left: .8rem; right: .8rem; bottom: .8rem;
  padding: .8rem 1rem; border-radius: var(--r-sm);
  background: var(--card); color: var(--ink);
  font-size: .94rem; line-height: 1.35; box-shadow: var(--lift-sm);
}
.shop__list { display: grid; gap: 1rem; justify-items: start; padding-top: 1.6rem; border-top: 1px solid var(--line-2); }
.shop__h { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--paper); letter-spacing: -.03em; }
.shop__ph { margin: 0; font-size: 1rem; }
.shop__t { margin: 0; font-size: 1rem; line-height: 1.45; color: var(--ink-3); max-width: 56ch; }

/* ══ 7. ЗАЯВКА ══════════════════════════════════════════════════════════ */
.req {
  display: grid; grid-template-columns: 1fr var(--rail);
  gap: var(--edge); padding: 0 var(--edge) clamp(3rem, 6vw, 8rem);
}
.req__intro {
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--paper); border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 5rem) clamp(1.6rem, 2.6vw, 3.4rem);
}
.req__facts { margin: 0 0 1.8rem; padding: 0; list-style: none; }
.req__facts li { display: block; padding: .8rem 0; border-top: 1px solid var(--line-2); font-size: 1rem; line-height: 1.4; }
.req__facts li:first-child { border-top: 0; }
.req__facts svg { display: inline-block; vertical-align: -.16em; margin-right: .5em; }
.req__alt { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1.6rem; }

.form {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--lift-sm);
  padding: clamp(1.6rem, 2.6vw, 3.4rem);
}
.form__switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem;
  padding: .4rem; border-radius: var(--r-pill); background: var(--paper); margin-bottom: 1.8rem;
}
.sw {
  min-height: 48px; padding: .6em .9em; border: 0; border-radius: var(--r-pill);
  background: transparent; cursor: pointer;
  font-size: .94rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.sw:hover { color: var(--ink); }
.sw.is-on { background: var(--ink); color: var(--paper); }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1rem, 1.6vw, 1.8rem); }
.form__grid--who { margin-top: .4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.f { margin: 0 0 1.1rem; display: grid; gap: .4rem; }
.f--full { grid-column: 1 / -1; }
.f label { font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.f label b { color: var(--ink); }
.f input[type=text], .f input[type=tel], .f select, .f textarea {
  width: 100%; min-height: 52px; padding: .75em 1.1em;
  background: var(--paper); border: 1.5px solid transparent; border-radius: var(--r-pill);
  caret-color: var(--ink); font-size: 1rem;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.f textarea { min-height: 6.4em; resize: vertical; line-height: 1.45; border-radius: var(--r-md); }
.f select {
  appearance: none; padding-right: 2.8em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.2em center; background-size: 1.05em;
}
.f input:hover, .f select:hover, .f textarea:hover { background-color: var(--paper-2); }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--ink); background-color: var(--card); }
.f ::placeholder { color: #8A8781; opacity: 1; }
.f--file label { display: flex; align-items: center; gap: .4em; }
.f input[type=file] {
  font-size: .94rem; padding: .8rem 1.1rem;
  border: 1.5px dashed var(--line); border-radius: var(--r-md); background: var(--paper);
}
.f input[type=file]::file-selector-button {
  margin-right: .9em; min-height: 40px; padding: .4em 1.2em;
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r-pill);
  cursor: pointer; font: inherit; font-weight: 600; font-size: .88rem;
}
.f input[type=file]:hover::file-selector-button { background: #000; }
.f__hint { font-size: .88rem; color: var(--ink-2); line-height: 1.35; }
.f--check { grid-template-columns: auto 1fr; align-items: start; gap: .7em; }
.f--check input { width: 26px; height: 26px; margin: 0; accent-color: var(--ink); flex: none; }
.f--check label { font-size: .94rem; color: var(--ink-2); line-height: 1.4; }
.f__err { grid-column: 1 / -1; font-size: .88rem; font-weight: 600; }
.f.is-bad input, .f.is-bad select, .f.is-bad textarea { border-color: var(--ink); background-color: var(--paper-2); }

.form__foot { margin-top: 1.2rem; }
.form__msg { margin: 1rem 0 0; font-size: .94rem; line-height: 1.45; min-height: 1.4em; font-weight: 600; }

/* Единственный поставленный момент: печать садится на бланк. */
.stamped { position: relative; }
.stamped::after {
  content: 'Принято'; position: absolute; right: 6%; top: -.6em;
  display: grid; place-items: center; padding: .5em 1.2em;
  border-radius: var(--r-pill); background: var(--ink); color: var(--paper);
  font-size: .94rem; font-weight: 700; letter-spacing: -.025em;
  transform: rotate(-6deg) scale(2.2); opacity: 0;
  animation: press .44s var(--ease) forwards; pointer-events: none; box-shadow: var(--lift);
}
@keyframes press {
  0%   { transform: rotate(-6deg) scale(2.2); opacity: 0; filter: blur(5px); }
  60%  { opacity: 1; }
  100% { transform: rotate(-6deg) scale(1); opacity: 1; filter: blur(0); }
}

/* ══ ПОДВАЛ ═════════════════════════════════════════════════════════════ */
.foot {
  display: grid; grid-template-columns: var(--rail) 1fr; gap: var(--edge);
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-lg); margin: 0 var(--edge) var(--edge);
  padding: clamp(2rem, 3.4vw, 4.4rem) clamp(1.6rem, 2.6vw, 3.4rem);
}
.foot__sign { display: flex; flex-direction: column; }
.foot__claim { margin: 1.2rem 0 1.8rem; font-size: var(--d4); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; }
.foot__act { margin-top: auto; padding-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.foot__req { margin-top: 1.8rem; }
.foot__h { margin: 0 0 1rem; font-size: var(--d3); font-weight: 700; color: var(--paper); letter-spacing: -.03em; }
.foot__req dl { margin: 0; }
.foot__req dl > div {
  display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; align-items: center;
  min-height: 46px; padding: .5rem 0; border-top: 1px solid var(--line-2); font-size: .94rem;
}
.foot__req dt { display: flex; align-items: center; color: var(--ink-3); }
.foot__req dd { margin: 0; display: flex; align-items: center; min-height: 44px; }
.foot__req dd a { display: inline-flex; align-items: center; min-height: 44px; }

.foot__nav { display: flex; flex-direction: column; }
.foot__nav ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .3rem 1.4rem;
}
.foot__nav ul a {
  display: flex; align-items: center; min-height: 44px;
  padding: .35rem 0; font-size: .94rem; text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.foot__nav ul a:hover { border-bottom-color: var(--paper); }
.foot__fine { margin: auto 0 0; padding-top: 1.8rem; font-size: .88rem; color: var(--ink-3); line-height: 1.5; }
.foot__fine a { color: var(--paper); }

/* ══ ЛИПКОЕ ДЕЙСТВИЕ ════════════════════════════════════════════════════ */
.dock {
  position: fixed; left: var(--edge); right: var(--edge); bottom: var(--edge); z-index: 45;
  display: none; grid-template-columns: 1fr 1fr 1.15fr; gap: .4rem;
  padding: .4rem; border-radius: var(--r-pill);
  background: rgba(243,241,237,.88); backdrop-filter: blur(14px); box-shadow: var(--lift);
}
.dock__a {
  display: flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 52px; padding: .5em .4em; border-radius: var(--r-pill);
  font-size: .94rem; font-weight: 600; text-decoration: none; text-align: center;
}
.dock__a--go { background: var(--ink); color: var(--paper); }

/* ══ РЕЗИНА ═════════════════════════════════════════════════════════════ */
@media (max-width: 1340px) { :root { --rail: 44%; } }

@media (max-width: 1340px) {
  /* Панель «почему» сужается вместе с осью — сравнение уходит в одну колонку. */
  .vs { grid-template-columns: minmax(0, 1fr); }
  .vs__col:first-child { margin-bottom: var(--edge); }
}

@media (max-width: 1180px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec-table .c-what { width: 34%; }
  .spec-table .c-act  { width: 24%; }
}

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop__grid { grid-template-columns: 1fr 1fr; }
  .shop__fig--tall { grid-column: span 2; }
}

@media (max-width: 940px) {
  :root { --rail: 100%; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { min-height: 62vh; }
  .why, .req, .foot { grid-template-columns: 1fr; }
  .why__media { min-height: 34vh; }
  .dock { display: grid; }
  body { padding-bottom: 76px; }
}

@media (max-width: 900px) {
  /* Спецификация разворачивается из таблицы в карточки-позиции. */
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td, .spec-table th { display: block; }
  .spec-table { table-layout: auto; border-spacing: 0; }
  .spec-table .c-pos, .spec-table .c-name,
  .spec-table .c-what, .spec-table .c-unit, .spec-table .c-act { width: auto; }
  .spec-table .grp th { padding: 1.6rem 0 .6rem; }
  .spec-table tbody tr:not(.grp) {
    background: var(--card); border-radius: var(--r-md); box-shadow: var(--lift-sm);
    padding: 1.1rem clamp(1rem, 2vw, 1.4rem); margin-bottom: 8px;
    display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .6rem;
  }
  .spec-table tbody tr:not(.grp) > * { background: transparent; padding: 0; border-radius: 0; }
  .spec-table tbody tr:not(.grp):hover > * { background: transparent; color: inherit; }
  .spec-table tbody tr:not(.grp):hover .c-what,
  .spec-table tbody tr:not(.grp):hover .c-unit,
  .spec-table tbody tr:not(.grp):hover .c-pos { color: var(--ink-2); }
  .spec-table .c-pos { grid-row: 1; }
  .spec-table tbody .c-name { grid-column: 2; padding-bottom: .35rem; }
  .spec-table .c-what { grid-column: 2; padding-bottom: .6rem; }
  .spec-table .c-unit { grid-column: 2; padding-bottom: .8rem; }
  .spec-table .c-unit::before { content: 'Ед. изм. — '; }
  .spec-table .c-act { grid-column: 2; text-align: left; }
  tr:hover .take { border-color: var(--line); }
}

@media (max-width: 760px) {
  .cols, .vs, .form__grid { grid-template-columns: 1fr; }
  .col--in { margin-bottom: var(--edge); }
  .vs__col:first-child { margin-bottom: var(--edge); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .shop__grid { grid-template-columns: 1fr; }
  .shop__fig--tall { grid-column: auto; }
  .form__switch { grid-template-columns: 1fr; border-radius: var(--r-md); }
  .sw { border-radius: var(--r-md); }
  .foot__req dl > div { grid-template-columns: 6.5rem 1fr; gap: .6rem; }
  .hero__head { flex-direction: column; }
  .faces { padding-top: 0; }
  .faces img:nth-child(2), .faces img:nth-child(3) { transform: none; }
  .photo__over { display: none; }
  .hero__photo { min-height: 0; }
  .hero__photo > img, .hero__photo::after { position: absolute; inset: 0 0 auto; height: clamp(300px, 50vh, 520px); }
  .photo__spacer { display: block; height: clamp(300px, 50vh, 520px); }
  .photo__bottom { position: static; padding: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .dock, .spec-peek, .form__switch, .finder, .photo__top { display: none !important; }
  body { background: #fff; }
  .why__body, .shop, .req__intro, .foot, .col--out { background: #fff !important; color: #000 !important; }
}
