/* Тестовая витрина по макету «Редизайн БазТех — вариант 1a»: компьютер 1440 px, телефон 390 px.
   Углы прямые, красный — кнопки, акценты и подсветка дронов; три шрифта как в макете. */
:root {
  --page: #0a0708;
  --bg: #0e0b0c;
  --surface: #161213;
  --surface-2: #120e0f;
  --line: #261e1f;
  --line-2: #3b2e30;
  --fg: #f3eded;
  --fg-2: #c9bfbf;
  --muted: #a99d9e;
  --dim: #5f4f51;
  --red: #e3242d;
  --red-deep: #b81a22;
  --red-ink: #ff5a61;

  --display: "Unbounded", "Arial Black", Arial, sans-serif;
  --body: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;

  --pad: clamp(16px, 5.6vw, 80px);
  /* подсветка под дроном и чертёжная сетка, как на основном сайте */
  --spot: radial-gradient(ellipse 58% 52% at 50% 50%, rgba(255, 238, 238, 0.12), rgba(227, 36, 45, 0.22) 60%, transparent 100%);
  --spot-hi: radial-gradient(ellipse 58% 52% at 50% 50%, rgba(255, 238, 238, 0.16), rgba(227, 36, 45, 0.24) 60%, transparent 100%);
  --grid:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) center / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) center / 32px 32px;
  --glow: brightness(1.3) contrast(1.08) drop-shadow(0 0 1.5px rgba(255, 60, 68, 0.95)) drop-shadow(0 0 6px rgba(227, 36, 45, 0.8)) drop-shadow(0 0 14px rgba(227, 36, 45, 0.4));
  --glow-sm: brightness(1.3) contrast(1.08) drop-shadow(0 0 1px rgba(255, 60, 68, 0.95)) drop-shadow(0 0 4px rgba(227, 36, 45, 0.8)) drop-shadow(0 0 10px rgba(227, 36, 45, 0.4));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html:has(dialog[open]) { overflow: hidden; }
body {
  position: relative;
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
/* фон страницы, как в менеджерской: чёрный с лёгким красным «напылением»; пятна стоят на месте, страница едет поверх */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 82% 22%, rgba(227, 36, 45, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 50% at 8% 55%, rgba(227, 36, 45, 0.06), transparent 70%),
    radial-gradient(ellipse 60% 45% at 70% 95%, rgba(227, 36, 45, 0.075), transparent 70%),
    var(--page);
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 2px; }

/* одна разметка на обе версии: отдельные подписи для компьютера и телефона */
@media (min-width: 641px) { .only-mob { display: none !important; } }
@media (max-width: 640px) { .only-desk { display: none !important; } }

.w { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.kicker { font: 500 14px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--red-ink); }
.from { color: var(--red-ink); }
.price { font: 700 22px/1.2 var(--display); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  background: var(--red);
  color: #fff;
  font: 600 16px/1.2 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--red-deep); }
.btn-ghost { border: 1px solid var(--line-2); background: transparent; color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: transparent; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn-md { height: 52px; padding: 0 24px; }
.btn-sm { height: 44px; padding: 0 16px; font-size: 14px; }

/* ---------- Верхняя строка и шапка ---------- */
.topbar { border-bottom: 1px solid var(--line); color: var(--muted); font: 500 13px/1.4 var(--body); }
.topbar-row { display: flex; justify-content: space-between; gap: 24px; padding-block: 10px; }
.topbar-group { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--fg); }

.head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 7, 8, 0.94);
  backdrop-filter: blur(8px);
}
.head-row { position: relative; display: flex; align-items: center; gap: 32px; padding-block: 18px; }
.logo img { display: block; width: auto; height: 48px; }
.head-nav { display: flex; gap: 28px; font: 500 16px/1.2 var(--body); }
.head-nav a { color: var(--fg); text-decoration: none; white-space: nowrap; }
.head-nav a:hover { color: var(--red-ink); }
.head-nav a[aria-current] { color: var(--red-ink); }
.only-menu { display: none; }
.head-call, .head-menu { display: none; }
/* справа в шапке: «Получить расчёт», красная «Войти» (вошёл — иконка человечка, .is-in) и корзина */
.head-acts { display: flex; flex: none; align-items: center; gap: 8px; margin-left: auto; }
.head-cab {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  font: 600 16px/1.2 var(--body);
  text-decoration: none;
  transition: background-color 0.15s;
}
.head-cab:hover { background: var(--red-deep); }
.head-cab-icon { display: none; }
.head-cab.is-in { width: 48px; padding: 0; }
.head-cab.is-in .head-cab-text { display: none; }
.head-cab.is-in .head-cab-icon { display: block; }
.head-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.15s;
}
.head-cart:hover { border-color: var(--fg); }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: 600 12px/20px var(--mono);
  text-align: center;
}
@media (max-width: 1240px) {
  .head-row { gap: 24px; }
  .head-nav { gap: 20px; }
}
/* на узком ноутбуке «Получить расчёт» в шапке не помещается — он есть на первом экране */
@media (max-width: 1140px) {
  .head-calc { display: none; }
}
@media (max-width: 1000px) {
  .topbar { display: none; }
  .head-row { gap: 8px; padding-block: 12px; }
  .logo img { height: 34px; }
  .btn-cat { display: none; }
  .head-cab { height: 44px; padding: 0 14px; font-size: 15px; }
  .head-cab.is-in { width: 44px; }
  .head-cart { width: 44px; height: 44px; }
  .head-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-2);
    color: var(--fg);
  }
  .head-menu { display: inline-flex; height: 44px; padding: 0 14px; font-size: 15px; }
  .head-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--pad) 16px;
    border-bottom: 1px solid var(--line-2);
    background: var(--bg);
  }
  .head-nav.open { display: flex; }
  .head-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .only-menu { display: block; }
}

/* ---------- Выдвижной каталог ---------- */
.cat-ico-close { display: none; }
.btn-cat[aria-expanded="true"] { background: var(--red-deep); }
.btn-cat[aria-expanded="true"] .cat-ico-open { display: none; }
.btn-cat[aria-expanded="true"] .cat-ico-close { display: block; }
.cat-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.cat-panel-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
/* затемнение страницы под открытым каталогом */
.cat-shade { position: fixed; inset: 0; z-index: 19; background: rgba(6, 3, 4, 0.72); }

/* слева — разделы; текущий с красной чертой */
.cp-menu { display: flex; flex-direction: column; padding-block: 20px; border-right: 1px solid var(--line); }
.cp-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 14px 17px;
  border: 0;
  border-left: 3px solid transparent;
  background: none;
  color: var(--fg);
  font: 600 15px/1.3 var(--body);
  text-align: left;
  cursor: pointer;
}
.cp-cat span { color: var(--muted); font: 500 13px var(--mono); }
.cp-cat:hover { background: var(--surface); }
.cp-cat[aria-current="true"] { border-left-color: var(--red); background: var(--surface); }
.cp-sep { height: 1px; margin: 14px 20px; background: var(--line); }
.cp-sub { padding: 9px 20px; color: var(--muted); font: 500 14px/1.3 var(--body); text-decoration: none; }
.cp-sub:hover { color: var(--fg); }

/* справа — товары раздела карточками, как в магазине */
.cp-pane { min-width: 0; padding: 24px 0 28px 32px; }
.cp-pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cp-pane-head h3 { font-size: 20px; }
.cp-pane-head a { color: var(--red-ink); font: 600 14px/1.3 var(--body); text-decoration: none; white-space: nowrap; }
.cp-pane-head a:hover { color: var(--fg); }
.cp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cp-tile {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.cp-tile:hover { border-color: var(--red); }
.cp-pic { display: flex; align-items: center; justify-content: center; height: 132px; border-bottom: 1px solid var(--line); background: var(--spot), var(--grid), var(--bg); }
.cp-pic img { width: 78%; height: 80%; object-fit: contain; filter: var(--glow-sm); }
.cp-info { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.cp-info b { font: 700 15px/1.25 var(--display); }
.cp-info small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.cp-line { color: var(--fg-2); font: 500 12px/1.4 var(--mono); }
.cp-price { margin-top: auto; padding-top: 8px; font: 700 16px/1.2 var(--display); white-space: nowrap; }
@media (max-width: 1240px) {
  .cat-panel-row { grid-template-columns: 220px minmax(0, 1fr); }
  .cp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* на узком экране каталога в шапке нет — он в «Меню» */
@media (max-width: 1000px) { .cat-panel, .cat-shade { display: none !important; } }

/* ---------- Первый экран: баннеры ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* как у больших магазинов: крупно линейка и одна фраза, фото уходит за край, без цен; листаются стрелками, пальцем и сами */
.promo { padding-block: 24px 16px; }
.promo-stage { position: relative; }
/* слайды лежат друг на друге и сменяются анимацией: текст поднимается, дрон влетает сбоку, подсветка дышит */
.promo-track { position: relative; display: grid; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); touch-action: pan-y; user-select: none; }
.promo-slide {
  position: relative;
  grid-area: 1 / 1;
  height: clamp(440px, 40vw, 560px);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) center / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) center / 32px 32px,
    var(--surface-2);
}
.promo-slide.is-active { z-index: 1; visibility: visible; opacity: 1; transition: opacity 0.7s ease; }
.promo-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 42% 62% at 72% 55%, rgba(255, 238, 238, 0.12), rgba(227, 36, 45, 0.24) 55%, transparent 82%);
  pointer-events: none;
}
.is-active::before { animation: promo-breathe 5s ease-in-out infinite; }
@keyframes promo-breathe { 50% { opacity: 0.62; } }
.promo-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; max-width: 560px; padding: 52px 0 0 56px; }
.promo-name { font: 800 clamp(38px, 4.4vw, 68px)/0.98 var(--display); letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance; } /* «ПЕРЕХВАТЧИКИ» не заезжает на дрона */
.promo-tag { max-width: 430px; color: var(--fg-2); font-size: 20px; line-height: 1.45; text-wrap: pretty; }
.promo-img { position: absolute; top: 50%; right: -1%; width: 60%; height: 112%; object-fit: contain; filter: var(--glow); transform: translateY(-48%); pointer-events: none; }
.promo-int .promo-img { width: 52%; height: 100%; }
.promo-link { position: absolute; left: 56px; bottom: 44px; z-index: 1; color: var(--fg); font: 600 13px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-underline-offset: 6px; }
.promo-link:hover { color: var(--red-ink); }
/* вход: подпись, фраза и ссылка поднимаются по очереди; дрон въезжает с той стороны, куда листают, и слегка покачивается */
.promo-name, .promo-tag, .promo-link { opacity: 0; translate: 0 22px; transition: opacity 0.5s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.is-active .promo-name, .is-active .promo-tag, .is-active .promo-link { opacity: 1; translate: 0 0; }
.is-active .promo-name { transition-delay: 0.15s; }
.is-active .promo-tag { transition-delay: 0.27s; }
.is-active .promo-link { transition-delay: 0.39s; }
.promo-img { opacity: 0; translate: 14% 0; scale: 0.88; transition: opacity 0.6s ease, translate 0.95s cubic-bezier(0.2, 0.7, 0.2, 1), scale 0.95s cubic-bezier(0.2, 0.7, 0.2, 1); }
.promo-slide.side-left:not(.is-active) .promo-img { translate: -14% 0; } /* только для уходящего/ещё не вошедшего слайда, иначе после свайпа назад дрон остаётся сдвинутым */
.is-active .promo-img { opacity: 1; translate: 0 0; scale: 1; animation: promo-hover 7s ease-in-out 1s infinite; }
@keyframes promo-hover { 0%, 100% { rotate: 0deg; } 30% { rotate: -1.6deg; } 70% { rotate: 1.4deg; } }
.promo-slide.no-anim, .promo-slide.no-anim * { transition: none !important; }
.promo-track.dragging .promo-img { transition: none; }
/* на компьютере баннер перетаскивается мышью или листается жестом тачпада */
@media (hover: hover) { .promo-track { cursor: grab; } .promo-track.dragging { cursor: grabbing; } }

/* точки: текущая — длинная, внутри неё красная полоса заполняется до следующего слайда */
.promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.promo-dots button { position: relative; width: 8px; height: 8px; padding: 0; overflow: hidden; border: 0; border-radius: 4px; background: var(--line-2); cursor: pointer; transition: width 0.3s; }
.promo-dots button[aria-current] { width: 44px; background: var(--line-2); } /* серая дорожка, по ней бежит красная полоса */
.promo-dots i { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.promo-dots button[aria-current] i { transition: transform 0.1s linear; }

@media (prefers-reduced-motion: reduce) {
  .promo-name, .promo-tag, .promo-link, .promo-img { translate: none !important; scale: none !important; }
  .is-active .promo-img, .is-active::before { animation: none; }
}

@media (max-width: 1000px) {
  .promo-copy { padding: 40px 0 0 40px; }
  .promo-link { left: 40px; bottom: 36px; }
  .promo-tag { max-width: 340px; font-size: 18px; }
}
/* ---------- Плитки разделов ---------- */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 64px; }
.cat {
  position: relative;
  display: block;
  min-height: 200px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.cat:hover { border-color: var(--red); }
.cat b, .cat-sub, .cat-cta { position: relative; z-index: 1; display: block; }
.cat b { font: 700 20px/1.25 var(--display); }
.cat-sub { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.45; }
/* картинка целиком внутри плитки, в правом нижнем углу, с красной обводкой */
.cat-img { position: absolute; right: 14px; bottom: 12px; width: auto; height: auto; max-width: 62%; max-height: 66%; object-fit: contain; filter: var(--glow); } /* плитка выросла до высоты «Опта» — картинка крупнее */
/* опт: подпись, крупно «5 000», плашки того, что настраиваем, и кнопка; дрон — в правом верхнем углу */
.cat-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; } /* фон и рамка — как у соседних плиток */
.cat-opt:hover { border-color: var(--line); } /* плитка не ссылка — не подсвечиваем */
.cat-opt > :not(.opt-img) { position: relative; z-index: 1; }
.opt-img { position: absolute; top: -10px; right: -24px; width: 58%; height: 64%; object-fit: contain; filter: var(--glow); pointer-events: none; }
.opt-kicker { color: var(--red-ink); font: 500 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.opt-num { display: flex; align-items: flex-end; gap: 12px; margin-top: 4px; }
.opt-num b { font: 800 48px/0.95 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.opt-num span { padding-bottom: 3px; color: var(--fg-2); font-size: 14px; line-height: 1.2; }
.opt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; padding: 0; list-style: none; }
.opt-tags li { padding: 6px 10px; border: 1px solid var(--line-2); background: var(--surface); font: 600 13px/1.2 var(--body); }
.opt-note { color: var(--muted); font-size: 13px; }
.opt-btn { align-self: stretch; margin-top: auto; }

@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-opt { grid-column: 1 / -1; }
  .opt-img { width: 40%; height: 100%; top: 0; right: 0; }
  .opt-btn { align-self: flex-start; min-width: 280px; }
}

/* ---------- Полоса цифр ---------- */
/* крупная белая цифра, рядом красная единица, ниже серая подпись; над пунктом тонкая линия с красным отрезком */
.band-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band-row div { display: flex; flex-direction: column; gap: 10px; }
.band dt { display: flex; align-items: baseline; gap: 8px; }
.band dt b { color: var(--fg); font: 800 44px/1 var(--display); letter-spacing: -0.02em; }
.band dt span { color: var(--red-ink); font: 700 18px/1 var(--display); }
.band dd { color: var(--muted); font-size: 14px; line-height: 1.45; text-wrap: pretty; }

/* на компьютере — панель в рамке сразу под плитками, пункты без вертикальных разделителей, по левому краю */
@media (min-width: 641px) {
  .cats { padding-bottom: 12px; }
  .band { padding-bottom: 8px; }
  .band-row { width: calc(100% - 2 * var(--pad)); max-width: calc(1440px - 2 * var(--pad)); gap: 32px; padding: 32px 40px 36px; border: 1px solid var(--line); background: var(--page); }
  .band-row div { position: relative; padding-top: 22px; }
  .band-row div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-2); }
  .band-row div::after { content: ""; position: absolute; top: -0.5px; left: 0; width: 32px; height: 2px; background: var(--red); }
  .band dd { max-width: 230px; }
}
/* на планшете — два ряда по два */
@media (min-width: 641px) and (max-width: 1000px) {
  .band-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; padding: 28px 28px 30px; }
  .band dt b { font-size: 38px; }
}
/* ---------- Заголовки разделов ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.sec-title { display: flex; flex-direction: column; gap: 10px; }
.sec-title h2 { font-size: 40px; line-height: 1.1; }
.sec-title p { color: var(--muted); font-size: 17px; }

/* ---------- Каталог ---------- */
.catalog { display: flex; flex-direction: column; gap: 32px; padding-block: 80px 40px; }
.chips { display: flex; gap: 8px; }
.chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg);
  font: 600 15px/1.2 var(--body);
  cursor: pointer;
}
.chip span { font: 500 13px var(--mono); opacity: 0.7; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: #fff; } /* выбранный фильтр — красный, как кнопки */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.15s; }
.card:hover { border-color: var(--dim); }
.card.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 35% { border-color: var(--red); } 100% { border-color: var(--line); } }
.card-pic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  border-bottom: 1px solid var(--line);
  background: var(--spot), var(--grid), var(--bg);
}
.card-pic img { width: 76%; height: 82%; object-fit: contain; filter: var(--glow); transition: scale 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* картинка открывает «Подробнее», как и кнопка */
.card-pic { cursor: pointer; }
.card:hover .card-pic img { scale: 1.04; }
.card-type, .card-kind { color: var(--muted); font: 600 12px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.card-type { position: absolute; top: 16px; left: 16px; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 18px; padding: 24px; }
.card-title { display: flex; flex-direction: column; gap: 8px; }
.card-title h3 { font-size: 22px; line-height: 1.2; }
.card-short { color: var(--muted); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
/* третья колонка шире: в ней длинное «Грузоподъёмность», во второй — «40 км с НСУ» */
.card-specs { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr) minmax(0, 1.3fr); border-block: 1px solid var(--line); }
.card-specs-one { grid-template-columns: minmax(0, 1fr); } /* у пусковой одна строка — совместимость */
.card-specs div { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; }
.card-specs div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.card-specs dt { color: var(--muted); font-size: 12px; }
.card-specs dd { font: 600 16px/1.3 var(--mono); }
.card-line { color: var(--fg-2); font: 500 13px/1.4 var(--mono); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.card .price { font-size: 20px; }
.card-btns { display: flex; gap: 8px; }
.card-btns .btn { padding: 0 14px; }

@media (max-width: 1240px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Сравнение ---------- */
.compare { display: flex; flex-direction: column; gap: 28px; padding-bottom: 80px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.cmp { width: 100%; min-width: 860px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.cmp thead th { background: var(--surface); color: var(--muted); font: 500 12px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp tbody tr:hover { background: var(--surface); }
.cmp .num { font-family: var(--mono); text-align: right; }
.cmp .best { color: var(--red-ink); font-weight: 600; }
.cmp-name { padding: 0; border: 0; border-bottom: 1px solid var(--line-2); background: none; color: var(--fg); font: 600 15px/1.3 var(--body); text-align: left; cursor: pointer; }
.cmp-name:hover { border-bottom-color: var(--red); }
/* длинные «Грузоподъёмность, кг» и «Минин» — гексакоптер 15″ переносятся, чтобы цена не уезжала за край таблицы */
.cmp thead th { white-space: normal; vertical-align: bottom; }
.cmp tbody th { min-width: 150px; white-space: normal; }

/* ---------- О компании ---------- */
.about { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 64px; padding-block: 16px 96px; }
.about-intro { display: flex; flex-direction: column; gap: 20px; }
.about-intro .kicker { font-size: 13px; }
.about-intro h2 { font-size: 36px; line-height: 1.15; }
.about-lead { color: var(--fg-2); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { font: 700 20px/1.3 var(--display); }
.depts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dept { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.dept h3 { font-size: 18px; line-height: 1.3; }
.dept p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.capa { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 28px; background: var(--red); color: #fff; }
.capa span:first-child { font-weight: 500; font-size: 14px; }
.capa b { font: 700 40px/1 var(--display); white-space: nowrap; }
.capa span:last-child { font-size: 15px; }

@media (max-width: 1100px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ---------- Опт ---------- */
.opt { border-block: 1px solid var(--line); background: var(--surface-2); }
.opt-row { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; padding-block: 80px; }
.opt-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.opt-intro .kicker { font-size: 13px; }
.opt-intro h2 { font-size: 36px; line-height: 1.15; }
.opt-intro p:not(.kicker) { color: var(--fg-2); font-size: 17px; line-height: 1.55; }
/* шаги — список с красными метками на одной линии: порядок виден без номеров */
.opt-steps { align-self: center; padding: 0; list-style: none; }
.opt-steps li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 32px;
  padding: 24px 0 24px 40px;
  border-bottom: 1px solid var(--line);
}
.opt-steps li:first-child { border-top: 1px solid var(--line); }
.opt-steps li::before { content: ""; position: absolute; top: 0; bottom: 0; left: 5px; width: 2px; background: var(--line-2); }
.opt-steps li:first-child::before { top: 50%; }
.opt-steps li:last-child::before { bottom: 50%; }
.opt-steps li::after { content: ""; position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px; background: var(--red); }
.opt-steps b { font: 700 18px/1.3 var(--display); }
.opt-steps span { color: var(--muted); font-size: 16px; line-height: 1.5; }

@media (max-width: 1100px) {
  .opt-row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ---------- Заявка ---------- */
.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 64px; padding-block: 80px; }
.order-info { display: flex; flex-direction: column; gap: 24px; }
.order-info h2 { font-size: 40px; line-height: 1.12; }
.order-info p { max-width: 480px; color: var(--fg-2); font-size: 18px; line-height: 1.55; }
.order-contacts { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.order-contacts a { color: var(--red-ink); font-weight: 500; font-size: 18px; text-decoration: none; }
.order-contacts .order-tel { color: var(--fg); font: 700 28px/1.3 var(--display); }
.order-contacts span { margin-top: 6px; color: var(--muted); font-size: 15px; }
.order-box { padding: 36px; border: 1px solid var(--line); background: var(--surface); }
.order-form { display: flex; flex-direction: column; gap: 16px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row-model { grid-template-columns: minmax(0, 1fr) 140px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--fg-2); font: 500 14px/1.3 var(--body); }
.field input, .field select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--page);
  color: var(--fg);
  font: 400 16px var(--body);
}
.field select { padding-inline: 12px; }
.field input::placeholder { color: var(--dim); }
.field input:focus, .field select:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: var(--red); }
.field [aria-invalid="true"] { border-color: var(--red-ink); }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--fg-2); font-size: 14px; line-height: 1.4; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.err { color: var(--red-ink); font: 400 13px/1.4 var(--body); }
.order-form .btn { margin-top: 4px; }
.order-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.done h3 { font-size: 24px; }
.done p { color: var(--fg-2); }

@media (max-width: 1100px) {
  .order { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ---------- Подвал ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 40px; color: var(--muted); font-size: 14px; }
.foot-row img { display: block; width: auto; height: 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 500; font-size: 15px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--fg); }

/* ---------- Окно модели ---------- */
.sheet {
  width: min(1280px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100% - 48px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(6, 3, 4, 0.82); backdrop-filter: blur(3px); }
.sh-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--fg);
  font: 400 24px/1 var(--body);
  cursor: pointer;
}
.sh-close:hover { border-color: var(--red); }
/* если окно всё же не помещается (низкий экран) — прокрутка тонкая и тёмная, в цвет сайта */
.sh-scroll { display: flex; flex: 1; flex-direction: column; gap: 18px; min-height: 0; padding: 24px 32px 22px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.sh-scroll::-webkit-scrollbar { width: 6px; }
.sh-scroll::-webkit-scrollbar-track { background: transparent; }
.sh-scroll::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--line-2); }
.sh-scroll::-webkit-scrollbar-thumb:hover { background: var(--dim); }
.sh-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-right: 64px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sh-type, .sh-price > span, .sh-grid h3 { color: var(--red-ink); font: 600 13px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.sh-head h2 { margin-top: 6px; font: 800 34px/1.1 var(--display); }
.sh-price { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sh-price b { font: 700 28px/1.15 var(--display); white-space: nowrap; }
/* две колонки, чтобы окно помещалось целиком: слева фото и преимущества, справа характеристики и заметки */
.sh-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr); align-items: stretch; gap: 20px; }
/* колонки кончаются вровень: растягиваются блок характеристик справа и окно с фото слева, пустоты внизу нет */
.sh-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sh-col > .sh-specs, .sh-col > .sh-fig { flex: 1 0 auto; }
.sh-grid h3 { margin-bottom: 8px; font-size: 12px; }
.sh-specs { position: relative; display: flex; flex-direction: column; padding: 16px 20px; border: 1px solid var(--line-2); background: var(--surface-2); }
/* красные уголки у блока характеристик, как в макете */
.sh-specs::before, .sh-specs::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--red); }
.sh-specs::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.sh-specs::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.sh-specs ul, .sh-adv ul { padding: 0; list-style: none; }
/* характеристики в две колонки, читаются сверху вниз; если блок вытянут по высоте соседней колонки —
   строки распределяются равномерно, а не оставляют пустоту внизу */
.sh-specs ul { display: grid; flex: 1; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 7), auto); column-gap: 28px; } /* строки по своему тексту, лишняя высота делится поровну */
.sh-specs li { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.38; align-content: center; }
.sh-specs li:last-child, .sh-specs li.col-end { border-bottom: 0; }
/* в руководстве у пункта есть название органа управления */
.sh-specs li b { display: block; margin-bottom: 2px; color: var(--fg); font-weight: 600; }
.sh-side .note a { color: var(--red-ink); font-weight: 600; text-decoration: none; }
.ico { width: 20px; height: 20px; fill: none; stroke: var(--red-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-specs .ico { width: 18px; height: 18px; }
.sh-fig { display: flex; align-items: center; justify-content: center; margin: 0; padding: 14px; border: 1px solid var(--line); background: var(--spot), var(--grid), var(--page); }
.sh-art { display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(200px, 30vh, 300px); }
.sh-art img { width: 88%; height: 88%; object-fit: contain; filter: var(--glow); }
.sh-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.note { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line-2); background: var(--surface); }
.note h3 { margin: 0; }
.note p { color: var(--fg-2); font-size: 13.5px; line-height: 1.5; }
.note-battery { display: flex; align-items: center; gap: 12px; color: var(--fg) !important; font: 500 13.5px/1.45 var(--mono) !important; }
.note-battery .ico { flex: none; width: 24px; height: 24px; }
/* преимущества — компактная сетка 3×2: иконка слева, подпись и значение справа */
.sh-adv ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.sh-adv li { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 2px; padding: 10px 12px; background: var(--bg); }
.sh-adv .ico { grid-row: span 2; width: 22px; height: 22px; }
.sh-adv b { color: var(--muted); font: 500 10px/1.25 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.sh-adv span { font: 600 14px/1.25 var(--body); }
.sh-actions { display: flex; gap: 12px; padding: 14px 32px; border-top: 1px solid var(--line); background: var(--bg); }

@media (max-width: 1000px) {
  .sh-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-art { height: 240px; }
}
/* низкий экран ноутбука: окно плотнее, чтобы тоже помещалось без прокрутки */
@media (min-width: 1001px) and (max-height: 780px) {
  .sheet { max-height: calc(100% - 24px); }
  .sh-scroll { gap: 12px; padding: 18px 28px 14px; }
  .sh-head { padding-bottom: 10px; }
  .sh-head h2 { margin-top: 4px; font-size: 28px; }
  .sh-price b { font-size: 24px; }
  .sh-grid, .sh-col { gap: 12px; }
  .sh-specs { padding: 12px 16px; }
  .sh-specs li { padding: 5px 0; font-size: 13px; line-height: 1.32; }
  .sh-art { height: clamp(160px, 26vh, 240px); }
  .sh-adv li { padding: 8px 10px; }
  .note { padding: 10px 14px; gap: 6px; }
  .note p { font-size: 13px; line-height: 1.42; }
  .sh-actions { padding: 10px 28px; }
  .sh-actions .btn { height: 48px; }
}

/* ---------- Поддержка: пока только заголовок, материалы добавятся ниже ---------- */
.support { min-height: 50vh; padding-block: 48px 96px; }
.support h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.support-sec { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.support-sec h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }

/* ---------- Документы: политика и согласие ---------- */
.consent a { color: var(--fg); }
.doc-head { border-bottom: 1px solid var(--line); }
.doc-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.doc { max-width: calc(820px + 2 * var(--pad)); padding-block: 48px 80px; }
.doc h1 { margin-top: 10px; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; }
.doc-meta { margin-top: 10px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 40px 0 14px; font-size: 20px; line-height: 1.3; }
.doc p, .doc li { color: var(--fg-2); line-height: 1.65; }
.doc p + p { margin-top: 10px; }
.doc ul { display: grid; gap: 6px; margin: 10px 0; padding-left: 22px; }
.doc li b { color: var(--fg); font-family: var(--mono); font-weight: 500; }
.doc a { color: var(--red-ink); }
.doc-req { margin: 12px 0 16px; border-top: 1px solid var(--line); }
.doc-req div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc-req dt { color: var(--muted); font-size: 14px; }
.doc-req dd { color: var(--fg); }
.doc-table-wrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--line); }
.doc-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.doc-table th, .doc-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table thead th { background: var(--surface); color: var(--muted); font: 500 12px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.doc-table td { color: var(--fg-2); }
.doc-table td:first-child { color: var(--fg); }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.foot-links a[aria-current] { color: var(--fg); }
.foot-docs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-docs a { color: var(--muted); }
.foot-docs a:hover { color: var(--fg); }
/* правый край подвала главной: копирайт, под ним политика в две строки */
.foot-legal { display: flex; flex-direction: column; gap: 10px; }
.foot-policy { max-width: 300px; color: var(--muted); font-size: 13px; line-height: 1.45; text-decoration: none; }
.foot-policy:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Корзина ---------- */
.cart {
  width: min(460px, 100%);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--fg);
}
.cart[open] { display: flex; flex-direction: column; }
.cart::backdrop { background: rgba(6, 3, 4, 0.72); }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line); }
.cart-head h2 { display: flex; align-items: baseline; gap: 10px; font-size: 22px; }
.cart-head h2 span { color: var(--muted); font: 500 14px var(--mono); }
.cart-close { width: 44px; height: 44px; border: 1px solid var(--line-2); background: none; color: var(--fg); font: 400 24px/1 var(--body); cursor: pointer; }
.cart-close:hover { border-color: var(--red); }
.cart-scroll { display: flex; flex: 1; flex-direction: column; gap: 24px; min-height: 0; padding: 20px 24px 28px; overflow-y: auto; }

.cart-list { display: flex; flex-direction: column; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.ci { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-pic { display: flex; align-items: center; justify-content: center; height: 64px; border: 1px solid var(--line); background: var(--spot), var(--bg); }
.ci-pic img { width: 86%; height: 86%; object-fit: contain; filter: var(--glow-sm); }
.ci-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ci-main b { font: 700 14px/1.3 var(--display); }
.ci-price { color: var(--muted); font: 500 12px/1.3 var(--mono); }
.ci-qty { display: inline-flex; align-self: flex-start; margin-top: 6px; border: 1px solid var(--line-2); }
.ci-qty button { width: 34px; height: 34px; border: 0; background: none; color: var(--fg); font: 500 18px/1 var(--body); cursor: pointer; }
.ci-qty button:hover { background: var(--surface); }
.ci-qty button:disabled { color: var(--dim); cursor: default; background: none; }
.ci-qty .ci-trash { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.ci-qty .ci-trash:hover { color: var(--red-ink); }
.ci-trash svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ci-qty input { width: 48px; height: 34px; border: 0; border-inline: 1px solid var(--line-2); background: var(--page); color: var(--fg); font: 600 14px var(--mono); text-align: center; -moz-appearance: textfield; }
.ci-qty input::-webkit-outer-spin-button, .ci-qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ci-sum { font: 700 15px/1.2 var(--display); white-space: nowrap; }
.ci-del { padding: 0; border: 0; border-bottom: 1px solid var(--line-2); background: none; color: var(--muted); font: 500 13px/1.3 var(--body); cursor: pointer; }
.ci-del:hover { color: var(--red-ink); border-bottom-color: var(--red-ink); }

.cart-total { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.cart-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cart-total-row span { color: var(--muted); }
.cart-total-row b { font: 700 24px/1.2 var(--display); white-space: nowrap; }
.cart-total p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.cart-limit { color: var(--red-ink) !important; }

.cart-form { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.cart-form h3 { font-size: 18px; }
.cart-note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.cart-form .btn { width: 100%; }
.cart-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; color: var(--fg-2); }

/* всплывающее «Добавлено в корзину» */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 32px);
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  font-size: 15px;
  transform: translateX(-50%);
}
.toast button { flex: none; height: 40px; padding: 0 14px; border: 0; background: var(--red); color: #fff; font: 600 14px var(--body); cursor: pointer; }
.toast button:hover { background: var(--red-deep); }

/* ================= Телефон ================= */
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }

  /* корзина, «Войти» и звонок на телефоне — в нижней панели, в шапке только меню */
  .head-acts, .head-call { display: none; }
  .head-menu { margin-left: auto; }

  /* баннер на телефоне: во всю ширину экрана, текст сверху, фото снизу */
  .kicker { font-size: 12px; }
  /* на телефоне всё по центру: баннер с теми же отступами, что плитки ниже, свечение — ровно под дроном */
  .promo { padding-block: 12px 20px; }
  .promo-slide { height: 500px; background-size: 24px 24px, 24px 24px, auto; }
  .promo-slide::before { background: radial-gradient(ellipse 72% 36% at 50% 58%, rgba(255, 238, 238, 0.12), rgba(227, 36, 45, 0.26) 55%, transparent 85%); }
  .promo-copy { align-items: center; gap: 10px; max-width: none; padding: 28px 18px 0; text-align: center; }
  .promo-name { font-size: clamp(22px, 7vw, 34px); } /* «ПРОИЗВОДСТВО» должно влезать в строку */
  .promo-tag { max-width: 300px; font-size: 15px; }
  .promo-img, .promo-int .promo-img { top: auto; right: 6%; bottom: 72px; width: 88%; height: 50%; transform: none; }
  .promo-link { left: 0; right: 0; bottom: 28px; width: fit-content; margin-inline: auto; white-space: nowrap; }
  .promo-dots { margin-top: 14px; }
  /* разделы — сетка 2×2 с картинками */
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-block: 8px 20px; }
  .cat { display: flex; flex-direction: column; justify-content: space-between; height: 110px; min-height: 0; padding: 14px; }
  .cat b { font-size: clamp(13px, 3.8vw, 15px); line-height: 1.2; } /* «Перехватчики» влезает и на узком телефоне */
  .cat-sub { margin-top: 0; font-size: 13px; }
  .cat-img { right: 8px; bottom: 8px; max-width: 54%; max-height: 64%; filter: var(--glow-sm); } /* целиком внутри плитки, не срезается краем */
  .cat-opt { height: auto; gap: 10px; padding: 16px; }
  .opt-img { top: 4px; right: -10px; width: 52%; height: 58%; filter: var(--glow-sm); }
  .opt-num b { font-size: 38px; }
  .opt-num span { font-size: 13px; }
  .opt-btn { align-self: stretch; min-width: 0; height: 48px; }

  /* на телефоне — сетка 2×2 на всю ширину, всё по центру ячеек, как баннер выше */
  .band { border-block: 1px solid var(--line); background: var(--bg); }
  .band-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; }
  .band-row div { align-items: center; gap: 6px; padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: center; }
  .band-row div:nth-child(odd) { border-right: 1px solid var(--line); }
  .band-row div:nth-child(n + 3) { border-bottom: 0; }
  .band dt b { font-size: 28px; }
  .band dt span { font-size: 14px; }
  .band dd { font-size: 12px; line-height: 1.4; }

  .catalog { gap: 14px; padding-block: 28px 12px; }
  .sec-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .sec-title h2 { font-size: 24px; }
  .chips { gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { height: 44px; padding: 0 14px; font-size: 14px; }
  .chip span { font-size: 12px; }

  /* каталог — плотный список: фото слева, всё остальное справа, карточка открывает окно */
  .cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card { display: grid; grid-template-columns: 116px minmax(0, 1fr); cursor: pointer; }
  .card-pic {
    height: auto;
    min-height: 148px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    background:
      var(--spot),
      linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) center / 16px 16px,
      linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) center / 16px 16px,
      var(--bg);
  }
  .card-pic img { width: 96px; height: 96px; filter: var(--glow-sm); }
  .card-body { gap: 6px; padding: 12px 14px; }
  .card-kind { font-size: 11px; font-weight: 500; }
  .card-title h3 { font-size: 16px; }
  .card-foot { flex-wrap: nowrap; gap: 8px; }
  .card .price { font-size: 15px; }
  .card-btns .btn { padding: 0 12px; font-size: 13px; }


  .compare { gap: 14px; padding-block: 32px 0; }
  .compare .sec-title p { font-size: 14px; }
  /* сравнение по одному параметру: модели по порядку, полоска — доля от лучшего */
  .cmp-m { display: flex; flex-direction: column; gap: 12px; }
  .bars { padding: 0; border: 1px solid var(--line); list-style: none; }
  .bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .bars li:last-child { border-bottom: 0; }
  .bar-name { padding: 0; border: 0; background: none; color: var(--fg); font: 600 15px/1.3 var(--body); text-align: left; cursor: pointer; }
  .bar-val { font: 600 15px/1.3 var(--mono); white-space: nowrap; }
  .bar { grid-column: 1 / -1; height: 6px; background: var(--surface); }
  .bar i { display: block; height: 100%; background: var(--dim); }
  .bars .best .bar-val { color: var(--red-ink); }
  .bars .best .bar i { background: var(--red); }

  .about { gap: 14px; padding-block: 32px 0; }
  .about-intro { gap: 14px; }
  .about-intro .kicker { font-size: 12px; }
  .about-intro h2 { font-size: 22px; line-height: 1.2; }
  .about-lead { font-size: 15px; line-height: 1.55; }
  .facts { margin-top: 0; }
  .facts div { padding: 12px 0; }
  .facts div:nth-child(even) { padding-left: 12px; }
  .facts dt { font-size: 12px; }
  .facts dd { font-size: 15px; }
  .depts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dept { gap: 6px; padding: 16px; }
  .dept h3 { font-size: 14px; }
  .dept p { font-size: 14px; line-height: 1.5; }

  .opt { margin-top: 32px; }
  .opt-row { gap: 20px; padding-block: 28px; }
  .opt-intro { gap: 12px; }
  .opt-intro h2 { font-size: 22px; }
  .opt-intro p:not(.kicker) { font-size: 15px; }
  .opt-intro .btn { width: 100%; white-space: normal; text-align: center; }
  .opt-steps li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0 16px 30px; }
  .opt-steps b { font-size: 15px; }
  .opt-steps span { font-size: 14px; }

  .order { gap: 0; padding-block: 24px 0; }
  .order-info h2 { display: none; }
  .order-box { padding: 20px; }
  .order-box::before { content: "Расчёт и комплектация"; display: block; margin-bottom: 12px; font: 700 22px/1.2 var(--display); }
  .order-form { gap: 12px; }
  .row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .row-model { grid-template-columns: minmax(0, 1fr) 96px; }
  .order-form .btn { width: 100%; height: 52px; font-size: 16px; }

  .foot-row { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 28px; font-size: 13px; }

  /* нижняя панель, как на основном сайте: текущий раздел подсвечен */
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px max(4px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--line-2);
    background: rgba(14, 11, 12, 0.94);
    backdrop-filter: blur(10px);
  }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 3px 0; border: 0; background: none; color: var(--muted); font: 400 0.7rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tab-ico { position: relative; display: block; height: 24px; }
  .tab-ico .cart-badge { top: -6px; right: -12px; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; }
  .tabbar a[aria-current] { color: var(--fg); }
  .tabbar a[aria-current] svg { stroke: var(--red-ink); }

  /* окно модели выезжает снизу */
  .sheet {
    width: 100%;
    max-width: 100%;
    height: calc(100% - 64px);
    max-height: none;
    margin: auto 0 0;
    border: 0;
    border-top: 1px solid var(--line-2);
    border-radius: 22px 22px 0 0;
  }
  .sh-handle { display: block; flex: none; width: 40px; height: 4px; margin: 10px auto 4px; border-radius: 2px; background: var(--dim); }
  .sh-close { top: 22px; }
  .sh-scroll { gap: 16px; padding: 8px 16px 16px; }
  .sh-head { flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 56px; padding-bottom: 0; border-bottom: 0; }
  .sh-type { font-size: 11px; }
  .sh-head h2 { margin-top: 0; font-size: 22px; line-height: 1.15; }
  .sh-price { align-items: flex-start; }
  .sh-price b { font-size: 18px; }
  .sh-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sh-specs ul { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .sh-specs li.col-end { border-bottom: 1px solid var(--line); } /* в одну колонку линия нужна */
  .sh-side { grid-template-columns: minmax(0, 1fr); }
  .sh-grid h3 { font-size: 11px; }
  .sh-fig { padding: 10px; background: var(--spot), linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) center / 24px 24px, linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) center / 24px 24px, var(--page); }
  .sh-art { aspect-ratio: auto; height: 190px; }
  .sh-art img { width: 200px; height: 190px; }
  .sh-adv h3 { display: none; }
  .sh-adv ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-adv li { padding: 12px 10px; }
  .sh-adv b { font-size: 10px; }
  .sh-adv span { font-size: 14px; }
  .sh-specs { padding: 14px; }
  .sh-specs::before, .sh-specs::after { content: none; }
  .sh-specs li { gap: 10px; padding: 8px 0; font-size: 14px; }
  .note { padding: 14px; gap: 8px; }
  .note p { font-size: 14px; }
  .note-battery { font-size: 13px !important; }
  .sh-actions { padding: 12px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .sh-actions .btn { width: 100%; height: 52px; font-size: 16px; }

  /* документы: без нижней панели, реквизиты в столбик */
  body.doc-page { padding-bottom: 0; }
  .doc { padding-block: 28px 48px; }
  .support { padding-block: 28px 48px; }
  .support-sec { margin-top: 28px; padding-top: 20px; }
  .doc-req div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

  /* корзина на телефоне — на весь экран */
  .cart { width: 100%; border-left: 0; }
  .cart-head { padding: 12px 12px 12px 16px; }
  .cart-head h2 { font-size: 20px; }
  .cart-scroll { gap: 20px; padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .ci { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
  .ci-pic { height: 56px; }
  .cart-form { padding: 16px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 32px); justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card.flash { animation: none; }
}

/* ---------- Первый экран: слева предложение, справа меняющиеся дроны (как на оптовом стенде) ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 7, 8, 0.97) 0%, rgba(10, 7, 8, 0.92) 38%, rgba(10, 7, 8, 0.78) 62%, rgba(10, 7, 8, 0.7) 100%),
    linear-gradient(0deg, rgba(10, 7, 8, 0.85) 0%, rgba(10, 7, 8, 0) 40%);
}
.hero::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 18px; height: 18px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); }
.hero-row { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: clamp(560px, 46vw, 680px); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; padding-block: 64px; }
.hero-copy .kicker { font-size: 13px; letter-spacing: 0.08em; }
.hero-copy h1 { max-width: 760px; font: 800 clamp(34px, 3.9vw, 56px)/1.06 var(--display); letter-spacing: -0.01em; }
.hero-copy p:not(.kicker) { max-width: 540px; color: var(--fg-2); font-size: 20px; line-height: 1.5; text-wrap: pretty; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-btns .btn { height: 58px; padding: 0 28px; }

.hs { position: relative; align-self: stretch; display: flex; flex-direction: column; min-height: 420px; touch-action: pan-y; user-select: none; }
.hs-track { position: relative; flex: 1; display: grid; }
.hs-slide { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; visibility: hidden; opacity: 0; transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.hs-slide.is-active { z-index: 1; visibility: visible; opacity: 1; transition: opacity 0.7s ease; }
.hs-slide::before { content: ""; position: absolute; inset: 4% 0 18%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 238, 238, 0.12), rgba(227, 36, 45, 0.26) 55%, transparent 80%); pointer-events: none; }
.hs-slide.is-active::before { animation: hs-breathe 5s ease-in-out infinite; }
@keyframes hs-breathe { 50% { opacity: 0.6; } }
.hs-fig { position: relative; flex: 1; min-height: 300px; }
.hs-img { position: absolute; inset: 2% 2% 4%; width: 96%; height: 94%; object-fit: contain; filter: var(--glow); pointer-events: none; }
.hs-int .hs-img { inset: 10% 8% 8%; width: 84%; height: 82%; }
.hs-cap { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding: 0 0 8px; text-align: right; }
.hs-name { color: var(--red-ink); font: 600 13px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.hs-tag { max-width: 420px; color: var(--fg-2); font-size: 16px; line-height: 1.45; }
.hs-link { color: var(--fg); font: 600 15px/1.3 var(--body); text-decoration: none; }
.hs-link:hover { color: var(--red-ink); }
.hs-cap > * { opacity: 0; translate: 0 16px; transition: opacity 0.5s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.is-active .hs-cap > * { opacity: 1; translate: 0 0; }
.is-active .hs-name { transition-delay: 0.15s; }
.is-active .hs-tag { transition-delay: 0.25s; }
.is-active .hs-link { transition-delay: 0.35s; }
.hs-img { opacity: 0; translate: 14% 0; scale: 0.88; transition: opacity 0.6s ease, translate 0.95s cubic-bezier(0.2, 0.7, 0.2, 1), scale 0.95s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hs-slide.side-left:not(.is-active) .hs-img { translate: -14% 0; }
.is-active .hs-img { opacity: 1; translate: 0 0; scale: 1; animation: hs-hover 7s ease-in-out 1s infinite; }
@keyframes hs-hover { 0%, 100% { rotate: 0deg; } 30% { rotate: -1.6deg; } 70% { rotate: 1.4deg; } }
.hs-slide.no-anim, .hs-slide.no-anim * { transition: none !important; }
.hs-track.dragging .hs-img { transition: none; }
@media (hover: hover) { .hs-track { cursor: grab; } .hs-track.dragging { cursor: grabbing; } }
.hs-dots { display: flex; justify-content: flex-end; gap: 6px; padding-bottom: 40px; }
.hs-dots button { position: relative; width: 8px; height: 8px; padding: 0; overflow: hidden; border: 0; border-radius: 4px; background: var(--line-2); cursor: pointer; transition: width 0.3s; }
.hs-dots button[aria-current] { width: 44px; }
.hs-dots i { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.hs-dots button[aria-current] i { transition: transform 0.1s linear; }
@media (prefers-reduced-motion: reduce) {
  .hs-cap > *, .hs-img { translate: none !important; scale: none !important; }
  .is-active .hs-img, .hs-slide.is-active::before { animation: none; }
}

/* цифры под первым экраном */
.hfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 40px; border-bottom: 1px solid var(--line); }
.hfacts > div { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.hfacts > div::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--red); }
.hfacts dt { display: flex; align-items: baseline; gap: 8px; }
.hfacts dt b { font: 700 clamp(30px, 3.3vw, 48px)/1 var(--display); white-space: nowrap; }
.hfacts dt span { color: var(--red-ink); font: 600 clamp(14px, 1.25vw, 18px)/1.2 var(--display); }
.hfacts dd { color: var(--fg-2); font-size: 16px; line-height: 1.45; }

@media (max-width: 1000px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .hero-copy { order: 2; padding-block: 8px 48px; }
  .hs { order: 1; min-height: 0; }
  .hs-fig { flex: none; min-height: 0; height: 340px; }
  .hs-cap { align-items: center; text-align: center; }
  .hs-dots { justify-content: center; padding-bottom: 24px; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(10, 7, 8, 0.98) 0%, rgba(10, 7, 8, 0.92) 45%, rgba(10, 7, 8, 0.7) 100%); }
  .hfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hs-fig { height: 250px; }
  .hs-tag, .hs-link { font-size: 14px; }
  .hero-copy { gap: 16px; }
  .hero-copy .kicker { font-size: 12px; letter-spacing: 0.06em; }
  .hero-copy h1 { font-size: 28px; line-height: 1.12; }
  .hero-copy p:not(.kicker) { font-size: 16px; }
  .hero-btns { margin-top: 8px; }
  .hero-btns .btn { flex: 1 1 100%; height: 54px; font-size: 16px; }
  .hfacts { gap: 0; padding-block: 0; border-bottom: 0; }
  .hfacts > div { gap: 6px; padding: 16px 12px 16px 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .hfacts > div::before { display: none; }
  .hfacts dt b { font-size: 26px; }
  .hfacts dt span { font-size: 13px; }
  .hfacts dd { font-size: 13px; line-height: 1.4; }
}

/* ---------- Контакты: запрос КП или звонок (как на оптовом стенде) ---------- */
.kp { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: start; gap: 56px; padding-block: 80px; }
.kp-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.kp-head h2 { margin-top: 14px; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.12; }
.modes { display: flex; align-self: flex-start; border: 1px solid var(--line-2); }
.modes button { height: 48px; padding: 0 22px; border: 0; background: transparent; color: var(--fg); font: 600 15px/1 var(--body); cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--fg); color: var(--page); }
.kp-form { display: flex; flex-direction: column; gap: 24px; }
.kp-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field textarea { width: 100%; min-height: 110px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 0; background: var(--page); color: var(--fg); font: 400 16px/1.5 var(--body); resize: vertical; }
.field textarea::placeholder { color: var(--dim); }
.field textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: var(--red); }
.mrows-label { color: var(--fg-2); font: 500 14px/1.3 var(--body); }
.mrows { display: flex; flex-direction: column; margin-top: 10px; border: 1px solid var(--line-2); }
.mrows.bad { border-color: var(--red-ink); }
.mrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 16px 10px 10px; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow.on { background: #1d1517; }
.mrow img { width: 48px; height: 40px; object-fit: contain; filter: var(--glow-sm); opacity: 0.55; }
.mrow.on img { opacity: 1; }
.mrow b { display: block; color: var(--fg-2); font: 600 15px/1.3 var(--body); }
.mrow.on b { color: var(--fg); }
.mrow span:not(.kqty) { color: var(--muted); font: 500 12px/1.4 var(--mono); }
.kqty { display: flex; align-items: center; border: 1px solid var(--line-2); background: var(--page); }
.mrow.on .kqty { border-color: var(--red); }
.kqty button { width: 40px; height: 42px; padding: 0; border: 0; background: none; color: var(--fg); font: 600 19px/1 var(--body); cursor: pointer; }
.kqty button:hover { color: var(--red-ink); }
.kqty input { width: 72px; height: 42px; padding: 0; border: 0; background: transparent; color: var(--fg); font: 600 15px/1 var(--mono); text-align: center; -moz-appearance: textfield; }
.kqty input::-webkit-outer-spin-button, .kqty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.kqty input:focus { outline: 0; background: var(--surface); }
.mrow:not(.on) .kqty input { color: var(--dim); }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.kp-done { position: relative; padding: 40px; border: 1px solid var(--line-2); background: var(--surface); }
.kp-done::before { content: ""; position: absolute; top: -1px; left: -1px; width: 16px; height: 16px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.kp-done h3 { font-size: 28px; }
.kp-side { display: flex; flex-direction: column; gap: 16px; }
.kp-side section { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.kp-side section:first-child { border-color: var(--line-2); }
.kp-side .kicker { font-size: 12px; letter-spacing: 0.08em; }
.kp-side a { color: var(--red-ink); text-decoration: none; }
.kp-side a.kp-tel { color: var(--fg); font: 700 22px/1.3 var(--display); white-space: nowrap; }
.kp-side a:hover { color: var(--fg); }
.kp-side a.kp-tel:hover { color: var(--red-ink); }
.kp-muted { color: var(--muted); font-size: 14px; }
.kp-dots { padding: 0; list-style: none; }
.kp-dots li { display: flex; gap: 10px; color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.kp-dots li + li { margin-top: 10px; }
.kp-dots li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 9px; background: var(--red); }
.kp-req div { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px dashed var(--line-2); }
.kp-req dt { color: var(--muted); font-size: 13px; }
.kp-req dd { font-size: 14px; line-height: 1.45; }
@media (max-width: 1240px) { .kp { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }
@media (max-width: 1000px) { .kp { grid-template-columns: minmax(0, 1fr); padding-block: 56px; } }
@media (max-width: 640px) {
  .kp { gap: 24px; padding-block: 32px 8px; }
  .kp-head h2 { font-size: 24px; }
  .modes { align-self: stretch; }
  .modes button { flex: 1; padding: 0 10px; }
  .kp-form { gap: 18px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mrow { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 12px; }
  .mrow img { width: 40px; height: 34px; }
  .mrow .kqty { grid-column: 2; justify-self: start; }
  .send .btn { flex: 1 1 100%; height: 52px; font-size: 16px; }
  .kp-done { padding: 24px; }
  .kp-side section { padding: 20px; }
}
/* после «О компании» отступ уже есть — свой сверху не добавляем */
.about + .kp { padding-top: 0; }

/* ---------- Сроки и условия поставки (как на оптовом стенде) ---------- */
.supply { display: flex; flex-direction: column; gap: 16px; }
.supply-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.supply-card { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid var(--line-2); background: var(--surface); }
.supply-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 16px; height: 16px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.supply-card .kicker { font-size: 12px; letter-spacing: 0.08em; }
.supply-card h2 { font-size: clamp(22px, 1.9vw, 26px); line-height: 1.2; }
.supply-kv div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px dashed var(--line-2); }
.supply-kv dt { font: 500 17px/1.3 var(--body); }
.supply-kv dd { font: 600 17px/1.3 var(--mono); text-align: right; white-space: nowrap; }
.supply-note { color: var(--muted); font-size: 14px; }
.supply-ph { position: relative; min-height: 360px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.supply-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.supply-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.supply-terms > div { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.supply-terms h3 { font-size: 20px; }
@media (max-width: 1000px) {
  .supply-duo, .supply-terms { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .supply { gap: 10px; padding-top: 32px; } /* у «О компании» на телефоне нет нижнего отступа */
  .supply-card { gap: 14px; padding: 20px; }
  .supply-kv div { padding: 12px 0; }
  .supply-kv dt, .supply-kv dd { font-size: 15px; }
  .supply-ph { min-height: 220px; }
  .supply-terms { gap: 10px; }
  .supply-terms > div { gap: 10px; padding: 20px; }
  .supply-terms h3 { font-size: 17px; }
}

/* шапка: главная кнопка — красная «Запросить КП», «Войти» — рамкой (как на третьем стенде);
   на узком ноутбуке «Войти» — иконкой, «Сравнение» уходит в каталог, чтобы «Запросить КП» помещалась */
.head-cab { border: 1px solid var(--line-2); background: transparent; color: var(--fg); }
.head-cab:hover { border-color: var(--fg); background: transparent; }
.head-calc { flex: none; }
@media (max-width: 1240px) {
  .head-cab { width: 48px; padding: 0; }
  .head-cab .head-cab-text { display: none; }
  .head-cab .head-cab-icon { display: block; }
}
@media (max-width: 1140px) {
  .head-calc { display: inline-flex; }
  .head-nav .nav-cmp { display: none; }
}
@media (max-width: 1000px) {
  .head-nav .nav-cmp { display: block; }
  .head-cab { width: 44px; }
  .head-calc { height: 44px; padding: 0 14px; font-size: 15px; }
}
/* на планшете рядом с красной «Запросить КП» кнопка «Меню» — рамкой; на телефоне «Запросить КП» есть на первом экране */
@media (min-width: 641px) and (max-width: 1000px) {
  .head-menu { border: 1px solid var(--line-2); background: transparent; color: var(--fg); }
  .head-menu:hover, .head-menu[aria-expanded="true"] { border-color: var(--fg); background: transparent; }
}
@media (max-width: 640px) { .head-calc { display: none; } }

/* последняя карточка одна в ряду — на всю ширину и набок (как на третьем стенде) */
@media (min-width: 1241px) {
  .cards > .card:last-child:nth-child(3n+1):not(:first-child) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .cards > .card:last-child:nth-child(3n+1):not(:first-child) .card-pic { height: auto; min-height: 280px; border-right: 1px solid var(--line); border-bottom: 0; }
}
@media (min-width: 641px) and (max-width: 1240px) {
  .cards > .card:last-child:nth-child(2n+1):not(:first-child) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cards > .card:last-child:nth-child(2n+1):not(:first-child) .card-pic { height: auto; min-height: 280px; border-right: 1px solid var(--line); border-bottom: 0; }
}

/* ссылка «Запросите КП» в подписи над каталогом */
.sec-title p a { color: var(--red-ink); font-weight: 600; text-decoration: none; }
.sec-title p a:hover { color: var(--fg); }
/* телефон: число и единица («5 000 шт./мес») в одну строку — размер подстраивается под ширину экрана */
@media (max-width: 640px) {
  .hfacts > div { padding-right: 8px; }
  .hfacts dt { gap: 5px; }
  .hfacts dt b { font-size: clamp(18px, 5.9vw, 26px); }
  .hfacts dt span { white-space: nowrap; font-size: clamp(11px, 3.1vw, 13px); }
}
@media (max-width: 340px) {
  .hfacts dt b { font-size: 17px; }
  .hfacts dt span { font-size: 10.5px; }
}
/* документы: отступ под таблицей; короткая таблица (cookie) без прокрутки вбок, на телефоне — карточками */
.doc-table-wrap + p { margin-top: 16px; }
.doc-table-stack { min-width: 0; }
@media (max-width: 640px) {
  .doc-table-stack thead { display: none; }
  .doc-table-stack tr { display: block; padding: 14px; border-bottom: 1px solid var(--line); }
  .doc-table-stack tbody tr:last-child { border-bottom: 0; }
  .doc-table-stack td { display: block; padding: 0; border: 0; }
  .doc-table-stack td + td { margin-top: 6px; }
  .doc-table-stack td[data-label] { color: var(--muted); }
  .doc-table-stack td[data-label]::before { content: attr(data-label) ": "; }
}

/* ---------- Чат с менеджером (js/chat.js): красная кнопка в углу, окно переписки ---------- */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(227, 36, 45, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.chat-fab:hover { background: var(--red-deep); transform: translateY(-2px); }
.chat-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.chat-fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-fab[aria-expanded="true"], body:has(#cat-panel:not([hidden])) .chat-fab { display: none; }
.chat-badge { position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border: 2px solid var(--page); border-radius: 11px; background: #fff; color: var(--red); font: 700 12px/18px var(--body); }
.chat-badge[hidden] { display: none; }

.chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  width: 380px;
  height: min(600px, calc(100vh - 48px));
  border: 1px solid var(--line-2);
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.chat[hidden] { display: none; }
.chat::before { content: ""; position: absolute; top: -1px; left: -1px; z-index: 1; width: 16px; height: 16px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); pointer-events: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-head b { display: block; font: 700 16px/1.25 var(--display); }
.chat-state { display: flex; align-items: center; gap: 7px; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.3; }
.chat-state i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.chat-state.online i { background: #3ecf7a; box-shadow: 0 0 0 3px rgba(62, 207, 122, 0.18); }
.chat-state.hours i { background: #e8b44a; }
.chat-close { flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font: 400 24px/1 var(--body); cursor: pointer; }
.chat-close:hover { border-color: var(--fg); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 18px 16px; overflow-y: auto; overscroll-behavior: contain; }
.chat-msg { max-width: 86%; }
.chat-msg.me { align-self: flex-end; }
.chat-msg p { padding: 10px 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--fg); font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.me p { border-color: var(--red); background: var(--red); color: #fff; }
.chat-msg time { display: block; margin-top: 4px; color: var(--dim); font: 400 11px/1.2 var(--mono); }
.chat-msg.me time { text-align: right; }
.chat-msg.pending p { opacity: 0.6; }
.chat-msg.fail p { border-color: var(--red-ink); background: transparent; color: var(--fg); }
.chat-retry { display: block; margin: 6px 0 0 auto; padding: 0; border: 0; background: none; color: var(--red-ink); font: 400 13px/1.35 var(--body); text-align: right; text-decoration: underline; cursor: pointer; }
.chat-quick { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 0 16px 14px; }
.chat-quick[hidden] { display: none; }
.chat-quick button { padding: 9px 16px; border: 1px solid var(--red); background: transparent; color: var(--fg); font: 500 14px/1.2 var(--body); cursor: pointer; transition: background-color 0.15s; }
.chat-quick button:hover { background: var(--red); }
.chat-form { position: relative; display: grid; gap: 10px; padding: 12px 12px 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.chat-consent { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.chat-consent[hidden] { display: none; }
.chat-consent input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--red); }
.chat-consent a { color: var(--fg-2); }
.chat-consent.need { color: var(--red-ink); }
.chat-consent.need input { outline: 2px solid var(--red-ink); outline-offset: 1px; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-row textarea { flex: 1; min-width: 0; height: 44px; max-height: 140px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 0; background: var(--surface); color: var(--fg); font: 400 15px/1.4 var(--body); resize: none; }
.chat-row textarea::placeholder { color: var(--dim); }
.chat-row textarea:focus { outline: none; border-color: var(--red); }
.chat-send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: var(--red); color: #fff; cursor: pointer; }
.chat-send:hover { background: var(--red-deep); }
.chat-send[disabled] { background: var(--line-2); color: var(--muted); cursor: default; }
.chat-send svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .chat:not([hidden]) { animation: chat-in 0.18s ease-out; }
  @keyframes chat-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
/* телефон: кнопка над нижней панелью, окно — на весь экран (высоту под клавиатуру подгоняет chat.js) */
@media (max-width: 640px) {
  .chat-fab { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; }
  body.doc-page .chat-fab { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .chat { inset: 0; width: auto; height: 100%; border: 0; box-shadow: none; }
  .chat::before { display: none; }
  html.chat-open { overflow: hidden; }
  .chat-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
  .chat-form { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .chat-row textarea { font-size: 16px; } /* меньше 16 px — iPhone увеличивает страницу при вводе */
}

/* ---------- Отзывы заказчиков (js/reviews.js, данные — reviews.php). Пока отзывов нет, раздела на странице нет ---------- */
/* звёзды: серые снизу, красные сверху на ширину оценки */
.stars { position: relative; display: inline-block; color: var(--line-2); font-size: 15px; letter-spacing: 2px; line-height: 1; white-space: nowrap; }
.stars::before { content: "★★★★★"; }
.stars i { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--red); font-style: normal; white-space: nowrap; }
.stars i::before { content: "★★★★★"; }

/* в карточке модели: оценка и число отзывов под названием */
.card-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 13px/1.3 var(--mono); color: var(--fg-2); }
.card-rate b { color: var(--fg); font-weight: 700; }
.card-rate a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.rv { display: flex; flex-direction: column; gap: 28px; padding-block: 24px 88px; scroll-margin-top: 80px; }
.rv-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.rv-sum { display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--line-2); background: var(--surface); }
.rv-score { display: flex; align-items: center; gap: 14px; }
.rv-score b { font: 700 56px/1 var(--display); }
.rv-score .stars { font-size: 20px; }
.rv-score small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.rv-bars { display: grid; gap: 6px; font: 500 13px/1 var(--mono); color: var(--muted); }
.rv-bars div { display: grid; grid-template-columns: 24px 1fr 28px; align-items: center; gap: 10px; }
.rv-bars s { display: block; height: 6px; background: var(--line); text-decoration: none; }
.rv-bars s i { display: block; height: 100%; background: var(--red); }
.rv-how { padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; }
.rv-how a { color: var(--fg); }
.rv-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* карусель: один ряд, новые слева; видно 3 отзыва, на планшете 2, на телефоне 1 и край следующего */
.rv-list { --rv-per: 3; --rv-gap: 20px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--rv-per) - 1) * var(--rv-gap)) / var(--rv-per)); gap: var(--rv-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rv-list::-webkit-scrollbar { display: none; }
.rv-list:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.rv-card { display: flex; flex-direction: column; gap: 14px; scroll-snap-align: start; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-date { color: var(--muted); font: 500 12px/1 var(--mono); }
.rv-card blockquote { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; text-wrap: pretty; }
.rv-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chip { padding: 4px 8px; border: 1px solid var(--line-2); color: var(--fg-2); font: 500 12px/1.2 var(--mono); }
.rv-ok { color: #6fd08c; border-color: rgba(111, 208, 140, 0.35); }
.rv-answer { padding: 12px 14px; border-left: 2px solid var(--red-ink); background: rgba(255, 255, 255, 0.03); color: var(--fg-2); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.rv-answer b { display: block; margin-bottom: 4px; color: var(--fg); font: 600 12px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; white-space: normal; }
.rv-who { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.rv-nav { display: flex; align-items: center; gap: 12px; }
.rv-nav[hidden] { display: none; }
.rv-arrow { width: 48px; padding: 0; font-size: 20px; }
.rv-arrow:disabled { opacity: 0.35; cursor: default; }
.rv-arrow:disabled:hover { border-color: var(--line-2); }
.rv-pos { min-width: 72px; color: var(--muted); font: 500 13px/1 var(--mono); text-align: center; }

@media (max-width: 1100px) {
  .rv-grid { grid-template-columns: minmax(0, 1fr); }
  .rv-list { --rv-per: 2; }
}
@media (max-width: 640px) {
  .rv { padding-block: 32px 48px; gap: 20px; }
  .rv-list { --rv-gap: 12px; grid-auto-columns: 86%; }
  .rv-card { padding: 20px; }
  .rv-sum { padding: 20px; }
  .rv-score b { font-size: 44px; }
}
