/* Детальная карточка товара — редизайн по макету Figma (Техпортавтосервис).
   Палитра: #DF362D red, #19366A navy, #0B1A33 text, #F0F2F7 bg, #E1E4E7 border. */

.pd-wrap { background: #fff; }

/* ===== Хлебные крошки + H1 ===== */
.pd-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 28px 0 20px;
  font-size: 13px;
  line-height: 1;
}
.pd-crumbs a { color: #19366A; }
.pd-crumbs a:hover { color: #DF362D; }
.pd-crumbs .pd-crumb-sep { color: #C0C4CC; }
.pd-crumbs .pd-crumb-current { color: #6B7688; }

.pd-title {
  color: #0B1A33;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 40px;
}

/* ===== Верхний блок: галерея + инфо ===== */
.pd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 524px;
  align-items: start;
  gap: 32px;
}

/* Галерея: миниатюры + слайдер-трек (scroll-snap на всех брейкпоинтах) */
.pd-gallery {
  display: flex;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}
.pd-thumbs-col {
  display: flex;
  gap: 4px;
}
.pd-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80px;
  /* высоту синхронизирует JS с большим фото; max-height — защита до JS */
  height: auto;
  max-height: 474px;
  overflow-y: auto;
  /* нативный скроллбар скрыт — используем кастомный (.pd-scrollbar) */
  scrollbar-width: none;
}
.pd-thumbs::-webkit-scrollbar { display: none; }

/* Кастомная полоса прокрутки справа от превью */
.pd-scrollbar {
  width: 8px;
  border-radius: 100px;
  background: #F0F2F7;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.pd-scrollbar-thumb {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  border-radius: 100px;
  background: #C0C4CC;
  transition: background 0.15s;
  touch-action: none;
}
.pd-scrollbar:hover .pd-scrollbar-thumb { background: #9aa2ad; }
.pd-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: #F0F2F7;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb.active { border-color: #DF362D; opacity: 1; }

/* Трек: один DOM для десктопа и мобилки */
.pd-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: #F0F2F7;
  min-width: 0;
  flex: 1;
  scrollbar-width: none;
}
.pd-slider-track::-webkit-scrollbar { display: none; }
.pd-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  overflow: hidden;
}
.pd-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Мобильные точки (на десктопе скрыты) */
.pd-dots { display: none; }
.pd-thumb-nav { display: none; }

/* Компактный desktop-блок карточки: широкая галерея, превью под большим фото. */
@media (min-width: 901px) {
  .pd-hero { grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; }
  .pd-gallery { flex-direction: column; gap: 12px; align-items: stretch; }
  .pd-slider-track { order: 1; width: 100%; }
  .pd-thumbs-col { order: 2; width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; grid-template-rows: 54px 6px; column-gap: 8px; row-gap: 6px; align-items: center; }
  .pd-thumbs { grid-column: 2; grid-row: 1; flex-direction: row; width: 100%; height: 54px !important; max-height: none; overflow-x: auto; overflow-y: hidden; gap: 8px; }
  .pd-thumb { width: 72px; height: 54px; border-radius: 9px; }
  .pd-thumb-nav { display: flex; align-items: center; justify-content: center; width: 28px; height: 34px; padding: 0; border: 0; border-radius: 7px; background: #F0F2F7; color: #19366A; font-size: 24px; line-height: 1; cursor: pointer; }
  .pd-thumb-nav:hover { background: #E1E4E7; color: #DF362D; }
  .pd-thumb-prev { grid-column: 1; grid-row: 1; }
  .pd-thumb-next { grid-column: 3; grid-row: 1; }
  .pd-scrollbar { grid-column: 2; grid-row: 2; display: block !important; width: 100%; height: 6px; border-radius: 100px; background: #F0F2F7; }
  .pd-scrollbar-thumb { height: 6px; min-width: 30px; border-radius: 100px; background: #C0C4CC; }

  .pd-info { gap: 24px; }
  .pd-warranty { border-radius: 14px; padding: 12px; gap: 8px; font-size: 13px; line-height: 18px; }
  .pd-warranty svg { width: 20px; height: 20px; }
  .pd-buttons { border-radius: 14px; padding: 12px; gap: 12px; align-items: stretch; }
  .pd-btn { min-height: 64px; box-sizing: border-box; padding: 12px 16px; font-size: 14px; line-height: 20px; }
  .pd-btn-red { padding-left: 10px; padding-right: 10px; font-size: 13px; white-space: nowrap; }
  .pd-quick-specs { gap: 8px; }
  .pd-spec-row { gap: 16px; padding: 10px 0; font-size: 14px; line-height: 20px; }
  .pd-roll-link { gap: 6px; font-size: 14px; }
  .pd-advantages { border-radius: 16px; padding: 14px; gap: 8px; }
  .pd-adv-item { gap: 8px; }
  .pd-adv-item svg { width: 20px; height: 20px; }
  .pd-adv-text { font-size: 13px; line-height: 18px; padding-bottom: 8px; }
}

/* Инфо-колонка */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 0;
  min-width: 0;
}

/* Гарантия + кнопки */
.pd-buy-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-warranty {
  background: #F0F2F7;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0B1A33;
  font-size: 14px;
  line-height: 1.4;
}
.pd-warranty svg { width: 24px; height: 24px; flex-shrink: 0; }
.pd-buttons {
  background: #F0F2F7;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  /* Две кнопки в одной строке всегда равны по высоте самой высокой. */
  align-items: stretch;
  gap: 16px;
}
.pd-btn {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  text-align: center;
}
.pd-btn-red {
  background: #DF362D;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  box-shadow: 0 8px 16px rgba(223, 54, 45, 0.2);
}
.pd-btn-red:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(223, 54, 45, 0.3); }
.pd-btn-outline {
  background: #fff;
  color: #19366A;
  font-weight: 500;
  border: 2px solid #19366A;
}
.pd-btn-outline:hover { background: #19366A; color: #fff; }

/* Быстрые характеристики */
.pd-quick-specs { display: flex; flex-direction: column; gap: 12px; }
.pd-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  padding: 12px 0;
  border-bottom: 1px solid #F0F2F7;
  font-size: 16px;
  line-height: 1.4;
}
.pd-spec-row dt { color: #69717D; font-weight: 300; margin: 0; }
.pd-spec-row dd { color: #0B1A33; font-weight: 300; margin: 0; text-align: right; }
.pd-roll-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #DF362D;
  font-size: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.pd-roll-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.pd-roll-link:hover { opacity: 0.85; }

/* Карточка преимуществ */
.pd-advantages {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 32px rgba(25, 54, 106, 0.15);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pd-adv-item { display: flex; align-items: center; gap: 12px; }
.pd-adv-item svg { width: 24px; height: 24px; color: #19366A; flex-shrink: 0; }
.pd-adv-text {
  color: #19366A;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(25, 54, 106, 0.3);
  flex: 1;
}
.pd-adv-item:last-child .pd-adv-text { border-bottom: none; padding-bottom: 0; }

/* ===== Табы-якоря ===== */
.pd-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 80px 0 56px;
}
.pd-tab {
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 16px;
  line-height: 1;
  background: #fff;
  border: 2px solid #E1E4E7;
  color: #6B7688;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.pd-tab:hover { border-color: #19366A; color: #19366A; }
.pd-tab.active { background: #19366A; border-color: #19366A; color: #fff; }

/* ===== Секции контента ===== */
.pd-section { margin-bottom: 80px; scroll-margin-top: 140px; }
.pd-section-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 20px;
}
.pd-section-title::before {
  content: "";
  width: 56px;
  height: 4px;
  border-radius: 100px;
  background: #DF362D;
}
.pd-section-title h2,
.pd-section-title h3 {
  color: #0B1A33;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

/* Описание */
.pd-desc {
  color: #000;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}
.pd-desc p { margin: 0 0 14px; }
.pd-desc strong, .pd-desc b { font-weight: 500; }
.pd-desc h2, .pd-desc h3, .pd-desc h4 { color: #0B1A33; font-weight: 600; }
.pd-desc img { max-width: 100%; height: auto; border-radius: 12px; }
.pd-desc ul, .pd-desc ol { padding-left: 22px; }
.pd-desc.collapsed {
  max-height: 340px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
  mask-image: linear-gradient(180deg, #000 75%, transparent);
}
.pd-desc-toggle { margin-top: 16px; }
.pd-roll-link img.rot { transform: rotate(180deg); }
.pd-roll-link img { transition: transform 0.2s; }

/* Полная таблица характеристик */
.pd-specs-table { margin: 0; }
.pd-specs-table .pd-spec-row { padding: 14px 0; }
.pd-specs-table dt { flex: 0 0 40%; }
.pd-specs-table dd { flex: 1; text-align: left; }

/* Видеообзор */
.pd-video-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 1064px;
  border-radius: 20px;
  overflow: hidden;
  background: #F0F2F7;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
}
.pd-video-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.15s, transform 0.15s;
}
.pd-video-play svg { width: 24px; height: 24px; }
.pd-video-preview:hover .pd-video-play { background: #DF362D; transform: translate(-50%, -50%) scale(1.05); }
.pd-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 20px;
  display: block;
  background: #000;
}

/* Задачи применения */
.pd-tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.pd-task-card {
  background: #fff;
  border: 1px solid #EEF1F6;
  border-radius: 20px;
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pd-task-card:hover { box-shadow: 0 8px 24px rgba(25, 54, 106, 0.1); transform: translateY(-2px); }
.pd-task-num {
  color: #DF362D;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 12px;
}
.pd-task-card h4 { color: #0B1A33; font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.pd-task-card p { color: #69717D; font-size: 15px; font-weight: 300; line-height: 1.55; margin: 0; }

/* Преимущества (полный список) */
.pd-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.pd-benefit-card {
  background: #F0F2F7;
  border-radius: 20px;
  padding: 24px;
}
.pd-benefit-card h4 { color: #0B1A33; font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.pd-benefit-card p { color: #69717D; font-size: 15px; font-weight: 300; line-height: 1.55; margin: 0; }

/* Документы PDF */
.pd-docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd-docs-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #19366A;
  font-size: 16px;
  background: #F0F2F7;
  border-radius: 14px;
  padding: 14px 18px;
  transition: background 0.15s, color 0.15s;
}
.pd-docs-list a:hover { background: #DF362D; color: #fff; }
.pd-docs-list svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Сервис и обслуживание */
.pd-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 860px;
}
.pd-service-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid #F0F2F7;
  font-size: 16px;
}
.pd-service-list li b { color: #0B1A33; font-weight: 400; }
.pd-service-list li span { color: #69717D; text-align: right; font-weight: 300; white-space: nowrap; }

/* FAQ */
.pd-faq-list { max-width: 900px; display: flex; flex-direction: column; gap: 10px; }
.pd-faq-item {
  background: #F0F2F7;
  border-radius: 20px;
  padding: 0;
  border: none;
}
.pd-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  color: #0B1A33;
  font-size: 16px;
  font-weight: 500;
}
.pd-faq-item summary::-webkit-details-marker { display: none; }
.pd-faq-item summary svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s; }
.pd-faq-item[open] summary svg { transform: rotate(180deg); }
.pd-faq-answer {
  padding: 0 24px 18px;
  color: #69717D;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
}

/* ===== Липкие плашки (десктоп) — стеком друг под другом ===== */
#pd-sticky-stack {
  position: fixed;
  /* Сначала идут плавающие логотип и верхнее меню, затем плашки карточки. */
  top: 58px;
  left: 0;
  right: 0;
  z-index: 500;
  pointer-events: none;
}
.pd-sticky {
  background: #fff;
  box-shadow: 0 4px 16px rgba(25, 54, 106, 0.1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
}
.pd-sticky.show {
  max-height: 120px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.pd-sticky-inner {
  width: min(1280px, 100% - 64px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pd-sticky-header .pd-sticky-inner { padding: 8px 0; }
.pd-sticky-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.pd-sticky-photo {
  width: 64px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #F0F2F7;
  flex-shrink: 0;
  display: block;
}
.pd-sticky-title {
  font-size: 16px;
  font-weight: 400;
  color: #0B1A33;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 426px;
}
.pd-sticky-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pd-btn-sm { padding: 12px 24px !important; font-size: 14px !important; line-height: 16px !important; flex: none !important; }
.pd-sticky-tabsbar .pd-sticky-inner { padding: 12px 0; }
.pd-sticky-tabsbar .pd-tabs { margin: 0; }

/* ===== Модели для сравнения ===== */
.pd-compare {
  background: #F4F5F7;
  padding: 80px 0;
  scroll-margin-top: 140px;
}
.pd-compare .quick-grid { margin-top: 40px; }

/* ===== Новое сравнение моделей (старый .pd-compare сохраняется выше) ===== */
.pmc-section {
  --pmc-col: 212px;
  background: #F4F5F7;
  padding: 80px 0;
  scroll-margin-top: 228px;
}
.pmc-section .pd-section-title { margin-bottom: 40px; }
.pmc-root { min-width: 0; }
.pmc-card-shell {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
}
.pmc-scroll {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pmc-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 681px) {
  .pmc-scroll .pmc-product-image { cursor: grab; }
  .pmc-root:not(.is-static-desktop) .pmc-scroll .pmc-spec-value { cursor: grab; }
  .pmc-sticky-models .pmc-product { cursor: grab; }
  .pmc-spec-row:hover,
  .pmc-spec-row:hover .pmc-spec-value,
  .pmc-spec-row:hover .pmc-spec-value:first-child,
  .pmc-spec-row:has(.pmc-spec-value:hover),
  .pmc-spec-row:has(.pmc-spec-value:hover) .pmc-spec-value,
  .pmc-spec-row:has(.pmc-spec-value:hover) .pmc-spec-value:first-child { background: #F0F2F7; }
  .pmc-scroll.is-dragging { user-select: none; }
  .pmc-scroll.is-dragging .pmc-product-image { cursor: grabbing; }
  .pmc-root:not(.is-static-desktop) .pmc-scroll.is-dragging .pmc-spec-value { cursor: grabbing; }
  .pmc-sticky-models .pmc-scroll.is-dragging .pmc-product { cursor: grabbing; }
  .pmc-scroll.is-dragging a,
  .pmc-scroll.is-dragging img { pointer-events: none; }
  .pmc-root.is-static-desktop .pmc-scroll,
  .pmc-sticky-models.is-static .pmc-scroll { overflow-x: visible; }
  .pmc-root.is-static-desktop .pmc-content-width,
  .pmc-sticky-models.is-static .pmc-content-width {
    width: 100%;
    grid-template-columns: repeat(var(--pmc-count), minmax(0, 1fr));
  }
  .pmc-root.is-static-desktop .pmc-product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .pmc-root.is-static-desktop .pmc-filter-panel,
  .pmc-root.is-static-desktop .pmc-empty { width: 100%; }
  .pmc-root.is-static-desktop .pmc-product-title,
  .pmc-root.is-static-desktop .pmc-spec-value { overflow-wrap: anywhere; }
  .pmc-root.is-static-desktop .pmc-product:first-child,
  .pmc-root.is-static-desktop .pmc-spec-value:first-child {
    position: relative;
    left: auto;
    z-index: auto;
    box-shadow: none;
  }
  .pmc-root.is-static-desktop .pmc-product-image,
  .pmc-sticky-models.is-static .pmc-product-image,
  .pmc-sticky-models.is-static .pmc-product { cursor: default; }
}
.pmc-content-width {
  display: grid;
  grid-template-columns: repeat(var(--pmc-count), var(--pmc-col));
  width: max(100%, calc(var(--pmc-count) * var(--pmc-col)));
  min-width: 100%;
}
.pmc-products {
  align-items: stretch;
  background: #fff;
}
.pmc-product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  background: #fff;
}
.pmc-product:first-child {
  position: sticky;
  left: 0;
  z-index: 8;
  box-shadow: 8px 0 16px -16px rgba(25, 54, 106, 0.65);
}
.pmc-product-image {
  position: relative;
  width: 180px;
  height: 135px;
  overflow: hidden;
  border-radius: 10px;
  background: #F0F2F7;
}
.pmc-product-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pmc-product-title {
  max-width: 180px;
  min-height: 45px;
  color: #19366A;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}
.pmc-product-title:hover { color: #DF362D; }
.pmc-product.is-primary .pmc-product-title { color: #0B1A33; }
.pmc-current-marker {
  position: absolute;
  top: 4px;
  left: 4px;
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.pmc-current-marker img { display: block; width: 100%; height: 100%; }
.pmc-primary-toggle {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #B7BDC7;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #19366A;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.15s, transform 0.15s, background 0.15s;
}
.pmc-primary-toggle.is-selected {
  border: 0;
  background: transparent;
}
.pmc-primary-toggle.is-selected img {
  display: block;
  width: 24px;
  height: 24px;
}
.pmc-product:hover .pmc-primary-toggle,
.pmc-primary-toggle:focus-visible,
.pmc-product.is-primary .pmc-primary-toggle {
  opacity: 1;
  transform: scale(1);
}
.pmc-product.is-primary .pmc-primary-toggle {
  border-color: #E1E4E7;
  background: #E1E4E7;
}
.pmc-product.is-primary .pmc-primary-toggle.is-selected {
  border-color: transparent;
  background: transparent;
}
.pmc-filter-panel {
  position: sticky;
  left: 0;
  z-index: 7;
  display: flex;
  width: min(1280px, calc(100vw - 64px));
  flex-direction: column;
  gap: 24px;
  padding: 32px 16px 24px;
  border-top: 16px solid #F4F5F7;
  border-bottom: 1px solid #F0F2F7;
  background: #fff;
}
.pmc-filter-head {
  display: flex;
  align-items: center;
  gap: 24px;
}
.pmc-filter-head strong {
  color: #000;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.pmc-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font: inherit;
  cursor: pointer;
}
.pmc-switch::before {
  content: "";
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: #D5D9DF;
  transition: background 0.2s;
}
.pmc-switch-knob {
  position: absolute;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.pmc-switch.active::before { background: #19366A; }
.pmc-switch.active .pmc-switch-knob { transform: translateX(16px); }
.pmc-switch-label { font-size: 16px; font-weight: 300; line-height: 1.4; }
.pmc-tags-row,
.pmc-drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pmc-tags-row { overflow: hidden; transition: max-height 0.25s ease; }
.pmc-tags-row.is-collapsed { max-height: 62px; }
.pmc-tags-toggle {
  display: inline-flex;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #19366A;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
}
.pmc-tags-toggle:hover { color: #DF362D; }
.pmc-tag,
.pmc-filter-open {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid #E1E4E7;
  border-radius: 10px;
  background: #F4F5F7;
  color: #000;
  font: inherit;
  font-size: 13px;
  font-weight: 300;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
}
.pmc-tag.active {
  border-color: #69717D;
  background: #fff;
  color: #0B1A33;
}
.pmc-tag-x { font-size: 16px; line-height: 12px; }
.pmc-filter-open { display: none; min-width: 40px; font-size: 20px; padding: 3px 10px; }
.pmc-specs { background: #fff; }
.pmc-spec-row {
  border-bottom: 1px solid #F0F2F7;
  background: #fff;
}
.pmc-spec-row:last-child { border-bottom: 0; }
.pmc-spec-label {
  display: none;
}
.pmc-spec-values { align-items: stretch; }
.pmc-spec-value {
  min-width: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #F0F2F7;
  background: #fff;
  color: #0B1A33;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}
.pmc-spec-value:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  box-shadow: 8px 0 16px -16px rgba(25, 54, 106, 0.65);
}
.pmc-spec-row:last-child .pmc-spec-value { border-bottom: 0; }
.pmc-spec-value-name {
  display: block;
  margin-bottom: 2px;
  color: #69717D;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
}
.pmc-spec-value-text { display: block; }
.pmc-empty {
  position: sticky;
  left: 0;
  width: min(1280px, calc(100vw - 64px));
  padding: 40px 16px;
  color: #69717D;
  text-align: center;
}
.pmc-slide {
  position: absolute;
  z-index: 20;
  top: 76px;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  cursor: pointer;
}
.pmc-slide > img { display: block; width: 48px; height: 48px; }
.pmc-slide-prev { left: calc(var(--pmc-col) - 24px); }
.pmc-slide-next { right: 0; }
.pmc-slide:hover { background: transparent; }

/* Третья плашка в существующем sticky-стеке */
.pmc-sticky-models { --pmc-col: 212px; }
.pmc-sticky-models.show { max-height: 92px; }
.pmc-sticky-models .pmc-sticky-inner {
  position: relative;
  display: block;
  overflow: hidden;
}
.pmc-sticky-models .pmc-slide { top: 22px; }
.pmc-sticky-models .pmc-product {
  height: 92px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 16px;
}
.pmc-sticky-models .pmc-product-image { width: 80px; height: 60px; flex: 0 0 80px; }
.pmc-sticky-models .pmc-product-title {
  flex: 1;
  min-width: 0;
  max-height: 60px;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* Общая сетка desktop: названия слева, далее текущая и выбранные модели. */
@media (min-width: 681px) {
  .pmc-root.is-static-desktop .pmc-products,
  .pmc-sticky-models.is-static .pmc-products {
    grid-template-columns: repeat(calc(var(--pmc-count) + 1), minmax(0, 1fr));
  }
  .pmc-root.is-static-desktop .pmc-spec-row {
    display: grid;
    grid-template-columns: repeat(calc(var(--pmc-count) + 1), minmax(0, 1fr));
  }
  .pmc-root.is-static-desktop .pmc-spec-values { grid-column: span var(--pmc-count); }
  .pmc-root.is-static-desktop .pmc-spec-label {
    display: block;
    width: auto;
    min-width: 0;
    padding: 12px 16px;
    color: #69717D;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .pmc-root.is-static-desktop .pmc-spec-value-name { display: none; }
  .pmc-root.is-static-desktop .pmc-spec-value { border-bottom: 0; }
  .pmc-sticky-label {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 16px;
    color: #19366A;
    font-size: 16px;
    font-weight: 500;
    overflow-wrap: anywhere;
  }
}

/* Мобильный выбор характеристик */
.pmc-drawer { display: none; }
body.pmc-modal-open { overflow: hidden; }

/* Скелетон нового блока */
.pmc-loading { overflow: hidden; border-radius: 10px; }
.pmc-skel-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.pmc-skel-products .skel { height: 212px; border-radius: 0; }
.pmc-skel-controls { height: 150px; margin-top: 16px; border-radius: 10px 10px 0 0; }
.pmc-skel-row { height: 71px; border-radius: 0; border-top: 1px solid #fff; }

/* ===== Скелетон ===== */
.pd-sk-crumb { height: 20px; width: 40%; margin: 28px 0 20px; }
.pd-sk-title { height: 48px; width: 70%; margin-bottom: 40px; }
.pd-skel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 524px;
  gap: 32px;
  margin: 48px 0;
}
.pd-skel-photo { height: 474px; }
.pd-skel-lines { display: flex; flex-direction: column; gap: 16px; }
.pd-skel-lines .skel { height: 72px; }
.pd-sk-card { height: 300px; }
.skel {
  background: #F0F2F7;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: skelShimmer 1.4s infinite;
}
@keyframes skelShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
  .pd-hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
}

@media (max-width: 900px) {
  #pd-sticky-stack { display: none; }
  .pd-section { scroll-margin-top: 90px; }
  .pd-title { font-size: 32px; margin-bottom: 28px; }
  .pd-hero { grid-template-columns: 1fr; gap: 32px; }
  .pd-skel-hero { grid-template-columns: 1fr; gap: 24px; margin: 32px 0; }
  .pd-skel-photo { height: 260px; }
  .pd-tabs { margin: 56px 0 40px; }
  .pd-section { margin-bottom: 56px; }
  .pd-compare { padding: 56px 0; }
  .pmc-section { --pmc-col: 260px; padding: 56px 0; scroll-margin-top: 90px; }
  .pmc-filter-panel,
  .pmc-spec-label,
  .pmc-empty { width: calc(100vw - 48px); }
  .pmc-slide-prev { left: 240px; }
}

@media (max-width: 680px) {
  .pd-crumbs { margin: 20px 0 16px; font-size: 11px; }
  .pd-crumbs .pd-crumb-sep { margin: 0 -2px; }
  .pd-title { font-size: 24px; letter-spacing: 0; margin-bottom: 32px; }

  /* Слайдер с точками вместо миниатюр */
  .pd-gallery { flex-direction: column; gap: 8px; }
  .pd-thumbs-col { display: none; }
  .pd-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
  }
  .pd-dot {
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background: #E1E4E7;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
  }
  .pd-dot.active { width: 12px; background: #DF362D; }

  .pd-info { gap: 24px; }
  .pd-buttons { flex-direction: column; align-items: stretch; gap: 16px; }
  .pd-btn { width: 100%; padding: 16px 32px; }

  .pd-quick-specs { gap: 8px; }
  .pd-spec-row { gap: 8px; font-size: 14px; padding: 8px 0; }
  .pd-specs-table dt { flex: 0 0 140px; }
  .pd-specs-table dd { text-align: left; }
  .pd-specs-table .pd-spec-row { padding: 8px 0; }

  .pd-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
    margin: 40px 0 24px;
  }
  .pd-tabs::-webkit-scrollbar { display: none; }
  .pd-tab { padding: 11px 16px; font-size: 14px; }

  .pd-section { margin-bottom: 40px; }
  .pd-section-title h2, .pd-section-title h3 { font-size: 20px; }
  .pd-desc { font-size: 14px; }
  .pd-desc.collapsed { max-height: 240px; }

  .pd-tasks-grid { grid-template-columns: 1fr; gap: 12px; }
  .pd-benefits-grid { grid-template-columns: 1fr; }
  .pd-service-list li span { white-space: normal; }
  .pd-faq-item summary { padding: 14px 16px; font-size: 14px; }
  .pd-faq-answer { padding: 0 16px 14px; font-size: 13px; }
  .pd-docs-list a { font-size: 14px; padding: 12px 14px; }
  .pd-compare { padding: 40px 0; }
  .pd-video-play { width: 44px; height: 44px; }

  .pmc-section {
    --pmc-col: 50vw;
    margin: 0 calc(50% - 50vw);
    padding: 40px 0;
  }
  .pmc-section > .container { width: 100%; max-width: none; padding: 0; }
  .pmc-section .pd-section-title { margin: 0 16px 24px; }
  .pmc-card-shell { border-radius: 0; box-shadow: none; }
  .pmc-mobile-products {
    align-items: stretch;
    background: #fff;
  }
  .pmc-mobile-product,
  .pmc-mobile-product:first-child {
    position: relative;
    left: auto;
    z-index: auto;
    gap: 8px;
    min-height: 160px;
    padding: 16px;
    box-shadow: none;
  }
  .pmc-mobile-selector {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .pmc-mobile-image {
    width: 80px;
    height: 60px;
    flex: 0 1 80px;
    min-width: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #F0F2F7;
  }
  .pmc-mobile-image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .pmc-mobile-arrow {
    display: flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
  }
  .pmc-mobile-arrow:active { background: transparent; transform: scale(0.94); }
  .pmc-mobile-arrow:focus-visible { outline: 2px solid #19366A; outline-offset: 2px; }
  .pmc-mobile-arrow img { display: block; width: 48px; height: 48px; margin: -8px; }
  .pmc-mobile-arrow-prev img,
  .pmc-mobile-arrow-next img { transform: none; }
  .pmc-product-title { font-size: 14px; line-height: 1.35; }
  .pmc-filter-panel {
    position: relative;
    left: auto;
    width: 100vw;
    gap: 20px;
    padding: 24px 16px;
    border-top-width: 0;
  }
  .pmc-filter-head { justify-content: space-between; gap: 16px; }
  .pmc-filter-head strong { font-size: 14px; }
  .pmc-switch { gap: 12px; }
  .pmc-switch-label { font-size: 14px; }
  .pmc-tags-row {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pmc-tags-row::-webkit-scrollbar { display: none; }
  .pmc-tags-row .pmc-tag { flex: 0 0 auto; }
  .pmc-filter-open { display: inline-flex; position: sticky; left: 0; z-index: 2; flex: 0 0 40px; }
  .pmc-spec-label,
  .pmc-empty {
    width: 100vw;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 14px;
  }
  .pmc-spec-value { padding: 12px 16px; font-size: 14px; }
  .pmc-spec-value-name { font-size: 12px; }
  .pmc-spec-value:first-child {
    position: relative;
    left: auto;
    z-index: auto;
    box-shadow: none;
  }
  .pmc-slide { display: none; }
  .pmc-skel-products { grid-template-columns: repeat(2, 1fr); }
  .pmc-skel-products .skel:nth-child(n+3) { display: none; }
  .pmc-skel-products .skel { height: 160px; }
  .pmc-skel-controls { height: 121px; margin-top: 0; }
  .pmc-skel-row { height: 67px; }

  .pmc-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
  }
  .pmc-drawer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.4);
  }
  .pmc-drawer-panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-height: min(70vh, 560px);
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: #fff;
  }
  .pmc-drawer-tags {
    align-content: flex-start;
    gap: 8px;
    overflow-y: auto;
    padding: 24px 16px;
  }
  .pmc-drawer-tags .pmc-tag {
    min-height: 32px;
    padding: 8px 12px;
    font-size: 14px;
  }
  .pmc-drawer-actions {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 20px 20px 0 0;
    background: #F0F2F7;
  }
  .pmc-apply,
  .pmc-clear {
    display: flex;
    min-height: 48px;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
  }
  .pmc-apply {
    border: 0;
    background: #DF362D;
    box-shadow: 0 8px 8px rgba(223, 54, 45, 0.2);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
  }
  .pmc-clear { border: 2px solid #19366A; background: #fff; color: #19366A; font-weight: 500; }
}
.pd-richtext { line-height: 1.6; overflow-x: auto; }
.pd-richtext table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 14px; }
.pd-richtext th, .pd-richtext td { border: 1px solid #dfe3ea; padding: 9px 10px; text-align: left; vertical-align: top; }
.pd-richtext th { background: #f3f5f8; font-weight: 700; }
.pd-richtext p { margin: 0 0 12px; }
.pd-parts-list { margin-bottom: 22px; }
.pd-parts-request { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e6e9ee; }
.pd-equipment-note{margin:0 0 12px;color:#69717d;font-size:14px}.pd-equipment-list{margin:0}
