/* ==========================================================================
   Инженерное бюро Мануфактуринг (ООО «ИБМ»)
   Контрактное литье пластмасс и пресс-формы

   МИР: «Шильдик» — фрезерованная приборная панель.
   Светлое анодированное поле, тёмные плашки с гравировкой, красная риска
   индикатора. Нулевые скругления, нулевые тени: глубину даёт канавка
   (тёмная линия + световой блик), а не размытие.
   ========================================================================== */

:root {
  /* Панель */
  --field:      #E6E8E9;   /* фрезерованное поле — фон страницы */
  --field-2:    #D9DCDE;   /* утопленная полоса */
  --mill:       #F5F6F7;   /* свежий рез — карман под контент */
  --plate:      #16191C;   /* анодированная плашка */
  --plate-2:    #1F2429;   /* плашка, второй уровень */

  /* Риска индикатора */
  --index:      #C8102E;
  --index-2:    #A20D25;

  /* Канавки */
  --groove:      rgba(10, 14, 18, .22);
  --groove-hi:   rgba(255, 255, 255, .78);
  --groove-soft: rgba(10, 14, 18, .12);
  --groove-d:    rgba(0, 0, 0, .62);
  --groove-d-hi: rgba(255, 255, 255, .09);

  /* Текст */
  --ink:    #14171A;
  --ink-2:  #4E555B;
  --ink-3:  #5B6369;
  --fill:   #F2F4F5;
  --fill-2: #9AA3AA;

  /* Шрифты */
  --font-head: 'Onest', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Сетка */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 7.4vw, 108px);
  --rail-h: 64px;

  /* Движение */
  --dur: 160ms;
  --ease: cubic-bezier(.2, .7, .25, 1);
}

/* ------------------------------------------------------------------ База */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv05';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  letter-spacing: -.022em;
  text-wrap: balance;
}

p, ul, ol, dl, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

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

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

.section--plate :focus-visible,
.footer :focus-visible,
.spec :focus-visible { outline-color: var(--fill); }

::selection { background: var(--index); color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
}
.skip:focus {
  left: var(--gutter);
  top: 10px;
  background: var(--plate);
  color: var(--fill);
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

/* ------------------------------------------------------------ Типографика */
.display {
  font-weight: 800;
  font-size: clamp(2.125rem, 5.2vw, 4.25rem);
  line-height: .95;
  letter-spacing: -.028em;
  text-transform: uppercase;
}

.h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.08;
}

.h3 {
  font-weight: 600;
  font-size: clamp(1.0625rem, 1.3vw, 1.3125rem);
  line-height: 1.28;
  letter-spacing: -.014em;
}

/* Акцент в заголовке: второстепенная часть уходит в тень, главная остаётся в полный тон */
.dim { color: var(--ink-3); }
.section--plate .dim,
.footer .dim { color: var(--fill-2); }

.lead {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}

.legend {
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------- Канавка */
/* Тёмная линия + световой блик снизу: фреза прошла по светлому металлу. */
.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(var(--groove) 0 1px, var(--groove-hi) 1px 2px);
  transform-origin: left center;
}
.section--plate .rule,
.footer .rule {
  background: linear-gradient(var(--groove-d) 0 1px, var(--groove-d-hi) 1px 2px);
}

.js .rule--draw { transform: scaleX(0); }
.js .rule--draw.is-cut { transform: scaleX(1); transition: transform 620ms var(--ease); }

/* ---------------------------------------------------------------- Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }

.btn--primary {
  background: var(--index);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary:hover { background: var(--index-2); }
.btn--primary[disabled] { background: var(--ink-3); cursor: default; }

.btn--ghost {
  color: var(--ink);
  border-color: var(--groove);
  box-shadow: inset 0 1px 0 var(--groove-hi);
}
.btn--ghost:hover { background: var(--mill); border-color: var(--ink-3); }

.section--plate .btn--ghost,
.footer .btn--ghost {
  color: var(--fill);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.section--plate .btn--ghost:hover,
.footer .btn--ghost:hover { background: var(--plate-2); border-color: rgba(255, 255, 255, .4); }

.btn--sm { padding: 10px 16px; font-size: .75rem; }
.btn--block { width: 100%; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--groove);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform var(--dur) var(--ease); }
.link:hover { color: var(--index); border-color: var(--index); }
.link:hover svg { transform: translateX(3px); }

.footer .link { color: var(--fill); border-color: rgba(255, 255, 255, .28); }
.footer .link:hover { color: #fff; border-color: var(--fill); }

/* ----------------------------------------------------------------- Рейка */
.rail {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--field);
  border-bottom: 1px solid var(--groove);
  box-shadow: 0 1px 0 var(--groove-hi);
}

.rail__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  height: var(--rail-h);
}

.rail__logo { flex: none; display: block; }
.rail__logo img { width: clamp(136px, 14vw, 172px); }

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 22px);
}

.nav__list a {
  position: relative;
  display: block;
  padding: 6px 0;
  font-family: var(--font-head);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav__list a:hover { color: var(--ink); }

/* риска индикатора над активным разделом */
.nav__list a::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 2px;
  background: var(--index);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.nav__list a.is-active { color: var(--ink); }
.nav__list a.is-active::before { transform: scaleX(1); }

.nav__cta { display: none; }

.rail__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.rail__phone svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.rail__phone:hover { color: var(--index); }

.rail__actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  flex: none;
}

.burger {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--groove);
  background: none;
  cursor: pointer;
}
.burger svg { width: 20px; height: 20px; margin: auto; fill: none; stroke: var(--ink); stroke-width: 1.7; }
.burger__close { display: none; }
.burger[aria-expanded='true'] .burger__open { display: none; }
.burger[aria-expanded='true'] .burger__close { display: block; }

/* --------------------------------------------------------------- Секции */
.section { padding-block: var(--section-y); }
.section--recessed {
  background: var(--field-2);
  border-block: 1px solid var(--groove);
  box-shadow: inset 0 1px 0 var(--groove-hi);
}
.section--plate {
  background: var(--plate);
  color: var(--fill);
  border-top: 1px solid #000;
}
.section--plate .h2 { color: var(--fill); }
.section--plate .lead { color: var(--fill-2); }
.section--plate .legend { color: var(--fill-2); }

.section[id] { scroll-margin-top: calc(var(--rail-h) + 8px); }

.head { margin-bottom: clamp(32px, 4vw, 56px); }
.head .rule { margin-bottom: clamp(22px, 2.4vw, 30px); }
.head .h2,
.head .lead { max-width: 62ch; }
.head .lead { margin-top: 16px; }

/* заголовок второго уровня внутри секции */
.subhead { margin-top: clamp(48px, 5.4vw, 76px); }

/* --------------------------------------------------------------- Плашка */
/* Анодированная поверхность с утопленными заклёпками по углам. */
.plate {
  position: relative;
  background: var(--plate);
  color: var(--fill);
  background-image:
    radial-gradient(circle 3px at 15px 15px, #3d444b 0 55%, #0b0e11 56%, transparent 100%),
    radial-gradient(circle 3px at calc(100% - 15px) 15px, #3d444b 0 55%, #0b0e11 56%, transparent 100%),
    radial-gradient(circle 3px at 15px calc(100% - 15px), #3d444b 0 55%, #0b0e11 56%, transparent 100%),
    radial-gradient(circle 3px at calc(100% - 15px) calc(100% - 15px), #3d444b 0 55%, #0b0e11 56%, transparent 100%);
  background-repeat: no-repeat;
}

/* ---------------------------------------------------- 01. Первый экран */
.hero { padding-top: clamp(44px, 5vw, 80px); padding-bottom: var(--section-y); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 4.6vw, 72px);
  align-items: start;
}

.hero h1 { max-width: 19ch; }

.hero__lead {
  margin-top: clamp(20px, 2.4vw, 30px);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 2.8vw, 36px);
}

.hero__notes {
  margin-top: clamp(26px, 3vw, 38px);
  display: grid;
}
.hero__notes li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--groove-soft);
  font-size: .9375rem;
  color: var(--ink-2);
}
.hero__notes li:last-child { border-bottom: 1px solid var(--groove-soft); }
.hero__notes li::before {
  content: '';
  flex: none;
  width: 10px; height: 2px;
  background: var(--index);
  transform: translateY(-4px);
}

.pocket {
  background: var(--mill);
  border: 1px solid var(--groove);
  box-shadow: inset 0 1px 0 var(--groove-hi);
  padding: clamp(14px, 1.6vw, 22px);
}
.hero__media img { width: 100%; }
.hero__cap {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  line-height: 1.5;
  letter-spacing: .03em;
  color: var(--ink-3);
}

/* Шильдик с ключевыми цифрами */
.nameplate {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
  padding: 1px;
}
.nameplate__cell {
  background: var(--plate);
  padding: clamp(20px, 2.4vw, 30px) clamp(16px, 1.8vw, 26px);
}
.nameplate dt {
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fill-2);
}
.nameplate dd {
  margin: 12px 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.nameplate .num {
  font-size: clamp(1.75rem, 2.9vw, 2.375rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--fill);
}
.nameplate__unit {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fill-2);
}

/* --------------------------------------------------- 02. Направления */
.dir {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(28px, 3.6vw, 60px);
  align-items: start;
  padding-block: clamp(32px, 4vw, 52px);
}
.dir + .dir { border-top: 1px solid var(--groove); box-shadow: inset 0 1px 0 var(--groove-hi); }
.dir:first-of-type { padding-top: 0; }
.dir--flip { grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); }

.dir__body > p { margin-top: 14px; color: var(--ink-2); font-size: .9375rem; max-width: 60ch; }
.dir__body .facts { margin-top: 26px; }
.dir__body .link { margin-top: 26px; }

/* Строки характеристик: подпись слева, значение справа */
.facts { display: grid; }
.facts > div {
  display: grid;
  grid-template-columns: minmax(150px, 16em) minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--groove-soft);
  align-items: baseline;
}
.facts > div:last-child { border-bottom: 1px solid var(--groove-soft); }
.facts dt {
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts dd { margin: 0; font-size: .9375rem; color: var(--ink); }

/* ---------------------------------------------------- 03. Производство */
/* Три машины парка — снимки нашего цеха, по одной на колонку таблицы. */
.machines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  margin-bottom: clamp(30px, 3.4vw, 46px);
}
.machine__frame {
  background: var(--mill);
  border: 1px solid var(--groove);
  box-shadow: inset 0 1px 0 var(--groove-hi);
}
.machine img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.machine figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.machine figcaption b {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.014em;
  text-transform: none;
  color: var(--ink);
}

.specwrap { overflow-x: auto; }

.spec {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--plate);
  color: var(--fill);
  table-layout: fixed;
}

.spec thead th {
  padding: clamp(18px, 2vw, 26px) 18px;
  text-align: left;
  vertical-align: bottom;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.3125rem);
  letter-spacing: -.012em;
  color: var(--fill);
}
.spec thead th:first-child {
  width: 31%;
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fill-2);
  padding-bottom: 16px;
}
.spec thead th span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fill-2);
}

.spec tbody th {
  padding: 13px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fill-2);
  transition: color var(--dur) var(--ease);
}
.spec tbody td {
  padding: 13px 18px;
  font-family: var(--font-mono);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  color: var(--fill);
}
.spec tbody tr { border-top: 1px solid var(--groove-d); box-shadow: inset 0 1px 0 var(--groove-d-hi); }
.spec tbody tr:first-child { border-top: 0; box-shadow: none; }

/* сравнение по строке: наведение подсвечивает характеристику у всех машин */
.spec tbody tr.is-lit { background: var(--plate-2); }
.spec tbody tr.is-lit th { color: var(--fill); }

.spec__note {
  margin-top: 22px;
  font-size: .9375rem;
  color: var(--ink-2);
  max-width: 70ch;
}

.mats { margin-top: clamp(48px, 5.4vw, 76px); }
.mats__grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 3.6vw, 56px);
}
.mat {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--groove-soft);
}
.mat__abbr {
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
}
.mat b { font-weight: 600; font-family: var(--font-head); font-size: .9375rem; }
.mat span { display: block; margin-top: 3px; font-size: .875rem; color: var(--ink-2); }

/* ------------------------------------------------------- 04. Как работаем */
/* Шкала: рейка слева, на ней риски этапов. Номер и срок — гравировка, проза — справа. */
.steps { display: grid; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(22px, 2.6vw, 32px);
  bottom: clamp(22px, 2.6vw, 32px);
  width: 1px;
  background: var(--groove);
  box-shadow: 1px 0 0 var(--groove-hi);
}
.step {
  display: grid;
  grid-template-columns: 104px minmax(150px, 22%) minmax(0, 1fr);
  column-gap: clamp(16px, 2.4vw, 36px);
  row-gap: 0;
  padding: clamp(22px, 2.6vw, 32px) 0 clamp(22px, 2.6vw, 32px) 26px;
  border-top: 1px solid var(--groove);
  box-shadow: inset 0 1px 0 var(--groove-hi);
}
.step:last-child { border-bottom: 1px solid var(--groove); }
.step__n {
  position: relative;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.step__n::before {
  content: '';
  position: absolute;
  left: -26px; top: .58em;
  width: 14px; height: 1px;
  background: var(--ink-3);
}
.step__t {
  display: block;
  margin-top: 6px;
  font-size: .5625rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* Замыкающая строка шкалы: не этап, а итог пути */
.step--total .step__n { font-size: .6875rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.step--total .step__n::before { width: 22px; height: 3px; top: .35em; background: var(--ink); }
.step .h3 { padding-top: 1px; }
.step p { color: var(--ink-2); font-size: .9375rem; max-width: 72ch; }
.step p + p { margin-top: 8px; }
.step ul { margin-top: 12px; display: grid; gap: 5px; }
.step ul li {
  position: relative;
  padding-left: 20px;
  font-size: .875rem;
  color: var(--ink-2);
}
.step ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .68em;
  width: 9px; height: 1px;
  background: var(--ink-3);
}

/* ------------------------------------------------ 05. Гарантии и условия */
.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.2vw, 52px);
  align-items: start;
}
.terms__col > .legend { display: block; padding-bottom: 14px; }
.term {
  display: grid;
  grid-template-columns: minmax(88px, 26%) minmax(0, 1fr);
  column-gap: clamp(12px, 1.3vw, 20px);
  row-gap: 4px;
  padding: 15px 0;
  border-top: 1px solid var(--groove);
  box-shadow: inset 0 1px 0 var(--groove-hi);
}
.term:last-child { border-bottom: 1px solid var(--groove); }
.term b { font-family: var(--font-head); font-weight: 600; font-size: .9375rem; }
.term span { font-size: .875rem; color: var(--ink-2); }

/* Измеримое из абзаца вынесено в гравировку: число слева, проза справа */
.term__val {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(.9375rem, 1.05vw, 1.0625rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  hyphens: none;
}
.term__val span {
  display: block;
  margin-top: 5px;
  font-size: .5625rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.callout {
  margin-top: clamp(40px, 4.6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 38px);
}
.callout .h3 { color: var(--fill); }
.callout p { margin-top: 8px; font-size: .9375rem; color: var(--fill-2); max-width: 62ch; }

/* -------------------------------------------------------------- 06. Работы */
.case {
  display: grid;
  grid-template-columns: minmax(0, .5fr) minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 52px);
  align-items: start;
  padding-block: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--groove);
  box-shadow: inset 0 1px 0 var(--groove-hi);
}
.case:last-of-type { border-bottom: 1px solid var(--groove); }
.case__meta {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.case .facts { margin-top: 18px; }
.case img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.gallery {
  margin-top: clamp(48px, 5.4vw, 76px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--groove-soft);
  border: 1px solid var(--groove-soft);
}
.gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--mill);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity var(--dur) var(--ease);
}
.gallery__item:hover img { opacity: .82; }

/* ------------------------------------------------------------ 07. Компания */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(32px, 4.4vw, 72px);
  align-items: start;
}
.about__text p { color: var(--ink-2); font-size: .9375rem; max-width: 62ch; }
.about__text p + p { margin-top: 14px; }
.about__text .lead + p { margin-top: 18px; }

.timeline { display: grid; }
.timeline li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--groove);
  box-shadow: inset 0 1px 0 var(--groove-hi);
  align-items: baseline;
}
.timeline li:last-child { border-bottom: 1px solid var(--groove); }
.timeline .num { font-size: .875rem; color: var(--ink); letter-spacing: -.02em; }
.timeline p { font-size: .875rem; color: var(--ink-2); }

/* Вопросы: слева заголовок и живой контакт, справа аккордеон во всю ширину */
.faq {
  margin-top: clamp(52px, 6vw, 84px);
  display: grid;
  grid-template-columns: minmax(210px, 26%) minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 64px);
  align-items: start;
}
.faq__head p {
  margin-top: 14px;
  font-size: .9375rem;
  color: var(--ink-2);
  max-width: 32ch;
}
.faq__contacts {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  font-size: .875rem;
}
.faq__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.faq__contacts a:hover { color: var(--index); }
.faq__contacts svg {
  width: 15px; height: 15px;
  flex: none;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.8;
}
.faq__item { border-top: 1px solid var(--groove); box-shadow: inset 0 1px 0 var(--groove-hi); }
.faq__item:last-child { border-bottom: 1px solid var(--groove); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-3);
}
.faq__item[open] summary::after { content: '−'; color: var(--index); }
.faq__answer { padding-bottom: 18px; }
.faq__answer p { font-size: .9375rem; color: var(--ink-2); max-width: 74ch; }

/* Страница 404: тот же аппарат, что у блока вопросов */
.nf__code {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink-3);
}
.nf__title { margin-top: 14px; }
.faq__list .term b a { color: inherit; border-bottom: 1px solid var(--groove); }
.faq__list .term b a:hover { color: var(--index); border-color: var(--index); }

/* ------------------------------------------------------------- 08. Заявка */
.request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(32px, 4.6vw, 76px);
  align-items: start;
}
.request > div > .rule { margin-bottom: 26px; }
.request .h2 { max-width: 20ch; }
.request .lead { margin-top: 16px; }
.request__ticks { margin-top: 26px; display: grid; }
.request__ticks li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--groove-d);
  box-shadow: inset 0 1px 0 var(--groove-d-hi);
  font-size: .9375rem;
  color: var(--fill-2);
}
.request__ticks li:last-child { border-bottom: 1px solid var(--groove-d); }
.request__ticks li::before {
  content: '';
  flex: none;
  width: 10px; height: 2px;
  background: var(--index);
  transform: translateY(-4px);
}
.request__contacts { margin-top: 28px; display: grid; gap: 12px; }
.request__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .9375rem;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--fill);
}
.request__contacts svg { width: 15px; height: 15px; fill: none; stroke: var(--fill-2); stroke-width: 1.7; flex: none; }
.request__contacts a:hover { color: #fff; }

/* --------------------------------------------------------------- Форма */
.form {
  background: var(--mill);
  color: var(--ink);
  padding: clamp(22px, 2.8vw, 34px);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field > label,
.pref__caption {
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.req { color: var(--index); }

.field input[type='text'],
.field input[type='tel'] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--groove);
  border-radius: 0;
  background: #fff;
  font-size: 16px;
  transition: border-color var(--dur) var(--ease);
}
.field input::placeholder { color: #7E858B; }
.field input:focus-visible { outline: none; border-color: var(--index); box-shadow: 0 0 0 1px var(--index); }
.field.is-invalid input { border-color: var(--index); }

.field__hint { font-size: .8125rem; color: var(--ink-3); }
.field__error { font-size: .8125rem; color: var(--index); }
.field__error:empty { display: none; }

.pref { display: grid; gap: 7px; margin-top: 4px; }
.switch { display: flex; border: 1px solid var(--groove); }
.switch__btn {
  flex: 1;
  padding: 10px 12px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.switch__btn + .switch__btn { border-left: 1px solid var(--groove); }
.switch__btn.is-active { background: var(--plate); color: var(--fill); }

.consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
}
.consent input {
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--index);
}
.consent a { color: var(--ink); text-decoration-color: var(--groove); }
.consent.is-invalid span { color: var(--index); }

.form__status { font-size: .875rem; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--ink); }
.form__status.is-error { color: var(--index); }

/* --------------------------------------------------------------- Подвал */
.footer {
  background: var(--plate);
  color: var(--fill);
  padding-top: clamp(56px, 6vw, 88px);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(28px, 3.6vw, 60px);
  padding-bottom: clamp(40px, 4.6vw, 64px);
}
.footer__brand img { width: 172px; }
.footer__brand p { margin-top: 18px; font-size: .875rem; color: var(--fill-2); max-width: 40ch; }

.footer__title {
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fill-2);
  margin-bottom: 16px;
}
.footer address { font-style: normal; display: grid; gap: 12px; }
.footer address p {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  font-size: .875rem;
  color: var(--fill);
}
.footer address svg { width: 15px; height: 15px; margin-top: 3px; fill: none; stroke: var(--fill-2); stroke-width: 1.7; }
.footer address a { text-decoration: none; }
.footer address a:hover { color: #fff; text-decoration: underline; }

.footer__links { display: grid; gap: 9px; }
.footer__links a { font-size: .875rem; color: var(--fill-2); text-decoration: none; }
.footer__links a:hover { color: var(--fill); }

.footer__map { padding-bottom: clamp(40px, 4.6vw, 64px); }
.footer__map-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.footer__map-head .footer__title { margin-bottom: 0; }
.map { height: clamp(240px, 30vw, 360px); border: 1px solid rgba(255, 255, 255, .14); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.92) brightness(.94); }

.footer__legal,
.footer__bottom {
  padding-block: 22px;
  border-top: 1px solid var(--groove-d);
  box-shadow: inset 0 1px 0 var(--groove-d-hi);
}
.footer__legal p {
  font-family: var(--font-mono);
  font-size: .6875rem;
  line-height: 1.7;
  color: var(--fill-2);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-size: .8125rem;
  color: var(--fill-2);
  padding-bottom: 32px;
}
.footer__bottom a { color: var(--fill-2); }
.footer__bottom a:hover { color: var(--fill); }

/* правовые ссылки в одной строке, разделённые вертикальной риской */
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
.footer__docs a + a { position: relative; }
.footer__docs a + a::before {
  content: '';
  position: absolute;
  left: -9px; top: .3em; bottom: .3em;
  width: 1px;
  background: var(--groove-d-hi);
}

/* --------------------------------------------------- Попап и лайтбокс */
.modal,
.lightbox {
  border: 0;
  padding: 0;
  background: none;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  color: var(--ink);
  overflow: hidden;
}
.modal::backdrop,
.lightbox::backdrop { background: rgba(10, 13, 16, .84); }

.modal[open],
.lightbox[open] { display: grid; place-items: center; }

.modal__body {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--field);
  border: 1px solid var(--groove);
  padding: clamp(24px, 3vw, 36px);
}
.modal .h2 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
.modal__lead { margin-top: 12px; font-size: .9375rem; color: var(--ink-2); }
.modal .form { margin-top: 24px; padding: 0; background: none; }
.modal__close,
.lightbox__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--groove);
  background: var(--field);
  cursor: pointer;
  z-index: 2;
}
.modal__close svg,
.lightbox__close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; }

.lightbox figure {
  position: relative;
  margin: 0;
  width: min(880px, calc(100vw - 32px));
  background: var(--mill);
  border: 1px solid var(--groove);
  padding: clamp(14px, 2vw, 24px);
}
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; }
.lightbox figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .05em;
  color: var(--ink-3);
}

/* ---------------------------------------------------- Правовая страница */
.legal { padding-block: clamp(48px, 6vw, 88px); max-width: 820px; }
.legal h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.1; }
.legal h2 {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--groove);
  box-shadow: inset 0 1px 0 var(--groove-hi);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 600;
}
.legal p, .legal li { color: var(--ink-2); font-size: .9375rem; }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 14px; display: grid; gap: 7px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .68em;
  width: 9px; height: 1px;
  background: var(--ink-3);
}
.legal .legend { display: block; margin-top: 40px; }

/* --------------------------------------------------------- Плашка cookie */
/* Утопленная планка у нижней кромки панели: тёмная плашка, канавка сверху,
   единственное действие — красная риска «Принять». */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--plate);
  border-top: 1px solid var(--groove-d);
  box-shadow: inset 0 1px 0 var(--groove-d-hi);
}

.cookie__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-block: 16px;
}

.cookie__text {
  margin: 0;
  max-width: 78ch;
  color: var(--fill-2);
  font-size: .875rem;
  line-height: 1.55;
}

.cookie__text a {
  color: var(--fill);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .38);
}
.cookie__text a:hover { color: #fff; text-decoration-color: currentColor; }

.cookie__accept { margin-left: auto; flex: none; }

/* въезжает снизу после проверки сохранённого решения — без JS плашки нет */
.js .cookie { transform: translateY(100%); }
.js .cookie.is-in { transform: translateY(0); transition: transform 380ms var(--ease); }

/* ------------------------------------------------------------ Адаптив */
/* до 1280 телефон в рейке не помещается рядом с меню и кнопкой — он есть в контактах и подвале */
@media (max-width: 1279px) {
  .rail__phone { display: none; }
}

@media (max-width: 1024px) {
  .hero__grid,
  .dir,
  .about,
  .request,
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .dir--flip .dir__media { order: 0; }
  .hero h1 { max-width: 20ch; }
  .hero__media { max-width: 560px; }
  .nameplate { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .callout { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .case { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); }

  .burger { display: grid; place-items: center; }
  .nav {
    position: fixed;
    inset: var(--rail-h) 0 0;
    background: var(--field);
    border-top: 1px solid var(--groove);
    padding: 8px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__list { display: block; }
  .nav__list > li { border-bottom: 1px solid var(--groove); box-shadow: inset 0 -1px 0 var(--groove-hi); }
  .nav__list a { padding: 18px 0; font-size: .875rem; }
  .nav__list a::before { display: none; }
  .nav__list a.is-active { color: var(--index); }
  .nav__cta { display: block; border: 0 !important; box-shadow: none !important; padding-top: 24px; }
  .rail__actions > .btn { display: none; }
}

@media (max-width: 1100px) {
  /* заголовок этапа возвращается к тексту, номер остаётся на шкале */
  .step { grid-template-columns: 104px minmax(0, 1fr); }
  .step .h3, .step__body { grid-column: 2; }
  .step__body { margin-top: 8px; }
}

@media (max-width: 1180px) {
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .machines { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq__head p { max-width: 56ch; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .mats__grid { grid-template-columns: minmax(0, 1fr); }
  .terms { gap: 40px; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .step .h3, .step__body { grid-column: 1; }
  /* в одну колонку номер и срок встают строкой, а не столбиком */
  .step__t { display: inline; margin-top: 0; margin-left: 12px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 720px) {
  .cookie__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie__accept { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .nameplate { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { width: 100%; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .js .rule--draw { transform: none; }
}

@media print {
  .rail, .burger, .modal, .lightbox, .map, .btn, .cookie { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section--plate, .footer, .plate, .spec, .nameplate__cell { background: #fff !important; color: #000 !important; }
  .spec tbody td, .spec tbody th, .nameplate .num, .nameplate dt, .nameplate__unit,
  .footer__title, .footer address p, .section--plate .lead { color: #000 !important; }
}
