/* ============================================================================
   LABMATE. Дизайн-система сайта.

   Направление: «клинический инструмент». Острые кромки, волосяные линии вместо
   карточек-плашек, редакционная сетка, моноширинный шрифт для артикулов и цифр.
   Фирменные цвета взяты из печатного каталога 2026 и не меняются:
   тёмно-синий #13264F, коралловый #EE8889.

   ПРАВИЛО ФОРМЫ (одно на весь проект): все поверхности, поля ввода и кнопки
   имеют радиус 0. Полное скругление разрешено только статус-плашкам наличия.
   Смешивать другие радиусы нельзя.

   ПРАВИЛО ЦВЕТА: один акцент на весь сайт, коралловый. Синий это структурный
   цвет текста и хрома, не второй акцент.

   ТЕМА: одна на страницу. Светлая и тёмная переключаются системной настройкой,
   секции внутри страницы тему не инвертируют.
   ========================================================================== */

/* ─────────────────────────── Шрифты (самостоятельно размещены) ───────────── */
/* IBM Plex Sans и IBM Plex Mono, лицензия SIL OFL 1.1. Подмножества latin и
   cyrillic разделены через unicode-range, поэтому браузер качает только нужное. */

@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ────────────────────────────────── Токены ───────────────────────────────── */

:root {
  color-scheme: light dark;

  /* фирменные константы, одинаковые в обеих темах */
  --brand-navy: #13264f;
  --brand-coral: #ee8889;

  /* светлая тема */
  --paper: #fbfbfc;
  --surface: #ffffff;
  --surface-sunken: #f2f4f7;
  --ink: #131a26;
  --ink-soft: #4a566b;
  --ink-faint: #7b8699;
  --rule: #e2e6ec;
  --rule-strong: #c9d0da;
  --accent: #d8595c;
  --accent-soft: #fbeceb;
  --accent-ink: #ffffff;
  --ok: #1f6b46;
  --ok-soft: #e8f3ec;
  --warn: #7d5310;
  --warn-soft: #fbf1df;
  --err: #a32017;
  --err-soft: #fdeceb;
  /* Подложка под предметные фото. Снимки продукции сняты на белом, поэтому
     всегда лежат на светлой плашке и смешиваются с ней режимом multiply.
     В светлой теме плашка совпадает с поверхностью и незаметна. */
  --shot-plate: #ffffff;

  /* сетка и ритм */
  --page: 1320px;
  --gutter: clamp(18px, 4vw, 44px);
  --space-section: clamp(64px, 9vw, 132px);
  --space-block: clamp(28px, 4vw, 56px);
  --rule-w: 1px;

  /* типографическая шкала */
  --t--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --t-0: clamp(0.97rem, 0.95rem + 0.1vw, 1.05rem);
  --t-1: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
  --t-2: clamp(1.35rem, 1.15rem + 0.85vw, 1.85rem);
  --t-3: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem);
  /* Верхняя граница подобрана под заголовок из шести слов в две строки.
     Крупнее ставить нельзя: титул перестаёт попадать в первый экран. */
  --t-4: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --t-5: clamp(2.05rem, 1.4rem + 2.2vw, 2.75rem);

  --sans: 'Plex Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1120;
    --surface: #111a2c;
    --surface-sunken: #152034;
    --ink: #e8ecf4;
    --ink-soft: #a7b2c6;
    --ink-faint: #75829a;
    --rule: #22304a;
    --rule-strong: #354564;
    --accent: #f09a9b;
    --accent-soft: #2a1b23;
    --accent-ink: #1a0f10;
    --ok: #6ec898;
    --ok-soft: #14281d;
    --warn: #ddb063;
    --warn-soft: #2a2114;
    --err: #f09c93;
    --err-soft: #2d1614;
    --shot-plate: #eceff4;
  }
}

/* ─────────────────────────────────── База ───────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-0);
  line-height: 1.6;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Переносы внутри слова включаем только там, где реально бывают длинные токены
   (адреса, артикулы, e-mail). Глобальный break-word рвёт заголовки посреди слова. */
.dl-rows dd,
.suggest a,
.foot__list,
.prose code,
.ask__item,
.tag {
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
  /* заголовок не должен рваться посреди слова ни при какой ширине колонки */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.15em;
}

a {
  color: var(--ink);
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}
a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--brand-navy);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

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

/* ─────────────────────────── Иконки из спрайта Tabler ───────────────────── */

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: inline-block;
  vertical-align: -0.16em;
  stroke-width: 1.75;
}
.ic--lg {
  width: 1.6em;
  height: 1.6em;
}
.ic-flip {
  transform: scaleX(-1);
}

/* ───────────────────────────── Служебная типографика ────────────────────── */

.mono {
  font-family: var(--mono);
  font-variant-ligatures: none;
}

.kicker {
  margin: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: var(--t--1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  max-width: 62ch;
  font-size: var(--t-1);
  line-height: 1.5;
  color: var(--ink-soft);
}

.h-display {
  font-size: var(--t-4);
  letter-spacing: -0.03em;
}
.h-section {
  font-size: var(--t-3);
  margin-bottom: 0.6em;
}
.h-block {
  font-size: var(--t-2);
}
.h-item {
  font-size: var(--t-1);
  letter-spacing: -0.012em;
}

/* ───────────────────────────────── Секции ───────────────────────────────── */

.band {
  padding-block: var(--space-section);
}
.band--slim {
  padding-block: clamp(34px, 5vw, 64px);
}
.band--sunken {
  background: var(--surface-sunken);
}
.band--ruled {
  border-top: var(--rule-w) solid var(--rule);
}

.band__head {
  max-width: 68ch;
  margin-bottom: var(--space-block);
}
.band__sub {
  margin-block: var(--space-block) 1.4rem;
}
.band__after {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* ────────────────────────────────── Кнопки ──────────────────────────────── */
/* Радиус 0 по правилу формы. Единственное исключение это статус-плашки. */

.btn {
  --btn-bg: var(--brand-navy);
  --btn-fg: #fff;
  --btn-bd: var(--brand-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.75em 1.5em;
  border: var(--rule-w) solid var(--btn-bd);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease), transform 0.1s var(--ease);
}
.btn:hover {
  color: var(--btn-fg);
}
.btn:active {
  transform: translateY(1px);
}
.btn .ic {
  transition: transform 0.18s var(--ease);
}
.btn:hover .ic {
  transform: translateX(3px);
}

.btn--accent {
  --btn-bg: var(--accent);
  --btn-bd: var(--accent);
  --btn-fg: var(--accent-ink);
}
.btn--accent:hover {
  --btn-bg: var(--ink);
  --btn-bd: var(--ink);
  --btn-fg: var(--paper);
}

.btn--solid:hover {
  --btn-bg: var(--accent);
  --btn-bd: var(--accent);
  --btn-fg: var(--accent-ink);
}

.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--rule-strong);
}
.btn--line:hover {
  --btn-bd: var(--ink);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
}

.btn--sm {
  min-height: 38px;
  padding: 0.45em 1em;
  font-size: var(--t--1);
}
.btn--lg {
  min-height: 56px;
  padding: 0.9em 1.9em;
  font-size: var(--t-1);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  text-decoration: none;
  border-bottom: var(--rule-w) solid var(--rule-strong);
  padding-bottom: 2px;
}
.link-more:hover {
  border-color: var(--accent);
}
.link-more .ic {
  transition: transform 0.18s var(--ease);
}
.link-more:hover .ic {
  transform: translateX(4px);
}

/* ────────────────────────────────── Шапка ───────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  /* сначала плотный цвет как запас, затем полупрозрачный вариант для браузеров с color-mix */
  background: var(--paper);
  border-bottom: var(--rule-w) solid var(--rule);
}
@supports (backdrop-filter: blur(4px)) and (background: color-mix(in srgb, red 50%, blue)) {
  .masthead {
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(150%) blur(10px);
  }
}

.masthead__row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  flex: none;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  color: var(--brand-navy);
  text-decoration: none;
}
.wordmark b {
  color: var(--accent);
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .wordmark {
    color: var(--ink);
  }
}

.mainnav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
}
.mainnav__list {
  display: flex;
  gap: clamp(6px, 1.4vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.mainnav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  /* навигация обязана держаться в одну строку на десктопе */
  white-space: nowrap;
}
.mainnav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.mainnav__link:hover::after,
.mainnav__link[aria-current]::after {
  transform: scaleX(1);
}

.findbar {
  position: relative;
  flex: 0 1 230px;
  min-width: 0;
}
/* в узком диапазоне до мобильного меню поиск уступает место навигации */
@media (max-width: 1240px) and (min-width: 1081px) {
  .findbar {
    flex: 0 1 170px;
  }
  .masthead__tel {
    display: none;
  }
}
.findbar input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 12px;
  border: var(--rule-w) solid var(--rule-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--t--1);
}
.findbar input::placeholder {
  color: var(--ink-faint);
}
.findbar input:focus {
  outline: none;
  border-color: var(--accent);
}
.findbar__go {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.findbar__go:hover {
  color: var(--accent);
}

.suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 330px;
  overflow: auto;
  padding: 4px;
  background: var(--surface);
  border: var(--rule-w) solid var(--rule-strong);
  box-shadow: 0 18px 40px -20px rgb(19 26 38 / 40%);
}
.suggest a {
  display: block;
  padding: 8px 10px;
  font-size: var(--t--1);
  text-decoration: none;
}
.suggest a:hover {
  background: var(--surface-sunken);
}
.suggest__sku {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.suggest__none {
  padding: 8px 10px;
  font-size: var(--t--1);
  color: var(--ink-faint);
}

.masthead__tel {
  font-family: var(--mono);
  font-size: var(--t--1);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  place-items: center;
  border: var(--rule-w) solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 1080px) {
  .burger {
    display: grid;
  }
  .mainnav {
    display: none;
    order: 3;
    width: 100%;
    margin: 0;
    padding: 18px 0 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    border-top: var(--rule-w) solid var(--rule);
  }
  .mainnav.is-open {
    display: flex;
  }
  .masthead__row {
    flex-wrap: wrap;
    height: auto;
    padding-block: 14px;
  }
  .mainnav__list {
    flex-direction: column;
    gap: 2px;
  }
  .mainnav__link {
    padding: 10px 0;
    font-size: var(--t-1);
  }
  .findbar {
    flex: 1 1 auto;
  }
  .masthead__tel {
    font-size: var(--t-0);
  }
}

/* ─────────────────────────────── Титульный блок ─────────────────────────── */
/* Асимметричный сплит: текст слева, фотография справа до края экрана. */

.opening {
  position: relative;
  border-bottom: var(--rule-w) solid var(--rule);
}
.opening__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: stretch;
  gap: clamp(28px, 4vw, 60px);
  /* Сетка идёт во всю ширину, а левый отступ повторяет отступ .shell.
     Так правая колонка с фотографией доходит до края экрана без белой полосы. */
  padding-left: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
}
.opening__copy {
  /* Кап на верхний отступ: иначе титул уезжает к середине экрана.
     Ширина подобрана так, чтобы заголовок из 45 знаков лёг в две строки,
     а обе кнопки встали в один ряд. */
  padding-block: clamp(40px, 5vw, 72px) clamp(36px, 4.5vw, 64px);
  align-self: center;
  max-width: 42rem;
}
.opening__title {
  font-size: var(--t-5);
  letter-spacing: -0.032em;
  line-height: 1.02;
  margin-bottom: 0.65em;
}
.opening__text {
  max-width: 46ch;
  font-size: var(--t-1);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}
.opening__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.opening__media {
  position: relative;
  min-height: clamp(280px, 38vw, 520px);
  background: var(--surface-sunken);
  overflow: hidden;
}
.opening__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 94% 42%;
}

@media (max-width: 900px) {
  .opening__grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .opening__copy {
    max-width: none;
    padding-block: clamp(34px, 8vw, 56px) clamp(26px, 5vw, 40px);
  }
  .opening__media {
    min-height: 260px;
    margin-inline: calc(-1 * var(--gutter));
  }
}

/* ───────────────────────── Полоса фактов под титулом ────────────────────── */

.facts {
  border-bottom: var(--rule-w) solid var(--rule);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.facts__list li {
  padding: clamp(20px, 2.6vw, 30px) clamp(18px, 2.4vw, 34px);
  border-left: var(--rule-w) solid var(--rule);
  font-size: var(--t-0);
  line-height: 1.4;
  color: var(--ink-soft);
}
.facts__list li:first-child {
  border-left: 0;
  padding-left: 0;
}
.facts__n {
  display: block;
  margin-bottom: 0.35em;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
@media (max-width: 700px) {
  /* в одну колонку: при двух получается ряд 2 плюс 1 и полоса выглядит сломанной */
  .facts__list {
    grid-template-columns: 1fr;
  }
  .facts__list li {
    border-left: 0;
    border-top: var(--rule-w) solid var(--rule);
    padding-inline: 0;
  }
  .facts__list li:first-child {
    border-top: 0;
  }
}

/* ─────────────────── Каталог на главной: асимметричное бенто ─────────────── */

.showcase {
  display: grid;
  gap: var(--rule-w);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--rule);
  border: var(--rule-w) solid var(--rule);
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 250px;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background-color 0.2s var(--ease);
}
.tile:hover {
  background: var(--surface-sunken);
  color: inherit;
}
/* Ритм бенто на 4 позиции в трёх колонках, ровно 4 ячейки без пустот:
   строка 1 это широкая плюс узкая, строка 2 это узкая плюс широкая. */
.tile--w2 {
  grid-column: span 2;
  min-height: 330px;
}
/* Фото в обычном потоке, а не абсолютом: иначе длинный текст наезжает на снимок. */
.tile__img {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 0;
  height: 160px;
  padding: 10px;
  background: var(--shot-plate);
  pointer-events: none;
}
.tile--w2 .tile__img {
  height: 200px;
}
.tile__img img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s var(--ease);
}
.tile:hover .tile__img img {
  transform: scale(1.035);
}
.tile__body {
  position: relative;
  z-index: 1;
  max-width: 26ch;
}
.tile--w2 .tile__body {
  max-width: 32ch;
}
.tile__name {
  display: block;
  font-size: var(--t-1);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.4em;
}
.tile--w2 .tile__name {
  font-size: var(--t-2);
}
.tile__note {
  display: block;
  font-size: var(--t--1);
  line-height: 1.5;
  color: var(--ink-soft);
}
.tile__count {
  position: absolute;
  top: clamp(20px, 2.4vw, 32px);
  right: clamp(20px, 2.4vw, 32px);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile--w2 {
    grid-column: span 2;
    min-height: 300px;
  }
}
@media (max-width: 560px) {
  .showcase {
    grid-template-columns: 1fr;
  }
  .tile--w2 {
    grid-column: span 1;
  }
  .tile {
    min-height: 250px;
  }
}

/* ───────────── Контроль качества: редакционные строки с крупной цифрой ──── */

.proof {
  border-top: var(--rule-w) solid var(--rule-strong);
}
.proof__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 24ch) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(26px, 3.4vw, 44px);
  border-bottom: var(--rule-w) solid var(--rule);
}
.proof__n {
  font-family: var(--mono);
  font-size: var(--t-2);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.proof__name {
  margin: 0;
  font-size: var(--t-1);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.proof__text {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .proof__row {
    grid-template-columns: 3.2rem minmax(0, 1fr);
  }
  .proof__text {
    grid-column: 2;
  }
}

/* ─────────────────── Сплит «текст и фото» с сеткой 2 на 2 ───────────────── */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}
.duo--flip {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
}
.duo--flip .duo__media {
  order: -1;
}
.duo__media img {
  width: 100%;
  border: var(--rule-w) solid var(--rule);
  background: var(--surface-sunken);
}
.duo__media figcaption {
  margin-top: 0.7em;
  font-size: var(--t--1);
  color: var(--ink-faint);
}
.duo__media {
  margin: 0;
}

.pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-block: var(--space-block) 2rem;
  border-top: var(--rule-w) solid var(--rule);
}
.pairs > div {
  padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 26px) 0;
  border-bottom: var(--rule-w) solid var(--rule);
}
.pairs > div:nth-child(odd) {
  border-right: var(--rule-w) solid var(--rule);
}
.pairs > div:nth-child(even) {
  padding-left: clamp(18px, 2.2vw, 26px);
  padding-right: 0;
}
.pairs dt {
  font-size: var(--t-0);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.3em;
}
.pairs dd {
  margin: 0;
  font-size: var(--t--1);
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .duo,
  .duo--flip {
    grid-template-columns: 1fr;
  }
  .duo--flip .duo__media {
    order: 0;
  }
  .pairs {
    grid-template-columns: 1fr;
  }
  .pairs > div,
  .pairs > div:nth-child(even) {
    padding: 18px 0;
    border-right: 0;
  }
}

/* ───────────────────────────── Контактный блок ──────────────────────────── */

.reachout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.dl-rows {
  margin: 0;
  border-top: var(--rule-w) solid var(--rule-strong);
}
.dl-rows > div {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 26px);
  padding-block: 0.95rem;
  border-bottom: var(--rule-w) solid var(--rule);
}
.dl-rows dt {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.3em;
}
.dl-rows dd {
  margin: 0;
}
.dl-rows a {
  font-weight: 500;
}
.dl-rows--lg dd {
  font-size: var(--t-1);
}

@media (max-width: 860px) {
  .reachout {
    grid-template-columns: 1fr;
  }
  .dl-rows > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ─────────────────────────────── Хлебные крошки ─────────────────────────── */

.crumbs {
  border-bottom: var(--rule-w) solid var(--rule);
  font-size: var(--t--1);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  list-style: none;
  margin: 0;
  padding-block: 0.9rem;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 0.5em;
  color: var(--ink-faint);
}
.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--accent);
}
.crumbs [aria-current] span {
  color: var(--ink);
  font-weight: 500;
}

/* ──────────────────────────────── Каталог ───────────────────────────────── */

.catalog {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
.catalog__aside,
.catalog__list {
  min-width: 0;
}

.sift {
  border-top: var(--rule-w) solid var(--rule-strong);
}
.sift__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 0.9rem;
}
.sift__title {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sift__switch {
  display: none;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: var(--t--1);
  font-weight: 500;
  cursor: pointer;
}
.sift__body {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.6rem;
}
.sift__group {
  display: grid;
  gap: 0.5rem;
}
.sift__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sift input[type='search'],
.sift select {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: var(--rule-w) solid var(--rule-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--t--1);
}
.sift input:focus,
.sift select:focus {
  outline: none;
  border-color: var(--accent);
}
.sift__links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule-w) solid var(--rule);
}
.sift__links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 0.6rem 0;
  border-bottom: var(--rule-w) solid var(--rule);
  font-size: var(--t--1);
  text-decoration: none;
  color: var(--ink-soft);
}
.sift__links a:hover {
  color: var(--accent);
}
.sift__links a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}
.sift__links a[aria-current] .sift__num {
  color: var(--accent);
}
.sift__num {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
}
.sift__act {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.aside-cta {
  margin-top: 1.5rem;
  padding: clamp(18px, 2.2vw, 26px);
  border: var(--rule-w) solid var(--rule-strong);
}
.aside-cta h2 {
  font-size: var(--t-1);
  margin-bottom: 0.4em;
}
.aside-cta p {
  font-size: var(--t--1);
  color: var(--ink-soft);
}

.catalog__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 1rem;
  margin-bottom: var(--rule-w);
  border-bottom: var(--rule-w) solid var(--rule-strong);
}
.catalog__tally {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t--1);
  color: var(--ink-soft);
}
.catalog__tally b {
  color: var(--ink);
  font-weight: 500;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border: var(--rule-w) solid var(--rule-strong);
  font-size: var(--t--1);
  color: var(--ink-soft);
}
.tag a {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink-faint);
}
.tag a:hover {
  color: var(--err);
}

/* Сетка товаров: волосяные линии вместо карточек-плашек.
   Колонок ровно 3, потому что на странице 12 позиций: 12 делится на 3, 2 и 1,
   поэтому пустых ячеек в сетке не возникает.
   Рамку даёт box-shadow у самих позиций, а не фон контейнера: при неполном
   последнем ряду не остаётся серых ячеек-призраков. */
.items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rule-w);
}
.items--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: 0 0 0 var(--rule-w) var(--rule);
  transition: background-color 0.18s var(--ease);
}
.item:hover {
  background: var(--surface-sunken);
}
.item__shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 196px;
  padding: 16px;
  background: var(--shot-plate);
  overflow: hidden;
}
.item__shot img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s var(--ease);
}
.item:hover .item__shot img {
  transform: scale(1.04);
}
.item__shot--empty {
  font-size: var(--t--1);
  color: var(--ink-faint);
}
.item__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  padding: 0 18px 18px;
}
.item__sku {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  min-height: 1em;
}
.swatch {
  width: 11px;
  height: 11px;
  flex: none;
  border-radius: 50%;
}
.item__name {
  margin: 0;
  font-size: var(--t-0);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.item__name a {
  text-decoration: none;
}
.item__name a:hover {
  text-decoration: underline;
}
.item__note {
  margin: 0;
  font-size: var(--t--1);
  line-height: 1.5;
  color: var(--ink-soft);
}
.item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 0.8rem;
}

/* статус наличия: единственное место с полным скруглением */
.stock {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.stock--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.stock--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.stock--muted {
  background: var(--surface-sunken);
  color: var(--ink-soft);
}
.stock--new {
  background: var(--accent-soft);
  color: var(--accent);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2rem;
}
.pager a,
.pager span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: var(--rule-w) solid var(--rule-strong);
  font-family: var(--mono);
  font-size: var(--t--1);
  text-decoration: none;
  color: var(--ink);
}
.pager a:hover {
  border-color: var(--ink);
  background: var(--surface-sunken);
}
.pager .is-here {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.nothing {
  padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 40px);
  border: var(--rule-w) dashed var(--rule-strong);
  text-align: center;
}
.nothing h2 {
  font-size: var(--t-2);
}
.nothing p {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--ink-soft);
}
.nothing__act {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.4rem;
}

@media (max-width: 1180px) {
  .items--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .catalog {
    grid-template-columns: 1fr;
  }
  .sift__switch {
    display: block;
  }
  .sift__body {
    display: none;
  }
  .sift__body.is-open {
    display: grid;
  }
}
@media (max-width: 820px) {
  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .items,
  .items--four {
    grid-template-columns: 1fr;
  }
}

/* ───────────────────────────── Карточка товара ──────────────────────────── */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 68px);
  align-items: start;
}
.product__vis,
.product__info {
  min-width: 0;
}

.viewer__main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(280px, 40vw, 480px);
  padding: clamp(18px, 3vw, 40px);
  border: var(--rule-w) solid var(--rule);
  background: var(--shot-plate);
  overflow: hidden;
}
.viewer__main img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.viewer__strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rule-w);
  margin-top: var(--rule-w);
}
.viewer__thumb {
  width: 78px;
  height: 66px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: var(--rule-w) solid var(--rule);
  border-radius: 0;
  background: var(--shot-plate);
  cursor: pointer;
  overflow: hidden;
}
.viewer__thumb img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.viewer__thumb[aria-current='true'] {
  border-color: var(--accent);
}
.viewer--none {
  display: grid;
  place-items: center;
  height: 320px;
  border: var(--rule-w) dashed var(--rule-strong);
  color: var(--ink-faint);
}

.product__cat {
  margin: 0 0 0.8rem;
  font-family: var(--mono);
  font-size: var(--t--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.product__cat a {
  color: var(--accent);
  text-decoration: none;
}
.product__title {
  font-size: var(--t-3);
  margin-bottom: 1rem;
}
.product__note {
  max-width: 54ch;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.product__ask {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 1.6rem;
}
.product__price {
  padding: 1rem 0;
  border-top: var(--rule-w) solid var(--rule-strong);
  border-bottom: var(--rule-w) solid var(--rule);
}
.product__price b {
  display: block;
  font-size: var(--t-1);
  font-weight: 600;
}
.product__price span {
  font-size: var(--t--1);
  color: var(--ink-soft);
}
.product__docs h2 {
  font-size: var(--t-0);
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.7em;
}
.doclist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.doclist a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
}
.product__docs-none {
  font-size: var(--t--1);
  color: var(--ink-faint);
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}
.specs {
  border-top: var(--rule-w) solid var(--rule-strong);
}
.specs h2 {
  font-size: var(--t-1);
  padding-top: 1rem;
}
.specs table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t--1);
}
.specs th,
.specs td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0;
  border-bottom: var(--rule-w) solid var(--rule);
}
.specs th {
  width: 46%;
  padding-right: 1rem;
  font-weight: 400;
  color: var(--ink-faint);
}
.specs td {
  font-weight: 500;
}

.forms-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rule-w);
  background: var(--rule);
  border: var(--rule-w) solid var(--rule);
}

@media (max-width: 960px) {
  .product,
  .detail,
  .forms-duo {
    grid-template-columns: 1fr;
  }
}

/* ───────────────────────────── Текстовые блоки ──────────────────────────── */

.prose {
  max-width: 68ch;
}
.prose h2 {
  font-size: var(--t-2);
  margin-top: 2em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: var(--t-1);
  margin-top: 1.7em;
}
.prose li {
  margin-bottom: 0.45em;
}
.prose li::marker {
  color: var(--accent);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.4em;
  font-size: var(--t--1);
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.8rem 0.7rem 0;
  border-bottom: var(--rule-w) solid var(--rule);
}
.prose thead th {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom-color: var(--rule-strong);
}
.prose code {
  padding: 1px 5px;
  background: var(--surface-sunken);
  font-family: var(--mono);
  font-size: 0.88em;
}
.prose sup {
  font-size: 0.66em;
  line-height: 0;
}
.prose--wide {
  max-width: none;
}

/* ─────────────────────────────── Цифры и списки ─────────────────────────── */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: var(--rule-w) solid var(--rule-strong);
}
.figures > div {
  padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2vw, 26px);
  border-bottom: var(--rule-w) solid var(--rule);
  border-left: var(--rule-w) solid var(--rule);
}
.figures > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.figures b {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-2);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.figures span {
  display: block;
  margin-top: 0.5em;
  font-size: var(--t--1);
  line-height: 1.45;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .figures > div,
  .figures > div:first-child {
    padding-inline: 0 16px;
    border-left: 0;
  }
}

.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule-w) solid var(--rule-strong);
}
.stack-list > li {
  display: grid;
  grid-template-columns: minmax(0, 26ch) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 44px);
  padding-block: clamp(20px, 2.6vw, 32px);
  border-bottom: var(--rule-w) solid var(--rule);
}
.stack-list h3 {
  margin: 0;
  font-size: var(--t-1);
}
.stack-list p {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .stack-list > li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.plate {
  margin: var(--space-block) 0 0;
  max-width: 760px;
}
.plate img {
  width: 100%;
  border: var(--rule-w) solid var(--rule);
  background: var(--surface);
}
.plate figcaption {
  margin-top: 0.7em;
  font-size: var(--t--1);
  color: var(--ink-faint);
}

/* ───────────────────────────────── Контакты ─────────────────────────────── */

.details-box {
  margin-top: 1.8rem;
  border-top: var(--rule-w) solid var(--rule);
}
.details-box summary {
  padding: 0.9rem 0;
  font-weight: 500;
  cursor: pointer;
}
.details-box ul {
  margin: 0 0 1rem;
  padding-left: 1.1em;
  font-size: var(--t--1);
  color: var(--ink-soft);
}

.mapframe {
  border: var(--rule-w) solid var(--rule);
  background: var(--surface-sunken);
}
.mapframe iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 40vw, 440px);
  border: 0;
}

/* ──────────────────────────────── Формы ─────────────────────────────────── */

.formcard {
  padding: clamp(20px, 3vw, 34px);
  background: var(--surface);
  border: var(--rule-w) solid var(--rule);
}
.forms-duo .formcard {
  border: 0;
}

.ask__title {
  font-size: var(--t-1);
  margin-bottom: 0.4em;
}
.ask__note {
  font-size: var(--t--1);
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.ask__item {
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.2rem;
  background: var(--surface-sunken);
  font-size: var(--t--1);
}
.ask__item span {
  font-family: var(--mono);
  color: var(--ink-faint);
}
.ask__hint {
  font-size: var(--t--1);
  color: var(--ink-faint);
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.fields .field {
  margin-bottom: 0;
}
.field > label {
  font-size: var(--t--1);
  font-weight: 500;
  color: var(--ink-soft);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: var(--rule-w) solid var(--rule-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-0);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea {
  min-height: 104px;
  resize: vertical;
}
.field--bad input,
.field--bad textarea {
  border-color: var(--err);
  background: var(--err-soft);
}
.field__err {
  margin: 0;
  font-size: var(--t--1);
  font-weight: 500;
  color: var(--err);
}
.field--agree label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--t--1);
  font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer;
}
.field--agree input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--accent);
}

.notice {
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
  border: var(--rule-w) solid var(--rule-strong);
  font-size: var(--t--1);
}
.notice p {
  margin: 0;
}
.notice--error {
  border-color: var(--err);
  background: var(--err-soft);
  color: var(--err);
}
.notice--success {
  border-color: var(--ok);
  background: var(--ok-soft);
  color: var(--ok);
}
.notice--info {
  background: var(--surface-sunken);
  color: var(--ink-soft);
}

@media (max-width: 620px) {
  .fields {
    grid-template-columns: 1fr;
  }
}

/* ───────────────────── Страницы «спасибо» и ошибки ──────────────────────── */

.midpage {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
.midpage__mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.4rem;
  border: var(--rule-w) solid var(--accent);
  color: var(--accent);
}
.midpage h1 {
  font-size: var(--t-3);
}
.midpage p {
  color: var(--ink-soft);
}
.midpage__act {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.8rem;
}
.midpage__code {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: var(--t-4);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}

/* ──────────────────────────────── Подвал ────────────────────────────────── */
/* Тема не инвертируется: подвал та же бумага, отделён линией. */

.foot {
  border-top: var(--rule-w) solid var(--rule-strong);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: 2rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 48px);
}
.foot__brand .wordmark {
  font-size: 1.2rem;
}
.foot__tag {
  margin: 1rem 0 0.5rem;
  font-size: var(--t--1);
  color: var(--ink-soft);
  max-width: 30ch;
}
.foot__legal {
  margin: 0;
  font-size: var(--t--1);
  color: var(--ink-faint);
}
.foot__title {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foot__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: var(--t--1);
}
.foot__list a {
  text-decoration: none;
  color: var(--ink-soft);
}
.foot__list a:hover {
  color: var(--accent);
}
.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 1.2rem;
  border-top: var(--rule-w) solid var(--rule);
  font-size: var(--t--1);
  color: var(--ink-faint);
}
.foot__bottom p {
  margin: 0;
  max-width: 60ch;
}

@media (max-width: 900px) {
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .foot__grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────── Появление при прокрутке ──────────────────────── */
/* MOTION_INTENSITY 4: только прозрачность и сдвиг, через IntersectionObserver.
   Класс js-on ставит скрипт, поэтому без JS контент виден сразу. */

.js-on [data-rise] {
  opacity: 0;
  transform: translateY(18px);
}
.js-on [data-rise].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--rise-delay, 0ms);
}
/* Лестница задержек задаётся здесь, а не инлайновым style: CSP запрещает
   style-атрибуты, а нам нужен строгий style-src 'self'. */
.js-on [data-rise]:nth-child(2) {
  --rise-delay: 60ms;
}
.js-on [data-rise]:nth-child(3) {
  --rise-delay: 120ms;
}
.js-on [data-rise]:nth-child(4) {
  --rise-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js-on [data-rise] {
    opacity: 1;
    transform: none;
  }
}

/* ──────────────────────────────── Печать ────────────────────────────────── */

@media print {
  .masthead,
  .foot,
  .product__ask,
  .forms-duo,
  .sift,
  .aside-cta,
  .pager,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .catalog {
    grid-template-columns: 1fr;
  }
}
