/* -------------------- УНИКАЛЬНЫЕ КЛАССЫ ДЛЯ ГАЛЕРЕИ (без скруглений) -------------------- */
.ogkf-3d-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.ogkf-3d-gallery__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.ogkf-3d-gallery__rotation-area {
    flex: 2;
    min-width: 260px;
    background: #f8f9fc;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.ogkf-3d-gallery__stage {
    position: relative;
    cursor: grab;
    user-select: none;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease;
    flex-shrink: 0;
}

.ogkf-3d-gallery__stage:active {
    cursor: grabbing;
}

.ogkf-3d-gallery__main-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    background: #fefefe;
    pointer-events: none;
    transition: opacity 0.08s linear;
}

.ogkf-3d-gallery__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    letter-spacing: 1px;
    z-index: 5;
    pointer-events: none;
    font-family: monospace;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ogkf-3d-gallery__indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 8px 6px;
    border-top: 1px solid #e2e8f0;
}

.ogkf-3d-gallery__indicator {
    width: 32px;
    height: 4px;
    background-color: #cbd5e1;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    opacity: 0.7;
}

.ogkf-3d-gallery__indicator:hover {
    background-color: #94a3b8;
    transform: scaleY(1.3);
}

.ogkf-3d-gallery__indicator--active {
    background-color: #2c6e9e;
    width: 44px;
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(44, 110, 158, 0.3);
}

.ogkf-3d-gallery__drawing-area {
    flex: 1;
    min-width: 220px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ogkf-3d-gallery__drawing-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
    font-size: 1rem;
    letter-spacing: -0.2px;
}

.ogkf-3d-gallery__drawing-img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ogkf-3d-gallery__drawing-img:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

/* Модальное окно */
.ogkf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease;
    cursor: pointer;
}

.ogkf-modal-overlay--open {
    visibility: visible;
    opacity: 1;
}

.ogkf-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    overflow: hidden;
    cursor: default;
    animation: ogkfFadeIn 0.2s ease-out;
}

.ogkf-modal-content img {
    width: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5);
    background: #fff;
}

.ogkf-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(30, 30, 40, 0.8);
    color: white;
    border: none;
    font-size: 28px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.ogkf-modal-close:hover {
    background: #d32f2f;
    transform: scale(1.05);
}

@keyframes ogkfFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Адаптивность */
@media (max-width: 760px) {
    .ogkf-3d-gallery__grid {
        flex-direction: column;
        gap: 20px;
    }
    .ogkf-3d-gallery__rotation-area,
    .ogkf-3d-gallery__drawing-area {
        width: 100%;
    }
    .ogkf-3d-gallery__main-img {
        max-height: 320px;
    }
    .ogkf-3d-gallery__indicator {
        width: 24px;
    }
    .ogkf-3d-gallery__indicator--active {
        width: 36px;
    }
    .ogkf-3d-gallery__badge {
        font-size: 11px;
        top: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .ogkf-3d-gallery {
        padding: 12px;
    }
    .ogkf-3d-gallery__indicators {
        gap: 5px;
    }
    .ogkf-3d-gallery__indicator {
        width: 20px;
    }
    .ogkf-3d-gallery__indicator--active {
        width: 30px;
    }
}