

/* Start:/local/templates/goldenplata/components/bitrix/catalog/gm_main/bitrix/catalog.element/pd/style.css?178782546839703*/
:root {
    /* --- Палитра ------------------------------------------------------- */
    --pd-navy:            #1D293D;  /* основной тёмный: текст, кнопки       */
    --pd-navy-hover:      #2B3B57;
    --pd-navy-badge:      #1E2942;  /* бейдж «Новинка»                      */

    --pd-ink:             #1D293D;  /* заголовки, значения характеристик    */
    --pd-ink-2:           #4D4D4D;  /* подписи групп опций                  */
    --pd-muted:           #999999;  /* хлебные крошки, лейблы, «с НДС»      */

    --pd-gold:            #D19C4E;  /* акцент: ссылки, «Каталог», активный таб */
    --pd-gold-hover:      #BC8A41;
    --pd-gold-050:        #FFF9F0;
    --pd-gold-100:        #FFEED6;  /* фон активного чипа                   */
    --pd-gold-200:        #F9E4C5;  /* бордер активного чипа                */

    --pd-cream:           #FFFAF2;  /* фон картинки в карточке товара       */
    --pd-surface:         #F5F5F5;  /* фон галереи, поля поиска, степпера   */
    --pd-surface-2:       #F8FAFC;  /* «Мнение эксперта», карточка новости  */
    --pd-border:          #E2E8F0;
    --pd-white:           #FFFFFF;

    --pd-green:           #00A15D;  /* бейдж «В наличии»                    */
    --pd-green-text:      #039855;  /* текст «В наличии» в модалке          */
    --pd-red:             #D92023;  /* акционная цена                       */
    --pd-star:            #FDB022;

    --pd-warn-bg:         #FEF0C7;  /* тост «достигнут лимит»               */
    --pd-warn-fg:         #93370D;
    --pd-help-bg:         #FFEAD5;  /* иконка «?» в FAQ                     */
    --pd-help-fg:         #EC4A0A;

    --pd-overlay:         rgba(0, 0, 0, .25);

    /* --- Типографика ---------------------------------------------------- */
    --pd-font: 'Fixel', 'Fixel Text', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Arial, sans-serif;

    --pd-fz-h1:      40px;  /* заголовок товара (desktop)                   */
    --pd-fz-h2:      32px;  /* заголовки секций                             */
    --pd-fz-h3:      20px;  /* «Характеристики», заголовок модалки          */
    --pd-fz-price:   32px;  /* основная цена                                */
    --pd-fz-price-2: 20px;  /* цена по золотой карте / цена выкупа          */
    --pd-fz-lg:      18px;
    --pd-fz-md:      16px;  /* базовый размер текста                        */
    --pd-fz-sm:      14px;
    --pd-fz-xs:      12px;  /* бейджи                                       */

    /* --- Радиусы -------------------------------------------------------- */
    --pd-r-xs:  6px;
    --pd-r-sm:  8px;
    --pd-r-md:  12px;
    --pd-r-lg:  16px;
    --pd-r-xl:  20px;
    --pd-r-pill: 999px;

    /* --- Сетка ---------------------------------------------------------- */
    --pd-gutter:      20px;   /* mobile */
    --pd-bleed:       20px;
    --pd-col-gap:     48px;   /* зазор между колонками верхнего блока       */
    --pd-card-w:      258px;  /* ширина карточки товара в карусели          */
    --pd-card-gap:    16px;
    --pd-section-gap: 40px;   /* вертикальный ритм между секциями           */

    /* --- Прочее --------------------------------------------------------- */
    --pd-control-h:   56px;   /* высота основных кнопок                     */
    --pd-shadow-card: 0 4px 24px rgba(29, 41, 61, .08);
    --pd-shadow-pop:  0 12px 48px rgba(29, 41, 61, .18);
    --pd-bottomnav-h:  0px;   /* переопределяется на планшете/мобиле        */
    --pd-stickybar-h:  0px;   /* липкая панель «В корзину», только мобильный */
}

@media (min-width: 768px) {
    :root {
        --pd-gutter:      40px;
        --pd-card-w:      350px;
        --pd-section-gap: 48px;
    }
}

@media (min-width: 801px) {
    :root { --pd-bleed: 40px; }
}

@media (min-width: 1280px) {
    :root {
        --pd-gutter:      120px;
        --pd-section-gap: 56px;
    }
}

/* ==========================================================================
   Детальная страница товара (карточка монеты)
   ========================================================================== */

.pd { padding-bottom: 64px; }

.pd-section-gap { margin-top: var(--pd-section-gap); }

/* ==========================================================================
   Хлебные крошки
   ========================================================================== */

.pd-breadcrumbs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    padding-block: 8px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    color: var(--pd-muted);
}
.pd-breadcrumbs::-webkit-scrollbar { display: none; }
.pd-breadcrumbs__item { white-space: nowrap; }
.pd-breadcrumbs__item + .pd-breadcrumbs__item::before {
    content: '•';
    margin-right: 12px;
}
.pd-breadcrumbs__item a:hover { color: var(--pd-ink); }

/* ==========================================================================
   Заголовок товара
   ========================================================================== */

.pd-heading { margin-bottom: 24px; }

.pd-heading__title {
    font-size: var(--pd-fz-h1);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.pd-heading__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-top: 12px;
}

.pd-rating { display: inline-flex; align-items: center; gap: 10px; }
.pd-rating__stars { display: inline-flex; gap: 3px; color: var(--pd-star); }
.pd-rating__value { font-weight: 500; }

.pd-heading__sku { color: var(--pd-ink); }
.pd-heading__sku span { color: var(--pd-muted); }

/* ==========================================================================
   Верхний блок: галерея / опции / покупка
   ========================================================================== */

.pd-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}
.pd-top__gallery { order: 1; }
.pd-top__buy     { order: 2; }
.pd-top__options { order: 3; }

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

.pd-gallery__stage {
    position: relative;
    height: 360px;
    border-radius: var(--pd-r-xl);
    background: var(--pd-surface);
    overflow: hidden;
}

.pd-gallery__slides {
    display: flex;
    height: 100%;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scrollbar-width: none;
}
.pd-gallery__slides::-webkit-scrollbar { display: none; }

.pd-gallery__slide {
    flex: 0 0 100%;
    display: grid;
    place-items: center;
    scroll-snap-align: center;
}
.pd-gallery__slide img {
    width: 78%;
    height: auto;
    max-height: 86%;
    object-fit: contain;
}

.pd-gallery__counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 4px 12px;
    border-radius: var(--pd-r-pill);
    background: rgba(29, 41, 61, .75);
    color: #fff;
    font-size: var(--pd-fz-sm);
}

.pd-gallery__dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pd-gallery__dot {
    width: 8px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: var(--pd-r-pill);
    background: #C9CDD3;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}
.pd-gallery__dot.is-active {
    width: 56px;
    background: var(--pd-gold);
}

/* Лента миниатюр (только desktop/tablet) */
.pd-gallery__thumbs {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.pd-gallery__nav {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 0;
    border-radius: var(--pd-r-pill);
    background: none;
    color: var(--pd-ink);
    cursor: pointer;
}
.pd-gallery__nav:hover { background: var(--pd-surface); }

.pd-gallery__strip {
    flex: 1 1 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pd-gallery__strip::-webkit-scrollbar { display: none; }

.pd-gallery__thumb {
    position: relative;
    flex: 0 0 96px;
    width: 96px; height: 96px;
    padding: 8px;
    border: 0;
    border-radius: var(--pd-r-md);
    background: var(--pd-surface);
    cursor: pointer;
}
.pd-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-gallery__thumb.is-active { outline: 2px solid var(--pd-gold); outline-offset: -2px; }

.pd-gallery__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.pd-gallery__play span {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border-radius: var(--pd-r-pill);
    background: var(--pd-gold);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Опции товара + краткие характеристики
   -------------------------------------------------------------------------- */

.pd-optgroup { margin-bottom: 20px; }
.pd-optgroup__label {
    margin-bottom: 8px;
    color: var(--pd-ink-2);
}
.pd-optgroup__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-gallery__zoom { display: contents; }
.pd-gallery__zoom img { cursor: zoom-in; }

.pd-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 40px;
    padding: 6px 16px;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-r-sm);
    background: var(--pd-white);
    color: var(--pd-ink);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.pd-chip:hover { border-color: var(--pd-gold-200); }

.pd-chip.is-active {
    background: var(--pd-gold-100);
    border-color: var(--pd-gold-200);
    color: var(--pd-gold);
    cursor: default;
}
.pd-chip:disabled {
    color: var(--pd-muted);
    cursor: not-allowed;
    opacity: .6;
}

.pd-specs__title {
    margin-bottom: 12px;
    font-size: var(--pd-fz-h3);
    font-weight: 600;
}

.pd-specs__list { display: grid; gap: 10px; }

.pd-specs__row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.pd-specs__name {
    flex: none;
    max-width: 60%;
    color: var(--pd-muted);
}
.pd-specs__dots {
    flex: 1 1 auto;
    min-width: 12px;
    height: 1px;
    margin-bottom: 4px;
    border-bottom: 1px dotted #CBD3DE;
}
.pd-specs__value {
    flex: 0 1 auto;
    min-width: 0;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pd-specs__value a { text-decoration: underline; }

.pd-specs__more {
    display: inline-block;
    margin-top: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Блок покупки
   -------------------------------------------------------------------------- */

.pd-buy {
    display: grid;
    align-content: start;
    gap: 16px;
}

.pd-card {
    padding: 24px;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-r-lg);
    background: var(--pd-white);
}

/* --- Цена --- */
.pd-price {
    display: grid;
    gap: 10px;
}

.pd-price__main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}
.pd-price__current {
    font-size: var(--pd-fz-price);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.01em;
}
.pd-price__vat { color: var(--pd-muted); }

.pd-price__old {
    color: var(--pd-muted);
    text-decoration: line-through;
}
.pd-price__gram { color: var(--pd-muted); }

.pd-price__gold {
    font-size: var(--pd-fz-price-2);
    color: var(--pd-gold);
}
.pd-price__gold b {
    font-weight: 700;
    color: var(--pd-ink);
}

.pd-price__stub {
    font-size: var(--pd-fz-price);
    font-weight: 700;
    line-height: 1.1;
    color: var(--pd-muted);
}

/* Состояния цены */
.pd[data-price-state="regular"] .pd-price__old { display: none; }
.pd[data-price-state="promo"] .pd-price__current { color: var(--pd-red); }

/* --- Курс золота --- */
.pd-rate-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-block: 16px;
    padding-block: 16px;
    border-top: 1px solid var(--pd-border);
    border-bottom: 1px solid var(--pd-border);
}
.pd-rate-note::before {
    content: '';
    flex: none;
    width: 8px; height: 8px;
    margin-top: 8px;
    border-radius: var(--pd-r-pill);
    background: #12B76A;
}

/* Отбивка блока цены от кнопки, когда строки курса между ними нет. */
.pd-price + .pd-actions { margin-top: 16px; }

/* --- Ряд действий --- */
.pd-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--pd-control-h);
    padding-inline: 24px;
    border: 1px solid transparent;
    border-radius: var(--pd-r-md);
    font-size: var(--pd-fz-lg);
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pd-btn--primary { background: var(--pd-navy); color: #fff; }
.pd-btn--primary:hover { background: var(--pd-navy-hover); }

.pd-btn--gold { background: var(--pd-gold); color: #fff; }
.pd-btn--gold:hover { background: var(--pd-gold-hover); }

.pd-btn--ghost {
    background: var(--pd-white);
    border-color: var(--pd-border);
    color: var(--pd-ink);
}
.pd-btn--ghost:hover { border-color: var(--pd-navy); }

.pd-btn--block { width: 100%; }
.pd-btn--grow  { flex: 1 1 auto; }

.pd-iconbtn {
    flex: none;
    display: grid;
    place-items: center;
    width: var(--pd-control-h);
    height: var(--pd-control-h);
    border: 0;
    border-radius: var(--pd-r-md);
    background: none;
    color: var(--pd-ink);
    cursor: pointer;
}
.pd-iconbtn:hover { background: var(--pd-surface); }
.pd-iconbtn.is-active { color: var(--pd-gold); }
.pd-iconbtn.is-active svg { fill: currentColor; }

/* ==========================================================================
   Иконки из спрайта (pd/sprite.php)
   ========================================================================== */

.pd-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.pd-ico {
    flex: none;
    display: block;
    pointer-events: none;   /* клик всегда достаётся кнопке, а не <svg> */
}

.gm_add_favorite .pd-ico--on { display: none; }
.gm_add_favorite.active .pd-ico--on { display: block; color: var(--pd-gold); }
.gm_add_favorite.active .pd-ico:not(.pd-ico--on) { display: none; }

/* Счётчик количества */
.pd-qty {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    height: var(--pd-control-h);
    border-radius: var(--pd-r-md);
    background: var(--pd-surface-2);
}
.pd-qty__btn {
    display: grid;
    place-items: center;
    width: 56px;
    height: 100%;
    border: 0;
    background: none;
    color: var(--pd-ink);
    cursor: pointer;
}
.pd-qty__btn:disabled,
.pd-qty__btn[aria-disabled="true"] { color: #B7BDC6; cursor: not-allowed; }
.pd-qty__value {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 500;
    text-align: center;
    color: var(--pd-ink);
    -moz-appearance: textfield;
}
.pd-qty__value::-webkit-outer-spin-button,
.pd-qty__value::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pd-actions__cart,
.pd-actions__qty,
.pd-actions__notify { display: none; }

.pd[data-buyable="yes"][data-cart="empty"]     .pd-actions__cart   { display: inline-flex; }
.pd[data-buyable="yes"][data-cart="in-basket"] .pd-actions__qty,
.pd[data-buyable="yes"][data-cart="limit"]     .pd-actions__qty    { display: flex; }
.pd[data-buyable="no"]                         .pd-actions__notify { display: inline-flex; }

/* --- Карточка выкупа --- */
.pd-buyout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.pd-buyout__price {
    font-size: var(--pd-fz-price-2);
    font-weight: 600;
}
.pd-buyout__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--pd-ink);
}
.pd-buyout__label svg { color: var(--pd-muted); }
.pd-buyout .pd-btn { min-height: 48px; font-size: var(--pd-fz-md); }

/* --- Преимущества --- */
.pd-trust {
    display: grid;
    gap: 10px 24px;
}
.pd-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.pd-trust__item svg { flex: none; color: var(--pd-ink); }
.pd-trust__item span {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pd-trust__item:hover span { color: var(--pd-gold); }

/* --- Аксессуары (триггер модалки) --- */
.pd-accessories {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-r-lg);
    background: var(--pd-white);
    text-align: left;
    cursor: pointer;
}
.pd-accessories:hover { border-color: var(--pd-gold-200); }
.pd-accessories__img {
    flex: none;
    width: 64px; height: 64px;
    border-radius: var(--pd-r-sm);
    object-fit: contain;
}
.pd-accessories__body { flex: 1 1 auto; min-width: 0; }
.pd-accessories__title { display: block; color: var(--pd-muted); }
.pd-accessories__price { display: block; margin-top: 2px; font-weight: 700; }
.pd-accessories__count {
    flex: none;
    min-width: 48px;
    padding: 6px 12px;
    border-radius: var(--pd-r-md);
    background: var(--pd-gold-100);
    color: var(--pd-gold);
    text-align: center;
}

/* ==========================================================================
   Табы
   ========================================================================== */

.pd-tabs { margin-top: var(--pd-section-gap); }

.pd-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--pd-border);
    overflow-x: auto;
    scrollbar-width: none;
}
.pd-tabs__nav::-webkit-scrollbar { display: none; }

.pd-tabs__btn {
    position: relative;
    flex: none;
    padding: 12px 16px 14px;
    border: 0;
    background: none;
    font-size: 21px;
    color: var(--pd-ink);
    white-space: nowrap;
    cursor: pointer;
}
.pd-tabs__btn::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px 0;
    height: 1px;
    background: transparent;
}
.pd-tabs__btn:hover { color: var(--pd-gold); }
.pd-tabs__btn.is-active { color: var(--pd-gold); }
.pd-tabs__btn.is-active::after { background: var(--pd-gold); }

.pd-tabs__panel { display: none; padding-top: 24px; }
.pd-tabs__panel.is-active { display: block; }

/* --- Контент таба «Описание» --- */
.pd-prose { display: grid; gap: 16px; }
.pd-prose h3 {
    font-size: var(--pd-fz-md);
    font-weight: 700;
}
.pd-prose h3 + p { margin-top: -10px; }
.pd-prose ul { display: grid; gap: 4px; }
.pd-prose li { position: relative; padding-left: 18px; }
.pd-prose li::before {
    content: '·';
    position: absolute;
    left: 6px;
}

.pd-expert {
    padding: 20px 24px;
    border-radius: var(--pd-r-md);
    background: var(--pd-surface-2);
}
.pd-expert__title {
    margin-bottom: 8px;
    font-size: var(--pd-fz-md);
    font-weight: 700;
}
.pd-expert__link {
    display: inline-block;
    margin-top: 8px;
    font-size: var(--pd-fz-sm);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Контент таба «Характеристики» --- */
.pd-tabs__panel .pd-specs__list { max-width: 600px; gap: 17.6px; }

/* --- Контент таба «Динамика цены» --- */
.pd-chart {
    padding: 24px;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-r-lg);
}
.pd-chart__ranges { display: flex; gap: 8px; }
.pd-chart__range {
    min-height: 40px;
    padding-inline: 20px;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-r-sm);
    background: var(--pd-white);
    cursor: pointer;
}
.pd-chart__range.is-active {
    background: var(--pd-gold-100);
    border-color: var(--pd-gold-200);
    color: var(--pd-gold);
}
.pd-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 20px;
}
.pd-chart__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pd-chart__legend-item::before {
    content: '';
    width: 10px; height: 10px;
    border-radius: var(--pd-r-pill);
    background: currentColor;
}
.pd-chart__legend-item--coin { color: var(--pd-navy); }
.pd-chart__legend-item--gold { color: var(--pd-gold); }
.pd-chart__legend-item span { color: var(--pd-ink); }

.pd-chart__range[disabled] {
    opacity: .45;
    cursor: default;
}

/* Периоды отрисованы все сразу, видим один: переключение без запроса. */
.pd-chart__view { display: none; }
.pd-chart__view.is-active { display: block; }

.pd-chart__canvas {
    position: relative;
    margin-top: 8px;
    touch-action: pan-y;      /* вертикальную прокрутку страницы не перехватываем */
    cursor: crosshair;
}
.pd-chart__canvas svg { display: block; width: 100%; height: 260px; }
.pd-chart__canvas:focus-visible {
    outline: 2px solid var(--pd-gold);
    outline-offset: 4px;
}

/* Указатель: вертикаль, точка на кривой и подсказка. Появляются вместе. */
.pd-chart__cursor,
.pd-chart__dot,
.pd-chart__tip { opacity: 0; pointer-events: none; transition: opacity .12s; }

.pd-chart__canvas.is-tracking .pd-chart__cursor,
.pd-chart__canvas.is-tracking .pd-chart__dot,
.pd-chart__canvas.is-tracking .pd-chart__tip { opacity: 1; }

.pd-chart__cursor {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--pd-border);
}
.pd-chart__dot {
    position: absolute;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;    /* центрируем по точке ряда */
    border-radius: var(--pd-r-pill);
    background: var(--pd-navy);
    box-shadow: 0 0 0 3px var(--pd-white);
}
.pd-chart__tip {
    position: absolute;
    top: 0;
    z-index: 2;
    padding: 6px 10px;
    border-radius: var(--pd-r-sm);
    background: var(--pd-navy);
    color: var(--pd-white);
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
}
.pd-chart__tip b { display: block; font-weight: 600; }

/* Подписи времени под графиком: каждая стоит ровно под своей точкой. */
.pd-chart__axis {
    position: relative;
    height: 18px;
    margin-top: 6px;
}
.pd-chart__axis-mark {
    position: absolute;
    transform: translateX(-50%);
    color: var(--pd-muted);
    font-size: 12px;
    white-space: nowrap;
}
/* Крайние подписи прижимаем внутрь, иначе они вылезают за рамку блока. */
.pd-chart__axis-mark:first-child { transform: none; }
.pd-chart__axis-mark:last-child { transform: translateX(-100%); }

.pd-chart__note {
    margin-top: 12px;
    text-align: right;
    color: var(--pd-muted);
    font-size: 14px;
}

.pd-chart__view:not(:has(.pd-chart__canvas)) .pd-chart__note {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    margin-top: 8px;
    text-align: center;
}

/* --- Контент таба «Вопрос / Ответ» --- */
.pd-faq { display: grid; gap: 16px; }
.pd-faq__item {
    padding: 23px;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-r-lg);
}
.pd-faq__icon {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    margin-bottom: 12px;
    border-radius: var(--pd-r-sm);
    background: var(--pd-help-bg);
    color: var(--pd-help-fg);
    font-weight: 700;
}
.pd-faq__q {
    margin-bottom: 2px;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
}
.pd-faq__item p { font-size: 17px; }
.pd-faq__link {
    display: inline-block;
    margin-top: 2px;
    font-size: 17px;
    color: var(--pd-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   Секции с каруселями
   ========================================================================== */

.pd-section { margin-top: var(--pd-section-gap); }

.pd-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.pd-section__title {
    font-size: var(--pd-fz-h2);
    font-weight: 600;
    letter-spacing: -.01em;
}
.pd-section__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    color: var(--pd-gold);
}
.pd-section__link-full { display: none; }

/* Горизонтальный скролл с «выездом» за контейнер */
.pd-scroller {
    display: flex;
    gap: var(--pd-card-gap);
    margin-inline: calc(-1 * var(--pd-bleed));
    padding-inline: var(--pd-bleed);
    padding-block: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.pd-scroller::-webkit-scrollbar { display: none; }

/* --- Карточка товара --- */
.pd-product {
    display: flex;
    flex-direction: column;
    flex: 0 0 var(--pd-card-w);
    width: var(--pd-card-w);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-r-lg);
    background: var(--pd-white);
    overflow: hidden;
}
.pd-product__media {
    position: relative;
    display: grid;
    place-items: center;
    height: 220px;
    padding: 12px;
    background: var(--pd-cream);
}
/* Ссылка тянется на всю площадку: иначе она получает натуральную ширину
   картинки, 78% считаются от неё, и снимок прижимается к левому краю. */
.pd-product__media a {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}
.pd-product__media img {
    width: 78%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.pd-product__badges {
    position: absolute;
    top: 12px; left: 12px;
    display: grid;
    justify-items: start;
    gap: 6px;
}
.pd-badge {
    padding: 4px 10px;
    border-radius: var(--pd-r-xs);
    font-size: var(--pd-fz-xs);
    line-height: 1.3;
    color: #fff;
}
.pd-badge--new    { background: var(--pd-navy-badge); }
.pd-badge--stock  { background: var(--pd-green); }
.pd-badge--basket { background: var(--pd-green); }

.pd-product__fav {
    position: absolute;
    top: 8px; right: 8px;
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border: 0;
    border-radius: var(--pd-r-pill);
    background: none;
    color: var(--pd-ink);
    cursor: pointer;
}
.pd-product__fav:hover { color: var(--pd-gold); }

.pd-product__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    padding: 16px;
}
.pd-product__origin { color: var(--pd-muted); font-size: var(--pd-fz-sm); }
.pd-product__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pd-product__meta { color: var(--pd-muted); font-size: var(--pd-fz-sm); }
.pd-product__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin-top: auto;
    padding-top: 8px;
}
.pd-product__price { font-size: var(--pd-fz-lg); font-weight: 700; }
.pd-product__price-old { color: var(--pd-muted); font-size: var(--pd-fz-sm); }
.pd-product__btn {
    min-height: 44px;
    margin-top: 12px;
    font-size: var(--pd-fz-md);
}

/* ==========================================================================
   Новости
   ========================================================================== */

.pd-news-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 var(--pd-card-w);
    width: var(--pd-card-w);
    border-radius: var(--pd-r-lg);
    background: var(--pd-surface-2);
    overflow: hidden;
}
.pd-news-card__img {
    width: 100%;
    height: 186px;
    object-fit: cover;
}
.pd-news-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    padding: 16px;
}
.pd-news-card__title {
    font-size: var(--pd-fz-md);
    font-weight: 700;
}
.pd-news-card__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pd-news-card__link {
    margin-top: auto;
    color: var(--pd-gold);
}

/* ==========================================================================
   Липкая панель действий (мобильный / планшет)
   ========================================================================== */

.pd-stickybar {
    position: fixed;
    inset: auto 0 var(--pd-bottomnav-h) 0;
    z-index: 30;
    display: none;
    padding: 12px var(--pd-gutter);
    background: var(--pd-white);
    border-top: 1px solid var(--pd-border);
}
.pd-stickybar .pd-actions { gap: 12px; }
.pd-stickybar .pd-btn { width: 100%; }

/* ==========================================================================
   Тост
   ========================================================================== */

.pd-toast {
    position: fixed;
    z-index: 60;
    right: var(--pd-gutter);
    bottom: calc(var(--pd-bottomnav-h) + var(--pd-stickybar-h) + 16px);
    display: none;
    align-items: flex-start;
    gap: 16px;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: var(--pd-r-md);
    background: var(--pd-warn-bg);
    color: var(--pd-warn-fg);
    font-weight: 700;
}
.pd-toast.is-visible { display: flex; }
.pd-toast__close {
    flex: none;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

/* ==========================================================================
   Модальные окна
   ========================================================================== */

.pd-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--pd-overlay);
}
.pd-modal.is-open { display: flex; }

.pd-modal__dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    max-height: min(85vh, 900px);
    padding: 24px;
    border-radius: var(--pd-r-xl);
    background: var(--pd-white);
    box-shadow: var(--pd-shadow-pop);
}
.pd-modal__dialog--wide { max-width: 1200px; }

.pd-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.pd-modal__title {
    font-size: var(--pd-fz-h3);
    font-weight: 600;
}
.pd-modal__close {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border: 0;
    border-radius: var(--pd-r-sm);
    background: none;
    cursor: pointer;
}
.pd-modal__close:hover { background: var(--pd-surface); }

.pd-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* --- Модалка «Аксессуары» --- */
.pd-acc-list { display: grid; gap: 16px; }

.pd-acc {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-areas:
        "img   price"
        "img   info"
        "tools btn";
    align-items: center;
    gap: 12px 16px;
}

.pd-acc__img {
    grid-area: img;
    align-self: start;
    width: 80px; height: 80px;
    border-radius: var(--pd-r-md);
    background: var(--pd-surface-2);
    object-fit: contain;
}
.pd-acc__info {
    grid-area: info;
    align-self: start;
    display: grid;
    gap: 10px;
    justify-items: start;
}
.pd-acc__stock {
    padding: 3px 10px;
    border-radius: var(--pd-r-xs);
    background: var(--pd-surface-2);
    color: var(--pd-green-text);
    font-size: var(--pd-fz-sm);
}
.pd-acc__tools { grid-area: tools; display: flex; gap: 16px; }
.pd-acc__price { grid-area: price; }
.pd-acc__btn   { grid-area: btn; }
.pd-acc__tool {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border: 0;
    background: none;
    color: var(--pd-ink);
    cursor: pointer;
}
.pd-acc__tool:hover { color: var(--pd-gold); }
.pd-acc__price { font-size: var(--pd-fz-price-2); font-weight: 600; white-space: nowrap; }
.pd-acc__btn { min-height: 48px; font-size: var(--pd-fz-md); }
.pd-acc__name { color: var(--pd-ink); }

/* --- Модалка «Уведомить о наличии» --- */
.pd-notify { display: grid; gap: 16px; }
.pd-notify__product { color: var(--pd-ink); }

.pd-input {
    width: 100%;
    height: 56px;
    padding-inline: 20px;
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-r-md);
    background: var(--pd-white);
    font: inherit;
    color: var(--pd-ink);
}
.pd-input::placeholder { color: var(--pd-ink); }
.pd-input:focus { border-color: var(--pd-gold); outline: none; }

.pd-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--pd-fz-sm);
    cursor: pointer;
}
.pd-check input {
    flex: none;
    width: 20px; height: 20px;
    margin: 2px 0 0;
    accent-color: var(--pd-gold);
}
.pd-check a { color: var(--pd-gold); }

/* ==========================================================================
   Планшет  (768px и выше)
   ========================================================================== */

@media (min-width: 768px) {
    .pd { padding-bottom: 80px; }

    .pd-heading__title { font-size: 32px; }

    .pd-top {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 24px;
    }
    .pd-top__gallery { order: 1; }
    .pd-top__options { order: 2; }
    .pd-top__buy     { order: 3; grid-column: 1 / -1; }

    .pd-gallery__stage { height: 468px; }

    .pd-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pd-section__link-full { display: inline; }
    .pd-section__link-short { display: none; }

    .pd-product__media { height: 300px; }
    .pd-news-card__img { height: 230px; }

    .pd-stickybar { display: none; }

    /* Аксессуары в одну строку: картинка / описание / цена / кнопка */
    .pd-acc {
        grid-template-columns: 160px minmax(0, 1fr) auto auto;
        grid-template-areas:
            "img info  price btn"
            "img tools price btn";
        gap: 8px 24px;
    }
    .pd-acc__img { width: 160px; height: 160px; align-self: center; }
    .pd-acc__info { grid-area: info; align-self: end; }
    .pd-acc__tools { align-self: start; }
    /* 142 замерено: кнопка в макете 1394..1536, правым краем вплотную
       к внутреннему краю диалога (1560 − 24 паддинга). Было 180. */
    .pd-acc__btn { min-width: 142px; align-self: center; }
    .pd-acc__price { align-self: center; }
}

/* ==========================================================================
   Десктоп  (1280px и выше)
   ========================================================================== */

@media (min-width: 1280px) {
    .pd { padding-bottom: 120px; }

    .pd-acc { grid-template-columns: 180px minmax(0, 1fr) auto auto; }
    .pd-acc__img { width: 180px; height: 180px; }

    .pd-breadcrumbs { padding-block: 8px 20px; }

    .pd-heading__title { font-size: var(--pd-fz-h1); }
    .pd-heading { margin-bottom: 32px; }

    .pd-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--pd-col-gap);
    }
    .pd-top__gallery { order: 1; }
    .pd-top__options { order: 2; }
    .pd-top__buy     { order: 3; grid-column: auto; }

    .pd-gallery__thumbs { display: flex; }

    .pd-section__title { font-size: var(--pd-fz-h2); }
}

/* ==========================================================================
   Мобильный  (до 767px)
   ========================================================================== */

@media (max-width: 1200px) { :root { --pd-bottomnav-h: 68px; } }
@media (max-width: 800px)  { :root { --pd-bottomnav-h: 61px; } }

@media (max-width: 767px) {
    .pd-heading__title { font-size: 28px; }

    /* На мобильном рейтинг не показываем — как в макете */
    .pd-rating { display: none; }

    .pd-card { padding: 16px; }

    .pd-iconbtn { width: 44px; height: 44px; }

    :root { --pd-fz-price: 24px; }

    :root { --pd-stickybar-h: 81px; }

    body { padding-bottom: calc(var(--pd-stickybar-h) + var(--pd-bottomnav-h)); }

    .pd-buy .pd-actions__cart,
    .pd-buy .pd-actions__qty,
    .pd-buy .pd-actions__notify { display: none !important; }
    .pd-buy .pd-actions { justify-content: space-around; }

    .pd-stickybar { display: block; }

    .pd-buyout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .pd-buyout .pd-btn { width: 100%; margin-top: 8px; }

    .pd-section__title { font-size: 22px; }

    .pd-toast { left: var(--pd-gutter); right: var(--pd-gutter); max-width: none; }
}

/* ==========================================================================
   Противовесы глобальному ресету css/main.css
   Файл подключается ядром после main.css, поэтому при равной специфичности
   выигрывают эти правила.
   ========================================================================== */

.pd {
    color: var(--pd-ink);
    line-height: 1.4;
}

.pd a { color: inherit; }

.pd-chart__range,
.pd-gallery__dot,
.pd-toast__close { display: inline-block; }

.pd-specs__hint,
.pd-buyout__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pd-muted);
    cursor: help;
    vertical-align: middle;
}
.pd-specs__hint:hover,
.pd-buyout__hint:hover { color: var(--pd-ink); }

/* --- Пузырь пояснения у характеристики ---
   Координаты ставит placeHint(): .pd-specs__value обрезан по overflow. */
.pd-hint { display: inline-flex; }
.pd-hint__bubble {
    position: fixed;
    z-index: 40;
    left: 0;
    top: 0;
    display: none;
    width: max-content;
    max-width: 260px;
    padding: 10px 12px;
    border-radius: var(--pd-r-sm);
    background: var(--pd-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
}
.pd-hint__bubble.is-open { display: block; }

/* End */


/* Start:/local/templates/goldenplata/components/bitrix/form.result.new/gm_element_recall/style.css?177541067185*/
.reserve-policy.input-error {
    border: 1px solid red;
    border-radius: 4px;
}
/* End */
/* /local/templates/goldenplata/components/bitrix/catalog/gm_main/bitrix/catalog.element/pd/style.css?178782546839703 */
/* /local/templates/goldenplata/components/bitrix/form.result.new/gm_element_recall/style.css?177541067185 */
