/* FONTS:BEGIN — создано tools/fonts.py, не править руками */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/onest-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/onest-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/onest-800-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/onest-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* FONTS:END */

/* ==========================================================================
   POWERRA — дизайн-система

   Чёрный — основа, золото — главный акцент (кнопки, цифры, выделения),
   красный — только узкий: полоса-триколор, скидка, «не подойдёт».
   На кнопках красного нет: на чёрном он читается как ошибка.

   Цвета схемы электроснабжения несут смысл и остаются отдельными:
   золото = солнце и DC, синий = сеть и AC, зелёный = накопитель и
   «в наличии».

   Шрифт заголовков и цифр — Onest (свой, с кириллицей), основной
   текст — системный. Моноширинного нет: цены и характеристики набраны
   табличными цифрами того же Onest.
   ========================================================================== */

:root {
  /* Поверхности */
  --black:      #0d0d0d;
  --black-2:    #171717;
  --black-3:    #232323;
  --paper:      #f4f3ef;
  --surface:    #ffffff;
  --line:       #e3e0d8;
  --line-2:     #cfcbc1;
  --line-dark:  #2c2c2c;

  /* Текст */
  --text:       #121212;
  --text-2:     #5b5850;
  --text-inv:   #f6f5f1;
  --text-inv-2: #a6a39b;

  /* Бренд */
  --gold:       #ffcc00;
  --gold-hover: #ffd83d;
  --gold-ink:   #7a5f00;   /* золото для текста на белом: контраст ≥ 4.5 */
  --gold-soft:  #fff6cc;
  --red:        #dd0000;
  --red-soft:   #fdecec;

  /* Смысловые */
  --dc:         #ffcc00;
  --ac:         #2f6be0;
  --charge:     #12925b;

  --stripe: linear-gradient(90deg, var(--black) 0 33.34%, var(--red) 33.34% 66.67%, var(--gold) 66.67%);

  --font-display: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(13, 13, 13, .05), 0 8px 24px rgba(13, 13, 13, .06);
  --shadow-lg: 0 2px 6px rgba(13, 13, 13, .06), 0 18px 44px rgba(13, 13, 13, .12);
}

/* --------------------------------------------------------- основа */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
body::before {                 /* триколор по верхнему краю страницы */
  content: ""; display: block; height: 4px; background: var(--stripe);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* Атрибут hidden сильнее любого display из классов: иначе правило вроде
   .grid-products > div { display: flex } оставляет «скрытые» фильтром
   карточки на экране — фильтр считал, но ничего не прятал. */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* --------------------------------------------------------- типографика */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 4.2vw, 54px); }
h2 { font-size: clamp(24px, 2.8vw, 36px); }
h3 { font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; letter-spacing: -.015em; }
p  { margin: 0 0 1em; }

.num, .price, .price-old, .pcard__price, .kpi b, .calc__out, .calc__total b,
.autonomy__h, .hero__fact b, .specs td:last-child {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-2);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--gold); flex: none; }
.eyebrow--inv { color: var(--text-inv-2); }

.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 64ch; }

/* --------------------------------------------------------- каркас */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(44px, 5.5vw, 80px) 0; }
.section--tight { padding: clamp(28px, 3.5vw, 48px) 0; }
.section--dark { background: var(--black); color: var(--text-inv); }
.section--dark h2, .section--dark h3 { color: var(--text-inv); }
.section--dark .lead { color: var(--text-inv-2); }

.section-head { margin-bottom: clamp(20px, 2.6vw, 34px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }

/* --------------------------------------------------------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--gold); color: var(--black); }
.btn--primary:hover { background: var(--gold-hover); }
.btn--dark { background: var(--black); color: var(--text-inv); }
.btn--dark:hover { background: var(--black-3); }
.btn--ghost { border-color: var(--black); color: var(--black); background: transparent; }
.btn--ghost:hover { background: var(--black); color: var(--text-inv); }
.btn--ghost-inv { border-color: var(--text-inv-2); color: var(--text-inv); }
.btn--ghost-inv:hover { border-color: var(--gold); color: var(--gold); }
.btn--wide { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: 14px; }

/* --------------------------------------------------------- шапка */
.topbar { background: var(--black); color: var(--text-inv-2); font-size: 13px; }
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 36px; flex-wrap: wrap; }
.topbar__city { display: inline-flex; align-items: center; gap: 7px; color: var(--text-inv); font-weight: 600; }
.topbar__city svg { width: 14px; height: 14px; color: var(--gold); }
.topbar__spacer { flex: 1 1 auto; }
.topbar a:hover { color: var(--gold); }

.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--black-2);
  color: var(--text-inv);
  border-bottom: 1px solid var(--line-dark);
}
.header__in { display: flex; align-items: center; gap: 28px; min-height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { display: grid; grid-template-rows: repeat(3, 1fr); width: 8px; height: 30px; flex: none; }
.logo__mark i:nth-child(1) { background: var(--text-inv); }
.logo__mark i:nth-child(2) { background: var(--red); }
.logo__mark i:nth-child(3) { background: var(--gold); }
.logo__text {
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; letter-spacing: .02em; line-height: 1;
  color: var(--text-inv);
}

.nav { display: flex; align-items: center; gap: 24px; flex: 1 1 auto; }
.nav a { font-size: 15px; font-weight: 600; color: #dcdad3; padding: 8px 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header__phone { font-family: var(--font-display); font-weight: 700; font-size: 16px; white-space: nowrap; }
.burger { display: none; background: none; border: 0; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text-inv); margin: 4px 0; }

/* --------------------------------------------------------- первый экран */
.hero {
  background: var(--black);
  color: var(--text-inv);
  position: relative;
  overflow: hidden;
}
.hero::before {                /* золотой клин справа — вместо градиентного свечения */
  content: ""; position: absolute; top: 0; bottom: 0; right: -8%; width: 38%;
  background: var(--gold); transform: skewX(-14deg); opacity: .96;
}
.hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: calc(38% - 8% + 18px); width: 10px;
  background: var(--red); transform: skewX(-14deg);
}
.hero__in {
  position: relative; z-index: 1;
  padding: clamp(48px, 7vw, 104px) 0;
  max-width: 62%;
}
.hero h1 { color: var(--text-inv); font-size: clamp(34px, 5vw, 64px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { color: var(--text-inv-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 52ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 34px; }
.hero__facts { display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.hero__fact b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.hero__fact span { font-size: 13px; color: var(--text-inv-2); display: block; max-width: 17ch; }

/* --------------------------------------------------------- разделы */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cat::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.cat:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.cat:hover::after { transform: scaleX(1); }
.cat__icon { width: 38px; height: 38px; color: var(--black); }
.cat__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.cat__meta { font-size: 13px; color: var(--text-2); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.cat__meta b { color: var(--text); }

/* --------------------------------------------------------- карточки товаров */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-products > div { display: flex; flex-direction: column; }
.grid-products > div > .pcard { flex: 1 1 auto; }
/* Длинные листинги разделов (до сотни карточек): браузер не рисует
   карточки за экраном, пока до них не дошли, — быстрее первая
   отрисовка. Содержимое при этом остаётся в HTML для поисковиков. */
#plist > div { content-visibility: auto; contain-intrinsic-size: auto 460px; }

.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.pcard:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pcard__media {
  aspect-ratio: 4 / 3; background: var(--surface);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.pcard__ph { color: var(--line-2); width: 56px; height: 56px; }
.pcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; gap: 8px; border-top: 1px solid var(--line); }
.pcard__sku { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); }
.pcard__name { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.pcard__name a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.pcard__specs { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.pcard__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pcard__price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pcard__old { display: block; font-size: 13px; color: var(--text-2); text-decoration: line-through; font-weight: 400; }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-family: var(--font-display); font-size: 12px; font-weight: 800;
  padding: 4px 9px; border-radius: 4px;
}
.badge--sale { background: var(--red); color: #fff; }

.stock { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.stock--in { color: var(--charge); }
.stock--in::before { background: var(--charge); }
.stock--order { color: var(--gold-ink); }
.stock--order::before { background: var(--gold); box-shadow: 0 0 0 1px var(--gold-ink) inset; }
.stock--out { color: var(--text-2); }
.stock--out::before { background: var(--text-2); }

/* --------------------------------------------------------- крошки */
.crumbs { font-size: 13px; color: var(--text-2); padding: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line-2); }

/* --------------------------------------------------------- раздел каталога */
.cat-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.cat-layout--single { grid-template-columns: minmax(0, 1fr); }

.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.filters__group + .filters__group { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.filters__sum { display: none; }
.filters__title { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--black); flex: none; }
.check span { flex: 1 1 auto; }
.check em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--paper); border-radius: 999px; padding: 1px 8px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar__count { font-size: 14px; color: var(--text-2); }
.toolbar__count span { font-weight: 700; color: var(--text); }
.toolbar select { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }

.facet-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; }
.facet-links a {
  font-size: 14px; font-weight: 600; padding: 8px 15px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  transition: background .15s ease, border-color .15s ease;
}
.facet-links a:hover { background: var(--gold); border-color: var(--gold); }

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(21px, 2.1vw, 28px); margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose table { margin: 1.4em 0; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; background: var(--gold-soft); font-size: 13.5px; }
.prose strong { font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* --------------------------------------------------------- карточка товара */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery__main { aspect-ratio: 1 / 1; position: relative; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.gallery__main svg { width: 40%; height: 40%; color: var(--line-2); }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.gallery__thumb { aspect-ratio: 1; padding: 0; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb[aria-current="true"] { border-color: var(--gold); }

.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 30px); }
.buybox__sku { font-size: 13px; font-weight: 600; color: var(--text-2); }
.buybox__sku a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.buybox h1 { font-size: clamp(24px, 2.6vw, 34px); margin: 10px 0 14px; }
.buybox__lead { color: var(--text-2); font-size: 15.5px; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 8px; flex-wrap: wrap; }
.price { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.price-old { font-size: 18px; color: var(--text-2); text-decoration: line-through; }
.price-save { font-size: 13px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 3px 9px; border-radius: 4px; }
.buybox__actions { display: flex; gap: 10px; margin: 22px 0 18px; flex-wrap: wrap; }
.buybox__actions .btn { flex: 1 1 180px; }

.usp { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.usp li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.45; }
.usp svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--black); background: var(--gold); border-radius: 50%; padding: 3px; }

.highlights { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.highlights li { display: flex; gap: 11px; font-size: 14.5px; }
.highlights li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; flex: none; background: var(--gold); }

.specs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.specs__group { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--gold-soft); color: var(--text); padding: 10px 18px; }
.specs td { padding: 12px 18px; font-size: 14.5px; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs tr:last-child td { border-bottom: 0; }
.specs td:first-child { color: var(--text-2); width: 52%; }
.specs td:last-child { font-weight: 700; font-size: 14.5px; }
.specs th { padding: 12px 14px; font-size: 13px; font-weight: 700; color: var(--text-2); border-bottom: 1px solid var(--line); background: var(--paper); }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
  background: var(--surface); border: 1px solid var(--line-2); padding: 10px 18px; font-size: 15px; font-weight: 700;
  color: var(--text-2); border-radius: 999px; font-family: var(--font-display);
}
.tabs button[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--text-inv); }
.tab-panel[hidden] { display: none; }

.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.insight { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 26px; position: relative; overflow: hidden; }
.insight::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gold); }
.insight h3 { font-size: 17px; margin-bottom: 8px; }
.insight p { font-size: 14.5px; color: var(--text-2); margin: 0; line-height: 1.55; }

.autonomy th { white-space: nowrap; }
.autonomy__h { font-size: 18px; font-weight: 800; color: var(--charge); white-space: nowrap; }

.unsuit { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.unsuit li { position: relative; padding: 15px 18px 15px 46px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.unsuit li::before {
  content: "!"; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red); color: #fff; font: 800 13px/20px var(--font-display); text-align: center;
}
.unsuit__alt { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 3px; }

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details, .faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq summary, .faq__item > summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--black);
  font: 800 17px/24px var(--font-display); text-align: center;
}
.faq details[open] summary::after { content: "−"; }
.faq__a, .faq__body { padding: 0 20px 18px; color: var(--text-2); font-size: 15px; }
.faq__a p, .faq__body p { margin: 0; max-width: 78ch; }

.docs { list-style: none; padding: 0; margin: 0; }
.docs li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.docs li:last-child { border-bottom: 0; }
.docs a { font-weight: 600; }
.docs a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

.spec-help { margin-top: 6px; }
.spec-help summary { font-size: 12.5px; color: var(--gold-ink); cursor: pointer; list-style: none; font-weight: 600; }
.spec-help summary::-webkit-details-marker { display: none; }
.spec-help p { font-size: 13px; color: var(--text-2); margin: 8px 0 0; line-height: 1.5; max-width: 62ch; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .table-scroll table { min-width: 480px; }

/* --------------------------------------------------------- таблица применения */
.apps { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; margin-bottom: 32px; }
.apps__table { min-width: 720px; font-size: 14.5px; }
.apps__table th { text-align: left; padding: 12px 18px; background: var(--black); color: var(--text-inv); font-size: 13px; font-weight: 700; }
.apps__table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.apps__table tr:last-child td { border-bottom: 0; }
.apps__who { font-weight: 700; width: 18%; }
.apps__pick { font-weight: 700; width: 20%; background: var(--gold-soft); }
.apps__why { color: var(--text-2); width: 38%; }

/* --------------------------------------------------------- форма заявки */
.leadform { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-inv-2); }
.field input, .field textarea {
  font: inherit; font-size: 15px; padding: 13px 14px;
  background: var(--black-2); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); color: var(--text-inv);
}
.field input:focus { border-color: var(--gold); outline: none; }
.leadform__consent { grid-column: 1 / -1; font-size: 13px; color: var(--text-inv-2); display: flex; gap: 9px; align-items: flex-start; }
.leadform__consent input { margin-top: 3px; accent-color: var(--gold); }
.leadform__consent a { text-decoration: underline; }
.leadform__submit { grid-column: 1 / -1; }
.form-note { font-size: 13.5px; margin-top: 12px; }

/* --------------------------------------------------------- подвал */
.footer { background: var(--black); color: var(--text-inv-2); padding: 0 0 28px; font-size: 14px; }
.footer::before { content: ""; display: block; height: 4px; background: var(--stripe); margin-bottom: 52px; }
.footer__cols { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.footer h4 { font-size: 14px; font-weight: 800; color: var(--text-inv); margin: 0 0 14px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--gold); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; }
.requisites { font-size: 13px; line-height: 1.8; color: var(--text-inv-2); }
.requisites b { color: var(--text-inv); }

.city-pop { position: absolute; z-index: 60; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px; min-width: 240px; margin-top: 8px; }
.city-pop[hidden] { display: none; }
.city-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.city-pop a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14.5px; }
.city-pop a:hover { background: var(--gold-soft); }

/* --------------------------------------------------------- калькулятор */
.calc { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; align-items: start; }
.calc__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.calc__group + .calc__group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc__select { font: inherit; font-size: 14px; width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.calc__hint { font-size: 12.5px; color: var(--text-2); margin: 8px 0 0; line-height: 1.45; }
.calc__radios { display: grid; gap: 2px; }
.calc__out { font-size: 24px; font-weight: 800; display: block; margin-top: 6px; letter-spacing: -.02em; }
.calc__form input[type="range"] { width: 100%; accent-color: var(--black); margin: 4px 0 0; }
.calc__result { display: grid; gap: 18px; }
.calc__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--black); color: var(--text-inv); border-radius: var(--radius); padding: 18px; }
.kpi b { display: block; font-size: 23px; font-weight: 800; color: var(--gold); letter-spacing: -.02em; margin-bottom: 4px; }
.kpi span { font-size: 12.5px; color: var(--text-inv-2); }
.calc__chart, .calc__spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.calc__chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.calc__chart-head h3 { margin: 0; font-size: 17px; }
.calc__legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); }
.calc__legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.calc__spec h3 { font-size: 17px; margin-bottom: 14px; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; margin-top: 4px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.calc__total b { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }

/* сезонная кривая */
.season { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.season__bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 200px; }
.season__bar { background: var(--gold); border-radius: 3px 3px 0 0; position: relative; min-height: 3px; }
.season__bar span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-inv-2); }
.season__scale { margin-top: 30px; font-size: 12.5px; color: var(--text-inv-2); }

/* --------------------------------------------------------- утилиты */
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { border-left: 5px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; font-size: 14.5px; margin: 1.4em 0; }
.note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- карточка: цифры, сборка, совместимость */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 4px 0 18px; }
.fact { background: var(--paper); border-radius: var(--radius-sm); padding: 10px 12px; }
.fact dt { font-size: 12px; color: var(--text-2); margin: 0 0 2px; }
.fact dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }

.builder { background: var(--black); color: var(--text-inv); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); position: relative; overflow: hidden; }
.builder::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--stripe); }
.builder__head h2 { color: var(--text-inv); margin-bottom: 8px; }
.builder__head p { color: var(--text-inv-2); max-width: 70ch; margin-bottom: 22px; }
.builder__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.builder__form { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px 14px; }
.builder__field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-inv-2); font-weight: 600; }
.builder__field select, .builder__field input {
  font: inherit; font-size: 14.5px; padding: 11px 12px; color: var(--text-inv);
  background: var(--black-2); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); width: 100%;
}
.builder__field select:focus, .builder__field input:focus { border-color: var(--gold); outline: none; }
.builder__warn { grid-column: 1 / -1; margin: 0; background: var(--red); color: #fff; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.builder__out { background: var(--black-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 18px; }
.builder__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.builder__total span { color: var(--text-inv-2); font-size: 14px; }
.builder__total b { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.builder__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.builder__stats div { background: var(--black-3); border-radius: var(--radius-sm); padding: 10px 12px; }
.builder__stats dt { font-size: 12px; color: var(--text-inv-2); }
.builder__stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.builder__hours { margin-bottom: 16px; font-size: 14px; }
.builder__hours th { text-align: left; font-size: 12px; color: var(--text-inv-2); font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--line-dark); }
.builder__hours td { padding: 7px 0; border-bottom: 1px solid var(--line-dark); }
.builder__hours td:last-child, .builder__hours th:last-child { text-align: right; font-family: var(--font-display); font-weight: 800; color: var(--gold); }

.compat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compat__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 200px 130px; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compat__row:last-child { border-bottom: 0; }
.compat__row:hover { background: var(--gold-soft); }
.compat__brand { font-weight: 700; color: var(--text-2); font-size: 13px; }
.compat__name { font-family: var(--font-display); font-weight: 700; }
.compat__spec { color: var(--text-2); }
.compat__price { text-align: right; font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; }

.analogs th { text-align: left; font-size: 13.5px; }
.analogs th a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.analogs td:first-child { width: 22%; }
.series-text { max-width: 820px; margin-bottom: 18px; }
.series-table th { text-align: left; white-space: nowrap; }
.series-table td, .series-table td:last-child { font-weight: 400; white-space: nowrap; }
.series-table td:first-child { width: auto; color: var(--text); }
.series-table td:first-child a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.series-table tr.is-current td { background: var(--gold-soft); font-weight: 700; }
.analogs td:nth-child(2), .analogs th:nth-child(2) { background: var(--gold-soft); }
.analogs td { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.analogs td:first-child { font-family: var(--font-body); }

.buybar { display: none; }

/* --------------------------------------------------------- главная */
.hero__tasks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 32px; font-size: 14px; }
.hero__tasks span { color: var(--text-inv-2); margin-right: 4px; }
.hero__tasks a { color: var(--text-inv); border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 12px; }
.hero__tasks a:hover { border-color: var(--gold); color: var(--gold); }

.home-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.home-cat:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.home-cat__head { display: flex; align-items: center; gap: 12px; }
.home-cat__head .cat__icon { flex: none; }
.home-cat__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.home-cat__head:hover .home-cat__name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.home-cat__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--text-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.home-cat__meta b { color: var(--text); }
.home-cat__subs { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.home-cat__subs li { display: flex; justify-content: space-between; gap: 10px; }
.home-cat__subs a:hover { color: var(--black); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.home-cat__subs span { color: var(--text-2); font-size: 13px; }
.home-cat__note { margin: 0; font-size: 14px; color: var(--text-2); }
.home-cat--cta { background: var(--black); border-color: var(--black); color: var(--text-inv); justify-content: space-between; }
.home-cat--cta .home-cat__note { color: var(--text-inv-2); }
.home-cat--cta .btn { align-self: flex-start; }
.home-cat--cta:hover { box-shadow: var(--shadow-lg); }

.compat-band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.compat-band h2 { margin-top: 10px; }
.compat-band__docs { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--text-inv-2); }
.compat-band__docs li { padding-left: 18px; position: relative; }
.compat-band__docs li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--gold); }
.compat-band__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compat-band__stat { background: var(--black-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 18px; }
.compat-band__stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); color: var(--gold); line-height: 1; margin-bottom: 8px; }
.compat-band__stat span { font-size: 13.5px; color: var(--text-inv-2); }
.compat-band__pair { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 14px 18px; color: var(--text-inv); font-family: var(--font-display); font-weight: 700; }
.compat-band__pair i { font-style: normal; color: var(--gold); margin: 0 4px; }
.compat-band__pair b { color: var(--gold); font-weight: 800; }
.compat-band__pair:hover { border-color: var(--gold); }

.tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tasks-biz { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; }
.tasks-biz__label { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.tasks-biz a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14.5px; font-weight: 600; }
.tasks-biz a:hover { border-color: var(--gold); }
.task { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--black); }
.task:hover { border-top-color: var(--gold); box-shadow: var(--shadow); }
.task__num { font-family: var(--font-display); font-weight: 800; color: var(--gold); font-size: 15px; }
.task__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.25; }
.task__lead { font-size: 14.5px; color: var(--text-2); }
.task__meta { margin-top: auto; font-weight: 700; font-size: 14px; }

.brand-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.brand-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.brand-card:hover { border-color: var(--gold); }
.brand-card__name { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.brand-card__kinds { font-size: 13.5px; color: var(--text-2); }
.brand-card__meta { font-size: 13px; margin-top: 6px; }
.brand-card__price { font-family: var(--font-display); font-weight: 700; font-size: 14px; white-space: nowrap; }
.pcard__kit { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 4px; padding: 16px 12px; }
.pcard__media .pcard__kit img { position: static; inset: auto; width: 100%; height: 100%; padding: 0; object-fit: contain; }

/* --------------------------------------------------------- поиск, блог, демо */
.header__search { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-inv); }
.header__search svg { width: 20px; height: 20px; }
.nav__extra { display: none; }
.header__search:hover { background: var(--black-3); color: var(--gold); }

.search { display: flex; gap: 10px; max-width: 760px; }
.search__input { flex: 1 1 auto; font: inherit; font-size: 17px; padding: 14px 16px; border: 2px solid var(--black); border-radius: var(--radius-sm); background: var(--surface); }
.search__input:focus { outline: none; border-color: var(--gold); }
.search__results { display: grid; gap: 8px; max-width: 900px; }
.search__hit { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px 10px 10px; }
.search__hit:hover { border-color: var(--gold); }
.search__hit img, .search__ph { width: 64px; height: 64px; object-fit: contain; background: var(--paper); border-radius: var(--radius-sm); }
.search__brand { display: block; font-size: 12.5px; color: var(--text-2); }
.search__name { display: block; font-family: var(--font-display); font-weight: 700; }
.search__price { font-family: var(--font-display); font-weight: 800; white-space: nowrap; }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; border-top: 5px solid var(--gold); }
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-card__meta { font-size: 13px; color: var(--text-2); }
.post-card__title { font-size: 20px; margin: 0; }
.post-card__lead { font-size: 14.5px; color: var(--text-2); margin: 0; }

.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

.demo-flag { display: inline-block; margin-top: 6px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-sm); }
.demo-chip { align-self: flex-start; background: var(--red-soft); color: var(--red); font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }

.brand-section { margin-top: 36px; scroll-margin-top: 90px; }
.brand-section > h2 { margin-bottom: 14px; }
.brand-lines th { text-align: left; }
.brand-lines td:first-child a { font-weight: 700; color: var(--text); }
.brand-lines td:first-child a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.brand-lines td, .brand-lines th { white-space: nowrap; }
.brand-lines td:nth-child(2) { white-space: normal; min-width: 160px; }
.partners { display: flex; flex-wrap: wrap; gap: 14px; }
.partners__group { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; min-width: 240px; }
.partners__group ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.partners__group a { font-weight: 700; }
.brand-section h2 { font-size: clamp(20px, 2.2vw, 28px); }

/* --------------------------------------------------------- адаптив */
@media (max-width: 1080px) {
  .cats, .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .cat-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .calc { grid-template-columns: 290px minmax(0, 1fr); gap: 18px; }
  .calc__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season { grid-template-columns: 1fr; gap: 24px; }
  /* клин уже, иначе заголовок в две строки заходит на золото */
  .hero::before { width: 28%; right: -12%; }
  .hero::after { right: calc(28% - 12% + 18px); }
  .hero__in { max-width: 66%; }
}

/* Меню в бургер раньше остальной мобильной вёрстки: разделов и брендов
   в шапке много, а телефон и кнопка расчёта нужны на любой ширине. */
@media (max-width: 1240px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--black-2); padding: 14px 20px 20px; border-bottom: 1px solid var(--line-dark);
  }
  .burger { display: block; }
  .nav.is-open .nav__extra { display: block; }
}

@media (max-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .cat-layout, .calc { grid-template-columns: minmax(0, 1fr); }
  .filters, .calc__form { position: static; }
  .filters__sum {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  }
  .filters__sum::-webkit-details-marker { display: none; }
  .filters__sum::after { content: "+"; font-size: 20px; line-height: 1; }
  .filters__acc[open] .filters__sum { margin-bottom: 16px; }
  .filters__acc[open] .filters__sum::after { content: "−"; }
  .leadform { grid-template-columns: 1fr 1fr; }
  .hero::before { width: 30%; right: -14%; }
  .hero::after { display: none; }
  .hero__in { max-width: 82%; }
}

@media (max-width: 700px) {
  h1, h2, h3, .buybox__sku, .crumbs { overflow-wrap: anywhere; }
  .header__in { gap: 12px; min-height: 60px; }
  .header__actions { gap: 4px; }
  .header__actions .btn { display: none; }
  .header__search { width: 34px; height: 34px; }
  .burger { padding: 8px 4px; }
  .header__phone { font-size: 14px; }
  .logo__text { font-size: 19px; }
  .hero::before { width: 18px; right: 0; transform: none; }
  .hero__in { max-width: none; padding-right: 24px; }
}

@media (max-width: 900px) {
  .builder__grid { grid-template-columns: minmax(0, 1fr); }
  .compat__row { grid-template-columns: minmax(0, 1fr) auto; }
  .compat__brand, .compat__spec { display: none; }
  .buybar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--black); color: var(--text-inv); padding: 10px 16px;
    border-top: 3px solid var(--gold);
  }
  .buybar__price { font-family: var(--font-display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
  body:has(.buybar) .footer { padding-bottom: 80px; }
}

@media (max-width: 360px) { .header__search { display: none; } }

@media (max-width: 1080px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cats, .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compat-band { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .posts { grid-template-columns: 1fr; }
  .home-cats, .tasks { grid-template-columns: minmax(0, 1fr); }
  .compat-band__stats { grid-template-columns: minmax(0, 1fr); }
  .search { flex-direction: column; }
  .search__hit { grid-template-columns: 48px minmax(0, 1fr); }
  .search__hit img, .search__ph { width: 48px; height: 48px; }
  .search__price { grid-column: 2; }
  .cats, .grid-products, .grid-products--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder__form { grid-template-columns: minmax(0, 1fr) 90px; }
  .footer__cols { grid-template-columns: 1fr; }
  .leadform { grid-template-columns: 1fr; }
  .topbar__in { gap: 12px; font-size: 12px; }
  .buybox__actions .btn { flex: 1 1 100%; }
  .calc__kpis { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .cats, .grid-products, .grid-products--3 { grid-template-columns: 1fr; }
  /* Только боковые: сокращённая запись обнуляла вертикальный отступ у
     .wrap.hero__in, и заголовок первого экрана прилипал к шапке. */
  .wrap { padding-left: 16px; padding-right: 16px; }
}

/* ---------- мастер подбора (/podbor/) ---------- */
.pb { display: grid; gap: 12px; max-width: 980px; }
.pb__progress { font-size: 13px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.pb-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pb-step__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.pb-step__head h2 { font-size: 18px; margin: 0; flex: 0 1 auto; }
.pb-step__n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-weight: 800; font-size: 14px; }
.pb-step.is-active .pb-step__n { background: var(--gold); }
.pb-step.is-done .pb-step__n { background: var(--black); color: var(--gold); }
.pb-step__sum { flex: 1 1 auto; font-size: 14px; color: var(--text-2); text-align: right; }
.pb-step__edit { display: none; font: inherit; font-size: 13px; font-weight: 600; background: none; border: 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }
.pb-step.is-done .pb-step__edit { display: inline; }
.pb-step__body { display: none; padding: 0 20px 20px; }
.pb.is-ready .pb-step.is-active .pb-step__body { display: block; }
.pb:not(.is-ready) .pb-step[data-step="1"] .pb-step__body { display: block; }
.pb-step:not(.is-active):not(.is-done) { opacity: .55; }
.pb-step:not(.is-active):not(.is-done) .pb-step__head { padding-top: 12px; padding-bottom: 12px; }
.pb-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pb-opts--sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pb-opt { font: inherit; text-align: left; background: var(--paper); border: 2px solid transparent; border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; display: grid; gap: 3px; color: var(--text); }
.pb-opt b { font-size: 15px; }
.pb-opt span { font-size: 13px; color: var(--text-2); }
.pb-opt:hover { border-color: var(--line-2); }
.pb-opt.is-on { border-color: var(--gold); background: var(--gold-soft); }
.pb-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.pb-tabs { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.pb-tabs button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--text-2); }
.pb-tabs button.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pb-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pb-fields label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.pb-fields input, .pb-item input[type="number"] { font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); width: 100%; }
.pb-fields .calc__hint { grid-column: 1 / -1; }
.pb-group { border-top: 1px solid var(--line); }
.pb-group summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.pb-items { display: grid; gap: 6px; padding-bottom: 10px; }
.pb-item { display: grid; grid-template-columns: minmax(0, 1fr) 90px 70px 80px 100px; gap: 8px; align-items: center; padding: 4px 8px; border-radius: var(--radius-sm); }
.pb-item.is-on { background: var(--gold-soft); }
.pb-item__f { display: grid; gap: 2px; font-size: 11px; color: var(--text-2); }
.pb-item input[type="number"] { font-size: 14px; padding: 6px 8px; }
.pb-item:not(.is-on) .pb-item__f, .pb-item:not(.is-on) .pb-item__r { opacity: .45; }
.pb-sum { font-weight: 700; margin: 10px 0 0; }
.pb-result { display: grid; gap: 14px; margin-top: 8px; }
.pb-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pb-box h3 { font-size: 17px; margin: 0 0 12px; }
.pb-head { background: var(--black); color: var(--text-inv); border-color: var(--black); }
.pb-head h2 { color: var(--text-inv); font-size: 24px; margin: 6px 0 8px; }
.pb-head .eyebrow { color: var(--gold); }
.pb-why { margin: 0; color: var(--text-inv-2); }
.pb-part { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.pb-part:first-of-type { border-top: 0; }
.pb-part__img { width: 96px; height: 96px; object-fit: contain; background: var(--paper); border-radius: var(--radius-sm); }
.pb-part__img--ph { display: block; }
.pb-part__name { font-weight: 700; font-size: 16px; display: block; margin: 2px 0 4px; }
.pb-part__spec { font-size: 13.5px; color: var(--text-2); }
.pb-part__price { text-align: right; display: grid; gap: 4px; }
.pb-part__price b { font-size: 16px; white-space: nowrap; }
.pb-part--note { grid-template-columns: 1fr; }
.pb-in { font-size: 12.5px; font-weight: 600; color: #1e7b34; }
.pb-order { font-size: 12.5px; color: var(--text-2); }
.pb-swap { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.pb-swap select { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); max-width: 100%; min-width: 0; }
.pb-note { font-size: 13px; color: var(--text-2); margin: 8px 0 0; }
.pb-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pb-checks li { position: relative; padding-left: 28px; font-size: 14.5px; }
.pb-checks li::before { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.pb-ok::before { content: "✓"; background: #dff3e4; color: #1e7b34; }
.pb-warn::before { content: "!"; background: var(--gold-soft); color: var(--text); }
.pb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pb-alts { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; }
.pb-how summary { cursor: pointer; font-weight: 700; }
.pb-how table { margin-top: 12px; }
.pb-how td { width: auto !important; font-weight: 400 !important; }
.pb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.linklike { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; color: var(--text); }
@media (max-width: 700px) {
  .pb-step__head { flex-wrap: wrap; padding: 14px 16px; row-gap: 4px; }
  .pb-step__head h2 { font-size: 16px; flex: 1 1 0; }
  .pb-step__edit { order: 2; }
  .pb-step__sum { flex-basis: 100%; text-align: left; order: 3; padding-left: 42px; }
  .pb-step.is-done .pb-step__head { padding-top: 10px; padding-bottom: 10px; }
  .pb-step.is-done .pb-step__head h2 { font-size: 14px; color: var(--text-2); font-weight: 600; }
  .pb-step.is-done .pb-step__sum { color: var(--text); font-weight: 600; }
  .pb-step__body { padding: 0 16px 16px; }
  .pb-item { grid-template-columns: 1fr 1fr 1fr; }
  .pb-item__on { grid-column: 1 / -1; }
  .pb-item__r { grid-column: 1 / -1; }
  .pb-part { grid-template-columns: 64px minmax(0, 1fr); }
  .pb-part__img { width: 64px; height: 64px; }
  .pb-part__price { grid-column: 1 / -1; text-align: left; display: flex; gap: 12px; align-items: baseline; }
  .pb-kpis { grid-template-columns: 1fr; }
  .pb-head h2 { font-size: 20px; }
}
.pb .calc__total b { white-space: nowrap; }
/* калькулятор окупаемости */
.calc__kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.calc__kpis--5 .kpi b { font-size: 20px; }
.calc__table td:first-child { width: auto; }
.calc__table td { font-weight: 400 !important; }
.calc__table td:last-child { white-space: nowrap; text-align: right; }
.calc__table a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.calc__tips { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
.calc__form .pb-fields input { font: inherit; font-size: 15px; }
@media (max-width: 1100px) { .calc__kpis--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .calc__kpis--5 { grid-template-columns: 1fr 1fr; } .calc__table td:last-child { white-space: normal; } }
