/* Витрина 3D в карточке товара (RAWMID спека 005): плашка 3D-студии и 4 шаблона «Описания блоками».
   Подключается только у карточек, где есть эти блоки или GLB (ControllerProductProduct::index).
   Тёмная тема — в конце файла по html[data-theme="dark"], dark-auto.css не трогается.
   Анимируются только transform и opacity; prefers-reduced-motion — статика. */

/* Обёртка описания: overflow: hidden делает её контейнером прокрутки и ломает position: sticky */
.alldescription .product-description.has-scroll-blocks.is-collapsed {
    overflow: clip;
}

.alldescription, #productDescriptionCollapse, #description_blocks,
.showcase-scene, .showcase-reasons, .showcase-cta {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.showcase-reasons, .showcase-reasons__viewport {
    contain: inline-size;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1800px) {
    .product-info-grid {
        grid-template-columns: minmax(0, 1fr) 450px;
    }
}
#description_blocks .showcase-scene img.showcase-scene__frame {
    border-radius: 16px;
}

/* Плашка 3D-студии */
.studio3d-plate {
    margin: 10px auto 0;
    display: flex;
    justify-content: center;
}
.studio3d-plate__button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid rgba(29, 29, 31, 0.16);
    border-radius: 12px;
    background: #ffffff;
    color: #1d1d1f;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease-out, border-color 200ms ease-out;
}
.studio3d-plate__button:active {
    transform: scale(0.97);
}
.studio3d-plate__button:focus-visible {
    outline: 2px solid #00a4e2;
    outline-offset: 2px;
}
.studio3d-plate__icon {
    flex: none;
    color: #0077b6;
}
.studio3d-plate__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.studio3d-plate__title {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.studio3d-plate__hint {
    font-size: 13px;
    line-height: 1.35;
    color: #55575c;
}
.studio3d-plate__error {
    margin: 8px 0 0;
    font-size: 13px;
    color: #b3261e;
}

/* Сцены с кадрами: scroll_360_showcase и exploded_scroll */
.showcase-scene {
    margin: 0 0 40px;
}
.showcase-scene__track {
    position: relative;
}
.showcase-scene.is-scroll .showcase-scene__sticky {
    position: sticky;
    top: 64px;
    padding: 20px 0;
    box-sizing: border-box;
}
.showcase-scene__head {
    max-width: 72ch;
    margin: 0 auto 20px;
    text-align: center;
}
.showcase-scene__title {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.2;
}
.showcase-scene__subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: #4a4c52;
}
.showcase-scene__body {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}
.showcase-scene__stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: var(--showcase-stage-bg);
    border: 1px solid var(--showcase-stage-edge);
}
.showcase-scene.is-scroll .showcase-scene__stage {
    max-height: min(78svh, 760px);
}
.showcase-scene__frame {
    border-radius: 16px;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Тезисы 360° */
.showcase-points {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.showcase-point {
    transition: opacity 280ms ease-out, transform 280ms ease-out;
}
.showcase-scene.is-scroll .showcase-point:not(.is-visible) {
    opacity: 0;
    transform: translateY(8px);
}
.showcase-point__metric,
.showcase-reason__metric {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}
.showcase-point__title {
    margin: 4px 0;
    font-size: 17px;
    line-height: 1.3;
}
.showcase-point__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #3c3f44;
}

/* Выноски взрыв-схемы */
.showcase-scene--exploded .showcase-scene__stage {
    max-width: 1100px;
    margin: 0 auto;
}
.showcase-callout {
    position: absolute;
    max-width: min(240px, 44%);
    box-sizing: border-box;
    overflow-wrap: anywhere;
    padding: 8px 12px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    color: #1d1d1f;
    font-size: 13px;
    line-height: 1.35;
    transform-origin: center;
    transition: opacity 280ms ease-out, transform 280ms ease-out;
}
.showcase-scene.is-scroll .showcase-callout:not(.is-visible) {
    opacity: 0;
    transform: scale(0.95);
}
.showcase-callout__title {
    display: block;
    font-weight: 600;
}
.showcase-callout__text {
    display: block;
    margin-top: 2px;
    color: #3c3f44;
    font-variant-numeric: tabular-nums;
}

/* Лента причин: с JS и без reduced-motion едет вбок от scrollY (.is-hscroll), иначе — нативный слайдер */
.showcase-reasons {
    margin: 0 0 40px;
}
.showcase-reasons__track {
    position: relative;
}
.showcase-reasons__head {
    max-width: 72ch;
    margin: 0 0 20px;
}
.showcase-reasons__title {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.2;
}
.showcase-reasons__subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: #4a4c52;
}
.showcase-reasons__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
/* Лента причин (.is-hscroll ставит showcase_blocks.js): компактная sticky-панель по высоте контента,
   список сдвигается transform от scrollY. На ПК скрипт задаёт top (центр под шапкой 64)
   и высоту дорожки = высота панели + горизонтальный вылет, на телефоне — 155svh.
   .is-native — reduced-motion или панель не влезает по высоте: обычный горизонтальный слайдер. */
.showcase-reasons.is-hscroll .showcase-reasons__sticky {
    position: sticky;
    top: 64px;
    min-height: 0;
    padding-block: 16px;
}
.showcase-reasons.is-hscroll .showcase-reasons__viewport {
    overflow: hidden;
    overflow: clip;
    scroll-snap-type: none;
}
.is-hscroll .showcase-reasons__sticky::after {
    content: "";
    display: block;
    height: 3px;
    margin-top: 10px;
    background: linear-gradient(to right, var(--showcase-progress) var(--reasons-progress,0%), #77889944 0);
}
@media (min-width: 992px) {
    .showcase-reasons .showcase-reasons__viewport {
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, transparent, black var(--reasons-fade-start, 0px),
            black calc(100% - var(--reasons-fade-end, 0px)), transparent);
        mask-image: linear-gradient(to right, transparent, black var(--reasons-fade-start, 0px),
            black calc(100% - var(--reasons-fade-end, 0px)), transparent);
    }
    .showcase-reasons .showcase-reasons__viewport::-webkit-scrollbar {
        display: none;
    }
    .showcase-reasons.is-native .showcase-reasons__viewport {
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
    }
    .showcase-reasons.is-native .showcase-reasons__viewport:focus-visible {
        outline: 2px solid var(--showcase-progress);
        outline-offset: 4px;
    }
    .showcase-reasons.is-native .showcase-reasons__sticky::after {
        content: "";
        display: block;
        height: 3px;
        margin-top: 10px;
        background: linear-gradient(to right, var(--showcase-progress) var(--reasons-progress,0%), #77889944 0);
    }
    .showcase-reasons.is-hscroll .showcase-reasons__list {
        will-change: transform;
    }
    .showcase-reasons__list {
        padding-block: 4px 10px;
    }
    /* Карточка ПК: ~460×360 при 1920×1000; без картинки — по левому краю и к верху */
    .showcase-reasons .showcase-reason {
        display: flex;
        flex: 0 0 clamp(360px, 24vw, 460px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: clamp(320px, 36vh, 380px);
        min-height: clamp(320px, 36svh, 380px);
        padding: 32px 36px;
        text-align: center;
        scroll-snap-align: center;
    }
    .showcase-reasons .showcase-reason:not(:has(img, picture)) {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }
    .showcase-reasons .showcase-reason::after {
        margin-bottom: 16px;
    }
    .showcase-reasons .showcase-reason__title {
        margin: 10px 0 12px;
        font-size: clamp(24px, 1.5vw, 28px);
        line-height: 1.25;
    }
    .showcase-reasons .showcase-reason:not(:has(img, picture)) .showcase-reason__title {
        margin-top: 0;
    }
    .showcase-reasons .showcase-reason__text {
        font-size: 18px;
        line-height: 1.5;
    }
}
@media (prefers-reduced-motion: reduce) {
    .showcase-reasons .showcase-reasons__list {
        transition: none;
    }
}
@media (max-width: 991px) {
    .showcase-reasons.is-hscroll .showcase-reasons__track {
        height: 155svh;
    }
    .showcase-scene .showcase-scene__nodes {
        padding: 0;
        list-style: none;
        counter-reset: parts;
    }
    .showcase-scene__nodes .showcase-callout {
        counter-increment: parts;
        padding: 12px 14px;
        border-inline-start: 3px solid var(--showcase-accent, #0088cc);
        border-radius: 12px;
    }
    .showcase-scene__nodes .showcase-callout::before {
        content: counter(parts, decimal-leading-zero);
        display: inline-block;
        font-weight: 700;
        margin-inline-end: 8px;
    }
    .product-price #product_discount_navigation .btn {
        min-height: 34px;
        height: auto;
        padding: 6px 12px;
        font-size: 13px;
        line-height: 20px;
        background: transparent;
        color: inherit;
        border: 1px solid currentColor;
        box-shadow: none;
    }
    .product-price #product_discount_navigation .btn.selected-image {
        background: rgba(128,140,156,.15);
    }
}
.showcase-scene, .showcase-reasons {
    margin-bottom: 36px;
}
.showcase-scene__nodes {
    margin: 0;
    padding-inline-start: 3em;
    list-style: decimal-leading-zero;
}
.showcase-scene__nodes .showcase-callout {
    display: list-item;
    position: static;
    max-width: none;
    margin-block: 6px;
}
.showcase-scene.is-scroll .showcase-scene__nodes .showcase-callout:not(.is-visible) {
    opacity: .65;
    transform: none;
}
/* Типографика блоков витрины: заголовок 28 на ПК / 20 на 390, текст 16 (как у CTA 3D-студии) */
:root {
    --showcase-type-title: clamp(20px, 2.2vw, 28px);
    --showcase-type-title-lh: 1.25;
    --showcase-type-text: 16px;
    --showcase-type-text-lh: 1.5;
}
/* Панель разбора exploded_scroll — отдельная колонка рядом с моделью, шрифт из токенов CTA */
.showcase-scene--exploded .showcase-scene__nodes .showcase-callout {
    font-size: var(--showcase-type-text);
    line-height: var(--showcase-type-text-lh);
}
.showcase-scene--exploded .showcase-scene__nodes .showcase-callout__title {
    font-size: var(--showcase-type-title);
    line-height: var(--showcase-type-title-lh);
}
.showcase-scene--exploded .showcase-scene__nodes .showcase-callout__text {
    margin-top: 4px;
    font-size: var(--showcase-type-text);
    line-height: var(--showcase-type-text-lh);
}
@media (max-width: 991px) {
    .showcase-scene, .showcase-reasons {
        margin-bottom: 24px;
    }
    .showcase-scene--exploded .showcase-scene__body {
        grid-template-columns: 1fr;
    }
    .showcase-scene__nodes .showcase-callout__text {
        display: block;
    }
    .showcase-scene.is-scroll .showcase-scene__stage {
        max-height: none;
    }
}
.showcase-reasons__list {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0 0 8px;
    list-style: none;
    counter-reset: showcase-reason;
}
.showcase-reason {
    position: relative;
    overflow: hidden;
    display: flex;
    flex: 0 0 min(340px, 80vw);
    flex-direction: column;
    box-sizing: border-box;
    padding: 20px;
    border: 1px solid var(--showcase-reason-edge, var(--showcase-card-edge));
    border-radius: 16px;
    background: var(--showcase-reason-bg, var(--showcase-card-bg));
    counter-increment: showcase-reason;
    scroll-snap-align: start;
    transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.showcase-reason:not(:has(img, picture)) {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}
.showcase-reason:not(:has(img, picture)) :is(.showcase-reason__title, .showcase-reason__text) {
    text-align: left;
}
.showcase-reason::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--showcase-reason-bar);
    transition: background 240ms ease;
}
.showcase-reason::after {
    content: counter(showcase-reason, decimal-leading-zero);
    order: -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 10px;
    margin-bottom: 12px;
    border: 1px solid var(--showcase-reason-badge-edge);
    border-radius: 999px;
    background: var(--showcase-reason-badge-bg);
    color: var(--showcase-reason-badge-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease;
}
.showcase-reason__title {
    margin: 8px 0 6px;
    font-size: 18px;
    line-height: 1.3;
}
.showcase-reason:not(:has(img, picture)) .showcase-reason__title {
    margin-top: 0;
}
.showcase-reason__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #3c3f44;
}

/* Акценты цифр и выносок — один фирменный цвет сайта для warm/cool/neutral */
.showcase-point__metric,
.showcase-reason__metric,
.showcase-callout .showcase-callout__title {
    color: var(--showcase-accent);
}

/* Кромка и поверхность карточек — как у карточек сайта */
#description_blocks .showcase-cta {
    border: 1px solid var(--showcase-card-edge);
    background: var(--showcase-card-bg);
    box-shadow: 0 4px 14px rgba(31,58,90,.06);
}
#description_blocks .showcase-reason {
    border: 1px solid var(--showcase-reason-edge, var(--showcase-card-edge));
    background: var(--showcase-reason-bg, var(--showcase-card-bg));
    box-shadow: var(--showcase-reason-shadow);
}
#description_blocks .showcase-reason.is-active {
    border-color: var(--showcase-reason-active-edge);
    background: var(--showcase-reason-active-bg);
    box-shadow: var(--showcase-reason-active-shadow);
}
#description_blocks .showcase-reason.is-active::before {
    background: var(--showcase-reason-active-bar);
}
#description_blocks .showcase-reason.is-active::after {
    background: var(--showcase-reason-active-badge-bg);
    border-color: var(--showcase-reason-active-badge-edge);
    color: var(--showcase-reason-active-badge-ink);
}
/* Кнопки 3D-студии и AR */
.showcase-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin: 0 0 40px;
    padding: 24px;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 54%, #fff, #f1f5f9 72%, #e6edf5);
    border: 1px solid rgba(0,119,182,.10);
}
.showcase-cta__body {
    flex: 1 1 360px;
    min-width: 0;
}
.showcase-cta__title {
    margin: 0 0 6px;
    font-size: var(--showcase-type-title);
    line-height: var(--showcase-type-title-lh);
}
.showcase-cta__text {
    max-width: 62ch;
    margin: 0;
    font-size: var(--showcase-type-text);
    line-height: var(--showcase-type-text-lh);
    color: #3c3f44;
}
.showcase-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.showcase-cta__button {
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--showcase-btn-bg);
    color: var(--showcase-btn-ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease-out, background-color 200ms ease-out;
}
.showcase-cta__button:active {
    transform: scale(0.97);
}
.showcase-cta__button:focus-visible {
    outline: 2px solid #00a4e2;
    outline-offset: 2px;
}

/* Наведение — только там, где есть мышь */
@media (hover: hover) {
    .studio3d-plate__button:hover {
        border-color: #00a4e2;
    }
    .showcase-cta__button:hover {
        background: var(--showcase-btn-hover);
    }
}

@media (max-width: 820px) {
    .showcase-scene__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .showcase-scene.is-scroll .showcase-scene__stage {
        max-height: none;
    }
    .showcase-points {
        gap: 10px;
    }
    .showcase-point__metric {
        font-size: 17px;
    }
    .showcase-point__title {
        font-size: 15px;
    }
    .showcase-point__text {
        font-size: 14px;
    }
    .showcase-callout {
        max-width: 44%;
        padding: 6px 8px;
        font-size: 12px;
    }
    .showcase-callout--desktop {
        display: none;
    }
}

/* Телефон: сцена ~200 px высотой, выноски с текстом накладываются — оставляем только заголовок */
@media (max-width: 640px) {
    .showcase-callout {
        max-width: 40%;
        padding: 5px 8px;
        font-size: 11px;
        line-height: 1.3;
    }
    .showcase-callout__text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .studio3d-plate__button,
    .showcase-point,
    .showcase-callout,
    .showcase-reason,
    .showcase-reason::before,
    .showcase-reason::after,
    .showcase-cta__button {
        transition: none;
    }
}

/* Тёмная тема: сцена остаётся тёмной, чёрная техника не высвечивается */
html[data-theme="dark"] .studio3d-plate__button {
    border-color: rgba(242, 242, 244, 0.16);
    background: #1d1e21;
    color: #f2f2f4;
}
html[data-theme="dark"] .studio3d-plate__icon {
    color: #63d4ff;
}
html[data-theme="dark"] .studio3d-plate__hint,
html[data-theme="dark"] .showcase-scene__subtitle,
html[data-theme="dark"] .showcase-reasons__subtitle {
    color: #b6b8bd;
}
html[data-theme="dark"] .studio3d-plate__error {
    color: #f2b8b5;
}
html[data-theme="dark"] .showcase-point__text,
html[data-theme="dark"] .showcase-reason__text,
html[data-theme="dark"] .showcase-cta__text,
html[data-theme="dark"] .showcase-callout__text {
    color: #c9cbcf;
}
html[data-theme="dark"] .showcase-callout {
    background: #1d1e21;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #f2f2f4;
}

/* Product gallery and variant actions */
.product-images .studio3d-plate, .product-images .studio3d-plate__button { width: 100%; }
.product-images .studio3d-plate__button { justify-content: center; padding: 12px 16px; gap: 12px; }
.product-images .studio3d-plate__title { font-size: 16px; }
.product-images .studio3d-plate__icon { width: 26px; height: 26px; }
.studio3d-option { display: none; }
@media (max-width:820px) {
    .studio3d-option:not([hidden]) { display: inline-flex; padding: 8px 12px; margin-top: 8px; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 8px; }
    html .product-sticky-buy.is-active { background: #fff; backdrop-filter: none; }
    html[data-theme="dark"] .product-sticky-buy.is-active { background: #191c20; }
}
/* Цветовые токены описания и 3D-блоков: палитра меняется только здесь.
   --showcase-accent — цифры и заголовки выносок, --showcase-stage-* — фон под рендером,
   --showcase-btn-* — кнопка 3D-студии (как «Купить» в карточке). */
#productDescriptionCollapse {
    --desc-ink: #24282c;
    --desc-surface: #fff;
    --desc-edge: #d8dce0;
    --showcase-accent: #0077a8;
    --showcase-muted: #4a4c52;
    --showcase-stage-bg: transparent;
    --showcase-stage-edge: transparent;
    --showcase-card-bg: #fff;
    --showcase-card-edge: #d8dce0;
    --showcase-reason-bg: radial-gradient(118.01% 118.01% at 50% 0%, rgba(0, 173, 238, 0.12) 0%, rgba(58, 201, 255, 0) 100%), linear-gradient(180deg, #effbff 0%, #ffffff 100%);
    --showcase-reason-edge: #d6e6f0;
    --showcase-reason-shadow: 0 4px 14px rgba(0, 54, 74, 0.06);
    --showcase-reason-bar: linear-gradient(90deg, rgba(0, 173, 238, 0.42) 0%, rgba(45, 197, 255, 0.14) 100%);
    --showcase-reason-badge-bg: #eaf6fd;
    --showcase-reason-badge-edge: #d6e6f0;
    --showcase-reason-badge-ink: #0077a8;
    --showcase-reason-active-bg: radial-gradient(118.01% 118.01% at 50% 0%, rgba(0, 173, 238, 0.22) 0%, rgba(58, 201, 255, 0.04) 72%, rgba(58, 201, 255, 0) 100%), linear-gradient(180deg, #eaf7ff 0%, #ffffff 100%);
    --showcase-reason-active-edge: #00a4e2;
    --showcase-reason-active-shadow: 0 8px 22px rgba(0, 54, 74, 0.10), inset 0 0 0 1px rgba(0, 164, 226, 0.22);
    --showcase-reason-active-bar: linear-gradient(90deg, #0077a8 0%, #2dc5ff 100%);
    --showcase-reason-active-badge-bg: #0077a8;
    --showcase-reason-active-badge-edge: #0077a8;
    --showcase-reason-active-badge-ink: #ffffff;
    --showcase-btn-bg: #24c3f3;
    --showcase-btn-ink: #00364a;
    --showcase-btn-hover: #12b2e3;
    --showcase-progress: #00a4e2;
}
html[data-theme="dark"] #productDescriptionCollapse {
    --desc-ink: #eceff2;
    --desc-surface: #202327;
    --desc-edge: #393e44;
    --showcase-accent: #63d4ff;
    --showcase-muted: #b6b8bd;
    --showcase-stage-bg: radial-gradient(ellipse 50% 46% at 50% 52%, #6e6e6e 0, #4a4a4a 34%, #2c2c2c 62%, rgba(30, 30, 30, 0) 100%);
    --showcase-stage-edge: transparent;
    --showcase-card-bg: #1d1e21;
    --showcase-card-edge: #393e44;
    --showcase-reason-bg: radial-gradient(118.01% 118.01% at 50% 0%, rgba(0, 173, 238, 0.14) 0%, rgba(58, 201, 255, 0) 100%), linear-gradient(180deg, #1b222a 0%, #202327 100%);
    --showcase-reason-edge: rgba(99, 212, 255, 0.18);
    --showcase-reason-shadow: 0 4px 16px rgba(0, 0, 0, 0.26);
    --showcase-reason-bar: linear-gradient(90deg, rgba(0, 173, 238, 0.55) 0%, rgba(99, 212, 255, 0.22) 100%);
    --showcase-reason-badge-bg: rgba(99, 212, 255, 0.12);
    --showcase-reason-badge-edge: rgba(99, 212, 255, 0.24);
    --showcase-reason-badge-ink: #63d4ff;
    --showcase-reason-active-bg: radial-gradient(118.01% 118.01% at 50% 0%, rgba(0, 173, 238, 0.26) 0%, rgba(58, 201, 255, 0.05) 72%, rgba(58, 201, 255, 0) 100%), linear-gradient(180deg, #253746 0%, #1b222a 100%);
    --showcase-reason-active-edge: rgba(99, 212, 255, 0.56);
    --showcase-reason-active-shadow: 0 8px 24px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(99, 212, 255, 0.24);
    --showcase-reason-active-bar: linear-gradient(90deg, #00a4e2 0%, #63d4ff 100%);
    --showcase-reason-active-badge-bg: rgba(99, 212, 255, 0.24);
    --showcase-reason-active-badge-edge: rgba(99, 212, 255, 0.55);
    --showcase-reason-active-badge-ink: #eceff2;
}
#productDescriptionCollapse.is-collapsed :is(.description-contents, nav[aria-label="Оглавление описания"]) { display: none; }
:is(.description-contents, nav[aria-label="Оглавление описания"]) { display:flex; flex-wrap:wrap; gap:8px 16px; padding:16px 0; }
#description_blocks [id] { scroll-margin-top: 80px; }
#productDescriptionCollapse #description_blocks > .row { box-sizing:border-box; margin-inline:0; width:100%; max-width:100%; }
#productDescriptionCollapse #description_blocks > .row:not([class*="background_grid"]) { color:var(--desc-ink); background-color:var(--desc-surface); border-color:var(--desc-edge); }
#productDescriptionCollapse #description_blocks > .row:not([class*="background_grid"]) :is(h2,h3,h4,.title,.text) { color:var(--desc-ink); border-color:var(--desc-edge); }
#productDescriptionCollapse #description_blocks > .row:not([class*="background_grid"]) :is(.item,.grid,.grid-item) { background-color:var(--desc-surface); border-color:var(--desc-edge); }
#productDescriptionCollapse #description_blocks > .row:not([class*="background_grid"]) .text { border-color:var(--desc-edge); }

#productDescriptionCollapse :is(.description-contents, nav[aria-label="Оглавление описания"]) {
    --chip: #fff; --edge: #d6e6f0; --ink: #163244; --badge: #eaf6fd; --accent: #0077a8; --hover: #eaf7ff;
    margin: 16px 0 24px;
    padding: 18px 20px;
    border: 1px solid #d4eaf5;
    border-radius: 16px;
    background: linear-gradient(180deg,#f5fbff,#fff);
    box-shadow: 0 4px 16px rgba(0,91,131,.06);
    color: var(--ink);
    gap: 12px 10px;
}
.description-contents__head, .description-contents__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    width: 100%;
}
.description-contents__head { font-size: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--edge); }
.description-contents__head svg { color: var(--accent); }
.description-contents__count { margin-left: auto; border-radius: 20px; padding: 2px 9px; background: var(--badge); color: var(--accent); font-size: 13px; }
#productDescriptionCollapse :is(.description-contents, nav[aria-label="Оглавление описания"]) a {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--edge);
    border-radius: 11px;
    color: var(--ink);
    background: var(--chip);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    white-space: normal;
}
@media (min-width: 769px) {
    #productDescriptionCollapse :is(.description-contents, nav[aria-label="Оглавление описания"]) a { max-width: calc(50% - 5px); }
    #productDescriptionCollapse :is(.description-contents, nav[aria-label="Оглавление описания"]) a:only-child { max-width: 100%; }
}
.description-contents__num {
    flex: none; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px;
    text-align: center; font: 700 11px/22px sans-serif; font-variant-numeric: tabular-nums;
    background: var(--badge); color: var(--accent);
}
#productDescriptionCollapse :is(.description-contents, nav[aria-label="Оглавление описания"]) a:is(:hover,:focus-visible,:active,.is-active) { background: var(--hover); border-color: #00a4e2; }
:is(.description-contents, nav[aria-label="Оглавление описания"]) a:is(:hover,:focus-visible,:active,.is-active) .description-contents__num { color: #fff; background: #0077a8; }
:is(.description-contents, nav[aria-label="Оглавление описания"]) a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html[data-theme="dark"] #productDescriptionCollapse :is(.description-contents, nav[aria-label="Оглавление описания"]) {
    --chip: #212730; --edge: #323b46; --ink: #dde6ee; --badge: rgba(99,212,255,.12); --accent: #63d4ff; --hover: #253746;
    border-color: rgba(99,212,255,.18);
    background: linear-gradient(#1b222a,#171b20);
}
@media (max-width: 768px) {
    #productDescriptionCollapse :is(.description-contents, nav[aria-label="Оглавление описания"]) { padding: 14px 12px; border-radius: 14px; }
}
#description_blocks :is(iframe,video,.equipment_image,[class*="image_grid_"] .image,[class*="image_"] img) { border:0!important; border-radius:14px; overflow:hidden; }
#description_blocks :is(picture, figure, video, iframe, [style*="background-image"]) {
    border-radius: 14px;
    overflow: hidden;
}
#description_blocks img:not([width]):not([class*="icon"]):not([src$=".svg"]),
#description_blocks img[width]:not([width="16"]):not([width="24"]):not([width="32"]):not([width="48"]) {
    border-radius: min(14px, 2%);
}
.product-buy-summary, .product-buy-amounts { display:contents; }
.studio3d-options-group { display:inline-flex; flex-direction:column; align-items:center; max-width:100%; }
@media (max-width:820px) {
    #productDescriptionCollapse :is(.description-contents, nav[aria-label="Оглавление описания"]) a { font-size:15px; }
    .studio3d-options-group .studio3d-option:not([hidden]) { align-items:center; justify-content:center; gap:5px; font-size:13px; padding:6px 12px; max-width:100%; margin:8px auto 0; }
    .studio3d-options-group .studio3d-option { contain:inline-size; width:100%; box-sizing:border-box; }
}
@media (max-width:768px) {
    .product-info-grid .product-price { padding:14px 16px; border-radius:16px; }
    .product-price .row { margin-inline:0; }
    .product-price .row > [class*="col-"] { padding-inline:0; }
    .product-price #product-stickers-block { display:flex; flex-wrap:wrap; gap:6px; width:100%; }
    .product-price #product_discount_navigation > .d-flex { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px!important; }
    .product-price .studio3d-options-group { display:flex; width:100%; align-items:stretch; }
    .product-price .child-table { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,100px),1fr)); gap:8px; width:100%; }
    .product-price:has(.studio3d-options-group) .product-buy-amounts { min-height:72px; align-content:center; }
    .product-price .child-table-product, .product-price .child-table-link { max-width:none; width:100%; min-width:0; margin:0; box-sizing:border-box; }
    .product-price .studio3d-option { width:100%; justify-content:center; }
    .product-price #option:not(:empty) { --gift-bg:#fff; border:2px solid transparent; border-radius:12px; background:linear-gradient(var(--gift-bg),var(--gift-bg)) padding-box,linear-gradient(to right,#A8E7FF,#C1ADFF,#00B9FF) border-box; padding:8px; }
    html[data-theme="dark"] .product-price #option { --gift-bg:#23272e; }
    .product-price #option :is(#option,.option) { background:transparent; border:0; padding:0; margin:0; }
    .product-buy-summary { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 8px; align-items:center; }
    .product-buy-summary > .price { display:contents; }
    .product-buy-summary .product-buy-amounts { display:flex; align-items:center; flex-wrap:wrap; gap:4px; grid-column:1; grid-row:1; }
    .product-buy-summary .product-stock-row { grid-column:2; grid-row:1; max-width:135px; text-align:right; }
    .product-buy-summary .product-price-meta { grid-column:1 / -1; grid-row:3; margin-block:4px; }
    .product-buy-summary .product-sale-timer { grid-column:1 / -1; grid-row:4; }
    .product-buy-summary .product-sale-timer-break { display:none; }

    .product-price .product-sale-timer { width:100%; display:flex; flex-direction:row; align-items:center; justify-content:space-between; min-height:30px; font-variant-numeric:tabular-nums; }
    .product-price .product-buy-row { display:flex; flex-wrap:nowrap; gap:8px; }
    .product-price .product-buy-row > :is(button,input) { flex:1; font-size:13px; padding-inline:8px; min-width:0; min-height:46px; width:auto; margin:0; white-space:nowrap; }
    .product-price .product-buy-row > .btn-quick-order { flex:1; padding-inline:6px; }
    .product-price #button-credit { display:flex; flex-direction:column; align-items:stretch; gap:2px; padding:3px 12px!important; border-radius:10px; height:auto; }
    .product-price #button-credit.cart-credit--single { padding-block:4px!important; }
    .product-price #button-credit > p { margin:0; text-align:left; line-height:16px; }
    .product-price #button-credit > p::after { content:'›'; float:right; }
    .product-price #button-credit .credit-offer { display:grid; grid-template-columns:20px 1fr auto auto; align-items:center; gap:6px; margin:0; padding:0; min-height:24px; font-variant-numeric:tabular-nums; }
    .product-price #button-credit .credit-offer > div { padding:0; }
    .product-price #button-credit .credit-offer img { height:18px!important; }
    body:has(.product-sticky-buy.is-active) #book-up { bottom:82px; }
}
@media (max-width:339px) {
    .product-price .product-buy-row { flex-wrap:wrap; }
    .product-price .product-buy-row > :is(button,input) { flex-basis:100%; }
}

#description_blocks :is(a.anchor-padding, [name^="anchor"]) { scroll-margin-top: 84px; }
