/* ================================================================
   Product Detail — Clean Editorial Design
   Inspired by Apple.com and Bang & Olufsen product pages.
   Minimal, light-first, typography-driven.
   Light/dark via [data-theme="dark"] on <html>.
   ================================================================ */

/* ----------------------------------------------------------------
   DESIGN TOKENS — Light (default)
   ---------------------------------------------------------------- */
.pd-page {
  /* Светлая тема: общие токены + специфика страницы товара */
  --pd-bg:          var(--bg-primary);
  --pd-bg-alt:      #ebebed;
  --pd-bg-panel:    var(--bg-secondary);
  --pd-surface:     var(--bg-secondary);
  /* Светлая тема: PD-алиасы к HL-токенам (ритм главной / каталога) */
  --pd-text:        var(--hl-text);
  --pd-muted:       var(--hl-muted);
  --pd-border:      var(--hl-border);
  --pd-accent:      #111;
  --pd-gold:        #111;
  --pd-fill:        var(--text-heading);
  --pd-fill-text:   #ffffff;
  --pd-fill-hover:  var(--text-primary);
  --pd-serif:       'IBM Plex Sans', system-ui, sans-serif;
  --pd-sans:        var(--font-sans);
  --pd-section-py:  clamp(var(--hl-section-y-sm), 8vw, var(--hl-section-y));
  --pd-max:         1280px;
  --pd-ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --pd-ease-out:    cubic-bezier(0.33, 1, 0.68, 1);
  --pd-transition:  0.28s;
  --pd-subtle:      rgba(0, 0, 0, 0.35);
  --pd-toolbar-active-hover: #d0d0d0;
  /* sticky actions bar (.pd-actions) */
  --pd-bar-bg:      rgba(255, 255, 255, 0.72);
  --pd-bar-border:  rgba(0, 0, 0, 0.08);
}

/* Тёмная тема — страница товара / модификации (план №19) */
[data-theme="dark"] .pd-page {
  --pd-bg:          #1a1a1a;
  --pd-bg-alt:      #252528;
  --pd-bg-panel:    #2a2a2a;
  --pd-surface:     #2a2a2a;
  /* Текст/бордеры — через HL-токены тёмной темы (:root[data-theme="dark"] в _tokens.css) */
  --pd-text:        var(--hl-text);
  --pd-muted:       var(--hl-muted);
  --pd-subtle:      rgba(255, 255, 255, 0.35);
  --pd-border:      var(--hl-border);
  --pd-accent:      #e85a6e;
  --pd-gold:        #111;
  --pd-fill:        #f0f0f2;
  --pd-fill-text:   #1a1a1a;
  --pd-fill-hover:  #ffffff;
  --pd-toolbar-active-hover: #3d3d42;
  --pd-bar-bg:      rgba(42, 42, 42, 0.88);
  --pd-bar-border:  var(--hl-border);
}

[data-theme="dark"] .pd-hero__breadcrumbs {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ----------------------------------------------------------------
   KEYFRAMES
   ---------------------------------------------------------------- */
@keyframes pd-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pd-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pd-scroll-pulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.15; }
}

/* Та же пульсация без translateX — для flex-центрирования (видео-hero) */
@keyframes pd-scroll-pulse-y {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(8px); opacity: 0.15; }
}

/* Premium wow: shimmer по изображению */
@keyframes pd-shine {
  0%   { transform: translateX(-100%) skewX(-12deg); opacity: 0; }
  20%  { opacity: 0.4; }
  100% { transform: translateX(200%) skewX(-12deg); opacity: 0; }
}

/* Hero: плавное появление изображения с лёгким zoom */
@keyframes pd-hero-scale-in {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 1; transform: scale(1); }
}

/* Лёгкое свечение для CTA */
@keyframes pd-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0); }
}

/* Линия-разделитель с градиентом */
@keyframes pd-line-reveal {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Лёгкое «дыхание» для цены/акцента (вау #7) */
@keyframes pd-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.92; transform: scale(1.02); }
}

/* ----------------------------------------------------------------
   LAYOUT UTILITIES
   ---------------------------------------------------------------- */
.pd-inner {
  max-width: var(--pd-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* Section scroll-reveal */
.pd-section {
  padding: var(--pd-section-py) 0;
}

.pd-section.visible {
  /* Сохраняем класс для совместимости, но без обязательного скрытия */
}

/* Section labels & titles */
.pd-section__label {
  display: block;
  font-family: var(--pd-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-block-end: 1.25rem;
}

.pd-section__title {
  font-family: var(--pd-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--pd-text);
  margin-block-end: 2rem;
}

/* Thin gold decorative rule */
.pd-brass-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--pd-gold);
  margin-block: 1.5rem;
}

/* Text reveal (used in story heading) */
.pd-reveal-text {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--pd-ease), transform 0.65s var(--pd-ease);
}

.pd-reveal-text.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--pd-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background 0.18s var(--pd-ease),
    color 0.18s var(--pd-ease),
    border-color 0.18s var(--pd-ease),
    transform 0.15s var(--pd-ease);
  white-space: nowrap;
}

.pd-btn--primary {
  background: var(--pd-fill);
  color: var(--pd-fill-text);
  border-color: var(--pd-fill);
}

.pd-btn--primary:hover {
  background: var(--pd-fill-hover);
  border-color: var(--pd-fill-hover);
  transform: translateY(-1px);
}

/* Премиум: лёгкое свечение кнопки CTA на странице товара */
.pd-page--presentation .pd-btn--primary:hover {
  box-shadow: 0 6px 24px rgba(13, 13, 13, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.pd-btn--primary:active {
  transform: translateY(0);
}

.pd-btn--outline {
  background: transparent;
  color: var(--pd-text);
  border-color: var(--pd-border);
}

.pd-btn--outline:hover {
  border-color: var(--pd-text);
}

.pd-btn--outline:active {
  transform: translateY(0);
}

.pd-btn--lg {
  padding: 0.9375rem 2.25rem;
  font-size: 0.9375rem;
}

/* Явная CTA «Модификации» — заметнее обычной primary */
.pd-btn__icon {
  flex-shrink: 0;
}

.pd-btn--mods {
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(13, 13, 13, 0.2);
}

.pd-page--presentation .pd-btn--mods {
  animation: pd-mods-attn 3s ease-in-out 1.2s infinite;
}

.pd-page--presentation .pd-btn--mods:hover {
  box-shadow:
    0 10px 32px rgba(13, 13, 13, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

@keyframes pd-mods-attn {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(13, 13, 13, 0.2);
  }
  50% {
    box-shadow:
      0 6px 28px rgba(13, 13, 13, 0.28),
      0 0 0 3px rgba(200, 16, 46, 0.14);
  }
}

.pd-hero__cta--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.pd-pole__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Главный CTA в hero: пульс только у «Модификации», не у другой primary */
.pd-page--presentation .pd-hero .pd-btn--primary:not(.pd-btn--mods) {
  animation: pd-glow-pulse 2.5s ease-in-out 2s infinite;
}

.pd-page--presentation .pd-hero .pd-btn--primary.pd-btn--mods {
  animation: pd-mods-attn 3s ease-in-out 1.2s infinite;
}

/* Inverted button (for dark CTA section) */
.pd-btn--inv {
  background: #fff;
  color: #0d0d0d;
  border-color: #fff;
}

.pd-btn--inv:hover {
  background: rgba(255, 255, 255, 0.88);
}

/* ----------------------------------------------------------------
   SKIP LINK
   ---------------------------------------------------------------- */
.pd-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--pd-fill);
  color: var(--pd-fill-text);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0 0 6px 0;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}

.pd-skip-link:focus { top: 0; }

/* ----------------------------------------------------------------
   HERO — Split layout: text left · image right
   ---------------------------------------------------------------- */
.pd-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: max(640px, 100svh);
}

/* Left: text */
.pd-hero__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    clamp(5rem, 8vw, 7rem)
    clamp(1.5rem, 5vw, 4rem)
    clamp(3rem, 6vw, 5rem);
  background: var(--pd-bg);
}

/* Breadcrumbs — унифицированы с эталоном Catalog */
.pd-hero__breadcrumbs {
  position: absolute;
  top: clamp(4.5rem, 6vw, 5.5rem);
  left: clamp(1.5rem, 5vw, 4rem);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 0.9375rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  animation: pd-fade-up 0.6s 0.05s var(--pd-ease) both;
}

.pd-hero__breadcrumbs a {
  color: var(--pd-text);
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 500;
}

.pd-hero__breadcrumbs a:hover {
  color: var(--accent-hover);
}

.pd-hero__breadcrumbs a.hl-link {
  color: var(--hl-text);
  font-weight: 600;
  border-bottom-color: var(--hl-text);
}

.pd-hero__breadcrumbs a.hl-link:hover {
  color: var(--hl-text);
  opacity: 0.7;
}

.pd-hero__breadcrumbs .bc-sep {
  color: var(--text-primary);
  margin-inline: 0.5rem;
  font-weight: 300;
  user-select: none;
}

.pd-hero__breadcrumbs .bc-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Video hero: крошки поверх тёмного видео — светлый текст */
.pd-hero__breadcrumbs--video {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.pd-hero__breadcrumbs--video a.hl-link {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}
.pd-hero__breadcrumbs--video a.hl-link:hover {
  color: #fff;
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.8);
}
.pd-hero__breadcrumbs--video .bc-sep {
  color: rgba(255, 255, 255, 0.4);
}
.pd-hero__breadcrumbs--video .bc-current {
  color: rgba(255, 255, 255, 0.55);
}

.pd-hero__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-block-end: 1.25rem;
  animation: pd-fade-up 0.6s 0.1s var(--pd-ease) both;
}

/* Страница модификации: длинный путь крошек — absolute + vertical center даёт наложение на метку/h1 */
.pd-hero--modification-detail .pd-hero__breadcrumbs {
  position: static;
  top: auto;
  left: auto;
  align-self: flex-start;
  max-width: 100%;
  margin-block-end: 1.5rem;
  row-gap: 0.35rem;
  align-content: flex-start;
}

.pd-hero--modification-detail .pd-hero__label {
  margin-top: 0;
}

.pd-hero--modification-detail .pd-hero__title {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

.pd-hero--modification-detail .pd-hero__lead--constrained {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.pd-hero--modification-detail .pd-hero__meta--spaced {
  margin-bottom: 2rem;
}

.pd-hero--modification-detail .mod-detail-hero__product a {
  color: var(--pd-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--pd-border);
  transition: text-decoration-color 0.2s;
}

.pd-hero--modification-detail .mod-detail-hero__product a:hover {
  text-decoration-color: var(--pd-text);
}

.pd-hero--modification-detail .pd-hero__trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--pd-muted);
  border-top: 1px solid var(--pd-border);
  padding-top: 1.5rem;
  max-width: 500px;
}

.pd-hero--modification-detail .pd-hero__trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 639px) {
  .pd-hero--modification-detail .pd-hero__trust-strip {
    gap: 1rem 1.5rem;
    justify-content: center;
    text-align: center;
  }

  .pd-hero--modification-detail .pd-hero__trust-strip__item {
    flex: 1 1 140px;
    justify-content: center;
  }
}

.pd-hero__title {
  font-family: var(--pd-serif);
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.06;
  color: var(--pd-text);
  margin-block-end: 1.25rem;
  animation: pd-fade-up 0.6s 0.2s var(--pd-ease) both;
}

/* Премиум: крупнее заголовок и акцентная линия */
.pd-page--presentation .pd-hero__title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.03em;
  margin-block-end: 1.5rem;
}

.pd-page--presentation .pd-hero__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--pd-gold), transparent);
  margin-top: 1.25rem;
  border-radius: 2px;
  transform-origin: left;
  animation: pd-line-reveal 0.8s var(--pd-ease) 0.7s both;
}

.pd-hero__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--pd-muted);
  max-width: 420px;
  margin-block-end: 2.5rem;
  animation: pd-fade-up 0.6s 0.3s var(--pd-ease) both;
}

.pd-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-block-end: 2rem;
  animation: pd-fade-up 0.6s 0.4s var(--pd-ease) both;
}

.pd-hero__price {
  font-size: 0.9375rem;
  color: var(--pd-muted);
}

.pd-hero__price strong {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--pd-text);
}

.pd-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: pd-fade-up 0.6s 0.5s var(--pd-ease) both;
}

/* Right: image */
.pd-hero__visual {
  position: relative;
  overflow: hidden;
  background: var(--pd-bg-panel);
}

.pd-hero__image {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.pd-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Карточка товара (презентация): весь продукт в кадре, без агрессивного кропа cover */
.pd-page--presentation .pd-hero__image img {
  object-fit: contain;
  padding: clamp(0.75rem, 2.5vw, 2.25rem);
  box-sizing: border-box;
}

/* Премиум: hero-изображение с анимацией появления и блеском */
.pd-page--presentation .pd-hero__image {
  animation: pd-hero-scale-in 1.4s var(--pd-ease) both;
}

.pd-page--presentation .pd-hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: pd-shine 2.5s var(--pd-ease) 0.8s forwards;
  pointer-events: none;
}

.pd-page--presentation .pd-hero__visual {
  position: relative;
}

.pd-page--presentation .pd-hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% 100%,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

/* Placeholder when no product image */
.pd-hero__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-hero__placeholder svg {
  width: clamp(160px, 32%, 260px);
  height: auto;
  color: var(--pd-text);
  opacity: 0.12;
}

/* Scroll hint (внутри колонки или на всю ширину hero — см. .pd-hero__scroll--full) */
.pd-hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--pd-muted);
  animation: pd-scroll-pulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

.pd-hero__scroll-link {
  pointer-events: auto;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.2s var(--pd-ease), opacity 0.2s var(--pd-ease);
}

.pd-hero__scroll-link:focus-visible {
  outline: 2px solid var(--pd-gold);
  outline-offset: 4px;
}

/* По центру всего первого экрана (не только правой колонки с фото) */
.pd-hero > .pd-hero__scroll--full {
  bottom: clamp(1.25rem, 4vh, 2rem);
  z-index: 3;
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin-inline: auto;
  left: 50%;
  right: auto;
}

.pd-hero__scroll svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* Премиум: подсказка «Смотреть дальше» */
.pd-page--presentation .pd-hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-page--presentation .pd-hero__scroll svg {
  width: 24px;
  height: 24px;
}

/* Скрытие подсказки «Смотреть дальше» после первого скролла */
.pd-scroll-hint--hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--pd-ease), transform 0.5s var(--pd-ease);
}

/* Сохраняем translateX(-50%), иначе блок уезжает влево */
.pd-hero__scroll.pd-scroll-hint--hidden {
  animation: none;
  transform: translateX(-50%) translateY(4px);
}

.pd-hero-video__scroll.pd-scroll-hint--hidden {
  transform: translateY(4px);
}

/* Parallax: pole image (JS двигает transform) */
.pd-pole__visual img {
  will-change: transform;
}

/* ----------------------------------------------------------------
   ACTIONS BAR — slim sticky
   ---------------------------------------------------------------- */
.pd-actions {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--pd-bar-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-block-end: 1px solid var(--pd-bar-border);
}

.pd-actions__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  max-width: var(--pd-max);
  margin-inline: auto;
  padding: 0.875rem clamp(1.25rem, 5vw, 2.5rem);
}

.pd-actions__name {
  font-family: var(--pd-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.pd-actions__colors {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pd-actions__price {
  font-size: 0.9375rem;
  color: var(--pd-muted);
  white-space: nowrap;
}

.pd-actions__price strong { color: var(--pd-text); }

.pd-actions__cta {
  display: flex;
  gap: 0.5rem;
}

/* Color swatches */
.pd-color-swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1.5px solid transparent;
  outline: 2px solid var(--pd-border);
  outline-offset: 2px;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s var(--pd-ease), outline-color 0.2s var(--pd-ease);
}

.pd-color-swatch:hover { transform: scale(1.18); }

.pd-color-swatch.active {
  outline-color: var(--pd-text);
  transform: scale(1.1);
}

/* ----------------------------------------------------------------
   FEATURES — stats grid (4 key numbers)
   HTML keeps .pd-features__card[data-stagger] for JS compat.
   ---------------------------------------------------------------- */
.pd-features {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--pd-bg-alt);
}

/* Hide generic section header — stats speak for themselves */
.pd-features > .pd-inner > .pd-section__label,
.pd-features > .pd-inner > .pd-section__title {
  display: none;
}

.pd-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--pd-border);
  border-left: 1px solid var(--pd-border);
  gap: 0;
}

.pd-features__card {
  padding: clamp(2rem, 3.5vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
  border-right: 1px solid var(--pd-border);
  border-bottom: 1px solid var(--pd-border);
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s var(--pd-ease),
    transform 0.55s var(--pd-ease);
}

.visible .pd-features__card {
  opacity: 1;
  transform: translateY(0);
}

/* Big stat number */
.pd-features__icon {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin-block-end: 0.6rem;
}

.pd-features__stat {
  font-family: var(--pd-serif);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--pd-text);
}

.pd-features__unit {
  font-family: var(--pd-sans);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 400;
  color: var(--pd-muted);
}

/* Label below number */
.pd-features__card-title {
  font-family: var(--pd-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-block-end: 0;
}

.pd-features__card-desc { display: none; }

/* ----------------------------------------------------------------
   GALLERY — horizontal slider
   ---------------------------------------------------------------- */
.pd-gallery {
  background: var(--pd-bg);
  overflow: hidden;
}

.pd-gallery__header {
  max-width: var(--pd-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  padding-block-end: 2rem;
}

.pd-gallery__tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-block-start: 1rem;
}

.pd-gallery__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pd-muted);
  background: transparent;
  border: 1px solid var(--pd-border);
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}

.pd-gallery__tab:hover {
  color: var(--pd-text);
  border-color: var(--pd-text);
}

.pd-gallery__tab.active {
  color: var(--pd-text);
  border-color: var(--pd-text);
  font-weight: 600;
}

.pd-gallery__tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pd-gallery__slider-wrap {
  position: relative;
}

.pd-gallery__pane { display: none; }

.pd-gallery__pane.active {
  display: block;
  animation: pd-fade-in 0.35s ease-out;
}

.pd-gallery__slider {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  padding-block: 0.5rem;
  scrollbar-width: none;
}

.pd-gallery__slider::-webkit-scrollbar { display: none; }

.pd-gallery__slide {
  flex: 0 0 min(75vw, 960px);
  scroll-snap-align: start;
  border-radius: 0;
  overflow: hidden;
  background: var(--pd-bg-alt);
}

.pd-gallery__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--pd-ease);
}

.pd-gallery__slide:hover img { transform: scale(1.02); }

/* Nav arrows */
.pd-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--pd-border);
  background: var(--pd-bg);
  color: var(--pd-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.pd-gallery__nav:hover {
  border-color: var(--pd-text);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.pd-gallery__nav svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.pd-gallery__nav--prev { inset-inline-start: clamp(0.5rem, 2vw, 1.5rem); }
.pd-gallery__nav--next { inset-inline-end: clamp(0.5rem, 2vw, 1.5rem); }

/* Counter */
.pd-gallery__counter {
  position: absolute;
  bottom: 1rem;
  inset-inline-end: clamp(1.25rem, 5vw, 2.5rem);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--pd-muted);
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------------
   STORY — brand philosophy
   ---------------------------------------------------------------- */
.pd-story {
  background: var(--pd-bg-alt);
  text-align: center;
}

.pd-story__inner {
  max-width: 640px;
  margin-inline: auto;
}

.pd-story .pd-brass-line { margin-inline: auto; }

.pd-story__heading {
  font-family: var(--pd-serif);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--pd-text);
  margin-block-end: 1.5rem;
}

.pd-story__text {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.9;
  color: var(--pd-muted);
}

.pd-story__text p { margin-block-end: 1rem; }
.pd-story__text p:last-child { margin-block-end: 0; }

/* ----------------------------------------------------------------
   3D MODEL VIEWER
   ---------------------------------------------------------------- */
.pd-model {
  position: relative;
  background: var(--pd-bg-panel);
  text-align: center;
}

.pd-model__viewer-outer {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}

.pd-model .product-viewer-wrap.pd-viewer-canvas-box {
  order: 1;
  flex: 0 0 auto;
  width: 100%;
  min-width: 280px;
  max-width: min(960px, 100%);
  aspect-ratio: 16 / 10;
  min-height: 420px;
  border-radius: 0;
  border: 1px solid var(--pd-border);
  overflow: hidden;
  background: var(--pd-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  margin-left: 0;
}

.pd-model__viewer-outer .viewer-toolbar.pd-viewer-toolbar,
.pd-viewer-toolbar {
  order: 2;
}

/* Кнопки вьюера слева от модели: сетка 2×3, большие светлые с тёмной обводкой и тёмными иконками.
   Специфичность выше, чем у .viewer-toolbar в product-viewer.css, чтобы переопределить position: absolute. */
.pd-model__viewer-outer .viewer-toolbar.pd-viewer-toolbar,
.pd-viewer-toolbar {
  position: static !important;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
  align-content: center;
  top: auto;
  left: auto;
  z-index: auto;
  pointer-events: auto;
}

.pd-model__viewer-outer .viewer-toolbar.pd-viewer-toolbar--side,
.pd-viewer-toolbar--side {
  flex: 0 0 auto;
  width: auto;
}

.pd-model__viewer-outer .viewer-toolbar.pd-viewer-toolbar .viewer-toolbar__btn,
.pd-viewer-toolbar .viewer-toolbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  font-family: var(--pd-sans);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 0;
  border: 2px solid var(--text-heading, #0d0d0d);
  background: var(--bg-primary, #f5f5f7);
  color: var(--text-heading, #0d0d0d);
  cursor: pointer;
  transition: border-color 0.18s var(--pd-ease), background 0.18s var(--pd-ease), transform 0.15s var(--pd-ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pd-model__viewer-outer .viewer-toolbar.pd-viewer-toolbar .viewer-toolbar__btn:hover,
.pd-viewer-toolbar .viewer-toolbar__btn:hover {
  background: var(--bg-tertiary, #e9ecef);
  border-color: var(--text-primary, #1a1a1a);
  transform: translateY(-1px);
}

.pd-model__viewer-outer .viewer-toolbar.pd-viewer-toolbar .viewer-toolbar__btn--active,
.pd-viewer-toolbar .viewer-toolbar__btn--active {
  background: var(--bg-tertiary, #e9ecef);
  color: var(--text-heading, #0d0d0d);
  border-color: var(--text-heading, #0d0d0d);
}

.pd-model__viewer-outer .viewer-toolbar.pd-viewer-toolbar .viewer-toolbar__btn--active:hover,
.pd-viewer-toolbar .viewer-toolbar__btn--active:hover {
  background: var(--pd-toolbar-active-hover, #d0d0d0);
  border-color: var(--text-primary, #1a1a1a);
  color: var(--text-heading, #0d0d0d);
}

.pd-model .viewer-controls-hint {
  color: var(--pd-muted);
  font-size: 0.9375rem;
  margin-block-start: 0.75rem;
}

@media (max-width: 640px) {
  .pd-viewer-toolbar--side {
    width: 100%;
    max-width: none;
  }
}

/* Login prompt */
.pd-model__login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pd-border);
  border-radius: 10px;
  padding: 3.5rem 2rem;
  max-width: 440px;
  margin-inline: auto;
  background: var(--pd-bg);
}

.pd-model__login p {
  color: var(--pd-muted);
  margin-block-end: 1.5rem;
  line-height: 1.65;
}

.pd-model__login-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ----------------------------------------------------------------
   DESCRIPTION
   ---------------------------------------------------------------- */
.pd-description {
  background: var(--pd-bg);
  text-align: center;
  padding-top: clamp(5rem, 12vw, 9rem);
  padding-bottom: var(--pd-section-py);
  position: relative;
  overflow: hidden;
}

/* Мягкий градиент сверху — плавный переход от предыдущей секции */
.pd-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(4rem, 10vw, 6rem);
  background: linear-gradient(to bottom, var(--pd-bg-alt) 0%, var(--pd-bg) 100%);
  pointer-events: none;
}

.pd-description__inner {
  max-width: min(1080px, 92%);
  margin-inline: auto;
  position: relative;
}

.pd-description .pd-brass-line { margin-inline: auto; }

.pd-description__heading {
  font-family: var(--pd-serif);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--pd-text);
  margin-block-end: 1.5rem;
}

.pd-description__text {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.9;
  color: var(--pd-muted);
}

.pd-description__text p { margin-block-end: 1rem; }
.pd-description__text p:last-child { margin-block-end: 0; }

/* ----------------------------------------------------------------
   SPECIFICATIONS
   ---------------------------------------------------------------- */
.pd-specs {
  background: var(--pd-bg-alt);
  text-align: center;
}

.pd-specs__list {
  max-width: 560px;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}

.pd-specs__row {
  display: flex;
  align-items: baseline;
  padding-block: 0.875rem;
  border-block-end: 1px solid var(--pd-border);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--pd-ease), transform 0.45s var(--pd-ease);
  text-align: start;
}

/* JS adds .visible directly to each row */
.pd-specs__row.visible {
  opacity: 1;
  transform: translateY(0);
}

.pd-specs__key {
  font-size: 0.9375rem;
  color: var(--pd-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.pd-specs__dots {
  flex: 1;
  margin-inline: 0.75rem;
  border-bottom: 1px dotted var(--pd-border);
  min-width: 2rem;
  align-self: center;
  height: 0;
}

.pd-specs__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pd-text);
  text-align: end;
  flex-shrink: 0;
}

.pd-specs__empty {
  text-align: center;
  color: var(--pd-muted);
  font-size: 1.0625rem;
  padding: 2rem;
}

/* ----------------------------------------------------------------
   VIDEO
   ---------------------------------------------------------------- */
.pd-video {
  background: var(--pd-bg);
  text-align: center;
}

.pd-video__wrapper {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--pd-bg-alt);
  border: 1px solid var(--pd-border);
}

.pd-video__wrapper iframe,
.pd-video__wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ----------------------------------------------------------------
   DOWNLOADS — Документация / Файлы для скачивания
   ---------------------------------------------------------------- */
.pd-downloads {
  background: var(--pd-bg-alt);
}

.pd-downloads__files {
  margin-top: 1.25rem;
}

.pd-downloads__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 880px;
  margin-inline: auto;
}

.pd-downloads__card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--pd-bg);
  border: 1.5px solid var(--pd-border);
  border-radius: 0;
  text-decoration: none;
  color: var(--pd-text);
  transition: border-color 0.2s var(--pd-ease), transform 0.2s var(--pd-ease), box-shadow 0.2s var(--pd-ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pd-downloads__card:hover {
  border-color: var(--pd-text);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pd-downloads__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--pd-bg-alt);
  border: 1px solid var(--pd-border);
  color: var(--pd-text);
  transition: background 0.2s var(--pd-ease), border-color 0.2s var(--pd-ease);
}

.pd-downloads__card:hover .pd-downloads__icon {
  background: var(--pd-fill);
  border-color: var(--pd-fill);
  color: var(--pd-fill-text);
}

.pd-downloads__icon svg { width: 24px; height: 24px; }

.pd-downloads__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pd-downloads__name {
  font-family: var(--pd-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-block-end: 0.25rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.pd-downloads__size {
  display: block;
  font-size: 0.875rem;
  color: var(--pd-muted);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ----------------------------------------------------------------
   MODIFICATIONS LINK CARD (bottom of page)
   ---------------------------------------------------------------- */
.pd-mods-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.25rem, 4vw, 3rem);
  border-radius: 24px;
  background: var(--pd-bg-alt);
  border: 1px solid var(--pd-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.pd-mods-card__media {
  border-radius: 20px;
  overflow: hidden;
  background: var(--pd-bg);
}

.pd-mods-card__media img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.pd-mods-card__body {
  max-width: 520px;
}

.pd-mods-card__title {
  font-family: var(--pd-serif);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.pd-mods-card__text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--pd-muted);
  margin-bottom: 1.75rem;
}

.pd-mods-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ----------------------------------------------------------------
   RELATED PRODUCTS
   ---------------------------------------------------------------- */
.pd-related {
  background: var(--pd-bg);
}

.pd-related__slider {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-block: 0.5rem;
  scrollbar-width: none;
}

.pd-related__slider::-webkit-scrollbar { display: none; }

.pd-related__card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  transition: border-color var(--pd-transition) var(--pd-ease), transform var(--pd-transition) var(--pd-ease-out), box-shadow var(--pd-transition) var(--pd-ease);
  border-radius: 10px;
  overflow: hidden;
  background: var(--pd-bg-alt);
  border: 1px solid var(--pd-border);
  text-decoration: none;
  color: var(--pd-text);
  transition: border-color 0.2s, transform 0.2s;
}

.pd-related__card:hover {
  border-color: var(--pd-text);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pd-related__card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pd-bg);
}

.pd-related__card-image img {
  width: 100%;
  height: 100%;
  transition: transform var(--pd-transition) var(--pd-ease-out);
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--pd-ease);
}

.pd-related__card:hover .pd-related__card-image img { transform: scale(1.04); }

.pd-related__card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity 0.25s;
}

.pd-related__card:hover .pd-related__card-overlay { opacity: 1; }

.pd-related__card-body { padding: 1rem 1.25rem; }

.pd-related__card-category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-block-end: 0.25rem;
}

.pd-related__card-name {
  font-family: var(--pd-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-block-end: 0.35rem;
}

.pd-related__card-price {
  font-size: 0.8125rem;
  color: var(--pd-muted);
}

/* ----------------------------------------------------------------
   FINAL CTA — inverted block (dark in light mode)
   ---------------------------------------------------------------- */
.pd-cta-block {
  --pd-inv-bg: var(--footer-bg, #1a1a1a);
  --pd-inv-text: #ffffff;
  --pd-inv-muted: rgba(255, 255, 255, 0.72);
  background: var(--pd-inv-bg);
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  text-align: center;
}

.pd-cta-block__inner {
  max-width: 560px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.pd-cta-block__title {
  font-family: var(--pd-serif);
  font-size: clamp(3.375rem, 6.75vw, 4.875rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--pd-inv-text);
  margin-block-end: 0.75rem;
}

.pd-cta-block__sub {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--pd-inv-muted);
  line-height: 1.65;
  margin-block-end: 2.5rem;
}

.pd-cta-block__buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Кнопка с обводкой на тёмном фоне CTA-блока.
   Специфичность выше, чем у .pd-page .pd-btn--outline в site.css (он подключается после HeadScripts). */
.pd-page .pd-cta-block .pd-btn--outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.pd-page .pd-cta-block .pd-btn--outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Убрать белую полосу между секцией «Найдите свой светильник» и футером */
#main-content:has(.pd-page) + .site-footer {
  margin-top: 0;
}

/* ----------------------------------------------------------------
   SCROLL TO TOP
   ---------------------------------------------------------------- */
.pd-scroll-top {
  position: fixed;
  bottom: 2rem;
  inset-inline-end: 2rem;
  z-index: 501;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--pd-border);
  background: var(--pd-bg);
  color: var(--pd-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pd-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pd-scroll-top:hover { border-color: var(--pd-text); }

.pd-scroll-top svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ----------------------------------------------------------------
   RESPONSIVE — Mobile (≤ 639px)
   ---------------------------------------------------------------- */
@media (max-width: 639px) {
  .pd-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pd-hero__visual {
    order: -1;
    height: 55svh;
    min-height: 300px;
  }

  .pd-hero__body {
    padding: 2rem 1.25rem 3rem;
    justify-content: flex-start;
  }

  .pd-hero__breadcrumbs {
    position: static;
    margin-block-end: 1.5rem;
    max-width: 100%;
  }

  .pd-hero__title { font-size: 2rem; }
  .pd-hero__scroll { display: none; }

  .pd-actions__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.6rem;
  }

  .pd-actions__name { flex: none; }
  .pd-actions__price { text-align: center; }
  .pd-actions__cta, .pd-actions__colors { justify-content: center; }

  .pd-features__grid { grid-template-columns: repeat(2, 1fr); }

  .pd-gallery__slide { flex-basis: 90vw; }
  .pd-gallery__nav { display: none; }

  .pd-downloads__grid { grid-template-columns: 1fr; }
  .pd-related__card { flex-basis: 240px; }

  .pd-mods-card {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.5rem;
  }

  .pd-mods-card__media {
    max-height: 260px;
  }
}

/* ----------------------------------------------------------------
   RESPONSIVE — Tablet (640px–1023px)
   ---------------------------------------------------------------- */
@media (min-width: 640px) and (max-width: 1023px) {
  .pd-hero { grid-template-columns: 1fr 1fr; }

  .pd-features__grid { grid-template-columns: repeat(2, 1fr); }

  .pd-gallery__slide { flex-basis: 78vw; }

  .pd-downloads__grid { grid-template-columns: repeat(2, 1fr); }
  .pd-related__card { flex-basis: 260px; }
}

/* ================================================================
   PRESENTATION MODE — Слайды, навигация, прогресс
   ================================================================ */

.pd-page--presentation {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(3.25rem, 10vh, 5rem);
}

/* Слайд = полноэкранный или крупный блок */
.pd-slide {
  position: relative;
  min-height: 85vh;
  scroll-margin-top: 0;
}

.pd-slide--hero {
  min-height: 100vh;
}

/* Номер слайда в углу (премиальный вид) */
.pd-slide__number {
  position: absolute;
  top: clamp(2rem, 5vw, 4rem);
  left: clamp(1.25rem, 5vw, 2.5rem);
  font-family: var(--pd-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--pd-text);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* Премиум: номер с акцентной линией */
.pd-page--presentation .pd-slide__number {
  opacity: 0.18;
  background: linear-gradient(135deg, var(--pd-text) 0%, var(--pd-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.pd-pole .pd-slide__number,
.pd-color-showcase .pd-slide__number,
.pd-model .pd-slide__number,
.pd-exterior .pd-slide__number,
.pd-description .pd-slide__number {
  top: clamp(1.5rem, 4vw, 2.5rem);
}

.pd-slide__number + .pd-inner,
.pd-slide__number + .pd-pole__body {
  position: relative;
  z-index: 1;
}

/* Боковая навигация по слайдам */
.pd-presentation-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 56px;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(5rem, 12vh, 8rem) 0 2rem;
  pointer-events: none;
}

.pd-presentation-nav__progress {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--pd-border);
  border-radius: 2px;
  overflow: hidden;
  transform-origin: top;
  pointer-events: none;
}

@keyframes pd-progress-scale {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.pd-presentation-nav__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to bottom, var(--pd-gold), var(--pd-accent));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.35s var(--pd-ease);
  border-radius: 2px;
}

/* Scroll-driven progress (Chrome 115+, без JS) — привязка к скроллу страницы */
@supports (animation-timeline: scroll()) {
  .pd-presentation-nav__progress-fill {
    animation: pd-progress-scale linear;
    animation-timeline: scroll(root);
    transition: none;
  }
}

.pd-page--presentation .pd-presentation-nav__progress {
  width: 3px;
  margin-left: -1.5px;
  box-shadow: 0 0 12px rgba(200, 16, 46, 0.2);
}

/* Подсказка при наведении на точку навигации (название секции) */
.pd-presentation-nav__dot-wrap {
  position: relative;
}

.pd-presentation-nav__dot[title]:hover::after {
  content: attr(title);
  position: absolute;
  right: 100%;
  margin-right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.35rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pd-fill-text);
  background: var(--pd-fill);
  border-radius: 0.25rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.pd-presentation-nav__dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: auto;
}

.pd-presentation-nav__dot-wrap {
  margin: 0;
  padding: 0;
}

.pd-presentation-nav__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--pd-muted);
  text-decoration: none;
  font-family: var(--pd-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--pd-ease), background 0.2s var(--pd-ease), transform 0.15s var(--pd-ease);
}

.pd-presentation-nav__dot:hover {
  color: var(--pd-text);
  background: var(--pd-bg-alt);
}

.pd-presentation-nav__dot.active {
  color: var(--pd-fill-text);
  background: var(--pd-fill);
}

.pd-presentation-nav__dot-num {
  display: block;
}

/* Минимальная шапка при скролле */
.pd-presentation-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s var(--pd-ease), opacity 0.25s var(--pd-ease);
  pointer-events: none;
}

.pd-presentation-header--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pd-presentation-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--pd-max);
  margin-inline: auto;
  padding: 0.875rem clamp(1.25rem, 5vw, 2.5rem);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--pd-border);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
}

.pd-presentation-header__name {
  font-family: var(--pd-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pd-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.pd-presentation-header__name:hover {
  color: var(--pd-accent);
}

.pd-presentation-header__price {
  font-size: 0.875rem;
  color: var(--pd-muted);
  white-space: nowrap;
}

.pd-presentation-header__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pd-presentation-header .pd-btn--mods {
  padding: 0.5rem 1.05rem;
  font-size: 0.8125rem;
}

/* Маленькая кнопка для шапки */
.pd-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Скрыть навигацию на узких экранах */
@media (max-width: 900px) {
  .pd-presentation-nav {
    width: 44px;
    padding-top: clamp(4rem, 10vh, 6rem);
  }

  .pd-presentation-nav__dot {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.625rem;
  }
}

@media (max-width: 639px) {
  .pd-presentation-nav {
    display: none;
  }

  .pd-slide {
    min-height: 70vh;
  }

  .pd-slide--hero {
    min-height: 60vh;
  }

  .pd-slide__number {
    top: 1rem;
    left: 1rem;
    font-size: 2.5rem;
  }

  .pd-presentation-header__inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .pd-presentation-header__name {
    flex: 1 1 100%;
    order: 1;
  }

  .pd-presentation-header__price {
    order: 2;
  }

  .pd-presentation-header__actions {
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-presentation-nav__progress-fill {
    transition: none;
  }

  .pd-presentation-header {
    transition: none;
  }

  .pd-page--presentation .pd-hero__image,
  .pd-page--presentation .pd-hero__image::after,
  .pd-page--presentation .pd-hero__title::after {
    animation: none;
  }

  .pd-page--presentation .pd-hero .pd-btn--primary {
    animation: none;
  }

  .pd-page--presentation .pd-btn--mods {
    animation: none !important;
  }
}

/* ----------------------------------------------------------------
   HERO VIDEO — Fullscreen video section
   ---------------------------------------------------------------- */
.pd-hero-video {
  position: relative;
  width: auto;
  height: 100vh;
  min-height: 100vh;
  margin: 0 clamp(2.25rem, 6vw, 4.5rem) clamp(1.5rem, 4.2vw, 3.75rem);
  overflow: hidden;
}
.pd-hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0, 0, 0, 0.4) 70%,
    rgba(0, 0, 0, 0.75) 100%
  );
  pointer-events: none;
}

/* Премиум: кинематографичная виньетка поверх видео */
.pd-page--presentation .pd-hero-video__overlay {
  background: 
    radial-gradient(ellipse 70% 50% at 50% 20%, transparent 0%, rgba(0,0,0,0.15) 100%),
    linear-gradient(to bottom, transparent 25%, rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.85) 100%);
}

/* Нижняя зона поверх видео: на всю ширину экрана, контент по центру */
.pd-hero-video__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(1rem, 4vw, 2rem) 2.5rem;
  box-sizing: border-box;
  pointer-events: none;
}

.pd-hero-video__bottom > * {
  pointer-events: auto;
}

.pd-hero-video__cta {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: min(100%, 32rem);
}

.pd-hero-video__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: max-content;
  max-width: 100%;
  margin: 0;
  align-self: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  animation: pd-scroll-pulse-y 2s ease-in-out infinite;
  border-radius: 0;
  transition: color 0.2s var(--pd-ease), opacity 0.2s var(--pd-ease);
}

.pd-hero-video__scroll-link:hover,
.pd-hero-video__scroll-link:focus-visible {
  color: rgba(255, 255, 255, 0.95);
}

.pd-hero-video__scroll-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.pd-hero-video__scroll .pd-hero__scroll-label {
  color: inherit;
}

.pd-hero-video__scroll svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 480px) {
  .pd-hero-video__cta .pd-btn--lg {
    width: 100%;
    justify-content: center;
  }
}

/* ----------------------------------------------------------------
   POLE SECTION — Split: text left + pole image right
   ---------------------------------------------------------------- */
.pd-pole {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 70vh;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0;
  max-width: 100vw;
  overflow: hidden;
}
.pd-pole__body {
  padding: 2rem 0 2rem 3rem;
  min-width: 0;
}
/* Единый стиль с .pd-section__label (Apple/B&O: один паттерн подписей секций) */
.pd-pole__label {
  display: block;
  font-family: var(--pd-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-bottom: 1.25rem;
}
.pd-pole__title {
  font-family: var(--pd-serif);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--pd-text);
  margin-bottom: 1.5rem;
}
.pd-pole__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--pd-muted);
  max-width: 32rem;
}
.pd-pole__visual {
  position: relative;
  height: 100%;
  min-height: 400px;
  min-width: 0;
  overflow: hidden;
}
.pd-pole__visual img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem 0 0 1rem;
  display: block;
}

/* ----------------------------------------------------------------
   COLOR SHOWCASE — Product image with color switcher
   ---------------------------------------------------------------- */
.pd-color-showcase {
  padding: 6rem 0;
}
.pd-color-showcase__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}
.pd-color-showcase__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--pd-bg-alt);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-color-showcase__image-wrap img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: opacity 0.4s var(--pd-ease);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}
.pd-color-showcase__image-wrap img.pd-fade-out {
  opacity: 0;
}
.pd-color-showcase__panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pd-color-showcase__panel .pd-section__label,
.pd-color-showcase__panel .pd-section__title {
  text-align: left;
}
/* Мета-строка: цветная точка + название + счётчик */
.pd-color-showcase__meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: -0.25rem;
}
.pd-color-showcase__selected-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--swatch-color, #ccc);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: background-color 0.25s var(--pd-ease);
}
.pd-color-showcase__color-name {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--pd-text);
  line-height: 1.3;
  margin: 0;
  min-height: 1.4em;
  transition: opacity 0.25s var(--pd-ease);
}
.pd-color-showcase__color-name.pd-fade-out {
  opacity: 0;
}
.pd-color-showcase__count {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--pd-muted);
  white-space: nowrap;
  text-transform: uppercase;
}
.pd-color-showcase__hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0.5rem 0 0.75rem;
}
.pd-color-showcase__admin-empty {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: 0;
  color: var(--pd-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.pd-color-showcase__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.pd-color-showcase__swatch {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background-color: var(--swatch-color, #ccc);
  cursor: pointer;
  position: relative;
  transition: transform 0.25s var(--pd-ease), box-shadow 0.25s var(--pd-ease);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
/* CSS-тултип с названием цвета */
.pd-color-showcase__swatch::before {
  content: attr(data-color-name);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: var(--pd-text);
  color: var(--pd-bg);
  padding: 0.25rem 0.55rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.pd-color-showcase__swatch:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pd-color-showcase__swatch::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.25s var(--pd-ease);
  pointer-events: none;
}
.pd-color-showcase__swatch:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.pd-color-showcase__swatch.active {
  transform: scale(1.06);
}
.pd-color-showcase__swatch.active::after {
  border-color: var(--pd-text);
  inset: -6px;
}

/* ----------------------------------------------------------------
   EXTERIOR GALLERY — Fullwidth horizontal photo gallery
   ---------------------------------------------------------------- */
.pd-exterior {
  padding: 5rem 0;
}
.pd-exterior > .pd-inner {
  text-align: center;
}
.pd-exterior__slider-wrap {
  position: relative;
}

.pd-exterior__track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 3rem;
}
.pd-exterior__track::-webkit-scrollbar {
  display: none;
}
.pd-exterior__slide {
  flex: 0 0 70vw;
  max-width: 900px;
  scroll-snap-align: center;
  border-radius: 1rem;
  overflow: hidden;
}
.pd-exterior__slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pd-exterior__slide img:hover {
  transform: scale(1.03);
}

@media (max-width: 639px) {
  .pd-pole {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 0;
  }
  .pd-pole__body {
    padding: 2rem 1.5rem;
    order: 2;
  }
  .pd-pole__visual {
    order: 1;
    min-height: 300px;
  }
  .pd-pole__visual img {
    border-radius: 0;
  }
  .pd-hero-video {
    height: 60vh;
    margin: 0 1.5rem 1.05rem;
  }
  .pd-exterior__slide {
    flex-basis: 85vw;
  }
  .pd-exterior__track {
    padding: 0 1.5rem;
  }
  .pd-exterior__prev,
  .pd-exterior__next {
    display: none;
  }
  .pd-color-showcase__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pd-color-showcase__panel .pd-section__label,
  .pd-color-showcase__panel .pd-section__title {
    text-align: center;
  }
  .pd-color-showcase__color-name {
    text-align: center;
  }
  .pd-color-showcase__colors {
    justify-content: center;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .pd-pole {
    grid-template-columns: 1fr 1fr;
  }
  .pd-pole__body {
    padding: 2rem 1.5rem;
  }
  .pd-hero-video { margin: 0 clamp(2.25rem, 6vw, 4.5rem) clamp(1.5rem, 4.2vw, 3.75rem); }
}

/* ----------------------------------------------------------------
   RESPONSIVE — Wide (1280px+)
   ---------------------------------------------------------------- */
@media (min-width: 1280px) {
  .pd-hero { grid-template-columns: 55% 45%; }
  .pd-gallery__slide { flex-basis: 60vw; }
  .pd-hero-video { margin: 0 clamp(2.25rem, 6vw, 4.5rem) clamp(1.5rem, 4.2vw, 3.75rem); }
}

/* ----------------------------------------------------------------
   ACCESSIBILITY — prefers-reduced-motion
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pd-hero__label,
  .pd-hero__title,
  .pd-hero__lead,
  .pd-hero__meta,
  .pd-hero__cta {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .pd-section,
  .pd-features__card,
  .pd-specs__row,
  .pd-reveal-text {
    opacity: 1;
    transform: none;
  }

  .pd-hero__scroll { display: none; }
}

/* ----------------------------------------------------------------
   ACCESSIBILITY — Focus styles
   ---------------------------------------------------------------- */
.pd-page a:focus-visible,
.pd-page button:focus-visible,
.pd-page [role="button"]:focus-visible,
.pd-page .pd-btn:focus-visible,
.pd-page .pd-color-swatch:focus-visible,
.pd-page .pd-gallery__tab:focus-visible,
.pd-page .pd-gallery__nav:focus-visible {
  outline: 2px solid var(--pd-gold);
  outline-offset: 3px;
}

.pd-page *:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .pd-page .pd-related__card:hover {
    transform: none;
  }
  .pd-page .pd-related__card-image img {
    transition: none;
  }
  .pd-page .pd-btn:hover,
  .pd-page .pd-btn:active {
    transform: none;
  }
}

/* ----------------------------------------------------------------
   ACCESSIBILITY — forced-colors
   ---------------------------------------------------------------- */
@media (forced-colors: active) {
  .pd-btn--primary { border: 2px solid ButtonText; }
  .pd-color-swatch { forced-color-adjust: none; }
}

/* ================================================================
   SITE-WIDE COMPONENTS — Reusable across all pd-page wrappers
   ================================================================ */

/* ── Centered Page Hero ────────────────────────────────────────── */
.pd-hero--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 5vw, 2.5rem) var(--pd-section-py);
  background: var(--pd-bg);
}

.pd-hero--centered .pd-section__label {
  margin-block-end: 1rem;
}

.pd-hero--centered .pd-section__title {
  max-width: 800px;
}

.pd-hero--centered .pd-hero__lead {
  max-width: 600px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--pd-muted);
  margin-block-start: 1rem;
}

.pd-hero--centered .pd-hero__breadcrumbs {
  margin-block-end: 1.5rem;
}

/* Компактный hero: одна колонка, без min-height 100svh — иначе текст центрируется и до таблицы огромный зазор */
.pd-hero--compact {
  grid-template-columns: 1fr;
  min-height: 0;
}

/* Компактный hero: крошки в потоке (не absolute) — без налезания на h1 и с предсказуемыми отступами */
.pd-hero--compact .pd-hero__body {
  justify-content: flex-start;
  align-items: flex-start;
  row-gap: clamp(0.85rem, 2.2vw, 1.35rem);
  padding-top: clamp(3rem, 6.5vw, 5.25rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.pd-hero--compact .pd-hero__breadcrumbs {
  position: static;
  left: auto;
  top: auto;
  margin-block-end: 0;
  max-width: 100%;
}

.pd-hero--compact .pd-hero__label {
  margin-block-end: 0;
}

.pd-hero--compact .pd-hero__title {
  margin-block-start: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.02em;
  margin-block-end: 1rem;
}

.pd-hero--compact .pd-hero__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--pd-accent), transparent);
  margin-top: 1rem;
  border-radius: 2px;
}

.pd-hero--compact .pd-hero__lead {
  margin-block-end: 0.75rem;
}

/* Секция с таблицей сразу под компактным hero — меньше верхний padding, чем у обычной pd-section */
.pd-page > .pd-hero--compact + .pd-section {
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
}

/* ── Prose (reading-optimised body) ────────────────────────────── */
.pd-prose {
  max-width: 720px;
  margin-inline: auto;
}

.pd-prose p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--pd-muted);
  margin-block-end: 1.25rem;
}

.pd-prose a {
  color: var(--pd-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.pd-prose a:hover {
  border-bottom-color: var(--pd-accent);
}

/* ── Card Grid ─────────────────────────────────────────────────── */
.pd-card-grid {
  display: grid;
  gap: 1.5rem;
}

.pd-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pd-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pd-card-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
  .pd-card-grid--3,
  .pd-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .pd-card-grid--2,
  .pd-card-grid--3,
  .pd-card-grid--4 { grid-template-columns: 1fr; }
}

.pd-card {
  background: var(--pd-surface);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--pd-border);
  transition: transform 0.25s var(--pd-ease), box-shadow 0.25s var(--pd-ease);
}

.pd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pd-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--pd-bg);
  margin-block-end: 1.25rem;
  font-size: 1.25rem;
}

.pd-card__title {
  font-family: var(--pd-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--pd-text);
  margin-block-end: 0.5rem;
}

.pd-card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pd-muted);
  margin: 0;
}

/* ── Stats Row ─────────────────────────────────────────────────── */
.pd-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.pd-stat__value {
  font-family: var(--pd-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--pd-text);
  margin-block-end: 0.5rem;
}

.pd-stat__value--accent {
  color: var(--pd-accent);
}

.pd-stat__label {
  font-family: var(--pd-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pd-muted);
}

/* ── Full-Width CTA Block ──────────────────────────────────────── */
.pd-cta-block {
  background: var(--pd-fill);
  color: var(--pd-fill-text);
  text-align: center;
  padding: var(--pd-section-py) clamp(1.25rem, 5vw, 2.5rem);
}

.pd-cta-block__title {
  font-family: var(--pd-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-block-end: 1rem;
}

.pd-cta-block__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  opacity: 0.7;
  max-width: 600px;
  margin-inline: auto;
  margin-block-end: 2rem;
}

/* ── Two-Column Split ──────────────────────────────────────────── */
.pd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .pd-split { grid-template-columns: 1fr; }
}

.pd-split__heading {
  font-family: var(--pd-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--pd-text);
  margin-block-end: 1rem;
}

.pd-split__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pd-split__list li {
  position: relative;
  padding-inline-start: 1.25rem;
  padding-block: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pd-muted);
}

.pd-split__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pd-accent);
}

/* ── Timeline ──────────────────────────────────────────────────── */
.pd-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.pd-timeline__item {
  position: relative;
  padding: 1.5rem;
  background: var(--pd-surface);
  border-radius: 1rem;
  border: 1px solid var(--pd-border);
}

.pd-timeline__year {
  display: inline-block;
  font-family: var(--pd-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pd-accent);
  margin-block-end: 0.5rem;
}

.pd-timeline__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pd-muted);
  margin: 0;
}

/* ── Quality Strip ─────────────────────────────────────────────── */
.pd-quality-strip {
  background: var(--pd-bg-alt);
  border-radius: 1.5rem;
  padding: 3rem;
}

.pd-quality-strip__title {
  font-family: var(--pd-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--pd-text);
  margin-block-end: 1rem;
}

.pd-quality-strip__text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--pd-muted);
  margin-block-end: 1.5rem;
  max-width: 720px;
}

.pd-quality-strip__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}

.pd-quality-strip__list li {
  position: relative;
  padding-inline-start: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pd-text);
  letter-spacing: 0.02em;
}

.pd-quality-strip__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--pd-accent);
  font-weight: 700;
}

/* ── Blockquote ────────────────────────────────────────────────── */
.pd-quote {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.pd-quote__text {
  font-family: var(--pd-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--pd-text);
  margin-block-end: 1.5rem;
}

.pd-quote__author {
  font-family: var(--pd-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pd-muted);
}

/* ── Process Steps ─────────────────────────────────────────────── */
.pd-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: pd-step;
}

@media (max-width: 991px) {
  .pd-process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .pd-process { grid-template-columns: 1fr; }
}

.pd-process__step {
  counter-increment: pd-step;
  position: relative;
  background: var(--pd-surface);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--pd-border);
}

.pd-process__step::before {
  content: counter(pd-step, decimal-leading-zero);
  display: block;
  font-family: var(--pd-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pd-accent);
  margin-block-end: 1rem;
  line-height: 1;
}

.pd-process__title {
  font-family: var(--pd-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--pd-text);
  margin-block-end: 0.5rem;
}

.pd-process__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pd-muted);
  margin: 0;
}

/* ── Auth Layout ───────────────────────────────────────────────── */
.pd-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 3rem 1.5rem;
}

.pd-auth__wordmark {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pd-text);
  text-decoration: none;
  margin-block-end: 2.5rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.pd-auth__wordmark:hover {
  opacity: 1;
  color: var(--pd-text);
  text-decoration: none;
}

.pd-auth__card {
  background: var(--pd-surface);
  border-radius: 1.25rem;
  border: 1px solid var(--pd-border);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
}

.pd-auth__card h2 {
  font-family: var(--pd-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pd-text);
}

.pd-auth__card .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pd-muted);
}

.pd-auth__card .form-control {
  border-color: var(--pd-border);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pd-auth__card .form-control:focus {
  border-color: var(--pd-accent);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.pd-auth__card .btn-primary {
  background: var(--pd-fill);
  border-color: var(--pd-fill);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.5rem;
  transition: background 0.18s, transform 0.15s;
}

.pd-auth__card .btn-primary:hover {
  background: var(--pd-fill-hover);
  border-color: var(--pd-fill-hover);
  transform: translateY(-1px);
}

.pd-auth__card a {
  color: var(--pd-accent);
  text-decoration: none;
}

.pd-auth__card a:hover {
  text-decoration: underline;
}

/* ── News Grid inside pd-page ──────────────────────────────────── */
.pd-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 991px) {
  .pd-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .pd-news-grid { grid-template-columns: 1fr; }
}

.pd-news-card {
  display: flex;
  flex-direction: column;
  background: var(--pd-surface);
  border-radius: 1rem;
  border: 1px solid var(--pd-border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--pd-ease), box-shadow 0.25s var(--pd-ease);
}

.pd-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
}

.pd-news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  flex: 1;
}

.pd-news-card__date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-news-card__title {
  font-family: var(--pd-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--pd-text);
  margin: 0;
}

.pd-news-card__excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--pd-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-news-card__link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-accent);
  transition: color 0.2s;
}

.pd-news-card:hover .pd-news-card__link {
  color: #a00d24;
}

/* ── Product Card inside pd-page ───────────────────────────────── */
.pd-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pd-product-card {
  background: var(--pd-surface);
  border-radius: 1rem;
  border: 1px solid var(--pd-border);
  overflow: hidden;
  transition: transform 0.25s var(--pd-ease), box-shadow 0.25s var(--pd-ease);
}

.pd-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pd-product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--pd-bg);
}

.pd-product-card__no-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pd-bg);
  color: var(--pd-muted);
  font-size: 0.875rem;
}

.pd-product-card__body {
  padding: 1.5rem;
}

.pd-product-card__title {
  font-family: var(--pd-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pd-text);
  margin-block-end: 0.35rem;
}

.pd-product-card__price {
  font-size: 0.9375rem;
  color: var(--pd-muted);
  margin-block-end: 1rem;
}

/* 3D preview inside product card */
.pd-product-card .product-card__preview-3d {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--pd-bg);
}

.pd-product-card .product-card__preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pd-product-card .product-card__preview-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Category Direction Cards ──────────────────────────────────── */
.pd-direction-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pd-direction-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--pd-fill);
  transition: transform 0.3s var(--pd-ease), box-shadow 0.3s var(--pd-ease);
}

.pd-direction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  color: #fff;
  text-decoration: none;
}

.pd-direction-card__body {
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.pd-direction-card__title {
  font-family: var(--pd-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-block-end: 0.5rem;
}

.pd-direction-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

/* ── Filter Bar inside pd-page ─────────────────────────────────── */
.pd-filter-bar {
  background: var(--catalog-filter-surface, var(--pd-surface));
  border: 1px solid var(--catalog-filter-border, var(--pd-border));
  border-radius: var(--catalog-filter-radius, 1rem);
  padding: 1.25rem 1.5rem 1rem;
  margin-block-end: 2rem;
  transition: box-shadow 0.2s var(--pd-ease);
}

.pd-filter-bar:focus-within {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Header row */
.pd-filter-bar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1rem;
}

.pd-filter-bar__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pd-filter-bar__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--pd-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pd-text);
}

.pd-filter-bar__counter {
  font-family: var(--pd-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pd-muted);
  white-space: nowrap;
}

/* Toggle button (collapse/expand) */
.pd-filter-bar__toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--pd-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pd-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: color 0.15s, background 0.15s;
}

.pd-filter-bar__toggle-btn:hover {
  color: var(--pd-text);
  background: var(--pd-bg);
}

.pd-filter-bar__toggle-icon {
  transition: transform 0.25s var(--pd-ease);
}

.pd-filter-bar__toggle-btn[aria-expanded="false"] .pd-filter-bar__toggle-icon {
  transform: rotate(180deg);
}

.pd-filter-bar__toggle-label {
  font-size: 0.8125rem;
}

/* Collapsible body */
.pd-filter-bar__body {
  overflow: hidden;
  transition: max-height 0.3s var(--pd-ease), opacity 0.25s var(--pd-ease);
  max-height: 2000px;
  opacity: 1;
}

.pd-filter-bar__body.is-collapsed {
  max-height: 0;
  opacity: 0;
}

/* Grid layout for filter items */
.pd-filter-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem 1.25rem;
  align-items: start;
}

.pd-filter-bar__item--search {
  grid-column: 1 / -1;
}

.pd-filter-bar__item--category {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .pd-filter-bar__item--search {
    grid-column: span 2;
  }

  .pd-filter-bar__item--category {
    grid-column: span 2;
  }
}

/* Form labels */
.pd-filter-bar .form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pd-muted);
  margin-block-end: 0.4rem;
}

/* Inputs */
.pd-filter-bar .form-control,
.pd-filter-bar .form-select {
  border-color: var(--pd-border);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  background: var(--pd-bg);
  color: var(--pd-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pd-filter-bar .form-control:focus,
.pd-filter-bar .form-select:focus {
  border-color: var(--pd-accent);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
  background: var(--pd-surface);
}

/* Search input with icon */
.pd-filter-bar__search-wrap {
  position: relative;
}

.pd-filter-bar__search-icon {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pd-muted);
  pointer-events: none;
}

/* Специфичность выше, чем у .form-control (иначе shorthand padding сбрасывает padding-inline-start) */
.pd-filter-bar .pd-filter-bar__search-input {
  padding-block: 0.75rem;
  padding-inline-end: 1rem;
  padding-inline-start: 2.625rem; /* иконка 16px + inset 0.75rem + зазор */
}

/* Range inputs */
.pd-filter-bar__range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pd-filter-bar__range-input {
  min-width: 0;
  flex: 1;
  text-align: center;
}

.pd-filter-bar__range-sep {
  color: var(--pd-muted);
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Checkboxes inline */
.pd-filter-bar__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.pd-filter-bar__checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  border: 1px solid var(--pd-border);
  background: var(--pd-bg);
  color: var(--pd-text);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}

.pd-filter-bar__checkbox-item:hover {
  border-color: var(--pd-accent);
  background: rgba(200, 16, 46, 0.04);
}

.pd-filter-bar__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.pd-filter-bar__checkbox:checked + span {
  /* handled by parent label state below */
}

.pd-filter-bar__checkbox-item:has(.pd-filter-bar__checkbox:checked) {
  background: var(--pd-fill);
  border-color: var(--pd-fill);
  color: var(--pd-fill-text);
}

/* Dropdown multi-select */
.pd-filter-bar__multiselect-dropdown {
  position: relative;
}

.pd-filter-bar__dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
  background: var(--pd-bg);
  color: var(--pd-text);
}

.pd-filter-bar__dropdown-btn[aria-expanded="true"] {
  border-color: var(--pd-accent);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.pd-filter-bar__dropdown-menu {
  position: absolute;
  inset-block-start: calc(100% + 4px);
  inset-inline-start: 0;
  min-width: 100%;
  max-width: 280px;
  max-height: 220px;
  overflow-y: auto;
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.pd-filter-bar__dropdown-menu .pd-filter-bar__checkbox-item {
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  padding: 0.375rem 0.625rem;
}

.pd-filter-bar__dropdown-menu .pd-filter-bar__checkbox-item:hover {
  background: var(--pd-bg);
}

.pd-filter-bar__dropdown-menu .pd-filter-bar__checkbox-item:has(.pd-filter-bar__checkbox:checked) {
  background: rgba(200, 16, 46, 0.08);
  color: var(--pd-accent);
}

/* Footer with reset button */
.pd-filter-bar__footer {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-block-start: 1rem;
  padding-block-start: 0.75rem;
  border-block-start: 1px solid var(--pd-border);
}

.pd-filter-bar__reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--pd-border);
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--pd-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pd-muted);
  padding: 0.375rem 0.875rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.pd-filter-bar__reset-btn:hover {
  color: var(--pd-text);
  border-color: var(--pd-text);
  background: var(--pd-bg);
}

/* Active filter badges */
.pd-filter-bar__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0 0.25rem;
}

.pd-filter-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.4rem 0.2rem 0.75rem;
  border-radius: 100px;
  background: var(--pd-fill);
  color: var(--pd-fill-text);
  font-family: var(--pd-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  animation: badgePop 0.18s var(--pd-ease) both;
}

@keyframes badgePop {
  from { transform: scale(0.75); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.pd-filter-bar__badge-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  color: inherit;
  transition: background 0.15s;
}

.pd-filter-bar__badge-remove:hover {
  background: rgba(255, 255, 255, 0.4);
}

.pd-filter-bar__badge-remove:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 1px;
}

/* Active count bubble inside toggle button */
.pd-filter-bar__toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  background: var(--pd-fill);
  color: var(--pd-fill-text);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

/* "Nothing found" placeholder */
.mod-filter-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--pd-muted);
}

.mod-filter-empty p {
  font-size: 1rem;
  margin: 0;
}

/* Row animations */
@keyframes modRowFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.mod-table tbody tr {
  transition: opacity 0.15s var(--pd-ease);
}

.mod-table tbody tr.mod-row--hidden {
  display: none;
}

.mod-table--animated tbody tr:not(.mod-row--hidden) {
  animation: modRowFadeIn 0.18s ease-out both;
}

/* Страница модификаций: фильтры сбоку + таблица; зебра строк */
.mod-page-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

/* Modifications pages: чуть шире контейнер, чтобы:
   1) фильтры визуально оказывались левее
   2) таблица занимала больше места (меньше горизонтального скролла) */
.pd-inner--modifications {
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

@media (min-width: 992px) {
  .mod-page-layout {
    gap: 1rem;
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  }

  .mod-page-layout__aside {
    position: sticky;
    top: 1rem;
    align-self: start;
  }
}

.mod-page-layout__aside .pd-filter-bar {
  margin-bottom: 0;
  margin-block-end: 0;
}

/* Компактнее отступы и сетка внутри фильтров (только на страницах модификаций) */
.pd-inner--modifications .mod-page-layout__aside .pd-filter-bar {
  padding: 1.1rem 1.1rem 0.9rem;
}

.pd-inner--modifications .mod-page-layout__aside .pd-filter-bar__grid {
  gap: 0.85rem 0.95rem;
}

/* В узком сайдбаре не даем кнопке "Свернуть" выходить за рамки блока */
.pd-inner--modifications .mod-page-layout__aside .pd-filter-bar__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.5rem;
}

.pd-inner--modifications .mod-page-layout__aside .pd-filter-bar__title-row {
  min-width: 0;
  overflow: hidden; /* не даём длинному счётчику наезжать на кнопку */
}

/* Заголовок «Фильтры» не сжимаем; счётчик урезается многоточием */
.pd-inner--modifications .mod-page-layout__aside .pd-filter-bar__title {
  flex-shrink: 0;
}

.pd-inner--modifications .mod-page-layout__aside .pd-filter-bar__counter {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-inner--modifications .mod-page-layout__aside .pd-filter-bar__toggle-btn {
  justify-self: end;
  min-width: 0;
  flex-shrink: 0;
  padding-inline: 0.35rem;
  position: relative;
  z-index: 1;
  background: var(--pd-surface, #fff); /* поверх возможного «хвоста» текста */
}

.mod-page-layout__main {
  min-width: 0; /* чтобы таблица/скролл корректно сжимались */
}

.mod-page-layout__aside .pd-filter-bar__grid {
  grid-template-columns: 1fr;
}

.mod-page-layout__aside .pd-filter-bar__item--search {
  grid-column: 1;
}

/* В сайдбаре у фильтров сетка всегда 1-колоночная, поэтому не даём
   глобальному правилу span-2 ломать разметку на вьюпортах >=768px. */
@media (min-width: 768px) {
  .mod-page-layout__aside .pd-filter-bar__item--search,
  .mod-page-layout__aside .pd-filter-bar__item--category {
    grid-column: 1 / -1;
  }
}

.pd-page .mod-table tbody tr:nth-child(even):not(.mod-row--hidden) {
  background: var(--pd-bg-alt);
}

/* Ячейка «цвет корпуса» — стиль Simes: квадрат + код */
.mod-simes-color {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  vertical-align: middle;
}

.mod-simes-color__swatch {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 2px;
  border: 1px solid var(--pd-border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.mod-simes-color__code {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--pd-text);
}

/* Ячейка КСС / угол — мини-диаграмма + подпись */
.mod-beam-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  vertical-align: middle;
  color: var(--pd-text);
}

.mod-beam-svg {
  display: block;
  color: var(--pd-text);
  opacity: 0.92;
}

.mod-beam-cell__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pd-muted);
  line-height: 1.2;
}

/* Mobile: collapse filter bar by default */
@media (max-width: 575px) {
  .pd-filter-bar__grid {
    grid-template-columns: 1fr;
  }

  .pd-filter-bar__item--search {
    grid-column: 1;
  }

  .pd-filter-bar__toggle-btn {
    gap: 0.4rem;
  }
}

.pd-filter-bar .btn-primary {
  background: var(--pd-fill);
  border-color: var(--pd-fill);
  border-radius: 100px;
  font-weight: 600;
}

.pd-filter-bar .btn-primary:hover {
  background: var(--pd-fill-hover);
  border-color: var(--pd-fill-hover);
}

/* ── Contact Channel Card ──────────────────────────────────────── */
.pd-channel-card {
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  transition: transform 0.25s var(--pd-ease), box-shadow 0.25s var(--pd-ease);
}

.pd-channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pd-channel-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--pd-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pd-text);
}

.pd-channel-card__title {
  font-family: var(--pd-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pd-text);
  margin: 0;
}

.pd-channel-card__content {
  font-size: 0.9375rem;
  color: var(--pd-muted);
  line-height: 1.65;
  flex: 1;
}

.pd-channel-card__content a {
  color: var(--pd-text);
  text-decoration: none;
  font-weight: 600;
}

.pd-channel-card__content a:hover {
  color: var(--pd-accent);
}

/* ── Map Section ───────────────────────────────────────────────── */
.pd-map-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .pd-map-grid { grid-template-columns: 1fr; }
}

.pd-map-placeholder {
  background: var(--pd-bg-alt);
  border-radius: 1.25rem;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pd-muted);
  font-size: 0.9375rem;
  border: 1px solid var(--pd-border);
}

.pd-map-sidebar__block {
  margin-block-end: 1.5rem;
}

.pd-map-sidebar__title {
  font-family: var(--pd-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pd-muted);
  margin-block-end: 0.5rem;
}

.pd-map-sidebar__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pd-text);
  margin: 0;
}

/* ── Department Card ───────────────────────────────────────────── */
.pd-dept-card {
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: 1rem;
  padding: 2rem;
}

.pd-dept-card__title {
  font-family: var(--pd-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--pd-text);
  margin-block-end: 0.35rem;
}

.pd-dept-card__meta {
  font-size: 0.8125rem;
  color: var(--pd-muted);
  margin-block-end: 0.75rem;
}

.pd-dept-card__person {
  font-size: 0.9375rem;
  color: var(--pd-text);
  margin-block-end: 0.5rem;
}

.pd-dept-card__links {
  font-size: 0.875rem;
  color: var(--pd-muted);
}

.pd-dept-card__links a {
  color: var(--pd-text);
  text-decoration: none;
  font-weight: 600;
}

.pd-dept-card__links a:hover {
  color: var(--pd-accent);
}

/* ── Legal Details ─────────────────────────────────────────────── */
.pd-legal-block {
  background: var(--pd-bg-alt);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 600px;
}

.pd-legal-block__title {
  font-family: var(--pd-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pd-text);
  margin-block-end: 1rem;
}

.pd-legal-block p {
  font-size: 0.9375rem;
  color: var(--pd-muted);
  margin-block-end: 0.35rem;
}

/* ── CTA Checklist ─────────────────────────────────────────────── */
.pd-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.pd-checklist li {
  position: relative;
  padding-inline-start: 1.5rem;
  padding-block: 0.3rem;
  font-size: 0.9375rem;
  color: var(--pd-muted);
}

.pd-checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--pd-accent);
  font-weight: 700;
}

/* ── Pagination inside pd-page ─────────────────────────────────── */
.pd-page .pagination .page-link {
  color: var(--pd-text);
  border-color: var(--pd-border);
  background: var(--pd-surface);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
}

.pd-page .pagination .page-link:hover {
  background: var(--pd-bg-alt);
  border-color: var(--pd-text);
}

.pd-page .pagination .page-item.active .page-link {
  background: var(--pd-fill);
  border-color: var(--pd-fill);
  color: var(--pd-fill-text);
}

/* ── Breadcrumbs (pd-page generic) ─────────────────────────────── */
.pd-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pd-muted);
}

.pd-breadcrumbs a {
  color: var(--pd-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.pd-breadcrumbs a:hover {
  color: var(--pd-text);
}

.pd-breadcrumbs .bc-sep {
  opacity: 0.4;
}

.pd-breadcrumbs .bc-current {
  color: var(--pd-text);
  font-weight: 600;
}

/* ================================================================
   Modification Detail Page
   ================================================================ */

/* Hero override — compact centered hero for modification page */
.mod-detail-hero {
  min-height: clamp(280px, 40svh, 420px);
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 2.5rem) clamp(3rem, 6vw, 4.5rem);
  background: var(--pd-bg);
  text-align: center;
  align-items: center;
  justify-content: center;
}

.mod-detail-hero .pd-hero__breadcrumbs {
  position: static;
  margin-block-end: 2rem;
  justify-content: center;
}

.mod-detail-hero .pd-section__label {
  margin-block-end: 0.75rem;
}

.mod-detail-hero .pd-section__title {
  margin-block-end: 1.25rem;
}

/* Meta row (артикул + базовая модель) */
.mod-detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-block-end: 2rem;
  font-size: 0.9rem;
  color: var(--pd-muted);
}

.mod-detail-hero__article {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mod-detail-hero__article-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mod-detail-hero__article code {
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--pd-bg-alt);
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  color: var(--pd-text);
}

.mod-detail-hero__sep {
  color: var(--pd-border);
  font-size: 1.2rem;
}

.mod-detail-hero__product a {
  color: var(--pd-accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}

.mod-detail-hero__product a:hover {
  opacity: 0.75;
}

/* Product main image block */
.mod-detail-image {
  background: var(--pd-bg);
}

.mod-detail-image__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.mod-detail-image__link {
  display: block;
  margin-block-start: 1.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
}

.mod-detail-image__link:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.mod-detail-image__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.mod-detail-image__caption {
  margin-block-start: 1rem;
  font-size: 0.875rem;
  color: var(--pd-muted);
}

.mod-detail-image__caption a {
  color: var(--pd-accent);
  text-decoration: none;
  font-weight: 500;
}

.mod-detail-image__caption a:hover {
  text-decoration: underline;
}

/* Characteristics spec table */
.mod-detail-specs {
  background: var(--pd-bg-alt);
}

.mod-spec-table-wrap {
  max-width: 640px;
}

.mod-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.mod-spec-table tr {
  border-bottom: 1px solid var(--pd-border);
}

.mod-spec-table tr:last-child {
  border-bottom: none;
}

.mod-spec-table th,
.mod-spec-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: middle;
}

.mod-spec-table th {
  width: 45%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-muted);
  background: none;
}

.mod-spec-table td {
  font-weight: 500;
  color: var(--pd-text);
}

/* Raw (unformatted) characteristics fallback */
.mod-spec-raw {
  max-width: 640px;
}

.mod-spec-raw__text {
  font-family: var(--pd-sans);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--pd-muted);
  white-space: pre-wrap;
  background: var(--pd-surface);
  border: 1px solid var(--pd-border);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 0;
}

/* Description block */
.mod-detail-desc {
  max-width: 720px;
}

.mod-detail-desc .pd-section__label {
  margin-block-end: 0.75rem;
}

.mod-detail-desc__body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--pd-muted);
  white-space: pre-line;
}

/* Bottom action buttons row */
.mod-detail-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--pd-border);
  padding-top: 2rem;
}

@media (max-width: 600px) {
  .mod-detail-hero {
    text-align: left;
  }
  .mod-detail-hero .pd-hero__breadcrumbs {
    justify-content: flex-start;
  }
  .mod-detail-hero__meta {
    justify-content: flex-start;
  }
  .mod-detail-hero .pd-hero__cta {
    justify-content: flex-start;
  }
  .mod-spec-table th {
    width: 50%;
  }
}

/* ================================================================
   PREMIUM PRESENTATION — Slide Element Reveal Animations
   Каждый элемент внутри слайда появляется плавно при скролле.
   Родительская секция получает .visible от initScrollReveal() в JS.
   ================================================================ */

/* ── Pole section: тело слева, фото справа ─────────────────────── */
.pd-pole__body {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.9s var(--pd-ease), transform 0.9s var(--pd-ease);
}
.pd-pole.visible .pd-pole__body {
  opacity: 1;
  transform: translateX(0);
}

.pd-pole__visual {
  opacity: 0;
  transform: translateX(32px) scale(0.97);
  transition: opacity 0.9s var(--pd-ease), transform 0.9s var(--pd-ease);
  transition-delay: 0.18s;
}
.pd-pole.visible .pd-pole__visual {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ── Color showcase: каскадное появление ───────────────────────── */
.pd-color-showcase__image-wrap {
  opacity: 0;
  transform: scale(0.96) translateY(20px);
  transition: opacity 1s var(--pd-ease), transform 1s var(--pd-ease);
  transition-delay: 0.08s;
}
.pd-color-showcase.visible .pd-color-showcase__image-wrap {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.pd-color-showcase .pd-section__label {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--pd-ease), transform 0.65s var(--pd-ease);
  transition-delay: 0.28s;
}
.pd-color-showcase.visible .pd-section__label {
  opacity: 1;
  transform: translateY(0);
}

.pd-color-showcase .pd-section__title {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--pd-ease), transform 0.7s var(--pd-ease);
  transition-delay: 0.38s;
}
.pd-color-showcase.visible .pd-section__title {
  opacity: 1;
  transform: translateY(0);
}

.pd-color-showcase__meta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--pd-ease), transform 0.6s var(--pd-ease);
  transition-delay: 0.5s;
}
.pd-color-showcase.visible .pd-color-showcase__meta {
  opacity: 1;
  transform: translateY(0);
}

.pd-color-showcase__hr {
  opacity: 0;
  transition: opacity 0.5s var(--pd-ease);
  transition-delay: 0.55s;
}
.pd-color-showcase.visible .pd-color-showcase__hr {
  opacity: 1;
}

.pd-color-showcase__colors {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--pd-ease), transform 0.6s var(--pd-ease);
  transition-delay: 0.6s;
}
.pd-color-showcase.visible .pd-color-showcase__colors {
  opacity: 1;
  transform: translateY(0);
}

/* ── Model section: заголовок + вьюер ──────────────────────────── */
.pd-model .pd-inner > .pd-section__label {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--pd-ease), transform 0.65s var(--pd-ease);
}
.pd-model.visible .pd-inner > .pd-section__label {
  opacity: 1;
  transform: translateY(0);
}

.pd-model .pd-inner > .pd-section__title {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--pd-ease), transform 0.7s var(--pd-ease);
  transition-delay: 0.1s;
}
.pd-model.visible .pd-inner > .pd-section__title {
  opacity: 1;
  transform: translateY(0);
}

.pd-model .pd-model__viewer-outer {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--pd-ease), transform 0.9s var(--pd-ease);
  transition-delay: 0.28s;
}
.pd-model.visible .pd-model__viewer-outer {
  opacity: 1;
  transform: translateY(0);
}

/* ── Exterior gallery: заголовок + трек ────────────────────────── */
.pd-exterior > .pd-inner {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--pd-ease), transform 0.7s var(--pd-ease);
}
.pd-exterior.visible > .pd-inner {
  opacity: 1;
  transform: translateY(0);
}

.pd-exterior__track {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--pd-ease), transform 0.85s var(--pd-ease);
  transition-delay: 0.22s;
}
.pd-exterior.visible .pd-exterior__track {
  opacity: 1;
  transform: translateY(0);
}

/* ── Description section: более выразительное появление ─────────── */
.pd-description__inner {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--pd-ease), transform 1s var(--pd-ease);
}
.pd-description.visible .pd-description__inner {
  opacity: 1;
  transform: translateY(0);
}

/* ── Related products: карточки по очереди ──────────────────────── */
.pd-related .pd-inner > .pd-section__label,
.pd-related .pd-inner > .pd-section__title {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--pd-ease), transform 0.7s var(--pd-ease);
}
.pd-related.visible .pd-inner > .pd-section__label {
  opacity: 1;
  transform: translateY(0);
}
.pd-related.visible .pd-inner > .pd-section__title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.pd-related__card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--pd-ease), transform 0.65s var(--pd-ease);
}
.pd-related.visible .pd-related__card { opacity: 1; transform: translateY(0); }
.pd-related.visible .pd-related__card:nth-child(1) { transition-delay: 0.05s; }
.pd-related.visible .pd-related__card:nth-child(2) { transition-delay: 0.14s; }
.pd-related.visible .pd-related__card:nth-child(3) { transition-delay: 0.23s; }
.pd-related.visible .pd-related__card:nth-child(4) { transition-delay: 0.32s; }
.pd-related.visible .pd-related__card:nth-child(5) { transition-delay: 0.41s; }

/* ── Modifications card: медиа слева, текст справа ─────────────── */
.pd-mods-card__media {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.9s var(--pd-ease), transform 0.9s var(--pd-ease);
}
.pd-section.visible .pd-mods-card__media {
  opacity: 1;
  transform: translateX(0);
}

.pd-mods-card__body {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.9s var(--pd-ease), transform 0.9s var(--pd-ease);
  transition-delay: 0.18s;
}
.pd-section.visible .pd-mods-card__body {
  opacity: 1;
  transform: translateX(0);
}

/* ── Highlight cards внутри описания: каскад ───────────────────── */
.pd-highlight {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s var(--pd-ease),
    transform 0.65s var(--pd-ease),
    box-shadow 0.25s var(--pd-ease);
}
.pd-description.visible .pd-highlight {
  opacity: 1;
  transform: translateY(0);
}
.pd-description.visible .pd-highlight:nth-child(1) { transition-delay: 0.18s; }
.pd-description.visible .pd-highlight:nth-child(2) { transition-delay: 0.28s; }
.pd-description.visible .pd-highlight:nth-child(3) { transition-delay: 0.38s; }

/* ================================================================
   WOW EFFECTS — 3D tilt, spotlight, glare, line draw, breathe, accordion
   ================================================================ */

/* ── (7) Дыхание: цена в hero ───────────────────────────────────── */
.pd-hero__meta.pd-breathe {
  animation: pd-breathe 4s ease-in-out infinite;
}

/* ── (6) Прорисовка линии при появлении секции ──────────────────── */
.pd-line-draw {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.65s var(--pd-ease);
}
.pd-description.visible .pd-line-draw {
  transform: scaleX(1);
}

/* ── (2) Spotlight за курсором в hero ───────────────────────────── */
.pd-spotlight-zone {
  --pd-spotlight-x: 50%;
  --pd-spotlight-y: 50%;
  position: relative;
}
.pd-spotlight-zone::before {
  content: '';
  position: absolute;
  inset: -80px;
  background: radial-gradient(
    circle 220px at var(--pd-spotlight-x) var(--pd-spotlight-y),
    transparent 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.6;
}
[data-theme="dark"] .pd-spotlight-zone::before {
  background: radial-gradient(
    circle 220px at var(--pd-spotlight-x) var(--pd-spotlight-y),
    transparent 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  mix-blend-mode: normal;
  opacity: 0.5;
}

/* ── (1)(8) 3D tilt + многослойная глубина ───────────────────────── */
.pd-related__track { perspective: 1200px; }
#pd-modifications-link .pd-inner { perspective: 1200px; }

.pd-tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, box-shadow 0.25s var(--pd-ease);
  will-change: transform;
}
.pd-tilt-card .pd-depth-layer {
  transition: transform 0.2s ease-out;
  will-change: transform;
}

/* (5) Световой блик за курсором на карточке ─────────────────────── */
.pd-card-glare {
  position: relative;
  overflow: hidden;
}
.pd-card-glare::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle 100px at var(--pd-mouse-x, 50%) var(--pd-mouse-y, 50%),
    rgba(255, 255, 255, 0.2) 0%,
    transparent 55%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pd-card-glare:hover::after {
  opacity: 1;
}
[data-theme="dark"] .pd-card-glare::after {
  background: radial-gradient(
    circle 100px at var(--pd-mouse-x, 50%) var(--pd-mouse-y, 50%),
    rgba(255, 255, 255, 0.08) 0%,
    transparent 55%
  );
}

/* ── (9) Раскрытие «гармошкой» для блоков преимуществ ───────────── */
.pd-description__highlights.pd-accordion-reveal .pd-highlight {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition:
    max-height 0.55s var(--pd-ease),
    opacity 0.5s var(--pd-ease),
    transform 0.5s var(--pd-ease),
    box-shadow 0.25s var(--pd-ease);
}
.pd-description.visible .pd-description__highlights.pd-accordion-reveal .pd-highlight {
  max-height: 300px;
  overflow: visible;
  opacity: 1;
  transform: translateY(0);
}
.pd-description.visible .pd-description__highlights.pd-accordion-reveal .pd-highlight:nth-child(1) { transition-delay: 0.1s; }
.pd-description.visible .pd-description__highlights.pd-accordion-reveal .pd-highlight:nth-child(2) { transition-delay: 0.22s; }
.pd-description.visible .pd-description__highlights.pd-accordion-reveal .pd-highlight:nth-child(3) { transition-delay: 0.34s; }

/* ── prefers-reduced-motion: отключить вау-эффекты ──────────────── */
@media (prefers-reduced-motion: reduce) {
  .pd-hero__meta.pd-breathe { animation: none; }
  .pd-line-draw { transform: scaleX(1); transition: none; }
  .pd-spotlight-zone::before { display: none; }
  .pd-tilt-card { transform: none !important; will-change: auto; }
  .pd-tilt-card .pd-depth-layer { transform: none !important; }
  .pd-card-glare::after { opacity: 0 !important; }
  .pd-description__highlights.pd-accordion-reveal .pd-highlight {
    max-height: none;
    overflow: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── prefers-reduced-motion: все анимации отключить ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .pd-pole__body,
  .pd-pole__visual,
  .pd-color-showcase .pd-section__label,
  .pd-color-showcase .pd-section__title,
  .pd-color-showcase__image-wrap,
  .pd-color-showcase__color-name,
  .pd-color-showcase__colors,
  .pd-model .pd-inner > .pd-section__label,
  .pd-model .pd-inner > .pd-section__title,
  .pd-model .pd-model__viewer-outer,
  .pd-exterior > .pd-inner,
  .pd-exterior__track,
  .pd-description__inner,
  .pd-related .pd-inner > .pd-section__label,
  .pd-related .pd-inner > .pd-section__title,
  .pd-related__card,
  .pd-mods-card__media,
  .pd-mods-card__body,
  .pd-highlight {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ================================================================
   NEW CSS CLASSES — заменяют inline-стили в Detail.cshtml
   ================================================================ */

/* ── Hero trust badges (премиум: как у B&O/Apple — гарантия, срок службы) ─── */
.pd-hero__trust {
  display: flex;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pd-border);
}

.pd-hero__trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--pd-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pd-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background: var(--pd-bg-alt);
  border: 1px solid var(--pd-border);
}

.pd-hero__trust-badge svg {
  color: var(--pd-text);
  flex-shrink: 0;
  opacity: 0.85;
}

.pd-hero__trust-badge--guarantee {
  color: var(--pd-gold);
  border-color: rgba(200, 16, 46, 0.25);
  background: rgba(200, 16, 46, 0.06);
}

.pd-hero__trust-badge--guarantee svg {
  color: var(--pd-gold);
}

/* Совместимость: старый класс .pd-hero__features (если используется на других страницах) */
.pd-hero__features {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--pd-muted);
  border-top: 1px solid var(--pd-border);
  padding-top: 1.5rem;
}

.pd-hero__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pd-hero__feature svg {
  color: var(--pd-text);
  flex-shrink: 0;
}

/* ── Pole section: цена и цитата ─────────────────────────────────── */
.pd-pole__quote {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--pd-text);
  margin: 1.5rem 0;
}

.pd-pole__price-wrap {
  margin-top: 2rem;
}

.pd-pole__price {
  font-family: var(--pd-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pd-text);
}

/* ── Description: лид-текст + сетка преимуществ (без «пустой» колонки) ─ */
.pd-description__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  align-items: stretch;
  margin-top: 2.5rem;
  text-align: start;
}

.pd-description__text {
  text-align: start;
  max-width: 42rem;
  margin-inline: auto;
  width: 100%;
}

.pd-description__highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pd-description__highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  /* три карточки: нижняя по центру, без «обломка» в одной колонке */
  .pd-description__highlights .pd-highlight:nth-child(3):last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: min(32rem, 100%);
  }
}

@media (min-width: 960px) {
  .pd-description__highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .pd-description__highlights .pd-highlight:nth-child(3):last-child {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
  }
}

.pd-highlight {
  background: var(--pd-surface);
  padding: 1.125rem 1.25rem;
  border-radius: 0;
  border: 1px solid var(--pd-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.pd-highlight:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07) !important;
}

.pd-highlight__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pd-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
  color: var(--pd-text);
}

.pd-highlight__block {
  padding: 0;
  border-top: none;
  flex: 1;
  min-width: 0;
}

.pd-highlight__title {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--pd-text);
  margin-top: 0;
  line-height: 1.3;
}

.pd-highlight__text {
  font-size: 0.875rem;
  color: var(--pd-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Alternating slide backgrounds для визуального ритма ─────────── */
.pd-pole       { background: var(--pd-bg); }
.pd-color-showcase { background: var(--pd-bg-alt); }
.pd-exterior   { background: var(--pd-bg); }
.pd-description { background: var(--pd-bg-alt); }
.pd-related    { background: var(--pd-bg); }

/* ── Slide separator: тонкая горизонтальная черта между секциями ─── */
.pd-slide + .pd-slide::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--pd-border);
  margin: 0 clamp(1.5rem, 6vw, 4rem);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.pd-slide { position: relative; }

/* ----------------------------------------------------------------
   LIGHTBOX (DESIGN-COMPREHENSIVE: увеличение изображения по клику)
   ---------------------------------------------------------------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox-overlay .lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  pointer-events: none;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.pd-lightbox-src {
  cursor: zoom-in;
}

/* ----------------------------------------------------------------
   ПЛАВАЮЩАЯ CTA ПРИ СКРОЛЛЕ (pd-float-cta)
   ---------------------------------------------------------------- */
.pd-float-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-inline-end: 3rem; /* место под кнопку «Наверх» (40px + отступ), чтобы не перекрывались */
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s var(--pd-ease), transform 0.3s var(--pd-ease);
}

.pd-float-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .pd-float-cta {
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 0;
    padding: 1rem;
    padding-inline-end: 1rem; /* на мобиле отступ справа не нужен под круг — кнопка «Наверх» выше */
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    justify-content: center;
  }

  /* кнопка «Наверх» выше плавающей CTA-полосы, чтобы не перекрываться */
  .pd-scroll-top {
    bottom: 5.5rem;
    inset-inline-end: 1rem;
  }

  [data-theme="dark"] .pd-float-cta.visible {
    background: rgba(42, 42, 42, 0.98);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 639px) {
  .pd-hero__trust { gap: 0.75rem 1.25rem; }
  .pd-hero__trust-badge { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
  .pd-hero__features { gap: 1.25rem; font-size: 0.8rem; }
}

/* ═══════════════════════════════════════════════════════════════
   FIXTURE VISUALIZER — color configurator
   ═══════════════════════════════════════════════════════════════ */

.pd-config__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Dark viewer box */
.pd-config__viewer {
  position: relative;
  background: #0d0d0d;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* PNG render — слегка поднимаем ключ, иначе multiply/color дают «всё чёрное» на тёмных студийных кадрах */
.pd-config__viewer .pd-fixture-img {
  filter: brightness(1.5) contrast(0.9);
}

.pd-fixture-img {
  position: relative;
  z-index: 2;
  width: 85%;
  height: 85%;
  object-fit: contain;
  display: block;
}

/* Корпус: по умолчанию color (оттенок/насыщенность краски + блики/тени кадра); для очень тёмных — multiply в JS */
.pd-body-color-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  mix-blend-mode: color;
  background: #b0b0b0;
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* Volumetric light shaft (SVG): frustum from aperture to ground spot */
.pd-light-volume {
  position: absolute;
  inset: 0;
  z-index: 4;
  mix-blend-mode: screen;
  pointer-events: none;
  overflow: hidden;
}

.pd-light-volume svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Glow layer: screen blends LED hotspot on top */
.pd-glow-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  mix-blend-mode: screen;
  transition: background 0.5s ease;
}

/* Ground glow spot (behind the image) */
.pd-ground-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: background 0.5s ease;
}

/* Controls column */
.pd-config__controls { display: flex; flex-direction: column; gap: 2rem; }
.pd-config__section  { display: flex; flex-direction: column; gap: 0; }
.pd-config__label    { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pd-muted); margin-bottom: 0.6rem; }

/* Color swatches */
.pd-config__swatches { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.pd-config__swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  background-color: var(--swatch-color, var(--pd-muted));
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.pd-config__swatch:hover { transform: scale(1.15); }
.pd-config__swatch.is-active {
  border-color: var(--pd-text);
  box-shadow: 0 0 0 3px var(--pd-bg), 0 0 0 5px var(--pd-text);
  transform: scale(1.1);
}

.pd-config__selected-name {
  font-size: 0.78rem;
  color: var(--pd-muted);
  margin-top: 0.5rem;
  min-height: 1.2em;
  display: block;
}

/* Temperature buttons */
.pd-config__temps { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.pd-config__temp-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: 0;
  background: var(--pd-bg-alt);
  cursor: pointer;
  min-width: 80px;
  transition: border-color 0.2s, transform 0.15s;
}
.pd-config__temp-btn:hover { border-color: var(--pd-text); transform: translateY(-2px); }
.pd-config__temp-btn.is-active {
  border-color: var(--pd-text);
  box-shadow: inset 0 0 0 1px var(--pd-text);
}

.pd-config__temp-k    { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.pd-config__temp-unit { font-size: 0.65rem; color: var(--pd-muted); margin-top: -4px; }
.pd-config__temp-label{ font-size: 0.65rem; color: var(--pd-muted); text-align: center; }
.pd-config__temp-dot  {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--glow, var(--pd-accent));
  box-shadow: 0 0 5px var(--glow, var(--pd-accent)), 0 0 10px var(--glow, var(--pd-accent));
  margin-top: 0.2rem;
}

/* Summary + CTA */
.pd-config__summary { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }
.pd-config__summary-text { font-size: 0.85rem; color: var(--pd-muted); margin-bottom: 1rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pd-body-color-layer, .pd-glow-layer, .pd-ground-glow, .pd-light-volume { transition: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
  .pd-config__layout { grid-template-columns: 1fr; }
  .pd-config__viewer { max-width: 340px; margin: 0 auto; }
}
