:root {
  --c-ink: #0c2233;
  --c-ink-deep: #081827;
  --c-steel: #1c3c55;
  --c-emerald: #238e30;
  --c-growth: #008251;
  --c-emerald-deep: #20852d;
  --c-growth-deep: #007a4c;
  --c-emerald-lift: #449e4f;
  --c-emerald-ink: #1c7427;
  --c-paper: #ffffff;
  --c-arctic: #ededed;

  --c-text: var(--c-paper);
  --c-text-muted: rgba(255, 255, 255, 0.72);
  --c-text-faint: rgba(255, 255, 255, 0.58);
  --c-rule: rgba(255, 255, 255, 0.12);
  --c-rule-soft: rgba(255, 255, 255, 0.07);
  --c-rule-strong: rgba(255, 255, 255, 0.32);
  --c-field: rgba(8, 24, 39, 0.42);
  --c-danger: #ff9d9d;

  --font-base: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-display: "Actay Wide", "Montserrat", "Segoe UI", Arial, sans-serif;

  --fs-micro: 0.688rem;
  --fs-small: 0.875rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-display: clamp(1.75rem, 3.05vw, 2.75rem);

  /* Заголовок внутренней страницы мельче, чем на первом экране: у него длинные
     служебные названия вроде «Политика конфиденциальности», и на узком экране
     такое слово не помещалось в колонку целиком. ТЗ размеры не фиксирует —
     оно требует один H1 и структуру H1–H3 без пропусков (п. 14). */
  --fs-page-title: clamp(1.5rem, 2.5vw, 2.5rem);

  /* Заголовок секции. Нижняя граница подобрана так, чтобы самые длинные слова
     каталога («производительностью», «Пневмокамерные») помещались в колонку
     на 360px целиком — переносы внутри слова недопустимы. */
  --fs-section-title: clamp(1.375rem, 2.4vw, 2.25rem);

  --track-tight: -0.02em;

  /* Вес заголовков. У Actay Wide единственное начертание — Bold, вес 700.
     Просить больше нельзя: браузер начнёт подделывать жирность.
     Один вес на всех ширинах — мобильная версия не должна отличаться. */
  --fw-display: 700;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  --r-s: 4px;
  --r-m: 10px;
  --r-pill: 999px;

  --shell: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --masthead-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-text);
  font: 400 var(--fs-body) / 1.6 var(--font-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

ul,
ol { margin: 0; padding: 0; list-style: none; }

dl,
dd { margin: 0; }

h1, h2, h3, h4, p { margin: 0; }

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

button { font: inherit; color: inherit; background: none; border: 0; }

:focus-visible {
  outline: 2px solid var(--c-emerald-lift);
  outline-offset: 3px;
}

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

/* видно только программе чтения с экрана: заголовки таблиц и подписи,
   которые в макете не нужны, а в разметке обязаны быть */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 60;
  padding: var(--s-3) var(--s-5);
  background: var(--c-emerald-deep);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible { top: var(--s-3); }

.marker {
  display: inline;
  margin-top: 0.16em;
  padding: 0.06em 0.3em 0.16em;
  background: var(--c-emerald);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__photo {
  position: absolute;
  inset: 0;
  background-image: image-set(url("../img/hero-bg-dusk.webp") type("image/webp"),
                              url("../img/hero-bg-dusk.jpg") type("image/jpeg"));
  /* кадрируем шире экрана и сдвигаем влево, чтобы сам завод ушёл из-под текста вправо */
  background-position: 6% 62%;
  background-size: 142% auto;
  opacity: 0;
  pointer-events: none;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 15, 26, 0.95) 0%, rgba(6, 15, 26, 0.86) 38%, rgba(6, 15, 26, 0.46) 100%),
    linear-gradient(180deg, rgba(6, 15, 26, 0.6) 0%, rgba(6, 15, 26, 0.2) 40%, rgba(6, 15, 26, 0.75) 100%);
}

[data-hero="photo"] .hero__photo { opacity: 1; }
[data-hero="photo"] .hero__watermark,
[data-hero="photo"] .hero__wash,
[data-hero="photo"] .hero__stage { display: none; }

[data-hero="photo"] .hero__grid { grid-template-columns: minmax(0, 1fr); }
[data-hero="photo"] .hero__copy { max-width: 52rem; }

.topline {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #060f1a;
}

.topline__inner {
  display: flex;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  /* нижняя граница входит в крашеную полосу, поэтому её центр на 0.5px ниже
     центра контента — компенсируем, иначе текст визуально уезжает вверх */
  padding-top: 1px;
}

.topline__item {
  color: var(--c-text-faint);
  font-size: var(--fs-micro);
  font-weight: 600;
  /* строка обрезается до высоты прописных: у набора без выносных элементов
     иначе снизу остаётся место под них и чернила встают выше центра */
  line-height: 1;
  text-box: trim-both cap alphabetic;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--c-rule-soft);
  background: rgba(8, 24, 39, 0.82);
  backdrop-filter: blur(14px);
}

.masthead__inner {
  display: flex;
  gap: var(--s-5);
  align-items: center;
  min-height: var(--masthead-h);
}

.masthead__cta { margin-left: auto; }

.brand {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  margin-right: var(--s-7);
}

.brand__logo {
  display: block;
  width: auto;
  height: 30px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  padding-left: var(--s-3);
  border-left: 1px solid var(--c-rule);
}

.brand__name {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.brand__region {
  color: var(--c-text-faint);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: var(--s-6);
  align-items: center;
}

.nav__link {
  position: relative;
  padding-block: var(--s-2);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: color 0.18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--c-emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav__link:hover,
.nav__group--open .nav__toggle { color: var(--c-text); }

.nav__link:hover::after,
.nav__group--open .nav__toggle::after { transform: scaleX(1); }

.nav__group { position: relative; }

.nav__toggle {
  display: inline-flex;
  gap: var(--s-1);
  align-items: center;
  cursor: pointer;
}

.nav__chevron {
  display: block;
  width: 14px;
  height: 14px;
  transition: transform 0.22s var(--ease);
}

.nav__group--open .nav__chevron { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  left: calc(var(--s-5) * -1);
  top: calc(100% + var(--s-4));
  z-index: 1;
  display: grid;
  gap: var(--s-1);
  width: 328px;
  padding: var(--s-3);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-m);
  background: rgba(8, 24, 39, 0.97);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(14px);
}

/* Панель отстоит от пункта меню, и в этом зазоре курсор оказывается
   вне группы — меню закрывалось, пока мышь до него шла. Невидимый мостик
   перекрывает зазор и делает область наведения сплошной. */
.dropdown::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(var(--s-4) * -1);
  height: var(--s-4);
}

.dropdown[hidden] { display: none; }

.dropdown--narrow { width: 296px; }

.dropdown__link {
  display: grid;
  gap: 2px;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-s);
  transition: background 0.18s var(--ease);
}

.dropdown__link:hover { background: rgba(255, 255, 255, 0.06); }

.dropdown__link--all {
  margin-top: var(--s-1);
  border-top: 1px solid var(--c-rule-soft);
  border-radius: 0 0 var(--r-s) var(--r-s);
  color: var(--c-emerald-lift);
}

.dropdown__title {
  font-size: var(--fs-small);
  font-weight: 600;
}

.dropdown__note {
  color: var(--c-text-faint);
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.burger {
  display: none;
  flex-direction: column;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: calc(var(--s-3) * -1);
  cursor: pointer;
}

.burger__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-paper);
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

.burger__bar + .burger__bar { margin-top: 5px; }

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

.btn {
  display: inline-flex;
  gap: var(--s-2);
  align-items: center;
  justify-content: center;
  padding: var(--s-3) var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-s);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--solid {
  background: linear-gradient(135deg, var(--c-emerald-deep), var(--c-growth-deep));
  color: var(--c-paper);
}

.btn--solid:hover { background: linear-gradient(135deg, #1e7a29, #006f45); }

.btn--ghost {
  border-color: var(--c-rule);
  color: var(--c-text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.05);
}

.btn--sm { padding: var(--s-2) var(--s-4); }

.btn--lg {
  padding: var(--s-4) var(--s-6);
  font-size: var(--fs-body);
}

.btn__arrow {
  display: block;
  width: 20px;
  height: 20px;
  transition: transform 0.22s var(--ease);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--masthead-h) - 34px);
  padding-block: var(--s-7) var(--s-5);
  overflow: hidden;
  background: linear-gradient(150deg, var(--c-ink) 0%, var(--c-steel) 62%, var(--c-ink-deep) 100%);
}

.hero__wash {
  position: absolute;
  right: -12%;
  bottom: -34%;
  width: 78vw;
  max-width: 1180px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 130, 81, 0.34) 0%, rgba(0, 130, 81, 0) 62%);
  pointer-events: none;
}

.hero__watermark {
  position: absolute;
  right: -11%;
  top: 50%;
  width: auto;
  height: 108%;
  opacity: 0.022;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-7) var(--s-8);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  flex-grow: 1;
}

.hero__copy { max-width: 44rem; }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  line-height: 1.08;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero__lead {
  max-width: 46ch;
  margin-top: var(--s-6);
  color: var(--c-text-muted);
  font-size: var(--fs-lead);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-7);
}

.hero__stage {
  position: relative;
  margin-right: calc(var(--gutter) * -0.6);
}

.hero__plant {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
}

.hero__stage .tag { margin-top: var(--s-4); }

.hero__video,
.hero__scrim {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  background:
    radial-gradient(ellipse at center, rgba(6, 15, 26, 0.34) 0%, rgba(6, 15, 26, 0.74) 72%),
    linear-gradient(180deg, rgba(6, 15, 26, 0.66) 0%, rgba(6, 15, 26, 0.3) 45%, rgba(6, 15, 26, 0.8) 100%);
}

[data-hero="video"] .hero__video,
[data-hero="video"] .hero__scrim { display: block; }

[data-hero="video"] .hero__watermark,
[data-hero="video"] .hero__wash,
[data-hero="video"] .hero__stage { display: none; }

[data-hero="video"] {
  /* фон живой и местами светлеет — приглушённый текст поднимаем, чтобы контраст
     не проваливался ниже нормы на светлых кадрах */
  --c-text-muted: rgba(255, 255, 255, 0.88);
}

[data-hero="video"] .hero__grid {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

[data-hero="video"] .hero__copy {
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[data-hero="video"] .marker { margin-inline: auto; }

/* Плашка «от проекта до запуска» обязана держаться одной строкой. Строчное
   выделение подчиняется автобалансировке строк и на широких экранах рвалось
   пополам; блочное — нет, и при этом обнимает текст.
   Ниже 420px плашке уже не хватает ширины: там она остаётся строчной
   и переносится по словам, а не растягивается на всю колонку. */
@media (min-width: 420px) {
  .marker {
    display: table;
    text-wrap: wrap;
  }
}

[data-hero="video"] .hero__lead { max-width: 54ch; }

[data-hero="video"] .hero__actions { justify-content: center; }

[data-hero="video"] .proofs {
  gap: var(--s-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  border-top: 0;
}

[data-hero="video"] .proofs__item {
  flex-direction: row;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-4);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-m);
  background: rgba(8, 24, 39, 0.62);
  backdrop-filter: blur(10px);
  color: var(--c-text);
  text-align: left;
}

[data-hero="video"] .proofs__mark {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: var(--r-s);
  background: rgba(68, 158, 79, 0.18);
  box-sizing: border-box;
}

.proofs__icon { display: none; }

[data-hero="video"] .proofs__icon {
  display: block;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--r-s);
}

.tag {
  display: inline-flex;
  gap: var(--s-2);
  align-items: center;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-pill);
  background: rgba(8, 24, 39, 0.72);
  backdrop-filter: blur(8px);
  color: var(--c-text-muted);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes tag-blink {
  0%, 42% { opacity: 1; filter: drop-shadow(0 0 5px rgba(68, 158, 79, 0.85)); }
  56%, 96% { opacity: 0.3; filter: drop-shadow(0 0 0 rgba(68, 158, 79, 0)); }
}

.tag__mark {
  display: block;
  flex: none;
  color: var(--c-emerald-lift);
  animation: tag-blink 1.9s steps(1, end) infinite;
}

.proofs {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  margin-top: var(--s-7);
  border-top: 1px solid var(--c-rule);
  position: relative;
  z-index: 1;
}

.proofs__item {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-5) var(--s-7) var(--s-5) 0;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  font-weight: 500;
}

.proofs__item + .proofs__item {
  padding-left: var(--s-7);
  border-left: 1px solid var(--c-rule);
}

[data-hero="video"] .proofs__item + .proofs__item {
  padding-left: var(--s-4);
}

.proofs__mark {
  display: block;
  flex: none;
  color: var(--c-emerald-lift);
}

.theme-toggle {
  position: fixed;
  left: var(--s-5);
  bottom: var(--s-5);
  z-index: 50;
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-pill);
  background: rgba(8, 24, 39, 0.72);
  backdrop-filter: blur(10px);
  color: var(--c-text);
  cursor: pointer;
  transition: transform 0.24s var(--ease), border-color 0.2s var(--ease);
}

[data-hero="render"] .theme-toggle { display: grid; }

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

.theme-toggle__sun,
.theme-toggle__moon {
  grid-area: 1 / 1;
  display: block;
}

.theme-toggle__moon { display: none; }

[data-theme="light"] .theme-toggle {
  border-color: rgba(12, 34, 51, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

[data-theme="light"] .theme-toggle:hover { border-color: rgba(12, 34, 51, 0.34); }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }

.brand__logo--ink { display: none; }

.hero__watermark--ink { display: none; }

[data-theme="light"] {
  --c-text: var(--c-ink);
  --c-text-muted: rgba(12, 34, 51, 0.72);
  --c-text-faint: rgba(12, 34, 51, 0.68);
  --c-rule: rgba(12, 34, 51, 0.16);
  --c-rule-soft: rgba(12, 34, 51, 0.09);
  --c-emerald-lift: var(--c-emerald-ink);
}

[data-theme="light"] body { background: var(--c-paper); }

[data-theme="light"] .brand__logo--knockout,
[data-theme="light"] .hero__watermark--knockout { display: none; }

[data-theme="light"] .brand__logo--ink { display: block; }

[data-theme="light"] .hero__watermark--ink {
  display: block;
  opacity: 0.05;
}

[data-theme="light"] .topline {
  border-bottom-color: rgba(12, 34, 51, 0.12);
  background: var(--c-arctic);
}

[data-theme="light"] .masthead {
  border-bottom-color: rgba(12, 34, 51, 0.1);
  background: rgba(255, 255, 255, 0.86);
}

[data-theme="light"] .hero {
  background: linear-gradient(160deg, var(--c-paper) 0%, var(--c-arctic) 62%, #e2e5e7 100%);
}

[data-theme="light"] .hero__wash { opacity: 0.42; }

[data-theme="light"] .hero__plant { filter: drop-shadow(0 30px 46px rgba(12, 34, 51, 0.24)); }

[data-theme="light"] .tag {
  background: rgba(255, 255, 255, 0.82);
  color: var(--c-text-muted);
}

[data-theme="light"] .dropdown {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(12, 34, 51, 0.16);
}

[data-theme="light"] .dropdown__link:hover { background: rgba(12, 34, 51, 0.05); }

[data-theme="light"] .burger__bar { background: var(--c-ink); }

[data-theme="light"] .quiz {
  background: linear-gradient(180deg, var(--c-arctic) 0%, var(--c-paper) 100%);
}

[data-theme="light"] .notice {
  background: rgba(255, 255, 255, 0.96);
  color: var(--c-text-muted);
}

/* Реверс второго блока: в тёмной теме экран тёмный, а подбор светлый.
   В светлой теме всё переворачивается, иначе два светлых блока подряд
   сливаются и ритм страницы пропадает. Острова внутри инвертируются тоже. */
[data-theme="light"] .quiz {
  --c-text: var(--c-paper);
  --c-text-muted: rgba(255, 255, 255, 0.72);
  --c-text-faint: rgba(255, 255, 255, 0.58);
  --c-rule: rgba(255, 255, 255, 0.12);
  --c-rule-soft: rgba(255, 255, 255, 0.07);
  --c-emerald-lift: #449e4f;

  background: linear-gradient(180deg, var(--c-ink) 0%, var(--c-steel) 100%);
  color: var(--c-text);
}

[data-theme="light"] .quiz .field__select {
  border-color: var(--c-rule);
  background-color: rgba(255, 255, 255, 0.07);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='square'/%3E%3C/svg%3E");
  color: var(--c-text);
}

[data-theme="light"] .quiz .field__select:hover { border-color: rgba(255, 255, 255, 0.4); }

[data-theme="light"] .recommendation,
[data-theme="light"] .model__plate {
  --c-text: var(--c-ink);
  --c-text-muted: rgba(12, 34, 51, 0.72);
  --c-text-faint: rgba(12, 34, 51, 0.68);
  --c-emerald-lift: var(--c-emerald-ink);

  background: linear-gradient(150deg, var(--c-paper) 0%, var(--c-arctic) 100%);
  color: var(--c-text);
}

[data-theme="light"] .model {
  border-color: var(--c-rule);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .model__badge { border-color: rgba(12, 34, 51, 0.26); }

[data-theme="light"] .model__badge--alt {
  border-color: transparent;
  color: var(--c-paper);
}

.quiz-cta {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-5);
  z-index: 50;
  display: flex;
  gap: var(--s-3);
  align-items: center;
  min-width: 56px;
  max-width: 56px;
  height: 56px;
  /* 17 + 22 + 17 = 56: в свёрнутом виде подпись обрезана, а значок стоит
     ровно по центру круга за счёт геометрии, а не подгонки */
  padding-inline: 17px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--c-emerald-deep), var(--c-growth-deep));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  color: var(--c-paper);
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  transition: max-width 0.28s var(--ease), transform 0.24s var(--ease);
}

.quiz-cta:hover,
.quiz-cta:focus-visible {
  max-width: 20rem;
  transform: translateY(-2px);
}

.quiz-cta__icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
}

.quiz-cta__label {
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.quiz-cta:hover .quiz-cta__label,
.quiz-cta:focus-visible .quiz-cta__label { opacity: 1; }

.notice {
  position: fixed;
  left: 50%;
  bottom: var(--s-6);
  z-index: 60;
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-s);
  background: rgba(8, 24, 39, 0.94);
  backdrop-filter: blur(10px);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.notice--shown { opacity: 1; transform: translate(-50%, 0); }

.on-light {
  --c-text: var(--c-ink);
  --c-text-muted: rgba(12, 34, 51, 0.72);
  --c-text-faint: rgba(12, 34, 51, 0.68);
  --c-rule: rgba(12, 34, 51, 0.16);
  --c-rule-soft: rgba(12, 34, 51, 0.09);
  --c-rule-strong: rgba(12, 34, 51, 0.34);
  --c-field: var(--c-paper);
  --c-danger: #b3261e;

  color: var(--c-text);
}

/* на светлых секциях ссылки идут фирменным тёмным: зелёный тут и по
   контрасту слабее нормы, и спорит с зелёными кнопками рядом */
.on-light .link-arrow { color: var(--c-ink); }

.on-dark {
  --c-text: var(--c-paper);
  --c-text-muted: rgba(255, 255, 255, 0.72);
  --c-text-faint: rgba(255, 255, 255, 0.58);
  --c-rule: rgba(255, 255, 255, 0.12);
  --c-rule-soft: rgba(255, 255, 255, 0.07);

  color: var(--c-text);
}

.kicker {
  color: var(--c-text-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quiz {
  padding-block: clamp(56px, 7vw, 104px);
  background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-arctic) 100%);
}

.quiz__grid {
  display: grid;
  gap: var(--s-7) var(--s-8);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.quiz__title {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  line-height: 1.12;
  text-wrap: balance;
}

.quiz__lead {
  max-width: 42ch;
  margin-top: var(--s-4);
  color: var(--c-text-muted);
  line-height: 1.62;
}

.quiz__fields {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quiz__submit { align-self: end; }

.field {
  position: relative;
  display: grid;
  gap: var(--s-2);
}

.field__label {
  color: var(--c-text-faint);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.field__select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 var(--s-4);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-s);
  background-color: var(--c-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%230c2233' stroke-width='1.8' stroke-linecap='square'/%3E%3C/svg%3E");
  background-position: right var(--s-4) center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  color: var(--c-text);
  font: 500 var(--fs-body) / 1.2 var(--font-base);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.18s var(--ease);
}

.field__select:hover { border-color: var(--c-rule-strong); }

.quiz__output {
  display: grid;
  gap: var(--s-7);
  margin-top: var(--s-8);
}

.quiz__output[hidden] { display: none; }

.recommendation {
  display: grid;
  gap: var(--s-5) var(--s-7);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: var(--s-6);
  border-radius: var(--r-m);
  background: linear-gradient(150deg, var(--c-ink) 0%, var(--c-steel) 100%);
  color: var(--c-paper);
}

.recommendation__title {
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
}

.recommendation__text {
  max-width: 62ch;
  margin-top: var(--s-3);
  color: var(--c-text-muted);
  line-height: 1.6;
}

.recommendation__meta {
  display: grid;
  gap: var(--s-2);
  justify-items: end;
  text-align: right;
}

.recommendation__meta span {
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}

/* Целевое действие блока — обычная кнопка, а не ссылка со стрелкой:
   со стрелкой её принимали за подпись, а не за то, что можно нажать. */
.recommendation__cta { margin-top: var(--s-2); }

.matches__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-7);
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-rule);
}

.matches__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
}

.matches__note {
  max-width: 46ch;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}

.matches__cards {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  margin-top: var(--s-5);
}

.model {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-m);
  background: var(--c-paper);
}

/* ============ Рендеры оборудования ============ */

/* Один список на весь сайт: карточка каталога, модальное окно, подсказка квиза
   и карточка модели на странице направления берут картинку отсюда через
   data-render. Путь к файлу написан один раз и только здесь — разметке не нужно
   знать, на какой глубине лежит страница. Источник рендеров — брошюры клиента,
   см. tools/extract-renders.py. */
[data-render="smartdrymix-5"] { --render: url("../img/smartdrymix-5.webp"); }
[data-render="smartdrymix-20"] { --render: url("../img/smartdrymix-20.webp"); }
[data-render="smartdrymix-50"] { --render: url("../img/smartdrymix-50.webp"); }
[data-render="smartbeton-60"] { --render: url("../img/smartbeton-60.webp"); }
[data-render="smartbeton-90"] { --render: url("../img/smartbeton-90.webp"); }
[data-render="smartbeton-120"] { --render: url("../img/smartbeton-120.webp"); }
[data-render="smartbeton-135"] { --render: url("../img/smartbeton-135.webp"); }
[data-render="smartbeton-30s"] { --render: url("../img/smartbeton-30s.webp"); }
[data-render="smartbeton-60s"] { --render: url("../img/smartbeton-60s.webp"); }
[data-render="smartbeton-90s"] { --render: url("../img/smartbeton-90s.webp"); }
[data-render="smartstock-1000"] { --render: url("../img/smartstock-1000.webp"); }
[data-render="smartstock-2000"] { --render: url("../img/smartstock-2000.webp"); }
[data-render="smartstock-5000"] { --render: url("../img/smartstock-5000.webp"); }
[data-render="equipment-silos"] { --render: url("../img/equipment-silos.webp"); }
[data-render="pkn-pump"] { --render: url("../img/pkn-pump.webp"); }

/* Полоса с рендером оборудования в карточке модели на странице направления.
   Рендер приходит переменной --render, поэтому один и тот же класс обслуживает
   любое направление. Пропорция взята под рендеры из брошюр — они горизонтальные. */
.model__media {
  aspect-ratio: 16 / 10;
  background-color: var(--c-paper);
  background-image: var(--render, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-bottom: 1px solid var(--c-rule);
}

.model__plate {
  display: grid;
  gap: var(--s-3);
  align-content: space-between;
  min-height: 148px;
  padding: var(--s-4);
  background: linear-gradient(150deg, var(--c-ink) 0%, var(--c-steel) 100%);
  color: var(--c-paper);
}

/* Есть рендер — он и есть плашка: синяя подложка убрана, бейдж с кодом
   прижаты кверху, а сам рендер лежит по нижнему краю. Поле выше, чем
   у синей плашки, иначе оборудованию не хватает места. */
.model__plate.model__plate--photo {
  align-content: start;
  min-height: 260px;
  background: var(--c-paper) var(--render, none) center bottom / contain no-repeat;
  border-bottom: 1px solid var(--c-rule);
  color: var(--c-text);
}

/* Бейдж лежит поверх рендера, поэтому у него своя подложка в цвет поля:
   картинка заходит под него, а надпись не смешивается с оборудованием. */
.model__plate--photo .model__badge {
  border-color: var(--c-rule-strong);
  background: var(--c-paper);
}

/* Зелёный бейдж свою подложку не отдаёт — иначе белая подложка соседнего
   правила делает его белым по белому. */
.model__plate--photo .model__badge--alt {
  border-color: transparent;
  background: var(--c-emerald-deep);
  color: var(--c-paper);
}

.model__badge {
  justify-self: start;
  padding: var(--s-1) var(--s-3);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.model__badge--alt {
  border-color: transparent;
  background: var(--c-emerald-deep);
}

.model__code {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  line-height: 1;
}

.model__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--s-3);
  padding: var(--s-5);
}

.model__category {
  color: var(--c-text-faint);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.model__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
}

.model__text {
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.model__spec {
  display: flex;
  gap: var(--s-4);
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-rule);
}

.model__spec-label {
  color: var(--c-text-faint);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.model__spec-value {
  font-size: var(--fs-body);
  font-weight: 700;
  white-space: nowrap;
}

.model__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.model__actions .btn { flex: 1 1 auto; }

.link-arrow {
  display: inline-flex;
  gap: var(--s-2);
  align-items: center;
  color: var(--c-emerald-lift);
  font-size: var(--fs-small);
  font-weight: 600;
}

.link-arrow svg {
  display: block;
  transition: transform 0.22s var(--ease);
}

.link-arrow:hover svg { transform: translateX(4px); }

/* Блок «Категории»: светлая секция, карточки на сером из палитры.
   Структура повторяет прототип — область под фото, разделительная
   полоса, затем текст. */
.categories {
  padding-block: clamp(56px, 7vw, 104px);
  background: var(--c-paper);
}

/* Заголовок и описание стоят в одной строке сетки и выравниваются
   по базовой линии — иначе описание висит выше заголовка. */
/* Зазор двухколоночных блоков на всей странице один — 64px (ВПИ, бетонные
   заводы, о компании, ПКН). Правая колонка шапки обязана вставать на ту же
   вертикаль, иначе секция уезжает относительно соседних. */
.section-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: baseline;
  column-gap: var(--s-8);
  row-gap: var(--s-4);
  margin-bottom: var(--s-7);
}

.section-head__kicker { grid-area: 1 / 1 / 2 / 2; }

.section-head__title {
  grid-area: 2 / 1 / 3 / 2;
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  line-height: 1.12;
  text-wrap: balance;
}

.section-head__lead {
  grid-area: 2 / 2 / 3 / 3;
  max-width: 46ch;
  color: var(--c-text-muted);
  line-height: 1.62;
}

@media (max-width: 760px) {

  .section-head { grid-template-columns: minmax(0, 1fr); }

  .section-head__kicker,
  .section-head__title,
  .section-head__lead { grid-area: auto; }
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

.category {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-m);
  background: var(--c-arctic);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.category:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(12, 34, 51, 0.14);
}

/* Рендер направления берётся из брошюры клиента. Фонового знака под карточкой
   нет: рендер и так занимает поле, а знак только спорил бы с ним. */
.category__media {
  position: relative;
  aspect-ratio: 1.17 / 1;
  border-bottom: 1px solid var(--c-rule);
  background-color: var(--c-paper);
}

.category__media[data-cat]::before {
  content: "";
  position: absolute;
  inset: var(--s-7) var(--s-5) var(--s-4);
  z-index: 1;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
}

.category__media[data-cat="zsss"]::before {
  background-image: url("../img/smartdrymix-50.webp");
}

.category__media[data-cat="beton"]::before {
  background-image: url("../img/beton-plant.webp");
}

.category__media[data-cat="terminal"]::before {
  background-image: url("../img/equipment-silos.webp");
}

/* отступ тот же, что у текстовой части карточки, — номер встаёт
   по одной линии с заголовком, описанием и кнопкой */
.category__index {
  position: absolute;
  z-index: 2;
  top: var(--s-6);
  left: var(--s-6);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.category__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--s-6);
}

.category__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: 1.2;
}

/* растягивается сама, чтобы кнопки во всех трёх карточках встали на одну линию */
.category__text {
  flex-grow: 1;
  margin-top: var(--s-3);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.category__cta { align-self: start; margin-top: var(--s-5); }

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

  /* третья карточка в двухколоночной раскладке занимает всю ширину */
  .category:last-child { grid-column: 1 / -1; }

  .category:last-child .category__media { aspect-ratio: 2.6 / 1; }
}

@media (max-width: 760px) {
  .categories__grid { grid-template-columns: minmax(0, 1fr); }

  .category:last-child { grid-column: auto; }

  .category:last-child .category__media { aspect-ratio: 1.17 / 1; }
}

/* Общий компонент секции «кадр + текст»: используют блоки ВПИ и бетонных
   заводов. Модификатор --mirror меняет колонки местами, чтобы соседние
   секции не выглядели близнецами. Секции тёмные, в цветах ТТС. */
.feature {
  padding-block: clamp(56px, 7vw, 104px);
  background: linear-gradient(160deg, var(--c-ink) 0%, var(--c-ink-deep) 100%);
}

/* две тёмные секции подряд стыкуются краями градиентов — без линии
   переход читается как случайный шов */
.feature + .feature { border-top: 1px solid var(--c-rule-soft); }

.feature__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8);
  align-items: center;
}

.feature__stage { position: relative; }

.feature__panel {
  display: grid;
  place-items: center;
  padding: var(--s-7) var(--s-6);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-m);
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(35, 142, 48, 0.14) 0%, transparent 62%),
    linear-gradient(150deg, var(--c-steel) 0%, var(--c-ink-deep) 100%);
}

.feature__shot {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 44px rgba(4, 14, 24, 0.55));
}

/* подпись-связка: знак ТТС × логотип QUNFENG */
.feature__caption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-5);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-s);
  background: rgba(8, 24, 39, 0.72);
}

.feature__caption-mark { width: auto; height: 22px; }
.feature__caption-logo { width: auto; height: 15px; }

.feature__caption-x {
  color: var(--c-text-faint);
  font-size: var(--fs-small);
}

.feature__caption-text {
  color: var(--c-text-muted);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* если в подписи есть логотипы — текст уходит к правому краю;
   если подпись только текстовая, он остаётся слева */
.feature__caption-text:not(:first-child) { margin-inline-start: auto; }

.feature__title {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  line-height: 1.12;
  text-wrap: balance;
}

.feature__lead {
  max-width: 52ch;
  margin-top: var(--s-4);
  color: var(--c-text-muted);
  line-height: 1.62;
}

.feature__list {
  margin-block: var(--s-6);
  border-top: 1px solid var(--c-rule);
}

.feature__list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--c-rule);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.feature__mark {
  flex: none;
  margin-top: 3px;
  color: var(--c-emerald-lift);
}

@media (max-width: 1100px) {
  .feature__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-7);
  }

  .feature__shot { max-width: 520px; }

  /* в зеркальном варианте разметка идёт «текст, кадр» — на узких экранах
     поднимаем кадр наверх, чтобы обе секции складывались одинаково */
  .feature--mirror .feature__stage { order: -1; }
}

@media (max-width: 560px) {
  .feature__panel { padding: var(--s-5) var(--s-4); }
  .feature__caption-text { margin-inline-start: 0; width: 100%; }

  /* у кнопок по умолчанию запрещён перенос строки, а подпись длинная —
     на узких экранах разрешаем перенос, иначе вылезает за экран */
  .feature__cta {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* ============ Блок «О компании» ============ */

.about {
  padding-block: clamp(56px, 7vw, 104px);
  background: var(--c-paper);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8);
  align-items: center;
}

.about__title {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  line-height: 1.12;
  text-wrap: balance;
}

.about__text {
  max-width: 52ch;
  margin-top: var(--s-4);
  color: var(--c-text-muted);
  line-height: 1.62;
}

.about__link { align-self: start; margin-top: var(--s-6); }

/* решётка из четырёх плиток: линии рисуются зазором, сквозь который
   виден фон секции — так не приходится городить лишние границы */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--c-rule);
  border-radius: var(--r-m);
  background: var(--c-rule);
}

.stats__cell {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 168px;
  padding: var(--s-5);
  background: var(--c-paper);
}

.stats__value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  line-height: 1;
}

.stats__value--text {
  font-size: 1.375rem;
  line-height: 1.2;
}

.stats__label {
  margin-top: auto;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* ============ Блок «Сервис и комплектующие» ============ */

.service {
  padding-block: clamp(56px, 7vw, 104px);
  background: var(--c-arctic);
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5) var(--s-6);
  margin-bottom: var(--s-7);
  padding-block: var(--s-5);
  border-block: 1px solid var(--c-rule);
}

.trust__cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--s-3);
  row-gap: var(--s-1);
  align-items: center;
}

/* тот же фирменный шестигранник, что в преимуществах первого экрана
   и в списках блоков направлений */
.trust__mark {
  grid-row: 1;
  flex: none;
  color: var(--c-emerald);
}

.trust__value {
  grid-row: 1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
}

.trust__label {
  grid-column: 2;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* две карточки — та же двухколоночная сетка, что и у соседних секций */
.service__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-m);
  background: var(--c-paper);
}

.service-card__top {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  margin-bottom: var(--s-5);
}

.service-card__index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.service-card__tag {
  color: var(--c-ink);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: 1.2;
}

.service-card__text {
  margin-top: var(--s-3);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.service-card__points {
  flex-grow: 1;
  margin-top: var(--s-5);
  border-top: 1px solid var(--c-rule);
}

.service-card__points li {
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--c-rule);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  margin-top: var(--s-5);
}

/* ============ Блок «Пневмокамерные насосы» ============ */

.pkn {
  padding-block: clamp(56px, 7vw, 104px);
  background: var(--c-arctic);
}

/* серая секция вплотную к серой — без линии стык не читается */
.service + .pkn { border-top: 1px solid var(--c-rule); }

.pkn__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8);
  align-items: center;
}

.pkn__panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--s-5);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-m);
  background: var(--c-paper);
}

.pkn__shot {
  width: 100%;
  max-width: 460px;
  height: auto;
}

/* подпись в левом верхнем углу кадра — как в прототипе, но без плашки:
   фон закрывал часть насоса */
.pkn__caption {
  position: absolute;
  top: var(--s-5);
  left: var(--s-5);
  color: var(--c-text);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pkn__title {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  line-height: 1.12;
}

.pkn__lead {
  max-width: 48ch;
  margin-top: var(--s-4);
  color: var(--c-text-muted);
  line-height: 1.62;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin-block: var(--s-6);
  padding-block: var(--s-5);
  border-block: 1px solid var(--c-rule);
}

.specs__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  line-height: 1;
}

.specs__label {
  display: block;
  margin-top: var(--s-2);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.4;
}

.pkn__note {
  max-width: 48ch;
  margin-bottom: var(--s-6);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .about__grid,
  .pkn__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-7);
  }

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

  .pkn__stage { order: -1; }
}

@media (max-width: 760px) {
  .trust { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .specs { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
}

/* при переходе по якорю липкая шапка не должна накрывать заголовок блока */
section[id] { scroll-margin-top: calc(var(--masthead-h) + var(--s-4)); }

/* прокрутка к якорю плавная средствами браузера, без участия скрипта */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ============ Блок «Проекты» ============ */

.projects {
  padding-block: clamp(56px, 7vw, 104px);
  background: linear-gradient(160deg, var(--c-ink) 0%, var(--c-ink-deep) 100%);
}

.projects__link { margin-top: var(--s-6); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  column-gap: var(--s-5);
  row-gap: var(--s-4);
}

/* Выравнивать по общей сетке нужно только нижнюю полосу: разделитель и цифры
   обязаны стоять на одной линии во всех карточках. Всё, что выше, живёт в одной
   строке обычным потоком — тогда отступы внутри карточки одинаковые, даже если
   заголовки разной длины. Отсюда всего две строки: содержимое и цифры. */
.project {
  display: grid;
  grid-row: span 2;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: subgrid;
  align-content: start;
  padding: var(--s-6);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.project:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

/* Без subgrid карточка не может встать в строки блока, и высоту ей никто
   не задаёт — содержимое тогда вылезает за отведённое место. Там собираем
   её колонкой и прижимаем цифры к низу: разделители не встанут на одну
   линию, зато карточка остаётся целой. */
@supports not (grid-template-rows: subgrid) {
  .project {
    display: flex;
    flex-direction: column;
  }

  .project__body { flex-grow: 1; }
}

.project__meta {
  color: var(--c-emerald-lift);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project__title {
  margin-top: var(--s-5);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: 1.2;
}

.project__text {
  margin-top: var(--s-3);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* Снимок объекта идёт от края до края карточки — те же отрицательные поля,
   что у рендера в карточке модели, чтобы полоса читалась одинаково везде. */
.project__photo {
  aspect-ratio: 16 / 9;
  margin: calc(var(--s-6) * -1) calc(var(--s-6) * -1) var(--s-6);
  border-bottom: 1px solid var(--c-rule);
  border-radius: var(--r-m) var(--r-m) 0 0;
  background-color: var(--c-ink-deep);
  background-position: center;
  background-size: cover;
}

.project__photo[data-photo="kulsary"] {
  background-image: image-set(url("../img/project-kulsary.webp") type("image/webp"),
                              url("../img/project-kulsary.jpg") type("image/jpeg"));
}

.project__photo[data-photo="astana"] {
  background-image: image-set(url("../img/project-astana.webp") type("image/webp"),
                              url("../img/project-astana.jpg") type("image/jpeg"));
}

.project__photo[data-photo="aktobe"] {
  background-image: image-set(url("../img/project-aktobe.webp") type("image/webp"),
                              url("../img/project-aktobe.jpg") type("image/jpeg"));
}



.project__term {
  margin-top: calc(var(--s-6) + var(--s-2));
  color: var(--c-text-faint);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project__brief .project__text { margin-top: var(--s-4); }

/* Цифры прижаты к низу карточки: у кейсов разной длины описания, а нижняя
   полоса должна вставать на одну линию во всех трёх. */
.project__figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  align-content: start;
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-rule);
}

.project__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
}

.project__label {
  display: block;
  margin-top: var(--s-2);
  color: var(--c-text-faint);
  font-size: var(--fs-micro);
  line-height: 1.4;
}

/* ============ Блок «Частые вопросы» ============ */

.faq {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px);
  overflow: hidden;
  background: var(--c-paper);
}

/* знак из логотипа заполняет пустое поле слева — на грани видимости,
   как водяной знак в первом экране */
.faq__watermark {
  position: absolute;
  left: -7%;
  top: var(--s-7);
  height: clamp(320px, 40vw, 620px);
  aspect-ratio: 1744 / 2004;
  opacity: 0.06;
  background: var(--c-ink);
  -webkit-mask: url("../img/tts-mark-light.png") center / contain no-repeat;
  mask: url("../img/tts-mark-light.png") center / contain no-repeat;
  pointer-events: none;
}

.faq__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8);
  align-items: start;
}

.faq__title {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  line-height: 1.12;
  text-wrap: balance;
}

.faq__list { border-top: 1px solid var(--c-rule); }

.faq__item { border-bottom: 1px solid var(--c-rule); }

.faq__question {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-5);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker { display: none; }

/* знак «плюс»: одна палочка гаснет при раскрытии */
.faq__question::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background:
    linear-gradient(var(--c-emerald), var(--c-emerald)) center / 100% 2px no-repeat,
    linear-gradient(var(--c-emerald), var(--c-emerald)) center / 2px 100% no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq__item[open] .faq__question::after {
  background: linear-gradient(var(--c-emerald), var(--c-emerald)) center / 100% 2px no-repeat;
  transform: rotate(180deg);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease), padding-bottom 0.32s var(--ease);
}

.faq__item[open] .faq__panel {
  grid-template-rows: 1fr;
  padding-bottom: var(--s-5);
}

/* закрытие придерживает скрипт: без этого браузер прячет ответ мгновенно */
.faq__item.is-closing .faq__panel {
  grid-template-rows: 0fr;
  padding-bottom: 0;
}

.faq__answer {
  max-width: 62ch;
  min-height: 0;
  overflow: hidden;
  color: var(--c-text-muted);
  line-height: 1.62;
}

@media (prefers-reduced-motion: reduce) {
  .faq__panel { transition: none; }
}

/* перенос строки, заданный макетом: на узких экранах текст ломается сам */
.br-wide { display: none; }

@media (min-width: 761px) {
  .br-wide { display: inline; }
}

/* ============ Блок «Форма заявки» ============ */

/* ============ Фотоподложка секции ============ */

/* Снимок под фирменным градиентом. Градиент держит цвет блока и контраст
   текста, снимок читается сквозь него. Сам снимок задаёт секция — так приём
   переиспользуется, а замена фотографии остаётся правкой в одну строку. */
.photo-bed {
  position: relative;
  isolation: isolate;
  background: var(--c-ink-deep);
}

.photo-bed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
}

.photo-bed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(150deg, var(--c-ink) 0%, var(--c-steel) 100%);
  opacity: 0.9;
}

.contact {
  padding-block: clamp(56px, 7vw, 104px);
}

.contact::before {
  background-image: image-set(url("../img/hero-bg-dusk.webp") type("image/webp"),
                              url("../img/hero-bg-dusk.jpg") type("image/jpeg"));
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-8);
  align-items: start;
}

.contact__title {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: var(--fw-display);
  letter-spacing: var(--track-tight);
  line-height: 1.12;
}

.contact__lead {
  max-width: 48ch;
  margin-top: var(--s-4);
  color: var(--c-text-muted);
  line-height: 1.62;
}

.contact__details {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-rule);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}

.contact__office { color: var(--c-text); font-weight: 600; }

.form-card {
  display: grid;
  padding: var(--s-7);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

/* зазор рассчитан так, чтобы сообщение об ошибке помещалось в него целиком.
   minmax(0, 1fr): без него колонка растягивается под самую длинную строку
   и заголовок формы вылезает за край карточки на узком экране. */
.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
}

.form__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
}

.form__note {
  margin-top: calc(var(--s-2) * -1);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}

.field__input {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-s);
  background: var(--c-field);
  color: var(--c-text);
  font: inherit;
  transition: border-color 0.18s var(--ease);
}

.field__input::placeholder { color: var(--c-text-faint); }
.field__input:hover { border-color: var(--c-rule-strong); }

.field__textarea { resize: vertical; min-height: 88px; }

/* Сообщение об ошибке лежит в зазоре между полями: оно ничего не двигает,
   поэтому расстояния между полями одинаковые, а высота секции не меняется
   ни при вводе, ни при проверке. Тексты ошибок держим в одну строку. */
.field__error {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  color: var(--c-danger);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.field.is-invalid .field__input,
.consent.is-invalid .consent__box { border-color: var(--c-danger); }

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-2) var(--s-3);
  align-items: start;
  cursor: pointer;
}

.consent__box {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--c-emerald);
}

.consent__text {
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.consent { position: relative; }

.consent .field__error { left: calc(18px + var(--s-3)); }

.form__submit { margin-top: var(--s-2); justify-content: center; }

/* селект унаследован из блока квиза, где секция светлая: на тёмной карточке
   его белый фон давал белый текст на белом — задаём тёмный вариант */
.form-card .field__select {
  background-color: rgba(8, 24, 39, 0.42);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='square'/%3E%3C/svg%3E");
  color: var(--c-text);
}

.form-card .field__select:hover { border-color: rgba(255, 255, 255, 0.32); }

.form-done { display: grid; gap: var(--s-3); justify-items: start; align-content: start; }

/* скрытая половина остаётся в потоке, но не видна и не читается озвучкой:
   иначе карточка меняет высоту, и фон секции пересчитывается */
.form-card { grid-template-columns: minmax(0, 1fr); }

.form-card > .form,
.form-card > .form-done { grid-area: 1 / 1; }

.form-card > [hidden] {
  visibility: hidden;
  pointer-events: none;
}

.form-card > .form[hidden] { display: grid; }
.form-card > .form-done[hidden] { display: grid; }

.form-done__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--c-emerald-deep);
  color: var(--c-paper);
}

.form-done__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
}

.form-done__text {
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* ============ Подвал ============ */

.footer {
  /* колонки подвала: полоса каталога обязана совпадать с верхней частью */
  --footer-cols: 1.4fr repeat(3, minmax(0, 1fr));

  padding-block: var(--s-8) var(--s-6);
  background: var(--c-ink-deep);
  border-top: 1px solid var(--c-rule);
}

.footer__grid {
  display: grid;
  grid-template-columns: var(--footer-cols);
  gap: var(--s-7) var(--s-6);
}

.footer__logo { width: auto; height: 30px; }

.footer__about {
  max-width: 34ch;
  margin-top: var(--s-4);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* контакты под описанием — появляются, когда заполнены в настройках сайта */
.footer__contacts {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  font-style: normal;
  line-height: 1.5;
}

.footer__contacts a { color: var(--c-text); transition: color 0.18s var(--ease); }

.footer__contacts a:hover { color: var(--c-text-muted); }

.footer__socials { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }

.footer__col { display: grid; gap: var(--s-3); align-content: start; }

.footer__heading {
  margin-bottom: var(--s-1);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--c-text-faint);
}

.footer__col a {
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  transition: color 0.18s var(--ease);
}

.footer__col a:hover { color: var(--c-text); }

.footer__legal { color: var(--c-text-faint); font-size: var(--fs-small); }

.footer__catalog {
  display: grid;
  grid-template-columns: var(--footer-cols);
  gap: var(--s-5) var(--s-6);
  align-items: center;
  margin-top: var(--s-8);
  padding-block: var(--s-5);
  border-block: 1px solid var(--c-rule);
}

/* заголовок — по линии логотипа, кнопка — по линии колонки «Документы» */
.footer__catalog-copy { grid-column: 1 / 4; }

.footer__catalog-link { grid-column: 4 / 5; justify-self: start; }

.footer__catalog-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: var(--track-tight);
}

.footer__catalog-note {
  display: block;
  margin-top: var(--s-1);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  margin-top: var(--s-5);
  color: var(--c-text-faint);
  font-size: var(--fs-small);
}

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

  .project:not(:last-child) { margin-bottom: var(--s-2); }

  /* третья карточка занимает всю строку — снимок в ней приплюснут,
     иначе он перевешивает две карточки над собой */
  .project:last-child { grid-column: 1 / -1; }
  .project:last-child .project__photo { aspect-ratio: 3 / 1; }

  .faq__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }

  .footer { --footer-cols: repeat(2, minmax(0, 1fr)); }

  .footer__catalog-copy { grid-column: 1 / 2; }
  .footer__catalog-link { grid-column: 2 / 3; }

  .faq__watermark { display: none; }
}

@media (max-width: 760px) {
  .projects__grid { grid-template-columns: minmax(0, 1fr); }
  .project:last-child { grid-column: auto; }
  .project:last-child .project__photo { aspect-ratio: 16 / 9; }

  .footer { --footer-cols: minmax(0, 1fr); }

  .footer__catalog-copy,
  .footer__catalog-link { grid-column: 1 / -1; }
  .form-card { padding: var(--s-5); }
}

@media (max-width: 1100px) {
  .quiz__grid { grid-template-columns: minmax(0, 1fr); }

  .recommendation {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .recommendation__meta {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .quiz__fields { grid-template-columns: minmax(0, 1fr); }
  .model__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 1100px) {
  .hero__grid {
    gap: var(--s-7);
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__copy { max-width: none; }

  .hero__watermark { display: none; }

  /* Отрицательный отступ нужен только в две колонки — там изображение
     сознательно наплывает за край сетки. В одну колонку роли «второй
     колонки» уже нет, а отступ остаётся и подтягивает картинку ближе
     к правому краю экрана, чем весь остальной контент. */
  .hero__stage { margin-right: 0; }
}

@media (max-width: 900px) {
  .topline__item--muted { display: none; }

  [data-hero="video"] .proofs { grid-template-columns: minmax(0, 1fr); }

  .hero { padding-bottom: 84px; }

  /* плавающая кнопка прибита в правый нижний угол — даём контенту место,
     чтобы она не садилась на действия секции */
  .quiz { padding-bottom: 96px; }

  .burger { display: flex; }

  .masthead__inner { gap: var(--s-4); }

  .brand { margin-right: 0; }

  .masthead__cta { display: none; }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: var(--s-3) var(--gutter) var(--s-6);
    border-bottom: 1px solid var(--c-rule-soft);
    background: var(--c-ink-deep);
    display: none;
  }

  .nav--open { display: flex; }

  [data-theme="light"] .nav { background: var(--c-paper); }

  .nav__link {
    padding-block: var(--s-4);
    border-bottom: 1px solid var(--c-rule-soft);
    font-size: var(--fs-body);
  }

  .nav__link::after { display: none; }

  .nav__group { border-bottom: 1px solid var(--c-rule-soft); }

  .nav__group .nav__link { border-bottom: 0; }

  .nav__toggle { width: 100%; justify-content: space-between; }

  .dropdown {
    position: static;
    width: auto;
    padding: 0 0 var(--s-3);
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .dropdown--narrow { width: auto; }

  .dropdown__link { padding-inline: var(--s-4); }

  .proofs {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .proofs__item {
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--c-rule-soft);
  }

  .proofs__item + .proofs__item {
    padding-left: 0;
    border-left: 0;
  }

  .quiz-cta {
    right: var(--s-4);
    bottom: var(--s-4);
  }

  .quiz-cta:hover { transform: none; }

  .notice { bottom: 84px; }
}

@media (max-width: 560px) {


  .hero { padding-block: var(--s-6) var(--s-7); }
  .hero__actions { gap: var(--s-3); }
  .hero__actions .btn { flex: 1 1 100%; }
  .brand__text { display: none; }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.js .reveal {
  animation: reveal 0.7s var(--ease) both;
  animation-delay: var(--reveal-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { animation: none; }

  .tag__mark { animation: none; }

  .btn,
  .btn__arrow,
  .nav__link,
  .nav__link::after,
  .nav__chevron,
  .dropdown__link,
  .theme-toggle,
  .quiz-cta,
  .quiz-cta__label,
  .notice,
  .skip-link,
  .burger__bar {
    transition: none;
  }

  .btn:hover .btn__arrow,
  .theme-toggle:hover,
  .quiz-cta:hover {
    transform: none;
  }
}

/* ссылка на документ внутри согласия: подчёркиванием показываем, что это переход */
.consent__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s var(--ease);
}

.consent__link:hover { color: var(--c-text); }

/* ============ Баннер согласия на cookie ============ */

/* Показывается до загрузки необязательной аналитики (п. 17 ТЗ).
   Не перекрывает контент: прижат к низу и уступает место кнопкам. */
.consent-bar {
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 70;
  display: flex;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 62rem;
  margin-inline: auto;
  padding: var(--s-5) var(--s-6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-m);
  /* Фон — тёмный цвет сайта, текст берётся светлый из общих переменных.
     Был var(--c-paper), то есть белый: на тёмной теме плашка выходила
     белой с белым текстом. */
  background: var(--c-ink);
  color: var(--c-text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.consent-bar__text {
  flex: 1 1 22rem;
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.consent-bar__link { color: inherit; text-decoration: underline; }

.consent-bar__actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .consent-bar { padding: var(--s-4); }
  .consent-bar__actions { width: 100%; }
  .consent-bar__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Форма получает фокус программно, когда к ней переходят с карточки модели:
   это служебный фокус, рамка вокруг всей формы здесь не нужна. */
.form[tabindex="-1"]:focus { outline: none; }
