/*
  Tumanco — прототип сайта в системе «Стратега»:
  Geologica, бенто на 12 колонках, светлая или тёмная тема по настройке системы,
  перелив градиента в логотипе и кнопках (7 с), подпись «Стратега» (5 с).

  Цвета бренда сняты с логотипа: сталь #325685 («TUMAN») и графит #56534F («CO»).
  Радиусы: карточки 18px, плитки внутри карточек 14px, кнопки 12px, чипы и поля 10px.
*/

@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-cyrillic-ext.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 600;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

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

@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 300 600;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --font-sans: "Geologica", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page: #eef2f6;
  --surface: #fbfcfd;
  --surface-2: #e2e8ef;
  --ink: #101722;
  --muted: #526074;
  --line: #cdd5df;

  --accent: #2c5a96;
  --accent-fill: #2c5a96;
  --accent-deep: #1d416f;
  --accent-soft: #dce6f2;
  --mist: #9dbfe8;
  --dark: #111924;
  --on-dark: #f3f6f9;
  --on-dark-muted: rgba(243, 246, 249, 0.7);
  --on-fill: #f5f8fb;

  --brand-gradient: linear-gradient(105deg, #1d416f 0%, #2c5a96 48%, #4b80c2 100%);
  --logo-gradient: linear-gradient(105deg, #325685 0%, #6e98cf 25%, #56534f 50%, #6e98cf 75%, #325685 100%);
  --flow: 7s;

  --radius: 18px;
  --radius-tile: 14px;
  --radius-button: 12px;
  --radius-chip: 10px;
  --shadow: 0 24px 70px rgba(22, 42, 72, 0.09);
  --container: 1400px;
  --gutter: 48px;
  --header: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b1017;
    --surface: #131a24;
    --surface-2: #1b2430;
    --ink: #edf1f6;
    --muted: #a4afbe;
    --line: #28313e;

    --accent: #8db4e6;
    --accent-fill: #24508a;
    --accent-deep: #183a66;
    --accent-soft: #16263a;
    --dark: #060a0f;

    --brand-gradient: linear-gradient(105deg, #1d416f 0%, #2c5a96 48%, #3e74b8 100%);
    --logo-gradient: linear-gradient(105deg, #8fb3e3 0%, #d3e2f4 25%, #aaa6a0 50%, #d3e2f4 75%, #8fb3e3 100%);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  }
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

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

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-chip);
  background: var(--ink);
  color: var(--page);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(calc(100% - var(--gutter)), var(--container));
  margin-inline: auto;
}

/* ---------- Логотип ---------- */

.brand {
  display: inline-grid;
  gap: 4px;
  flex: none;
  width: fit-content;
  border-radius: 6px;
}

.brand-tagline {
  color: var(--muted);
  font-size: 12.2px;
  font-weight: 420;
  letter-spacing: 0.035em;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 172px;
  aspect-ratio: 467 / 58.3;
  background: var(--logo-gradient);
  background-size: 220% 100%;
  animation: brand-flow var(--flow) ease-in-out infinite;
  -webkit-mask: url("assets/tumanco-word.svg") center / contain no-repeat;
  mask: url("assets/tumanco-word.svg") center / contain no-repeat;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 35%);
  background: color-mix(in srgb, var(--page), transparent 12%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14.5px;
  white-space: nowrap;
}

.nav-directions { position: relative; }
.nav-directions summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.nav-directions summary::-webkit-details-marker { display: none; }
.nav-directions summary > span { transition: transform 180ms ease; }
.nav-directions[open] summary > span { transform: rotate(180deg); }
.nav-directions summary:hover, .nav-directions[open] summary { color: var(--accent); }
.nav-directions-list { position: absolute; top: calc(100% + 20px); left: -20px; width: 520px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 14px; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.nav-directions-list a { display: block; padding: 12px; border-radius: var(--radius-chip); }
.nav-directions-list a:hover { background: var(--accent-soft); }
.nav-directions-list .nav-directions-all { grid-column: 1 / -1; color: var(--accent); border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 6px; }
.solution h3 a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .16em; transition: text-decoration-color 180ms ease; }
.solution h3 a:hover { text-decoration-color: currentColor; }
.mobile-nav .nav-directions summary { justify-content: space-between; padding-block: 12px; }
.mobile-nav .nav-directions-list { position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; margin: 0 0 12px; }
.mobile-nav { max-height: calc(100dvh - var(--header)); overflow-y: auto; }

.desktop-nav a,
.footer-nav a,
.header-phone {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.footer-nav a:hover,
.header-phone:hover {
  color: var(--accent);
}

.header-phone {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.menu-button,
.mobile-nav {
  display: none;
}

/* ---------- Кнопки и ссылки ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-button);
  background-color: var(--accent-fill);
  background-image: var(--brand-gradient);
  background-size: 220% 100%;
  color: var(--on-fill);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: brand-flow var(--flow) ease-in-out infinite;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), filter 180ms ease;
}

.button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.button:active {
  filter: brightness(0.94);
  transform: translateY(1px) scale(0.985);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 14px;
}

.button-light {
  background: var(--on-fill);
  color: #1d416f;
  animation: none;
  box-shadow: none;
}

.button-light:hover {
  filter: none;
  background: #e3ecf7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  transition: color 180ms ease, gap 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.text-link:hover {
  gap: 12px;
  color: var(--accent);
}

.text-link-arrow {
  font-size: 18px;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Первый экран ---------- */

.hero {
  padding-top: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.8fr);
  gap: 12px;
  min-height: min(760px, calc(100dvh - var(--header) - 28px));
}

.hero-main {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 560px;
  padding: clamp(30px, 4.6vw, 68px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #0c1420;
  color: var(--on-dark);
  box-shadow: var(--shadow);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.12) brightness(0.95);
}

/* дуотон: серое фото под стальным синим — единый тон для разношёрстных снимков */
.hero-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: #2c5a96;
  mix-blend-mode: multiply;
}

.hero-main::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(0deg, rgba(8, 13, 21, 0.94) 0%, rgba(8, 13, 21, 0.62) 42%, rgba(8, 13, 21, 0.12) 78%),
    linear-gradient(90deg, rgba(8, 13, 21, 0.7) 0%, rgba(8, 13, 21, 0) 70%);
}

.fog-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
}

.nw {
  white-space: nowrap;
}

.hero-content .eyebrow {
  color: var(--mist);
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 3.95vw, 62px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.02;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 32px;
  color: rgba(243, 246, 249, 0.8);
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 300;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.hero-actions .text-link {
  color: var(--on-dark);
}

.hero-actions .text-link:hover {
  color: var(--mist);
}

/* ---------- Подбор системы ---------- */

.selector {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(26px, 2.8vw, 40px);
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.16), transparent 40%),
    var(--accent-fill);
  color: var(--on-fill);
  box-shadow: var(--shadow);
}

.selector::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 62%;
  content: "";
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.13) 0 1.4px, transparent 1.9px);
  background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}

.selector h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 2.2vw, 34px);
  letter-spacing: -0.015em;
}

.selector-head p {
  margin: 0;
  color: rgba(245, 248, 251, 0.74);
  font-size: 15px;
}

.task-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-button {
  min-height: 40px;
  padding: 0 12px;   /* 12, а не 14: девять направлений встают в три ряда (на 1440 ряд «Цеха — Дезинфекция — Пылеподавление» не влезал на 4 px) */
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-chip);
  background: transparent;
  color: var(--on-fill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.task-button:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.task-button[aria-checked="true"] {
  border-color: var(--on-fill);
  background: var(--on-fill);
  color: #1d416f;
}

.task-button:focus-visible {
  outline-color: var(--on-fill);
}

/* flex, а не сетка minmax(128px, 1fr): метрика не сжимается уже своего числа (оно в одну строку)
   и при нехватке места переносится целиком, а не наезжает на соседнюю */
.task-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 18px;
  margin-top: auto;
}

.metric {
  flex: 1 1 128px;
  animation: content-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.metric-figure {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: clamp(40px, 3.3vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* длинные диапазоны вроде «0,1–1000» набираем мельче, чтобы не вылезали из колонки */
.metric-figure.is-long {
  font-size: clamp(30px, 2.35vw, 40px);
}

.metric-prefix,
.metric-unit {
  font-size: 0.4em;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.82;
}

.metric-label {
  display: block;
  margin-top: 9px;
  color: rgba(245, 248, 251, 0.76);
  font-size: 13.5px;
  line-height: 1.35;
}

.task-where {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(245, 248, 251, 0.84);
  font-size: 14.5px;
  animation: content-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.selector .button {
  align-self: flex-start;
}

/* «Получить смету» и «Подробнее» — ссылка на страницу выбранного направления */
.selector-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.selector-actions .text-link {
  color: var(--on-dark);
}

.selector-actions .text-link:hover {
  color: var(--mist);
}

/* ---------- Цифры под первым экраном ---------- */

.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
}

.proof-item {
  padding: 24px 26px;
  border-radius: var(--radius-tile);
  background: var(--surface);
}

.proof-item strong {
  display: block;
  font-size: clamp(32px, 2.8vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.proof-item > span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.35;
}

/* ---------- Общие для секций ---------- */

.section {
  padding-top: clamp(88px, 10vw, 150px);
}

.section-head {
  max-width: 780px;
  margin-bottom: 40px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.3vw, 60px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

h3 {
  font-weight: 500;
}

.section-head p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- Решения ---------- */

.solutions {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.solution {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.solution-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
}

.solution-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.solution:hover .solution-media img {
  transform: scale(1.035);
}

.solution-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 34px);
}

.solution h3 {
  margin: 0;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.solution p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

.solution .text-link {
  margin-top: auto;
  padding-top: 6px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 6px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 11px;
  border-radius: var(--radius-chip);
  background: var(--page);
  font-size: 13.5px;
}

/* большой слот слева сверху (сейчас — типографии) */
.solution-lead {
  grid-column: span 7;
  grid-row: span 2;
}

.solution-lead .solution-media {
  flex: 1 1 auto;
  min-height: 300px;
}

.solution-lead .solution-body {
  flex: none;
}

.solution-defrost {
  grid-column: span 5;
}

.solution-defrost .solution-media {
  height: 230px;
}

.solution-defrost .solution-media img {
  object-position: 62% 55%;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 4px 0 6px;
}

.facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  background: var(--page);
}

.facts dt {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.25;
}

.facts dd {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* карточки с фото на весь фон */
.solution-cover {
  justify-content: flex-end;
  min-height: 380px;
  background: #0c1420;
  color: var(--on-dark);
}

.solution-cover .solution-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.solution-cover::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgba(8, 13, 21, 0.92) 0%, rgba(8, 13, 21, 0.55) 48%, rgba(8, 13, 21, 0.05) 85%);
}

.solution-cover .solution-body {
  flex: none;
}

.solution-cover p {
  color: var(--on-dark-muted);
}

.solution-cover .text-link:hover {
  color: var(--mist);
}

.solution-greenhouse {
  grid-column: span 5;
}

/* третий ряд — четыре карточки по 3 колонки: витрины и охлаждение цехов (фото сверху) чередуются с охлаждением площадок и фермами
   (фото на весь фон); нижний — три по 4: дезинфекция (на весь фон), производственные цеха и пылеподавление (фото сверху) */
.solution-retail,
.solution-cooling,
.solution-workshop,
.solution-livestock {
  grid-column: span 3;
}

.solution-disinfect,
.solution-factory,
.solution-dust {
  grid-column: span 4;
}

.solution-retail .solution-media,
.solution-workshop .solution-media,
.solution-factory .solution-media,
.solution-dust .solution-media {
  height: 220px;
}

.solution-disinfect .solution-media img {
  object-position: 50% 30%;
}

/* ---------- Под ключ от производителя ---------- */

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

.why-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.maker {
  position: sticky;
  top: calc(var(--header) + 16px);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  gap: 22px;
  overflow: hidden;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--on-dark);
}

.maker::after {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 60%;
  content: "";
  background-image: radial-gradient(circle, rgba(157, 191, 232, 0.28) 0 1.5px, transparent 2px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 85% 0%, #000 0%, transparent 70%);
}

.maker-eyebrow {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maker-lead {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.16;
}

.maker-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.maker-facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  background: rgba(255, 255, 255, 0.06);
}

.maker-facts dt {
  color: var(--on-dark-muted);
  font-size: 12.5px;
  line-height: 1.25;
}

.maker-facts dd {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.maker .text-link:hover {
  color: var(--mist);
}

.compare {
  grid-column: span 8;
  margin: 0;
  padding: 4px clamp(22px, 2.6vw, 36px) 8px;
  border-radius: var(--radius);
  background: var(--surface);
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.62fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0 clamp(16px, 2vw, 28px);
}

.compare-head {
  padding: 18px 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.compare-head span:nth-child(2) {
  padding-left: 28px;
  color: var(--accent);
}

.compare-row {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare dt {
  font-size: 16px;
  font-weight: 550;
  line-height: 1.35;
}

.compare dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.compare-us {
  position: relative;
  padding-left: 28px;
}

.compare-us::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
  background: var(--accent-fill);
}

.compare-us::after {
  position: absolute;
  top: 5px;
  left: 6.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.compare-them {
  color: var(--muted);
}

.compare-label {
  display: none;
}

/* ---------- Как устроена система ---------- */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.tech-photo {
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  grid-row: span 2;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--on-dark);
}

/* высоту ряда задают шаги и карточки давления, а не портретное фото */
.tech-photo img {
  flex: 1 1 0;
  width: 100%;
  height: 0;
  min-height: 260px;
  padding: 12px;
  background: #efefef;
  object-fit: contain;
}

.tech-photo figcaption {
  padding: 22px 26px 26px;
}

.tech-photo strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 550;
}

.tech-photo span {
  color: var(--on-dark-muted);
  font-size: 14.5px;
}

.tech-steps {
  display: grid;
  grid-column: span 8;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
  margin: 0;
  padding: clamp(10px, 1.4vw, 18px) clamp(26px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--surface);
  list-style: none;
  counter-reset: step;
}

.tech-steps li {
  padding: 26px 0;
  counter-increment: step;
}

.tech-steps li:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.tech-steps li::before {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.tech-steps h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.tech-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.pressure {
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  gap: 18px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius);
  background: var(--surface);
}

.pressure-high {
  background: var(--accent-soft);
}

.pressure h3 {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.pressure-value {
  margin: 0;
  font-size: clamp(40px, 3.8vw, 58px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pressure-value span {
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
}

.pressure dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: auto 0 0;
}

.pressure dt {
  color: var(--muted);
  font-size: 13px;
}

.pressure dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 550;
}

/* оборудование под схемой: насос в разрезе и экран автоматики */
.equipment {
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.equipment img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.equipment figcaption {
  padding: 22px 26px 26px;
}

.equipment strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
  font-weight: 550;
}

.equipment span {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Схема системы ----------
   Разметку собирает tools/build_scheme.mjs, анимацию запуска и туман ведёт app.js.
   Без классов — итоговое состояние (так видят без JS и при «уменьшить движение»);
   .is-armed — пустая система до запуска, .is-run — раскадровка по --t0/--t1 и --t. */

.scheme {
  --sx-ink: #eef3f9;
  --sx-muted: rgba(226, 235, 246, 0.62);
  --sx-faint: rgba(196, 214, 236, 0.6);
  --sx-lp: #d3e5f8;
  --sx-hp: #5c9df2;
  --sx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sx-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  grid-column: 1 / -1;
  margin: 0;
  padding: 8px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #16212f 0%, #0d1520 100%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(157, 191, 232, 0.08);
  color: var(--sx-ink);
}

.scheme-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  background:
    radial-gradient(110% 85% at 70% 0%, rgba(44, 90, 150, 0.38) 0%, rgba(44, 90, 150, 0) 60%),
    radial-gradient(70% 60% at 6% 100%, rgba(44, 90, 150, 0.16) 0%, rgba(44, 90, 150, 0) 62%),
    #09111b;
  box-shadow:
    inset 0 0 0 1px rgba(157, 191, 232, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* сетка чертежа */
.scheme-stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(157, 191, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 191, 232, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 78% at 62% 38%, #000 0%, transparent 86%);
  mask-image: radial-gradient(ellipse 80% 78% at 62% 38%, #000 0%, transparent 86%);
}

.scheme-fog {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 450ms var(--sx-ease);
}

.scheme-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.scheme-svg-tall {
  display: none;
}

.scheme-intro {
  position: absolute;
  top: clamp(22px, 3.3vw, 46px);
  left: clamp(22px, 3vw, 44px);
  z-index: 2;
  width: min(30%, 390px);
}

.scheme-eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(157, 191, 232, 0.1);
  box-shadow: inset 0 0 0 1px rgba(157, 191, 232, 0.2);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.scheme h3 {
  margin: 0 0 22px;
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.06;
}

.scheme-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.scheme-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 0;
  padding: 0 15px 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  font-size: 13.5px;
  font-weight: 450;
  line-height: 1;
  white-space: nowrap;
}

.scheme-led {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fd39d;
  box-shadow: 0 0 0 3px rgba(95, 211, 157, 0.18), 0 0 12px rgba(95, 211, 157, 0.75);
  transition: background-color 300ms var(--sx-ease), box-shadow 300ms var(--sx-ease);
}

.scheme.is-armed .scheme-led {
  background: #6b7a8c;
  box-shadow: 0 0 0 3px rgba(107, 122, 140, 0.18);
}

.scheme.is-starting .scheme-led {
  background: #8db4e6;
  box-shadow: 0 0 0 3px rgba(141, 180, 230, 0.2), 0 0 12px rgba(141, 180, 230, 0.75);
}

.scheme.is-paused .scheme-led {
  background: #e3b45f;
  box-shadow: 0 0 0 3px rgba(227, 180, 95, 0.18);
}

.scheme-readout {
  color: var(--sx-muted);
  font-variant-numeric: tabular-nums;
}

.scheme-readout b {
  color: var(--sx-ink);
  font-weight: 600;
}

/* кнопки нужны только живой схеме */
.scheme-button {
  display: none;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--sx-ink);
  cursor: pointer;
  transition: background-color 300ms var(--sx-ease), transform 300ms var(--sx-ease);
}

.scheme.is-live .scheme-button {
  display: inline-grid;
}

.scheme-button:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.scheme-button:active {
  transform: scale(0.94);
}

.scheme-button:focus-visible {
  outline-color: var(--mist);
}

.scheme-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scheme-icon-play,
.scheme-button[aria-pressed="true"] .scheme-icon-pause {
  display: none;
}

.scheme-button[aria-pressed="true"] .scheme-icon-play {
  display: block;
}

.scheme-legend {
  display: none;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.scheme-legend li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-tile);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--sx-muted);
  font-size: 14px;
  line-height: 1.4;
  transition: background-color 400ms var(--sx-ease);
}

.scheme-legend b {
  display: block;
  margin-bottom: 3px;
  color: var(--sx-ink);
  font-size: 15px;
  font-weight: 550;
}

.scheme-legend-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1c2e46;
  box-shadow: inset 0 0 0 1px rgba(141, 180, 230, 0.65);
  color: #d4e5fa;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* детали схемы */

.sx-pipe {
  --pw-shell: 11;
  --pw-water: 4.8;
  --pw-glow: 18;
  --pw-flow: 2.6;
  --period: 13;
}

.sx-lp {
  --flow: 1.15s;
}

.sx-hp {
  --flow: 0.46s;
}

.sx-shell,
.sx-water,
.sx-glow,
.sx-flow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sx-shell {
  stroke: #1d2a3a;
  stroke-width: var(--pw-shell);
}

.sx-water,
.sx-glow {
  stroke-dasharray: var(--dash);
  stroke-dashoffset: 0;
}

.sx-water {
  stroke-width: var(--pw-water);
}

.sx-lp .sx-water {
  stroke: var(--sx-lp);
}

.sx-hp .sx-water {
  stroke: var(--sx-hp);
}

.sx-glow {
  stroke: #4f8fe8;
  stroke-opacity: 0.2;
  stroke-width: var(--pw-glow);
}

.sx-flow {
  stroke-width: var(--pw-flow);
  stroke-dasharray: 0.01 var(--period);
  animation: sx-flow var(--flow) linear infinite;
}

.sx-lp .sx-flow {
  stroke: #fff;
}

.sx-hp .sx-flow {
  stroke: #dcefff;
}

.sx-frame rect,
.sx-wall,
.sx-mast {
  fill: #283749;
}

.sx-plate {
  fill: #3a4c62;
}

.sx-dark {
  fill: #121921;
  stroke: rgba(196, 214, 236, 0.18);
  stroke-width: 1;
}

.sx-body,
.sx-housing,
.sx-head,
.sx-cab {
  stroke: rgba(196, 214, 236, 0.28);
  stroke-width: 1;
}

.sx-fins,
.sx-grille {
  fill: none;
  stroke: rgba(196, 214, 236, 0.13);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.sx-brass {
  stroke: rgba(255, 226, 160, 0.4);
  stroke-width: 1;
}

.sx-bolts circle {
  fill: #5d4520;
  stroke: rgba(255, 226, 160, 0.5);
  stroke-width: 0.8;
}

.sx-stripes {
  fill: none;
  stroke: rgba(196, 214, 236, 0.4);
  stroke-width: 2;
  animation: sx-spin 0.42s linear infinite;
}

.sx-window {
  fill: #0a1119;
  stroke: rgba(196, 214, 236, 0.14);
  stroke-width: 1;
}

.sx-level {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.sx-pleats {
  fill: none;
  stroke: rgba(226, 235, 246, 0.24);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.sx-shine {
  fill: rgba(255, 255, 255, 0.13);
}

.sx-valve-body {
  fill: #2b3a4c;
  stroke: rgba(196, 214, 236, 0.35);
  stroke-width: 1;
}

.sx-lever {
  fill: #8db4e6;
  transform-box: fill-box;
  transform-origin: 10% 50%;
}

.sx-fit {
  fill: #33465c;
  stroke: rgba(196, 214, 236, 0.3);
  stroke-width: 0.8;
}

.sx-fit-lg {
  fill: #2f4157;
  stroke: rgba(196, 214, 236, 0.42);
  stroke-width: 1;
}

.sx-clamp {
  fill: #6d8199;
}

.sx-plug {
  fill: #42566e;
  stroke: rgba(196, 214, 236, 0.45);
  stroke-width: 1;
}

.sx-nz-head {
  fill: #a3b8cf;
}

.sx-tip {
  fill: #e6f2ff;
  stroke: rgba(170, 210, 255, 0.32);
  stroke-width: 4;
}

.sx-gauge-ring {
  fill: #283749;
  stroke: rgba(196, 214, 236, 0.35);
  stroke-width: 1;
}

.sx-gauge-face {
  fill: #0b131d;
}

.sx-gauge-ticks {
  fill: none;
  stroke: rgba(226, 235, 246, 0.55);
  stroke-width: 1;
  stroke-linecap: round;
}

.sx-gauge-red {
  fill: none;
  stroke: #e0655a;
  stroke-opacity: 0.85;
  stroke-width: 2.2;
}

.sx-needle {
  stroke: #ffb35c;
  stroke-width: 1.6;
  stroke-linecap: round;
  transform: rotate(var(--deg));
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

/* поршневой насос: стрелка чуть дышит */
.sx-gauge-hp .sx-needle {
  animation: sx-jitter 0.5s ease-in-out infinite alternate;
}

.sx-gauge-hub {
  fill: #c9d6e6;
}

.sx-cab-seam {
  fill: none;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 1;
}

.sx-bezel {
  fill: #060c14;
  stroke: rgba(196, 214, 236, 0.2);
  stroke-width: 1;
}

.sx-scr-brand {
  fill: #9cc5f5;
  font: 600 6px var(--font-sans);
  letter-spacing: 0.14em;
}

.sx-scr-val {
  fill: #eaf4ff;
  font: 600 21px var(--font-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sx-scr-unit {
  fill: #9cc5f5;
  font: 500 8px var(--font-sans);
}

.sx-scr-bar {
  fill: #5c9df2;
}

.sx-scr-line {
  stroke: rgba(156, 197, 245, 0.35);
  stroke-width: 1;
}

.sx-led-off {
  fill: #1c2633;
  stroke: rgba(196, 214, 236, 0.25);
  stroke-width: 1;
}

.sx-led-ok {
  fill: #5fd39d;
  stroke: rgba(95, 211, 157, 0.35);
  stroke-width: 4;
}

.sx-knob {
  fill: #1a2330;
  stroke: rgba(196, 214, 236, 0.35);
  stroke-width: 1;
}

.sx-knob-bar {
  fill: #c9d6e6;
}

.sx-vent,
.sx-coil {
  fill: none;
  stroke: rgba(196, 214, 236, 0.24);
  stroke-width: 1.3;
  stroke-linecap: round;
}

.sx-ant-dot {
  fill: #8db4e6;
}

.sx-wave {
  fill: none;
  stroke: #8db4e6;
  stroke-width: 1.6;
  stroke-linecap: round;
  animation: sx-wave 2.4s var(--sx-ease) calc(var(--i) * 0.22s) infinite;
}

.sx-signal {
  fill: none;
  stroke: #8db4e6;
  stroke-width: 1.4;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
  animation: sx-signal 1.3s linear infinite;
}

.sx-sensor-body,
.sx-solenoid {
  fill: #1f2b3a;
  stroke: rgba(196, 214, 236, 0.4);
  stroke-width: 1;
}

.sx-drop {
  fill: rgba(141, 180, 230, 0.4);
}

.sx-label-title {
  fill: var(--sx-ink);
  font: 550 15px var(--font-sans);
  letter-spacing: -0.005em;
}

.sx-label-spec {
  fill: var(--sx-muted);
  font: 400 12.5px var(--font-sans);
}

.sx-badge {
  fill: #1c2e46;
  stroke: rgba(141, 180, 230, 0.7);
  stroke-width: 1;
}

.sx-badge-num {
  fill: #d4e5fa;
  font: 500 10.5px var(--font-mono);
}

.sx-badge-g {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.sx-tag {
  fill: var(--sx-faint);
  font: 500 9.5px var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sx-lower {
  text-transform: none;
}

.sx-leader {
  fill: none;
  stroke: rgba(196, 214, 236, 0.32);
  stroke-width: 1;
}

.sx-leader-dot {
  fill: rgba(196, 214, 236, 0.6);
}

.sx-rating {
  fill: #a9c6ea;
  font: 500 11px var(--font-mono);
}

.scheme.has-fog .sx-static-mist {
  display: none;
}

/* подсветка узла: наведение на схему, легенду или шаг ниже */
.sx-zone {
  transition: opacity 450ms var(--sx-ease);
}

.scheme[data-focus] .sx-zone {
  opacity: 0.2;
}

.scheme[data-focus="water"] .sx-zone[data-zone="water"],
.scheme[data-focus="pump"] .sx-zone[data-zone="pump"],
.scheme[data-focus="line"] .sx-zone[data-zone="line"],
.scheme[data-focus="auto"] .sx-zone[data-zone="auto"] {
  opacity: 1;
}

.scheme[data-focus]:not([data-focus="line"]) .scheme-fog {
  opacity: 0.25;
}

.scheme[data-focus="water"] .scheme-legend [data-zone="water"],
.scheme[data-focus="pump"] .scheme-legend [data-zone="pump"],
.scheme[data-focus="line"] .scheme-legend [data-zone="line"],
.scheme[data-focus="auto"] .scheme-legend [data-zone="auto"] {
  background: rgba(141, 180, 230, 0.13);
}

/* до запуска: система пустая */
.scheme.is-armed .sx-water,
.scheme.is-armed .sx-glow {
  stroke-dashoffset: var(--len);
}

.scheme.is-armed .sx-flow,
.scheme.is-armed .sx-tip,
.scheme.is-armed .sx-on {
  opacity: 0;
}

.scheme.is-armed .sx-level {
  transform: scaleY(0);
}

.scheme.is-armed .sx-needle {
  transform: rotate(-135deg);
  animation: none;
}

.scheme.is-armed .sx-lever {
  transform: rotate(-90deg);
}

.scheme.is-armed .sx-stripes,
.scheme.is-armed .sx-wave,
.scheme.is-armed .sx-signal {
  animation-play-state: paused;
}

/* запуск: вода идёт по раскадровке */
.scheme.is-run .sx-water,
.scheme.is-run .sx-glow {
  animation: sx-fill calc(var(--t1) - var(--t0)) linear var(--t0) both;
}

.scheme.is-run .sx-flow {
  animation:
    sx-appear 600ms ease-out var(--t1) both,
    sx-flow var(--flow) linear var(--t1) infinite;
}

.scheme.is-run .sx-level {
  animation: sx-level calc(var(--t1) - var(--t0)) cubic-bezier(0.3, 0.6, 0.35, 1) var(--t0) both;
}

.scheme.is-run .sx-needle {
  animation: sx-needle calc(var(--t1) - var(--t0)) var(--sx-spring) var(--t0) both;
}

.scheme.is-run .sx-gauge-hp .sx-needle {
  animation:
    sx-needle calc(var(--t1) - var(--t0)) var(--sx-spring) var(--t0) both,
    sx-jitter 0.5s ease-in-out var(--t1) infinite alternate;
}

.scheme.is-run .sx-lever {
  animation: sx-lever calc(var(--t1) - var(--t0)) var(--sx-spring) var(--t0) both;
}

.scheme.is-run .sx-tip {
  animation: sx-appear 400ms ease-out var(--t) both;
}

.scheme.is-run .sx-on {
  animation: sx-appear 500ms ease-out var(--t) both;
}

.scheme.is-run .sx-signal.sx-on {
  animation:
    sx-appear 500ms ease-out var(--t) both,
    sx-signal 1.3s linear var(--t) infinite;
}

.scheme.is-run .sx-stripes {
  animation: sx-spin 0.42s linear var(--t) infinite;
}

.scheme.is-paused .scheme-svg *,
.scheme.is-offscreen .scheme-svg * {
  animation-play-state: paused !important;
}

@keyframes sx-fill {
  from {
    stroke-dashoffset: var(--len);
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sx-flow {
  to {
    stroke-dashoffset: calc(var(--period) * -1 - 0.01);
  }
}

@keyframes sx-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes sx-level {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

@keyframes sx-needle {
  from {
    transform: rotate(-135deg);
  }

  to {
    transform: rotate(var(--deg));
  }
}

@keyframes sx-jitter {
  from {
    transform: rotate(calc(var(--deg) - 0.9deg));
  }

  to {
    transform: rotate(calc(var(--deg) + 0.9deg));
  }
}

@keyframes sx-lever {
  from {
    transform: rotate(-90deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes sx-spin {
  to {
    transform: translateY(8px);
  }
}

@keyframes sx-wave {
  0%,
  100% {
    opacity: 0.16;
  }

  40% {
    opacity: 1;
  }
}

@keyframes sx-signal {
  to {
    stroke-dashoffset: -8;
  }
}

/* планшеты: подписи деталей прячем, номера узлов крупнее, расшифровка — легендой под схемой */
@media (max-width: 1100px) {
  .scheme-svg-wide .sx-label-text,
  .scheme-svg-wide .sx-tag-g {
    display: none;
  }

  .scheme-svg-wide .sx-badge-g {
    transform: scale(1.5);
  }

  /* «25/10/5 мкм» под колбами: широкая схема на 768 px ужата до ~0,6 — 11 px давали 6–7 px на экране */
  .scheme-svg-wide .sx-rating {
    font-size: 17px;
  }

  /* «01» уходит левее, под заголовок с кнопками ему места нет */
  .scheme-svg-wide [data-zone="water"] .sx-badge-g {
    transform: translate(-58px, 40px) scale(1.5);
  }

  .scheme-intro {
    width: 33%;
  }

  .scheme h3 {
    margin-bottom: 18px;
    font-size: clamp(22px, 2.6vw, 30px);
  }

  .scheme-eyebrow {
    margin-bottom: 12px;
  }

  .scheme-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scheme [data-scheme-state] {
    display: none;
  }
}

/* телефоны: своя вертикальная компоновка, заголовок над схемой */
@media (max-width: 760px) {
  .scheme {
    padding: 6px;
  }

  .scheme-svg-wide {
    display: none;
  }

  .scheme-svg-tall {
    display: block;
  }

  .scheme-intro {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 26px 20px 6px;
  }

  .scheme [data-scheme-state] {
    display: inline;
  }

  .scheme h3 {
    font-size: clamp(25px, 7.4vw, 32px);
  }

  .scheme-legend {
    grid-template-columns: 1fr;
  }

  .scheme-svg-tall .sx-zone > .sx-pipe {
    --pw-shell: 8.4;
    --pw-water: 3.7;
    --pw-glow: 14;
    --pw-flow: 2.1;
    --period: 10.4;
  }

  /* подписи внутри схемы: на 320–390 px SVG ужат до 0,72–0,9 — без этого номера и «25 мкм» выходили 7–9 px */
  .scheme-svg-tall .sx-badge-g {
    transform: scale(1.35);
  }

  .scheme-svg-tall .sx-rating {
    font-size: 13px;
  }

  .scheme-svg-tall .sx-tag {
    font-size: 12px;
  }

  .scheme-eyebrow,
  .scheme-legend-num {
    font-size: 12px;
  }
}

/* ---------- Проекты ---------- */

.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.projects-head .section-head {
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  flex: none;
  gap: 8px;
}

.carousel-controls button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.carousel-controls button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-controls button:disabled {
  cursor: default;
  opacity: 0.4;
}

.carousel {
  display: grid;
  grid-auto-columns: calc((100% - 36px) / 3.25);
  grid-auto-flow: column;
  gap: 12px;
  margin: 0;
  padding: 0 0 6px;
  overflow-x: auto;
  list-style: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  scroll-snap-align: start;
}

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

.project-body {
  padding: 20px 24px 26px;
}

.project-place {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.project h3 {
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.project-body > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.clients {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) minmax(0, 3fr);
  gap: 32px;
  align-items: center;
  margin-top: 56px;
}

.clients h3 {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.4;
}

.logo-wall {
  --logo-k: 1.2;   /* общий масштаб знаков (Дима 12.10: «чуть увеличь»); высоты ниже — при k = 1 */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-wall li {
  display: grid;
  place-items: center;
  height: 84px;
  padding: 0 18px;
  border-radius: var(--radius-tile);
  background: var(--surface);
  color: color-mix(in srgb, var(--ink), transparent 42%);
  transition: color 220ms ease;
}

.logo-wall li:hover {
  color: var(--ink);
}

.logo-wall .logo-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  text-align: center;
}

.logo-wall .logo-more:hover {
  color: var(--accent);
}

.logo-more b {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.logo-more span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.25;
}

.logo-mark {
  display: block;
  width: 100%;
  height: 34px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* векторные логотипы (исходники — design/source/logos-2026-10-12/clean); высота по зрительной площади:
   h ≈ √(2700 / пропорция), mask-size: contain сам ужимает широкие знаки в узкой плитке */
.logo-okey { -webkit-mask-image: url("assets/img/logos/okey.svg"); mask-image: url("assets/img/logos/okey.svg"); height: calc(27px * var(--logo-k, 1)); }
.logo-lenta { -webkit-mask-image: url("assets/img/logos/lenta.svg"); mask-image: url("assets/img/logos/lenta.svg"); height: calc(25px * var(--logo-k, 1)); }
.logo-vkusno { -webkit-mask-image: url("assets/img/logos/vkusno-i-tochka.svg"); mask-image: url("assets/img/logos/vkusno-i-tochka.svg"); height: calc(19px * var(--logo-k, 1)); }
.logo-lemana { -webkit-mask-image: url("assets/img/logos/lemana-pro.svg"); mask-image: url("assets/img/logos/lemana-pro.svg"); height: calc(46px * var(--logo-k, 1)); }
.logo-tekhnonikol { -webkit-mask-image: url("assets/img/logos/tekhnonikol.svg"); mask-image: url("assets/img/logos/tekhnonikol.svg"); height: calc(22px * var(--logo-k, 1)); }
.logo-avtovaz { -webkit-mask-image: url("assets/img/logos/avtovaz.svg"); mask-image: url("assets/img/logos/avtovaz.svg"); height: calc(36px * var(--logo-k, 1)); }
.logo-gazprom { -webkit-mask-image: url("assets/img/logos/gazprom.svg"); mask-image: url("assets/img/logos/gazprom.svg"); height: calc(36px * var(--logo-k, 1)); }
.logo-baltika { -webkit-mask-image: url("assets/img/logos/baltika.svg"); mask-image: url("assets/img/logos/baltika.svg"); height: calc(18px * var(--logo-k, 1)); }
.logo-feo { -webkit-mask-image: url("assets/img/logos/feo.svg"); mask-image: url("assets/img/logos/feo.svg"); height: calc(34px * var(--logo-k, 1)); }
.logo-bolshoy { -webkit-mask-image: url("assets/img/logos/bolshoy.svg"); mask-image: url("assets/img/logos/bolshoy.svg"); height: calc(46px * var(--logo-k, 1)); }
.logo-campania { -webkit-mask-image: url("assets/img/logos/campania.svg"); mask-image: url("assets/img/logos/campania.svg"); height: calc(29px * var(--logo-k, 1)); }

/* ---------- Видео с объектов ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.video-link {
  position: relative;
  isolation: isolate;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--on-dark);
}

.video-link img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* большая карточка тянется на два ряда: фото заполняет её целиком */
.video-feature .video-link img {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.video-link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(0deg, rgba(8, 13, 21, 0.92) 0%, rgba(8, 13, 21, 0.62) 34%, rgba(8, 13, 21, 0) 70%);
}

.video-link:hover img {
  transform: scale(1.04);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(10, 18, 30, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translate(-50%, -62%);
  transition: background 200ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.video-play::before {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 18px;
  margin: auto;
  content: "";
  background: #fff;
  clip-path: polygon(12% 0, 100% 50%, 12% 100%);
  transform: translateX(2px);
}

.video-link:hover .video-play {
  background: var(--accent-fill);
  transform: translate(-50%, -62%) scale(1.08);
}

.video-feature .video-play {
  width: 76px;
  height: 76px;
}

.video-feature .video-play::before {
  width: 22px;
  height: 26px;
}

.video-time {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(8, 13, 21, 0.62);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.video-meta {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 14px 16px 15px;
}

.video-cat {
  color: var(--mist);
  font-size: 12.5px;
  font-weight: 500;
}

.video-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

/* у ролика ГОК в кадр вшит свой титр: подпись кладём на плотную плашку, чтобы тексты не наезжали */
.video-feature .video-meta {
  gap: 6px;
  padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 32px);
  background: rgba(8, 13, 21, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-feature .video-cat {
  font-size: 14px;
}

.video-feature .video-title {
  max-width: 520px;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.video-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--brand-gradient);
  color: var(--on-fill);
}

.video-cta p {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.video-cta .button {
  align-self: flex-start;
}

/* ---------- Плеер видео ---------- */

.video-dialog {
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.video-dialog::backdrop {
  background: rgba(6, 10, 16, 0.82);
  backdrop-filter: blur(4px);
}

.video-frame {
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 90px);
  margin-inline: auto;
  background: #000;
}

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

/* ---------- Как работаем ---------- */

.process {
  padding: clamp(34px, 5vw, 76px);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--on-dark);
}

.process h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 24px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  counter-increment: process;
}

.process-list li::before {
  display: block;
  margin-bottom: 30px;
  color: var(--mist);
  content: "0" counter(process);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

/* светлый отрезок на линии шага: прорастает по очереди, когда блок появляется */
.process-list li::after {
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  content: "";
  background: var(--mist);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.process.is-visible .process-list li::after {
  transform: scaleX(1);
}

.process.is-visible .process-list li:nth-child(2)::after { transition-delay: 120ms; }
.process.is-visible .process-list li:nth-child(3)::after { transition-delay: 240ms; }
.process.is-visible .process-list li:nth-child(4)::after { transition-delay: 360ms; }
.process.is-visible .process-list li:nth-child(5)::after { transition-delay: 480ms; }

.process-list h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.process-list p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 15px;
}

/* ---------- Гарантии и документы ---------- */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.docs-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(26px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs-card h3,
.guarantee h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.docs-card p {
  margin: 0;
  color: var(--muted);
}

.doc-strip {
  display: grid;
  grid-auto-columns: 124px;
  grid-auto-flow: column;
  gap: 10px;
  margin: 0;
  padding: 4px 2px 10px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}

.doc-thumb {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  background: #fff;
  cursor: zoom-in;
  scroll-snap-align: start;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease;
}

.doc-thumb:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.doc-thumb img {
  width: 100%;
  aspect-ratio: 632 / 894;
  object-fit: cover;
}

.guarantee {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 300px;
  padding: clamp(26px, 3vw, 44px);
  overflow: hidden;
  border-radius: var(--radius);
}

.guarantee-value {
  margin: 0;
  font-size: clamp(64px, 7vw, 112px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.9;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.guarantee-value .unit {
  font-size: 0.36em;
  letter-spacing: -0.01em;
}

.guarantee p:last-child {
  max-width: 520px;
  margin: 0;
}

.guarantee-warranty {
  grid-column: span 7;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.16), transparent 45%),
    var(--accent-fill);
  color: var(--on-fill);
}

.guarantee-warranty p:last-child {
  color: rgba(245, 248, 251, 0.8);
}

.guarantee-area {
  grid-column: span 5;
  background: var(--surface-2);
}

.guarantee-area::after {
  position: absolute;
  inset: 0 0 0 35%;
  z-index: -1;
  content: "";
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 55%) 0 1.5px, transparent 2px);
  background-size: 13px 13px;
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(200deg, #000 0%, transparent 62%);
}

.guarantee-area p:last-child {
  color: var(--muted);
}

/* ---------- Дилеры и офис ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 12px;
}

.dealers {
  position: relative;
  isolation: isolate;
  padding: clamp(30px, 4.4vw, 64px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--on-dark);
}

.dealers::after {
  position: absolute;
  inset: 0 0 0 42%;
  z-index: -1;
  content: "";
  background-image: radial-gradient(circle, rgba(157, 191, 232, 0.34) 0 1.6px, transparent 2.1px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}

.dealers h2 {
  max-width: 560px;
}

.dealers > p {
  max-width: 520px;
  margin-bottom: 30px;
  color: var(--on-dark-muted);
  font-size: 18px;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.city-list li {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-chip);
  background: rgba(8, 13, 21, 0.4);
  font-size: 14.5px;
}

.dealers .text-link:hover {
  color: var(--mist);
}

.office {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--surface);
}

.office h3 {
  margin: 0;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.office dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.office dt {
  color: var(--muted);
  font-size: 13px;
}

.office dd {
  margin: 3px 0 0;
  font-size: 16.5px;
  font-weight: 450;
}

.office dd a {
  border-bottom: 1px solid color-mix(in srgb, currentColor, transparent 65%);
  transition: color 180ms ease, border-color 180ms ease;
}

.office dd a:hover {
  border-color: currentColor;
  color: var(--accent);
}

.office-phone {
  font-size: clamp(24px, 2.2vw, 30px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Вопросы ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(36px, 7vw, 120px);
}

.faq h2 {
  position: sticky;
  top: calc(var(--header) + 32px);
  align-self: start;
}

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

.faq-list summary {
  position: relative;
  padding: 26px 48px 26px 0;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  position: absolute;
  top: 22px;
  right: 2px;
  color: var(--accent);
  content: "+";
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  transition: transform 220ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 700px;
  margin: 0;
  padding: 0 48px 26px 0;
  color: var(--muted);
}

/* ---------- Заявка ---------- */

.request {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(30px, 6vw, 88px);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.14), transparent 38%),
    var(--accent-fill);
  color: var(--on-fill);
}

.request-copy .eyebrow {
  color: rgba(245, 248, 251, 0.78);
}

.request-copy h2 {
  max-width: 560px;
}

.request-copy > p {
  max-width: 480px;
  margin-bottom: 36px;
  color: rgba(245, 248, 251, 0.82);
  font-size: 18px;
}

.request-direct {
  display: grid;
  gap: 6px;
}

.request-direct a {
  width: fit-content;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 550;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.request-direct a + a {
  font-size: 17px;
  font-weight: 450;
}

.request-direct a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  align-content: start;
  padding: clamp(22px, 3.4vw, 42px);
  border-radius: var(--radius-tile);
  background: var(--surface);
  color: var(--ink);
}

.field {
  display: grid;
  gap: 7px;
  align-content: start;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-size: 14px;
  font-weight: 500;
}

.field-optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  background: var(--page);
  color: var(--ink);
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input,
.field select {
  height: 50px;
  padding: 0 14px;
}

.field select {
  padding-right: 42px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  cursor: pointer;
}

.field textarea {
  min-height: 104px;
  padding: 13px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted), transparent 12%);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 78%);
}

.field [aria-invalid="true"] {
  border-color: #c23b3b;
}

.field-error {
  color: #c23b3b;
  font-size: 12.5px;
}

.field-error:empty {
  display: none;
}

.field .file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.field-wide:has(.file-input) {
  position: relative;
}

.file-drop {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--muted), transparent 40%);
  border-radius: var(--radius-chip);
  background: var(--page);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.file-drop:hover,
.file-input:focus-visible + .file-drop,
.file-drop.is-dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 92%);
}

.file-input:focus-visible + .file-drop {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.file-drop strong {
  font-size: 15px;
  font-weight: 500;
}

.file-drop small {
  color: var(--muted);
  font-size: 13px;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.consent {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
}

.consent label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent-fill);
}

.consent input[aria-invalid="true"] {
  outline: 2px solid #c23b3b;
  outline-offset: 2px;
}

.submit-button {
  grid-column: 1 / -1;
  width: 100%;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  grid-column: 1 / -1;
  border-radius: var(--radius-chip);
  font-size: 14px;
}

.form-status:empty {
  display: none;
}

.form-status.success,
.form-status.error {
  padding: 13px 15px;
}

.form-status.success {
  background: color-mix(in srgb, var(--accent), transparent 86%);
}

.form-status.error {
  background: rgba(194, 59, 59, 0.12);
  color: #b33434;
}

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

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: clamp(64px, 8vw, 110px);
  padding: 52px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-brand .brand-logo {
  width: 190px;
}

.footer-brand .brand-tagline {
  font-size: 13.5px;
}

.site-footer address,
.footer-contacts {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14.5px;
  font-style: normal;
}

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

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 8px 32px;
  align-content: start;
  font-size: 14.5px;
}

/* нижняя полоса: документы слева и «Разработано» справа на одной линии, ниже © и реквизиты одним блоком.
   Ссылки на документы (.footer-docs) ставит выкладка — deploy/legal-tags.ps1 — после .footer-legal; место задают области сетки. */
.footer-meta {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "docs by"
    "copy copy"
    "legal legal";
  align-items: baseline;
  gap: 0 32px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-meta p {
  margin: 0;
}

.footer-docs {
  display: flex;
  grid-area: docs;
  flex-wrap: wrap;
  gap: 0 28px;
}

.footer-docs a,
.footer-docs button {
  display: inline-block;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.footer-docs a:hover,
.footer-docs button:hover,
.footer-docs a:focus-visible,
.footer-docs button:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.footer-meta .footer-copy {
  grid-area: copy;
  margin-top: 14px;
  font-size: 13px;
}

.footer-meta .footer-legal {
  grid-area: legal;
  margin-top: 2px;
  font-size: 13px;
}

.by {
  grid-area: by;
  justify-self: end;
  padding: 6px 0;
  white-space: nowrap;
  background: linear-gradient(90deg, #dc5bf2 0%, #2ae8c6 50%, #dc5bf2 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 14px;
  animation: brand-flow 5s ease-in-out infinite;
  transition: opacity 180ms ease;
}

.by:hover,
.by:focus-visible {
  opacity: 0.78;
}

/* ---------- Просмотр декларации ---------- */

.doc-dialog {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4);
}

.doc-dialog::backdrop {
  background: rgba(6, 10, 16, 0.74);
  backdrop-filter: blur(4px);
}

.doc-dialog img {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 100px);
  object-fit: contain;
  background: #fff;
}

.doc-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 18px;
}

.doc-dialog-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.doc-dialog-actions {
  display: flex;
  gap: 6px;
}

.doc-dialog-actions button {
  min-width: 44px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  background: var(--page);
  cursor: pointer;
}

.doc-dialog-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Появление ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.delay-1.is-visible {
  transition-delay: 80ms;
}

.reveal.delay-2.is-visible {
  transition-delay: 160ms;
}

@keyframes brand-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Адаптив ---------- */

@media (min-width: 1600px) {
  :root {
    --container: 1480px;
  }
}

@media (max-width: 1320px) {
  .header-phone {
    display: none;
  }
}

@media (max-width: 1240px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.85fr);
  }

  /* семь нижних карточек — парами (витрины + охлаждение площадок, охлаждение цехов + фермы, дезинфекция + цеха),
     пылеподавление — во всю ширину: фото слева, текст справа */
  .solution-retail,
  .solution-cooling,
  .solution-workshop,
  .solution-livestock,
  .solution-disinfect,
  .solution-factory {
    grid-column: span 6;
  }

  .solution-dust {
    display: grid;
    grid-column: span 12;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .solution-dust .solution-media {
    height: auto;
    min-height: 300px;
  }

  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
  }


  .maker {
    position: static;
    display: grid;
    grid-column: span 12;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: end;
  }

  .maker-eyebrow,
  .maker-lead {
    grid-column: 1;
  }

  .maker-facts {
    grid-column: 2;
    grid-row: 1 / span 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare {
    grid-column: span 12;
  }

  .clients {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 18px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-main {
    min-height: 600px;
  }

  .solution-lead {
    grid-column: span 12;
    grid-row: auto;
  }

  .solution-lead .solution-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .solution-defrost,
  .solution-greenhouse {
    grid-column: span 6;
  }

  .tech-photo {
    grid-column: span 5;
  }

  .tech-steps {
    grid-column: span 7;
    grid-template-columns: 1fr;
  }

  .tech-steps li:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }

  .pressure {
    grid-column: span 6;
  }

  .tech-photo {
    grid-row: span 1;
  }

  .carousel {
    grid-auto-columns: calc((100% - 12px) / 2.2);
  }

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

  /* три колонки: 15 роликов + большая карточка + плитка на две клетки = ровно 7 рядов */
  .video-cta {
    grid-column: span 2;
  }

  .docs-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guarantee-warranty,
  .guarantee-area {
    grid-column: span 6;
  }

  .contacts-grid,
  .faq,
  .request {
    grid-template-columns: 1fr;
  }

  .faq {
    gap: 12px;
  }

  .faq h2 {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* меню прячется в кнопку до 1000 px: на 861–965 px семь пунктов и «Получить смету» не помещались в шапку */
@media (max-width: 1000px) {
  .desktop-nav,
  .nav-shell > .button {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    padding: 0 0 0 16px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-weight: 500;
    cursor: pointer;
  }

  .mobile-nav {
    display: grid;
    width: min(calc(100% - var(--gutter)), var(--container));
    margin-inline: auto;
    padding: 4px 0 18px;
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .mobile-nav .button {
    margin-top: 16px;
    border-bottom: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --header: 64px;
    --gutter: 32px;
  }

  .brand-logo {
    width: 146px;
  }

  .brand-tagline {
    font-size: 10.4px;
  }

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

  .solution-defrost,
  .solution-greenhouse,
  .solution-retail,
  .solution-cooling,
  .solution-livestock,
  .solution-workshop,
  .solution-disinfect,
  .solution-factory,
  .solution-dust {
    grid-column: span 12;
  }

  /* на телефоне пылеподавление снова карточкой: фото сверху */
  .solution-dust {
    display: flex;
  }

  .solution-dust .solution-media {
    min-height: 0;
    height: 220px;
  }

  .tech-photo,
  .tech-steps,
  .pressure,
  .equipment {
    grid-column: span 12;
  }

  .maker {
    display: flex;
  }

  .compare-head {
    display: none;
  }

  .compare-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .compare-label {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 8px;
    border-radius: 8px;
    background: var(--page);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
  }

  .tech-photo img {
    height: 380px;
    flex: none;
  }

  .projects-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel {
    grid-auto-columns: 78%;
  }

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

  .video-feature {
    grid-row: auto;
  }

  .video-feature .video-link img {
    position: static;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  /* на телефоне подпись большой карточки — под кадром, а не поверх */
  .video-feature .video-meta {
    position: relative;
  }

  /* кнопка — по центру кадра 16:10, а не всей карточки с подписью */
  .video-feature .video-link {
    container-type: inline-size;
  }

  .video-feature .video-play {
    top: 31.25cqw;
    transform: translate(-50%, -50%);
  }

  .video-feature .video-link:hover .video-play {
    transform: translate(-50%, -50%) scale(1.08);
  }

  .video-cta {
    grid-column: auto;
    padding: 16px;
  }

  .video-cta p {
    font-size: 15px;
  }

  /* плитка в половину экрана: кнопка не шире ячейки (на 360–375 px «Получить смету» в одну строку не помещалась) */
  .video-cta .button {
    width: 100%;
    padding-inline: 12px;
    text-align: center;
    white-space: normal;
  }

  .logo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-list li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 22px 0;
  }

  .process-list li::before {
    grid-row: span 2;
    margin: 4px 0 0;
  }

  .guarantee-warranty,
  .guarantee-area {
    grid-column: span 12;
  }

  .request-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  /* телефон: документы столбиком с зонами нажатия по 44 px, «Разработано» — последней строкой */
  .footer-meta {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "docs" "copy" "legal" "by";
  }

  .footer-docs {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-docs a,
  .footer-docs button,
  .footer-contacts a,
  .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }

  .footer-contacts,
  .footer-nav {
    gap: 0 32px;
  }

  .by {
    justify-self: start;
    margin-top: 10px;
    padding: 12px 0;
    white-space: normal;
  }

  /* галочка согласия в форме: зона нажатия не меньше 24 px (правило ниже базового .consent input, иначе тот перебивает) */
  .consent input {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 24px;
  }

  .hero {
    padding-top: 10px;
  }

  .hero-main {
    min-height: 560px;
    padding: 30px 22px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  h2 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .text-link {
    align-self: flex-start;
  }

  .selector {
    padding: 26px 20px;
  }

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

  .proof-item {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 18px 20px;
  }

  .proof-item strong {
    flex: none;
    font-size: 30px;
  }

  .proof-item > span {
    margin: 0;
  }

  .section-head p,
  .dealers > p,
  .request-copy > p {
    font-size: 16px;
  }

  .solution-body,
  .pressure,
  .docs-card,
  .guarantee,
  .office {
    padding: 24px 20px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts div {
    flex-direction: row-reverse;
    align-items: baseline;
    justify-content: space-between;
  }

  .tech-steps {
    padding: 4px 20px;
  }

  .compare {
    padding: 0 20px 4px;
  }

  .maker {
    padding: 28px 22px;
  }

  .equipment figcaption {
    padding: 20px;
  }

  .tech-photo img {
    height: 300px;
  }

  .pressure dl {
    grid-template-columns: 1fr 1fr;
  }

  .carousel {
    grid-auto-columns: 86%;
  }

  .video-grid {
    gap: 8px;
  }

  .video-link img {
    aspect-ratio: 4 / 3;
  }

  /* в мелких карточках кнопка уходит в угол, чтобы не спорить с подписью */
  .video-card:not(.video-feature) .video-play {
    top: 8px;
    left: 8px;
    width: 34px;
    height: 34px;
    transform: none;
  }

  .video-card:not(.video-feature) .video-link:hover .video-play {
    transform: none;
  }

  .video-card:not(.video-feature) .video-play::before {
    width: 11px;
    height: 13px;
  }

  .video-time {
    top: 8px;
    right: 8px;
    font-size: 12px;
  }

  .video-meta {
    padding: 10px 11px 11px;
  }

  .video-cat {
    font-size: 12px;
  }

  .video-title {
    font-size: 13.5px;
  }

  .logo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-wall li {
    height: 72px;
  }

  .process {
    padding: 30px 20px;
  }

  .dealers {
    padding: 30px 20px;
  }

  .faq-list summary {
    font-size: 18px;
  }

  .request {
    padding: 30px 16px 16px;
  }

  .request-form {
    padding: 22px 16px;
  }
}

@media (max-width: 359px) {
  .proof-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--page);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
