/* Контейнер 3D алмазной руды (рендер через Three.js) */

.hero .container.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    min-height: calc(100vh - 160px);
    padding-top: 24px;
    padding-bottom: 24px;
}

.hero .hero-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    flex: 0 1 720px;
    max-width: 720px;
    margin: 0 0 0 auto;
    width: 100%;
}

.hero-diamond {
    flex: 1 1 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 280px;
    pointer-events: none;
    user-select: none;
}

.hero-diamond-canvas {
    width: min(32vw, 320px);
    height: min(32vw, 320px);
    max-width: 100%;
}

.hero-diamond-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    outline: none;
}

@media (max-width: 960px) {
    .hero .container.hero-inner {
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero-diamond {
        flex: 0 0 auto;
        order: -1;
        min-height: 220px;
        width: 100%;
    }

    .hero-diamond-canvas {
        width: min(52vw, 260px);
        height: min(52vw, 260px);
        margin: 0 auto;
    }

    .hero .hero-content {
        margin: 0 auto;
        flex: 1 1 auto;
    }
}

@media (max-width: 520px) {
    .hero-diamond-canvas {
        width: 200px;
        height: 200px;
    }
}
