.animated-sliders__header {
    position: relative;
}

.animated-sliders__row {
    display: flex;
    align-items: center;
}

.text-slider {
    overflow: hidden;
}

.animated-sliders .swiper-slide {
    max-height: 500px !important;
    height: 100% !important;
    display: flex;
    align-items: center;
}

.photo-slider__slide img {
    border-radius: 24px;
    width: 100%;
    object-fit: cover;
}

.photo-slider__slide {
    border-radius: 24px;
    overflow: hidden;
}

.animated-sliders {
    position: relative;
    transition: transform 0.5s ease, opacity 0.3s ease;
    will-change: transform;
}

.animated-sliders.fixed {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: #F6F8FC;
    overflow: hidden;
    opacity: 1;
    display: flex;
    z-index: 5;
    align-items: center;
    transition: all ease 0.3s;
}

.animated-sliders__placeholder {
    height: 100vh;
    display: none;
}

.animated-sliders.fixed + .animated-sliders__placeholder {
    display: block;
}

.text-slider__slide > p {
    font-weight: 500;
    line-height: 130%;
    max-width: 499px;
    color: black;
    text-transform: uppercase;
}

.text-slider_swiper-pagination {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.text-slider_swiper-pagination .swiper-pagination-bullet {
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.3);
    height: 12px;
    width: 5px;
    border-radius: 36px;
    transition: all ease 0.3s;
}

.text-slider_swiper-pagination .swiper-pagination-bullet-active {
    background: rgba(0, 0, 0, 1);
    height: 24px;
    transition: all ease 0.3s;
}

.text-slider_swiper-pagination-mobile {
    display: none;
}

@media screen and (min-width: 1200px) {
    .animated-sliders__subheading {
        position: absolute;
        left: 0;
        top: 0;
    }

    .animated-sliders__header {
        margin-bottom: 40px;
    }

    .animated-sliders__heading {
        text-align: center;
    }

    .text-slider__slide p {
        font-size: 32px;
    }

    .text-slider {
        padding-left: 32px;
    }

    .animated-sliders .text-slider_swiper-pagination {
        left: 0;
    }

    .photo-slider {
        flex-basis: 626px;
        max-width: 626px;
    }

    .text-slider {
        flex-basis: 694px;
        max-width: 694px;
        height: 500px;
    }
}

@media screen and (max-width: 1199.98px) {
    .animated-sliders__header {
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .text-slider__slide p {
        font-size: 22px;
    }

    .animated-sliders__row {
        flex-direction: column-reverse;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        gap: 10px;
    }

    .photo-slider, .text-slider {
        max-width: 100%;
        height: 300px;
    }

    .photo-slider {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .text-slider {
        height: 105px;
        padding-left: 15px;
    }

    .animated-sliders .text-slider_swiper-pagination {
        left: 0;

    }

    .photo-slider .swiper-slide {
        border-radius: 16px;
        overflow: hidden;
    }

    .text-slider__slide p {
        text-transform: unset;
    }
}

@media screen and (min-width: 768.99px) and (max-width: 1200px) {
    .photo-slider .swiper-wrapper {
        transform: translateX(0) !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
}

@media screen and (max-width: 768px) {
    .photo-slider {
        width: 100%;
        padding-left: 15px;
    }

    .text-slider_swiper-pagination {
        display: none;
    }

    .text-slider_swiper-pagination-mobile {
        display: flex;
        width: fit-content;
    }

    .animated-sliders__row {
        padding: 20px 15px;
        background: white;
        border-radius: 24px;
    }

}

@media screen and (max-width: 440px) {
    .photo-slider__slide img {
        border-radius: 16px;
        width: 100%;
        max-height: 217px;
        object-fit: cover;
    }

    .photo-slider__slide {
        width: 100%;
    }

    .photo-slider {
        max-height: 217px;
    }
}