/* =====================================================
   Homepage Carousel — фронтенд стили
   ===================================================== */

.homepage-carousel {
    width: 100%;
    aspect-ratio: 1120 / 301;
    max-width: 100%;
}

.homepage-carousel .swiper-wrapper {
    height: 100%;
}

.homepage-carousel .swiper-slide {
    border-radius: 5px;
    height: 100%;
    overflow: hidden;
    text-align: center;
}

.homepage-carousel .swiper-slide picture img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Кнопки навигации */
.homepage-next-el,
.homepage-prev-el {
    z-index: 2;
    position: absolute;
    top: 50%;
}

.homepage-next-el svg,
.homepage-prev-el svg {
    fill: #999;
}

.homepage-next-el {
    right: 12px;
}

.homepage-prev-el {
    left: 12px;
}

/* Планшет */
@media (max-width: 1199px) {
    .homepage-carousel {
        width: 744px !important;
        aspect-ratio: 595 / 197;
        margin-bottom: 16px;
    }
}

/* Мобильный */
@media (max-width: 767px) {
    .homepage-carousel {
        aspect-ratio: 425 / 230;
        max-width: unset !important;
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }

    .homepage-carousel .swiper-slide {
        border-radius: 0 !important;
    }
}