/* Страница товара.
   Раскладка: фото | ключевые характеристики | колонка покупки (карточка с ценой и кнопками, под ней доставка); ниже — липкие вкладки
   и два столбца (описание, характеристики, отзывы, вопросы | бренд, документы).
   Правила: начальное состояние рисует сервер, скрипт ничего не «дорисовывает» при загрузке;
   двигаются только transform и opacity; всё отключается при prefers-reduced-motion. */

.product { --sticky: 73px; } /* высота липкой шапки: вкладки встают точно под неё */
@media (max-width: 1023px) { .product { --sticky: 65px; } }
@media (max-width: 767px) { .product { --sticky: 57px; } }

/* Переход по якорю не прячется под шапку и вкладки */
html:has(.ptabs) { scroll-padding-top: 146px; }
@media (max-width: 1023px) { html:has(.ptabs) { scroll-padding-top: 138px; } }
@media (max-width: 767px) { html:has(.ptabs) { scroll-padding-top: 122px; } }

/* ---------- Заголовок и служебная строка ---------- */
.product__head { margin: 0 0 var(--space-24); }
.product__title { margin: 0 0 var(--space-12); font-size: 28px; font-weight: 500; line-height: 1.25; text-wrap: balance; }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-24); color: var(--ink-muted); font-size: 14px; line-height: 1.4; }
.product__rating { display: inline-flex; align-items: center; gap: 6px; }
.product__rating .icon { width: 16px; height: 16px; color: var(--primary); }
.product__rating:hover, .product__qa:hover { color: var(--primary-pressed); }
/* Рейтинг вверху: нажатие спускает к звёздам; если уже голосовали, рядом появляется сообщение */
.product__rating-wrap { position: relative; display: inline-flex; }
.product__rating--empty .icon { color: var(--hairline); transition: color var(--dur-fast) var(--ease); }
.product__rating--empty:hover .icon { color: var(--primary); }
.product__tools { display: flex; gap: var(--space-4); margin-left: auto; }
/* Код товара: нажатие копирует его в буфер, под ним на секунду появляется сообщение; при наведении код меняет цвет (без значков и подчёркивания) */
.product__sku-wrap { position: relative; display: inline-flex; }
.product__sku { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.product__sku b { color: var(--ink); font-weight: 600; transition: color var(--dur-fast) var(--ease); }
.product__sku:hover b, .product__sku:focus-visible b { color: var(--primary-pressed); }
.copytip,
.ratetip {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 35;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--inverse-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.copytip.is-shown, .ratetip.is-shown { opacity: 1; transform: none; }

.ptool {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.ptool .icon { width: 18px; height: 18px; transition: color var(--dur-fast) var(--ease); }
.ptool:hover { color: var(--primary-pressed); background: var(--surface-1); }
.ptool:active { transform: translateY(1px); }
.ptool:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
/* «В избранное» и «В сравнение» - ссылки с иконкой без рамки (как у «Все инструменты»); знак красится в цвет кнопки на карточке (с 3drops) */
.ptool[data-list-toggle="favorites"]:hover .icon, .ptool[data-list-toggle="favorites"].is-on .icon { color: var(--tool-fav); }
.ptool[data-list-toggle="compare"]:hover .icon, .ptool[data-list-toggle="compare"].is-on .icon { color: var(--tool-compare); }
.ptool.is-on { color: var(--ink); }

/* Цвета «в избранное» и «в сравнение» — как на карточке (с 3drops); окрашиваем знак и рамку, текст остаётся читаемым */
.ptool[data-list-toggle="favorites"]:hover, .ptool[data-list-toggle="favorites"].is-on { border-color: var(--tool-fav); }
.ptool[data-list-toggle="favorites"]:hover .icon, .ptool[data-list-toggle="favorites"].is-on .icon { color: var(--tool-fav); }
.ptool[data-list-toggle="compare"]:hover, .ptool[data-list-toggle="compare"].is-on { border-color: var(--tool-compare); }
.ptool[data-list-toggle="compare"]:hover .icon, .ptool[data-list-toggle="compare"].is-on .icon { color: var(--tool-compare); }
.ptool.is-on { color: var(--ink); }

/* ---------- Верхний блок: три колонки ---------- */
.product__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) clamp(320px, 25vw, 352px);
  grid-template-areas: "gallery info buycol";
  gap: var(--space-32) 28px;
  align-items: start;
}
.product__top > .gallery { grid-area: gallery; }
.product__top > .product__info { grid-area: info; }
.product__top > .buycol { grid-area: buycol; }

/* Галерея */
.gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.gallery--single { grid-template-columns: minmax(0, 1fr); }
/* Колонка миниатюр не выше самого фото: лишние прокручиваются внутри */
.gallery__thumbs { height: 0; min-height: 100%; margin: 0; padding: 0; overflow-y: auto; list-style: none; display: flex; flex-direction: column; gap: var(--space-8); scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs li { flex: none; }
.gallery__thumb {
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-btn);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.gallery__thumb:hover { border-color: var(--hairline); }
/* Выбранная миниатюра: тонкая рамка цвета бренда, как у плиток «Выберите мощность» (радиус тот же, заливки нет). Раньше к рамке добавлялась наружная тень,
   а колонка миниатюр обрезает всё, что выходит за её край, поэтому рамка с боков получалась неровной (04.10.2026) */
.gallery__thumb[aria-current="true"] { border-color: var(--primary); }
.gallery__stage { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--hairline-soft); border-radius: var(--radius-card); background: #fff; overflow: hidden; }
.gallery__zoom { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__zoom img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-24); }
.gallery__badges { position: absolute; top: var(--space-12); left: var(--space-12); z-index: 2; display: flex; flex-flow: row wrap; gap: 4px; pointer-events: none; }
.gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  translate: 0 -50%;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), background-color var(--dur-fast) var(--ease);
}
.gallery__nav--prev { left: var(--space-12); }
.gallery__nav--next { right: var(--space-12); }
.gallery__stage:hover .gallery__nav, .gallery__nav:focus-visible { opacity: 1; }
.gallery__nav:hover { background: var(--surface-1); }
@media (hover: none) { .gallery__nav { opacity: 0.92; } }

/* Характеристики: название с точечным лидером и значение в своей колонке */
.specs { margin: 0; padding: 0; }
.specs__row { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: var(--space-12); align-items: baseline; padding: 6px 0; }
.specs__name .tip { margin-left: 6px; }
.specs--full .specs__name { --tip-shift: -2.5px; }
.specs__row dt { display: flex; align-items: baseline; align-items: last baseline; gap: 6px; margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.4; }
.specs__row dt::after { content: ""; flex: 1 1 12px; min-width: 12px; height: 0; margin-bottom: 0.3em; border-bottom: 1px dotted var(--hairline); }
.specs__row dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
/* «Все характеристики»: ссылка-якорь на таблицу ниже по странице, без стрелки (стрелка вправо обещает переход на другую страницу; решение заказчика 02.10.2026). Узнаётся по цвету, жирности и подчёркиванию. */
.product__all { display: inline-block; margin-top: var(--space-8); color: var(--primary-pressed); font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur-fast) var(--ease); }
.product__all:hover { color: var(--primary-deep); text-decoration-color: currentColor; }

/* «Выберите мощность»: соседние модели серии плашками-ссылками (мощность и «до N м²»); название и цена всплывают при наведении.
   Стоит над списком характеристик, чтобы не прыгать между моделями серии (длина списка у моделей разная). */
.vars { margin-bottom: var(--space-24); }
.vars__title { margin: 0 0 10px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.vars__list { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.vars__list > li { display: flex; }
.vars__chip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; min-width: 92px; min-height: 52px; padding: 6px 14px 8px; border-radius: var(--radius-btn); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink); transition: box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.vars__val { font-size: 15px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vars__sub { color: var(--ink-subtle); font-size: 12.5px; line-height: 1.25; white-space: nowrap; }
a.vars__chip:hover { background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--ink-subtle); }
a.vars__chip:hover, a.vars__chip:focus-visible { z-index: 3; }
a.vars__chip:active { transform: translateY(1px); }
a.vars__chip:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--ink-subtle), var(--shadow-focus); }
.vars__chip[aria-current] { background: var(--primary-tint); box-shadow: inset 0 0 0 1px var(--primary); color: var(--primary-pressed); }
.vars__chip[aria-current] .vars__sub { color: var(--primary-pressed); }
.vars__chip[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--ink); color: var(--inverse-ink); font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.vars__list > li:last-child .vars__chip[data-tip]::after { left: auto; right: 0; transform: translate(0, 4px); }
.vars__chip[data-tip]:hover::after, .vars__chip[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.vars__list > li:last-child .vars__chip[data-tip]:hover::after, .vars__list > li:last-child .vars__chip[data-tip]:focus-visible::after { transform: translate(0, 0); }
@media (hover: none) { .vars__chip[data-tip]::after { display: none; } }
@media (max-width: 767px) {
    .vars__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
    .vars__list > li { display: block; }
    .vars__chip { height: 100%; }
    .vars__chip[data-tip]::after { display: none; }   /* на узком экране подсказка и не нужна (там нажимают), а её невидимый край растягивал страницу вбок */
}
@media (prefers-reduced-motion: reduce) {
    .vars__chip, .vars__chip[data-tip]::after { transition: none; }
    a.vars__chip:active { transform: none; }
}

/* Подсказка «?» */
.tip { display: inline-flex; flex: none; vertical-align: var(--tip-shift, -3px); }
.tip__btn { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-subtle); cursor: help; transition: color var(--dur-fast) var(--ease); }
.tip__btn .icon { width: 16px; height: 16px; }
.tip__btn:hover, .tip.is-open .tip__btn { color: var(--primary-pressed); }
.tip__pop {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: min(320px, 100%);
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-tooltip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  /* Гаснет с задержкой: пока мышь идёт от значка к окошку, оно не пропадает (мостик не нужен) */
  transition: opacity var(--dur-fast) var(--ease) 0.2s, transform var(--dur-fast) var(--ease) 0.2s, visibility 0s linear 0.32s;
}
.tip:hover .tip__pop, .tip:focus-within .tip__pop, .tip.is-open .tip__pop { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }

/* Колонка покупки: компактная карточка (цена, выгода, наличие, кнопки) и под ней лёгкий блок доставки без рамки. Липкая целиком. */
.buy { padding: 22px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--canvas); box-shadow: 0 14px 34px -20px rgba(24, 16, 8, 0.28); }
.buy__price { display: flex; flex-direction: column; gap: 6px; }
.buy__now { font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -0.3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.buy__old { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.buy__old s { color: var(--ink-subtle); font-size: 16px; font-weight: 500; text-decoration-thickness: 1px; }
.buy__save { color: var(--success); font-size: 14px; font-weight: 700; }
.buy__vat { color: var(--ink-subtle); font-size: 13px; }
.buy__stock { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.buy__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-subtle); }
.buy__stock--in { color: var(--success); }
.buy__stock--in::before { background: var(--success); }
.buy__stock--text::before { background: var(--status-away); }
.buy__stock--out { color: var(--error); }
.buy__stock--out::before { background: var(--error); }
.buy__actions { display: grid; gap: 10px; margin-top: var(--space-16); }
.buy__cart { display: block; margin: 0; }
.buy__cart .kerona-shiny { width: 100%; height: 52px; padding-block: 0; }
.buy__actions .pbtn { width: 100%; height: 48px; font-size: 15px; }
@keyframes buy-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .buycol { animation: buy-rise var(--dur-slow) var(--ease) 80ms both; }
}
@media (max-height: 700px) { .buycol { position: static; } }

.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 var(--space-24);
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  background: var(--surface-1);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.pbtn:hover { background: var(--surface-2); }
.pbtn:active { transform: translateY(1px); }
.pbtn--outline { height: 44px; border-color: var(--hairline); background: var(--canvas); font-size: 14px; font-weight: 700; }
.pbtn--outline:hover { background: var(--surface-1); }
.pbtn--off, .pbtn--off:hover { background: var(--surface-2); color: var(--ink-subtle); cursor: not-allowed; transform: none; }

/* Самовывоз и доставка: лёгкий блок под карточкой покупки, без рамки */
/* Левый и правый отступ 23 px = отступ внутри карточки покупки выше (22 px + линия 1 px): иконки «Самовывоз», «Доставка» и «Нужно оптом?» стоят в одну линию с ценой и кнопками */
.delivery { margin: 14px 0 0; padding: 0 23px; list-style: none; }
.delivery__row { border-bottom: 1px solid var(--hairline-soft); }
.delivery__row:last-child { border-bottom: 0; }
/* Обе строки ведут на «Доставка и оплата» (решение заказчика 02.10.2026). При наведении и с клавиатуры название становится оранжевым и подчёркивается, значок ярче, пояснение темнее: так понятно, что это ссылка. */
.delivery__link { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: var(--space-12); padding: var(--space-12) 0; color: inherit; text-decoration: none; border-radius: var(--radius-sm); }
.delivery__row:first-child .delivery__link { padding-top: 0; }
.delivery__row:last-child .delivery__link { padding-bottom: 0; }
.delivery__link:hover .delivery__title, .delivery__link:focus-visible .delivery__title { color: var(--primary-pressed); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
.delivery__link:hover .delivery__icon, .delivery__link:focus-visible .delivery__icon { color: var(--primary); }
.delivery__link:hover .delivery__sub, .delivery__link:focus-visible .delivery__sub { color: var(--ink); }
.delivery__link:active { transform: translateY(1px); }
.delivery__link:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.delivery__icon { width: 22px; height: 22px; margin-top: 1px; color: var(--primary-pressed); transition: color var(--dur-fast) var(--ease); }
.delivery__text { display: flex; flex-direction: column; gap: 2px; }
.delivery__title { font-size: 14px; font-weight: 600; line-height: 1.35; transition: color var(--dur-fast) var(--ease); }
.delivery__sub, .delivery__time { color: var(--ink-muted); font-size: 13px; font-weight: 400; line-height: 1.35; transition: color var(--dur-fast) var(--ease); }
.delivery__right { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 13px; font-weight: 700; line-height: 1.35; }
.delivery__right > span { white-space: nowrap; }
.delivery__free { color: var(--success); }

/* Плашка «Нужно оптом?» под доставкой в стиле «жидкое стекло» (03.10.2026, просьба заказчика; ведёт на страницу «Опт»).
   Это веб-приближение, а не настоящий Apple Liquid Glass: светлое полупрозрачное стекло (backdrop-filter), белый кант и блик по краям,
   тонкая оранжевая кромка (тени под плашкой нет: вместо неё «дыхание», решение заказчика 03.10). Цветных пятен за стеклом нет (заказчик: «два непонятных пятна сзади», убрала). Плашка и иконка медленно «плавают»
   вверх-вниз, как аватарка автора у статей (catalog.css, authors-float). Запасные варианты: без размытия, без прозрачности
   (prefers-reduced-transparency), без движения (prefers-reduced-motion). */
.wholesale {
  position: relative;
  margin: var(--space-16) 0 0;   /* по ширине карточки покупки выше */
  display: grid;
  /* Колонка иконки, зазор и размеры текста такие же, как у строк «Самовывоз» и «Доставка» выше (заказчик 03.10: иконка в «шайбе» выбивалась из ряда) */
  grid-template-columns: 22px minmax(0, 1fr) 14px;
  align-items: center;
  column-gap: var(--space-12);
  padding: 14px 23px;
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34) 55%, rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.65),
    inset 0 0 20px rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(178, 73, 38, 0.22);
  animation: wholesale-float 7s ease-in-out infinite;
  transition: box-shadow var(--dur) var(--ease);
}
/* Блик: яркое пятно света в левом верхнем углу и узкая полоса света, которая проходит по стеклу при наведении */
.wholesale::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 12% -10%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 52%),
    linear-gradient(100deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 60%);
  background-size: auto, 250% 100%;
  background-position: 0 0, 120% 0;
  transition: background-position 700ms var(--ease);
}
.wholesale:hover::before, .wholesale:focus-visible::before { background-position: 0 0, -20% 0; }
/* Дыхание (03.10.2026, просьба заказчика; как у блока «Подбор насоса» на 3drops.ru, только оранжевое): свечение вокруг плашки то слабее, то ярче,
   вдох и выдох 4 секунды. Отдельный слой, чтобы не спорить с тенью и наведением; при наведении дыхание продолжается, а плавание замирает. */
.wholesale::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 4px 0 rgba(237, 97, 51, 0.15);
  animation: wholesale-breathe 4s ease-in-out infinite;
}
@keyframes wholesale-breathe {
  0%, 100% { box-shadow: 0 0 4px 0 rgba(237, 97, 51, 0.15); }
  50% { box-shadow: 0 0 20px 0 rgba(237, 97, 51, 0.65); }
}
.wholesale__badge, .wholesale__text, .wholesale__arrow { position: relative; z-index: 1; }
.wholesale__badge {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--primary-pressed);
  animation: wholesale-icon 7s ease-in-out infinite;
  animation-delay: -2.4s;
}
.wholesale__badge .icon { width: 22px; height: 22px; }
.wholesale__text { display: flex; flex-direction: column; gap: 2px; }
.wholesale__title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.wholesale__sub { color: var(--ink-muted); font-size: 13px; line-height: 1.35; }
.wholesale__arrow { width: 14px; height: 14px; color: var(--ink-subtle); transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.wholesale:hover, .wholesale:focus-visible {
  animation-play-state: paused;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.7),
    inset 0 0 22px rgba(255, 255, 255, 0.75),
    0 0 0 1px rgba(178, 73, 38, 0.4);
}
.wholesale:hover .wholesale__badge, .wholesale:focus-visible .wholesale__badge { animation-play-state: paused; }
.wholesale:hover .wholesale__arrow, .wholesale:focus-visible .wholesale__arrow { color: var(--primary-pressed); transform: translateX(3px); }
.wholesale:active { scale: 0.985; }
.wholesale:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
@keyframes wholesale-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes wholesale-icon { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -2px; rotate: 3deg; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .wholesale { background: rgba(255, 250, 246, 0.94); } }
@media (prefers-reduced-transparency: reduce) { .wholesale { background: #fffaf6; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .wholesale, .wholesale__badge { animation: none; } .wholesale::after { animation: none; box-shadow: 0 0 14px 0 rgba(237, 97, 51, 0.4); } .wholesale, .wholesale::before, .wholesale__arrow { transition: none; } .wholesale:active { scale: none; } .wholesale:hover .wholesale__arrow, .wholesale:focus-visible .wholesale__arrow { transform: none; } }

/* ---------- Нижняя часть ---------- */
.product__lower { margin-top: var(--space-48); }
.ptabs {
  position: sticky;
  top: var(--sticky);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--space-24);
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--canvas);
}
.ptabs__list { display: flex; gap: var(--space-4); min-width: 0; margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.ptabs__list::-webkit-scrollbar { display: none; }
.ptabs__link { position: relative; display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 var(--space-16); color: var(--ink-muted); font-size: 14px; font-weight: 700; white-space: nowrap; transition: color var(--dur-fast) var(--ease); }
.ptabs__link::after { content: ""; position: absolute; left: var(--space-16); right: var(--space-16); bottom: -1px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform var(--dur) var(--ease); }
.ptabs__link:hover { color: var(--ink); }
.ptabs__link[aria-current="true"] { color: var(--ink); }
.ptabs__link[aria-current="true"]::after { transform: scaleX(1); }
.ptabs__count { color: var(--ink-subtle); font-weight: 500; font-variant-numeric: tabular-nums; }
.product__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-48); align-items: start; padding-top: var(--space-32); }
.product__side { position: relative; z-index: 31; display: grid; align-content: start; gap: var(--space-32); }
/* Правая колонка прилипает, только если она помещается в экран целиком (блоков много) */
@media (min-width: 1024px) and (min-height: 860px) { .product__side { position: sticky; top: calc(var(--sticky) + 52px + var(--space-24)); } }
.psection { margin: 0 0 var(--space-48); }
.psection--wide { margin-top: var(--space-48); }
.psection__title { margin: 0 0 var(--space-16); font-size: 24px; font-weight: 700; line-height: 1.3; }
.psection__n { color: var(--ink-subtle); font-weight: 500; }
/* «Статьи по теме» (03.10.2026): карточки статей, привязанных к товару или его разделу (админка → статья → «Показывать статью на страницах товаров») */
.particles__lead { margin: calc(var(--space-4) * -1) 0 var(--space-16); color: var(--ink-muted); line-height: 1.55; }
.particles__lead a { color: var(--primary-pressed); text-decoration: underline; text-underline-offset: 2px; }
.particles__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-16); margin: 0; padding: 0; list-style: none; }
.particle { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface-0, #fff); color: var(--ink); transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.particle .article-image-frame { display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--surface-1); }
.particle__img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.particle__body { display: flex; flex: 1; flex-direction: column; gap: var(--space-4); padding: var(--space-12) var(--space-16) var(--space-16); }
.particle__title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.particle__date { margin-top: auto; padding-top: var(--space-4); color: var(--ink-subtle); font-size: 13px; }
.particle:hover { border-color: color-mix(in srgb, var(--ink) 22%, var(--surface-1)); transform: translateY(-2px); }
.particle:hover .particle__title { color: var(--primary-pressed); }
.particles__all { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-8); color: var(--primary-pressed); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1280px) { .particles__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .particles__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .particle { flex-direction: row; }
  .particle .article-image-frame { width: 112px; height: 112px; aspect-ratio: 1 / 1; flex: none; align-self: flex-start; }
  .particle__body { justify-content: center; padding: var(--space-12); }
}
@media (prefers-reduced-motion: reduce) { .particle { transition: none; } .particle:hover { transform: none; } }
.specs-group__title { margin: var(--space-24) 0 var(--space-4); font-size: 15px; font-weight: 700; letter-spacing: 0.2px; color: var(--primary-pressed); }
.specs--full { max-width: 820px; }
.specs--full .specs__row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 7px 0; }
.specs--full .specs__row dt, .specs--full .specs__row dd { font-size: 15px; }

/* Описание занимает всю колонку, как на референсе (решение заказчика). Чтобы длинная строка читалась: 17 px, межстрочный 1.7,
   выравнивание по ширине с автоматическими переносами. */
.prose { max-width: none; font-size: 17px; line-height: 1.7; text-align: justify; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
/* Предупреждение в описании: <blockquote><p><strong>Заголовок.</strong> Текст</p></blockquote>. Светлая янтарная плашка с восклицательным знаком слева;
   текст по левому краю (не «по ширине»), чтобы короткий абзац читался ровно. Значок: залитый треугольник с «!» (Phosphor Fill «warning», MIT; выбор заказчика 02.10.2026, вариант В), рисуется маской и красится в --warning, «!» вырезан и показывает фон плашки. */
.prose blockquote { position: relative; margin: 0 0 1.2em; padding: 14px 18px 14px 58px; border: 1px solid var(--warning-line); border-radius: var(--radius-tile); background: var(--warning-tint); color: var(--ink); text-align: left; hyphens: manual; -webkit-hyphens: manual; }
.prose blockquote::before { content: ""; position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; background: var(--warning); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M236.8%2C188.09%2C149.35%2C36.22h0a24.76%2C24.76%2C0%2C0%2C0-42.7%2C0L19.2%2C188.09a23.51%2C23.51%2C0%2C0%2C0%2C0%2C23.72A24.35%2C24.35%2C0%2C0%2C0%2C40.55%2C224h174.9a24.35%2C24.35%2C0%2C0%2C0%2C21.33-12.19A23.51%2C23.51%2C0%2C0%2C0%2C236.8%2C188.09ZM120%2C104a8%2C8%2C0%2C0%2C1%2C16%2C0v40a8%2C8%2C0%2C0%2C1-16%2C0Zm8%2C88a12%2C12%2C0%2C1%2C1%2C12-12A12%2C12%2C0%2C0%2C1%2C128%2C192Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M236.8%2C188.09%2C149.35%2C36.22h0a24.76%2C24.76%2C0%2C0%2C0-42.7%2C0L19.2%2C188.09a23.51%2C23.51%2C0%2C0%2C0%2C0%2C23.72A24.35%2C24.35%2C0%2C0%2C0%2C40.55%2C224h174.9a24.35%2C24.35%2C0%2C0%2C0%2C21.33-12.19A23.51%2C23.51%2C0%2C0%2C0%2C236.8%2C188.09ZM120%2C104a8%2C8%2C0%2C0%2C1%2C16%2C0v40a8%2C8%2C0%2C0%2C1-16%2C0Zm8%2C88a12%2C12%2C0%2C1%2C1%2C12-12A12%2C12%2C0%2C0%2C1%2C128%2C192Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.prose blockquote p { margin: 0; }
.prose blockquote strong { color: var(--warning); }
@media (max-width: 767px) { .prose blockquote { padding: 12px 14px 12px 50px; } .prose blockquote::before { left: 12px; top: 12px; width: 26px; height: 26px; } }
.prose h3, .prose h4 { margin: 1.4em 0 0.5em; line-height: 1.3; }
/* «Частые вопросы» в описании: вопрос отдельной строкой, ответ ниже, пары разделены тонкой линией (без раскрывающихся строк: текст виден сразу) */
.prose h4 { margin: 0; padding-top: 14px; border-top: 1px solid var(--hairline); font-size: 1em; font-weight: 600; line-height: 1.4; }
.prose h3 + h4 { border-top: 0; padding-top: 0; }
.prose h4 + p { margin: 6px 0 14px; }
/* Раскрывающиеся вопросы (скрипт product.js превращает пары «вопрос + ответ» в строки). Раскрытие: высота через 0fr -> 1fr (без прыжков),
   плюс поворачивается в крестик, текст проявляется чуть позже. Архетип Corporate: 280 мс, кривая сайта; под «меньше анимации» мгновенно */
.faq { margin: 0 0 1em; }
.faq__item { border-top: 1px solid var(--hairline); }
.faq__item:last-child { border-bottom: 1px solid var(--hairline); }
.prose h4.faq__q { margin: 0; padding: 0; border: 0; }
.faq__btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 52px; padding: 10px 0; border: 0; border-radius: 4px; background: none; color: var(--ink); font: inherit; font-weight: 600; line-height: 1.4; text-align: left; cursor: pointer; }
.faq__btn:hover { color: var(--primary-pressed); }
.faq__btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.faq__icon::before { left: 0; right: 0; top: 6.25px; height: 1.5px; }
.faq__icon::after { top: 0; bottom: 0; left: 6.25px; width: 1.5px; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { min-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease-exit), visibility 0s linear var(--dur-slow); }
.faq__item.is-open .faq__a-inner { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease) 60ms, visibility 0s; }
.faq__a-inner p { margin: 0 0 16px; }
@media (prefers-reduced-motion: reduce) { .faq__icon, .faq__a, .faq__a-inner, .faq__item.is-open .faq__a-inner { transition: none; } }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose a { color: var(--primary-pressed); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--hairline); text-align: left; }

/* Преимущества модели: точки цвета бренда, как на референсе */
.advlist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.advlist li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; }
.advlist li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.warranty { margin: 0; }
.warranty__text { display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 1.35; }
.warranty__text strong { font-size: 15px; font-weight: 700; }
.warranty__text span { color: var(--ink-muted); }

/* Плашка «Нашли ошибку…» под характеристиками, как на ВсеИнструментах: серая, со значком-рупором */
.report-row { margin: calc(var(--space-24) * -1) 0 var(--space-48); }
.reportbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 20px 0 16px; border: 0; border-radius: var(--radius-md); background: var(--surface-1); color: var(--ink-muted); font: inherit; font-size: 14px; line-height: 1.3; text-align: left; cursor: pointer; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.reportbtn .icon { width: 20px; height: 20px; color: var(--ink-subtle); }
.reportbtn:hover { background: var(--surface-2); color: var(--ink); }

/* Бренд и документы */
.brandcard { padding: var(--space-16) 20px 20px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--canvas); }
.brandcard__tip { position: relative; display: block; margin: 0 0 var(--space-16); }
/* Подсказка «Официальный дистрибьютор» выезжает НАД плашкой (решение заказчика): мостик для мыши и сдвиг зеркальны */
.brandcard__tip .tip__pop { left: 0; right: 0; width: auto; top: auto; bottom: calc(100% + 6px); transform: translateY(4px); }
.brandcard__official {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  color: var(--primary-pressed);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: help;
  transition: background-color var(--dur-fast) var(--ease);
}
.brandcard__official .icon { width: 18px; height: 18px; }
.brandcard__official:hover, .brandcard__tip.is-open .brandcard__official { background: color-mix(in srgb, var(--primary-tint), var(--primary) 12%); }
.brandcard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); }
.brandcard__name { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.brandcard__link { color: var(--ink-muted); font-size: 14px; }
.brandcard__top { position: relative; }
.brandcard__name { --tip-shift: -1.5px; }
.brandcard__name .tip { margin-left: 6px; }
.brandcard__link:hover { color: var(--primary-pressed); }
.brandcard__logo { flex: none; width: auto; max-width: 110px; height: 26px; object-fit: contain; }
.origin { display: grid; gap: 10px; margin: var(--space-16) 0 0; padding: 0; list-style: none; }
/* Строка страны всегда в одну линию (решение заказчика); очень длинное название обрезается многоточием, полный текст в подсказке */
.origin li { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.35; }
.origin li > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag { flex: none; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(24, 16, 8, 0.14); object-fit: cover; }
.flag--none { background: var(--surface-1); }
/* Блоки справа под брендом: без рамок, как на референсе (заголовок и строки) */
.side-block { padding: 0 var(--space-4); }
.side-block__title { position: relative; margin: 0 0 var(--space-12); font-size: 18px; font-weight: 700; line-height: 1.3; }
/* Знак «?» стоит сразу за последним словом заголовка, даже когда он переносится на вторую строку */
.side-block__title { --tip-shift: -1.5px; }
.side-block__title .tip { margin-left: 6px; }
.nobreak { white-space: nowrap; }
.side-block__empty { margin: 0; color: var(--ink-subtle); font-size: 14px; line-height: 1.45; }
.pack { display: grid; gap: 6px; margin: 0; }
.pack__row { display: flex; gap: 6px; font-size: 14px; line-height: 1.45; }
.pack dt { margin: 0; color: var(--ink-muted); }
.pack dt::after { content: ":"; }
.pack dd { margin: 0; color: var(--ink); font-weight: 600; }
.doclist { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.doclink { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; padding: 4px 0; font-size: 14px; line-height: 1.4; }
.doclink .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--ink-subtle); transition: color var(--dur-fast) var(--ease); }
/* Значок по смыслу (файл PDF, ссылка наружу), под названием мелкая подпись («PDF, 3,8 МБ», «Реестр ФСА, откроется в новой вкладке»); при наведении название оранжевое и подчёркнуто (решение заказчика 02.10.2026) */
.doclink__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.doclink__title { transition: color var(--dur-fast) var(--ease); }
.doclink__meta { color: var(--ink-subtle); font-size: 12.5px; line-height: 1.35; }
a.doclink:hover .doclink__title, a.doclink:focus-visible .doclink__title { color: var(--primary-pressed); text-decoration: underline; text-underline-offset: 3px; }
a.doclink:hover .icon, a.doclink:focus-visible .icon { color: var(--primary-pressed); }
a.doclink:focus-visible { outline: none; border-radius: var(--radius-sm); box-shadow: var(--shadow-focus); }

/* Отзывы и вопросы */
.rating-summary { display: flex; align-items: center; gap: var(--space-12); margin: 0 0 var(--space-24); }
.rating-summary__value { font-size: 40px; font-weight: 700; line-height: 1; }
.rating-summary__count { color: var(--ink-muted); font-size: 14px; }
.stars { display: inline-flex; gap: 2px; }
.stars__star { width: 18px; height: 18px; color: var(--hairline); }
.stars__star.is-on { color: var(--primary); }
.stars--sm .stars__star { width: 14px; height: 14px; }
.review { padding: var(--space-16) 0; border-bottom: 1px solid var(--hairline-soft); }
.review:first-of-type { padding-top: 0; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-12); margin-bottom: 6px; }
.review__author { font-size: 15px; }
.review__date { color: var(--ink-subtle); font-size: 13px; }
.review__text { margin: 0; max-width: 78ch; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.review__answer { margin-top: var(--space-12); padding: var(--space-12) var(--space-16); border-left: 3px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-1); font-size: 14px; }
.review__answer p { margin: 4px 0 0; line-height: 1.55; }
.pempty { margin: 0 0 var(--space-16); color: var(--ink-muted); }

.pform-toggle { margin-top: var(--space-16); }
.pform-toggle > summary { display: inline-flex; list-style: none; }
.pform-toggle > summary::-webkit-details-marker { display: none; }
.pform { display: grid; gap: var(--space-16); max-width: 560px; margin-top: var(--space-16); }
.pnote { margin: var(--space-16) 0 0; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.5; }
.pnote--ok { background: #e6f4ea; color: #145c33; }
.pnote--err { margin: 0; background: #fbe9ee; color: var(--error); }

/* Оценка одним нажатием звёзд, без имени и отзыва */
.ratebox { margin: 0 0 var(--space-24); padding: var(--space-16) 20px; border: 1px solid var(--hairline); border-radius: var(--radius-tile); }
.ratebox__form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12) 20px; margin: 0; }
.ratebox__title { margin: 0; font-size: 15px; font-weight: 700; }
.ratebox .rate label { width: 40px; height: 40px; }
.ratebox .rate label .icon { width: 30px; height: 30px; }
.ratebox__btn { min-height: 44px; transition: none; }
.ratebox__msg { flex-basis: 100%; margin: 0; color: var(--error); font-size: 14px; }
.ratebox__msg:empty { display: none; }
.ratebox__done { margin: 0; font-size: 15px; line-height: 1.5; }

/* Кнопки-действия на странице: текст на оранжевом белый (тёмный не читался, замечание заказчика 30.09) */
.product .btn.primary:not(:disabled) { color: var(--on-primary-large); }

/* Выбор оценки звёздами */
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; position: relative; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { display: grid; place-items: center; width: 36px; height: 36px; color: var(--hairline); cursor: pointer; transition: color var(--dur-fast) var(--ease); }
.rate label .icon { width: 26px; height: 26px; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--primary); }
.rate input:focus-visible + label { box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* ---------- Липкая панель покупки на телефоне ---------- */
.pbar { display: none; }

/* ---------- Окна ---------- */
.zoom { padding: 0; border: 0; color: var(--ink); }
.zoom::backdrop { background: rgba(24, 16, 8, 0.88); }

.zoom { width: 100vw; max-width: none; height: 100dvh; max-height: none; background: transparent; }
.zoom[open] { display: grid; place-items: center; }
/* Рамка по размеру фото: кнопки «закрыть» и стрелки лежат на фото, а не прижаты к краям экрана (на 2K-мониторе они раньше разъезжались) */
.zoom__stage { position: relative; }
.zoom__img { display: block; max-width: min(92vw, 1400px); max-height: 88dvh; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-tile); background: #fff; }
/* Кнопки окна фото такие же, как стрелки в галерее карточки (.gallery__nav): светлый круг с тонкой рамкой, тёмный значок, при наведении фон меняется (04.10.2026, по просьбе заказчика) */
.zoom__close, .zoom__nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--hairline); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background-color var(--dur-fast) var(--ease); }
.zoom__close:hover, .zoom__nav:hover { background: var(--surface-1); }
.zoom__close:focus-visible, .zoom__nav:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.zoom__close { top: var(--space-16); right: var(--space-16); }
.zoom__nav { top: 50%; translate: 0 -50%; }
.zoom__nav--prev { left: var(--space-16); }
.zoom__nav--next { right: var(--space-16); }
/* Счётчик «2 / 2» под фото, на тёмном фоне окна */
.zoom__count { position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Адаптив ---------- */
/* Ноутбуки и планшеты: две колонки - слева фото, справа покупка и доставка над ключевыми характеристиками */
@media (max-width: 1279px) {
  .product__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "gallery buycol" "gallery info"; }
  .product__body { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-32); }
}

/* Планшет: две колонки остаются, миниатюры уходят лентой под фото (в узкой колонке боковая лента съела бы место) */
@media (max-width: 1023px) {
  .product__title { font-size: 24px; }
  .product__body { grid-template-columns: minmax(0, 1fr); }
  .product__side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery__stage { order: 1; }
  .gallery__thumbs { order: 2; height: auto; min-height: 0; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
  .buy__now { font-size: 30px; }
}

/* Телефон */
@media (max-width: 767px) {
  .product__head { margin-bottom: var(--space-16); }
  .product__title { font-size: 20px; }
  .product__tools { margin-left: 0; width: 100%; }
  .ptool { min-height: 44px; }
  .product__sku { padding: 10px 0; }
  .product__top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "buycol" "info"; gap: var(--space-24); }
  .buycol { position: static; }
  .gallery__zoom img { padding: var(--space-12); }
  /* Телефон: название характеристики занимает почти всю строку, значение сдвинуто вправо (владелец 04.10.2026: «Макс. расход топлива» не должно переноситься) */
  .specs__row, .specs--full .specs__row { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); column-gap: var(--space-8); }
  .buy__actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .buy__cart .kerona-shiny, .buy__actions .pbtn { width: 100%; min-height: 52px; }
  .buy__cart .kerona-shiny .label { justify-content: center; }
  .ptabs { margin-inline: calc(var(--gutter) * -1); }
  .ptabs__link { padding: 0 var(--space-12); }
  .ptabs__link::after { left: var(--space-12); right: var(--space-12); }
  .product__lower { margin-top: var(--space-32); }
  .product__body { padding-top: var(--space-24); gap: var(--space-24); }
  .product__side { grid-template-columns: minmax(0, 1fr); }
  .psection { margin-bottom: var(--space-32); }
  .psection__title { font-size: 20px; }
  .prose { font-size: 16px; text-align: left; }
  .specs--full .specs__row dt, .specs--full .specs__row dd { font-size: 14px; }
  .pbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(57px + env(safe-area-inset-bottom));
    z-index: 44;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    padding: 10px var(--gutter);
    border-top: 1px solid var(--hairline);
    background: var(--canvas);
    visibility: hidden;
    transform: translateY(calc(100% + 60px));
    transition: transform var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow);
  }
  .product.is-buy-hidden .pbar { visibility: visible; transform: none; transition-delay: 0s; }
  .pbar__price { display: flex; flex-direction: column; line-height: 1.2; }
  .pbar__price strong { font-size: 20px; font-weight: 700; white-space: nowrap; }
  .pbar__price span { color: var(--ink-subtle); font-size: 12px; }
  .pbar__form { margin: 0; }
  .pbar .kerona-shiny { min-height: 44px; padding-inline: 24px; }
  .zoom__nav { width: 44px; height: 44px; }
  /* Чат и «наверх» поднимаются над панелью покупки, пока она на экране */
  html.has-pbar .chat-launcher { bottom: calc(68px + 64px + env(safe-area-inset-bottom)) !important; }
  html.has-pbar .scroll-top { bottom: calc(68px + 64px + env(safe-area-inset-bottom) + 12px); }
}

@media (prefers-reduced-motion: reduce) {
  .pbar, .ptabs__link::after { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .delivery__icon, .delivery__title, .delivery__sub, .delivery__time { transition: none; } .delivery__link:active { transform: none; } }

/* Окна «Самовывоз» и «Доставка» на карточке товара (решение заказчика 02.10.2026): то же окно, что у «Быстрого заказа»; на телефоне выезжает снизу */
.dpop { width: min(480px, calc(100vw - 32px)); overflow: auto; }
.dpop__inner { position: relative; padding: var(--space-24); }
.dpop__close { position: absolute; top: 12px; right: 12px; margin: 0; }
.dpop__body { display: grid; gap: var(--space-12); min-height: 140px; font-size: 15px; line-height: 1.55; }
.dpop__body h2 { margin: 0 48px 0 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
.dpop__body h3 { margin: var(--space-8) 0 -4px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.dpop__body p, .dpop__body ul { margin: 0; }
.dpop__body ul { display: grid; gap: 6px; padding-left: 1.2em; }
.dpop__body a { color: var(--primary-pressed); text-decoration: underline; text-underline-offset: 3px; }
.dpop__body a:hover { color: var(--primary-deep); }
.dpop__muted { color: var(--ink-subtle); font-size: 13px; }
.dpop__more { margin-top: var(--space-4); padding-top: var(--space-12); border-top: 1px solid var(--hairline); font-weight: 600; }
.dpop__skeleton { display: grid; gap: 12px; }
.dpop__skeleton i { display: block; height: 16px; border-radius: 4px; background: linear-gradient(100deg, var(--surface-1) 30%, #fff 50%, var(--surface-1) 70%) 0 0 / 200% 100%; animation: dpop-shimmer 1.2s linear infinite; }
.dpop__skeleton i:first-child { width: 55%; height: 26px; }
.dpop__skeleton i:last-child { width: 80%; }
@keyframes dpop-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes dpop-sheet { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 599px) {
  .dpop { width: 100vw; max-width: 100vw; max-height: 90dvh; margin: auto 0 0; border-radius: var(--radius-modal) var(--radius-modal) 0 0; }
  .dpop[open] { animation: dpop-sheet var(--dur-slow) var(--ease); }
}
@media (prefers-reduced-motion: reduce) { .dpop[open] { animation: none; } .dpop__skeleton i { animation: none; } }

/* ---------- Сопутствующие товары (02.10.2026): карусель компактных карточек под карточкой покупки ----------
   Карточки меньше обычных (6 в ряд на широком экране против 5 в каталоге; без плашек, значков и характеристик), чтобы не спорить за внимание
   с самим товаром. Когда помещается всё, стрелок нет; когда нет, на экране с мышью появляются стрелки, на телефоне листают пальцем (виден край следующей карточки). */
.related { margin-top: var(--space-32); }
.related__title { margin: 0 0 var(--space-16); font-size: 22px; font-weight: 700; line-height: 1.3; }
.related__frame { --per: 6; --gap: 12px; --pad: 6px; position: relative; }
/* Поля вокруг ряда оставляют место тени карточки при наведении (иначе её обрежет прокрутка), отрицательные поля возвращают край на место */
.related__track {
  display: flex;
  gap: var(--gap);
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) -22px;
  padding: var(--pad) var(--pad) 22px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.related__track::-webkit-scrollbar { display: none; }
.related__item { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; scroll-snap-align: start; }

.rcard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: var(--space-12);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--canvas);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.rcard__photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-tile); background: var(--canvas); }
.rcard__photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.rcard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-8); margin-top: var(--space-12); }
.rcard__now { font-size: 18px; font-weight: 700; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rcard__old { color: var(--ink-subtle); font-size: 13px; line-height: 1.25; white-space: nowrap; }
.rcard__vat { color: var(--ink-subtle); }
.rcard__title { display: -webkit-box; margin: var(--space-4) 0 0; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
/* Вся карточка одна ссылка, кнопка «В корзину» лежит выше неё */
.rcard__link { color: var(--ink); }
.rcard__link::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.rcard__link:focus-visible { outline: none; }
.rcard:has(.rcard__link:focus-visible) { box-shadow: var(--shadow-focus); }
.rcard__rating { display: flex; align-items: center; gap: 4px; margin-top: var(--space-4); color: var(--ink-muted); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rcard__star { width: 13px; height: 13px; color: var(--primary); }
.rcard__votes { color: var(--ink-subtle); font-weight: 500; }
.rcard__form { position: relative; z-index: 2; margin: auto 0 0; padding-top: var(--space-12); }
.rcard__form .kerona-shiny { width: 100%; }
.rcard__out { margin: auto 0 0; padding-top: var(--space-12); }
.rcard__out span { display: block; padding: 10px 12px; border-radius: var(--radius-btn); background: var(--surface-1); color: var(--ink-muted); font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .rcard:hover { box-shadow: 0 6px 16px rgba(24, 16, 8, 0.1); }
}

/* Стрелки листания: круглые, белые, по центру фото первой строки */
.related__arrow {
  position: absolute;
  top: 100px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  box-shadow: var(--shadow-tooltip);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity var(--dur) var(--ease), transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.related__arrow[hidden] { display: none; }
.related__arrow--prev { left: -14px; }
.related__arrow--next { right: -14px; }
.related__arrow .icon { width: 18px; height: 18px; }
.related__arrow:hover { border-color: var(--ink-subtle); }
.related__arrow:active { transform: translateY(-50%) scale(0.94); }
.related__arrow:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.related__arrow:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 1279px) { .related__frame { --per: 5; } }
@media (max-width: 1023px) { .related__frame { --per: 4; } .related__arrow--prev { left: -8px; } .related__arrow--next { right: -8px; } }
@media (max-width: 767px) {
  .related { margin-top: var(--space-24); }
  .related__title { font-size: 20px; }
  .related__frame { --per: 3; --gap: 10px; }
  .related__arrow { display: none; }
  .rcard { padding: 10px; }
  .rcard__now { font-size: 17px; }
}
/* Телефон: ровно две карточки «Сопутствующих товаров» на ширину экрана (владелец 04.10.2026) */
@media (max-width: 559px) { .related__frame { --per: 2; } }

/* Строка «Бренд» в характеристиках: название бренда ссылкой на его каталог (/brand/…). Без подчёркивания, цвета бренда (владелец 02.10.2026: «рыженький, как при наведении») */
.specs__link { color: var(--primary-pressed); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.specs__link:hover { color: var(--primary-deep); }
.specs__link:focus-visible { outline: none; border-radius: 2px; box-shadow: var(--shadow-focus); }
