/* 360-тур (local/components/tour360): сцена облёта/панорамы, прелоадер, панель «Снаружи / Внутри + цвета»,
   инструменты справа сверху, точки интереса. На телефоне (≤700px) панель уходит под сцену. */

.t360 {
    --t360-pill: rgba(34, 36, 34, .78);
    --t360-accent: #8fc626;
    position: relative;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
}

.t360-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(100svh - 120px);
    min-height: 320px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--t360-bg, #d9d6cf);
    touch-action: pan-y;
    cursor: grab;
    isolation: isolate;
}

.t360-stage.is-grab {
    cursor: grabbing;
}

.t360-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.06);
    transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1), visibility 0s .6s;
}

.t360-layer.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}

/* Уход в салон: экстерьер «наезжает» и гаснет */
.t360.is-int .t360-layer--ext {
    transform: scale(1.25);
}

.t360-layer canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.t360-hs-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

/* Прелоадер: размытый первый кадр + кольцо прогресса */
.t360-loader {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: opacity .5s ease, visibility 0s .5s;
}

.t360-loader__poster {
    position: absolute;
    inset: -30px;
    background: center / cover no-repeat;
    filter: blur(18px) saturate(.8) brightness(.75);
}

.t360--contain .t360-loader__poster {
    background-size: contain;
}

.t360-loader__ring {
    position: relative;
    width: 76px;
    height: 76px;
}

.t360-loader__ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.t360-loader__ring circle {
    fill: rgba(0, 0, 0, .25);
    stroke: rgba(255, 255, 255, .25);
    stroke-width: 3;
}

.t360-loader__ring .t360-loader__bar {
    fill: none;
    stroke: var(--t360-accent);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset .2s;
}

.t360-loader__ring b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 600;
}

.t360-loader__text {
    position: relative;
    font-size: 14px;
    letter-spacing: .02em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

.t360.is-ready .t360-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Переход в интерьер, пока грузится движок панорамы */
.t360.is-busy .t360-stage::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 7;
    width: 44px;
    height: 44px;
    margin: -22px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: t360-spin .8s linear infinite;
}

@keyframes t360-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Догрузка HD: тонкая полоска сверху */
.t360-hd {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 5;
    height: 3px;
    pointer-events: none;
    transition: opacity .6s .4s;
}

.t360-hd i {
    position: absolute;
    inset: 0;
    transform-origin: left;
    transform: scaleX(var(--p, 0));
    background: var(--t360-accent);
    transition: transform .25s;
}

.t360-hd span {
    position: absolute;
    left: 14px;
    top: 10px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--t360-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    opacity: .85;
}

.t360-hd.is-done,
.t360.is-loading .t360-hd {
    opacity: 0;
}

/* Подсказка «потяните» */
.t360-hint {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 12px;
    border-radius: 40px;
    background: var(--t360-pill);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 14px;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s;
}

.t360.is-ready .t360-hint {
    opacity: 1;
    transition-delay: 1.6s;
}

.t360.is-ready .t360-hint.is-gone {
    opacity: 0;
    transition-delay: 0s;
}

.t360-hint svg {
    width: 26px;
    height: 26px;
    animation: t360-swipe 1.6s ease-in-out infinite;
}

@keyframes t360-swipe {
    0%, 100% {
        transform: translateX(-5px) rotate(-8deg);
    }
    50% {
        transform: translateX(5px) rotate(8deg);
    }
}

/* Инструменты — тёмные круглые кнопки с зелёной иконкой, как выгрузки в конфигураторах (.cfg-export) */
.t360-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 0 4px;
}

.t360-tool {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #262325;
    color: var(--color-alt, #97bf74);
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}

.t360-tool:hover,
.t360-tool.is-on {
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
}

.t360-tool:active {
    transform: scale(.92);
}

.t360-tool svg {
    width: 19px;
    height: 19px;
}

/* Подсказка над кнопкой */
.t360-tool::after,
.t360:not(.t360--compact) .t360-sw::after,
.t360-panel--out .t360-sw::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    padding: 6px 10px;
    border-radius: 8px;
    background: #262325;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity .2s, transform .2s;
}

.t360:not(.t360--compact) .t360-sw:hover::after,
.t360-panel--out .t360-sw:hover::after,
.t360-tool:hover::after,
.t360-tool:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (hover: none) {
    .t360-tool::after,
    .t360-sw::after {
        display: none;
    }
}

/* Компас-угол */
.t360-dial {
    position: absolute;
    left: 16px;
    bottom: 22px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--t360-pill);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.t360-dial svg {
    position: absolute;
    inset: 0;
}

.t360-dial circle {
    fill: none;
    stroke: rgba(255, 255, 255, .25);
    stroke-width: 1.5;
}

.t360-dial i {
    position: absolute;
    left: 50%;
    top: 4px;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--t360-accent);
    transform-origin: 3px 18px;
    transform: rotate(var(--a, 0deg));
}

.t360-dial span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 600;
}

/* Единая плашка управления в стиле сайта: белая капсула (как итог конфигураторов .cfg-deal),
   слева серая подложка с режимами и вариантами, справа инструменты */
.t360-panel {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 5;
    max-width: calc(100% - 140px);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 30px;
    background: #fff;
    color: #262325;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transform: translateX(-50%);
}

.t360-panel[hidden],
.t360-opts[hidden] {
    display: none;
}

.t360-opts {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 5px;
    border-radius: 24px;
    background: #e8eae6;
}

.t360-seg {
    display: flex;
    gap: 2px;
    flex: none;
}

.t360-seg button {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #262325;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .25s, color .25s;
}

.t360-seg button:hover {
    background: rgba(38, 35, 37, .08);
}

.t360-seg button.is-on {
    background: #262325;
    color: var(--color-alt, #97bf74);
}

.t360-seg svg {
    width: 20px;
    height: 20px;
}

.t360-sep {
    width: 1px;
    height: 26px;
    background: rgba(38, 35, 37, .15);
    flex: none;
}

.t360-swatches,
.t360-views {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px;
}

.t360-swatches::-webkit-scrollbar,
.t360-views::-webkit-scrollbar {
    display: none;
}

.t360-sw {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    /* блик и тень — кружок читается как окрашенная поверхность, а не плоская заливка */
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%),
        linear-gradient(155deg, rgba(255, 255, 255, .1), rgba(0, 0, 0, .3)),
        var(--sw);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
}

.t360-sw:hover {
    transform: scale(1.1);
}

/* Выбранный — тёмное кольцо через белый зазор, как свотчи конфигураторов */
.t360-sw.is-on {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #e8eae6, 0 0 0 5px #262325;
}

.t360-chip {
    flex: none;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #262325;
    font: inherit;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.t360-chip:hover {
    background: #d6d9d3;
}

.t360-chip.is-on {
    background: #262325;
    color: var(--color-alt, #97bf74);
}

.t360-name {
    min-width: 90px;
    padding-right: 10px;
    font-size: 14px;
    color: #5d605c;
    white-space: nowrap;
}

/* Точки интереса */
.t360-hs {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -15px 0 0 -15px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
    pointer-events: auto;
    transition: opacity .25s;
    will-change: transform;
}

.t360-hs.is-off {
    opacity: 0;
    pointer-events: none;
}

.t360-hs i {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(20, 22, 20, .35);
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    flex: none;
}

.t360-hs i::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .6);
    animation: t360-pulse 2s infinite;
}

.t360-hs.is-open i::before {
    background: var(--t360-accent);
}

@keyframes t360-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
    }
    70%, 100% {
        box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
    }
}

.t360-hs span {
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--t360-pill);
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s, transform .2s;
}

.t360-hs:hover span,
.t360-hs.is-open span {
    opacity: 1;
    transform: none;
}

.t360-card {
    position: absolute;
    z-index: 6;
    width: 280px;
    padding: 18px 20px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    color: #1d1f1d;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .25);
    animation: t360-card .25s ease;
    cursor: default;
}

.t360-card[hidden] {
    display: none;
}

@keyframes t360-card {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.t360-card b {
    display: block;
    margin: 0 28px 8px 0;
    font-size: 17px;
    font-weight: 600;
}

.t360-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(29, 31, 29, .75);
}

.t360-card__close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    color: inherit;
    cursor: pointer;
}

.t360-card__close svg {
    width: 16px;
    height: 16px;
}

/* Интерьер: подсказка и холст three.js */
.t360-layer--int canvas {
    cursor: inherit;
}

/* Полный экран (и запасной вариант для iPhone, где нет Fullscreen API у элементов) */
.t360:fullscreen,
.t360.is-pseudo-full {
    background: #111;
}

.t360:fullscreen .t360-stage,
.t360.is-pseudo-full .t360-stage {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
}

.t360.is-pseudo-full {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

html.t360-lock,
html.t360-lock body {
    overflow: hidden;
}

/* Компактный вариант (первый экран услуги) */
.t360--compact .t360-stage {
    min-height: 0;
    border-radius: 28px;
}

.t360--compact .t360-panel {
    bottom: 14px;
    max-width: calc(100% - 28px);
}

/* Цвета — стопкой кружков в левом верхнем углу, как технологии: виден текущий, остальные выезжают при наведении */
.t360--compact .t360-panel {
    left: 16px;
    top: 16px;
    bottom: auto;
    max-width: none;
    padding: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
}

.t360--compact .t360-swatches {
    --size: 46px;
    --step: 34px;
    flex: none;
    position: relative;
    width: var(--size);
    height: var(--size);
    padding: 0;
    overflow: visible;
    transition: width .45s cubic-bezier(.34, 1.4, .64, 1);
}

.t360--compact .t360-swatches:hover,
.t360--compact .t360-swatches:focus-within,
.t360--compact .t360-swatches.is-open {
    width: calc(var(--size) + (var(--n, 6) - 1) * var(--step));
}

.t360--compact .t360-sw {
    position: absolute;
    left: 0;
    top: 0;
    z-index: calc(20 - var(--k, 0));
    width: var(--size);
    height: var(--size);
    /* тёмное кольцо — «вырез» между кружками, как у логотипов технологий */
    box-shadow: 0 0 0 4px #161816, inset 0 0 0 1px rgba(255, 255, 255, .22);
    opacity: 0;
    transform: translateX(0) scale(.4);
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
    transition-delay: 0s;
}

.t360--compact .t360-sw.is-on {
    opacity: 1;
    transform: none;
    box-shadow: 0 0 0 4px #161816, inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.t360--compact .t360-sw:hover {
    transform: translateX(calc(var(--k, 0) * var(--step))) scale(1.08);
}

.t360--compact .t360-swatches:hover .t360-sw,
.t360--compact .t360-swatches:focus-within .t360-sw,
.t360--compact .t360-swatches.is-open .t360-sw {
    opacity: 1;
    transform: translateX(calc(var(--k, 0) * var(--step)));
    transition-delay: calc(var(--k, 0) * 35ms);
}

.t360--compact .t360-swatches:hover .t360-sw:hover,
.t360--compact .t360-swatches.is-open .t360-sw:hover {
    transform: translateX(calc(var(--k, 0) * var(--step))) scale(1.08);
    transition-delay: 0s;
}

/* Текущий цвет в раскрытой стопке — зелёная точка внутри */
.t360--compact .t360-sw.is-on::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px;
    border-radius: 50%;
    background: var(--t360-accent);
    box-shadow: 0 0 0 2px #161816;
    opacity: 0;
    transition: opacity .2s;
}

.t360--compact .t360-swatches:hover .t360-sw.is-on::after,
.t360--compact .t360-swatches.is-open .t360-sw.is-on::after {
    opacity: 1;
}

.t360--compact .t360-name,
.t360--compact .t360-loader__text,
.t360--compact .t360-hint {
    display: none;
}

.t360--compact .t360-tools {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 5;
    flex-direction: column;
    padding: 0;
}

.t360--compact .t360-tool {
    width: 34px;
    height: 34px;
}

.t360--compact .t360-tool::after {
    display: none;
}

/* Телефон: сцена 4:3, панель под сценой во всю ширину, инструменты мельче */
@media (max-width: 700px) {
    .t360-stage {
        aspect-ratio: var(--t360-mobile-ratio, 4 / 3);
        min-height: 0;
        border-radius: 18px;
    }

    /* Телефон: без карточки — сверху переключатель во всю ширину, ниже в одну строку цвета и кнопки */
    .t360:not(.t360--compact) .t360-panel,
    .t360-panel.t360-panel--out {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: none;
        margin-top: 10px;
        padding: 0;
        flex-wrap: wrap;
        gap: 10px 8px;
        border-radius: 0;
        background: none;
        box-shadow: none;
        transform: none;
    }

    .t360:not(.t360--compact) .t360-opts,
    .t360-panel--out .t360-opts {
        display: contents;
    }

    .t360-seg {
        order: -1;
        width: 100%;
        padding: 4px;
        border-radius: 999px;
        background: #e8eae6;
    }

    .t360-panel .t360-seg button {
        flex: 1;
        justify-content: center;
        height: 38px;
        padding: 0 10px;
        font-size: 15px;
    }

    .t360-sep {
        display: none;
    }

    .t360-swatches,
    .t360-views {
        flex: 1;
        min-width: 0;
        padding: 5px 4px;
    }

    .t360-panel .t360-swatches {
        gap: 9px;
    }

    .t360-panel .t360-sw {
        width: 26px;
        height: 26px;
    }

    .t360-panel .t360-sw.is-on {
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px #fff, 0 0 0 4px #262325;
    }

    .t360-panel .t360-chip {
        height: 34px;
        padding: 0 12px;
        font-size: 13px;
        background: #e8eae6;
    }

    /* Ракурсы листаются вбок — край ленты мягко гаснет */
    .t360-panel .t360-views {
        gap: 6px;
        padding-right: 24px;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    }

    .t360-name,
    .t360-tool[data-tool="zoomIn"],
    .t360-tool[data-tool="zoomOut"] {
        display: none;
    }

    .t360:not(.t360--compact) .t360-tools,
    .t360-panel--out .t360-tools {
        margin-left: auto;
        gap: 6px;
        padding: 0;
    }

    .t360-panel .t360-tool {
        width: 40px;
        height: 40px;
    }

    .t360-tool svg {
        width: 17px;
        height: 17px;
    }

    .t360-dial {
        left: 10px;
        bottom: 10px;
        width: 38px;
        height: 38px;
    }

    .t360-dial i {
        transform-origin: 3px 15px;
    }

    .t360-hint {
        top: auto;
        bottom: 12px;
        transform: translateX(-50%);
        font-size: 13px;
        padding: 8px 14px 8px 10px;
    }

    /* Карточка точки — шторкой внизу сцены */
    .t360-card {
        left: 10px !important;
        right: 10px;
        top: auto !important;
        bottom: 10px;
        width: auto;
    }

    .t360:fullscreen .t360-panel,
    .t360.is-pseudo-full .t360-panel {
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        margin: 0;
        padding: 8px;
        border-radius: 26px;
        background: #fff;
    }

    .t360:fullscreen .t360-stage,
    .t360.is-pseudo-full .t360-stage {
        border-radius: 0;
    }
}

/* Первый экран услуги (hero.php) */
.t360-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-bottom: 28px;
}

.t360-hero .t360-stage {
    aspect-ratio: 4 / 3;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.t360-hero__link {
    display: inline-block;
    margin-top: 14px;
    font-size: 15px;
    color: var(--color-alt, #8fc626);
    text-decoration: none;
}

.t360-hero__link:hover {
    text-decoration: underline;
}

/* Полоса с туром на странице решения: светло-серая во всю ширину экрана (как .cfg-band у конфигураторов) */
.t360-band {
    --t360-gray: #ecedea;
    margin-top: clamp(32px, 4vw, 56px);
}

.t360-band__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    color: #1d1f1d;
}

.t360-band__head .sol-demo-title {
    margin: 0;
}

.t360-band__title {
    flex: 1 1 280px;
    min-width: 0;
}

.t360-band__offer {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #5d605c;
}

/* Плашка управления над сценой, справа от заголовка: снизу сцена остаётся чистой */
.t360-band__panel {
    flex: none;
    max-width: 100%;
    min-width: 0;
}

/* Компьютер: плашка опускается и наполовину наезжает на сцену — стекло размывает картинку под собой */
@media (min-width: 701px) {
    .t360-band__head {
        align-items: flex-end;
    }

    .t360-band__panel {
        position: relative;
        z-index: 6;
        margin: 0 20px -46px 0;
    }
}

@media (min-width: 701px) {
    .t360-panel.t360-panel--out {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: 100%;
        gap: 10px;
        padding: 6px 6px 6px 14px;
        border: 1px solid rgba(255, 255, 255, .55);
        background: rgba(255, 255, 255, .5);
        backdrop-filter: blur(18px) saturate(1.5);
        -webkit-backdrop-filter: blur(18px) saturate(1.5);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .6);
        transform: none;
    }

    /* Над сценой плашка плотнее: рядом с заголовком; серой подложки нет — всё на стекле */
    .t360-panel--out .t360-opts {
        gap: 10px;
        padding: 0;
        background: none;
    }

    .t360-panel--out .t360-sep {
        background: rgba(38, 35, 37, .18);
    }

    .t360-panel--out .t360-seg {
        padding: 3px;
        border-radius: 999px;
        background: rgba(38, 35, 37, .08);
    }

    .t360-panel--out .t360-seg button:hover:not(.is-on) {
        background: rgba(255, 255, 255, .6);
    }

    .t360-panel--out .t360-chip:not(.is-on) {
        background: rgba(255, 255, 255, .7);
    }

    .t360-panel--out .t360-sw.is-on {
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px rgba(255, 255, 255, .95), 0 0 0 5px #262325;
    }

    .t360-panel--out .t360-seg button {
        height: 34px;
        padding: 0 16px;
        font-size: 14px;
    }

    .t360-panel--out .t360-swatches {
        gap: 7px;
    }

    .t360-panel--out .t360-sw {
        width: 28px;
        height: 28px;
    }

    .t360-panel--out .t360-chip {
        height: 34px;
        padding: 0 12px;
        font-size: 13px;
    }

    .t360-panel--out .t360-name {
        display: none;
    }

    .t360-panel--out .t360-tools {
        gap: 5px;
        padding: 0 2px;
    }

    .t360-panel--out .t360-tool {
        width: 38px;
        height: 38px;
    }

    .t360-panel--out .t360-tool svg {
        width: 17px;
        height: 17px;
    }

    /* Подсказки кнопок — под кнопкой, чтобы не наезжать на заголовок */
    .t360-panel--out .t360-tool::after,
    .t360-panel--out .t360-sw::after {
        top: calc(100% + 12px);
        bottom: auto;
        z-index: 6;
    }
}

@media (min-width: 701px) {
    .t360-band {
        padding: 24px 0 32px;
        background: var(--t360-gray);
        border-image: linear-gradient(var(--t360-gray), var(--t360-gray)) fill 0 / 0 / 0 100vw;
    }
}

@media (max-width: 700px) {
    .t360-band__head {
        display: block;
    }

    .t360-band__panel {
        margin-top: 14px;
    }

    .t360-panel.t360-panel--out {
        margin-top: 0;
    }
}

/* Доступность: видимый фокус с клавиатуры, сцена управляется стрелками */
.t360-stage:focus {
    outline: none;
}

.t360-stage:focus-visible {
    outline: 3px solid var(--color-alt, #97bf74);
    outline-offset: 3px;
}

.t360-panel button:focus-visible,
.t360-tool:focus-visible,
.t360-hs:focus-visible,
.t360-card__close:focus-visible {
    outline: 2px solid var(--color-alt, #97bf74);
    outline-offset: 3px;
}

.t360-sw,
.t360-chip,
.t360-seg button,
.t360-tool {
    position: relative;
    touch-action: manipulation;
}

.t360-hs {
    touch-action: manipulation;
}

/* На компьютере цвета помещаются целиком — без прокрутки, чтобы подсказки не обрезались */
@media (min-width: 701px) {
    .t360-panel--out .t360-swatches {
        overflow: visible;
    }
}

/* Телефон: зона касания больше видимого кружка (не меньше 44px) */
@media (pointer: coarse) {
    .t360-panel .t360-sw::before,
    .t360-panel .t360-tool::before {
        content: "";
        position: absolute;
        inset: -6px -4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .t360 *,
    .t360 *::before,
    .t360 *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
