/* 3D-огляд шокерів на головній (extension/module/shokers3d): сцена three.js зліва, картка моделі справа.
   Кольори — як у сусідніх темних секцій (about/safemode): фон #202222, акцент #C5FF24. */
.s3d{
    position: relative;
    padding: 72px 0 104px;
    background-color: #202222;
    color: #fff;
    overflow: hidden;
}
.s3d__inner{
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

/* ---------- сцена ---------- */
.s3d__stage{
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 760px;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 60% 55% at 50% 58%, rgba(197, 255, 36, .16), rgba(32, 34, 34, 0) 70%),
        linear-gradient(180deg, #262828 0%, #1a1c1c 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.s3d__stage::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
    pointer-events: none;
}
.s3d__stage.is-drag{ cursor: grabbing; }
.s3d__stage canvas{
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity .6s ease;
}
.s3d.is-ready .s3d__stage canvas{ opacity: 1; }

/* спинер, поки тягнеться модель */
.s3d__loader{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #a8acb4;
    font-size: 14px;
    transition: opacity .4s ease;
    pointer-events: none;
}
.s3d__loader span{
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(197, 255, 36, .2);
    border-top-color: #C5FF24;
    animation: s3dSpin .9s linear infinite;
}
.s3d.is-ready .s3d__loader{ opacity: 0; }
@keyframes s3dSpin{ to{ transform: rotate(360deg); } }

/* спалах розряду поверх полотна */
.s3d__flash{
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255, 255, 255, .85), rgba(197, 255, 36, .35) 22%, rgba(197, 255, 36, 0) 55%);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}
.s3d__flash.is-on{ animation: s3dFlash .5s steps(7, end); }
@keyframes s3dFlash{
    0%{ opacity: .95; } 15%{ opacity: .2; } 30%{ opacity: .8; } 45%{ opacity: .1; }
    60%{ opacity: .55; } 80%{ opacity: .15; } 100%{ opacity: 0; }
}

/* кнопки дій і підказка */
.s3d__actions{
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}
.s3d__act{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(197, 255, 36, .45);
    background: rgba(32, 34, 34, .72);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.s3d__act:hover{ border-color: #C5FF24; background: rgba(197, 255, 36, .14); }
.s3d__act:active{ transform: scale(.96); }
.s3d__act.is-on,
.s3d__act[aria-pressed="true"]:not(.s3d__act--icon){
    background: #C5FF24;
    border-color: #C5FF24;
    color: #202222;
}
.s3d__act--icon{ width: 44px; padding: 0; justify-content: center; }
.s3d__act--icon .s3d__mute{ display: none; }
.s3d__act--icon[aria-pressed="false"] .s3d__wave{ display: none; }
.s3d__act--icon[aria-pressed="false"] .s3d__mute{ display: block; }
.s3d__act--icon[aria-pressed="false"]{ color: #a8acb4; }

.s3d__hint{
    position: absolute;
    right: 20px;
    bottom: 28px;
    max-width: 46%;
    color: #a8acb4;
    font-size: 13px;
    line-height: 1.4;
    text-align: right;
    pointer-events: none;
    z-index: 2;
}

/* ---------- картка моделі ---------- */
.s3d__kick{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #C5FF24;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.s3d__kick::before{
    content: '';
    width: 36px;
    height: 1px;
    background: #C5FF24;
}
.s3d__title{ margin-bottom: 36px; }

.s3d__tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}
.s3d__tab{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 6px 18px 6px 6px;
    border-radius: 999px;
    border: 1px solid #383b43;
    background: #26282f;
    color: #d2d2d2;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.s3d__tab img{
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.s3d__tab:hover{ border-color: rgba(197, 255, 36, .6); color: #fff; }
.s3d__tab.is-active{
    border-color: #C5FF24;
    background: rgba(197, 255, 36, .1);
    color: #fff;
    box-shadow: 0 0 0 1px #C5FF24;
}

.s3d__panel{ display: none; }
.s3d__panel.is-active{
    display: block;
    animation: s3dPanel .5s ease both;
}
@keyframes s3dPanel{
    from{ opacity: 0; transform: translateY(14px); }
    to{ opacity: 1; transform: none; }
}
.s3d__name{
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}
.s3d__lead{
    max-width: 560px;
    margin: 0 0 28px;
    color: #d2d2d2;
    font-size: 16px;
    line-height: 1.55;
}
.s3d__feats{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}
.s3d__feats li{
    padding: 16px 16px 14px;
    border-radius: 16px;
    background: #26282f;
    border: 1px solid #383b43;
}
.s3d__feats b{
    display: block;
    margin-bottom: 6px;
    color: #C5FF24;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}
.s3d__feats span{
    display: block;
    color: #a8acb4;
    font-size: 12px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.s3d__buy{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
}
.s3d__price{
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.s3d__price b{
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}
.s3d__price s{
    color: #a8acb4;
    font-size: 16px;
}
.s3d__price small{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #a8acb4;
}
.s3d__price small::before{
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C5FF24;
}
.s3d__price small.is-order::before{ background: #ff9f43; }
.s3d__btn{
    min-width: 180px;
    color: #202222;
    font-weight: 600;
}

/* ---------- адаптив ---------- */
@media (max-width: 1279px){
    .s3d__inner{ gap: 40px; }
    .s3d__feats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px){
    .s3d{ padding: 56px 0 80px; }
    .s3d__inner{ grid-template-columns: 1fr; gap: 36px; }
    .s3d__stage{ aspect-ratio: 4 / 3; max-height: 520px; }
    .s3d__title{ margin-bottom: 28px; }
}
@media (max-width: 767px){
    .s3d{ padding: 44px 0 64px; }
    .s3d__stage{ aspect-ratio: 1 / 1; max-height: none; border-radius: 18px; }
    .s3d__actions{ left: 12px; bottom: 12px; gap: 8px; }
    .s3d__act{ height: 40px; padding: 0 12px; font-size: 13px; }
    .s3d__act--icon{ width: 40px; }
    .s3d__hint{ right: 12px; bottom: 60px; left: 12px; max-width: none; text-align: left; font-size: 12px; }
    .s3d__name{ font-size: 24px; }
    .s3d__lead{ font-size: 14px; }
    .s3d__feats{ gap: 10px; }
    .s3d__feats li{ padding: 12px 12px 10px; }
    .s3d__feats b{ font-size: 18px; }
    .s3d__tab{ min-height: 48px; padding: 4px 14px 4px 4px; font-size: 13px; }
    .s3d__tab img{ width: 38px; height: 38px; }
    .s3d__price b{ font-size: 26px; }
    .s3d__btn{ width: 100%; }
}
@media (prefers-reduced-motion: reduce){
    .s3d__panel.is-active{ animation: none; }
    .s3d__flash.is-on{ animation-duration: .2s; }
}
