/* Shared Oryzo-style 3D stages for inner pages */

.i3d-stage {
    position: relative;
    background: #0a0e14;
    color: #fff8f0;
    margin: 0;
}

.i3d-stage-pin {
    position: relative;
    min-height: min(64vh, 560px);
    height: clamp(400px, 58vh, 620px);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 50% 45% at 68% 48%, rgba(255, 130, 50, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 15% 85%, rgba(20, 40, 70, 0.35) 0%, transparent 50%),
        #0a0e14;
}

.i3d-stage--fallback .i3d-canvas {
    display: none;
}

.i3d-stage--fallback .i3d-stage-pin::after {
    content: '3D недоступен в этом браузере';
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: rgba(255, 244, 230, 0.55);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.i3d-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    cursor: grab;
    touch-action: none;
}

.i3d-canvas.is-dragging {
    cursor: grabbing;
}

.i3d-grade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 12, 20, 0.78) 0%, rgba(8, 12, 20, 0.28) 46%, rgba(8, 12, 20, 0.12) 100%),
        linear-gradient(180deg, rgba(8, 12, 20, 0.3) 0%, transparent 28%, transparent 72%, rgba(8, 12, 20, 0.5) 100%);
}

.i3d-ui {
    position: absolute;
    left: clamp(1.1rem, 4vw, 3.5rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: min(24rem, 40vw);
    pointer-events: none;
    padding: 1.2rem 1.35rem 1.35rem;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(12, 16, 24, 0.58), rgba(12, 16, 24, 0.22));
    border: 1px solid rgba(255, 180, 100, 0.18);
    backdrop-filter: blur(14px) saturate(1.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.i3d-eyebrow {
    margin: 0 0 0.7rem;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f0b44a;
}

.i3d-title {
    margin: 0 0 0.75rem;
    font-family: 'Oswald', 'Manrope', sans-serif;
    font-weight: 600;
    font-size: clamp(1.55rem, 3.4vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff8f0;
}

.i3d-line {
    margin: 0 0 1rem;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    line-height: 1.5;
    color: rgba(255, 244, 230, 0.78);
}

.i3d-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 180, 100, 0.35);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 244, 230, 0.88);
}

.i3d-hint-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff8a3d;
    box-shadow: 0 0 12px rgba(255, 122, 40, 0.8);
    animation: i3dPulse 1.6s ease-in-out infinite;
}

@keyframes i3dPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.55; }
}

/* Compact variant for detail side column / home about */
.i3d-stage--embed {
    border-radius: 18px;
    overflow: hidden;
}

.i3d-stage--embed .i3d-stage-pin {
    min-height: 360px;
    height: 420px;
    border-radius: 18px;
}

.home-products .i3d-stage {
    margin: 1.25rem 0 2.75rem;
}

.home-products-catalog {
    padding-top: 0.25rem;
}

.home-about--cine {
    background: #0a0e14;
    padding: 0 0 0;
}

.home-about--cine .i3d-stage {
    margin: 0;
}

.home-about--cine .i3d-stage-pin {
    height: clamp(480px, 72vh, 780px);
    min-height: 480px;
}

/* Text band under 3D — light surface, dark type (readable) */
.home-about-below {
    background:
        radial-gradient(ellipse 60% 40% at 0% 0%, rgba(255, 140, 50, 0.06) 0%, transparent 55%),
        #f7f4ef;
    color: #1a2230;
    padding: 2.75rem 0 4rem;
}

.home-about-below .lead,
.home-about-below h3 {
    color: #0f1e3d !important;
}

.home-about-below .lead {
    color: rgba(15, 30, 61, 0.78) !important;
}

.home-about-below .oil-kicker {
    color: #c45e12 !important;
}

.home-about-below .capability-item {
    background: #fff !important;
    border: 1px solid rgba(15, 30, 61, 0.08) !important;
    color: rgba(15, 30, 61, 0.78) !important;
}

.home-about-below .capability-item h4 {
    color: #0f1e3d !important;
}

.home-about-below .capability-item p {
    color: rgba(15, 30, 61, 0.7) !important;
}

.home-products .i3d-stage-pin {
    height: clamp(460px, 68vh, 720px);
    min-height: 440px;
}

.i3d-stage--embed .i3d-ui {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 1rem;
    transform: none;
    max-width: none;
}

.i3d-stage--embed .i3d-title {
    font-size: 1.35rem;
}

@media (max-width: 991.98px) {
    .i3d-ui {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 1.1rem;
        transform: none;
        max-width: none;
    }

    .i3d-stage-pin {
        height: 460px;
        min-height: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .i3d-hint-dot {
        animation: none;
    }
}
