/* =====================================================================
   ДЗСЛ — Дмитровский Завод Строительных Лесов
   Основной стиль (фундамент + компоненты + layout)
   ===================================================================== */

/* ============ 1. ТОКЕНЫ ============ */
:root {
  /* Цвета: промышленный «заводской» — оранжевый как основной */
  --c-primary:        #EC7A00;        /* основной — брутальный промышленный оранжевый (заливки/графика, ≥3:1) */
  --c-primary-text:   #BC5000;        /* оранжевый ДЛЯ ТЕКСТА на белом — 4.9:1 (WCAG AA); #EC7A00 как текст = 2.86:1, запрещён */
  --c-primary-dark:   #C75500;        /* hover, sticky-header */
  --c-primary-darker: #7A3300;        /* контрасты, текстовая акцентная */
  --c-accent:         #F5A623;        /* мягкий золотой — для бейджей «Хит», звёзд, мелких акцентов */
  --c-accent-dark:    #E08B00;        /* hover акцента */
  --c-accent-soft:    #FFF1E1;        /* фон-плашка под акцент */

  /* Второй контур — синий (теперь дополнительный) */
  --c-secondary:        #1E5BAB;
  --c-secondary-dark:   #0F3F7E;
  --c-secondary-darker: #0A2E5C;

  --c-text:           #16181B;
  --c-text-muted:     #5C636C;
  --c-text-soft:      #8B929B;
  --c-text-inverse:   #FFFFFF;

  --c-bg:             #FFFFFF;
  --c-bg-soft:        #F4F5F6;        /* светлый «бетон» — нейтральный индустриальный фон */
  --c-bg-muted:       #E8EAED;
  --c-bg-dark:        #14171B;        /* графит — футер и тёмные секции */
  --c-steel:          #232830;        /* сталь — карточки и плитки на тёмном */
  --c-steel-light:    #343B45;

  --c-border:         #E1E4E8;
  --c-border-strong:  #C3C9D1;

  --c-success:        #276B2A;        /* 6.5:1 на белом — бейдж «В наличии» 12px проходит AA */
  --c-danger:         #C53030;
  --c-warning:        #C77700;

  /* Семейство кнопок: фирменный яркий оранжевый + ТЁМНЫЙ текст (6.2:1) —
     стиль промышленных предупреждающих табличек; белый на #EC7A00 был 2.86:1. */
  --c-btn-primary-bg: var(--c-primary);
  --c-btn-primary-hover: #D96B00;
  --c-btn-primary-text: #16181B;

  /* Типографика: заголовки — Geologica (variable, self-hosted), тело — системный гротеск */
  --ff-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-heading: "Geologica", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-48: 48px;
  --fs-56: 56px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.5;
  --lh-relaxed: 1.65;

  /* Размеры и сетка */
  --container: 1280px;
  --container-narrow: 960px;

  --space-2:  2px;
  --space-4:  4px;
  --space-6:  6px;
  --space-8:  8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;

  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.18);
  --shadow-focus: 0 0 0 3px rgba(236, 122, 0, 0.28);

  /* Анимации */
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
  --t-slow: 320ms ease;

  /* Шапка */
  --header-h: 88px;
  --header-h-mobile: 64px;
  --topbar-h: 36px;
}

/* ============ 1a. ШРИФТ ЗАГОЛОВКОВ (self-hosted, variable 100–900) ============ */
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geologica-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ 2. RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-16);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--c-primary-text); }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--ff-heading); line-height: var(--lh-tight); font-weight: var(--fw-bold); color: var(--c-text); }
p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* ============ 3. ТИПОГРАФИКА ============ */
.h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: var(--lh-tight); font-weight: var(--fw-extrabold); letter-spacing: -0.025em; text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: var(--lh-tight); font-weight: var(--fw-bold); letter-spacing: -0.015em; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: var(--lh-snug); font-weight: var(--fw-bold); letter-spacing: -0.01em; text-wrap: balance; }
.h4 { font-size: var(--fs-20); line-height: var(--lh-snug); font-weight: var(--fw-semibold); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--c-primary-text);
  margin-bottom: var(--space-12);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--c-primary);
  flex-shrink: 0;
}
.lead { font-size: var(--fs-20); line-height: var(--lh-relaxed); color: var(--c-text-muted); }
.small { font-size: var(--fs-13); color: var(--c-text-muted); }
.muted { color: var(--c-text-muted); }
@media (max-width: 768px) {
  /* .h1–.h3 теперь fluid (clamp) — отдельные брейкпоинты не нужны. */
  .lead { font-size: var(--fs-18); }
}

/* ============ 4. КОНТЕЙНЕРЫ И СЕТКА ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-24); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-24); }
.section { padding: var(--space-80) 0; }
.section-sm { padding: var(--space-56) 0; }
.section-lg { padding: var(--space-120) 0; }
.section-dark { background: var(--c-bg-dark); color: var(--c-text-inverse); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--c-text-inverse); }
.section-soft { background: var(--c-bg-soft); }
@media (max-width: 768px) {
  .section { padding: var(--space-56) 0; }
  .section-lg { padding: var(--space-80) 0; }
}

.section-header { margin-bottom: var(--space-48); max-width: 720px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: var(--space-24); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.grid > * { min-width: 0; }

/* ============ 5. КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 14px 24px;
  font-size: var(--fs-15);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
@media (max-width: 480px) { .btn { white-space: normal; } }
.btn--lg { padding: 18px 32px; font-size: var(--fs-16); }
.btn--sm { padding: 10px 16px; font-size: var(--fs-14); }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-btn-primary-bg); color: var(--c-btn-primary-text); }
.btn--primary:hover { background: var(--c-btn-primary-hover); color: var(--c-btn-primary-text); }
.btn--secondary { background: var(--c-secondary); color: var(--c-text-inverse); }
.btn--secondary:hover { background: var(--c-secondary-dark); color: var(--c-text-inverse); }
.btn--outline { border-color: var(--c-border-strong); background: transparent; color: var(--c-text); }
.btn--outline:hover { background: var(--c-bg-soft); color: var(--c-text); border-color: var(--c-text); }
/* Каноническая ghost-кнопка (ранее дублировалась в catalog.css с другим видом). */
.btn--ghost { background: transparent; border: 1px solid var(--c-border); color: var(--c-text-muted); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary-text); }
.btn--ghost.is-active { border-color: var(--c-danger); color: var(--c-danger); }
.btn--ghost.is-active svg { fill: var(--c-danger); }
.btn--on-dark { background: rgba(255,255,255,0.12); color: var(--c-text-inverse); border-color: rgba(255,255,255,0.2); }
.btn--on-dark:hover { background: rgba(255,255,255,0.2); color: var(--c-text-inverse); }
.btn .icon { width: 18px; height: 18px; }

/* ============ 6. ИКОНКИ И ЗНАЧКИ ============ */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 40px; height: 40px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  line-height: 1;
  border-radius: var(--radius-full);
  background: var(--c-bg-muted);
  color: var(--c-text);
}
.badge--accent { background: var(--c-accent-soft); color: var(--c-accent-dark); }
.badge--primary { background: rgba(236,122,0,0.1); color: var(--c-primary-text); }
.badge--success { background: rgba(46,125,50,0.12); color: var(--c-success); }
.badge--danger { background: rgba(197,48,48,0.12); color: var(--c-danger); }
.badge--hit { background: var(--c-accent); color: #1A1A1A; }
.badge--new { background: var(--c-primary); color: #FFF; }

/* ============ 7. ТОПБАР И ХЕДЕР ============ */
.topbar {
  background: var(--c-bg-dark);
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-13);
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 101; /* выше .header (100), чтобы выпадашка поиска была поверх шапки */
}
/* Три зоны: описание слева (по левому краю контента), поиск по центру (акцент),
   ссылки справа (по правому краю контента — вровень с иконками хидера). */
.topbar .topbar-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-24); align-items: center; padding-top: 4px; padding-bottom: 4px; }
.topbar a { color: rgba(255,255,255,0.85); white-space: nowrap; }
.topbar a:hover { color: #FFF; }
.topbar-desc { justify-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-links { justify-self: end; display: flex; gap: var(--space-16); align-items: center; }

/* Поиск в топбаре — по центру, компактный по высоте */
.topbar-search { position: relative; width: clamp(280px, 30vw, 440px); }
.topbar-search__icon { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: rgba(255,255,255,0.55); pointer-events: none; }
.topbar-search__input { width: 100%; height: 28px; padding: 0 10px 0 30px; border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-sm); background: rgba(255,255,255,0.10); color: #FFF; font: inherit; font-size: var(--fs-13); }
.topbar-search__input::placeholder { color: rgba(255,255,255,0.55); }
.topbar-search__input:focus { outline: none; border-color: var(--c-primary); background: rgba(255,255,255,0.16); }
/* выпадашка результатов переиспользует .header-search__drop (светлая панель) */

@media (max-width: 1280px) {
  /* до 1280 слоган не помещается рядом с поиском и наезжал на него */
  .topbar-desc { display: none; }
  .topbar .topbar-grid { grid-template-columns: auto 1fr; }
}
@media (max-width: 992px) {
  /* планшет: описание прячем, поиск + ссылки в две зоны */
  .topbar .topbar-grid { grid-template-columns: auto 1fr; }
  .topbar-desc { display: none; }
}
@media (max-width: 768px) {
  /* топбар остаётся ради поиска (в основном хедере его больше нет); инфо-ссылки прячем */
  .topbar { display: flex; }
  .topbar-links { display: none; }
  .topbar .topbar-grid { grid-template-columns: 1fr; }
  .topbar .topbar-search { width: 100%; }
  .topbar .container { padding-left: var(--space-16); padding-right: var(--space-16); }
}

/* ============ ДРОП-МЕНЮ КАТАЛОГА (обычный список разделов; мега — позже) ============ */
.nav-item--drop { position: relative; display: inline-flex; }
.drop {
  position: absolute;
  left: -16px; top: 100%;
  min-width: 260px;
  padding: var(--space-8) 0;
  background: #FFF;
  border: 1px solid var(--c-border);
  border-bottom: 3px solid var(--c-primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 20px 40px rgba(20,23,27,0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  z-index: 90;
}
.nav-item--drop:hover .drop,
.nav-item--drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop li a { display: block; padding: 9px 20px; font-size: var(--fs-14); color: var(--c-text); white-space: nowrap; }
.drop li a:hover { background: var(--c-bg-soft); color: var(--c-primary-text); }
.drop__all { border-top: 1px solid var(--c-border); margin-top: var(--space-8); }
.drop__all a { font-weight: var(--fw-semibold); color: var(--c-primary-text); }
@media (max-width: 768px) { .drop { display: none; } }

/* Мобильное меню: подкатегории вторым уровнем */
.mobile-menu__sub { padding-left: var(--space-24); font-size: var(--fs-14); color: var(--c-text-muted); }

.header {
  background: #FFF;
  border-bottom: 1px solid var(--c-border);
  position: relative;
  z-index: 100;
}
/* Шапка и топбар — на всю ширину экрана */
.header > .container,
.topbar > .container {
  max-width: 100%;
  padding-left: var(--space-32);
  padding-right: var(--space-32);
}
@media (max-width: 768px) {
  .header > .container { padding-left: var(--space-16); padding-right: var(--space-16); }
}
.header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-32);
  min-height: var(--header-h);
}
.header__actions { flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: var(--space-12); flex-shrink: 0; }
/* Фирменный логотип (SVG, 2200×978): light — на белом хедере, dark — на тёмном. */
.logo__img { height: 73px; width: auto; display: block; }
.header .logo__img--dark { display: none; }
body.hdr-overlay .header .logo__img--light { display: none; }
body.hdr-overlay .header .logo__img--dark { display: block; }
@media (max-width: 768px) { .logo__img { height: 57px; } }
.logo__mark {
  display: none !important; /* временно скрыта плашка «ДЗ» — до настоящего логотипа (решение от 12.06) */
  width: 48px;
  height: 48px;
  min-width: 48px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  border-radius: var(--radius-md);
  color: #FFF;
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-20);
  letter-spacing: -0.5px;
}
.logo__text { line-height: 1.1; }
.logo__name { font-weight: var(--fw-extrabold); font-size: var(--fs-18); color: var(--c-text); white-space: nowrap; }
.logo__sub { font-size: var(--fs-12); color: var(--c-text-muted); margin-top: 2px; max-width: 124px; line-height: 1.25; }

.nav-main { display: flex; gap: clamp(var(--space-16), 2vw, var(--space-32)); align-items: center; min-width: 0; flex-wrap: nowrap; }
.nav-main a { white-space: nowrap; }
.nav-main a {
  font-weight: var(--fw-medium);
  font-size: var(--fs-15);
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  position: relative;
}
.nav-main a:hover { color: var(--c-primary-text); }
.nav-main .has-mega { cursor: pointer; }
.nav-main .has-mega::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-top: -4px;
}

.header__actions { display: flex; gap: var(--space-16); align-items: center; }
.header__phone {
  font-weight: var(--fw-bold);
  font-size: var(--fs-18);
  color: var(--c-text);
  display: flex; align-items: center; gap: var(--space-8);
  white-space: nowrap;
}
.header__phone a { white-space: nowrap; }
.header__phone small { font-weight: var(--fw-regular); font-size: var(--fs-12); color: var(--c-text-muted); display: block; line-height: 1; margin-top: 2px; }
/* До 1360 меню + телефон + иконки не помещаются: пункты меню наезжали на телефон.
   Телефон при этом остаётся в мобильном меню, на /kontakty/ и в футере. */
@media (max-width: 1360px) { .header__phone { display: none; } }
.icon-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: #FFF;
  color: var(--c-text);
  transition: all var(--t-base);
  position: relative;
}
.icon-btn:hover { border-color: var(--c-text); color: var(--c-primary-text); }
.icon-btn__count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--c-accent);
  color: #1A1A1A;
  font-size: 11px;
  font-weight: var(--fw-bold);
  display: flex; align-items: center; justify-content: center;
}

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: all var(--t-base); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

@media (max-width: 992px) {
  .nav-main { display: none; }
  .header__phone small { display: none; }
  .header__inner { gap: var(--space-16); min-height: var(--header-h-mobile); }
  .burger { display: flex; }
  .logo__sub { display: none; }
  .logo__name { font-size: var(--fs-15); }
  .logo__mark { width: 40px; height: 40px; font-size: var(--fs-16); }
}
@media (max-width: 640px) {
  .header__actions { gap: var(--space-8); }
  .header__actions .icon-btn[aria-label="Избранное"],
  .header__actions .icon-btn[aria-label="Сравнение"],
  .header__actions .icon-btn[aria-label="Поиск"] { display: none; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ============ 7b. OVERLAY-ХЕДЕР (главная): полноценный оверлей над hero —
   прозрачный, минимальный блюр, без бордера; НЕ sticky (скроллится с hero). ============ */
@media (min-width: 993px) {
  body.hdr-overlay .topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 101;
    background: rgba(10, 12, 15, 0.28);
    backdrop-filter: blur(2px);
  }
  body.hdr-overlay .header {
    position: absolute;
    top: var(--topbar-h); left: 0; right: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(2px);
    border-bottom: 0;
  }
  body.hdr-overlay .nav-main a,
  body.hdr-overlay .logo__name,
  body.hdr-overlay .header__phone,
  body.hdr-overlay .header__phone a { color: #FFF; }
  body.hdr-overlay .nav-main a:hover { color: var(--c-accent); }
  /* Дроп-панель всегда светлая — overlay-белый цвет ссылок внутри неё не действует. */
  body.hdr-overlay .nav-main .drop a { color: var(--c-text); }
  body.hdr-overlay .nav-main .drop a:hover { color: var(--c-primary-text); background: var(--c-bg-soft); }
  body.hdr-overlay .nav-main .drop .drop__all a { color: var(--c-primary-text); }
  body.hdr-overlay .logo__sub,
  body.hdr-overlay .header__phone small { color: rgba(255,255,255,0.65); }
  body.hdr-overlay .icon-btn {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
    color: #FFF;
  }
  body.hdr-overlay .icon-btn:hover { border-color: #FFF; color: var(--c-accent); }
  /* hero занимает весь экран, контент — ниже наложенной шапки */
  body.hdr-overlay .hero--video .hero__grid {
    min-height: 100svh;
    padding-top: calc(var(--topbar-h) + var(--header-h) + clamp(16px, 3vh, 48px));
  }
}

/* Переключатель варианта хедера (демо) */
.header-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: rgba(16,19,23,0.92);
  color: #FFF;
  font-size: var(--fs-13);
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background var(--t-base);
}
.header-toggle:hover { background: rgba(16,19,23,1); }
.header-toggle__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
}

/* ============ 8. ХЛЕБНЫЕ КРОШКИ ============ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  font-size: var(--fs-13);
  color: var(--c-text-muted);
  padding: var(--space-16) 0;
}
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-primary-text); }
.breadcrumbs span.sep { color: var(--c-text-soft); }

/* ============ 9. КАРТОЧКИ КАТЕГОРИЙ / ОБЩИЕ КАРТОЧКИ ============ */
.card {
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__image { aspect-ratio: 4/3; background: var(--c-bg-soft); display: flex; align-items: center; justify-content: center; color: var(--c-text-soft); }
.card__image img { width: 100%; height: 100%; object-fit: cover; }
.card__image--photo { aspect-ratio: 1.5/1; background: #FFF; overflow: hidden; padding: 0; }
.card__image--photo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform var(--t-slow); }
.card:hover .card__image--photo img { transform: scale(1.05); }
.card__body { padding: var(--space-20); flex-grow: 1; display: flex; flex-direction: column; gap: var(--space-8); }
.card__title { font-size: var(--fs-18); font-weight: var(--fw-bold); }
.card__desc { color: var(--c-text-muted); font-size: var(--fs-14); }
.card__footer { padding: var(--space-16) var(--space-20); border-top: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; gap: var(--space-12); }

/* Категорийная плитка: светлая карточка с фото товара */
.category-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFF;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  transition: all var(--t-base);
}
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--c-border-strong); color: var(--c-text); }
.category-tile::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.category-tile:hover::after { transform: scaleX(1); }
.category-tile__media {
  aspect-ratio: 4/3;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}
.category-tile__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform var(--t-slow);
}
.category-tile:hover .category-tile__media img { transform: scale(1.05); }
/* заглушка для категорий без фото: стальной фон + контурная иконка */
.category-tile__media--draft {
  background:
    linear-gradient(160deg, var(--c-steel) 0%, var(--c-steel-light) 100%);
  position: relative;
}
.category-tile__media--draft::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 14px);
}
.category-tile__icon { width: 64px; height: 64px; color: var(--c-accent); position: relative; opacity: 0.9; }
.category-tile__body {
  padding: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  flex-grow: 1;
}
.category-tile__title { font-size: var(--fs-18); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.category-tile__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); font-size: var(--fs-13); color: var(--c-text-muted); margin-top: auto; }
.category-tile__arrow {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  background: var(--c-bg-soft);
  color: var(--c-text-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--t-base);
}
.category-tile:hover .category-tile__arrow { background: var(--c-primary); color: #FFF; }

/* ============ 10. КАРТОЧКА ТОВАРА В ЛИСТИНГЕ ============ */
.product-card {
  display: flex;
  flex-direction: column;
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: all var(--t-base);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--c-border-strong); }
.product-card__badges { position: absolute; top: var(--space-12); left: var(--space-12); display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.product-card__actions { position: absolute; top: var(--space-12); right: var(--space-12); display: flex; flex-direction: column; gap: 4px; z-index: 2; opacity: 0; transition: opacity var(--t-base); }
.product-card:hover .product-card__actions { opacity: 1; }
.product-card__image { aspect-ratio: 4/3; background: var(--c-bg-soft); overflow: hidden; position: relative; }
/* Мобила, одна колонка: 4/3 на всю ширину — слишком высокая пустая зона (фото пока плейсхолдеры). */
@media (max-width: 560px) { .product-card__image { aspect-ratio: 16/9; } }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--t-slow); }
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__body { padding: var(--space-16); display: flex; flex-direction: column; gap: var(--space-8); flex-grow: 1; }
.product-card__series { font-size: var(--fs-12); color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: var(--fw-medium); }
.product-card__title { font-size: var(--fs-15); font-weight: var(--fw-semibold); color: var(--c-text); line-height: var(--lh-snug); min-height: 2.6em; }
.product-card__title a:hover { color: var(--c-primary-text); }
.product-card__specs { display: flex; flex-direction: column; gap: 2px; padding: var(--space-8) 0; font-size: var(--fs-13); color: var(--c-text-muted); }
.product-card__specs span { display: inline-block; }
.product-card__rating { display: flex; align-items: center; gap: 4px; font-size: var(--fs-13); color: var(--c-text-muted); }
.product-card__price { display: flex; align-items: baseline; gap: var(--space-8); margin-top: auto; }
.product-card__price-current { font-size: var(--fs-20); font-weight: var(--fw-bold); color: var(--c-text); }
.product-card__price-old { font-size: var(--fs-14); color: var(--c-text-muted); text-decoration: line-through; }
.product-card__footer { padding: var(--space-12) var(--space-16); border-top: 1px solid var(--c-border); display: flex; gap: var(--space-8); align-items: center; }
.product-card__footer .btn { flex-grow: 1; }
.product-card__sku { padding: 0 var(--space-16) var(--space-12); font-size: var(--fs-12); color: var(--c-text-soft); }

/* ============ 11. ПОЛОСА ДОВЕРИЯ ============ */
.trust-strip {
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.trust-strip .container { padding-top: var(--space-32); padding-bottom: var(--space-32); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-24); }
.trust-item { display: flex; align-items: center; gap: var(--space-12); }
.trust-item__icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: rgba(236,122,0,0.10); color: var(--c-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-item__big { font-size: var(--fs-18); font-weight: var(--fw-extrabold); color: var(--c-text); line-height: 1; }
.trust-item__text { font-size: var(--fs-12); color: var(--c-text-muted); margin-top: 2px; }
@media (max-width: 992px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* ============ 12. HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(160deg, #14171B 0%, #1D2127 55%, #232830 100%);
  color: #FFF;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(236,122,0,0.16), transparent 45%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  pointer-events: none;
}
/* Видео-фон hero. Если видео не загрузилось — остаётся графитовый градиент секции. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16,19,23,0.93) 0%, rgba(16,19,23,0.82) 42%, rgba(16,19,23,0.45) 75%, rgba(16,19,23,0.55) 100%),
    linear-gradient(180deg, rgba(16,19,23,0.55) 0%, transparent 25%, transparent 70%, rgba(16,19,23,0.75) 100%);
}
.hero--video::before { z-index: 1; }
.hero--video .container { position: relative; z-index: 2; }

/* Кнопка Play по центру правой половины hero */
.hero__play-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
/* Круглая кнопка Play с пульсирующими кольцами */
.hero__play-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: background var(--t-base), transform var(--t-base);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.hero__play-btn svg { margin-left: 5px; }
.hero__play-btn::before,
.hero__play-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(236,122,0,0.55);
  animation: play-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
.hero__play-btn::after { animation-delay: 1.3s; }
@keyframes play-pulse {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.85); opacity: 0; }
}
.hero__play-btn:hover { background: var(--c-primary-dark); transform: scale(1.05); }
@media (max-width: 992px) {
  .hero__play-zone { display: none; }
}

/* Модальное окно с видео */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
}
.video-modal.is-open { display: flex; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 13, 0.88);
  cursor: pointer;
}
.video-modal__box {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.video-modal__box iframe,
.video-modal__box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal__close {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-base);
}
.video-modal__close:hover { background: var(--c-primary); }
body.no-scroll { overflow: hidden; }

.hero__grid { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-48); align-items: center; padding: var(--space-96) 0; }
/* Видео-hero на десктопе занимает ровно высоту экрана (за вычетом топбара и шапки) */
@media (min-width: 993px) {
  .hero--video .hero__grid {
    min-height: calc(100svh - var(--header-h) - var(--topbar-h));
    padding: clamp(24px, 4vh, 64px) 0;
    box-sizing: border-box;
  }
  .hero--video .hero__stats { padding-top: clamp(16px, 2.5vh, 32px); }
  .hero--video .hero__subtitle { margin-bottom: clamp(16px, 3vh, 32px); }
  .hero--video .hero__cta { margin-bottom: clamp(16px, 3vh, 32px); }
  .hero--video .hero__eyebrow { margin-bottom: clamp(12px, 2.5vh, 24px); }
  .hero--video .hero__title { margin-bottom: clamp(12px, 2.5vh, 24px); }
}
.hero__content { position: relative; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: var(--space-8); padding: 7px 14px; border-radius: var(--radius-xs); background: rgba(236,122,0,0.14); border: 1px solid rgba(236,122,0,0.35); color: #FFC98A; font-size: var(--fs-13); font-weight: var(--fw-semibold); letter-spacing: 0.4px; margin-bottom: var(--space-24); }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.hero__title { font-size: clamp(34px, 4.2vw, 62px); line-height: 1.06; font-weight: var(--fw-extrabold); letter-spacing: -0.025em; margin-bottom: var(--space-24); color: #FFF; text-wrap: balance; }
.hero__title em { color: var(--c-accent); font-style: normal; }
.hero__subtitle { font-size: var(--fs-16); line-height: var(--lh-relaxed); color: rgba(255,255,255,0.85); margin-bottom: var(--space-32); max-width: none; }
.hero__cta { display: flex; gap: var(--space-16); flex-wrap: wrap; margin-bottom: var(--space-32); }
.hero__stats { display: flex; gap: var(--space-32); padding-top: var(--space-32); border-top: 1px solid rgba(255,255,255,0.15); }
.hero__stats__item strong { display: block; font-size: var(--fs-24); font-weight: var(--fw-extrabold); color: var(--c-accent); line-height: 1; }
.hero__stats__item span { font-size: var(--fs-13); color: rgba(255,255,255,0.7); margin-top: 4px; display: block; }
.hero__visual { position: relative; aspect-ratio: 4/5; max-width: 480px; margin-left: auto; }
.hero__visual-bg {
  position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 2px,
      transparent 2px,
      transparent 12px
    );
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.hero__visual-card {
  position: absolute;
  background: #FFF;
  color: var(--c-text);
  border-radius: var(--radius-md);
  padding: var(--space-16);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-13);
}
.hero__visual-card--1 { top: 8%; left: -8%; width: 220px; }
.hero__visual-card--2 { bottom: 12%; right: -6%; width: 240px; }
.hero__visual-card__title { font-weight: var(--fw-bold); color: var(--c-text); }
.hero__visual-card__sub { color: var(--c-text-muted); margin-top: 2px; }
.hero__visual-card__row { display: flex; align-items: center; gap: var(--space-12); }
.hero__visual-card__icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--c-accent-soft); color: var(--c-accent-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero__visual-illustration {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-40);
}
.hero__visual-illustration svg { width: 100%; height: 100%; }
@media (max-width: 992px) {
  .hero__grid { grid-template-columns: 1fr; padding: var(--space-56) 0 var(--space-80); gap: var(--space-32); }
  .hero__visual { display: none; }
  .hero__title { font-size: var(--fs-40); }
}
@media (max-width: 640px) {
  .hero__title { font-size: var(--fs-32); }
  .hero__subtitle { font-size: var(--fs-16); }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__stats { flex-wrap: wrap; gap: var(--space-20); }
  .hero__stats__item strong { font-size: var(--fs-24); }
}

/* ============ 13. ПОМОЩНИК ВЫБОРА / КАЛЬКУЛЯТОРЫ ============ */
.helper-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-24); }
.helper-card {
  display: block;
  padding: var(--space-32) var(--space-24);
  background: #FFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  text-align: left;
  transition: all var(--t-base);
}
.helper-card:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.helper-card__icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--c-accent-soft); color: var(--c-accent-dark); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-16); }
.helper-card__title { font-size: var(--fs-18); font-weight: var(--fw-bold); margin-bottom: var(--space-8); color: var(--c-text); }
.helper-card__text { font-size: var(--fs-14); color: var(--c-text-muted); }
.helper-card__cta { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--space-16); color: var(--c-primary-text); font-weight: var(--fw-semibold); font-size: var(--fs-14); }
@media (max-width: 992px) { .helper-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .helper-grid { grid-template-columns: 1fr; } }

/* ============ 14. БЛОК «О ПРОИЗВОДСТВЕ» ============ */
.production {
  background: var(--c-bg-dark);
  color: #FFF;
  position: relative;
  overflow: hidden;
}
.production::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(245,166,35,0.18), transparent 50%);
}
.production .container { position: relative; }
.production-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-64); align-items: center; }
.production-content h2 { color: #FFF; }
.production-content p { color: rgba(255,255,255,0.8); margin-bottom: var(--space-24); }
.production-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-24); margin-top: var(--space-32); }
.production-stat strong { display: block; font-size: var(--fs-40); font-weight: var(--fw-extrabold); color: var(--c-accent); line-height: 1; }
.production-stat span { font-size: var(--fs-14); color: rgba(255,255,255,0.7); margin-top: 4px; }
.production-visual { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--space-16); aspect-ratio: 1/1; }
.production-tile {
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 16px),
    linear-gradient(160deg, var(--c-steel) 0%, var(--c-steel-light) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  display: flex;
  align-items: end;
  padding: var(--space-16);
  color: #FFF;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-14);
}
.production-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.production-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.6) 100%); pointer-events: none; }
.production-tile span { position: relative; z-index: 1; padding-left: var(--space-12); }
.production-tile span::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; background: var(--c-primary); }
.production-tile--big { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 992px) {
  .production-grid { grid-template-columns: 1fr; }
  .production-visual { max-width: 480px; }
}

/* ============ 15. ОТЗЫВЫ ============ */
.review-card { background: #FFF; border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-12); }
.review-card__stars { color: var(--c-accent); display: flex; gap: 2px; }
.review-card__text { color: var(--c-text); line-height: var(--lh-relaxed); font-size: var(--fs-15); }
.review-card__author { display: flex; align-items: center; gap: var(--space-12); margin-top: auto; padding-top: var(--space-16); border-top: 1px solid var(--c-border); }
.review-card__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c-bg-soft); display: flex; align-items: center; justify-content: center; font-weight: var(--fw-bold); color: var(--c-text-muted); }
.review-card__name { font-weight: var(--fw-semibold); font-size: var(--fs-14); }
.review-card__meta { font-size: var(--fs-12); color: var(--c-text-muted); }
.review-card__product { font-size: var(--fs-12); color: var(--c-text-muted); }
.review-card__product a { color: var(--c-primary-text); }

/* ============ 16. КЕЙСЫ ============ */
.case-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--c-steel);
  border: 1px solid rgba(255,255,255,0.06);
  color: #FFF;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: var(--space-24);
  transition: all var(--t-base);
}
.case-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10, 12, 15, 0.88) 100%); }
.case-card__img { position: absolute; inset: 0; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; }
.case-card > * { position: relative; z-index: 1; }
.case-card__category { font-size: var(--fs-12); text-transform: uppercase; letter-spacing: 1px; color: var(--c-accent); margin-bottom: var(--space-8); font-weight: var(--fw-semibold); }
.case-card__title { font-size: var(--fs-20); font-weight: var(--fw-bold); margin-bottom: var(--space-12); line-height: var(--lh-snug); }
.case-card__meta { font-size: var(--fs-13); color: rgba(255,255,255,0.85); }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ============ 17. FAQ / ACCORDION ============ */
.faq-list { display: flex; flex-direction: column; gap: var(--space-12); }
.faq-item { background: #FFF; border: 1px solid var(--c-border); border-radius: var(--radius-md); overflow: hidden; }
.faq-item__q { padding: var(--space-20) var(--space-24); display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); font-weight: var(--fw-semibold); font-size: var(--fs-16); cursor: pointer; user-select: none; }
.faq-item__q::after {
  content: "+";
  font-size: var(--fs-24);
  color: var(--c-text-muted);
  flex-shrink: 0;
  transition: transform var(--t-base);
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
}
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); color: var(--c-primary); }
.faq-item__a { padding: 0 var(--space-24) var(--space-20); color: var(--c-text-muted); line-height: var(--lh-relaxed); }

/* ============ 18. ФОРМЫ ============ */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-16); }
.form-row label { font-size: var(--fs-13); font-weight: var(--fw-semibold); color: var(--c-text); }
.form-row input, .form-row textarea, .form-row select {
  padding: 12px 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-15);
  background: #FFF;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(236,122,0,0.18);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row .hint { font-size: var(--fs-12); color: var(--c-text-muted); }
.form-consent { display: flex; gap: var(--space-8); font-size: var(--fs-12); color: var(--c-text-muted); align-items: flex-start; }
.form-consent input { margin-top: 3px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-12); }
@media (max-width: 480px) { .form-grid-2 { grid-template-columns: 1fr; } }

.form-card { background: #FFF; border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--space-32); }
.form-card--accent { background: linear-gradient(160deg, #14171B, #232830); border-color: rgba(255,255,255,0.08); color: #FFF; }
.form-card--accent label { color: #FFF; }
.form-card--accent input, .form-card--accent textarea {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #FFF;
}
.form-card--accent input::placeholder, .form-card--accent textarea::placeholder { color: rgba(255,255,255,0.6); }

/* ============ 19. ЛИДМАГНИТ / БЛОК ПОДПИСКИ ============ */
.lead-banner {
  background: linear-gradient(160deg, #14171B 0%, #232830 100%);
  color: #FFF;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  padding: var(--space-56);
  position: relative;
  overflow: hidden;
}
.lead-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 115%, rgba(236,122,0,0.22), transparent 55%),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.lead-banner > * { position: relative; }
.lead-banner__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-48); align-items: center; }
.lead-banner h3 { color: #FFF; }
.lead-banner p { color: rgba(255,255,255,0.85); }
.lead-banner__form { display: flex; gap: var(--space-12); margin-top: var(--space-24); }
.lead-banner__form input { flex-grow: 1; padding: 16px 18px; border: 0; border-radius: var(--radius-sm); font-size: var(--fs-15); background: #FFF; color: var(--c-text); }
@media (max-width: 768px) {
  .lead-banner { padding: var(--space-32); }
  .lead-banner__grid { grid-template-columns: 1fr; }
  .lead-banner__form { flex-direction: column; }
}

/* ============ 20. БЛОК «СЕРИИ» / СРАВНЕНИЕ ============ */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-24); }
.tier-card {
  background: #FFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  transition: all var(--t-base);
}
.tier-card:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.tier-card--featured { border-color: var(--c-primary); border-width: 2px; position: relative; transform: scale(1.02); }
.tier-card--featured::before { content: "ПОПУЛЯРНЫЙ"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 4px 14px; background: var(--c-primary); color: #FFF; font-size: var(--fs-12); font-weight: var(--fw-bold); border-radius: var(--radius-full); letter-spacing: 0.5px; }
.tier-card__name { font-size: var(--fs-24); font-weight: var(--fw-extrabold); color: var(--c-primary-text); }
.tier-card__desc { color: var(--c-text-muted); font-size: var(--fs-14); }
.tier-card__features { display: flex; flex-direction: column; gap: var(--space-8); margin: var(--space-16) 0; }
.tier-card__features li { display: flex; align-items: start; gap: var(--space-8); font-size: var(--fs-14); }
.tier-card__features svg { color: var(--c-success); flex-shrink: 0; margin-top: 2px; }
.tier-card__from { font-size: var(--fs-13); color: var(--c-text-muted); }
.tier-card__from strong { display: block; font-size: var(--fs-28); color: var(--c-text); font-weight: var(--fw-extrabold); }
@media (max-width: 992px) { .tier-grid { grid-template-columns: 1fr; } .tier-card--featured { transform: none; } }

/* ============ 21. КАРТА ДИЛЕРОВ ============ */
.dealers-map {
  background: linear-gradient(135deg, var(--c-bg-dark) 0%, var(--c-steel) 100%);
  border-radius: var(--radius-lg);
  color: #FFF;
  padding: var(--space-48);
  position: relative;
  overflow: hidden;
}
.dealers-map__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-48); }
.dealers-map h3 { color: #FFF; margin-bottom: var(--space-12); }
.dealers-map p { color: rgba(255,255,255,0.8); margin-bottom: var(--space-24); }
.dealers-map__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16) var(--space-20); margin-bottom: 30px; }
@media (max-width: 560px) { .dealers-map__stats { gap: var(--space-16); } }
.dealers-map__stat strong { display: block; font-size: var(--fs-32); font-weight: var(--fw-extrabold); color: var(--c-accent); line-height: 1; }
.dealers-map__stat span { font-size: var(--fs-13); color: rgba(255,255,255,0.72); margin-top: 6px; line-height: 1.3; }
.dealers-map__cta { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.dealers-map .btn--outline { border-color: rgba(255,255,255,0.28); color: #FFF; }
.dealers-map .btn--outline:hover { border-color: #FFF; background: rgba(255,255,255,0.08); }
/* Карточки-преимущества сети дилеров (замена имитации карты) */
.dealers-net { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); gap: var(--space-16); align-content: stretch; }
.dealers-net__card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 30px 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-md); transition: border-color var(--t-base), background var(--t-base); }
.dealers-net__card:hover { border-color: rgba(245,166,35,0.45); background: rgba(255,255,255,0.07); }
.dealers-net__ic { flex-shrink: 0; display: inline-flex; color: var(--c-accent); }
.dealers-net__ic svg { width: 30px; height: 30px; }
.dealers-net__card h4 { color: #FFF; font-size: var(--fs-15); font-weight: var(--fw-bold); line-height: 1.3; margin: 0 0 6px; }
.dealers-net__card p { color: rgba(255,255,255,0.78); font-size: var(--fs-13); line-height: 1.5; margin: 0; }
.dealers-net__cities { margin-top: var(--space-32); padding-top: var(--space-24); border-top: 1px solid rgba(255,255,255,0.10); color: rgba(255,255,255,0.72); font-size: var(--fs-14); line-height: 1.8; }
.dealers-net__cities-label { color: #FFF; font-weight: var(--fw-semibold); margin-right: 6px; }
.dealers-net__more { color: rgba(255,255,255,0.5); }
@media (max-width: 992px) {
  .dealers-map { padding: var(--space-32); }
  .dealers-map__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .dealers-net { grid-template-columns: 1fr; } }

/* ============ 22. БЛОГ В ЛИСТИНГЕ ============ */
.blog-card { display: flex; flex-direction: column; gap: var(--space-12); background: #FFF; border-radius: var(--radius-md); border: 1px solid var(--c-border); overflow: hidden; transition: all var(--t-base); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card__image { aspect-ratio: 16/9; background: var(--c-bg-soft); position: relative; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: var(--space-20); display: flex; flex-direction: column; gap: var(--space-8); flex-grow: 1; }
.blog-card__category { font-size: var(--fs-12); text-transform: uppercase; letter-spacing: 0.5px; color: var(--c-primary-text); font-weight: var(--fw-semibold); }
.blog-card__title { font-size: var(--fs-17); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.blog-card__excerpt { color: var(--c-text-muted); font-size: var(--fs-14); }
.blog-card__meta { font-size: var(--fs-12); color: var(--c-text-soft); margin-top: auto; padding-top: var(--space-12); display: flex; gap: var(--space-12); }

/* ============ 23. B2B-БЛОК ============ */
.b2b-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #FFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.b2b-banner__content { padding: var(--space-48); display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; }
.b2b-banner__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); margin: var(--space-16) 0; }
@media (max-width: 480px) { .b2b-banner__features { grid-template-columns: 1fr; } }
.b2b-banner__feature { display: flex; align-items: start; gap: var(--space-8); font-size: var(--fs-14); }
.b2b-banner__feature svg { color: var(--c-success); flex-shrink: 0; margin-top: 2px; }
.b2b-banner__visual { background: linear-gradient(160deg, var(--c-steel), var(--c-bg-dark)); display: flex; align-items: center; justify-content: center; color: #FFF; padding: var(--space-48); position: relative; overflow: hidden; }
.b2b-banner__visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 25%, rgba(236,122,0,0.18), transparent 55%), repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 16px); }
.b2b-doc { background: #FFF; color: var(--c-text); border-radius: var(--radius-md); padding: var(--space-20); box-shadow: var(--shadow-xl); width: 100%; max-width: 320px; position: relative; z-index: 1; }
.b2b-doc__header { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--space-12); border-bottom: 1px solid var(--c-border); }
.b2b-doc__title { font-weight: var(--fw-bold); font-size: var(--fs-14); }
.b2b-doc__rows { display: flex; flex-direction: column; gap: 6px; padding: var(--space-12) 0; font-size: var(--fs-12); }
.b2b-doc__row { display: flex; justify-content: space-between; }
.b2b-doc__row span:last-child { font-weight: var(--fw-semibold); }
.b2b-doc__total { border-top: 1px solid var(--c-border); padding-top: var(--space-12); margin-top: 6px; display: flex; justify-content: space-between; font-weight: var(--fw-bold); font-size: var(--fs-15); }
@media (max-width: 992px) {
  .b2b-banner { grid-template-columns: 1fr; }
  .b2b-banner__visual { padding: var(--space-32); }
  .b2b-banner__content { padding: var(--space-32); }
}

/* ============ 24. ФУТЕР ============ */
.footer { background: var(--c-bg-dark); color: rgba(255,255,255,0.85); padding-top: var(--space-80); padding-bottom: var(--space-32); }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: #FFF; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: var(--space-32); padding-bottom: var(--space-48); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand { color: rgba(255,255,255,0.7); font-size: var(--fs-14); line-height: var(--lh-relaxed); }
.footer__col h4 { font-size: var(--fs-14); color: #FFF; margin-bottom: var(--space-16); text-transform: uppercase; letter-spacing: 0.5px; }
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-8); }
.footer__col li { font-size: var(--fs-14); }
.footer__phones { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-12); }
.footer__phones a { color: #FFF; font-size: var(--fs-16); font-weight: var(--fw-bold); }
.footer__phones small { color: rgba(255,255,255,0.5); font-size: var(--fs-12); }
.footer__messengers { display: flex; gap: var(--space-8); margin-top: var(--space-16); }
.footer__messenger { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #FFF; transition: transform var(--t-base), box-shadow var(--t-base); }
.footer__messenger img { width: 100%; height: 100%; display: block; }
.footer__messenger:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.footer__bottom { padding-top: var(--space-32); display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-12); color: rgba(255,255,255,0.55); gap: var(--space-16); }
.footer__bottom__links { display: flex; gap: var(--space-16); flex-wrap: wrap; }
.footer__pay { display: flex; gap: var(--space-12); align-items: center; }
.footer__dev {
  color: rgba(255,255,255,0.55);
  font-size: var(--fs-12);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: var(--space-16);
  margin-left: var(--space-4);
}
.footer__dev strong { font-weight: inherit; color: inherit; }
.footer__dev:hover { color: #FFF; }
.footer__pay span { font-size: var(--fs-12); color: rgba(255,255,255,0.5); }
@media (max-width: 992px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer__grid { grid-template-columns: 1fr; gap: var(--space-32); } .footer__bottom { flex-direction: column; align-items: flex-start; text-align: left; } }

/* ============ 25. ВЁРСТКА УСЛУГ / SVG ИЛЛЮСТРАЦИИ ============ */
.svg-placeholder {
  background: repeating-linear-gradient(45deg, #E9ECF1 0, #E9ECF1 2px, #F5F7FA 2px, #F5F7FA 14px);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-soft);
  font-size: var(--fs-12);
  text-align: center;
  padding: var(--space-12);
}

/* ============ 26. УТИЛИТЫ ============ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }
.gap-24 { gap: var(--space-24); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mt-32 { margin-top: var(--space-32); }
.mt-48 { margin-top: var(--space-48); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-24 { margin-bottom: var(--space-24); }
.mb-32 { margin-bottom: var(--space-32); }
.mb-48 { margin-bottom: var(--space-48); }
.hide-mobile { }
.hide-desktop { display: none; }
@media (max-width: 992px) {
  .hide-mobile { display: none; }
  .hide-desktop { display: block; }
}

/* ===== Поиск в шапке (поле + выпадашка подсказок) ===== */
.header-search { position: relative; flex: 1 1 280px; max-width: 440px; min-width: 0; margin: 0 var(--space-16); }
.header-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--c-text-muted); pointer-events: none; }
.header-search__input { width: 100%; height: 44px; padding: 0 14px 0 38px; border: 1px solid var(--c-border); border-radius: var(--radius-md); background: var(--c-bg-soft); font: inherit; color: var(--c-text); }
.header-search__input:focus { outline: none; border-color: var(--c-primary); background: var(--c-bg); }
.header-search__drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(0,0,0,.12); overflow: hidden; z-index: 60; }
.header-search__drop:empty { display: none; }
.header-search__drop a, .header-search__empty { display: block; padding: 10px 14px; color: var(--c-text); text-decoration: none; font-size: var(--fs-13); border-bottom: 1px solid var(--c-border); }
.header-search__drop a:last-child { border-bottom: 0; }
.header-search__drop a:hover { background: var(--c-bg-soft); color: var(--c-primary-text); }
.header-search__all { font-weight: 600; color: var(--c-primary-text) !important; }
.header-search__empty { color: var(--c-text-muted); }
@media (max-width: 920px) {
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin: var(--space-12) 0 0; }
}

/* ============ ДОСТУПНОСТЬ: тач-таргеты и reduced-motion ============ */
/* Кнопки на сенсорных экранах — минимум 44px по высоте (WCAG 2.5.8 / Apple HIG). */
@media (pointer: coarse) {
  .btn--sm { min-height: 44px; }
  .btn { min-height: 44px; }
}

/* Пользователь просил меньше движения — отключаем анимации и плавные скроллы.
   Контент при этом остаётся полностью видимым (никаких opacity-гейтов). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Подписка на рассылку и способы оплаты в футере (перенос с донора, 2026-07-16) */
.footer__subscribe { margin-top: var(--space-24); max-width: 340px; }
.footer__subscribe label { display: block; font-size: var(--fs-13); color: rgba(255,255,255,0.7); margin-bottom: var(--space-8); }
.footer__subscribe-row { display: flex; gap: var(--space-8); }
.footer__subscribe-row input[type="email"] {
  flex: 1 1 auto; min-width: 0; padding: 9px 12px; font: inherit; font-size: var(--fs-14);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm); color: #FFF;
}
.footer__subscribe-row input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.footer__subscribe-row input[type="email"]:focus { outline: none; border-color: var(--c-primary); }
.footer__subscribe-note { font-size: var(--fs-13); color: var(--c-accent, #FFC98A); margin-top: var(--space-8); }
.footer__pay { margin-top: var(--space-20); font-size: var(--fs-13); color: rgba(255,255,255,0.7); }
.footer__pay img { display: block; margin-top: var(--space-8); max-width: 220px; height: auto; background: #FFF; border-radius: var(--radius-xs); padding: 4px 8px; }

/* ============ Кнопка «наверх» (созвон 2026-07, п.3.2) ============ */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-primary); color: #16181B;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  box-shadow: 0 6px 16px rgba(20,23,27,0.25);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-primary-dark, #D96B00); }

/* ============ Sticky-компакт-хедер (созвон 2026-07, п.3.3) ============ */
.sticky-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 140;
  background: #FFF; border-bottom: 1px solid var(--c-border);
  box-shadow: 0 4px 14px rgba(20,23,27,0.08);
  transform: translateY(-110%); transition: transform var(--t-base);
}
.sticky-bar.is-visible { transform: none; }
.sticky-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 56px; }
.sticky-bar__logo img { height: 40px; width: auto; display: block; }
.sticky-bar__phone { font-weight: var(--fw-bold); color: var(--c-text); white-space: nowrap; }
.sticky-bar__actions { display: flex; align-items: center; gap: var(--space-12); }
@media (max-width: 560px) { .sticky-bar__phone { display: none; } }

/* ============ Плавающий переключатель вида каталога (созвон 2026-07, п.3.1) ============ */
.view-switch {
  position: fixed; left: 20px; bottom: 20px; z-index: 150;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--radius-full);
  background: #16181B; color: #FFF; font-weight: var(--fw-semibold); font-size: var(--fs-14);
  box-shadow: 0 6px 16px rgba(20,23,27,0.35);
}
.view-switch:hover { background: #2A2E35; color: #FFF; }
@media (prefers-reduced-motion: reduce) { .to-top, .sticky-bar { transition: none; } }
