/* ==========================================================================
   Прометей — стили главной страницы
   Фирменный стиль: PROMETEY BLUE + PROMETEY MINT + WHITE (брендбук).
   Концепт «Технический лист». Обычный CSS, без препроцессоров и сборки.

   Порядок: шрифт → токены → база → типографика → каркас → шапка, поиск,
   меню → слоты фото → секции главной сверху вниз → подвал → заглушки.
   Брейкпоинты: 640 / 768 / 1024 / 1280 / 1440 px, mobile-first.
   ========================================================================== */

/* --- 0. Шрифт -----------------------------------------------------------
   Inter (оптические размеры), лицензия OFL — assets/fonts/LICENSE-Inter.txt.
   Файлы лежат локально: сайт работает без интернета.                       */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-cyrillic-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-opsz-normal.woff2) format("woff2-variations");
  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;
}

/* --- 1. Токены ----------------------------------------------------------
   Фирменные цвета задаются ТОЛЬКО здесь: --brand (#2C3877, RGB 44 56 119)
   и --mint (#78C5B3, RGB 120 197 179). Значения рядом с ними — производные
   оттенки для интерфейса, а не новые фирменные цвета.
   Мятный — 2:1 на белом: на светлом фоне только заливки, линии и метки;
   текстом — только на синем.                                               */

:root {
  --ink: #151826;
  --ink-2: #3a3f55;
  --ink-3: #525870;
  --ink-4: #636a80;

  --line: #e3e5ec;
  --line-strong: #cdd1dc;

  --surface: #ffffff;
  --paper: #f7f7f5;
  --mist: #f1f3f6;
  --mist-2: #e8ebf0;

  /* Фирменный синий — основной цвет */
  --brand: #2c3877;
  --brand-strong: #232d64; /* производный: наведение, глубина синих полос */
  --brand-tint: #eceef7;   /* производный: светлый фон выбранного */

  /* Фирменный мятный — поддерживающий акцент */
  --mint: #78c5b3;
  --mint-ink: #24604f;     /* производный: мятный текст на светлом */
  --mint-tint: #e6f4f0;    /* производный: светлый фон состояния */

  /* Шкала текста — одна на весь сайт */
  --t-micro: 0.75rem;
  --t-meta: 0.8125rem;
  --t-small: 0.875rem;
  --t-body: 1rem;
  --t-lead: 1.125rem;
  --t-title: 1.25rem;

  --font: "Inter Variable", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --page: 1440px;
  --gutter: 20px;
  --gap: 32px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; --header-h: 72px; }
}

/* --- 2. База ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; border-color: var(--line); }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-feature-settings: "cv05" 1, "ss03" 1;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--mint); }

input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.visually-hidden {
  position: absolute; 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: 12px; top: -60px; z-index: 60;
  padding: 8px 16px; border-radius: 3px; background: var(--brand); color: #fff; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* --- 3. Типографика ----------------------------------------------------- */

/* Подпись над заголовком — строчными: меньше «кричащих» капслоков */
.eyebrow { font-size: var(--t-meta); line-height: 1.3; font-weight: 500; color: var(--ink-3); }
/* Капслок — только служебные метки (например, «ФОТО» в слоте) */
.caps { font-size: 0.6875rem; line-height: 1; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.index {
  font-size: var(--t-micro); line-height: 1; font-weight: 500;
  letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.55; letter-spacing: -0.006em; color: var(--ink-2);
}
.display-xl {
  font-size: clamp(3.2rem, 1rem + 8vw, 9rem);
  line-height: 0.9; letter-spacing: -0.05em; font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
}
.display-lg {
  font-size: clamp(1.875rem, 1.35rem + 1.45vw, 2.75rem);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 600;
  text-wrap: balance;
}
.display-md {
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 600;
  text-wrap: balance;
}
.muted { color: var(--ink-4); }
.muted-sm { font-size: var(--t-micro); color: var(--ink-4); }
.mint { color: var(--mint); }

/* --- 4. Каркас ---------------------------------------------------------- */

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

/* Два ритма отступов: крупные секции первых экранов и спокойные нижние */
.section { position: relative; isolation: isolate; padding: 80px 0; }
.section--md { padding: 64px 0; }
.section--mist { background: var(--mist); }
.section--paper { background: var(--paper); }
/* Фирменная синяя полоса: сдержанный тональный градиент из того же синего */
.section--brand {
  color: #fff; overflow: hidden;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand) 55%, var(--brand-strong) 100%);
}
@media (min-width: 768px) { .section { padding: 96px 0; } .section--md { padding: 80px 0; } }
@media (min-width: 1024px) { .section { padding: 128px 0; } .section--md { padding: 96px 0; } .selector { padding: 112px 0; } }

/* Шапка секции: волосяная линия, номер листа, заголовок фирменным синим */
.shead { display: grid; row-gap: 20px; }
.shead__rule {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line-strong);
}
.shead__index { color: var(--brand); }
.shead__title { color: var(--brand); }
.shead__aside { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) {
  .shead { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .shead__rule { grid-column: 1 / -1; }
  .shead__title { grid-column: span 7; }
  .shead__aside { grid-column: 8 / span 5; padding-top: 6px; }
}
@media (min-width: 1280px) {
  .shead__aside { grid-column: 9 / span 4; }
}
.on-dark .shead__rule { border-color: rgba(255, 255, 255, 0.2); }
.on-dark .shead__index { color: var(--mint); }
.on-dark .eyebrow { color: rgba(255, 255, 255, 0.75); }
.on-dark .lead { color: rgba(255, 255, 255, 0.8); }
.on-dark .shead__title { color: #fff; }

/* Технический растр (только заглушки разделов) */
.tech-grid {
  background-image:
    linear-gradient(to right, rgba(21, 24, 38, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 24, 38, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.mask-fade {
  -webkit-mask-image: radial-gradient(ellipse 78% 74% at 50% 44%, #000 38%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 74% at 50% 44%, #000 38%, transparent 100%);
}

/* Фирменный мотив «полимерная цепь» — орнамент полей синих полос */
.chain { position: absolute; z-index: -1; display: none; height: auto; pointer-events: none; }
.chain__lines { fill: none; stroke: rgba(255, 255, 255, 0.25); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.chain__node { fill: var(--brand); stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.2; }
.chain__leaf { fill: rgba(255, 255, 255, 0.3); }
.chain__mint { fill: var(--mint); }
.chain-mark { flex-shrink: 0; }
.chain-mark polyline { fill: none; stroke: color-mix(in srgb, var(--brand) 50%, transparent); stroke-width: 1.2; }
.chain-mark circle { fill: var(--brand); }
.chain-mark .is-mint { fill: var(--mint); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 44px; padding: 0 20px; border-radius: 3px; border: 1px solid transparent;
  font-size: var(--t-small); font-weight: 500; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { height: 56px; padding: 0 28px; font-size: var(--t-body); }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); }
.btn .ico-arrow { transition: transform 0.2s; }
.btn:hover .ico-arrow { transform: translateX(2px); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--t-body); font-weight: 500; color: var(--brand); transition: color 0.2s;
}
.arrow-link:hover { color: var(--brand-strong); }
.arrow-link .ico-arrow { transition: transform 0.2s; flex-shrink: 0; }
.arrow-link:hover .ico-arrow { transform: translateX(4px); }
.arrow-link--ink { color: var(--ink); }
.arrow-link--ink:hover { color: var(--brand); }
.arrow-link--light { color: #fff; white-space: nowrap; }
.arrow-link--light:hover { color: var(--mint); }


/* --- 6. Шапка ----------------------------------------------------------- */

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-scrolled, .header.is-search { border-bottom-color: var(--line); }
.header__inner {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--page); height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter);
}
.header__logo { flex-shrink: 0; padding: 8px 0; margin: -8px 0; }
.header__logo img { display: block; height: 44px; width: auto; max-width: none; }
.header__nav { display: none; }
.header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header__phone { display: none; padding: 0 8px; font-size: var(--t-small); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; transition: color 0.2s; }
.header__phone:hover { color: var(--brand); }
.header__cta { display: none; margin-left: 8px; }

.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 3px; color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--mist); color: var(--brand); }
.burger { margin-right: -8px; }

@media (min-width: 640px) {
  .header__actions { gap: 8px; }
  .icon-btn--phone { display: none; }
  .header__cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .header__logo img { height: 52px; }
}
@media (min-width: 1280px) {
  .header__inner { gap: 32px; }
  .header__nav { display: flex; flex: 1; min-width: 0; align-items: center; gap: 20px; }
  .header__nav a {
    position: relative; flex-shrink: 0; padding: 8px 0;
    font-size: var(--t-meta); font-weight: 500; color: var(--ink-2); transition: color 0.2s;
  }
  .header__nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
    background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.2s;
  }
  .header__nav a:hover { color: var(--brand); }
  .header__nav a.is-key { font-weight: 600; color: var(--brand); }
  .header__nav a:hover::after { transform: scaleX(1); }
  .header__actions { margin-left: 0; }
  .burger { display: none; }
}
@media (min-width: 1440px) {
  .header__phone { display: inline-block; }
}

/* --- Поиск -------------------------------------------------------------- */

.search { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; }
.search[hidden] { display: none; }
.search__scrim {
  position: absolute; left: 0; right: 0; top: 100%; height: 100vh;
  background: rgba(21, 24, 38, 0.25); cursor: default;
}
.search__panel {
  position: relative; background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -32px rgba(21, 24, 38, 0.45);
  padding: 24px 0 32px;
}
.search__bar {
  display: flex; align-items: center; gap: 16px;
  margin-top: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); color: var(--ink-3);
}
.search__bar svg { flex-shrink: 0; }
.search__bar input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: var(--t-title); font-weight: 500; letter-spacing: -0.015em; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.search__bar input::placeholder { font-weight: 400; color: var(--ink-4); }
.search__close { flex-shrink: 0; font-size: var(--t-small); font-weight: 500; color: var(--ink-3); }
.search__close:hover { color: var(--ink); }
.search__body { margin-top: 24px; }
.search__body .eyebrow { color: var(--ink-4); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 3px;
  font-size: var(--t-small); color: var(--ink-2); transition: color 0.2s, border-color 0.2s;
}
.chip-link:hover { border-color: var(--brand); color: var(--brand); }
.search__results { display: grid; gap: 32px; }
.search__results[hidden] { display: none; }
.search__results ul { margin-top: 12px; border-top: 1px solid var(--line); }
.search__results li { border-bottom: 1px solid var(--line); }
.search__results a { display: block; padding: 12px 0; }
.search__results a b { display: block; font-size: var(--t-body); font-weight: 500; color: var(--ink); transition: color 0.2s; }
.search__results a:hover b { color: var(--brand); }
.search__results a span { display: block; margin-top: 2px; font-size: var(--t-meta); color: var(--ink-4); }
.search__none { font-size: var(--t-body); color: var(--ink-3); }
.search__note { margin-top: 24px; font-size: var(--t-meta); color: var(--ink-4); }
@media (min-width: 768px) {
  .search__bar input { font-size: 1.75rem; }
  .search__results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) { .search__panel { padding: 32px 0 40px; } }

/* --- Мобильное меню ----------------------------------------------------- */

.menu {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; background: var(--surface);
}
.menu[hidden] { display: none; }
.menu__top {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; flex-shrink: 0; padding: 0 var(--gutter); border-bottom: 1px solid var(--line);
}
.menu__top img { display: block; height: 44px; width: auto; max-width: none; }
.menu__top .icon-btn { margin-right: -8px; }
.menu__nav { flex: 1; overflow-y: auto; padding: 16px var(--gutter); }
.menu__nav li { border-bottom: 1px solid var(--line); }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0;
  font-size: var(--t-title); font-weight: 500; letter-spacing: -0.015em; transition: color 0.2s;
}
.menu__nav a:hover { color: var(--brand); }
.menu__nav .index { width: 24px; color: var(--ink-4); }
.menu__foot { flex-shrink: 0; padding: 24px var(--gutter); background: var(--mist); border-top: 1px solid var(--line); }
.menu__phone { display: block; font-size: var(--t-title); font-weight: 600; letter-spacing: -0.01em; }
.menu__mail { display: block; margin-top: 12px; font-size: var(--t-small); color: var(--ink-3); }
.menu__actions { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 640px) { .menu__actions { grid-template-columns: 1fr 1fr; } }

/* --- 7. Слот под фотографию ---------------------------------------------
   Студийная подложка (тот же фон просим у фотографа), угловые метки
   и подпись — что снимать. Замените .photo__slot на <img>: размеры
   и вписывание уже заданы родителем.                                       */

.photo {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 38% at 50% 84%, rgba(255, 255, 255, 0.85), transparent 70%),
    linear-gradient(180deg, #f4f5f8 0%, #eceef3 58%, #e3e6ec 100%);
}
/* Слот на фирменной синей полосе: та же синяя плоскость, чуть светлее */
.photo--brand {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 255, 255, 0.07), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.035) 100%);
}
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--contain > img { object-fit: contain; padding: 7%; }
.photo__slot { position: absolute; inset: 0; }
.photo__marks i { position: absolute; width: 16px; height: 16px; border: 0 solid rgba(21, 24, 38, 0.25); }
.photo--brand .photo__marks i { border-color: rgba(255, 255, 255, 0.35); }
.photo__marks i:nth-child(1) { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.photo__marks i:nth-child(2) { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.photo__marks i:nth-child(3) { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.photo__marks i:nth-child(4) { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
.photo__axes { position: absolute; inset: 0; width: 100%; height: 100%; }
/* осевые линии чертежа — мятные: техническая линия */
.photo__axes line { stroke: var(--mint); stroke-dasharray: 22 6 3 6; }
.photo__cap {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-size: var(--t-micro); line-height: 1; color: var(--ink-4);
}
.photo__cap > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo__cap .caps { margin-right: 6px; }
.photo--brand .photo__cap { color: rgba(255, 255, 255, 0.75); }

/* --- 8. Первый экран — «Лист 01» ---------------------------------------
   Доминирует продукт: лист с фото занимает 7 колонок и выходит за правый
   край сетки. Слева — кто, что, для кого, две кнопки и быстрые категории. */

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); }
.hero__grid { display: grid; row-gap: 40px; padding: 40px 0 56px; }
.hero__copy { display: flex; flex-direction: column; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; font-size: var(--t-meta); font-weight: 500; color: var(--ink-2); }
.hero__title-wrap { container-type: inline-size; margin-top: 24px; }
/* Размер заголовка — от ширины СВОЕЙ колонки: строки не разваливаются */
.hero__title {
  font-size: clamp(2.1rem, 9.4cqw, 3.75rem);
  line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; color: var(--ink);
}
.hero__title span { display: block; }
.hero__title .is-brand { color: var(--brand); }
.hero__lead { max-width: 44ch; margin-top: 24px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.hero__quick { display: none; }

.hero__sheet { margin: 0 calc(-1 * var(--gutter)); }
.sheet { position: relative; border-top: 1px solid rgba(21, 24, 38, 0.15); border-bottom: 1px solid rgba(21, 24, 38, 0.15); }
.sheet__zones-x, .sheet__zones-y { display: none; }
.sheet__photo { aspect-ratio: 5 / 4; }
.stamp { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-top: 2px solid var(--brand); }
.stamp__cell { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; }
.stamp__cell:nth-child(odd) { border-right: 1px solid rgba(21, 24, 38, 0.15); }
.stamp__cell:nth-child(-n + 2) { border-bottom: 1px solid rgba(21, 24, 38, 0.15); }
.stamp__value {
  margin-top: 4px; font-size: 1.75rem; line-height: 1; font-weight: 600;
  letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums lining-nums;
}
.stamp__approx { margin-right: 4px; font-weight: 400; opacity: 0.7; }
.stamp__unit { margin-left: 4px; font-size: 0.55em; font-weight: 500; letter-spacing: 0; }
.stamp__note { font-size: var(--t-meta); line-height: 1.35; color: var(--ink-2); }

@media (min-width: 640px) {
  .hero__grid { padding-top: 48px; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .sheet__photo { aspect-ratio: 3 / 2; }
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
    padding: 48px 0 64px;
  }
  .hero__copy { grid-column: span 5; padding-top: 4px; }
  .hero__title-wrap { margin-top: 32px; }
  .hero__quick { display: block; margin-top: auto; padding-top: 40px; }
  .hero__quick ul { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; border-top: 1px solid rgba(21, 24, 38, 0.15); }
  .hero__quick li { border-bottom: 1px solid rgba(21, 24, 38, 0.15); }
  .hero__quick li:nth-child(odd) { padding-right: 16px; border-right: 1px solid rgba(21, 24, 38, 0.15); }
  .hero__quick li:nth-child(even) { padding-left: 16px; }
  .hero__quick a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 56px; padding: 8px 0; font-size: var(--t-small); font-weight: 500; transition: color 0.2s;
  }
  .hero__quick a > span:first-child { display: flex; align-items: baseline; gap: 10px; }
  .hero__quick a .index { color: var(--brand); }
  .hero__quick a > span:last-child { color: var(--ink-4); transition: transform 0.2s, color 0.2s; }
  .hero__quick a:hover { color: var(--brand); }
  .hero__quick a:hover > span:last-child { color: var(--brand); transform: translateX(2px); }
  /* лист выходит за правый край сетки до края окна */
  .hero__sheet {
    grid-column: span 7;
    margin: 0 calc(-50vw + min(100vw, var(--page)) / 2 - var(--gutter)) 0 0;
  }
  .sheet { border: 0; padding: 28px 0 0 28px; }
  .sheet__zones-x {
    position: absolute; top: 0; left: 28px; right: 0; height: 28px;
    display: grid; grid-template-columns: repeat(6, 1fr);
  }
  .sheet__zones-y {
    position: absolute; top: 28px; left: 0; bottom: 0; width: 28px;
    display: grid; grid-template-rows: repeat(4, 1fr);
  }
  .sheet__zones-x span, .sheet__zones-y span {
    display: flex; align-items: center; justify-content: center;
    font-size: 0.625rem; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-4);
  }
  .sheet__zones-x span { border-left: 1px solid rgba(21, 24, 38, 0.12); }
  .sheet__zones-y span { border-top: 1px solid rgba(21, 24, 38, 0.12); }
  .sheet__body { border-top: 1px solid rgba(21, 24, 38, 0.25); border-left: 1px solid rgba(21, 24, 38, 0.25); }
  .sheet__photo { aspect-ratio: auto; height: clamp(24rem, 37vw, 34rem); }
}
@media (min-width: 1280px) {
  .hero__grid { padding-top: 56px; }
  .stamp { grid-template-columns: repeat(4, 1fr); }
  .stamp__cell { padding: 20px; }
  .stamp__cell:nth-child(-n + 2) { border-bottom: 0; }
  .stamp__cell:nth-child(-n + 3) { border-right: 1px solid rgba(21, 24, 38, 0.15); }
  .stamp__value { font-size: 2rem; }
}

/* --- 8а. Вариант: тёмный первый экран (index2.html) ---------------------
   Тот же «Лист 01» на фирменном синем — как чертёж-синька: белые волосяные
   линии, мятные осевые, факты штампа белым. Только модификатор .hero--dark:
   index.html не затрагивается. Шапка остаётся белой — у логотипа нет
   версии для тёмного фона.                                                 */

.hero--dark {
  color: #fff;
  background:
    radial-gradient(ellipse 55% 60% at 74% 38%, color-mix(in srgb, #fff 5%, transparent), transparent 72%),
    linear-gradient(180deg, var(--brand) 0%, var(--brand) 55%, var(--brand-strong) 100%);
}
.hero--dark .hero__eyebrow { color: rgba(255, 255, 255, 0.8); }
.hero--dark .chain-mark polyline { stroke: rgba(255, 255, 255, 0.5); }
.hero--dark .chain-mark circle { fill: #fff; }
.hero--dark .chain-mark .is-mint { fill: var(--mint); }
.hero--dark .hero__title { color: #fff; }
.hero--dark .hero__title .is-brand { color: var(--mint); }
/* Кнопки на синем: основная — белая с синим текстом, вторая — контурная */
.hero--dark .btn--primary { background: #fff; color: var(--brand); }
.hero--dark .btn--primary:hover { background: var(--brand-tint); }
.hero--dark .btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero--dark .btn--outline:hover { border-color: #fff; }

.hero--dark .sheet { border-color: rgba(255, 255, 255, 0.18); }
.hero--dark .stamp { background: color-mix(in srgb, var(--brand-strong) 55%, transparent); border-top-color: var(--mint); }
.hero--dark .stamp__cell { border-color: rgba(255, 255, 255, 0.15); }
.hero--dark .stamp__value { color: #fff; }
.hero--dark .stamp__approx { opacity: 0.75; }
.hero--dark .stamp__note { color: rgba(255, 255, 255, 0.75); }

@media (min-width: 1024px) {
  .hero--dark .hero__quick ul, .hero--dark .hero__quick li { border-color: rgba(255, 255, 255, 0.18); }
  .hero--dark .hero__quick a { color: #fff; }
  .hero--dark .hero__quick a .index { color: var(--mint); }
  .hero--dark .hero__quick a > span:last-child { color: rgba(255, 255, 255, 0.7); }
  .hero--dark .hero__quick a:hover, .hero--dark .hero__quick a:hover > span:last-child { color: var(--mint); }
  .hero--dark .sheet__zones-x span, .hero--dark .sheet__zones-y span { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.14); }
  .hero--dark .sheet__body { border-color: rgba(255, 255, 255, 0.3); }
}

/* --- 9. Каталог --------------------------------------------------------- */

.catalog { padding-top: 56px; }
@media (min-width: 768px) { .catalog { padding-top: 64px; } }

/* Телефон: приоритетные — на всю ширину, остальные — по две в ряд */
.catalog__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 16px; margin-top: 40px;
}
.catalog__grid > li { grid-column: span 1; }
.catalog__grid .span-7, .catalog__grid .span-5, .catalog__grid .is-wide { grid-column: span 2; }
@media (min-width: 640px) { .catalog__grid { column-gap: 24px; } }
@media (min-width: 768px) {
  .catalog__grid { gap: 48px var(--gap); margin-top: 56px; }
  .catalog__grid .span-7, .catalog__grid .span-5 { grid-column: span 1; }
}
@media (min-width: 1024px) {
  .catalog__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 64px; }
  .catalog__grid .span-7 { grid-column: span 7; }
  .catalog__grid .span-5 { grid-column: span 5; }
  .catalog__grid .span-4, .catalog__grid .is-wide { grid-column: span 4; }
}

.cat { display: flex; flex-direction: column; }
.cat__media { position: relative; overflow: hidden; }
.cat__media .photo { position: absolute; inset: 0; transition: transform 0.9s var(--ease); }
.cat:hover .cat__media .photo { transform: scale(1.025); }
.cat--lg .cat__media { height: clamp(17rem, 62vw, 22rem); }
.cat--md .cat__media { aspect-ratio: 1 / 1; }
.is-wide .cat--md .cat__media { aspect-ratio: 16 / 10; }
.cat__num { position: absolute; top: 0.9rem; left: 2.6rem; color: var(--brand); }
.cat__body {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 0 20px; border-bottom: 1px solid var(--line); transition: border-color 0.3s;
}
.cat:hover .cat__body { border-bottom-color: var(--brand); }
.cat__title { font-size: var(--t-body); line-height: 1.3; font-weight: 600; text-wrap: balance; transition: color 0.2s; }
.cat--lg .cat__title {
  max-width: 22ch;
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em;
}
.cat:hover .cat__title { color: var(--brand); }
.cat__text { display: none; margin-top: 8px; font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); }
.cat--lg .cat__text { display: block; max-width: 46ch; font-size: var(--t-body); line-height: 1.6; }
.cat__arrow {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 3px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.cat--lg .cat__arrow { width: 48px; height: 48px; }
.cat:hover .cat__arrow { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (min-width: 640px) {
  .cat__body { gap: 24px; padding: 20px 0 24px; }
  .cat__title { font-size: var(--t-title); letter-spacing: -0.016em; }
  .cat__text { display: block; }
  .cat--md .cat__media { aspect-ratio: 4 / 3; }
  .cat__arrow { width: 40px; height: 40px; }
}
@media (min-width: 768px) {
  .cat--lg .cat__media { height: clamp(20rem, 34vw, 32rem); }
  .cat--lg .cat__body { padding-top: 24px; }
}
@media (min-width: 1024px) {
  .is-wide .cat--md .cat__media { aspect-ratio: 4 / 3; }
}

/* --- 10. Подбор упаковки ------------------------------------------------ */

.sel {
  display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 40px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px;
}
@media (min-width: 768px) { .sel { margin-top: 56px; } }
/* Схема размеров: на десктопе — колонкой слева, на планшете и телефоне — внутри группы размеров */
.sel__diagram { display: none; }
.sel__dhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sel__dtitle { font-size: var(--t-small); font-weight: 600; }
.sel__svg--inline { width: 100%; max-width: 16rem; margin: 0 auto; text-align: center; }
.sel__svg--inline .muted-sm { margin-top: 4px; }
@media (min-width: 640px) { .sel__svg--inline { max-width: 18rem; } }

.dims { width: 100%; height: auto; }
.dims__axis { stroke: color-mix(in srgb, var(--brand) 30%, transparent); }
.dims__fill { fill: var(--surface); transition: fill 0.3s; }
.dims__label-zone { fill: color-mix(in srgb, var(--brand) 5%, transparent); stroke: none; transition: fill 0.3s; }
.dims__body { stroke: var(--brand); stroke-width: 1.5; }
.dims__thread { stroke: color-mix(in srgb, var(--brand) 50%, transparent); }
.dims__cap { stroke: color-mix(in srgb, var(--brand) 60%, transparent); stroke-width: 1.25; }
.dim { stroke: color-mix(in srgb, var(--brand) 45%, transparent); stroke-width: 1; transition: stroke 0.3s, stroke-width 0.3s, opacity 0.3s; }
.dlabel rect { fill: var(--surface); transition: fill 0.3s; }
.dlabel text { fill: var(--brand); font-size: 12px; font-weight: 600; font-style: italic; stroke: none; transition: fill 0.3s; }
/* активный размер — мятный; остальные приглушены */
.dims[data-active] .dim { opacity: 0.4; }
.dims[data-active="height"] [data-dim="height"],
.dims[data-active="overall"] [data-dim="overall"],
.dims[data-active="diameter"] [data-dim="diameter"],
.dims[data-active="neck"] [data-dim="neck"],
.dims[data-active="label"] [data-dim="label"] { opacity: 1; stroke: var(--mint); stroke-width: 1.75; }
.dims[data-active="height"] [data-for="height"] rect,
.dims[data-active="overall"] [data-for="overall"] rect,
.dims[data-active="diameter"] [data-for="diameter"] rect,
.dims[data-active="neck"] [data-for="neck"] rect,
.dims[data-active="label"] [data-for="label"] rect,
.dims[data-active="volume"] [data-for="volume"] rect { fill: var(--mint); }
.dims[data-active="height"] [data-for="height"] text,
.dims[data-active="overall"] [data-for="overall"] text,
.dims[data-active="diameter"] [data-for="diameter"] text,
.dims[data-active="neck"] [data-for="neck"] text,
.dims[data-active="label"] [data-for="label"] text,
.dims[data-active="volume"] [data-for="volume"] text { fill: var(--ink); }
.dims[data-active="volume"] .dims__fill { fill: var(--mint-tint); }
.dims[data-active="label"] .dims__label-zone { fill: color-mix(in srgb, var(--mint) 35%, transparent); }

.legend dt { font-weight: 600; font-style: italic; color: var(--ink-3); transition: color 0.2s; }
.legend dd { color: var(--ink-3); transition: color 0.2s; }
.legend .is-on dt, .legend dt.is-on { color: var(--mint-ink); }
.legend dd.is-on { color: var(--ink); }

.sel__main { display: flex; flex-direction: column; min-width: 0; }
.sel__groups { display: flex; flex-direction: column; gap: 40px; padding: 32px 24px; }
.sel__group { display: flex; flex-direction: column; }
.gtitle { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.gtitle__static, .gtitle__toggle { display: flex; align-items: center; gap: 12px; width: 100%; }
.gtitle__toggle { display: none; min-height: 44px; text-align: left; }
.gtitle .index { color: var(--brand); }
.gtitle__text { font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.gtitle__count {
  padding: 2px 6px; border-radius: 2px; background: var(--mint-tint);
  font-size: var(--t-micro); font-weight: 600; color: var(--mint-ink); font-variant-numeric: tabular-nums;
}
.gtitle__count[hidden] { display: none; }
.gtitle i { flex: 1; height: 1px; background: var(--line); }
.gtitle__action { display: flex; align-items: center; gap: 6px; font-size: var(--t-meta); font-weight: 500; color: var(--brand); }
.gtitle__action svg { transition: transform 0.2s; }
.gtitle__toggle[aria-expanded="true"] .gtitle__action svg { transform: rotate(180deg); }
.sel__panel { display: flex; flex-direction: column; gap: 24px; }
.sel__panel.texts { display: grid; }
/* Планшет и телефон: размеры и исполнение свернуты (если работает JS) */
@media (max-width: 1023px) {
  .js-collapse .gtitle__static { display: none; }
  .js-collapse .gtitle__toggle { display: flex; }
  .js-collapse .sel__panel.is-collapsed { display: none; }
  .js-collapse .gtitle--collapsible { margin-bottom: 0; }
  .js-collapse .sel__group:has(.is-collapsed) .gtitle { margin-bottom: 0; }
}
.flabel { display: block; margin-bottom: 12px; font-size: var(--t-meta); font-weight: 500; color: var(--ink-2); }
.sel__group .flabel + .chips + .flabel { margin-top: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface);
  font-size: var(--t-small); line-height: 1.25; color: var(--ink-2); text-align: left;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip i { width: 6px; height: 6px; flex-shrink: 0; background: var(--line-strong); transform: rotate(45deg); transition: background-color 0.15s; }
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip[aria-pressed="true"] i { background: var(--mint); }

.seg {
  display: inline-grid; grid-template-columns: repeat(3, auto); align-self: flex-start;
  padding: 4px; border: 1px solid var(--line-strong); border-radius: 3px;
}
.seg button {
  height: 36px; padding: 0 12px; border-radius: 2px; font-size: var(--t-small); white-space: nowrap;
  color: var(--ink-2); transition: background-color 0.15s, color 0.15s;
}
.seg button:hover { color: var(--brand); }
.seg button[aria-checked="true"] { background: var(--brand); color: #fff; }
@media (min-width: 640px) { .seg button { padding: 0 20px; } }

.ranges { display: grid; gap: 20px 24px; }
@media (min-width: 640px) { .ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .ranges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.range__label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: var(--t-meta); font-weight: 500; color: var(--ink-2); }
.range__sym {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px;
  border-radius: 2px; background: var(--mist-2); color: var(--ink-3);
  font-size: var(--t-micro); font-weight: 600; font-style: italic; transition: background-color 0.2s, color 0.2s;
}
.range.is-on .range__sym { background: var(--mint); color: var(--ink); }
.range__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.field {
  width: 100%; min-width: 0; height: 48px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: var(--surface);
  font-size: var(--t-body); color: var(--ink); font-variant-numeric: tabular-nums;
  transition: border-color 0.2s, background-color 0.2s;
}
.field::placeholder { color: var(--ink-4); }
.field:hover { border-color: var(--ink-4); }
.field:focus { border-color: var(--brand); outline: none; }
textarea.field { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; }

.texts { display: grid; gap: 20px 24px; }
@media (min-width: 640px) { .texts { grid-template-columns: 1fr 1fr; } }

.sel__foot {
  display: flex; flex-direction: column; gap: 20px; margin-top: auto;
  padding: 24px; background: var(--paper); border-top: 1px solid var(--line);
}
.sel__count { font-size: var(--t-body); font-weight: 600; color: var(--brand); }
.sel__note { margin-top: 4px; font-size: var(--t-meta); line-height: 1.5; color: var(--ink-2); }
.sel__actions { display: flex; flex-direction: column-reverse; gap: 8px; flex-shrink: 0; }
.sel__reset { height: 44px; padding: 0 16px; font-size: var(--t-body); font-weight: 500; color: var(--ink-2); }
.sel__reset:hover { color: var(--brand); }
.sel__reset:disabled { opacity: 0.4; pointer-events: none; }
@media (min-width: 640px) {
  .sel__actions { flex-direction: row; align-items: center; gap: 12px; }
  .sel__actions .btn { flex: 1; }
  .sel__reset { height: 56px; }
}
@media (min-width: 1024px) {
  .sel { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sel__diagram { display: block; grid-column: span 4; padding: 32px; border-right: 1px solid var(--line); }
  .sel__sticky { position: sticky; top: 112px; }
  .sel__svg { margin-top: 32px; }
  .sel__svg--inline { display: none; }
  .legend {
    display: grid; grid-template-columns: 2rem 1fr; gap: 8px; margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--line); font-size: var(--t-meta);
  }
  .sel__main { grid-column: span 8; }
  .sel__groups { padding: 40px; }
  .sel__foot { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 40px; }
  .sel__summary { max-width: 46ch; }
  .sel__actions .btn { flex: none; }
}

/* --- 11. Производство и технологии — фирменная синяя полоса -------------- */

.mfg .chain { top: 32px; right: 0; width: min(62rem, 64vw);
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent);
  mask-image: linear-gradient(to left, #000 55%, transparent); }
@media (min-width: 768px) { .mfg .chain { display: block; } }
@media (min-width: 1024px) { .mfg .chain { top: 40px; } }

.mfg__monument { display: grid; gap: 20px; margin-top: 56px; }
.mfg__figure { color: #fff; white-space: nowrap; }
.mfg__caption { max-width: 24ch; font-size: var(--t-lead); line-height: 1.35; color: rgba(255, 255, 255, 0.8); }
@media (min-width: 768px) { .mfg__monument { margin-top: 80px; } }
@media (min-width: 1024px) {
  .mfg__monument { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .mfg__figure { grid-column: span 9; }
  .mfg__caption { grid-column: span 3; padding-bottom: 8px; }
}

.meter { margin-top: 48px; }
.meter__heads { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 20px; }
.meter__heads .is-right { text-align: right; }
.meter__k { display: block; }
.meter__k.is-mint { color: var(--mint) !important; }
.meter__v { display: block; margin-top: 6px; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.meter__bar { position: relative; height: 16px; background: rgba(255, 255, 255, 0.1); }
.meter__fill {
  position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--mint);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) 0.2s;
}
.meter.is-visible .meter__fill, .no-js .meter__fill { transform: none; }
.meter__hatch {
  position: absolute; top: 0; bottom: 0; left: 50%; right: 0; color: color-mix(in srgb, var(--mint) 50%, transparent);
  background-image: repeating-linear-gradient(-45deg, currentColor 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent);
  mask-image: linear-gradient(to right, #000 70%, transparent);
}
.meter__mark { position: absolute; top: -8px; bottom: -8px; left: 50%; width: 1px; background: #fff; }
.meter__ticks { position: relative; height: 20px; margin-top: 12px; }
.meter__ticks span {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: var(--t-micro); line-height: 1; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.7);
}
.meter__ticks .is-start { transform: none; }
.meter__ticks .is-end { transform: translateX(-100%); }
.meter__foot {
  display: flex; flex-direction: column; gap: 4px; margin-top: 8px;
  font-size: var(--t-meta); color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 640px) { .meter__foot { flex-direction: row; justify-content: space-between; } }
@media (min-width: 768px) {
  .meter { margin-top: 56px; }
  .meter__v { font-size: 1.625rem; }
}

/* Кадры: цех выходит к левому краю окна */
.mfg__photos { display: grid; gap: 20px; margin-top: 56px; }
.mfg__photo-main .photo { aspect-ratio: 16 / 10; }
.mfg__photo-side .photo { aspect-ratio: 4 / 5; }
@media (min-width: 768px) {
  .mfg__photos { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 80px; }
  .mfg__photo-main { grid-column: span 8; }
  .mfg__photo-side { grid-column: span 4; }
  .mfg__photos .photo { aspect-ratio: auto; height: clamp(20rem, 36vw, 34rem); }
}
@media (min-width: 1024px) {
  .mfg__photo-main { margin-left: calc(-50vw + min(100vw, var(--page)) / 2 - var(--gutter)); }
}

/* Паспорт производства и технологии */
.mfg__lower { display: grid; gap: 48px; margin-top: 56px; }
@media (min-width: 768px) { .mfg__lower { margin-top: 80px; } }
@media (min-width: 1024px) {
  .mfg__lower { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .mfg__spec { grid-column: span 4; }
  .tech { grid-column: 6 / span 7; }
}
.spec { border-top: 1px solid rgba(255, 255, 255, 0.25); margin-bottom: 28px; }
.spec__row { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.spec__row .eyebrow { color: var(--mint) !important; }
.spec__value { display: block; font-size: var(--t-title); line-height: 1.3; font-weight: 600; color: #fff; }
.spec__value .approx { margin-right: 4px; font-weight: 400; color: rgba(255, 255, 255, 0.7); }
.spec__value .unit { margin-left: 4px; font-size: var(--t-small); font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.spec__text { display: block; margin-top: 4px; font-size: var(--t-small); line-height: 1.55; color: rgba(255, 255, 255, 0.75); }
.spec__brands { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.spec__brands li { font-size: var(--t-title); font-weight: 600; letter-spacing: 0.04em; color: #fff; }

.tech { scroll-margin-top: 96px; }
.tech__title { color: #fff; }
.tech__list { display: grid; margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.tech__item { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.tech__item .index { color: var(--mint); }
.tech__item h4 { margin: 12px 0 0; font-size: var(--t-body); font-weight: 600; text-wrap: balance; color: #fff; }
.tech__item p { margin-top: 6px; font-size: var(--t-small); line-height: 1.55; color: rgba(255, 255, 255, 0.75); }
@media (min-width: 640px) { .tech__list { grid-template-columns: 1fr 1fr; } .tech__item { padding-right: 24px; } }
@media (min-width: 1280px) { .tech__list { grid-template-columns: repeat(3, 1fr); } .tech__item { min-height: 11rem; } }

/* --- 13. Индивидуальная упаковка ----------------------------------------
   Маршрут — цепь узлов (мотив полимерной цепи), цель — мятный узел.       */

.route { position: relative; display: grid; margin-top: 48px; }
.route::before {
  content: ""; position: absolute; top: 8px; bottom: 32px; left: 8px; width: 1px; background: color-mix(in srgb, var(--brand) 30%, transparent);
}
.route__step { position: relative; padding: 0 0 36px 40px; }
.route__node {
  position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--brand); background: var(--surface);
}
.route__step.is-goal .route__node { border-color: var(--mint); background: var(--mint); }
.route__step .index { color: var(--brand); }
.route__step h3 { margin-top: 12px; font-size: var(--t-body); line-height: 1.35; font-weight: 600; text-wrap: balance; }
.route__step.is-goal h3 { color: var(--brand); }
.route__step p { margin-top: 6px; font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); }
.route__foot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-strong);
}
@media (min-width: 640px) { .route__foot { flex-direction: row; align-items: center; gap: 32px; } }
@media (min-width: 768px) { .route { margin-top: 64px; } .route__foot { margin-top: 56px; } }
@media (min-width: 1024px) {
  .route { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gap); }
  .route::before { top: 8px; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .route__step { padding: 40px 0 0; }
}

/* --- 14. Качество и отрасли --------------------------------------------- */

.trust { padding: 64px 0; background: var(--paper); }
@media (min-width: 768px) { .trust { padding: 80px 0; } }
@media (min-width: 1024px) { .trust { padding: 96px 0; } }
.trust__grid { display: grid; gap: 64px; }
@media (min-width: 1024px) {
  .trust__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .trust__quality { grid-column: span 6; }
  .trust__industries { grid-column: 8 / span 5; }
}
.mini-title { margin-top: 20px; color: var(--brand); }
@media (min-width: 768px) { .mini-title { margin-top: 24px; } }
.trust .lead { max-width: 50ch; margin-top: 20px; }

/* Документы — сеткой превью: без номеров, дат и печатей */
.docs { display: grid; gap: 12px; margin: 32px 0 28px; }
@media (min-width: 640px) { .docs { grid-template-columns: 1fr 1fr; } }
.doc {
  display: flex; align-items: center; gap: 16px; height: 100%; padding: 16px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--surface); transition: border-color 0.2s;
}
.doc:hover { border-color: var(--brand); }
.doc__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.doc__title { font-size: var(--t-body); font-weight: 600; }
.doc__action { font-size: var(--t-meta); font-weight: 500; color: var(--brand); }
.docp { flex-shrink: 0; }
.docp__sheet { fill: var(--surface); stroke: var(--line-strong); }
.docp__bar { fill: var(--brand); }
.docp__lines line, .docp__line { stroke: rgba(21, 24, 38, 0.2); stroke-width: 2; stroke-linecap: round; }
.docp__box { fill: var(--surface); stroke: color-mix(in srgb, var(--brand) 50%, transparent); stroke-width: 1.5; }
.docp__box.is-on { fill: var(--mint); stroke: var(--mint); }

.customers { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; margin-top: 28px; }
.customers__n {
  font-size: clamp(3.5rem, 2rem + 4vw, 5.25rem); line-height: 0.9; font-weight: 500;
  letter-spacing: -0.045em; color: var(--brand); font-variant-numeric: tabular-nums;
}
.customers__t { padding-bottom: 6px; font-size: var(--t-body); line-height: 1.35; color: var(--ink-2); }
.customers__t span { color: var(--ink-3); }
.industries { margin-top: 32px; border-top: 1px solid var(--line-strong); }
.industry { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.industry__t { font-size: var(--t-body); font-weight: 600; }
.industry__x { font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); }

/* --- 15. Вопросы и ответы ----------------------------------------------- */

.faq__grid { display: grid; gap: 48px; }
.faq__aside p { max-width: 34ch; margin: 20px 0 28px; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); }
.faq .mini-title { font-size: clamp(1.875rem, 1.35rem + 1.45vw, 2.75rem); }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: var(--t-lead); line-height: 1.35; font-weight: 600; letter-spacing: -0.012em; transition: color 0.2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover, .qa[open] summary { color: var(--brand); }
.qa p { max-width: 62ch; padding: 0 40px 28px 0; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); }
.qa__plus { position: relative; flex-shrink: 0; width: 20px; height: 20px; margin-top: 4px; color: var(--brand); transition: transform 0.3s; }
.qa__plus i { position: absolute; background: currentColor; }
.qa__plus i:first-child { top: 50%; left: 0; width: 20px; height: 1px; }
.qa__plus i:last-child { left: 50%; top: 0; width: 1px; height: 20px; }
.qa[open] .qa__plus { transform: rotate(45deg); }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .faq__aside { grid-column: span 4; }
  .faq__sticky { position: sticky; top: 112px; }
  .faq__list { grid-column: 5 / span 8; }
}
@media (min-width: 1280px) { .faq__list { grid-column: 6 / span 7; } }

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

.request {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 80px 0; background: var(--brand); color: #fff;
}
.request .chain { bottom: 24px; left: 0; width: min(52rem, 56vw);
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent);
  mask-image: linear-gradient(to right, #000 50%, transparent); }
@media (min-width: 768px) { .request { padding: 96px 0; } }
@media (min-width: 1024px) { .request { padding: 112px 0; } .request .chain { display: block; } }
.request .shead__rule { border-color: rgba(255, 255, 255, 0.25); }
.request .eyebrow { color: rgba(255, 255, 255, 0.75); }
.request .mini-title { color: #fff; font-size: clamp(1.875rem, 1.35rem + 1.45vw, 2.75rem); }
.request .lead { max-width: 42ch; margin-top: 24px; color: rgba(255, 255, 255, 0.8); }
.request__grid { display: grid; gap: 48px; }
.request__contacts { max-width: 30rem; margin-top: 40px; }
.contact-row { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.contact-row a { font-size: var(--t-lead); transition: color 0.2s; }
.contact-row a:hover { color: var(--mint); }
.contact-row__phone { font-weight: 600; }
@media (min-width: 1024px) {
  .request__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .request__copy { grid-column: span 5; }
  .form { grid-column: span 7; }
}
@media (min-width: 1280px) { .form { grid-column: 7 / span 6; } }

.form { padding: 24px; border-radius: 4px; background: var(--surface); color: var(--ink); }
@media (min-width: 640px) { .form { padding: 32px; } }
@media (min-width: 1024px) { .form { padding: 40px; } }
.form__grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .form__wide { grid-column: span 2; }
}
.form .flabel { margin-bottom: 8px; }
.form__labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.form__tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: var(--t-micro); font-weight: 500; color: var(--mint-ink); }
.form__tag[hidden] { display: none; }
.form__tag i { width: 6px; height: 6px; background: var(--mint); transform: rotate(45deg); }
.field.is-prefilled { border-color: var(--mint); background: rgba(230, 244, 240, 0.4); }
.file {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border: 1px dashed var(--line-strong); border-radius: 3px; cursor: pointer;
  font-size: var(--t-body); color: var(--ink-3); transition: border-color 0.2s, background-color 0.2s;
}
.file:hover, .file:focus-within { border-color: var(--brand); background: var(--brand-tint); }
.file.has-file { border-color: var(--brand); background: var(--brand-tint); color: var(--ink); }
.file svg { flex-shrink: 0; }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form__help { margin-top: 8px; font-size: var(--t-meta); line-height: 1.6; color: var(--ink-4); }
.form__submit { margin-top: 32px; }
.form__consent { margin-top: 16px; font-size: var(--t-micro); line-height: 1.6; color: var(--ink-4); }
.form__status {
  margin-top: 20px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 3px;
  background: var(--mist); font-size: var(--t-small); line-height: 1.6; color: var(--ink-2);
}
.form__status a { font-weight: 500; color: var(--brand); }
.form__status[hidden] { display: none; }

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

.footer { background: var(--paper); padding: 56px 0; }
@media (min-width: 768px) { .footer { padding: 64px 0; } }
.footer__grid { display: grid; border-top: 1px solid rgba(21, 24, 38, 0.2); }
.footer__cell { padding: 32px 0; border-bottom: 1px solid var(--line-strong); }
.footer__cell--about img { display: block; height: 64px; width: auto; max-width: none; }
.footer__cell--about p { max-width: 34ch; margin-top: 20px; font-size: var(--t-body); line-height: 1.6; color: var(--ink-3); }
.footer__title { margin-bottom: 20px; font-size: var(--t-meta); line-height: 1.3; font-weight: 500; color: var(--ink-4); }
.footer__list { display: flex; flex-direction: column; gap: 12px; }
.footer__list a { font-size: var(--t-body); color: var(--ink-2); transition: color 0.2s; }
.footer__list a:hover { color: var(--brand); }
.footer__list .footer__phone { font-size: var(--t-lead); font-weight: 600; color: var(--ink); }
.footer__cta { padding-top: 12px; }
.footer__cta a { font-weight: 500; color: var(--brand); }
.footer__legal { padding-top: 28px; }
.footer__notice { max-width: 92ch; font-size: var(--t-meta); line-height: 1.6; color: var(--ink-4); }
.footer__meta { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; font-size: var(--t-meta); color: var(--ink-3); }
.footer__privacy:hover { color: var(--brand); }
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__cell:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--line-strong); }
  .footer__cell:nth-child(even) { padding-left: 32px; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer__cell { padding: 32px; border-right: 1px solid var(--line-strong); }
  .footer__cell:nth-child(odd), .footer__cell:nth-child(even) { padding: 32px; border-right: 1px solid var(--line-strong); }
  .footer__cell--about { grid-column: span 4; padding-left: 0 !important; }
  .footer__cell--catalog { grid-column: span 3; }
  .footer__cell--company { grid-column: span 2; }
  .footer__cell--contacts { grid-column: span 3; border-right: 0 !important; }
  .footer__meta { flex-direction: row; align-items: center; gap: 24px; }
  .footer__privacy { margin-left: auto; }
}

/* --- 18. Заглушки разделов и 404 ---------------------------------------- */

.stub { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); }
.stub__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.6; }
.stub__inner { display: flex; flex-direction: column; justify-content: center; min-height: 62vh; padding-top: 96px; padding-bottom: 96px; }
.stub__inner .shead__rule { max-width: 40rem; }
.stub__title { margin-top: 24px; max-width: 18ch; }
.stub__inner .lead { max-width: 52ch; margin-top: 20px; }
.stub__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
@media (min-width: 640px) { .stub__actions { flex-direction: row; } }
.stub__contacts { margin-top: 32px; font-size: var(--t-body); color: var(--ink-3); }
.stub__contacts a:hover { color: var(--brand); }
.stub__phone { font-weight: 600; color: var(--ink); }

/* --- 19. Появление при прокрутке ---------------------------------------- */

.reveal {
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
