/* FONTS:BEGIN — создано tools/fonts.py, не править руками */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/unbounded-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/unbounded-600-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: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/unbounded-700-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/unbounded-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;
}
/* FONTS:END */

/* ==========================================================================
   DEYE POWER — design system
   Палитра построена на цветовой логике самой схемы электроснабжения:
   янтарный = солнце и DC, синий = сеть и AC, зелёный = накопитель.
   Каждый акцент означает конкретную вещь, а не просто «фирменный цвет».
   ========================================================================== */

:root {
  /* Поверхности */
  --ink:        #10151b;
  --ink-2:      #1a222c;
  --ink-3:      #27313d;
  --paper:      #eef1f4;
  --surface:    #ffffff;
  --line:       #d7dee5;
  --line-dark:  #2c3742;

  /* Текст */
  --text:       #10151b;
  --text-2:     #55626f;
  --text-inv:   #f4f7fa;
  --text-inv-2: #93a2b1;

  /* Функциональные акценты */
  --solar:      #f0a81c;   /* солнце / DC */
  --solar-dim:  #b57c09;
  --grid:       #2f6be0;   /* сеть / AC */
  --charge:     #10a06c;   /* накопитель */
  --alert:      #d9432f;

  /* Типографика */
  /* Свой только заголовочный: он и есть узнаваемость. Основной текст и
     моноширинные значения — системные, они уже установлены у читателя и
     не стоят ни байта. system-ui сам подставит нужный шрифт платформы,
     остальное — подстраховка для старых браузеров. */
  --font-display: "Unbounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Метрика */
  --wrap: 1240px;
  --gap: 24px;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(16, 21, 27, .06), 0 2px 8px rgba(16, 21, 27, .04);
  --shadow-md: 0 2px 4px rgba(16, 21, 27, .06), 0 12px 32px rgba(16, 21, 27, .09);
}

/* --------------------------------------------------------- reset */
*, *::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;
  font-feature-settings: "tnum" 0;
}
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: 2px solid var(--grid);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------- типографика */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -.01em; }
p  { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--solar);
  flex: none;
}
.eyebrow--inv { color: var(--text-inv-2); }

.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); max-width: 62ch; }

/* --------------------------------------------------------- каркас */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 6vw, 84px) 0; }
.section--tight { padding: clamp(32px, 4vw, 52px) 0; }
.section--dark { background: var(--ink); 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(24px, 3vw, 40px); }
.section-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 0; }

/* --------------------------------------------------------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn--primary { background: var(--solar); color: var(--ink); }
.btn--primary:hover { background: #ffbb33; }
.btn--dark { background: var(--ink); color: var(--text-inv); }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-inv { border-color: var(--line-dark); color: var(--text-inv); }
.btn--ghost-inv:hover { border-color: var(--text-inv-2); }
.btn--wide { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* --------------------------------------------------------- шапка */
.topbar {
  background: var(--ink);
  color: var(--text-inv-2);
  font-size: 13px;
  border-bottom: 1px solid var(--line-dark);
}
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 40px; flex-wrap: wrap; }
.topbar__city {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-inv); font-weight: 500;
}
.topbar__city svg { width: 14px; height: 14px; }
.topbar__spacer { flex: 1 1 auto; }
.topbar a:hover { color: var(--solar); }

.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header__in {
  display: flex; align-items: center; gap: 28px;
  min-height: 74px;
}
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px; letter-spacing: -.03em;
  line-height: 1;
}
.logo__text span { color: var(--solar-dim); }
.logo__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-2); font-weight: 400; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 22px; flex: 1 1 auto; }
.nav a { font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--solar); }

.header__phone {
  font-family: var(--font-mono);
  font-weight: 500; font-size: 16px; white-space: nowrap;
}
.header__actions { display: flex; align-items: center; gap: 16px; flex: none; }

.burger { display: none; background: none; border: 0; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* --------------------------------------------------------- hero + схема */
.hero {
  background: var(--ink);
  color: var(--text-inv);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 420px at 78% 18%, rgba(240,168,28,.16), transparent 68%),
    radial-gradient(600px 380px at 12% 88%, rgba(47,107,224,.14), transparent 70%);
  pointer-events: none;
}
.hero__in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(44px, 5.5vw, 76px) 0;
}
.hero h1 { color: var(--text-inv); }
.hero h1 em {
  font-style: normal;
  color: var(--solar);
}
.hero__lead { color: var(--text-inv-2); font-size: clamp(16px, 1.5vw, 18px); max-width: 46ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.hero__fact { background: var(--ink); padding: 16px 18px; }
.hero__fact b {
  display: block;
  font-family: var(--font-mono); font-size: 20px; font-weight: 600;
  color: var(--solar); line-height: 1.1; margin-bottom: 5px;
}
.hero__fact span { font-size: 12.5px; color: var(--text-inv-2); line-height: 1.35; display: block; }

/* Однолинейная схема — подпись под ней */
.scheme { width: 100%; height: auto; }
.scheme__caption {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-inv-2);
  margin-top: 10px; text-align: center;
}
.flow { stroke-dasharray: 5 7; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.scheme__node { cursor: pointer; }
.scheme__node rect, .scheme__node circle { transition: fill .18s ease, stroke .18s ease; }
.scheme__node:hover rect { fill: var(--ink-3); }

/* --------------------------------------------------------- сетка категорий */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cat:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat__icon { width: 40px; height: 40px; color: var(--solar-dim); }
.cat__name { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: -.015em; }
.cat__meta {
  font-family: var(--font-mono); font-size: 12px; 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); font-weight: 600; }

/* --------------------------------------------------------- карточка товара в сетке */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* в каталоге с фильтрами карточка обёрнута в div с data-атрибутами — тянем её на высоту ряда */
.grid-products > div { display: flex; flex-direction: column; }
.grid-products > div > .pcard { flex: 1 1 auto; }

.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pcard:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
.pcard__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #f6f8fa, #e6ebf0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.pcard__ph { color: #b3c0cc; width: 56px; height: 56px; }
.pcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; gap: 8px; }
.pcard__sku { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: var(--text-2); }
.pcard__name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.pcard__name a:hover { color: var(--solar-dim); }
.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-family: var(--font-mono); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.pcard__old { display: block; font-size: 12.5px; color: var(--text-2); text-decoration: line-through; font-weight: 400; }

.badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px;
}
.badge--sale { background: var(--alert); color: #fff; }

.stock { font-family: var(--font-mono); font-size: 12px; display: inline-flex; align-items: center; gap: 7px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.stock--in { color: var(--charge); }
.stock--in::before { background: var(--charge); }
.stock--order { color: var(--solar-dim); }
.stock--order::before { background: var(--solar); }
.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); }

/* --------------------------------------------------------- страница категории */
.cat-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 32px; align-items: start; }
/* Без боковой колонки: страницы, где оглавление отключено (toc: false).
   Иначе текст попадает в 258-пиксельную колонку и сжимается в столбик,
   а справа остаётся пустое место. */
.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: 92px;
}
.filters__group + .filters__group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
/* На широком экране аккордеон не нужен: фильтры и так стоят колонкой
   сбоку и ничего не загораживают. Заголовок прячем, содержимое всегда
   раскрыто. */
.filters__sum { display: none; }
.filters__title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 12px;
}
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--solar-dim); flex: none; }
.check span { flex: 1 1 auto; }
.check em { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.toolbar__count { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.toolbar select {
  font: inherit; font-size: 14px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}

/* SEO-текст под листингом */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(21px, 2.2vw, 27px); margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.7em; }
.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: 600; background: rgba(16,21,27,.035); font-size: 13px; }
.prose strong { font-weight: 600; }
.prose a { color: var(--grid); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------- карточка товара */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.gallery__main {
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f7f9fb, #e7ecf1);
}
.gallery__main svg { width: 40%; height: 40%; color: #b3c0cc; }
.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; background: #eef1f4; border: 1px solid var(--line); border-radius: 2px; }

.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); }
.buybox__sku { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); letter-spacing: .04em; }
.buybox h1 { font-size: clamp(23px, 2.6vw, 31px); margin: 10px 0 14px; }
.buybox__lead { color: var(--text-2); font-size: 15px; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin: 20px 0 6px; flex-wrap: wrap; }
.price { font-family: var(--font-mono); font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.03em; }
.price-old { font-family: var(--font-mono); font-size: 18px; color: var(--text-2); text-decoration: line-through; }
.price-save { font-size: 13px; font-weight: 600; color: var(--alert); }
.buybox__actions { display: flex; gap: 10px; margin: 20px 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: 14px; line-height: 1.45; }
.usp svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--charge); }

.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: 6px; height: 6px; margin-top: 8px; flex: none;
  background: var(--solar); transform: rotate(45deg);
}

/* таблица характеристик */
.specs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs__group {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: var(--text-inv-2); padding: 10px 18px;
}
.specs tr { border-bottom: 1px solid var(--line); }
.specs tr:last-child { border-bottom: 0; }
.specs td { padding: 12px 18px; font-size: 14.5px; vertical-align: top; }
.specs td:first-child { color: var(--text-2); width: 52%; }
.specs td:last-child { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.tabs button {
  background: none; border: 0; padding: 12px 18px; font-size: 15px; font-weight: 500;
  color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--solar); }
.tab-panel[hidden] { display: none; }

/* --------------------------------------------------------- шаги */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.step { background: var(--ink); padding: 26px 22px; counter-increment: s; }
.step::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 12px; color: var(--solar);
  letter-spacing: .1em; display: block; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-inv-2); margin: 0; }

/* --------------------------------------------------------- FAQ */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 20px 40px 20px 0; font-size: 16.5px; font-weight: 600;
  cursor: pointer; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 22px; font-weight: 400; color: var(--solar-dim);
}
.faq details[open] summary::after { content: "−"; }
.faq__body { padding: 0 40px 22px 0; color: var(--text-2); font-size: 15px; }
.faq__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- форма заявки */
.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-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-inv-2); }
.field input, .field textarea {
  font: inherit; font-size: 15px; padding: 12px 14px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: var(--text-inv);
}
.field input::placeholder { color: #6c7a89; }
.field input:focus { border-color: var(--solar); outline: none; }
.leadform__consent { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-inv-2); display: flex; gap: 9px; align-items: flex-start; }
.leadform__consent input { margin-top: 3px; accent-color: var(--solar); }
.leadform__consent a { text-decoration: underline; }
.leadform__submit { grid-column: 1 / -1; }
.form-note { font-size: 13px; margin-top: 12px; }

/* --------------------------------------------------------- доверие / реквизиты */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.trust__item h3 { font-size: 17px; }
.trust__item p { font-size: 14.5px; color: var(--text-2); margin: 0; }

.requisites { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: var(--text-inv-2); }
.requisites b { color: var(--text-inv); font-weight: 500; }

/* --------------------------------------------------------- футер */
.footer { background: var(--ink); color: var(--text-inv-2); padding: 56px 0 28px; font-size: 14px; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-inv); margin: 0 0 16px; font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a:hover { color: var(--solar); }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px;
}

/* --------------------------------------------------------- переключатель городов */
.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-md);
  padding: 16px; min-width: 260px; 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: 7px 10px; border-radius: 2px; font-size: 14.5px; }
.city-pop a:hover { background: var(--paper); }

/* --------------------------------------------------------- утилиты */
.mono { font-family: var(--font-mono); }
.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: 3px solid var(--solar); background: rgba(240,168,28,.09);
  padding: 14px 18px; font-size: 14.5px; margin: 1.4em 0;
}
.note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- адаптив */
@media (max-width: 1080px) {
  .cats, .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .cat-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .product { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .burger { display: block; }
  .header__phone { font-size: 15px; }
  .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  /* На телефоне фильтры занимали полэкрана над товарами: до первой
     карточки приходилось листать. Сворачиваем их в одну строку —
     скрипт закрывает аккордеон при загрузке узкого экрана. */
  .filters__sum {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; cursor: pointer; list-style: none;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-2);
  }
  .filters__sum::-webkit-details-marker { display: none; }
  .filters__sum::after { content: "+"; font-size: 18px; line-height: 1; }
  .filters__acc[open] .filters__sum { margin-bottom: 18px; }
  .filters__acc[open] .filters__sum::after { content: "−"; }
  .leadform { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
}

/* Шапка на телефоне.

   На 375 CSS-пикселях логотип, номер, кнопка расчёта и бургер вместе
   занимают 604 px — шапка вылезала за экран и тянула за собой всю
   страницу в горизонтальную прокрутку. Убираем кнопку: расчёт есть
   первым экраном на главной и в подвале, а номер телефона на мобильном
   ценнее — по нему звонят в одно касание. */
@media (max-width: 700px) {
  /* Артикулы вроде SUN‑40K‑SG01HP3‑EU‑BM4 пишутся через неразрывный
     дефис, чтобы не рвались посередине. На узком экране такой артикул
     становится одним словом шире экрана и растягивает страницу целиком.
     Разрешаем перенос внутри слова — но только там, где иначе не влезет. */
  h1, h2, h3, .buybox__sku, .crumbs { overflow-wrap: anywhere; }
  .header__in { gap: 12px; }
  .header__actions { gap: 10px; }
  .header__actions .btn { display: none; }
  .header__phone { font-size: 14px; }
  .logo { gap: 8px; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__text { font-size: 16px; }
}

@media (max-width: 640px) {
  .cats, .grid-products, .grid-products--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .leadform { grid-template-columns: 1fr; }
  .topbar__in { gap: 12px; font-size: 12px; }
  /* Верхняя полоса на телефоне переносилась на две строки и съедала
     первый экран. Слоган про сроки отгрузки убираем: он есть в блоке
     преимуществ и в карточке товара, а город и три ссылки нужнее. */
  .topbar__in .mono { display: none; }
  .buybox__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .cats, .grid-products, .grid-products--3 { grid-template-columns: 1fr; }
  /* Совсем узкие экраны: подпись под логотипом уступает место номеру. */
  .logo__sub { display: none; }
  .logo__text { font-size: 15px; }
  .header__phone { font-size: 13px; }
}

/* 320 px — iPhone SE первого поколения и старые андроиды. Здесь уже не
   помещаются одновременно название бренда, номер и бургер. Оставляем
   знак логотипа: он и так ведёт на главную, а номер телефона в шапке
   для звонка нужнее, чем повторение названия сайта. */
@media (max-width: 380px) {
  .logo__text { display: none; }
  .wrap { padding: 0 14px; }
}

/* ==========================================================================
   Калькулятор станции
   ========================================================================== */
.calc { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: start; }

.calc__form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; position: sticky; top: 92px;
}
.calc__group + .calc__group { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc__select {
  font: inherit; font-size: 14px; width: 100%; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); 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-family: var(--font-mono); font-size: 22px; font-weight: 600;
  display: block; margin-top: 6px; letter-spacing: -.02em;
}
.calc__form input[type="range"] { width: 100%; accent-color: var(--solar-dim); margin: 4px 0 0; }

.calc__result { display: grid; gap: 20px; }

.calc__kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.kpi { background: var(--surface); padding: 18px; }
.kpi b {
  display: block; font-family: var(--font-mono); font-size: 21px; font-weight: 600;
  letter-spacing: -.02em; margin-bottom: 4px;
}
.kpi span { font-size: 12.5px; color: var(--text-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__spec .specs { border-radius: 0; }
.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-family: var(--font-mono); font-size: 24px; 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: 5px; align-items: end; height: 190px; }
.season__bar { background: var(--solar); border-radius: 1px 1px 0 0; position: relative; min-height: 3px; }
.season__bar span {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9.5px; color: var(--text-inv-2);
}
.season__scale { margin-top: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--text-inv-2); }

/* пояснения к характеристикам */
.spec-help { margin-top: 6px; }
.spec-help summary {
  font-size: 12.5px; color: var(--grid); cursor: pointer; list-style: none;
  font-family: var(--font-body);
}
.spec-help summary::-webkit-details-marker { display: none; }
.spec-help summary::before { content: "?"; display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%;
  font-size: 10px; margin-right: 6px; vertical-align: -2px; }
.spec-help p { font-size: 13px; color: var(--text-2); margin: 8px 0 0; line-height: 1.5; max-width: 62ch; }

@media (max-width: 1080px) {
  .calc { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
  .calc__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__form { position: static; }
}

/* ==========================================================================
   Таблица применения и ссылки на фасеты
   ========================================================================== */
.apps { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; margin-bottom: 36px; }
.apps__table { min-width: 720px; font-size: 14.5px; }
.apps__table th {
  text-align: left; padding: 12px 18px; background: var(--ink); color: var(--text-inv-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
}
.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: 600; width: 18%; }
.apps__pick { font-family: var(--font-mono); font-size: 13.5px; color: var(--solar-dim); font-weight: 500; width: 20%; }
.apps__why { color: var(--text-2); width: 38%; }

.facet-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.facet-links__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin-right: 4px; }
.facet-links a {
  font-size: 14px; padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 100px; background: var(--surface); transition: border-color .16s ease;
}
.facet-links a:hover { border-color: var(--ink); }

@media (max-width: 640px) { .apps__table { min-width: 560px; font-size: 13.5px; } }

/* ==========================================================================
   Вычисляемые выводы по модели + галерея с фото
   ========================================================================== */
.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.insight { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--solar); }
.insight h3 { font-size: 16.5px; margin-bottom: 10px; }
.insight p { font-size: 14.5px; color: var(--text-2); margin: 0; line-height: 1.55; }

/* Картинка выводится из потока намеренно. В обычном потоке height:100%
   в контейнере неопределённой высоты разрешается в auto, картинка берёт
   пропорции из атрибутов width/height — у товарных фото это квадрат — и
   растягивает коробку, отменяя заданный aspect-ratio. */
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.gallery__thumb { padding: 0; border: 1px solid var(--line); background: #eef1f4; cursor: pointer; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb[aria-current="true"] { border-color: var(--solar); }
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.gallery__note { font-size: 12.5px; color: var(--text-2); margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------- карточка: новые блоки */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Таблице внутри прокручиваемого блока нужна собственная минимальная
   ширина: иначе браузер сожмёт её по ширине экрана и в колонках
   останется по одному слову на строку. Лучше горизонтальная прокрутка,
   чем столбик из обрывков. */
.prose .table-scroll table { min-width: 480px; }

.autonomy th {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.autonomy__h {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--charge);
  white-space: nowrap;
}

.unsuit { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.unsuit li {
  position: relative;
  padding: 14px 16px 14px 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--alert);
  border-radius: var(--radius);
}
.unsuit li::before {
  content: "";
  position: absolute;
  left: 17px; top: 20px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--alert);
  opacity: .55;
}
.unsuit__alt {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--grid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq { display: grid; gap: 10px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item > summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 44px 15px 18px;
  position: relative;
  font-weight: 600;
  line-height: 1.45;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: "";
  position: absolute;
  right: 20px; top: 22px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq__item[open] > summary::after { transform: rotate(-135deg); top: 25px; }
.faq__a { padding: 0 18px 18px; }
.faq__a p { margin: 0; color: var(--text-2); 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: 500; }
.docs a[href$=".pdf"]::before { content: "PDF"; display: inline-block; margin-right: 10px;
  font: 600 11px/1.6 var(--font-mono, monospace); letter-spacing: .04em;
  padding: 1px 7px; border-radius: 4px; background: var(--accent-soft, rgba(0,0,0,.06));
  color: var(--accent, inherit); vertical-align: 1px; }
