/* ============================================================
   Фильтр Дам. Дизайн-система v3 «Чистая вода».
   Источник истины по значениям: tokens.css в корне проекта.
   Блок :root ниже – его копия, совпадение проверяет
   research/check_contrast.py.

   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-soft: #E8F2FC;
  --bg-tint: #D3EAF7;
  --dark: #0F2350;
  --ink: #10192B;
  --ink-2: #3A4860;
  --ink-3: #566378;
  --accent: #1B45D6;
  --accent-press: #1536AB;
  --on-dark: #EAF3FC;
  --on-dark-2: #A8D3F5;
  --on-dark-soft: rgba(234, 243, 252, 0.64);
  --on-dark-plate: rgba(234, 243, 252, 0.08);
  --line: #D7E4F2;
  --veil: rgba(15, 35, 80, 0.46);
  --photo-tint: rgba(27, 110, 214, 0.05);
  --photo-filter: saturate(1.02) brightness(1.03);
  --r-plate: 22px;
  --r-card: 18px;
  --r-ui: 13px;
  --r-chip: 10px;
  --container: min(1320px, 100vw - 48px);
  --section-pad: clamp(32px, 4.6vw, 75px);
  --gap: clamp(16px, 1.6vw, 24px);
  --gap-wide: clamp(28px, 3.4vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 180ms;
  --mid: 240ms;
  --reveal: 620ms;
  --t-h1-home: clamp(2.15rem, 4.4vw, 3.9rem);
  --t-h1: clamp(1.95rem, 3.6vw, 3.05rem);
  --t-h2: clamp(1.6rem, 2.9vw, 2.5rem);
  --t-h3: clamp(1.1rem, 1.4vw, 1.28rem);
  --t-lead: clamp(1.06rem, 1.3vw, 1.22rem);
  --t-body: 17px;
  --t-small: 15px;
  --t-cap: 13.5px;
}

/* ===== Шрифты: локальные, woff2 ===== */
@font-face { font-family: 'Basis'; src: url('fonts/basis-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Basis'; src: url('fonts/basis-medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Basis'; src: url('fonts/basis-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'JB'; src: url('fonts/jetbrains-cyrillic.woff2') format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: 'JB'; src: url('fonts/jetbrains-latin.woff2') format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF; }

/* ===== База ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* Атрибут hidden сильнее любого display в системе: без этого скрытая
   модалка с display:grid накрывает страницу и съедает клики и скролл. */
[hidden] { display: none !important; }
/* Шапка держится сверху и закрывает всё, к чему браузер подводит вплотную.
   scroll-padding отвечает за якоря, а за переход клавиатурой – отступ на самом
   элементе: без него первая же ссылка после Tab оказывается под шапкой. */
a, button, summary, input, select, textarea, [tabindex] { scroll-margin-top: 96px; }

html {
  scroll-behavior: smooth;
  /* Шапка держится сверху, и без этого отступа браузер подводит к ссылке
     ровно под неё: и по якорю, и при переходе клавиатурой цель оказывается
     закрытой. Величина – высота шапки плюс воздух. */
  scroll-padding-top: 88px;
}
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 'Basis', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
/* Нижняя граница адаптива – 340px. На такой ширине длинные слова вроде
   «Многофункциональный» и ячейки таблиц распирают колонку, если им не
   разрешить перенос, а элементам сетки – сжиматься ниже своего содержимого. */
h1, h2, h3, h4, p, li, td, th, summary, label { overflow-wrap: break-word; }
.page > *, .grid > *, .split > *, .spread > *, .ways > *, .steps > *,
.product-hero-inner > *, .page-hero-inner > *, .hero-inner > *,
.faq-band > *, .analysis-band > * { min-width: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
select, input, textarea { font: inherit; color: inherit; }
p:last-child { margin-bottom: 0; }
.page { width: var(--container); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
body.modal-open, body.menu-open { overflow: hidden; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--dark); color: var(--on-dark);
  padding: 10px 18px; border-radius: 0 0 var(--r-ui) 0;
}
.skip-link:focus { left: 0; }

/* ===== Типографика ===== */
h1, h2 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.07; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; }
h4 { font-size: var(--t-small); font-weight: 500; }
/* Моно осталось только на цифрах: цены и значения протокола. */
.num { font-family: 'JB', monospace; font-weight: 500; letter-spacing: 0.01em; }

.prose > p { margin: 0 0 1em; max-width: 68ch; color: var(--ink-2); }
.prose h2 { margin: 1.6em 0 0.6em; }
.prose h3 { margin: 1.4em 0 0.5em; }
.prose li { margin: 0.35em 0 0.35em 1.2em; color: var(--ink-2); }

/* ===== Знак перехода: кобальтовая точка ===== */
.act, .card-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: var(--t-small); color: var(--accent);
  transition: color var(--fast) var(--ease);
}
.act::before, .card-link::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}
a:hover .act, .act:hover, .card:hover .card-link, a:hover .card-link { color: var(--accent-press); }
a:hover .act::before, .act:hover::before,
.card:hover .card-link::before, a:hover .card-link::before {
  transform: scale(1.5); background: var(--accent-press);
}

/* ===== Кнопки ===== */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--bg);
  font-weight: 500; font-size: 16px; line-height: 1.2;
  padding: 15px 30px; border-radius: var(--r-ui); border: 0; cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}
.button:hover { background: var(--accent-press); }
.button:active { transform: translateY(1px); }
.button[disabled], .button.is-busy { opacity: 0.6; pointer-events: none; }
/* Светлая кнопка – заливка, а не рамка. */
.button--light { background: var(--bg-soft); color: var(--ink); }
.button--light:hover { background: var(--bg-tint); }
.section--wash .button--light { background: var(--bg); }
.section--wash .button--light:hover { background: var(--bg-tint); }
/* Кнопка внутри плиты не может повторять её цвет: на белой карточке белая
   кнопка видна только по тексту, а одинаковый ховер сливает их совсем.
   Поэтому внутри карточек кнопка светло-голубая, а по наведению уходит
   в акцент – так она отличается от плиты и в покое, и под курсором. */
.card--plain .button--light, .price-card .button--light,
.sidebar .button--light, .lead-aside .button--light,
.section--wash .card--plain .button--light, .section--wash .price-card .button--light,
.section--wash .sidebar .button--light {
  background: var(--bg-tint); color: var(--ink);
}
.card--plain .button--light:hover, .price-card .button--light:hover,
.sidebar .button--light:hover, .lead-aside .button--light:hover,
.section--wash .card--plain .button--light:hover, .section--wash .price-card .button--light:hover,
.section--wash .sidebar .button--light:hover {
  background: var(--accent); color: var(--bg);
}
/* Кнопка на тёмном массиве: полупрозрачная плашка, при наведении
   становится светлой заливкой с тёмным текстом. */
.button--ghost { background: var(--on-dark-plate); color: var(--on-dark); }
.button--ghost:hover { background: var(--on-dark); color: var(--dark); }
.button--wide { width: 100%; }

.inline-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.inline-actions--spaced { margin-top: 28px; }

/* ===== Шапка ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); }
.header-shell {
  width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { height: 44px; width: auto; }

.desktop-nav { display: flex; align-items: center; gap: 2px; order: 2; margin: 0 auto; }
.brand { order: 1; }
.header-actions { order: 3; display: flex; align-items: center; gap: 18px; }

.nav-item { position: relative; }
.nav-trigger, .nav-link {
  display: inline-flex; align-items: center;
  padding: 9px 14px; font-size: var(--t-small); font-weight: 500;
  border-radius: var(--r-chip);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav-trigger:hover, .nav-link:hover, .nav-item:hover .nav-trigger { background: var(--bg-soft); }
.nav-trigger.is-current, .nav-link.is-current { color: var(--accent); }
.nav-item:hover .nav-trigger.is-current { background: var(--bg-tint); }

/* Выпадающая панель: мягкое раскрытие, плита без рамки */
.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 306px; padding: 10px;
  background: var(--bg-soft); border-radius: var(--r-card);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility 0s linear var(--mid);
}
/* Панель раскрывается наведением на пункт; класс is-open вешает скрипт –
   для сенсорных экранов и для перехода по клавиатуре. Раскрытие по
   :focus-within убрано намеренно: любой программный перевод фокуса в шапку
   (например, после кнопки «наверх») открывал панель сам собой. */
.nav-panel.is-open,
.nav-item:hover .nav-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
}
/* Мостик под пунктом: курсор доходит до панели, не теряя наведение. */
.nav-item::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
}
.nav-panel a {
  display: grid; gap: 2px; padding: 11px 14px; border-radius: var(--r-ui);
  font-weight: 500; font-size: var(--t-small); line-height: 1.3;
  transition: background var(--fast) var(--ease);
}
.nav-panel a small { font-size: var(--t-cap); font-weight: 400; color: var(--ink-3); }
.nav-panel a:hover { background: var(--bg); }
.nav-panel a:hover small { color: var(--ink-2); }

.phone-link {
  font-weight: 500; font-size: 15.5px; white-space: nowrap;
  transition: color var(--fast) var(--ease);
}
.phone-link:hover { color: var(--accent); }
.header-actions .button { padding: 12px 22px; font-size: var(--t-small); }

.menu-button {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: var(--r-ui);
  transition: background var(--fast) var(--ease);
}
.menu-button:hover { background: var(--bg-tint); }
.menu-button span { position: relative; width: 18px; height: 2px; background: var(--ink); display: block; border-radius: 2px; }
.menu-button span::before, .menu-button span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.menu-button span::before { top: -6px; }
.menu-button span::after { top: 6px; }

/* ===== Мобильное меню ===== */
.mobile-drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop {
  position: absolute; inset: 0; background: var(--veil);
  opacity: 0; transition: opacity var(--mid) var(--ease);
}
/* Шторка держится в высоту экрана: прокручивается только список разделов,
   и то лишь на совсем низких экранах. */
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 92vw); max-height: 100%;
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(24px); opacity: 0;
  transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease);
  overflow: hidden;
}
.mobile-drawer.is-open .drawer-backdrop { opacity: 1; }
.mobile-drawer.is-open .drawer-panel { transform: none; opacity: 1; }
.drawer-top {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 14px 16px 8px 20px; flex: none;
}
/* Крестик рисуется двумя линиями: текстовый знак «×» в этой гарнитуре
   сидит криво и выглядит случайным. */
.drawer-close {
  position: relative; width: 44px; height: 44px; flex: none;
  background: var(--bg-soft); border-radius: var(--r-ui);
  transition: background var(--fast) var(--ease);
}
.drawer-close::before, .drawer-close::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 17px; height: 2px; background: var(--ink); border-radius: 2px;
}
.drawer-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.drawer-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.drawer-close:hover { background: var(--bg-tint); }

.drawer-nav {
  padding: 8px 16px; display: grid; gap: 4px; align-content: start;
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
}
.drawer-nav > a {
  padding: 13px 16px; font-weight: 500; font-size: 17px; line-height: 1.2;
  border-radius: var(--r-ui);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.drawer-nav > a:hover { background: var(--bg-soft); }
.drawer-nav > a:active { background: var(--bg-tint); color: var(--accent); }
.drawer-bottom {
  flex: none; padding: 12px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 12px; justify-items: stretch;
}
.drawer-bottom .phone-link { text-align: center; font-size: 17px; }

/* ===== Первый экран главной ===== */
.hero { padding: clamp(12px, 2vw, 26px) 0 0; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; column-gap: var(--gap-wide);
}
.hero-copy { padding: clamp(24px, 4vh, 56px) 0 clamp(32px, 5vh, 64px); }
.hero-copy h1 { font-size: var(--t-h1-home); line-height: 1.04; max-width: 15ch; }
.hero-copy > p { margin: 24px 0 34px; max-width: 42ch; color: var(--ink-2); font-size: var(--t-lead); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
/* Станция стоит прямо на холсте: вырезанный объект держит первый экран
   сам, без подложки под ним. */
.hero-object { display: flex; align-items: center; justify-content: center; }
.hero-object img { height: clamp(320px, 58vh, 620px); width: auto; object-fit: contain; }

/* Бегущая строка: светлая полоса, обычный регистр */
.tick {
  margin-top: var(--section-pad);
  background: var(--bg-soft); overflow: hidden; padding: 16px 0;
}
.tick-in {
  display: flex; gap: 46px; white-space: nowrap; width: max-content;
  font-weight: 500; font-size: 16px; line-height: 1.2; color: var(--ink-2);
  animation: tick 34s linear infinite;
}
.tick-in span { display: inline-flex; align-items: center; gap: 46px; }
.tick-in b { font-weight: 500; color: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }
.tick:hover .tick-in { animation-play-state: paused; }

/* ===== Первый экран внутренних страниц ===== */
.page-hero { padding-top: clamp(14px, 2vw, 24px); }
/* Заливка, начинающаяся сразу под заголовком, липнет к нему: цветная полоса
   отодвигается вниз. Белой секции этого не нужно – у неё свой воздух. */
.page-hero + .section--wash { margin-top: clamp(28px, 3.4vw, 56px); }
.page-hero-inner { display: grid; gap: var(--gap-wide); }
.page-hero--media .page-hero-inner,
.page-hero--note .page-hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.page-hero h1 { max-width: 22ch; }
.page-hero-copy > p { margin: 22px 0 0; max-width: 54ch; color: var(--ink-2); font-size: var(--t-lead); }
.page-hero .inline-actions { margin-top: 28px; }
.page-hero-media { position: relative; border-radius: var(--r-plate); overflow: hidden; align-self: center; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.page-hero-media::after { content: ''; position: absolute; inset: 0; background: var(--photo-tint); pointer-events: none; }
.page-hero-note { align-self: center; }
/* Голый первый экран: крошки, заголовок и сразу дело */
.page-hero--bare h1 { max-width: 26ch; }
.page-hero--plain h1 { max-width: 30ch; }
.page-hero--plain .page-hero-copy > p { max-width: 64ch; }

/* ===== Секции: единый шаг, чередование заливок ===== */
.section, .section--wash, .section--dark { padding: var(--section-pad) 0; }
.section--wash { background: var(--bg-soft); }
/* Две залитые секции подряд читаются как одна полоса – так и задумано. */
.section--wash + .section--wash { padding-top: 0; }

/* Тёмный массив: плита в контейнере */
.section--dark > .page {
  background: var(--dark); color: var(--on-dark);
  border-radius: var(--r-plate);
  padding: clamp(30px, 4vw, 60px);
}
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-2); }

/* Заголовок секции: заголовок слева, пояснение справа, без линии */
.section-heading {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: clamp(24px, 2.6vw, 40px);
}
.section-heading p { color: var(--ink-2); font-size: 16px; max-width: 46ch; text-align: right; }
.section-heading--inner { margin-top: clamp(40px, 4vw, 64px); }
.section-heading--inner h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.section--dark .section-heading p { color: var(--on-dark-2); }

/* ===== Сетки ===== */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Карточка-изображение: фото со скруглением, подпись под ним ===== */
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: none;
}
.card-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--r-plate); background: var(--bg-soft);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter);
  transition: transform 520ms var(--ease);
}
.card-media::after { content: ''; position: absolute; inset: 0; background: var(--photo-tint); pointer-events: none; }
.card:hover .card-media img { transform: scale(1.03); }
/* Вырезанный объект лежит на плите, а не в кадре: слой и обрезка не нужны. */
.card-media--object { background: var(--bg-soft); aspect-ratio: 4 / 3; }
.card-media--object img { object-fit: contain; padding: clamp(14px, 1.6vw, 26px); filter: none; }
.card-media--object::after { display: none; }
.section--wash .card-media--object, .section--wash .card-media { background: var(--bg); }
.card > h2, .card > h3 { font-size: var(--t-h3); font-weight: 500; }
.card > h2 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 700; letter-spacing: -0.015em; }
.card-heading--lg { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
/* Заголовок карточки, который по структуре страницы обязан быть вторым
   уровнем, а выглядеть должен как обычный заголовок карточки. */
.card > h2.card-heading--sm {
  font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.005em; line-height: 1.3;
}
.card > p { color: var(--ink-2); font-size: var(--t-small); flex: 1; }
.card h3 a, .card h2 a { transition: color var(--fast) var(--ease); }
.card:hover h3 a, .card:hover h2 a { color: var(--accent); }
.card h3 a::after, .card h2 a::after { content: ''; position: absolute; inset: 0; }
.card .card-link { margin-top: 2px; }

/* Карточка-плита: заливка вместо рамки. На белом фоне светлая, на светлом белая. */
.card--plain {
  background: var(--bg-soft); border-radius: var(--r-card);
  padding: clamp(22px, 2vw, 30px);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.section--wash .card--plain { background: var(--bg); }
/* Подсветка при наведении – только у карточек, которые целиком ведут
   по ссылке. Плита со списком внутри от неё выглядела бы кликабельной. */
.card--plain:has(a[href]):hover { background: var(--bg-tint); transform: translateY(-2px); }
.section--wash .card--plain:has(a[href]):hover { background: var(--bg-tint); }
/* Плита с кнопкой внутри: подсвечивается сама кнопка, а не карточка. */
.card--plain:has(.button):hover, .section--wash .card--plain:has(.button):hover {
  background: inherit; transform: none;
}

.tag { display: none; }
.empty-slot { background: var(--bg-soft); border-radius: var(--r-card); min-height: 120px; }

/* ===== Сценарии: три плашки «чуть ярче» ===== */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.way {
  position: relative; padding: clamp(24px, 2.2vw, 34px);
  background: var(--bg-tint); border-radius: var(--r-card);
  display: flex; flex-direction: column; gap: 10px;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.way:hover, .way:focus-visible { background: var(--bg-soft); transform: translateY(-2px); }
.section--wash .way { background: var(--bg); }
.section--wash .way:hover { background: var(--bg-tint); }
.way h3 { font-size: var(--t-h3); font-weight: 500; }
.way p { color: var(--ink-2); font-size: var(--t-small); flex: 1; }

/* ===== Лента этапов: точки на светлой оси ===== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); position: relative; }
.steps::before { content: ''; position: absolute; top: 3px; left: 0; right: 0; height: 2px; background: var(--bg-tint); border-radius: 2px; }
.step { position: relative; padding: 26px 16px 0 0; }
.step::before {
  content: ''; position: absolute; top: 0; left: 0; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
  transition: transform var(--fast) var(--ease);
}
.step:hover::before { transform: scale(1.5); }
.step h3 { font-size: 16.5px; margin-bottom: 6px; font-weight: 500; }
.step p { color: var(--ink-2); font-size: var(--t-small); }
.steps-band .steps { margin-top: 40px; }

/* В узкой колонке разворота пять колонок не помещаются: лента разворачивается
   в вертикальную ось, как на телефоне. */
.split .steps { grid-template-columns: 1fr; gap: 0; }
.split .steps::before { top: 0; bottom: 0; left: 3px; right: auto; width: 2px; height: auto; }
.split .step { padding: 0 0 26px 26px; }
.split .step::before { top: 5px; }
.split .step:last-child { padding-bottom: 6px; }

/* ===== Развороты ===== */
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-wide); align-items: center; }
.spread-media { position: relative; border-radius: var(--r-plate); overflow: hidden; }
.spread-media img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.spread-media::after { content: ''; position: absolute; inset: 0; background: var(--photo-tint); pointer-events: none; }
.spread--flip .spread-media { order: 2; }
.spread-copy > p { margin: 16px 0 0; color: var(--ink-2); max-width: 50ch; }
.spread-copy > p:first-of-type { margin-top: 20px; }

/* ===== Сплит с сайдбаром ===== */
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--gap-wide); align-items: start; }
.sidebar {
  background: var(--bg-soft); border-radius: var(--r-card);
  padding: clamp(22px, 2vw, 30px);
}
.section--wash .sidebar { background: var(--bg); }
.sidebar strong { display: block; margin-bottom: 12px; font-size: 15.5px; }
.sidebar p { color: var(--ink-2); font-size: var(--t-small); }
.sidebar ul { list-style: none; display: grid; gap: 2px; }
.sidebar li { color: var(--ink-2); font-size: var(--t-small); }
.sidebar li a {
  display: block; padding: 9px 12px; margin: 0 -12px; border-radius: var(--r-chip);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.sidebar li a:hover { background: var(--bg); color: var(--accent); }
.section--wash .sidebar li a:hover { background: var(--bg-soft); }

/* ===== Списки ===== */
.check-list { list-style: none; }
.check-list li { position: relative; padding: 9px 0 9px 24px; color: var(--ink-2); font-size: var(--t-small); }
.check-list li::before {
  content: ''; position: absolute; left: 2px; top: 17px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.check-list--wide { columns: 2; column-gap: 48px; max-width: 100ch; }
.check-list--wide li { break-inside: avoid; }
.plain-list { list-style: none; }
.plain-list li { position: relative; padding: 9px 0 9px 20px; color: var(--ink-2); font-size: var(--t-small); }
.plain-list li::before {
  content: ''; position: absolute; left: 2px; top: 18px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--bg-tint);
}

/* ===== Выноски ===== */
.notice, .callout {
  background: var(--bg-soft); border-radius: var(--r-card);
  padding: 22px 26px; max-width: 76ch;
}
.section--wash .notice, .section--wash .callout { background: var(--bg); }
/* Предупреждение звучит громче обычной выноски: плашка «чуть ярче». */
.notice--warning, .section--wash .notice--warning { background: var(--bg-tint); }
.notice strong, .callout strong { color: var(--ink); display: block; margin-bottom: 4px; }
.notice span, .notice p, .callout p { color: var(--ink-2); font-size: var(--t-small); }

/* ===== Строки-ссылки: список переходов без карточной сетки ===== */
.rows { display: grid; gap: 10px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--bg-soft); border-radius: var(--r-card);
  padding: clamp(18px, 1.8vw, 24px) clamp(20px, 2vw, 28px);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.section--wash .row { background: var(--bg); }
.row:hover { background: var(--bg-tint); transform: translateY(-2px); }
.row h3, .row h2 { font-size: var(--t-h3); font-weight: 500; margin-bottom: 4px; }
.row p { color: var(--ink-2); font-size: var(--t-small); }
.row .act { flex: none; }
/* Счётчик в строке-входе. Число идёт со словом: голая цифра рядом со ссылкой
   читается то как количество, то как цена. */
.row-count { flex: none; color: var(--ink-2); font-size: var(--t-small); }
.row-count .num { color: var(--ink); font-size: 1.05rem; }
/* На узком экране трём частям строки в ряд не хватает места: заголовок с
   подписью занимает всю ширину, счётчик и «Открыть» встают под ним. */
@media (max-width: 560px) {
  .row--count { flex-wrap: wrap; gap: 12px 16px; }
  .row--count > div { flex: 1 1 100%; }
}

/* ===== FAQ: вопросы плитами ===== */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--bg-soft); border-radius: var(--r-card);
  padding: 4px 22px;
  transition: background var(--fast) var(--ease);
}
.section--wash .faq details { background: var(--bg); }
.faq details:hover { background: var(--bg-tint); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-weight: 500; font-size: 16.5px; line-height: 1.4;
  display: flex; align-items: flex-start; gap: 14px;
  transition: color var(--fast) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; margin-top: 9px;
  background: var(--accent); flex: none;
  transition: transform var(--fast) var(--ease);
}
.faq summary:hover { color: var(--accent-press); }
.faq details[open] summary::before { transform: scale(1.5); }
.faq details > p { padding: 0 0 20px 21px; color: var(--ink-2); font-size: var(--t-small); max-width: 68ch; }
.faq details > ul { padding: 0 0 14px 21px; max-width: 68ch; }
/* Раскрытие внутри готовой плиты: фон берёт следующий слой, чтобы
   вложенный блок не сливался с панелью, на которой лежит. */
.faq--after-table { margin-top: 14px; }
.faq--inset { margin-top: 18px; }
.faq--inset details { background: var(--bg); }
.faq--inset details:hover { background: var(--bg-tint); }
.section--wash .faq--inset details { background: var(--bg-soft); }

/* Вопросы и форма стоят двумя колонками одной высоты: низ выравнивается
   по нижнему краю, вопросы распределяются по колонке, кнопка формы
   прижата к низу плиты. */
.faq-band { display: grid; grid-template-columns: 1fr 1.35fr; gap: var(--gap-wide); align-items: stretch; }
.faq-copy { display: flex; flex-direction: column; }
.faq-copy .faq { flex: 1; align-content: space-between; }
.faq-copy p { color: var(--ink-2); margin-top: 14px; max-width: 42ch; }
.faq-band .lead-aside { display: flex; flex-direction: column; }
.faq-band .lead-form { flex: 1; }
.faq-band .lead-form button[type="submit"] { margin-top: auto; }

/* ===== Протокол: цифры на тёмном ===== */
.protocol { background: var(--on-dark-plate); border-radius: var(--r-card); padding: 24px 26px; }
.protocol-head { font-size: var(--t-cap); font-weight: 500; color: var(--on-dark-2); padding-bottom: 14px; }
.protocol-row {
  display: grid; grid-template-columns: 1.2fr auto 1.4fr; gap: 14px; align-items: baseline;
  padding: 12px 0; font-size: var(--t-small);
}
.protocol-row span { color: var(--on-dark); }
.protocol-row b { font-family: 'JB', monospace; font-weight: 500; color: var(--on-dark-2); white-space: nowrap; }
/* Показатель в пределах нормы отличается от превышения не цветом-светофором,
   а спокойным белым: второй яркий цвет в системе запрещён. */
.protocol-row b.is-ok { color: var(--on-dark); }
.protocol-row i { font-style: normal; color: var(--on-dark-soft); font-size: var(--t-cap); }
/* Итог под протоколом: чем измеряется результат после запуска. */
.protocol-foot { margin-top: 14px; padding-top: 14px; color: var(--on-dark-2); font-size: var(--t-cap); }
.protocol--light .protocol-foot { color: var(--ink-3); }

.protocol--light { background: var(--bg-soft); }
.protocol--light .protocol-head { color: var(--ink-3); }
.protocol--light .protocol-row span { color: var(--ink); }
.protocol--light .protocol-row b { color: var(--accent); }
.protocol--light .protocol-row i { color: var(--ink-3); }

.analysis-band { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--gap-wide); align-items: center; }
.analysis-band h2 { max-width: 17ch; }
.analysis-band > div > p { margin-top: 16px; color: var(--on-dark-2); max-width: 44ch; }

/* ===== Цены и варианты решений ===== */
.price-lines { list-style: none; display: grid; gap: 2px; }
.price-lines li {
  display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 14px 18px; background: var(--bg-soft); border-radius: var(--r-chip);
  color: var(--ink-2); font-size: var(--t-small);
}
.section--wash .price-lines li { background: var(--bg); }
.price-lines span { font-size: var(--t-small); font-weight: 500; color: var(--ink); white-space: nowrap; }
.price-card {
  background: var(--bg-soft); border-radius: var(--r-card);
  padding: clamp(22px, 2vw, 30px); display: flex; flex-direction: column; gap: 12px;
  transition: background var(--fast) var(--ease);
}
.section--wash .price-card { background: var(--bg); }
.price-card p { color: var(--ink-2); font-size: var(--t-small); flex: 1; }
.price-card .button { margin-top: 4px; }
.price-placeholder { font-size: var(--t-small); font-weight: 500; color: var(--ink-3); }

.kpi { display: grid; gap: 4px; }
.kpi strong { font-family: 'JB', monospace; font-weight: 500; font-size: 20px; }
.kpi span { color: var(--ink-2); font-size: var(--t-small); }

/* ===== Таблицы: чередование заливок вместо линий ===== */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-small); }
th {
  font-size: var(--t-cap); font-weight: 500; color: var(--ink-3); text-align: left;
  padding: 12px 18px;
}
td { padding: 14px 18px; vertical-align: top; color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 500; }
tbody tr:nth-child(odd) td { background: var(--bg-soft); }
.section--wash tbody tr:nth-child(odd) td { background: var(--bg); }
tbody tr td:first-child { border-radius: var(--r-chip) 0 0 var(--r-chip); }
tbody tr td:last-child { border-radius: 0 var(--r-chip) var(--r-chip) 0; }

/* ===== Каталог: витрина и карточка серии ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.product-tile {
  /* Элемент сетки не сжимается ниже своего содержимого: длинное название
     распирает колонку, и на узком экране страница уезжает вбок. */
  min-width: 0;
  position: relative;
  background: var(--bg-soft); border-radius: var(--r-card);
  padding: clamp(18px, 1.6vw, 26px); display: flex; flex-direction: column; gap: 6px;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.section--wash .product-tile { background: var(--bg); }
.product-tile:hover { background: var(--bg-tint); transform: translateY(-2px); }
.product-tile.is-hidden { display: none; }
.product-media { height: 250px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.product-media img { max-height: 100%; width: auto; max-width: 92%; object-fit: contain; }
.product-tile h3 { font-size: 16.5px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.product-tile h3 a::after { content: ''; position: absolute; inset: 0; }
.product-tile:hover h3 a { color: var(--accent); }
.product-purpose { color: var(--ink-3); font-size: var(--t-cap); }
.product-price { color: var(--ink-2); font-size: var(--t-cap); }
.product-price .num { font-size: var(--t-small); color: var(--ink); }
.product-tile .card-link { margin-top: 10px; }
.product-empty { color: var(--ink-2); background: var(--bg-tint); border-radius: var(--r-card); padding: 18px 22px; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center;
  justify-content: space-between; margin-bottom: 26px;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 10px 18px; font-size: var(--t-small); font-weight: 500;
  background: var(--bg-soft); border-radius: var(--r-ui);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.section--wash .filter-chip { background: var(--bg); }
.filter-chip:hover { background: var(--bg-tint); }
.filter-chip.is-active { background: var(--accent); color: var(--bg); }
.filter-selects { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.filter-select { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-cap); color: var(--ink-3); }
.filter-select select {
  background: var(--bg-soft); border: 0; border-radius: var(--r-ui);
  padding: 10px 14px; font-size: var(--t-small); color: var(--ink);
  transition: background var(--fast) var(--ease);
}
.filter-select select:hover { background: var(--bg-tint); }
.filter-select select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Витрина каталога с отбором =====
   Отбор считается на сервере, состояние живёт в адресе. Панель – обычная
   форма и ссылки, поэтому витрина работает и без скрипта: скрипт добавляет
   только шторку на телефоне. */
.showcase-inner { display: grid; grid-template-columns: 268px 1fr; gap: 34px; align-items: start; }

.showcase-open { display: none; }

.showcase-side {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 20px 18px; position: sticky; top: 16px;
}
.showcase-side-head { display: flex; align-items: center; margin-bottom: 16px; }
/* Заголовок панели – h2, а не жирный текст: без него страница прыгает
   с h1 сразу на h3, и читалка с экрана теряет порядок разделов. */
.showcase-side-head h2 { font-size: var(--t-h3); font-weight: 700; letter-spacing: 0; }
.showcase-reset { margin-left: auto; font-size: var(--t-cap); color: var(--accent); font-weight: 500; }
.showcase-reset:hover { color: var(--accent-press); }
.showcase-close { display: none; }

.showcase-group + .showcase-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.showcase-group h3 { font-size: var(--t-small); font-weight: 500; margin-bottom: 4px; }
.showcase-hint { font-size: var(--t-cap); color: var(--ink-3); line-height: 1.45; margin-bottom: 10px; }

.showcase-option {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
  font-size: var(--t-small); color: var(--ink-2);
  transition: color var(--fast) var(--ease);
}
.showcase-option:hover { color: var(--ink); }
.showcase-option--nested { padding-left: 27px; font-size: var(--t-cap); }
.showcase-option-name { min-width: 0; }
.showcase-option-count { margin-left: auto; color: var(--ink-3); font-size: var(--t-cap); }
.showcase-box {
  width: 17px; height: 17px; flex: none; position: relative;
  border: 1.5px solid var(--line); border-radius: 5px;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.showcase-option:hover .showcase-box { border-color: var(--accent); }
.showcase-option.is-on { color: var(--ink); font-weight: 500; }
.showcase-option.is-on .showcase-box { background: var(--accent); border-color: var(--accent); }
.showcase-option.is-on .showcase-box::after {
  content: ''; position: absolute; inset: 4px;
  border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -1px);
}
.showcase-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.showcase-range { display: flex; gap: 8px; }
.showcase-range input {
  width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 10px; font-size: var(--t-small); color: var(--ink-2); background: var(--bg);
}
.showcase-range input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.showcase-apply {
  margin-top: 10px; width: 100%; border: 0; border-radius: var(--r-ui);
  background: var(--bg-soft); color: var(--accent); cursor: pointer;
  padding: 11px; font: 500 var(--t-small)/1 'Basis', system-ui, sans-serif;
  transition: background var(--fast) var(--ease);
}
.showcase-apply:hover { background: var(--bg-tint); }

.showcase-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 18px; }
.showcase-found { font-size: var(--t-small); color: var(--ink-3); }
.showcase-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.showcase-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border-radius: var(--r-chip);
  padding: 7px 12px; font-size: var(--t-cap); color: var(--ink-2);
  transition: background var(--fast) var(--ease);
}
.showcase-chip:hover { background: var(--bg-tint); color: var(--ink); }
.showcase-chip-x { color: var(--ink-3); }
.showcase-sort { margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: var(--t-small); color: var(--ink-3); }
.showcase-sort-link {
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 13px;
  color: var(--ink-2); transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.showcase-sort-link:hover { border-color: var(--accent); color: var(--accent); }
.showcase-sort-link.is-on { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 500; }

.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.showcase-card {
  /* Элемент сетки по умолчанию не сжимается ниже своего содержимого, и на
     узком экране колонка распирает контейнер: страница уезжает вбок. */
  min-width: 0;
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 15px;
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.showcase-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.showcase-media {
  height: 168px; background: var(--bg-soft); border-radius: var(--r-chip);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.showcase-media img { max-height: 88%; width: auto; max-width: 90%; object-fit: contain; }
/* Позиция без фотографии: заглушка держит ряд ровным. Прятать место под кадр
   нельзя – в сетке, где у соседей фото есть, карточка проваливается. */
.showcase-card--noshot .showcase-media { background: var(--bg-soft); }
.showcase-noshot { width: 96px; height: 96px; opacity: 0.9; }
.showcase-brand { font-size: var(--t-cap); color: var(--accent); font-weight: 500; margin-bottom: 5px; }
.showcase-line { color: var(--ink-3); font-weight: 400; }
.showcase-card h3 { font-size: var(--t-small); font-weight: 500; line-height: 1.35; margin-bottom: 10px; overflow-wrap: anywhere; }
.showcase-card h3 a::after { content: ''; position: absolute; inset: 0; }
.showcase-card:hover h3 a { color: var(--accent); }
.showcase-facts { font-size: var(--t-cap); color: var(--ink-3); line-height: 1.55; margin-bottom: 14px; }
.showcase-price { margin-top: auto; color: var(--ink-3); font-size: var(--t-cap); }
.showcase-price .num { font-size: 1.16rem; color: var(--ink); }
.showcase-price--ask .num { font-size: var(--t-small); color: var(--ink-2); }

.showcase-empty { margin-top: 22px; color: var(--ink-2); background: var(--bg-soft); border-radius: var(--r-card); padding: 18px 22px; }
.showcase-empty a { color: var(--accent); font-weight: 500; }

/* Кнопка «Показать ещё»: дописывает следующую порцию карточек к показанным.
   Ширину не растягиваем на всю сетку – кнопка во весь экран читается как
   отдельный экран, а это продолжение того же списка. */
.showcase-more {
  display: block; width: fit-content; margin: 26px auto 0;
  border: 1px solid var(--accent); border-radius: var(--r-ui);
  padding: 12px 28px; color: var(--accent);
  font-size: var(--t-small); font-weight: 500;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.showcase-more:hover { background: var(--accent); color: var(--bg); }
/* Пропуск в номерах. Не ссылка и не кнопка: нажимать там нечего. */
.showcase-gap { padding: 9px 2px; color: var(--ink-3, var(--ink-2)); opacity: 0.7; }

.showcase-pages {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px;
  /* Дорожка справа под кнопку «наверх»: она висит поверх экрана и иначе
     накрывает крайние номера страниц, по ним нельзя попасть. */
  padding-right: 64px;
}
.showcase-pages:empty { display: none; }
.showcase-page {
  min-width: 40px; text-align: center; border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 12px; font-size: var(--t-small); color: var(--ink-2);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.showcase-page:hover { border-color: var(--accent); color: var(--accent); }
.showcase-page.is-on { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 500; }

.product-hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--gap-wide); align-items: start; }
.product-object {
  background: var(--bg-soft); border-radius: var(--r-plate);
  padding: clamp(24px, 2.4vw, 40px); justify-self: stretch;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.product-object img { max-height: clamp(280px, 40vh, 420px); width: auto; max-width: 100%; object-fit: contain; }
.product-object figcaption { font-size: var(--t-small); font-weight: 500; color: var(--ink-2); text-align: center; }
/* Панель характеристик: плита с заливкой */
.facts-panel { background: var(--bg-soft); border-radius: var(--r-card); padding: clamp(20px, 2vw, 28px); margin-top: 26px; }
.section--wash .facts-panel { background: var(--bg); }
.facts-head { font-size: var(--t-cap); font-weight: 500; color: var(--ink-3); padding-bottom: 10px; }
.facts-panel--list .check-list li:first-child { padding-top: 0; }
.facts-panel--list .check-list li:first-child::before { top: 8px; }
.facts-note { margin-top: 14px; color: var(--ink-2); font-size: var(--t-small); max-width: 70ch; }
/* Внутри панели характеристик таблица идёт без зебры: чередование заливок
   спорило бы с самой плитой. Класса в селекторе достаточно, !important не нужен. */
.facts-panel tbody tr:nth-child(odd) td,
.section--wash .facts-panel tbody tr:nth-child(odd) td { background: none; }
.product-facts th { width: 34%; padding: 10px 0; }
.product-facts td { padding: 10px 0; }
.product-note { margin-top: 14px; color: var(--ink-3); font-size: var(--t-cap); max-width: 58ch; }
.product-hero .inline-actions { margin-top: 24px; }

/* ===== Хлебные крошки ===== */
.breadcrumbs { padding: 20px 0 0; }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  font-size: var(--t-cap); color: var(--ink-3);
}
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--ink-3); }
.breadcrumbs a { transition: color var(--fast) var(--ease); }
.breadcrumbs a:hover { color: var(--accent); }

/* ===== Формы: поля заливкой, без рамок ===== */
.field { display: grid; gap: 7px; }
.field label, .field > span { font-size: var(--t-small); font-weight: 500; color: var(--ink-2); }
/* Поле, без которого заявку примут: помечается прямо в подписи. */
.field-optional { font-weight: 400; color: var(--ink-3); }
/* Поле обязано отличаться от плиты, на которой лежит: цвет заливки
   задаёт сама плита, а поле только его забирает. Иначе белое поле на
   белой плите видно лишь по подсказке внутри. */
.lead-form, .lead-aside, .modal-panel, .facts-panel, .sidebar { --field-bg: var(--bg); }
.section--wash .lead-form, .section--wash .lead-aside,
.section--wash .facts-panel, .section--wash .sidebar { --field-bg: var(--bg-soft); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--field-bg, var(--bg-soft)); border: 0; border-radius: var(--r-ui);
  padding: 14px 16px; font-size: 15.5px; color: var(--ink);
  transition: background var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { background: var(--bg-tint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: inset 0 0 0 2px var(--accent); background: var(--bg);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input[type="file"] { padding: 10px 12px; font-size: var(--t-small); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 500; margin-right: 12px; padding: 9px 16px;
  background: var(--bg-tint); color: var(--ink); border: 0; border-radius: var(--r-chip); cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.field input[type="file"]::file-selector-button:hover { background: var(--accent); color: var(--bg); }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { box-shadow: inset 0 0 0 2px var(--accent-press); }
.field-error { color: var(--accent-press); font-size: var(--t-cap); }
.field--check { gap: 6px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-small); color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.checkbox a { color: var(--accent); }
.checkbox a:hover { color: var(--accent-press); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--t-small); }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--ink); }
.form-status.is-error { color: var(--accent-press); }

/* ===== Форма заявки ===== */
.lead-form {
  background: var(--bg-soft); border-radius: var(--r-plate);
  padding: clamp(24px, 2.4vw, 36px); display: grid; gap: 18px;
}
.section--wash .lead-form { background: var(--bg); }
.lead-aside {
  background: var(--bg-soft); border-radius: var(--r-plate);
  padding: clamp(24px, 2.4vw, 36px);
}
.section--wash .lead-aside { background: var(--bg); }
.lead-aside h3 { margin-bottom: 10px; font-size: var(--t-h3); }
.lead-aside > p { color: var(--ink-2); font-size: var(--t-small); }
.lead-form--compact { padding: clamp(20px, 2vw, 28px); gap: 14px; }

/* ===== Модальное окно ===== */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal-backdrop {
  position: absolute; inset: 0; background: var(--veil);
  opacity: 0; transition: opacity var(--mid) var(--ease);
}
/* Окно рассчитано так, чтобы помещаться целиком: форма короткая, поля и
   промежутки ужаты. Прокрутка остаётся страховкой для совсем низких окон –
   без неё кнопка отправки оказалась бы за краем экрана. */
.modal-panel {
  position: relative; width: min(680px, 100%);
  max-height: min(94vh, 900px); overflow-y: auto;
  background: var(--bg-soft); border-radius: var(--r-plate);
  padding: clamp(20px, 2vw, 28px);
  transform: translateY(14px); opacity: 0;
  transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease);
}
@supports (max-height: 100dvh) {
  .modal-panel { max-height: min(94dvh, 900px); }
}
@media (max-width: 900px) {
  /* Панель отбора съедает всю ширину, поэтому уезжает в шторку.
     До включения скрипта она остаётся обычной формой на странице:
     без скрипта отбор всё равно работает. */
  .showcase-inner { grid-template-columns: 1fr; gap: 0; }
  .showcase-open {
    display: inline-flex; align-items: center; gap: 9px; align-self: start;
    border: 0; border-radius: var(--r-ui); background: var(--accent); color: var(--bg);
    padding: 12px 18px; margin-bottom: 16px; cursor: pointer;
    font: 500 var(--t-small)/1 'Basis', system-ui, sans-serif;
  }
  .showcase-side { position: static; margin-bottom: 22px; }
  .showcase-side[data-open="false"] { display: none; }
  .showcase-side[data-open="true"] {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 60;
    max-height: 84vh; overflow-y: auto; margin: 0;
    border: 0; border-radius: var(--r-plate) var(--r-plate) 0 0;
    background: var(--bg); padding: 18px 16px 20px;
    box-shadow: 0 -14px 40px rgba(15, 35, 80, 0.18);
  }
  .showcase-side[data-open="true"] .showcase-close {
    display: inline-block; border: 0; background: none; cursor: pointer;
    margin-left: 14px; padding: 0; color: var(--ink-3);
    font: 400 var(--t-cap)/1 'Basis', system-ui, sans-serif;
  }
  .showcase-veil { position: fixed; inset: 0; z-index: 59; background: var(--veil); }
  .showcase-sort { margin-left: 0; width: 100%; }

  @supports (max-height: 100dvh) {
    .modal-panel { max-height: 96dvh; }
  }
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-panel { transform: none; opacity: 1; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.modal-head h2 { font-size: clamp(1.3rem, 1.8vw, 1.65rem); }
.modal-head p { margin-top: 6px; color: var(--ink-2); font-size: var(--t-small); max-width: 48ch; }
.modal-close {
  position: relative; width: 44px; height: 44px; flex: none;
  background: var(--bg); border-radius: var(--r-ui); font-size: 0;
  transition: background var(--fast) var(--ease);
}
.modal-close::before, .modal-close::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 17px; height: 2px; background: var(--ink); border-radius: 2px;
}
.modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal-close:hover { background: var(--bg-tint); }
.modal-form { display: grid; gap: 14px; }
.modal-form .field input, .modal-form .field select { padding: 12px 14px; }
.modal-form .grid { gap: 14px; }

/* ===== Подвал ===== */
.site-footer { margin-top: var(--section-pad); background: var(--dark); color: var(--on-dark-2); }
.site-footer > .page { padding: clamp(40px, 5vw, 68px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.site-footer .brand-logo { height: 44px; }
.footer-brand p { margin-top: 18px; font-size: var(--t-small); max-width: 30ch; }
.footer-column { display: grid; gap: 10px; align-content: start; font-size: var(--t-small); }
.footer-column strong { color: var(--on-dark); font-size: var(--t-small); font-weight: 500; margin-bottom: 6px; }
.footer-column a { transition: color var(--fast) var(--ease); }
.footer-column a:hover { color: var(--on-dark); }
.footer-column span { color: var(--on-dark-soft); }
.footer-contacts .footer-phone { color: var(--on-dark); font-size: 17px; font-weight: 500; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  padding-top: 24px; font-size: var(--t-cap); color: var(--on-dark-soft);
}
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer .footer-bottom a { transition: color var(--fast) var(--ease); }
.site-footer .footer-bottom a:hover { color: var(--on-dark); }

/* ===== Наверх ===== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 30;
  width: 48px; height: 48px;
  background: var(--bg-soft); border-radius: var(--r-ui);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), background var(--fast) var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--bg-tint); }
.to-top::before {
  content: ''; position: absolute; left: 50%; top: 55%;
  width: 10px; height: 10px; border-left: 2px solid var(--ink); border-top: 2px solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ===== Появление секций ===== */
.section-reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease); }
.section-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tick-in { animation: none; }
  .section-reveal { opacity: 1; transform: none; transition: none; }
  .card:hover .card-media img { transform: none; }
}

/* ===== Планшет ===== */
@media (max-width: 1100px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }

  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .brand { margin-right: auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Мобильная ===== */
@media (max-width: 900px) {
  .header-shell { gap: 14px; min-height: 64px; }
  .header-actions .button { display: none; }
  .brand-logo { height: 40px; }

  /* Станция – приём для широкого экрана: на телефоне она съедает первый
     экран целиком. Остаются заголовок, строка предложения и кнопка. */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-object { display: none; }
  .hero-copy { padding: 26px 0 30px; }
  .hero-copy h1 { max-width: 14ch; }

  .page-hero--media .page-hero-inner, .page-hero--note .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero h1 { max-width: none; }

  .section-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-heading p { text-align: left; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  /* Каталог и проблемы в две колонки: описания уходят, остаются
     изображение и название. Блок падает с четырёх экранов до одного. */
  .grid--4, .grid--2col { grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid--4 .card > p, .grid--2col .card > p { display: none; }
  .grid--4 .card > h3, .grid--2col .card > h3 { font-size: 15.5px; }
  .grid--4 .card .card-link, .grid--2col .card .card-link { display: none; }
  /* В двух колонках кадр становится площе: при той же ширине колонки
     четыре ряда карточек занимают на треть экрана меньше. */
  .grid--4 .card-media, .grid--2col .card-media { aspect-ratio: 3 / 2; }
  .grid--4 .card, .grid--2col .card { gap: 6px; }

  .ways { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; left: 3px; right: auto; width: 2px; height: auto; }
  .step { padding: 0 0 24px 26px; }
  .step::before { top: 5px; }
  .step:last-child { padding-bottom: 6px; }

  .spread, .spread--flip { grid-template-columns: 1fr; gap: 24px; }
  .spread--flip .spread-media { order: 0; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .faq-band { grid-template-columns: 1fr; gap: 26px; }
  .analysis-band { grid-template-columns: 1fr; gap: 26px; }
  .check-list--wide { columns: 1; }

  .protocol { padding: 18px 18px 12px; }
  .protocol-row { grid-template-columns: 1fr auto; gap: 8px; padding: 9px 0; }
  .protocol-row i { grid-column: 1 / -1; }
  .faq details { padding: 2px 18px; }
  .faq summary { padding: 15px 0; }
  .lead-form, .modal-form { gap: 14px; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-media { height: 150px; }
  .product-tile h3 { font-size: 14.5px; }
  .product-tile .card-link { display: none; }
  .product-hero-inner { grid-template-columns: 1fr; }
  /* Таблица характеристик на узком экране становится парами строк:
     подпись сверху, значение под ней. Двумя колонками она не влезает. */
  .product-facts, .product-facts tbody, .product-facts tr, .product-facts th, .product-facts td { display: block; width: auto; }
  .product-facts th { padding: 12px 0 0; }
  .product-facts td { padding: 2px 0 10px; }
  .filter-bar { flex-direction: column; align-items: stretch; }

  .modal { padding: 0; align-items: end; }
  .modal-panel { width: 100%; max-height: 96vh; border-radius: var(--r-plate) var(--r-plate) 0 0; }
  /* На телефоне окно держится в одну ширину, поэтому полей становится
     больше по высоте: подпись под заголовком уходит, промежутки сжимаются –
     форма помещается целиком даже на низком экране. */
  .modal-head { margin-bottom: 12px; }
  .modal-head p { display: none; }
  .modal-form { gap: 12px; }
  .modal-form .grid { gap: 12px; }

  /* Подвал в одну колонку занимал на телефоне полтора экрана. Колонки
     ссылок встают парами, бренд и контакты держат всю ширину. */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 20px; padding-bottom: 24px; }
  .footer-brand, .footer-contacts { grid-column: 1 / -1; }
  .footer-brand p { margin-top: 12px; }
  .footer-column { gap: 8px; }
  .site-footer > .page { padding: 32px 0 22px; }
  .footer-bottom { flex-direction: column; padding-top: 18px; }

  table { table-layout: fixed; }
  th { padding: 10px 12px; }
  td { padding: 12px 12px; font-size: 14.5px; }
}

/* Нижняя граница адаптива. На 340px самое длинное слово в заголовках –
   «Многофункциональный» – не влезает в строку и рубится посередине,
   поэтому кегль заголовков здесь уменьшается. */
@media (max-width: 400px) {
  /* Нижняя граница адаптива: на 340px подписи полей переносятся в две
     строки, поэтому окно заявки ужимается ещё немного. */
  .modal-panel { padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .modal-form, .modal-form .grid { gap: 10px; }
  .modal-form .field { gap: 5px; }
  h1 { font-size: 1.6rem; }
  .hero-copy h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .page { width: calc(100vw - 32px); }
  .product-media { height: 128px; }
}

/* ===== Ответ на отправку формы без скрипта ===== */
/* Страница показывается только тем, у кого не отработал скрипт: заявка ушла
   обычной отправкой формы, и человеку надо сказать словами, что вышло. Ни
   шапки, ни подвала тут нет – это один экран с ответом и дорогой назад. */
.lead-reply { display: grid; min-height: 100vh; align-content: center; }
.lead-reply-box { max-width: 46rem; display: grid; gap: var(--gap); }
.lead-reply-box h1 { font-size: var(--t-h2); }
.lead-reply-box p { color: var(--ink-2); max-width: 38rem; }
.lead-reply-box .button { justify-self: start; }

/* ===== Уведомление о cookie ===== */
/* Плашка появляется один раз: согласие живёт в браузере посетителя и
   оператору не передаётся. Скрипт снимает hidden, класс is-open вешает
   следующим кадром – иначе переход не проигрывается. */
.cookie-note {
  position: fixed; left: 50%; bottom: 18px; z-index: 50;
  width: min(760px, calc(100vw - 32px));
  display: flex; align-items: center; gap: clamp(14px, 2vw, 28px);
  background: var(--bg-soft); border-radius: var(--r-card);
  padding: clamp(16px, 1.6vw, 22px) clamp(18px, 2vw, 26px);
  transform: translate(-50%, 14px); opacity: 0;
  transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease);
}
.cookie-note.is-open { transform: translate(-50%, 0); opacity: 1; }
/* Пока уведомление видно, страница резервирует под него место снизу:
   иначе подвал и последние ссылки оказываются под плашкой. */
body.has-cookie-note { padding-bottom: calc(var(--cookie-height, 96px) + 16px); }
.cookie-note p { color: var(--ink-2); font-size: var(--t-small); }
.cookie-note a { color: var(--accent); }
.cookie-note a:hover { color: var(--accent-press); }
.cookie-note .button { flex: none; background: var(--bg-tint); }
.cookie-note .button:hover { background: var(--accent); color: var(--bg); }

@media (max-width: 700px) {
  .showcase-grid { gap: 12px; }
  .showcase-media { height: 118px; }
  .showcase-card { padding: 11px; }
  .showcase-card h3 { font-size: var(--t-cap); }
  .showcase-facts { font-size: 12px; margin-bottom: 10px; }
  .showcase-price .num { font-size: var(--t-small); }
  .showcase-bar { gap: 10px; }
  .showcase-found { width: 100%; }

  .cookie-note {
    flex-direction: column; align-items: stretch; gap: 12px;
    bottom: 12px; padding: 16px 18px;
  }
  .cookie-note .button { width: 100%; }
  /* Кнопка «наверх» не должна перекрывать плашку. */
  .cookie-note:not([hidden]) ~ .to-top { display: none; }
}
