@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════
   prod_product.css v3.6
   Стили страницы товара
   Changelog v3.6:
   — Migration: keyframes → all_micro.css (mi-* naming)
   — Removed: .ripple-wrap, .reading-progress, .stagger-in (→ all_micro.css)
   — Removed: global reduced-motion (→ all_micro.css)
   — Kept: page-specific keyframes (mi-confetti, shield-pulse, etc.)
   Changelog v3.5:
   — Invoice modal microinteractions: entrance slide-up, chip bounce,
     checkbox stroke-draw, total pulse, success checkmark draw,
     close rotation, label focus highlight
   — Mobile bottom-sheet: slide-up from bottom
   — Reduced-motion: all invoice animations properly reset
   Changelog v3.4:
   — Invoice modal v2: каналы доставки (email/макс/tg), чекбокс звонка
   — Invoice modal: product-meta space-between (артикул ↔ цена)
   — Invoice modal: animated phone-field reveal
   Changelog v3.3:
   — Invoice modal: «Запросить счёт» — full-featured модалка
   — Invoice modal: mobile bottom-sheet на ≤480px
   — Invoice modal: data-stock="check" → btn-invoice primary CTA
   Changelog v3.2:
   — Fix: gallery thumbs flex-wrap (overflow при ≥10 фото)
   — Fix: варианты растягиваются на всю высоту product__left
   — Fix: lightbox close button на мобильных (под header)
   — Fix: variant-chip price всегда виден на мобильных
   — Tabs: scroll-hint gradient + уменьшены на мобильных
   — Partner section: full-width на мобильных (≤768px)
   — Buy specs: dot leaders (dashed) между label и value
   — Табы мобильные: mask-image scroll hint
   Changelog v3.1:
   — Контрастность: --text-muted WCAG AA
   — Баг: --card-bg → --bg-card (cert-modal)
   — Баг: .brand-logo dark theme → var(--bg-card)
   — Удалён мёртвый CSS (~300 строк): faq, cross-sell, rv-card,
     desc-features, desc-fit, urgency/live/shipping, price-insight,
     compare-table
   — Удалены неиспользуемые keyframes: icon-wobble, live-blink
   — will-change на sticky-bar, btt-rocket
   — @media (prefers-reduced-motion: reduce)
   — Типографическая шкала --fs-*
   — Trust-иконки компактнее
   — Expertise + dealer: уменьшены отступы
   ═══════════════════════════════════════════════════════════════ */

/* ═══ 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: #6b7080; /* v3.1: WCAG AA fix, 4.6:1 на белом */
  --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;
  /* v3.1: типографическая шкала (Major Third ×1.25) */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 16px;
  --fs-md: 20px;
  --fs-lg: 25px;
  --fs-xl: 31px;
  --fs-price: 36px;
}

[data-theme="dark"] {
  --bg: #111318;
  --bg-alt: #1a1c24;
  --bg-card: #1e2028;
  --text: #e8e9ed;
  --text-sec: #9ea3b5;
  --text-muted: #7b8096; /* v3.1: пропорционально светлее */
  --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: minmax(0, 1fr) minmax(0, 1fr); /* v3.1: minmax(0) — строго 50/50, контент не расширяет колонку */
  gap: 48px;
  align-items: start;
}

/* ── Left column: gallery + variants ── */
.product__left {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0; /* v2.8: grid-ячейка сжимается при длинном тексте variant-chip */
}
/* v3.2: если есть варианты — product растягивает обе колонки,
   варианты заполняют остаток высоты */
.product:not(.product_no-variants) {
  align-items: stretch;
}
.product_no-variants .product__left {
  align-self: start;
  position: sticky;
  top: var(--header-h, 92px);
}
.product__left .buy__variants {
  border-top: none;
  padding-top: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product__left .buy__variants .buy__variants-list {
  flex: 1;
}

/* 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__partner { margin: 0; }

/* v3.1: При отсутствии вариантов блоки partner/b2b/trust
   показываются в product__left-info (выше), поэтому в .buy — скрываем */
.product_no-variants .buy > .buy__partner,
.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;
  flex-wrap: wrap;
  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: 960px) { /* v3.1: совпадает с product grid → 1 column */
  .gallery__thumbs { display: none; }
  .gallery__dots { display: flex; }
  .gallery__main { touch-action: pan-y; aspect-ratio: 4/3; } /* v3.1: A3 — цена видна без скролла */
}


/* ═══ 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); }
/* v3.1: иконка копирования артикула */
.buy__copy-icon {
  opacity: .3;
  transition: opacity .2s;
  vertical-align: -1px;
  margin-left: 2px;
  flex-shrink: 0;
}
.buy__brand-line:hover .buy__copy-icon { opacity: .7; }
.buy__brand-line:focus-visible .buy__copy-icon { opacity: 1; }

/* 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: mi-shimmer .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;
}
/* v3.1: stock — цвет управляется data-stock на обёртке .buy__stock */
.buy__stock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: mi-pulse-dot 2.5s ease-in-out infinite;
}
.buy__stock-text { white-space: nowrap; }

/* data-stock="yes" — в наличии (зелёный) */
.buy__stock[data-stock="yes"] .buy__stock-dot { background: var(--green); }
.buy__stock[data-stock="yes"] .buy__stock-text { color: var(--green); }

/* data-stock="no" — нет в наличии (красный) */
.buy__stock[data-stock="no"] .buy__stock-dot { background: var(--red); animation: none; }
.buy__stock[data-stock="no"] .buy__stock-text { color: var(--red); }

/* data-stock="check" — уточните (оранжевый, без пульсации) */
.buy__stock[data-stock="check"] .buy__stock-dot { background: var(--orange); animation: none; }
.buy__stock[data-stock="check"] .buy__stock-text { color: var(--orange); }

/* fallback — неизвестный статус */
.buy__stock:not([data-stock]) .buy__stock-dot { background: var(--text-muted); animation: none; }
.buy__stock:not([data-stock]) .buy__stock-text { color: var(--text-sec); }

.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); }

/* v3.1: A9 — CTA «Уточнить» при data-stock="check" */
.buy__stock-cta {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  padding: 2px 10px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.buy__stock-cta:hover {
  background: #c2410c;
  text-decoration: none;
}
.buy__stock[data-stock="check"] .buy__stock-cta { display: inline-flex; }

/* CTA buttons */
.buy__cta { display: flex; gap: 8px; position: relative; overflow: visible; align-items: stretch; }
.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; }

/* v3.1: A1 — Qty selector (выбор количества) */
.qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-s);
  overflow: hidden;
  flex-shrink: 0;
}
.qty-selector__btn {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-sec);
  background: var(--bg-alt);
  border: none;
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s;
}
.qty-selector__btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.qty-selector__btn:active {
  background: var(--accent);
  color: #fff;
}
.qty-selector__input {
  width: 48px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -moz-appearance: textfield;
}
.qty-selector__input::-webkit-inner-spin-button,
.qty-selector__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-selector__input:focus {
  outline: none;
  background: var(--accent-light);
}

/* Compact variant for sticky bar */
.qty-selector_compact {
  border-width: 1px;
}
.qty-selector_compact .qty-selector__btn {
  width: 32px;
  height: 36px;
  font-size: 16px;
}
.qty-selector_compact .qty-selector__input {
  width: 38px;
  height: 36px;
  font-size: 14px;
}

/* v3.1: A2 — btn-invoice (secondary CTA) */
.btn-invoice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-s);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
  cursor: pointer;
  background: transparent;
}
.btn-invoice:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}
.btn-invoice svg { flex-shrink: 0; }

/* v3.1: A8 — sticky bar art */
.sticky-bar__art {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

/* B2B block (optional) */
.buy__b2b {
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  background: var(--accent-light);
  /* v3.1: spotlight — CSS-переменные для JS-эффекта */
  --b2b-spot-center: rgba(255, 255, 255, .55);
  --b2b-spot-edge: rgba(37, 99, 235, .04);
  transition: box-shadow .3s ease;
}
.buy__b2b:hover {
  box-shadow: 0 2px 12px rgba(37, 99, 235, .1);
}
.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);
}
/* v3.1: dark theme — оригинальные значения (работали хорошо) */
[data-theme="dark"] .buy__b2b {
  --b2b-spot-center: rgba(37, 99, 235, .08);
  --b2b-spot-edge: #1a2744;
}

/* Trust icons — v3.1: компактнее */
.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: 4px;
  padding: 6px 6px;
  font-size: var(--fs-xs);
  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: 14px; height: 14px;
  color: var(--text-muted);
}
.trust-item strong { color: var(--text); font-weight: 600; font-size: var(--fs-xs); }

/* v3.1: A4 — merged partner block (was: expertise + dealer) */
.buy__partner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--green-light);
  border-radius: var(--radius-s);
  font-size: 13px;
  transition: box-shadow .2s;
}
.buy__partner:hover { box-shadow: var(--shadow-s); }
.buy__partner-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--green);
}
.buy__partner:hover .buy__partner-icon {
  animation: shield-pulse .4s ease;
}
.buy__partner-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.buy__partner-title { color: var(--text-sec); }
.buy__partner-title strong { color: var(--text); }
.buy__partner-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.3;
}
.buy__partner-link {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.buy__partner-link svg {
  vertical-align: -2px;
  opacity: .7;
  transition: opacity .2s;
}
.buy__partner-link:hover svg { opacity: 1; }

/* 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: max-content 1fr;
  gap: 0;
  font-size: 14px;
}
.buy__specs dt {
  color: var(--text-muted);
  padding: 5px 0;
  white-space: nowrap;
}
.buy__specs dd {
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: baseline;
  padding: 5px 0;
}
.buy__specs dd::before {
  content: '';
  flex: 1;
  border-bottom: 1px dashed var(--border);
  margin: 0 8px;
  min-width: 16px;
  position: relative;
  top: -0.2em;
}

/* v3.1: buy__expertise removed — merged into buy__partner */


/* ═══ 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: none; }

.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; }
.variant-chip__price { color: var(--text-sec); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
/* v3.1: артикул внутри chip */
.variant-chip__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.variant-chip__art {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 400;
}

/* v3.1: variant-row удалён — art теперь внутри chip */

.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;
  cursor: grab;
}
.trust-strip__marquee-track:active {
  cursor: grabbing;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 30px;
  padding: 6px 10px;
  background: var(--bg-card); /* v3.1: было #fff, теперь адаптируется к теме */
  border-radius: 6px;
  cursor: inherit; /* v3.1: наследует grab/grabbing от track (kinetic marquee) */
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .4s ease;
}
[data-theme="dark"] .brand-logo { background: #fff; filter: brightness(.65); } /* v3.1: белый фон — иначе лого обрезается по кромке */
[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);
}
/* v3.1: бейдж на табе (количество брендов) */
.tabs-nav__badge {
  display: inline-block;
  padding: 1px 7px;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 100px;
  letter-spacing: .02em;
  vertical-align: 1px;
  white-space: nowrap;
}
.tabs-nav__btn.is-active .tabs-nav__badge {
  background: var(--accent);
  color: #fff;
}
/* v3.1: SEO-friendly — visibility вместо display:none (контент индексируется) */
.tab-panel {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  position: absolute;
  width: 1px;
  clip: rect(0,0,0,0);
}
.tab-panel.is-active {
  height: auto;
  overflow: visible;
  visibility: visible;
  position: static;
  width: auto;
  clip: auto;
}


/* ═══ TAB: DESCRIPTION ═══ */
.description { max-width: 100ch; } /* v3.1: было 75ch — слишком узко для features-icons и таблиц */
/* v3.1: h1 внутри описания (генерируется 1С) → стилизуем как h2.
   Семантический фикс (h1→h2) — задача для чата «1С → HTML» */
.description h1,
.description h2 {
  font-size: 22px; font-weight: 700; margin: 32px 0 12px;
  color: var(--text); line-height: 1.3;
}
.description h1:first-child,
.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); }

/* v3.1: desc-features, desc-fit — удалены (заменены features-icons, desc-section-list) */


/* ═══ 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: mi-hint-pop .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__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; }

/* v3.1: compare-table — удалена (не используется на товарной странице) */


/* ═══ 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);
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
/* v3.1: hover — подъём + свечение + accent-бордер */
.guarantee-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, var(--green-light), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 0;
}
.guarantee-card__icon,
.guarantee-card h4,
.guarantee-card p {
  position: relative;
  z-index: 1;
}
.guarantee-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(22, 163, 74, .08);
}
.guarantee-card:hover::after { opacity: 1; }
.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);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.guarantee-card:hover .guarantee-card__icon {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(22, 163, 74, .15);
}
.guarantee-card__icon svg { width: 20px; height: 20px; }
.guarantee-card h4 {
  font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px;
  transition: color .2s;
}
.guarantee-card:hover h4 { color: var(--green); }
.guarantee-card p { font-size: 13px; color: var(--text-sec); line-height: 1.5; }

/* Dark theme — зелёное свечение мягче */
[data-theme="dark"] .guarantee-card:hover {
  box-shadow: 0 8px 24px rgba(52, 214, 112, .06);
  border-color: rgba(52, 214, 112, .4);
}
[data-theme="dark"] .guarantee-card::after {
  background: radial-gradient(circle at 30% 20%, rgba(52, 214, 112, .06), transparent 70%);
}
[data-theme="dark"] .guarantee-card:hover .guarantee-card__icon {
  box-shadow: 0 4px 16px rgba(52, 214, 112, .12);
}
@media (hover: none) {
  .guarantee-card:hover { transform: none; box-shadow: none; border-color: var(--border-light); }
  .guarantee-card:hover::after { opacity: 0; }
  .guarantee-card:hover .guarantee-card__icon { transform: none; box-shadow: none; }
  .guarantee-card:hover h4 { color: var(--text); }
}
.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;
}
/* v3.1: A5 — marquee перенесён в таб гарантий */
.guarantee-content .trust-strip__brands {
  margin-top: 24px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}


/* ═══ PARTNER SECTION ═══ */
/* v3.1: фон перенесён на .partner-inner для видимого border-radius */
.partner-section {
  padding: 0 24px 48px;
}
.partner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  padding: 48px 40px;
}
.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;
}

/* v3.1: faq-section — удалена (не используется)
   v3.1: cross-sell — удалена (не используется)
   v3.1: recently-viewed, rv-card — удалены (компонент hidden, стили для JS-генерации) */


/* ═══ CTA SECTION ═══ */
/* v3.1: убран full-bleed hack, скруглённый контейнер */
.cta-section {
  text-align: center;
  padding: 48px 40px;
  background: var(--bg-alt);
  max-width: var(--max-w);
  margin: 0 auto;
  border-radius: var(--radius-l);
}
.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); }


/* ═══ 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);
  will-change: transform; /* v3.1 */
}
.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; }

/* v3.2: cart link with badge in sticky bar */
.sticky-bar__cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  color: var(--text-sec);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
  text-decoration: none;
  margin-left: -8px;
}
.sticky-bar__cart-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
}
.sticky-bar__cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(239,68,68,.3);
}
.sticky-bar__cart-badge:empty { display: none; }


/* ═══ 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 var(--mi-t-base), transform var(--mi-t-bounce);
}
.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(--bg-card); /* v3.1: было 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 var(--mi-t-base), color var(--mi-t-base), transform var(--mi-t-bounce); 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);
}


/* ═══ INVOICE MODAL (v3.4: модалка «Запросить счёт») ═══
   Паттерн cert-modal: fixed overlay + centered card.
   JS создаёт DOM, класс .is-open управляет видимостью.
   v3.4: каналы доставки (email/макс/tg), чекбокс звонка,
         product-meta space-between (артикул ↔ цена)
   ═══════════════════════════════════════════════════════ */
.invoice-modal {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.invoice-modal.is-open { display: flex; }

.invoice-modal__inner {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-l);
  padding: 32px;
  max-width: 480px; width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25), 0 0 0 1px var(--border-light);
  /* v3.5: entrance animation */
  animation: mi-enter-card .35s cubic-bezier(.22,1,.36,1) both;
}
.invoice-modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%; background: var(--bg-alt);
  color: var(--text-sec); display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: background .2s, color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); cursor: pointer; border: none;
  z-index: 1;
}
.invoice-modal__close:hover {
  background: var(--border); color: var(--text);
  /* transform: rotate(90deg) — via all_micro.css MI-CLOSE-ROTATE */
}

.invoice-modal__title {
  font-size: var(--fs-md); font-weight: 700; margin: 0 0 4px; color: var(--text);
  line-height: 1.3;
}
.invoice-modal__subtitle {
  font-size: var(--fs-sm); color: var(--text-muted); margin: 0 0 20px;
  line-height: 1.5;
}

/* Product summary — art и price разнесены по краям */
.invoice-modal__product {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-s);
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}
.invoice-modal__product-name {
  font-size: var(--fs-base); font-weight: 600; color: var(--text);
  line-height: 1.3;
}
.invoice-modal__product-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: var(--fs-sm); color: var(--text-muted);
}
.invoice-modal__product-price {
  font-weight: 700; color: var(--text); font-size: 17px;
}

/* ── Channel chips ── */
.invoice-modal__channels-label {
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-sec);
  margin-bottom: 8px;
}
.invoice-modal__channels {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.invoice-modal__channel {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-s);
  font-family: var(--font); font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-sec);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
  user-select: none;
}
.invoice-modal__channel:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
}
.invoice-modal__channel.is-active {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent);
  font-weight: 600;
  /* v3.5: micro bounce on select */
  animation: mi-chip-pop .3s cubic-bezier(.34,1.56,.64,1);
}
.invoice-modal__channel svg,
.invoice-modal__channel img {
  width: 16px; height: 16px; flex-shrink: 0;
}
.invoice-modal__channel img {
  border-radius: 3px;
}

/* ── Form fields ── */
.invoice-modal__form {
  display: flex; flex-direction: column; gap: 16px;
}
.invoice-modal__field {
  display: flex; flex-direction: column; gap: 4px;
}
.invoice-modal__label {
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-sec);
  display: flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.invoice-modal__label-opt {
  font-weight: 400; color: var(--text-muted); font-size: var(--fs-xs);
}
.invoice-modal__input,
.invoice-modal__textarea {
  font-family: var(--font);
  font-size: var(--fs-base); line-height: 1.5;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.invoice-modal__input::placeholder,
.invoice-modal__textarea::placeholder {
  color: var(--text-muted); opacity: .7;
}
.invoice-modal__input:focus,
.invoice-modal__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
/* v3.5: label highlights when input focused */
.invoice-modal__field:focus-within .invoice-modal__label {
  color: var(--accent);
}
.invoice-modal__input--error {
  border-color: var(--red);
}
.invoice-modal__input--error:focus {
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.invoice-modal__textarea {
  resize: vertical; min-height: 72px; max-height: 200px;
}
.invoice-modal__field-error {
  font-size: var(--fs-xs); color: var(--red); min-height: 0;
  overflow: hidden; transition: min-height .2s;
}
.invoice-modal__field-error:not(:empty) { min-height: 16px; }

/* ── Callback checkbox ── */
.invoice-modal__callback {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--bg-alt);
  cursor: pointer;
  transition: background .15s;
  user-select: none;
}
.invoice-modal__callback:hover { background: var(--border-light); }
.invoice-modal__callback-box {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.invoice-modal__callback.is-checked .invoice-modal__callback-box {
  background: var(--accent); border-color: var(--accent);
  animation: mi-check-pop .35s cubic-bezier(.34,1.56,.64,1);
}
.invoice-modal__callback-box svg {
  width: 12px; height: 12px; stroke: #fff; stroke-width: 3;
  fill: none; opacity: 0; transition: opacity .15s;
  /* v3.5: stroke draw prep */
  stroke-dasharray: 24; stroke-dashoffset: 24;
}
.invoice-modal__callback.is-checked .invoice-modal__callback-box svg {
  opacity: 1;
  stroke-dashoffset: 0;
  transition: opacity .15s, stroke-dashoffset .3s cubic-bezier(.22,1,.36,1) .1s;
}
.invoice-modal__callback-text {
  font-size: var(--fs-sm); color: var(--text-sec); line-height: 1.4;
}
.invoice-modal__callback-text strong {
  color: var(--text); font-weight: 600;
}

/* Phone field — hidden by default, shown when callback checked */
.invoice-modal__phone-field {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .3s cubic-bezier(.22,1,.36,1), opacity .2s, margin .2s;
  margin-top: 0;
}
.invoice-modal__phone-field.is-visible {
  max-height: 100px; opacity: 1; margin-top: 16px;
}

/* ── Qty + Total row ── */
.invoice-modal__row {
  display: flex; gap: 16px; align-items: flex-end;
}
.invoice-modal__row .invoice-modal__field { flex: 1; }
.invoice-modal__total {
  display: flex; flex-direction: column; gap: 2px;
  text-align: right; flex-shrink: 0;
  padding-bottom: 10px;
}
.invoice-modal__total-label {
  font-size: var(--fs-xs); color: var(--text-muted);
}
.invoice-modal__total-value {
  font-size: var(--fs-md); font-weight: 700; color: var(--text);
  white-space: nowrap;
  /* v3.5: smooth transition for pulse */
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
/* v3.5: JS toggles this class briefly when qty changes */
.invoice-modal__total-value.is-pulse {
  animation: mi-pulse-value .35s cubic-bezier(.34,1.56,.64,1);
}

/* Qty controls */
.invoice-modal__qty-wrap {
  display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-s);
  overflow: hidden; height: 44px;
}
.invoice-modal__qty-btn {
  width: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-sec); background: var(--bg-alt);
  border: none; cursor: pointer; transition: background .15s, color .15s;
  user-select: none; flex-shrink: 0;
}
.invoice-modal__qty-btn:hover { background: var(--border); color: var(--text); }
.invoice-modal__qty-btn:active { background: var(--accent-light); color: var(--accent); }
.invoice-modal__qty-input {
  font-family: var(--font);
  width: 56px; text-align: center; border: none; background: var(--bg);
  font-size: var(--fs-base); font-weight: 600; color: var(--text);
  outline: none; -moz-appearance: textfield;
}
.invoice-modal__qty-input::-webkit-inner-spin-button,
.invoice-modal__qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Submit ── */
.invoice-modal__submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; width: 100%;
  background: var(--accent); color: #fff;
  font-family: var(--font); font-size: var(--fs-base); font-weight: 600;
  border: 1.5px solid transparent; border-radius: var(--radius-s);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
  transition: background .2s, box-shadow .2s, transform .18s cubic-bezier(.25,.46,.45,.94);
}
.invoice-modal__submit:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
  transform: translateY(-1px);
}
.invoice-modal__submit:active {
  transform: scale(.97);
  transition-duration: .06s;
}
.invoice-modal__submit:disabled {
  opacity: .5; pointer-events: none; transform: none;
}
.invoice-modal__submit svg {
  width: 18px; height: 18px; stroke: currentColor; fill: none; flex-shrink: 0;
}

/* Spinner */
.invoice-modal__spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mi-spin .6s linear infinite;
  flex-shrink: 0;
}

/* Server error */
.invoice-modal__error {
  font-size: var(--fs-sm); color: var(--red);
  text-align: center; padding: 8px 0;
  display: none;
}
.invoice-modal__error.is-visible { display: block; }

/* ── Success state ── */
.invoice-modal__success {
  display: none; flex-direction: column; align-items: center;
  gap: 16px; text-align: center; padding: 24px 0 8px;
}
.invoice-modal__success.is-visible { display: flex; }
.invoice-modal__success-icon {
  width: 56px; height: 56px;
  background: var(--green-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  /* v3.5: scale-in */
  animation: mi-success-pop .5s cubic-bezier(.34,1.56,.64,1);
}
.invoice-modal__success-icon svg {
  width: 28px; height: 28px;
  /* v3.5: stroke draw */
  stroke-dasharray: 30; stroke-dashoffset: 30;
  animation: mi-success-draw .4s cubic-bezier(.22,1,.36,1) .25s forwards;
}
.invoice-modal__success-title {
  font-size: var(--fs-md); font-weight: 700; color: var(--text);
  /* v3.5: fade in */
  animation: mi-fade-up .4s cubic-bezier(.22,1,.36,1) .15s both;
}
.invoice-modal__success-text {
  font-size: var(--fs-base); color: var(--text-sec); line-height: 1.5;
  animation: mi-fade-up .4s cubic-bezier(.22,1,.36,1) .25s both;
}
.invoice-modal__success-order {
  font-size: var(--fs-sm); color: var(--text-muted);
  background: var(--bg-alt); padding: 8px 16px; border-radius: var(--radius-s);
}
.invoice-modal__success-close {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 32px;
  background: var(--bg-alt); color: var(--text);
  font-family: var(--font); font-size: var(--fs-base); font-weight: 500;
  border: 1.5px solid var(--border); border-radius: var(--radius-s);
  cursor: pointer; transition: background .2s, border-color .2s;
  margin-top: 4px;
}
.invoice-modal__success-close:hover {
  background: var(--border-light); border-color: var(--text-muted);
}

/* ── data-stock="check" → btn-invoice primary ── */
.btn-invoice--primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
  font-weight: 600;
}
.btn-invoice--primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .invoice-modal { align-items: flex-end; }
  .invoice-modal__inner {
    padding: 24px 16px; border-radius: var(--radius) var(--radius) 0 0;
    max-width: 100%; width: 100%; max-height: 92vh;
    /* v3.5: bottom-sheet slides up from bottom, not center */
    animation: mi-enter-sheet .35s cubic-bezier(.22,1,.36,1) both;
  }
  .invoice-modal__channels { gap: 6px; }
  .invoice-modal__channel { padding: 8px 8px; font-size: 12px; gap: 4px; }
  .invoice-modal__row { flex-direction: column; gap: 12px; }
  .invoice-modal__total {
    text-align: left; flex-direction: row; gap: 8px;
    align-items: center; padding-bottom: 0;
  }
}


/* ═══ PAGE-SPECIFIC KEYFRAMES ═══
   Общие keyframes (mi-*) — в all_micro.css.
   Здесь — только привязанные к уникальному поведению товарной страницы.
   ═══════════════════════════════════════════════════════════ */
@keyframes mi-confetti {
  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 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 rocket-launch {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-8px) scale(1.1); }
  100% { transform: translateY(-50px) scale(.5); opacity: 0; }
}
@keyframes sparkle-fade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0) translateY(-20px); }
}


/* ═══ MICRO-INTERACTIONS (page-specific) ═══
   Общие (.ripple-wrap, .reading-progress, .stagger-in, .fade-section) — в all_micro.css.
   Здесь — только привязанные к buy-zone товарной страницы.
   ═══════════════════════════════════════════════════════════ */

/* 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 — v3.1: price-insight удалён (не используется) */
.buy__price-wrap { position: relative; }

/* v3.1: urgency-timer, live-viewers, shipping-progress — удалены (не используются) */

/* Confetti piece */
.confetti-piece {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 2px;
  z-index: 200;
  pointer-events: none;
  animation: mi-confetti 1s cubic-bezier(.25,.46,.45,.94) 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; }
}

/* v3.1: product grid → 1 колонка при 960px (было 768px — колонки слишком узкие) */
@media (max-width: 960px) {
  .product {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 16px 32px;
  }
  /* v3.2: reset stretch for single-column */
  .product:not(.product_no-variants) {
    align-items: start;
  }
  .product_no-variants .product__left {
    position: static;
  }
  .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__partner { flex-wrap: wrap; }
  .delivery-info { grid-template-columns: 1fr; }
  .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; }
}

@media (max-width: 768px) {
  .reviews-content { max-width: 100%; }
  .reviews-content::before { inset: -16px -16px; }
  /* v3.2: tabs — scroll hint gradient + smaller text */
  .tabs-nav {
    mask-image: linear-gradient(to right, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent);
  }
  .tabs-nav__btn { padding: 10px 12px; font-size: 13px; }
  .breadcrumbs { padding: 12px 16px 0; }
  .tabs-section { padding: 0 16px 32px; }
  /* v3.1: sticky-bar__name показываем на mobile (truncated) вместо display:none */
  .sticky-bar__name { max-width: 140px; font-size: 12px; }
  /* v3.1: A10 — trust-strip компактнее на mobile */
  .trust-strip { padding: 0 16px 16px; }
  .trust-strip__inner {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 0;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .trust-strip__inner::-webkit-scrollbar { display: none; }
  .trust-strip__num { font-size: 20px; }
  .trust-strip__label { font-size: 11px; }
  .trust-strip__label strong { font-size: 11px; }
  .trust-strip__yandex-stars { font-size: 13px; }
  .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; }

  .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; }

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

  /* v3.2: 6 — partner section full-width on mobile */
  .partner-section { padding: 0 0 32px; }
  .partner-inner { border-radius: 0; padding: 32px 16px; }

  /* v3.2: 8 — lightbox close button below status bar / header */
  .lightbox__close {
    top: max(56px, env(safe-area-inset-top, 20px) + 44px);
    right: 12px;
    width: 44px;
    height: 44px;
    z-index: 2;
    background: rgba(0,0,0,.6);
  }
  .lightbox img { max-width: 100vw; max-height: 85vh; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }

  /* v3.2: 10 — variant chip price always visible on mobile */
  .variant-chip { flex-wrap: nowrap; }
  .variant-chip__price { font-size: 12px; }
  .variant-chip_out .variant-chip__price { display: inline; }

  /* v3.2: 11 — buy specs dots: hide on narrow screens */
  .buy__specs dd::before { display: none; }
  .buy__specs dl { gap: 2px 0; }
  .buy__specs dd { justify-content: flex-end; }
}

@media (max-width: 480px) {
  .buy__cta { flex-direction: column; }
  .buy__cta .qty-selector { width: 100%; }
  .buy__cta .qty-selector__input { flex: 1; width: auto; }
  .buy__cta .btn-cart { width: 100%; }
  .btn-invoice { width: 100%; }
  /* Sticky bar: скрываем qty на узких экранах */
  .sticky-bar .qty-selector_compact { display: none; }
  .sticky-bar__art { display: none; }
}


/* ═══ COLLAPSIBLE DESCRIPTION (v3.1: A6 — mobile only) ═══
   JS оборачивает H2 → details/summary на < 768px.
   На desktop элементы .desc-collapse не существуют в DOM.
   ═══════════════════════════════════════════════════════════ */
.desc-collapse {
  border-bottom: 1px solid var(--border-light);
}
.desc-collapse:first-child {
  border-top: 1px solid var(--border-light);
}
.desc-collapse__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color .15s;
}
.desc-collapse__summary::-webkit-details-marker { display: none; }
.desc-collapse__summary::marker { display: none; content: ''; }
.desc-collapse__summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform .25s;
}
.desc-collapse[open] > .desc-collapse__summary::after {
  transform: rotate(-135deg);
}
.desc-collapse__summary:hover { color: var(--accent); }
.desc-collapse__body {
  padding: 0 0 16px;
}
/* Внутренние h3/h4 сохраняют стили от .description */
.desc-collapse__body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 8px;
}

[data-theme="dark"] .desc-collapse {
  border-color: var(--border);
}


/* ================================================================
   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;
  }
}

/* ═══ REDUCED MOTION ═══
   Глобальный блок — в all_micro.css.
   Здесь — дополнения, специфичные для товарной страницы.
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .gallery__main img { transition: none; }
  .gallery__thumb { transition: none; }
  .gallery__zoom { display: none; }
  .trust-strip__marquee-track { animation: none; transform: none !important; }
  .btt-rocket { transition: none; }
  .sticky-bar { transition: none; }
  .btn-cart { transition: none; }
  .invoice-modal__inner { animation: none; opacity: 1; transform: none; }
  .invoice-modal__success-icon { animation: none; }
  .invoice-modal__success-icon svg { animation: none; stroke-dashoffset: 0; }
  .invoice-modal__success-title,
  .invoice-modal__success-text { animation: none; opacity: 1; transform: none; }
  .invoice-modal__channel.is-active { animation: none; }
  .invoice-modal__callback.is-checked .invoice-modal__callback-box { animation: none; }
  .invoice-modal__total-value.is-pulse { animation: none; }
}

/* ═══ 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, .invoice-modal,
  .tabs-nav, .gallery__thumbs, .gallery__dots, .gallery__zoom,
  .buy__cta, .btn-cart, .buy__variants-toggle,
  .faq-item__arrow, .trust-strip__brands,
  .cross-sell, .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__partner-link::after, a.variant-chip::after { content: none; }

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