/* ONLINE PARK — карточка товара, отзывы, вопросы.
   Сетка: галерея 480 + промежуток 40 + правая колонка на остаток ширины контента. */

.pd-crumbs { margin-bottom: 40px; }

.pd-top {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 40px;
    align-items: start;
}

.pd-top > * { min-width: 0; }

/* ── Галерея ─────────────────────────────────────────────── */

.pd-photo {
    position: relative;
    height: 480px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--r-16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-photo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pd-photo-empty { color: var(--ink); opacity: .3; }

.pd-flags { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.pd-fav {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg); border: 0; border-radius: 50%; color: var(--ink);
}

.pd-fav:hover { background: var(--bg-grey); }
.pd-fav.is-on { background: var(--orange); color: var(--white); }

.pd-thumbs-wrap { position: relative; margin-top: 12px; }

.pd-thumbs {
    display: flex; gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.pd-thumbs::-webkit-scrollbar { display: none; }

.pd-thumb {
    flex: none;
    width: 100px; height: 66px;
    padding: 6px;
    background: var(--white);
    border: 1px solid transparent;
    border-radius: var(--r-8);
    display: flex; align-items: center; justify-content: center;
}

.pd-thumb img { max-height: 100%; object-fit: contain; }
.pd-thumb.on { border-color: var(--blue); }

.pd-round {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--white); border: 1px solid var(--ink-10); border-radius: 50%;
    color: var(--ink);
}

.pd-round:hover { border-color: var(--blue); color: var(--blue); }

.pd-thumbs-next { position: absolute; top: 50%; right: -8px; transform: translateY(-50%); box-shadow: 0 2px 12px rgba(6, 6, 6, .12); }

/* ── Правая колонка: покупка ─────────────────────────────── */

.pd-buy { display: flex; flex-direction: column; }

.pd-meta { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.pd-rate { display: inline-flex; align-items: center; gap: 6px; }
.pd-rate .icon { color: var(--orange); }
.pd-rate b { font-weight: 600; }
.pd-meta-link { color: var(--blue); text-decoration: underline; font-size: 14px; }
.pd-meta-sep { opacity: .3; }
.pd-meta-q span { opacity: .4; }

.pd-title { font-size: 32px; line-height: 1.45; margin: 8px 0 12px; }

.pd-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.pd-deliv { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.pd-sku { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: 0; border: 0; opacity: .4; }
.pd-sku:hover { opacity: .7; }
.pd-sku.is-copied { color: var(--blue); opacity: 1; }

.pd-price-row { display: flex; align-items: center; gap: 24px; margin: 20px 0; }

.pd-price-box {
    display: inline-flex; align-items: center; gap: 12px;
    min-width: 243px; height: 64px; padding: 0 24px;
    background: var(--bg-grey); border-radius: var(--r-12);
}

.pd-price-box b { font-size: 26px; font-weight: 700; color: var(--orange); white-space: nowrap; }
.pd-price-box s { font-size: 16px; opacity: .4; }

.pd-label { font-size: 13px; opacity: .4; }

.pd-actions { display: flex; align-items: center; gap: 8px; }
.pd-btn { height: 56px; padding: 0 24px; border-radius: var(--r-12); font-size: 16px; font-weight: 500; gap: 10px; }
.pd-btn-quick { padding: 0 28px; }

.pd-compare {
    width: 56px; height: 56px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-grey); border: 0; border-radius: var(--r-12); color: var(--ink);
}

.pd-compare:hover { background: #e3e3de; }
.pd-compare.is-on { background: var(--blue); color: var(--white); }

.pd-summary { margin-top: 24px; }
.pd-summary p { font-size: 15px; line-height: 1.5; margin: 6px 0 0; }
.pd-summary-link { text-decoration: underline; }

.pd-variants { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.pd-variant-group { display: flex; flex-direction: column; gap: 8px; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.pd-chip {
    height: 36px; padding: 0 16px;
    background: var(--bg-grey); border: 0; border-radius: var(--r-8);
    font-size: 14px; color: var(--ink);
}

.pd-chip:hover { background: #e3e3de; }
.pd-chip.on { background: var(--ink); color: var(--white); }

/* ── Панели: характеристики, отзывы, вопросы ─────────────── */

.pd-panel {
    margin-top: 20px;
    padding: 24px 16px;
    background: var(--white);
    border-radius: var(--r-24);
}

.pd-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.pd-h2 { font-size: 28px; font-weight: 700; }

.pd-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 20px;
    background: var(--bg-grey); border: 0; border-radius: var(--r-12);
    font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--ink);
}

.pd-toggle:hover { background: #e3e3de; }
.pd-toggle .icon { transition: transform .15s; }
.is-open > .pd-panel-head .pd-toggle .icon,
.is-open .pd-main-head .pd-toggle .icon { transform: rotate(180deg); }

/* Описание: текст с абзацами и списками, строка не шире удобной для чтения */
.pd-description-body { max-width: 900px; font-size: 16px; line-height: 1.6; }
.pd-description-body p + p { margin-top: 12px; }
.pd-description-body ul, .pd-description-body ol { margin: 8px 0 8px 20px; }

/* Характеристики: две колонки по 580 с промежутком 20, строка 34px */
.pd-specs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.pd-spec {
    display: grid; grid-template-columns: 309px 1fr; align-items: center;
    min-height: 34px; padding: 4px 16px;
    border-bottom: 1px solid var(--bg-grey);
    font-size: 14px;
}

.pd-specs-col { margin: 0 -16px; }
.pd-spec-name { opacity: .5; padding-right: 12px; }
.pd-spec-value.is-no { color: var(--red); }
.pd-spec-value.is-yes { color: var(--blue); }
.pd-specs:not(.is-open) .pd-specs-cols { display: none; }

.pd-more-row:not(.only-mobile) { display: flex; }
.pd-more-row { justify-content: center; margin-top: 12px; }
.pd-more-link { background: 0; border: 0; padding: 8px; color: var(--blue); font-size: 14px; }

/* ── Отзывы и вопросы: колонка слева, список справа ──────── */

.pd-split { display: grid; grid-template-columns: 277px 1fr; padding: 0; gap: 0; }

.pd-side {
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
    padding: 24px 20px;
    border-right: 1px solid var(--bg-grey);
}

.pd-side-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pd-side-head .pd-h2 { margin-right: 4px; }
.pd-all-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

.pd-main { padding: 24px 20px; min-width: 0; }
.pd-main-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.pd-main-cta { display: flex; align-items: center; gap: 16px; flex: 1 0 0; min-width: 0; }
.pd-main-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-btn-line { height: 48px; padding: 0 24px; border: 1px solid var(--blue); border-radius: var(--r-12); background: var(--white); font-size: 15px; }
.pd-btn-line:hover { background: var(--blue); color: var(--white); }

.pd-list { display: flex; flex-direction: column; }
.pd-empty { padding: 24px 0; opacity: .5; }

/* Фильтр отзывов */
.pd-filters { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pd-checks { display: flex; flex-direction: column; gap: 10px; }
.pd-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.pd-check input { position: absolute; opacity: 0; width: 0; height: 0; }

.pd-check-box {
    width: 18px; height: 18px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ink-10); border-radius: var(--r-4);
    background: var(--white); color: transparent;
}

.pd-check input:checked + .pd-check-box { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pd-check-count { opacity: .4; }

.pd-sort {
    height: 36px; padding: 0 16px;
    background: var(--bg-grey); border: 0; border-radius: var(--r-8);
    font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}

.pd-sort:hover { background: #e3e3de; }

/* Отзыв */
.pd-review { padding: 20px 0; border-bottom: 1px solid var(--bg-grey); }
.pd-review:first-child { padding-top: 0; }
.pd-review:last-child { border-bottom: 0; }
.pd-review-main { display: flex; gap: 20px; align-items: flex-start; }
.pd-review-body { flex: 1 0 0; min-width: 0; }
.pd-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pd-review-title { font-size: 16px; font-weight: 700; }
.pd-review-text { font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
.pd-review-pc { font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.pd-review-pc b { font-weight: 600; }
.pd-date { font-size: 12px; opacity: .4; }

.pd-review-photos { display: flex; flex-wrap: wrap; gap: 8px; width: 300px; flex: none; }
.pd-review-photos.is-wide { width: 396px; }
.pd-review-photo { width: 146px; height: 108px; border-radius: var(--r-8); overflow: hidden; background: var(--bg-grey); }
.pd-review-photo img { width: 100%; height: 100%; object-fit: cover; }

.pd-answer { margin-top: 14px; }
.pd-answer-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.pd-answer-logo { display: inline-flex; align-items: center; padding: 6px 10px; background: var(--bg); border-radius: var(--r-8); }
.pd-answer-meta { display: flex; flex-direction: column; gap: 2px; }
.pd-answer-badge { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); }
.pd-answer-text { font-size: 14px; line-height: 1.5; margin: 0; }

/* Вопрос */
.pd-question { padding: 20px 0; border-bottom: 1px solid var(--bg-grey); }
.pd-question:first-child { padding-top: 0; }
.pd-question:last-child { border-bottom: 0; }
.pd-question-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pd-author { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .4; }
.pd-question-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

/* Свёрнутый блок показывает только первые записи */
.pd-split:not(.is-open) .pd-item-more { display: none; }
.pd-specs:not(.is-more) .pd-spec-more { display: grid; }

/* ── Комплект и сопутствующие ────────────────────────────── */

.pd-sec { margin-top: 48px; }
.pd-sec-head { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.pd-sec-text { flex: 1 0 0; min-width: 0; }
.pd-kicker { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.pd-kicker-cyan { background: var(--cyan); color: var(--ink); padding: 6px 14px; border-radius: var(--r-8); }
.pd-sec-title { font-size: 32px; font-weight: 700; }
.pd-sec-sub { font-size: 14px; opacity: .5; margin-top: 6px; }
.pd-arrows { display: flex; gap: 8px; }
.pd-btn-cyan { background: var(--cyan); color: var(--ink); }
.pd-btn-cyan:hover { background: #2ce89b; color: var(--ink); }

.pd-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.pd-rail::-webkit-scrollbar { display: none; }
.pd-rail > * { min-width: 0; }
.pd-set .pd-sec-head .pd-set-form { flex: 1 0 0; display: flex; justify-content: flex-end; }
.pd-set-form.only-mobile { margin-top: 16px; }

/* ── Модалки карточки ────────────────────────────────────── */

.pd-modal { width: 452px; max-width: 100%; }
.pd-modal-wide { width: 640px; }
.pd-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pd-modal-close { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: 0; border: 0; opacity: .4; }
.pd-modal-close:hover { opacity: 1; }
.pd-modal-product { font-size: 14px; margin-bottom: 16px; }
.pd-modal-product b { color: var(--orange); }

/* ── Адаптив ─────────────────────────────────────────────── */

@media (max-width: 1199px) {
    .pd-top { grid-template-columns: 400px 1fr; gap: 28px; }
    .pd-photo { height: 400px; }
    .pd-title { font-size: 26px; }
    .pd-sec-title { font-size: 26px; }
    .pd-spec { grid-template-columns: 1fr 1fr; }
    .pd-rail { grid-auto-columns: calc((100% - 40px) / 3); }
}

@media (max-width: 991px) {
    .pd-top { grid-template-columns: 1fr; }
    .pd-photo { height: 420px; }
    .pd-specs-cols { grid-template-columns: 1fr; }
    .pd-split { grid-template-columns: 1fr; }
    .pd-side { border-right: 0; border-bottom: 1px solid var(--bg-grey); }
    .pd-rail { grid-auto-columns: calc((100% - 20px) / 2); }
    .pd-review-photos { width: 220px; }
    .pd-review-photo { width: 106px; height: 80px; }
}

@media (max-width: 767px) {
    .pd-crumbs { margin-bottom: 16px; }
    .pd-photo { height: 320px; padding: 16px; }
    .pd-thumb { width: 72px; height: 52px; }
    .pd-title { font-size: 20px; line-height: 1.3; }
    .pd-price-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .pd-price-box { min-width: 0; height: 56px; }
    .pd-actions { flex-direction: column; align-items: stretch; }
    .pd-btn, .pd-compare { width: 100%; }
    .pd-panel { padding: 20px 16px; border-radius: var(--r-16); }
    .pd-h2, .pd-sec-title { font-size: 22px; }
    .pd-side, .pd-main { padding: 16px; }
    .pd-main-head { flex-wrap: wrap; }
    .pd-review-main { flex-direction: column; }
    /* На всей странице отзывов фото шире (is-wide) — в колонке телефона они занимают ширину отзыва */
    .pd-review-photos, .pd-review-photos.is-wide { width: 100%; }
    .pd-review-photos { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; position: relative; }
    .pd-review-photos::-webkit-scrollbar { display: none; }
    .pd-review-photo { flex: none; width: 140px; height: 104px; }
    .pd-rail { grid-auto-columns: 74%; }
    .pd-sec { margin-top: 32px; }
    .pd-sec-head { flex-wrap: wrap; gap: 12px; }
    .pd-specs:not(.is-more) .pd-spec-more { display: none; }
    .pd-more-row.only-mobile { display: flex; }
}
