/* ===== SECTION 4 — продолжение секции 3 ===== */
.section4 {

    width: 100%;
    background: transparent;
    color: #fff;
    overflow: hidden;
    margin-top: 60px;
}

/* линия раздела */
.section-divider {
    width: 100%;
    height: 2px;
    background-color: #D4BFA1;
    margin-bottom: 60px;
}

/* интро-блок */
.section4__intro {
    background: url("/local/templates/barkli-dan/images/sec_31_bg.png") center/cover no-repeat;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    padding: 0 30px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.section4__title {
    flex: 0 0 35%;
    font-weight: 300;
    font-size: 2.7rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.section4__text {
    flex: 1;
    font-family: 'SangBleu Sunrise', serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
}

/* слайдер */
.section4__slider {
    position: relative;
    width: 100%;
    height: clamp(100vh, 60vh, 760px);
    overflow: hidden;
    cursor: none;
    margin-top: 20px;
}

.section4__slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 1s ease;
}

/* курсор */
.slider-cursor {
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

.slider-cursor img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
}

/* --- адаптив --- */
@media (max-width: 900px) {
    .section3__inner{
        padding: 0;
    }

    .section4__title {
        text-align: center;
        width: 100%;
    }
    .section4__intro {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 20px 20px;
    }

    .section4__title {
        font-size: 1.6rem;
    }

    .section4__text {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .section4__slider {
        height: 420px;
        border-radius: 10px;
        cursor: auto;
    }

    #sliderCursor4 {
        top: auto;
        left: auto;
        right: 10%;
        bottom: 10%;
        transform: scale(1);
        opacity: 0.7;
    }
}

@media (max-width: 420px) {

    .section4__slider {
        height: 360px;
    }
}
