/* Страница целиком. Правила для неё при переносе не было вовсе: сверху
   крошки упирались в шапку, снизу призывный баннер лежал прямо на подвале
   без зазора. Только padding-block — горизонтальные поля даёт .container. */
.product-page {
  padding-block: clamp(24px, 3vw, 40px) clamp(40px, 5vw, 72px);
}

/* Хлебные крошки */
.pd-crumbs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.pd-crumbs-nav a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.pd-crumbs-nav a:hover {
  color: var(--gold);
}

.pd-crumbs-nav .sep {
  opacity: 0.4;
}

.pd-crumbs-nav .cur {
  color: var(--text);
  font-weight: 600;
}

/* Главный Bento-Hero блок */
.pd-hero-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}@media (max-width: 900px) {

  .pd-hero-bento {
    grid-template-columns: 1fr;
  }
}

/* Левая медиа-карточка */
.pd-media-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: calc(var(--radius) + 4px);
  padding: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.pd-media-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 4px;
}

.pd-hl-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pd-hl-ic {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 190, 110, 0.1);
  border-radius: 6px;
}

.pd-hl-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pd-hl-text strong {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 700;
}

.pd-hl-text span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pd-btn-download {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold) !important;
  border: 1px dashed rgba(245, 190, 110, 0.4) !important;
  border-radius: var(--radius);
  background: rgba(245, 190, 110, 0.04) !important;
  transition: all 0.2s ease;
  text-align: center;
}

.pd-btn-download:hover {
  background: rgba(245, 190, 110, 0.12) !important;
  border-style: solid !important;
  transform: translateY(-1px);
}

/* Рендеры сняты в студии на белом. Раньше они лежали фоном с cover на
   тёмной карточке: объект в середине, а сверху и снизу светлые поля —
   их и было видно как белые полосы. Ключевать фон нельзя: у части моделей
   корпус того же белого цвета, любая заливка съедает стенку (проверено).
   Поэтому фото подаётся как светлая пластина в тёмной раме — так его
   и показывают в каталогах оборудования, — а contain вместо cover
   не режет объект по краям. */
.pd-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  border-radius: var(--radius);
  background-color: var(--plate, #ededed);
  background-position: center 44%;
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--c-500);
}

/* Тёмная подпись понизу пластины: на ней читаются золотые надписи,
   которые на белом почти пропадали. Раньше здесь был градиент поверх
   всего фото — на светлом он давал грязно-серую пелену. */
.pd-media-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 132px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.92) 42%, rgba(20, 20, 20, 0.97) 100%);
  pointer-events: none;
}

.pd-badges-top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-chip {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pd-chip-power {
  background: rgba(245, 190, 110, 0.95);
  color: var(--c-900);
  border: none;
}

.pd-media-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-badge-warranty,
.pd-badge-ready {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Правая карточка информации */
.pd-main-info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

.pd-header-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pd-tag-type,
.pd-tag-fuel {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(245, 190, 110, 0.12);
  color: var(--gold);
  border: 1px solid rgba(245, 190, 110, 0.25);
}

.pd-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.pd-main-sub {
  color: var(--text-dim);
  font-size: 1rem;
  margin: 0 0 20px;
}

/* Блок цены в Bento */
.pd-price-bento-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.pd-price-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.pd-price-val {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--gold);
}

.pd-price-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.pd-vbadge {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

.pd-vbadge-green {
  color: var(--ok);
  font-weight: 600;
}

/* Быстрые параметры */
.pd-quick-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.pd-qspec {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-500);
  border-radius: var(--radius);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qspec-ic {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.qspec-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.qspec-lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Кнопки действий */
.pd-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Пара кнопок с перехватом акцента: наводишь на вторую — она забирает
   золото у первой. Раньше это делал скрипт, расставляя инлайновые стили
   с !important; теперь то же самое на :has(), без скрипта и без !important. */
.pd-btn-main {
  width: 100%;
  justify-content: center;
  background: var(--gold);
  color: var(--c-900);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(245, 190, 110, 0.3);
}

.pd-btn-calc {
  width: 100%;
  justify-content: center;
  border: 1px solid var(--c-500);
  background: var(--c-850);
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.pd-action-buttons:has(.pd-btn-calc:hover) .pd-btn-main {
  background: var(--c-850);
  color: var(--gold);
  box-shadow: none;
}
.pd-action-buttons:has(.pd-btn-calc:hover) .pd-btn-calc {
  background: var(--gold);
  color: var(--c-900);
  border-color: var(--gold);
}

/* Описание */
.pd-bento-section {
  margin-bottom: 32px;
}

.pd-bento-h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.pd-desc-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.pd-desc-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}

/* Две колонки параметров (Bento Grid) */
.pd-grid-two-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}@media (max-width: 850px) {

  .pd-grid-two-cols {
    grid-template-columns: 1fr;
  }
}

.pd-bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.pd-card-header {
  border-bottom: 1px solid var(--c-500);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.pd-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

/* Современная таблица характеристик */
.pd-specs-table-modern {
  width: 100%;
  border-collapse: collapse;
}

.pd-specs-table-modern tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.pd-specs-table-modern tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pd-specs-table-modern th,
.pd-specs-table-modern td {
  padding: 12px 8px;
  font-size: 0.92rem;
  text-align: left;
  vertical-align: middle;
}

/* Колонка названий по содержимому, а не 48% ширины: при фиксированной доле
   значения начинались от середины карточки, и между парой «название —
   значение» зияла пустота. width:1px с nowrap — обычный приём: браузер
   сжимает колонку до самой длинной подписи. */
.pd-specs-table-modern th {
  color: var(--text-dim);
  font-weight: 500;
  width: 1px;
  white-space: nowrap;
  padding-right: 28px;
}

.pd-specs-table-modern td {
  color: var(--text);
  font-weight: 600;
}

/* На узком экране пара не помещается в строку — ставим значение под подписью.
   Иначе таблица уезжает за край. */
@media (max-width: 560px) {
  .pd-specs-table-modern tr,
  .pd-specs-table-modern th,
  .pd-specs-table-modern td {
    display: block;
  }
  .pd-specs-table-modern th {
    width: auto;
    white-space: normal;
    padding: 12px 8px 0;
    font-size: 0.8125rem;
  }
  .pd-specs-table-modern td {
    padding: 2px 8px 12px;
  }
}

/* Современный список комплектации */
.pd-equipment-list-modern {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-equipment-list-modern li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.pd-equipment-list-modern li:hover {
  transform: translateX(4px);
  border-color: rgba(245, 190, 110, 0.3);
}

.eq-icon {
  color: var(--gold);
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.eq-text {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Бейдж «опция» у необязательных позиций комплектации */
.eq-opt {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid rgba(245, 190, 110, 0.45);
  border-radius: 999px;
  background: rgba(245, 190, 110, 0.1);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* Нижний баннер */
.pd-cta-banner {
  background: linear-gradient(135deg, var(--c-850) 0%, var(--c-900) 100%);
  border: 1px solid var(--gold);
  border-radius: calc(var(--radius) + 4px);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 12px 32px rgba(245, 190, 110, 0.15);
}

.pd-cta-content {
  max-width: 60ch;
}

.pd-cta-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 8px;
}

.pd-cta-content p {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.5;
}

/* ---------- Курсор-огонёк ---------- */
/* ---------- Заметка под таблицей ---------- */
.pd-specs-note {
  margin: 14px 0 0;
  padding: 0 20px 20px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-mute);
}

/* ---------- Соседние мощности ---------- */
.near-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}@media (min-width: 760px) {

  .near-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.near-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--ease), transform var(--ease);
}
.near-card:hover,
.near-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.near-card__power {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.near-card__name { font-size: 0.875rem; color: var(--text-mute); }
.near-card__price { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
