@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════
   prod_product.css v3.0
   Стили страницы товара — декомпозиция prototype.html
   ═══════════════════════════════════════════════════════════════ */

/* ═══ CSS VARIABLES (товарная страница) ═══
   ВАЖНО: при интеграции сверить с общими переменными сайта.
   Если переменные уже объявлены в all_*.css — удалить дубли здесь.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --font: 'Onest', system-ui, -apple-system, sans-serif;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-sec: #5a5f72;
  --text-muted: #8b90a0;
  --border: #e4e6eb;
  --border-light: #f0f1f4;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff4ff;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --orange: #ea580c;
  --red: #dc2626;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 16px;
  --shadow-s: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --shadow-l: 0 8px 30px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --max-w: 1280px;
  --header-h: 92px;
}

[data-theme="dark"] {
  --bg: #111318;
  --bg-alt: #1a1c24;
  --bg-card: #1e2028;
  --text: #e8e9ed;
  --text-sec: #9ea3b5;
  --text-muted: #6b7086;
  --border: #2a2d38;
  --border-light: #23252f;
  --accent: #5b8def;
  --accent-hover: #4a7de6;
  --accent-light: #1a2744;
  --green: #34d670;
  --green-light: #0f2918;
  --shadow-s: 0 1px 3px rgba(0,0,0,.2);
  --shadow: 0 4px 12px rgba(0,0,0,.25);
  --shadow-l: 0 8px 30px rgba(0,0,0,.3);
}


/* ═══ RESET (товарная страница) ═══
   Загружается только на товарах (prod_product.css).
   Каталоги и legacy-страницы этот файл не подключают.
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }


/* ═══ BREADCRUMBS ═══ */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs li:not(:last-child)::after { content: '›'; color: var(--text-muted); opacity: .5; margin-left: 4px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); text-decoration: none; }
.breadcrumbs li:last-child { color: var(--text-sec); }


/* ═══ MAIN — clip full-width breakout sections ═══ */
#main { overflow-x: clip; }

/* ═══ PRODUCT SECTION (buy zone — 2-column grid) ═══ */
.product {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Left column: gallery + variants ── */
.product__left {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: start;
  position: sticky;
  top: var(--header-h, 92px);
  min-width: 0; /* v2.8: grid-ячейка сжимается при длинном тексте variant-chip */
}
.product__left .buy__variants {
  border-top: none;
  padding-top: 14px;
}

/* Fallback: no variants → show left-info instead */
.product__left-info { display: none; }

/* Dark theme: приглушаем фото, при наведении — полная яркость */
[data-theme="dark"] .product__left img {
  filter: brightness(.75);
  transition: filter .4s ease;
}
[data-theme="dark"] .gallery__main:hover img {
  filter: brightness(1);
}
[data-theme="dark"] .product__left .gallery__thumb:hover img {
  filter: brightness(1);
}

.product_no-variants .buy__variants { display: none; }
.product_no-variants .product__left-info { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.product_no-variants .product__left-info .buy__trust { flex-wrap: wrap; }
.product_no-variants .product__left-info .buy__b2b { margin: 0; }
.product_no-variants .product__left-info .buy__expertise { margin: 0; }

/* v2.7: При отсутствии вариантов блоки expertise/b2b/trust
   показываются в product__left-info (выше), поэтому в .buy — скрываем */
.product_no-variants .buy > .buy__expertise,
.product_no-variants .buy > .buy__b2b,
.product_no-variants .buy > .buy__trust { display: none; }


/* ═══ GALLERY ═══ */
.gallery { position: relative; }
.gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  overflow: hidden;
  cursor: crosshair;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}
.gallery__main img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius);
  transition: transform .3s ease, filter .4s ease;
}
/* v3.0: заглушка при отсутствии фото */
.gallery__no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
  user-select: none;
}

/* Zoom lens */
.gallery__zoom {
  position: absolute;
  width: 200px; height: 200px;
  border: 2px solid rgba(37,99,235,.4);
  border-radius: 50%;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s;
  z-index: 5;
  box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 4px 20px rgba(0,0,0,.15);
}
.gallery__main:hover .gallery__zoom { opacity: 1; }
@media (hover: none) { .gallery__zoom { display: none; } .gallery__main { cursor: zoom-in; } }

/* Thumbnails */
.gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.gallery__thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-s);
  border: 2px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, box-shadow .2s, transform .25s cubic-bezier(.34,1.56,.64,1);
  flex-shrink: 0;
}
.gallery__thumb:hover,
.gallery__thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.gallery__thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(37,99,235,.12);
}
.gallery__thumb img {
  max-width: 85%; max-height: 85%;
  object-fit: contain;
}

/* Video thumb */
.gallery__thumb_video {
  flex-direction: column;
  gap: 2px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.gallery__thumb_video svg { width: 22px; height: 22px; }

/* Gallery dots (mobile only) */
.gallery__dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.gallery__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background .2s, width .2s;
}
.gallery__dot.is-active { background: var(--accent); width: 20px; border-radius: 4px; }
.gallery__dot_video { background: var(--accent-light); border: 1px solid var(--accent); }
.gallery__dot_video.is-active { background: var(--accent); }

/* Video overlay in main gallery */
.gallery__video {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: var(--radius-l);
  overflow: hidden;
}
.gallery__video iframe { width: 100%; height: 100%; border: none; }

/* Gallery crossfade (JS toggles opacity) */
#mainImage {
  transition: opacity .25s ease;
}

@media (max-width: 768px) {
  .gallery__thumbs { display: none; }
  .gallery__dots { display: flex; }
  .gallery__main { touch-action: pan-y; }
}


/* ═══ BUY INFO (right column) ═══ */
.buy { display: flex; flex-direction: column; gap: 20px; }

/* Brand line */
.buy__brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.buy__brand-line a { color: var(--text-sec); font-weight: 500; }
.buy__brand-line .sep { color: var(--border); }

/* Title (H1) */
.buy__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* Rating */
.buy__rating {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-muted);
}
.buy__stars { display: flex; gap: 2px; color: #f59e0b; }
.buy__stars svg { width: 16px; height: 16px; fill: currentColor; }
.buy__rating-link { font-size: 13px; color: var(--accent); }
.buy__rating-link:hover { text-decoration: underline; }
.buy__popularity { font-size: 13px; color: var(--text-muted); }

/* Pickup (optional) */
.buy__pickup {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-s);
  font-size: 13px;
  line-height: 1.4;
}
.buy__pickup-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--green); margin-top: 1px; }
.buy__pickup strong { display: block; color: var(--text); font-weight: 600; }
.buy__pickup span { color: var(--text-sec); }

/* Feature badges */
.buy__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.buy__badge {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  background: var(--bg-alt);
  color: var(--text-sec);
  white-space: nowrap;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
}
.buy__badge_accent { background: var(--accent-light); color: var(--accent); }
.buy__badge_green { background: var(--green-light); color: var(--green); }

/* Badge shimmer on hover */
.buy__badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transition: none;
}
.buy__badge:hover::after {
  animation: shimmer-badge .6s ease;
}

/* Price block */
.buy__price-block {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.buy__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.buy__price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  transition: text-shadow .3s;
}
.buy__price:hover {
  text-shadow: 0 0 20px rgba(37,99,235,.15);
}
.buy__price-currency {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-sec);
}

/* Stock */
.buy__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}
.buy__stock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.buy__stock-text { color: var(--green); white-space: nowrap; }
.buy__stock-qty { color: var(--text-sec); font-weight: 500; white-space: nowrap; }
.buy__stock-qty::before { content: "·"; margin: 0 4px; color: var(--text-muted); }
.buy__stock-ship { color: var(--text-muted); font-weight: 400; white-space: nowrap; }
.buy__stock-ship::before { content: "·"; margin: 0 4px; color: var(--text-muted); }

/* CTA buttons */
.buy__cta { display: flex; position: relative; overflow: visible; }
.btn-cart {
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .18s cubic-bezier(.25,.46,.45,.94), background .2s, box-shadow .2s, color .2s, border-color .2s;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
  will-change: transform;
  cursor: pointer;
}
.btn-cart:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
  transform: translateY(-1px);
}
.btn-cart:active {
  transform: scale(.96) !important;
  transition-duration: .06s;
}
.btn-cart svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

/* Состояние «✓ Добавлено» — мгновенная вспышка */
.btn-cart--added {
  background: var(--green);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

/* Состояние «✓ В корзине» — постоянное */
.btn-cart--in-cart {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  box-shadow: none;
}
.btn-cart--in-cart:hover {
  background: var(--green-light);
  box-shadow: none;
  transform: none;
}
.btn-cart--in-cart svg { display: none; }

/* B2B block (optional) */
.buy__b2b {
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  background: var(--accent-light);
}
.buy__b2b-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.buy__b2b-icon { width: 18px; height: 18px; flex-shrink: 0; }
.buy__b2b-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.buy__b2b-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-sec);
}
.buy__b2b-item svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--green); }
.buy__b2b-item svg {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.buy__b2b-item:hover svg {
  transform: scale(1.3);
}

/* Trust icons */
.buy__trust {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-sec);
  border-right: 1px solid var(--border-light);
  white-space: nowrap;
}
.trust-item:last-child { border-right: none; }
.trust-item__icon {
  flex-shrink: 0;
  width: 16px; height: 16px;
  color: var(--text-muted);
}
.trust-item strong { color: var(--text); font-weight: 600; font-size: 11px; }

/* Dealer badge (optional) */
.buy__dealer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--green-light);
  border-radius: var(--radius-s);
  font-size: 13px;
}
.buy__dealer-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--green); }
.buy__dealer-text { color: var(--text-sec); }
.buy__dealer-text strong { color: var(--text); }
.buy__dealer-link { margin-left: auto; font-size: 12px; white-space: nowrap; }
.buy__dealer:hover .buy__dealer-icon {
  animation: shield-pulse .4s ease;
}

/* Short specs in buy zone */
.buy__specs {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}
.buy__specs-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.buy__specs dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 14px;
}
.buy__specs dt { color: var(--text-muted); }
.buy__specs dd { color: var(--text); font-weight: 500; }

/* Expertise badge (optional) */
.buy__expertise {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(22,163,74,.06));
  border: 1px solid rgba(37,99,235,.12);
  border-radius: var(--radius-s);
  margin-bottom: 12px;
}
.buy__expertise-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.buy__expertise-icon svg { width: 16px; height: 16px; }
.buy__expertise-text {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.4;
}
.buy__expertise-text strong {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 1px;
}


/* ═══ VARIANTS (chip-style, collapsible) ═══ */
.buy__variants {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  min-width: 0; /* v2.9: flex-child сжимается, горизонтальный скролл при переполнении */
}
.buy__variants-title {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.buy__variants-count {
  font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: 12px; color: var(--text-muted); opacity: .7;
}
.buy__variants-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-x: auto;  /* v2.9: горизонтальный скролл при длинных названиях */
  overflow-y: hidden;
  transition: max-height .35s ease;
}
/* v2.9: тонкий скроллбар */
.buy__variants-list::-webkit-scrollbar { height: 4px; }
.buy__variants-list::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: 4px;
}
.buy__variants-list::-webkit-scrollbar-track { background: transparent; }
.buy__variants-list { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.buy__variants-list.is-collapsible { max-height: 200px; }
.buy__variants-list.is-expanded { max-height: 2000px; }

.variant-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-s);
  font-size: 13px;
  text-decoration: none;
  transition: transform .15s, border-color .2s, box-shadow .2s;
  gap: 8px;
}
.variant-chip:hover {
  border-color: var(--accent);
  text-decoration: none;
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.variant-chip:active {
  transform: scale(.97);
}
.variant-chip.is-current {
  border-color: var(--accent);
  background: var(--accent-light);
  pointer-events: none;
}
.variant-chip.is-current .variant-chip__name::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}
.variant-chip_out { opacity: .55; }
.variant-chip_out .variant-chip__price { color: var(--text-muted); font-weight: 400; }
.variant-chip__name { color: var(--text); font-weight: 500; white-space: nowrap; }
.variant-chip__price { color: var(--text-sec); font-weight: 600; white-space: nowrap; flex-shrink: 0; }

/* Variant row: art (left) + chip */
.variant-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content; /* v2.9: строка растягивается под контент */
  min-width: 100%;    /* v2.9: но не уже родителя */
}
.variant-row__art {
  flex-shrink: 0;
  width: 48px;
  font-size: 13px;
  font-family: var(--font-mono, ui-monospace, 'SF Mono', monospace);
  color: var(--text-muted);
  letter-spacing: .02em;
  user-select: text;
  cursor: text;
  text-align: right;
}
.variant-row .variant-chip { flex: 1; }

.buy__variants-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border-radius: var(--radius-s);
  transition: background .2s;
}
.buy__variants-toggle:hover { background: var(--accent-light); }
.buy__variants-toggle[hidden] { display: none; }


/* ═══ TRUST STRIP (between product and tabs) ═══ */
.trust-strip {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 32px;
}
.trust-strip__inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.trust-strip__num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trust-strip__label {
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-sec);
}
.trust-strip__label strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}
.trust-strip__yandex {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sec);
}
.trust-strip__yandex-stars { color: #f59e0b; font-size: 16px; letter-spacing: 1px; }
.trust-strip__yandex a { font-size: 12px; }

/* Brand logos marquee */
.trust-strip__brands {
  overflow: hidden;
  padding: 10px 0 8px;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.trust-strip__marquee-track {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  will-change: transform;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 30px;
  padding: 6px 10px;
  background: #fff;
  border-radius: 6px;
  cursor: default;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .4s ease;
}
[data-theme="dark"] .brand-logo {filter: brightness(.65);}
[data-theme="dark"] .brand-logo:hover { filter: brightness(.85); }
.brand-logo__icon {
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity .2s;
}
.brand-logo:hover .brand-logo__icon { opacity: 1; }
.brand-logo:hover { transform: scale(1.08); }


/* ═══ TABS SECTION ═══ */
.tabs-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
}
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tabs-nav__btn {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  border: none; background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.tabs-nav__btn:hover { color: var(--text); }
.tabs-nav__btn.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }


/* ═══ TAB: DESCRIPTION ═══ */
.description { max-width: 75ch; }
.description h2 {
  font-size: 22px; font-weight: 700; margin: 32px 0 12px;
  color: var(--text); line-height: 1.3;
}
.description h2:first-child { margin-top: 0; }
.description h3 {
  font-size: 18px; font-weight: 600; margin: 28px 0 10px;
  color: var(--text);
}
.description h4 {
  font-size: 16px; font-weight: 600; margin: 20px 0 8px;
  color: var(--text);
}
.description p { margin-bottom: 12px; color: var(--text-sec); }
.description strong { color: var(--text); font-weight: 600; }
.description ul {
  margin: 8px 0 12px 20px;
  list-style: disc;
}
.description ul li {
  margin-bottom: 6px;
  color: var(--text-sec);
}
.description ul li strong { color: var(--text); }
.description table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.description th, .description td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.description th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}
.description td { color: var(--text-sec); }
.description tr:hover td { background: var(--bg-alt); }

/* Description feature cards */
.desc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.desc-feature {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-s);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sec);
}
.desc-feature__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.desc-feature__icon svg { width: 18px; height: 18px; color: var(--accent); }
.desc-feature strong { color: var(--text); font-size: 14px; }

/* Fit / Not-fit blocks */
.desc-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.desc-fit {
  padding: 16px;
  border-radius: var(--radius-s);
  font-size: 13px;
}
.desc-fit_yes { background: var(--green-light); }
.desc-fit_no { background: #fef2f2; }
[data-theme="dark"] .desc-fit_no { background: #2a1515; }
.desc-fit__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.desc-fit__head svg { width: 20px; height: 20px; }
.desc-fit_yes .desc-fit__head svg { color: var(--green); }
.desc-fit_yes .desc-fit__head strong { color: var(--green); }
.desc-fit_no .desc-fit__head svg { color: var(--red); }
.desc-fit_no .desc-fit__head strong { color: var(--red); }
.desc-fit ul { padding-left: 0; margin: 0; list-style: none; }
.desc-fit li {
  padding: 3px 0 3px 20px;
  position: relative;
  color: var(--text-sec);
  line-height: 1.5;
}
.desc-fit_yes li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 600; }
.desc-fit_no li::before { content: '✗'; position: absolute; left: 0; color: var(--red); font-weight: 600; }


/* ═══ TAB: SPECS — grouped with dot leaders + tooltips ═══ */
.specs-grouped {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 24px;
}
.specs-grouped::before {
  content: '';
  grid-column: 2;
  grid-row: 1 / -1;
  background: var(--border-light);
}
.specs-group { margin-bottom: 12px; }
.specs-group:last-child { margin-bottom: 0; }
.specs-group:nth-child(1) { grid-column: 1; grid-row: 1; }
.specs-group:nth-child(2) { grid-column: 1; grid-row: 2; }
.specs-group:nth-child(3) { grid-column: 3; grid-row: 1; }
.specs-group:nth-child(4) { grid-column: 3; grid-row: 2; }
.specs-group__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 2px 0;
  padding: 8px 0 3px;
}
.specs-group:first-child .specs-group__title { padding-top: 0; }
.specs-group__rows { margin: 0; padding: 0; }
.specs-group__rows dt, .specs-group__rows dd { margin: 0; padding: 0; }

.specs-row {
  display: flex;
  align-items: baseline;
  padding: 4px 0;
  font-size: 14px;
  gap: 6px;
  transition: background .2s, padding-left .25s;
  border-radius: 4px;
}
.specs-row:hover {
  background: var(--accent-light);
  padding-left: 6px;
}
.specs-row__label {
  color: var(--text-sec);
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}
.specs-row__dots {
  flex: 1;
  min-width: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--text-muted) 0,
    var(--text-muted) 1px,
    transparent 1px,
    transparent 5px
  );
  background-size: 5px 1px;
  background-repeat: repeat-x;
  background-position: bottom 4px left;
  height: 1em;
  opacity: .18;
}
.specs-row__value {
  color: var(--text);
  font-weight: 500;
  flex-shrink: 1;
  min-width: 0;
  text-align: right;
}

/* Hint tooltip */
.specs-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  color: var(--text-muted);
  position: relative;
  flex-shrink: 0;
  opacity: .35;
  transition: opacity .15s;
}
.specs-hint svg { width: 12px; height: 12px; }
.specs-row:hover .specs-hint { opacity: .65; }
.specs-hint:hover { opacity: 1; color: var(--accent); }
.specs-hint__bubble {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
  padding: 10px 12px;
  background: var(--text);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--bg);
  z-index: 20;
  text-align: left;
  white-space: normal;
  font-weight: 400;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  animation: hintPop .12s ease-out;
}
.specs-hint__bubble::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--text);
}


/* ═══ TAB: DELIVERY ═══ */
.delivery-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.delivery-card {
  display: flex; gap: 16px; padding: 20px;
  border-radius: var(--radius); background: var(--bg-alt);
  align-items: flex-start;
  transition: background .2s, border-color .2s;
  border-radius: var(--radius-s);
  padding: 12px;
}
.delivery-card:hover { background: var(--bg-alt); }
.delivery-card:hover .delivery-card__icon svg {
  animation: icon-wobble .4s ease;
}
.delivery-card__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--accent-light);
  border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.delivery-card__icon svg { width: 20px; height: 20px; }
.delivery-card__text h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.delivery-card__text p { font-size: 14px; color: var(--text-sec); }

.delivery-b2b {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: var(--radius);
}
.delivery-b2b__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.delivery-b2b__icon svg { width: 18px; height: 18px; color: #fff; }
.delivery-b2b__text h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.delivery-b2b__text p { font-size: 13px; color: var(--text-sec); line-height: 1.5; }


/* ═══ TAB: COMPARISON TABLE ═══ */
.compare-table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.compare-table thead th {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 14px;
  vertical-align: bottom;
}
.compare-table thead th span { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.compare-table__param { color: var(--text-muted); font-weight: 400; width: 25%; white-space: nowrap; }
.compare-table__current {
  background: var(--accent-light);
}
.compare-table thead .compare-table__current {
  border-radius: 8px 8px 0 0;
}
.compare-table tbody tr:last-child .compare-table__current {
  border-radius: 0 0 8px 8px;
}
.compare-table__badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.compare-table td strong { color: var(--text); }
.compare-table tbody tr {
  transition: background .15s;
}
.compare-table tbody tr:hover {
  background: var(--accent-light);
}


/* ═══ TAB: REVIEWS ═══ */
.reviews-placeholder {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.reviews-placeholder p { margin-bottom: 16px; }
.reviews-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.reviews-content::before {
  content: '';
  position: absolute;
  inset: -24px -48px;
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  z-index: -1;
  filter: blur(0px);
  opacity: .6;
}
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow-s);
}
.reviews-summary__yandex {
  display: flex; align-items: center; gap: 14px;
}
.reviews-summary__score {
  font-size: 36px; font-weight: 700; color: var(--text); line-height: 1;
}
.reviews-summary__stars { color: #f59e0b; font-size: 18px; letter-spacing: 2px; }
.reviews-summary__source { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.reviews-summary__link { font-size: 14px; font-weight: 500; white-space: nowrap; }
.reviews-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.review-card {
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-s);
}
.review-card__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.review-card__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; flex-shrink: 0;
}
.review-card__name { font-size: 14px; font-weight: 600; color: var(--text); }
.review-card__date { font-size: 12px; color: var(--text-muted); }
.review-card__stars { color: #f59e0b; font-size: 14px; margin-left: auto; }
.review-card__text { font-size: 14px; color: var(--text-sec); line-height: 1.6; }
.review-card:hover .review-card__stars {
  animation: star-twinkle .5s ease;
}
.reviews-actions { text-align: center; }
.btn-review {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-s);
  font-size: 14px; font-weight: 600;
  color: var(--text-sec);
  transition: border-color .2s, color .2s;
}
.btn-review:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }


/* ═══ TAB: GUARANTEE ═══ */
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.guarantee-card {
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.guarantee-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-s);
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  color: var(--green);
}
.guarantee-card__icon svg { width: 20px; height: 20px; }
.guarantee-card h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.guarantee-card p { font-size: 13px; color: var(--text-sec); line-height: 1.5; }
.guarantee-certs h4 {
  font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 14px;
}
.guarantee-certs__list {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.guarantee-certs__item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  flex: 1 1 0;
  min-width: 200px;
}
.guarantee-certs__item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-s);
}
.guarantee-certs__preview {
  background: var(--bg-alt);
  border-radius: 6px;
  display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.guarantee-certs__preview img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.guarantee-certs__info {
  display: flex; flex-direction: column; gap: 4px;
}
.guarantee-certs__brand {
  font-size: 15px; font-weight: 600; color: var(--text);
  line-height: 1.3;
}
.guarantee-certs__item p { font-size: 13px; color: var(--text-sec); line-height: 1.45; margin: 0; }

/* ── Portrait: текст слева, картинка справа ── */
.guarantee-certs__item_portrait {
  flex-direction: row-reverse;
}
.guarantee-certs__item_portrait .guarantee-certs__preview {
  width: 96px; height: 128px;
}

/* ── Landscape: бренд сверху, картинка, текст снизу ── */
.guarantee-certs__item_landscape {
  flex-direction: column; align-items: stretch;
}
.guarantee-certs__item_landscape .guarantee-certs__info {
  display: contents;
}
.guarantee-certs__item_landscape .guarantee-certs__brand {
  order: -1;
}
.guarantee-certs__item_landscape .guarantee-certs__preview {
  order: 0;
  width: 100%; height: auto; max-height: 140px;
}
.guarantee-certs__item_landscape .guarantee-certs__preview img {
  height: auto; max-height: 140px;
}
.guarantee-certs__item_landscape p {
  order: 1;
}


/* ═══ PARTNER SECTION ═══ */
.partner-section {
  background: var(--bg-alt);
  padding: 48px 24px;
  /* Вырыв на всю ширину без горизонтального скролла */
  margin-inline: calc(-50vw + 50%);
  padding-inline: max(calc(50vw - 50%), 24px);
}
.partner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.partner-section__head {
  text-align: center;
  margin-bottom: 36px;
}
.partner-section__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.partner-section__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.partner-section__sub {
  font-size: 14px;
  color: var(--text-sec);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Pipeline */
.partner-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  position: relative;
}
.partner-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 160px;
  position: relative;
  z-index: 1;
}
.partner-step__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(37,99,235,.12);
  transition: transform .25s, box-shadow .25s;
}
.partner-step:hover .partner-step__icon {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(37,99,235,.2);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.partner-step__icon svg { width: 22px; height: 22px; }
.partner-step__num {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.partner-step__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.partner-step__desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
/* Connector line between steps */
.partner-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 0;
}

/* Partner cards */
.partner-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.partner-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-s);
  transition: transform .2s, box-shadow .2s;
}
.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}
.partner-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.partner-card__title svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.partner-card:hover .partner-card__title svg {
  transform: translateY(-2px) scale(1.1);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.partner-card p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.5;
}


/* ═══ FAQ ═══ */
.faq-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
}
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-section__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  text-align: center;
}
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  transition: color .15s;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { display: none; content: ''; }
.faq-item__q:hover { color: var(--accent); }
.faq-item__arrow {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .25s, color .15s;
}
.faq-item[open] .faq-item__arrow { transform: rotate(180deg); color: var(--accent); }
.faq-item__a {
  overflow: hidden;
  padding-bottom: 16px;
  transition: max-height .4s cubic-bezier(.34,1.56,.64,1), padding .3s ease;
}
.faq-item__a p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
  max-width: 680px;
}


/* ═══ CROSS-SELL ═══ */
.cross-sell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
}
.cross-sell__title {
  font-size: 22px; font-weight: 700; margin-bottom: 24px;
  color: var(--text);
}
.cross-sell__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cross-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-card);
  transition: border-color .2s, box-shadow .2s, transform .3s cubic-bezier(.34,1.56,.64,1);
  will-change: transform;
}
.cross-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  transform: translateY(-2px);
  border-color: var(--border);
  text-decoration: none;
}
.cross-card__img {
  height: 120px;
  background: var(--bg-alt);
  border-radius: var(--radius-s);
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cross-card__img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.cross-card__name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.cross-card__price { font-size: 15px; font-weight: 700; color: var(--text); }


/* ═══ CTA SECTION ═══ */
.cta-section {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-alt);
  /* Вырыв на всю ширину без горизонтального скролла */
  margin-inline: calc(-50vw + 50%);
  padding-inline: max(calc(50vw - 50%), 24px);
}
.cta-section p { color: var(--text-sec); margin-bottom: 8px; }
.cta-section .phone {
  font-size: 24px; font-weight: 700; color: var(--text);
}
.cta-section .phone-note { font-size: 14px; color: var(--text-muted); }


/* ═══ RECENTLY VIEWED ═══ */
.recently-viewed {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
}
.recently-viewed__title {
  font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 20px; text-align: center;
}
.recently-viewed__grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.recently-viewed__grid::-webkit-scrollbar { display: none; }
.rv-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-s);
  padding: 12px;
  transition: border-color .2s, box-shadow .2s, transform .3s cubic-bezier(.34,1.56,.64,1);
  will-change: transform;
}
.rv-card:hover {
  border-color: var(--border);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  text-decoration: none;
}
.rv-card__img {
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.rv-card__img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.rv-card__name { font-size: 12px; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.rv-card__price { font-size: 14px; font-weight: 700; color: var(--text); }


/* ═══ STICKY BUY BAR ═══ */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 90;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  backdrop-filter: blur(12px);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar__name {
  font-size: 14px; font-weight: 500; color: var(--text);
  max-width: 300px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.sticky-bar__price { font-size: 20px; font-weight: 700; color: var(--text); white-space: nowrap; }
.sticky-bar .btn-cart { flex: none; padding: 12px 28px; font-size: 14px; }


/* ═══ LIGHTBOX ═══ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,.15);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.3); }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox__prev, .lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%; background: rgba(255,255,255,.15);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: background .2s;
}
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.3); }


/* ═══ CERT MODAL ═══ */
.cert-modal {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.cert-modal.is-open { display: flex; }
.cert-modal__inner {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 1000px; width: 92vw;
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.cert-modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%; background: var(--bg);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: background .2s; cursor: pointer; border: none;
}
.cert-modal__close:hover { background: var(--border); }
.cert-modal__title {
  font-size: 16px; font-weight: 600; margin: 0 0 16px; color: var(--text);
}
.cert-modal__img {
  width: 100%; height: auto; border-radius: calc(var(--radius) - 4px);
}


/* ═══ KEYFRAMES ═══ */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.4); }
  50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}
@keyframes shimmer-badge {
  to { left: 150%; }
}
@keyframes hintPop {
  from { opacity: 0; transform: translateY(-50%) scale(.95); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes icon-wobble {
  0% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
  100% { transform: rotate(0); }
}
@keyframes shield-pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@keyframes star-twinkle {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}
@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(0) translateX(0) rotate(0) scale(1); }
  100% { opacity: 0; transform: translateY(120px) translateX(var(--drift, 0px)) rotate(720deg) scale(0.3); }
}
@keyframes rocket-launch {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-8px) scale(1.1); }
  100% { transform: translateY(-50px) scale(.5); opacity: 0; }
}
@keyframes stagger-appear {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes live-blink {
  0%,100% { opacity: 1; }
  50% { opacity: .3; }
}
@keyframes sparkle-fade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0) translateY(-20px); }
}


/* ═══ MICRO-INTERACTIONS ═══ */

/* Ripple effect */
.ripple-wrap { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: scale(0);
  animation: ripple-anim .5s ease-out forwards;
  pointer-events: none;
}

/* Cursor glow near CTA */
.cta-glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.08), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s;
  z-index: 0;
}

/* Smart price tooltip */
.buy__price-wrap { position: relative; }
.price-insight {
  position: absolute;
  top: -36px; left: 0;
  background: var(--text);
  color: #fff;
  font-size: 11px; font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.price-insight::after {
  content: '';
  position: absolute;
  top: 100%; left: 16px;
  border: 5px solid transparent;
  border-top-color: var(--text);
}
.buy__price-wrap:hover .price-insight { opacity: 1; transform: translateY(0); }

/* Urgency timer */
.urgency-timer {
  font-size: 12px;
  color: var(--orange);
  margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}
.urgency-timer svg { width: 14px; height: 14px; }
.urgency-timer__digits { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Live viewers */
.live-viewers {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
  white-space: nowrap;
}
.live-viewers__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: live-blink 1.5s ease-in-out infinite;
}

/* Shipping progress */
.shipping-progress {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-s);
  font-size: 12px;
  color: var(--text-sec);
}
.shipping-progress__bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.shipping-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.shipping-progress__text strong { color: var(--green); }

/* Confetti piece */
.confetti-piece {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 2px;
  z-index: 200;
  pointer-events: none;
  animation: confetti-fall 1s cubic-bezier(.25,.46,.45,.94) forwards;
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  z-index: 200;
  width: 0%;
  transition: width .1s linear, opacity .3s;
  opacity: 0;
}
.reading-progress.is-active { opacity: 1; }

/* Hide legacy up-button from all_base */
.up-button { display: none !important; }

/* Back-to-top rocket */
.btt-rocket {
  position: fixed;
  bottom: 80px; left: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 91;
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: opacity .3s, transform .4s cubic-bezier(.22,1,.36,1), background .2s, bottom .25s;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.btt-rocket.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.btt-rocket:hover { background: var(--accent-hover); transform: translateY(-2px) !important; }
.btt-rocket svg { width: 22px; height: 22px; transition: transform .3s; }
.btt-rocket.is-launching svg { animation: rocket-launch .6s ease forwards; }
.btt-rocket__trail {
  position: absolute;
  bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 0;
  background: linear-gradient(to bottom, var(--orange), transparent);
  border-radius: 0 0 6px 6px;
  transition: height .2s;
  opacity: 0;
}
.btt-rocket:hover .btt-rocket__trail { height: 16px; opacity: .7; }

/* Staggered entrance */
.stagger-in {
  opacity: 0;
  transform: translateY(12px);
  animation: stagger-appear .5s cubic-bezier(.22,1,.36,1) forwards;
}

/* Easter egg sparkle */
.sparkle {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  animation: sparkle-fade .6s ease-out forwards;
}


/* ═══ SCROLL ANIMATIONS ═══ */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══ ACCESSIBILITY ═══ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-s);
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .product { gap: 32px; }
  .partner-cards { grid-template-columns: 1fr 1fr 1fr; }
  .cross-sell__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .product {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 16px 32px;
  }
  .gallery { position: static; }
  .product__left { position: static; }
  .buy__title { font-size: 22px; }
  .buy__price { font-size: 30px; }
  .buy__trust { flex-wrap: wrap; }
  .trust-item { flex: 1 1 45%; white-space: normal; }
  .buy__b2b-items { grid-template-columns: 1fr; }
  .buy__dealer { flex-wrap: wrap; }
  .partner-pipeline { flex-wrap: wrap; gap: 8px; }
  .partner-step:not(:last-child)::after { display: none; }
  .partner-step { flex: 0 0 calc(33.3% - 8px); max-width: none; }
  .partner-cards { grid-template-columns: 1fr; }
  .cross-sell__grid { grid-template-columns: 1fr 1fr; }
  .delivery-info { grid-template-columns: 1fr; }
  .reviews-content { max-width: 100%; }
  .reviews-content::before { inset: -16px -16px; }
  .tabs-nav__btn { padding: 12px 16px; font-size: 14px; }
  .breadcrumbs { padding: 12px 16px 0; }
  .tabs-section { padding: 0 16px 32px; }
  .sticky-bar__name { display: none; }
  .trust-strip__inner { flex-wrap: wrap; gap: 20px; justify-content: flex-start; padding: 20px 16px; }
  .trust-strip { padding: 0 16px 24px; }
  .guarantee-grid { grid-template-columns: 1fr; }
  .guarantee-certs__list { flex-direction: column; }
  .guarantee-certs__item_portrait .guarantee-certs__preview { width: 72px; height: 96px; }
  .reviews-summary { flex-direction: column; align-items: flex-start; gap: 12px; }
  .desc-features { grid-template-columns: 1fr; }
  .desc-fit-grid { grid-template-columns: 1fr; }

  .specs-row { flex-wrap: wrap; padding: 3px 0; }
  .specs-row__dots { display: none; }
  .specs-row__value { text-align: left; flex-basis: 100%; font-size: 13px; margin-top: 1px; }
  .specs-grouped { grid-template-columns: 1fr; gap: 0; }
  .specs-grouped::before { display: none; }
  .specs-group:nth-child(1),
  .specs-group:nth-child(2),
  .specs-group:nth-child(3),
  .specs-group:nth-child(4) { grid-column: 1; grid-row: auto; }
  .specs-hint__bubble {
    left: 0; top: calc(100% + 6px); transform: none; width: 220px;
  }
  .specs-hint__bubble::before { display: none; }

  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 8px 10px; }

  .btt-rocket { bottom: 90px; left: 16px; width: 42px; height: 42px; }
  .price-insight { display: none; }
}

@media (max-width: 480px) {
  .cross-sell__grid { grid-template-columns: 1fr; }
  .buy__cta { flex-direction: column; }
}


/* ================================================================
   DESC-ICON — inline SVG-иконки в тексте описания (v2.3)
   Заменяет {icon:xxx} → <span class="desc-icon"><svg...></span>
   Используется во всех секциях кроме Features Grid
   ================================================================ */

.desc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
  flex-shrink: 0;
  color: var(--fi-icon, #4a6cf7);
}

.desc-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* В списках — чуть крупнее и с отступом */
li .desc-icon {
  width: 1.35em;
  height: 1.35em;
  margin-right: 0.3em;
}

[data-theme="dark"] .desc-icon {
  color: var(--fi-icon, #7b8cff);
}

/* ================================================================
   DESC-SECTION-LIST — списки с иконками слева (v2.4)
   Используется для: задачи, комплектация, интеграция, итоги
   Модификатор --warn — красный акцент для «Не подойдёт»
   ================================================================ */

.desc-section-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}

.desc-section-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  background: var(--dsl-bg, #f8f9fb);
  transition: background 0.2s;
}

.desc-section-list__icon {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.1rem;
  color: var(--dsl-icon, #4a6cf7);
}

.desc-section-list__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.desc-section-list__body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.desc-section-list__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dsl-title, #1a1a2e);
}

.desc-section-list__text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--dsl-text, #5a6175);
}

/* Модификатор: предупреждение (Не подойдёт) */
.desc-section-list--warn {
  --dsl-bg: #fef3f2;
  --dsl-icon: #d94840;
}

.desc-section-list--warn .desc-section-list__title {
  color: #7a2720;
}

[data-theme="dark"] .desc-section-list__item {
  --dsl-bg: #1c1e2e;
  --dsl-icon: #7b8cff;
  --dsl-title: #e4e6f0;
  --dsl-text: #9ca3b8;
}

[data-theme="dark"] .desc-section-list--warn {
  --dsl-bg: #2a1a1a;
  --dsl-icon: #ff6b6b;
}

[data-theme="dark"] .desc-section-list--warn .desc-section-list__title {
  color: #ff9b9b;
}

@media (max-width: 600px) {
  .desc-section-list__item {
    padding: 0.5rem 0.625rem;
  }
}

/* ================================================================
   FEATURES ICONS GRID (v2.2)
   Сетка иконок преимуществ товара
   БЭМ: features-icons, features-icons__item, features-icons__icon,
        features-icons__body, features-icons__title, features-icons__text
   HTML собирается в оркестраторе (СобратьБлокИконкиFeatures)
   ================================================================ */

.features-icons__heading {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.5rem 0 0.75rem;
  color: var(--fi-title, #1a1a2e);
}

.features-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.features-icons__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  border-radius: 10px;
  background: var(--fi-bg, #f5f7fa);
  transition: background 0.2s;
}

.features-icons__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.125rem;
  color: var(--fi-icon, #4a6cf7);
}

.features-icons__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.features-icons__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.features-icons__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fi-title, #1a1a2e);
}

.features-icons__text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--fi-text, #5a6175);
}

[data-theme="dark"] .features-icons__heading {
  color: #e4e6f0;
}

[data-theme="dark"] .features-icons__item {
  --fi-bg: #1e2235;
  --fi-icon: #7b8cff;
  --fi-title: #e4e6f0;
  --fi-text: #9ca3b8;
}

@media (max-width: 600px) {
  .features-icons {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
  .features-icons__item {
    padding: 0.75rem;
  }
}

/* ═══ PRINT ═══ */
@media print {
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; }
  body { font-size: 11pt; line-height: 1.4; }

  /* Hide interactive / non-essential */
  .header, .footer, .sticky-bar, .lightbox, .cert-modal,
  .tabs-nav, .gallery__thumbs, .gallery__dots, .gallery__zoom,
  .buy__cta, .btn-cart, .buy__variants-toggle,
  .faq-item__arrow, .trust-strip__brands,
  .cross-sell, .recently-viewed, .cta-section,
  .partner-section, .btt-rocket, .reading-progress { display: none !important; }

  /* Layout */
  .product { display: grid; grid-template-columns: 1fr 1fr; gap: 20pt; padding: 0; page-break-inside: avoid; }
  .gallery { position: static; }
  .product__left { position: static; }
  .gallery__main { border: 1px solid #ccc; aspect-ratio: auto; height: auto; }
  .gallery__main img { max-height: 250pt; }

  /* Tabs — show all panels */
  .tab-panel { display: block !important; opacity: 1 !important; height: auto !important; position: static !important; border-top: 1pt solid #ccc; padding-top: 10pt; margin-top: 10pt; page-break-inside: avoid; }
  .tab-panel::before { content: attr(id); font-weight: bold; font-size: 12pt; text-transform: uppercase; display: block; margin-bottom: 6pt; }

  /* FAQ — show all open */
  .faq-item__a { padding-bottom: 8pt !important; }

  /* Price block */
  .buy__price-block { border: 2pt solid #000; padding: 10pt; }
  .buy__price { font-size: 24pt; }

  /* Trust strip */
  .trust-strip { border: 1pt solid #ccc; padding: 8pt; }
  .trust-strip__inner { justify-content: flex-start; gap: 20pt; }

  /* Specs two columns */
  .specs-grouped { gap: 0 20pt; }

  /* Links */
  a[href]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666 !important; }
  a.buy__rating-link::after, a.buy__dealer-link::after, a.variant-chip::after { content: none; }

  /* Page breaks */
  h2, h3 { page-break-after: avoid; }
  .description, .specs-grouped, .compare-table-wrap { page-break-inside: avoid; }
}
