.section2 {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    background: #f9f8f6;
    overflow: hidden;
}

/* Левая часть */
.section2__image {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: none;
}

.section2__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.2s ease, transform 1.2s ease;
    will-change: opacity, transform;
}

/* Курсор-кнопка */
#sliderCursor2,
#sliderCursor3{
    position: fixed;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
#sliderCursor2 img,
#sliderCursor3 img {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Правая часть */
.section2__content {
    flex: 1;
    padding: 8vw 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.section2__title {
    font-family: 'Isabella Sans', serif;
    color: #8B503F;
    font-weight: 300;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}
.section2__content p {
    font-family: 'Isabella Sans', sans-serif;
    color: #0E2B42;
    font-size: 1.4rem;
    line-height: 2.2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    max-width: 95%;

}

/* fade-in эффект */
.fadein {
    opacity: 0;
    transform: translateY(30px);
}
.fadein.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

/* Адаптив */
@media (max-width: 900px) {
    .section2 { flex-direction: column; }
    .section2__image, .section2__content { flex: none; width: 100%; }
    .slider-cursor { display: none; }
    .section2__content { padding: 60px 20px; }
}


@media (max-width: 976px) {
    .section2__title {
        text-align: center;
    }
    .section2__content p {
        font-size: 1.4rem;
        text-align: center;
        margin:  0 auto;
        padding: 15px;
    }
}



@media (max-width: 576px) {
    .section2__image::after,
    .section3__slider::after,
    .section4__slider::after {
        content: "";
        position: absolute;
        bottom: 5%;
        right: 5%;
        width: 42px;
        height: 42px;
        background: url("/local/templates/barkli-dan/images/slidebtn.png") no-repeat center / contain;
        opacity: 0.9;
        pointer-events: none;
        animation: fadeHint 2s ease-in-out infinite alternate;
        z-index: 5;
    }
}

/* 💻 на планшетах и выше — скрываем */
@media (min-width: 577px) {
    .section2__image::after,
    .section3__slider::after,
    .section4__slider::after{
        display: none;
    }
}

/* 🔁 мягкое дыхание для внимания */
@keyframes fadeHint {
    0% { opacity: 0.7; transform: scale(0.95); }
    100% { opacity: 0.8; transform: scale(1.05); }
}


@media (max-width: 576px) {
    .section2__image {
        aspect-ratio: 3 / 4;
    }
}
