/* ============================================================
   РЕМДОРТЕХНИКА БРЯНСК — style.css
   Mobile first. Светлая тёплая база + оранжевый акцент, тёмный подвал.
   ============================================================ */

/* ---------------- Fonts ----------------
   Шрифты лежат в папке fonts: не зависим от Google Fonts,
   который в России открывается не у всех.
   --------------------------------------- */

@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/roboto-condensed-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/roboto-condensed-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/onest-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/onest-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/onest-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/onest-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/onest-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/onest-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------------- Reset ---------------- */

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

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

body,
h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

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

table {
  border-collapse: collapse;
  width: 100%;
}

/* Свои display-правила перебивают браузерный [hidden] — возвращаем ему силу */
[hidden] {
  display: none !important;
}

/* ---------------- Variables ---------------- */

:root {
  /* Поверхности: тёплая бумага, без синевы */
  --bg: #ffffff;
  --bg-plate: #f6f3ec;
  --bg-card: #ffffff;
  --bg-card-hi: #faf8f2;

  /* Линии */
  --line: #e2ddd1;
  --line-soft: #ece8dd;

  /* Текст */
  --ink: #17150f;
  --ink-2: #575145;
  --ink-3: #7a7365;

  /* Акцент — оранжевый, как техника на площадке */
  --accent: #e2571b;
  --accent-dim: #c2480f;
  --accent-ink: #ffffff;
  --accent-text: #b4400b;

  /* Тёмный графит — подвал и штриховка */
  --phone-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1.1l-2.3 2.1z'/%3E%3C/svg%3E");
  --dark: #1a1710;
  --dark-ink: #e9e5db;
  --dark-ink-2: #a49c8b;
  --dark-line: rgba(255, 255, 255, 0.12);

  /* Тени — мягкие и редкие */
  --shadow: 0 18px 40px -22px rgba(23, 21, 15, 0.45);

  /* Форма */
  --r-btn: 2px;
  --r-card: 4px;

  /* Ритм */
  --gutter: 1rem;
  --section-y: 3.5rem;
  --header-h: 60px;

  /* Шрифты */
  --f-head: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Косая дорожная штриховка — фирменная деталь, используем редко */
  --hazard: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 10px,
    var(--dark) 10px 20px
  );
}

/* ---------------- Global ---------------- */

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.25rem, 9vw, 4.25rem);
}

h2 {
  font-size: clamp(1.75rem, 6.2vw, 3rem);
}

h3 {
  font-size: clamp(1.1rem, 3.6vw, 1.4rem);
  letter-spacing: 0;
}

p {
  color: var(--ink-2);
}

strong {
  color: var(--ink);
  font-weight: 600;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

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

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--plate {
  background: var(--bg-plate);
  border-block: 1px solid var(--line-soft);
}

.section--solid {
  background: var(--bg);
}

.section__head {
  margin-bottom: 1.75rem;
}

.section__head p {
  margin-top: 0.75rem;
  max-width: 56ch;
}

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent-text);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.0625rem;
  color: var(--ink-2);
}

.hazard-bar {
  height: 4px;
  background: var(--hazard);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--f-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: #f2601f;
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--bg-card-hi);
  border-color: var(--ink-3);
}

.btn--wide {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-text);
  font-weight: 600;
  border-bottom: 1px solid rgba(180, 64, 11, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.18s ease;
}

.link-arrow:hover {
  border-color: var(--accent-text);
}

/* ---------------- Header ---------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.logo__name {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.logo__city {
  display: block;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__phone {
  display: none;
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--accent);
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Мобильное меню */
.nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: 1.25rem var(--gutter) 2rem;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  overflow-y: auto;
}

.nav.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.nav__list {
  display: flex;
  flex-direction: column;
}

.nav__list a {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav__list a[aria-current="page"] {
  color: var(--accent);
}

.nav__foot {
  margin-top: auto;
  padding-top: 1.75rem;
  display: grid;
  gap: 0.75rem;
}

.nav__foot .btn {
  width: 100%;
}

.nav__phone {
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ---------------- 3D-сцена ---------------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.scene canvas {
  width: 100%;
  height: 100%;
}

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

/* Запасной вариант: 3D выключено (нет WebGL или «меньше движения») */
.scene-off .scene {
  display: none;
}

.scene-off .hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.95)),
    url("images/hero-poster.webp") center / cover no-repeat;
}

.scene-off .teardown {
  min-height: 0;
}

.scene-off .teardown__sticky {
  position: static;
  min-height: 0;
  display: block;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.scene-off .teardown__panel {
  width: 100%;
  margin: 0;
  backdrop-filter: none;
}

.scene-off .teardown__intro p,
.scene-off .teardown__more,
.scene-off .unit .unit__desc {
  display: block;
}

.scene-off .passby {
  min-height: 0;
  padding-block: var(--section-y);
  background: var(--bg-plate);
}

.scene-off .passby::before {
  display: none;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: calc(100svh - var(--header-h));
  padding-block: 2.5rem 2rem;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.3) 46%,
    rgba(255, 255, 255, 0.78) 100%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero__place {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__place::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}

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

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--accent);
}

.hero__text {
  max-width: 48ch;
  margin-top: 1.25rem;
  font-size: 1.0625rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Тёмная полоса между первым экраном и разбором.
   Раньше она была белой и «разрезала» грейдера пополам: машина
   торчала сверху и снизу тонкой светлой щели, и это читалось как
   поломка вёрстки. Тёмная плашка во всю ширину читается как
   намеренная перемычка — машина просто уходит за неё. */
.facts {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: var(--dark-ink);
  box-shadow: inset 0 3px 0 var(--accent);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.facts__grid div {
  padding: 1.15rem 0.25rem;
  background: var(--dark);
}

.facts__grid dt {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts__grid dd {
  margin-top: 0.3rem;
  color: #fff;
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}

.scroll-hint {
  display: none;
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 46px;
  margin: 0.75rem auto 0;
  background: linear-gradient(var(--accent), transparent);
}

/* ---------------- Разбор: узлы ---------------- */

.teardown {
  position: relative;
  min-height: 210vh;
  background: transparent;
}

/* Телефон: список узлов прижат к низу экрана, машина видна сверху */
.teardown__sticky {
  position: sticky;
  top: var(--header-h);
  display: flex;
  align-items: flex-end;
  height: calc(100svh - var(--header-h));
  padding-bottom: 0.75rem;
}

.teardown__sticky > .container {
  width: 100%;
}

.teardown__panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 0.9rem 1rem 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.teardown__intro h2 {
  margin-top: 0.3rem;
  font-size: 1.5rem;
}

.teardown__intro p,
.teardown__more {
  display: none;
}

.teardown__list {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
  margin-top: 1rem;
}

.unit {
  background: var(--bg);
}

.unit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  padding: 0.55rem 0.8rem;
  background: var(--bg);
  transition: background-color 0.25s ease;
}

.unit .unit__desc {
  display: none;
}

.unit.is-active .unit__desc {
  display: block;
}

.unit.is-active {
  background: #fdf0e8;
}

.unit__no {
  grid-row: span 2;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  padding-top: 3px;
  transition: color 0.25s ease;
}

.unit.is-active .unit__no {
  color: var(--accent-text);
}

.unit__name {
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
}

.unit__desc {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------------- Проезд техники ---------------- */

.passby {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: transparent;
}

.passby::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.45) 45%,
    rgba(255, 255, 255, 0.06) 100%
  );
  pointer-events: none;
}

.passby .container {
  position: relative;
}

.passby__quote {
  max-width: 24ch;
  font-family: var(--f-head);
  font-size: clamp(1.5rem, 5.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.passby__quote span {
  color: var(--accent);
}

.passby__note {
  margin-top: 1rem;
  max-width: 42ch;
}

/* ---------------- Карточки ---------------- */

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hi);
  box-shadow: var(--shadow);
}

.card__no {
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.card h3 {
  margin: 0.55rem 0 0.5rem;
}

.card p {
  font-size: 0.925rem;
}

.card__foot {
  margin-top: auto;
  padding-top: 1rem;
}

/* ---------------- Этапы ---------------- */

.steps {
  counter-reset: step;
  border-top: 1px solid var(--line-soft);
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.step::before {
  content: "0" counter(step);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.step h3 {
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.95rem;
}

.step__meta {
  grid-column: 2;
  margin-top: 0.6rem;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------- Таблица моделей / спецификаций ---------------- */

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

/* Дети grid-контейнеров не должны распирать страницу таблицей */
.split > *,
.cta > *,
.cards > *,
.machines > * {
  min-width: 0;
}

.spec {
  min-width: 440px;
  font-size: 0.925rem;
}

/* Таблицы на две колонки помещаются в телефон без прокрутки */
.spec--pairs {
  min-width: 0;
}

.spec--pairs td:first-child {
  white-space: normal;
  font-size: 0.85rem;
}

.spec th,
.spec td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  /* Номера узлов вроде 240.30.11.00.000 — одно длинное «слово»,
     без переноса они распирают таблицу на узком экране */
  overflow-wrap: anywhere;
}

.spec thead th {
  background: var(--bg-card);
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec tbody tr:last-child td {
  border-bottom: 0;
}

.spec tbody tr:hover {
  background: var(--bg-card);
}

.spec td:first-child {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.spec .num {
  font-family: var(--f-mono);
  color: var(--ink-2);
}

/* ---------------- Каталог техники ---------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filters button {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.filters button:hover {
  color: var(--ink);
  border-color: var(--ink-3);
}

.filters button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.machines {
  display: grid;
  gap: 1rem;
}

.machine {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Кликабельна вся карточка: ссылка заголовка растягивается поверх неё.
   Ссылка при этом одна — читалки и клавиатура видят один элемент. */
.machine__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.machine:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 10px 24px -18px rgba(23, 21, 15, 0.55);
  transform: translateY(-2px);
}

.machine:focus-within {
  border-color: var(--accent-dim);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.machine__link:focus-visible {
  outline: none;
}

.machine__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--bg-plate);
}

.machine__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.machine:hover .machine__media img {
  transform: scale(1.03);
}

.machine__tag {
  position: absolute;
  left: 0;
  top: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.machine__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.05rem;
}

.machine h3 {
  margin-bottom: 0.65rem;
}

.machine__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

/* Подписи характеристик обычным шрифтом: на 23 карточках моно-капс
   превращается в рябь, а параметров тут много */
.machine__specs dt {
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.3;
}

.machine__specs dd {
  margin-top: 1px;
  color: var(--ink);
  font-weight: 500;
}

.machine__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line-soft);
}

.machine__foot .link-arrow {
  min-height: 44px;
  align-items: center;
  padding-bottom: 0;
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 rgba(180, 64, 11, 0.3);
}

.machine:hover .machine__foot .link-arrow {
  box-shadow: inset 0 -1px 0 var(--accent-text);
}

.machine__price {
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 700;
}

.machine__price small {
  display: block;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------------- Галерея цеха ---------------- */

.shots {
  display: grid;
  gap: 0.75rem;
}

.shots figure {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.shots figcaption {
  margin-top: auto;
}

.shots img,
.shots video {
  display: block;
  width: 100%;
  /* height: auto обязателен: атрибут height у вертикального ролика
     иначе перебивает aspect-ratio и ломает ряд плиток */
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Ролик снят вертикально: в горизонтальной плитке показываем
   верхнюю часть кадра — там сама машина, а не земля под ней */
.shots__clip video {
  object-position: center 38%;
  background: var(--bg-plate);
}

.shots figcaption {
  padding: 0.6rem 0.75rem;
  background: var(--bg-card);
  color: var(--ink-2);
  font-size: 0.85rem;
}

/* ---------------- Форма ---------------- */

.form {
  display: grid;
  gap: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.18s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}

.form__note {
  color: var(--ink-3);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form__note a {
  border-bottom: 1px solid var(--line);
}

.form__status {
  display: none;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  font-size: 0.9rem;
}

.form__status.is-visible {
  display: block;
}

.cta {
  display: grid;
  gap: 2rem;
}

.cta__aside p {
  margin-top: 0.9rem;
}

.contact-list {
  display: grid;
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.contact-list a,
.contact-list div {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--bg);
}

.contact-list dt {
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-list dd {
  margin-top: 0.25rem;
  font-family: var(--f-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-list a:hover dd {
  color: var(--accent);
}

/* ---------------- Footer ---------------- */

.footer {
  position: relative;
  z-index: 1;
  background: var(--dark);
  color: var(--dark-ink);
}

.footer .logo__name {
  color: var(--dark-ink);
}

.footer .logo__city {
  color: var(--dark-ink-2);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem;
}

.footer h4 {
  margin-bottom: 0.9rem;
  color: var(--dark-ink-2);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.footer__about {
  margin-top: 1rem;
  max-width: 34ch;
  color: var(--dark-ink-2);
  font-size: 0.95rem;
}

.footer__links {
  display: grid;
  gap: 0.15rem;
  font-size: 0.95rem;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dark-ink);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__legal {
  padding-block: 1.25rem;
  border-top: 1px solid var(--dark-line);
  color: var(--dark-ink-2);
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer__legal p {
  color: inherit;
}

.footer__legal a:hover {
  color: var(--dark-ink);
}

/* ---------------- Внутренние страницы ---------------- */

.page-hero {
  position: relative;
  padding-block: 2.25rem 2.75rem;
  background: var(--bg-plate);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero--scene {
  display: flex;
  align-items: center;
  min-height: 62svh;
  background: transparent;
  border: 0;
}

.page-hero--scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.6) 55%,
    rgba(255, 255, 255, 0.92) 100%
  );
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  max-width: 17ch;
  font-size: clamp(2rem, 7.5vw, 3.5rem);
}

.page-hero p {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: 1.0625rem;
}

.page-hero .btn {
  margin-top: 1.75rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crumbs a:hover {
  color: var(--accent);
}

.units--open .unit__desc {
  display: block;
}

.faq {
  border-top: 1px solid var(--line-soft);
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  cursor: pointer;
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 1.2rem;
  line-height: 1.2;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  padding-bottom: 1.15rem;
  max-width: 72ch;
}

.split {
  display: grid;
  gap: 2rem;
}

.note {
  padding: 1.1rem 1.2rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
}

.note p {
  font-size: 0.95rem;
}

.empty {
  padding: 2rem 0;
  color: var(--ink-2);
}

/* ---------------- Кнопка звонка на телефоне ----------------
   Главное действие сайта — звонок, поэтому на телефоне он всегда
   под большим пальцем. На широком экране не нужен: там телефон
   виден в шапке постоянно. */

.callbar {
  display: none;
}

@media (max-width: 767px) {
  .callbar {
    position: fixed;
    transform: translateY(105%);
    transition: transform 0.25s ease;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 54px;
    padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--f-head);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 -8px 20px -14px rgba(23, 21, 15, 0.7);
  }

  .callbar:active {
    background: var(--accent-dim);
  }

  .callbar__icon {
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--phone-mask) center / contain no-repeat;
    mask: var(--phone-mask) center / contain no-repeat;
  }

  /* Чтобы подвал не прятался под кнопкой */
  .page {
    padding-bottom: calc(54px + env(safe-area-inset-bottom));
  }

  .callbar.is-shown {
    transform: none;
  }

  /* Поверх галереи и открытого меню кнопка не нужна */
  body.is-locked .callbar {
    display: none;
  }
}

/* ---------------- Полоса прокрутки ---------------- */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-plate);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-plate);
  border-left: 1px solid var(--line);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border: 3px solid var(--bg-plate);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}

::-webkit-scrollbar-corner {
  background: var(--bg-plate);
}

/* ---------------- Просмотр фотографий ---------------- */

/* Кнопка воспроизведения: без неё видео в галерее никто не находит */
.machine__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(226, 87, 27, 0.92);
  box-shadow: 0 6px 18px -6px rgba(23, 21, 15, 0.6);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.machine__play::after {
  content: "";
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.machine:hover .machine__play {
  transform: scale(1.08);
  background: var(--accent);
}

.machine__count {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.3rem 0.6rem;
  background: rgba(23, 21, 15, 0.78);
  color: #fff;
  font-size: 0.78rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(3.5rem + env(safe-area-inset-top, 0px)) 0.75rem
    calc(5rem + env(safe-area-inset-bottom, 0px));
  background: rgba(16, 14, 10, 0.94);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img,
.lightbox video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox [hidden] {
  display: none;
}

.lightbox__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  color: #f0ece3;
}

.lightbox__title {
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lightbox__count {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: #a49c8b;
}

.lightbox button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, 0.06);
  color: #f0ece3;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lightbox__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  display: flex;
  background: var(--bg-plate);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: border-color 0.18s ease;
}

/* Марка — ссылка на свою страницу; отступы держит внутренний элемент,
   чтобы кликабельной была вся плашка и палец попадал уверенно */
.chips li > a,
.chips li > span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  transition: color 0.18s ease;
}

.chips li:not(.chips__plain):hover {
  border-color: var(--accent-dim);
}

.chips li:not(.chips__plain):hover > a {
  color: var(--accent-text);
}

.chips li:last-child {
  background: transparent;
  border-style: dashed;
  color: var(--ink-3);
  font-family: var(--f-body);
  font-weight: 400;
  text-transform: none;
}

/* ---------------- Страница машины ---------------- */

.page-hero--tight {
  padding-block: 1rem;
  background: var(--bg);
}

.page-hero--tight .crumbs {
  margin-bottom: 0;
}

.product {
  display: grid;
  gap: 1.75rem;
}

.gallery__main {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-plate);
}

.gallery__main img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gallery__thumb {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-plate);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.16s ease;
}

.gallery__thumb:hover {
  border-color: var(--accent);
}

.gallery__thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery__thumb--video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: -8px 0 0 -5px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.8));
}

.product__info h1 {
  font-size: clamp(1.75rem, 6vw, 2.6rem);
}

.product__price {
  margin-top: 0.85rem;
  color: var(--ink);
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
}

.product__price small {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-3);
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 400;
}

.product__actions {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

/* Номер телефона не должен переноситься посередине */
.product__actions .btn {
  white-space: nowrap;
  padding-inline: 1rem;
}

/* ---------------- Полоса «своё производство» ----------------
   Тёмный блок на настоящем фото цеха: разбивает сплошную белизну
   страницы и даёт призыв позвонить в середине прокрутки. */

.strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-ink);
}

.strip__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(0.3);
}

.strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--dark) 26%, rgba(26, 23, 16, 0.6) 64%, rgba(26, 23, 16, 0.3) 100%);
}

.strip .container {
  position: relative;
  z-index: 1;
}

.strip__inner {
  max-width: 34rem;
  padding-block: 3rem;
}

.strip__inner h2 {
  margin-block: 0.35rem 0.75rem;
  color: #fff;
}

.strip__inner p {
  margin-bottom: 1.5rem;
  color: #d9d4c8;
}

/* ---------------- Отзывы ----------------
   Компактный блок: цитата, имя, что покупали. Тексты — только реальные,
   дословно с Авито; список отзывов пуст — блок не выводится. */

.reviews {
  display: grid;
  gap: 0.75rem;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.review__stars {
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.review blockquote {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.6;
}

.review blockquote::before {
  content: "«";
}

.review blockquote::after {
  content: "»";
}

.review figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-soft);
}

.review__who {
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
}

.review__meta {
  color: var(--ink-3);
  font-size: 0.82rem;
}

@media (min-width: 768px) {
  .reviews {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------- Было — стало ---------------- */

.ba {
  display: grid;
  gap: 1.25rem;
}

.ba__case {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-card);
  overflow: hidden;
}

.ba__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.ba__shot {
  position: relative;
  margin: 0;
  background: var(--bg-plate);
}

.ba__shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ba__shot figcaption {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.35rem 0.7rem;
  background: var(--dark);
  color: #fff;
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ba__shot--after figcaption {
  background: var(--accent);
}

.ba__body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.ba__body h3 {
  margin-bottom: 0.45rem;
}

.ba__body p {
  font-size: 0.95rem;
}

/* ---------------- Связь ---------------- */

.calls {
  display: grid;
  gap: 1rem;
}

.call {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-card);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.call:hover {
  border-color: var(--accent-dim);
  box-shadow: var(--shadow);
}

.call__role {
  color: var(--ink-3);
  font-size: 0.85rem;
}

.call__number {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 7vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.call__hint {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.channels {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 60px;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.channel:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hi);
}

.channel__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-card);
  background: var(--dark);
  color: #fff;
  font-family: var(--f-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.channel__mark--max {
  background: #7d4cf0;
}

.channel__mark--tg {
  background: #2aabee;
}

.channel__mark--mail {
  background: var(--accent);
}

.channel__mark--avito {
  background: #04e061;
  color: #0b1f12;
}

.channel__body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.channel__name {
  font-weight: 600;
}

.channel__value {
  color: var(--ink-3);
  font-size: 0.88rem;
}

.map-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-plate);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

/* ---------------- Техника в работе ---------------- */

.reels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.reel {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg-plate);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  cursor: zoom-in;
}

.reel video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--bg-plate);
}

.reel figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 0.7rem 0.6rem;
  background: linear-gradient(transparent, rgba(23, 21, 15, 0.88));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------------- Утилиты ---------------- */

.stack > * + * {
  margin-top: 1rem;
}

.mt-05 { margin-top: 0.75rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }

.ticks {
  display: grid;
  gap: 0.6rem;
}

.ticks li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------- Responsive ---------------- */

@media (min-width: 480px) {
  :root {
    --gutter: 1.25rem;
  }

  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
    --section-y: 5rem;
    --header-h: 72px;
  }

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

  .facts__grid div {
    padding: 1.35rem 1rem 1.35rem 0;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .machines {
    grid-template-columns: repeat(2, 1fr);
  }

  .step {
    grid-template-columns: 4rem 1fr;
    gap: 0 2rem;
  }

  .step p {
    max-width: 62ch;
  }

  .cta {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }

  .calls {
    grid-template-columns: repeat(2, 1fr);
  }

  .ba {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .channels {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-frame iframe {
    height: 420px;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-block: 3.5rem;
  }

  .form--split {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .product {
    grid-template-columns: 1.15fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .product__actions {
    /* Главной кнопке нужно больше места: с номером внутри она шире второй */
    grid-template-columns: 1.45fr 1fr;
  }

  .page-hero {
    padding-block: 3rem 3.75rem;
  }

  .form--split .field--full,
  .form--split .form__note,
  .form--split .form__submit,
  .form--split .form__status {
    grid-column: 1 / -1;
  }

  .header__phone {
    display: block;
  }

  .scroll-hint {
    display: block;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-y: 6.5rem;
  }

  .burger {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    inset: auto;
    padding: 0;
    background: transparent;
    border: 0;
    opacity: 1;
    transform: none;
    visibility: visible;
    overflow: visible;
  }

  .nav__list {
    flex-direction: row;
    gap: 1.5rem;
  }

  .nav__list a {
    padding: 0.35rem 0;
    border: 0;
    font-family: var(--f-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--ink-2);
    transition: color 0.18s ease;
  }

  .nav__list a:hover {
    color: var(--ink);
  }

  .nav__foot {
    display: none;
  }

  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .machines {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .reels {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .hero {
    align-items: center;
  }

  .hero::before {
    background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.7) 38%,
      rgba(255, 255, 255, 0.04) 68%,
      rgba(255, 255, 255, 0.28) 100%
    );
  }

  .teardown {
    min-height: 300vh;
  }

  .teardown__sticky {
    align-items: flex-start;
    height: calc(100vh - var(--header-h));
    padding-top: 7vh;
    padding-bottom: 0;
  }

  .teardown__panel {
    width: min(440px, 42%);
    margin-left: auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
  }

  .teardown__intro p,
  .teardown__more {
    display: block;
  }

  .teardown__intro p {
    margin-top: 0.75rem;
  }

  .teardown__more {
    margin-top: 1.25rem;
  }

  .teardown__intro h2 {
    font-size: clamp(1.75rem, 2.4vw, 2.3rem);
  }

  .unit {
    padding: 0.7rem 0.9rem;
  }

  .passby__quote {
    max-width: 18ch;
  }

  .passby::before {
    background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.78) 32%,
      rgba(255, 255, 255, 0.04) 58%,
      rgba(255, 255, 255, 0.2) 100%
    );
  }

  .page-hero--scene::before {
    background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.8) 34%,
      rgba(255, 255, 255, 0.06) 62%,
      rgba(255, 255, 255, 0.3) 100%
    );
  }
}

@media (min-width: 1440px) {
  .teardown__panel {
    width: 460px;
  }
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
