
/* Контейнер слайдера */
.swiper-container {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

/* Слайды */
.swiper-slide {
    width: auto !important;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    border-radius: 30px;
}

/* Изображения в слайдах */
.swiper-slide img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Активный слайд (центрированный) */
.swiper-slide-active img {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Неактивные слайды */
.swiper-slide:not(.swiper-slide-active) img {
    opacity: 0.7;
}

/* Навигационные кнопки */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: var(--orange);
    border-radius: 0%;
    transition: all 0.3s ease;
}

.swiper-button-next {
    right: 30px !important;
}

.swiper-button-prev {
    left: 30px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    display: none;
}


/* Пагинация (точки) */
.swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ffffff;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--orange);
    transform: scale(1.2);
}


/* Адаптивность */
@media (max-width: 1200px) {
    .swiper-container {
        height: 400px;
    }
}



/* Адаптивность */
@media (max-width: 768px) {
    .swiper-container {
        height: 300px;
    }
}

.swiper-slide {
    position: relative;

}

.video-control-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* Иконка play */
.video-control-btn::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-left: 25px solid #C2F102;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

/* Иконка pause для активного видео */
.swiper-slide.playing .video-control-btn::after {
    content: "";
    width: 20px;
    height: 30px;
    border: none;
    background: linear-gradient(to right,
            #C2F102 0%, #C2F102 30%,
            transparent 30%, transparent 70%,
            #C2F102 70%, #C2F102 100%);
    margin-left: 0;
}

.swiper-slide video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.swiper-slide.playing .video-control-btn {
    opacity: 0;
    pointer-events: none;
}

.swiper-slide.playing:hover .video-control-btn {
    opacity: 1;
}

.swiper-container {
    padding-left: 0 !important;
    /* Убираем стандартный отступ Swiper */
}

.swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100%;
    margin-right: 10px;
    /* spaceBetween работает через margin */
    width: auto !important;
    /* Переопределяем ширину для slidesPerView: auto */
}

.swiper-wrapper {
    align-items: center;
    /* Выравнивание слайдов по центру вертикально */
    margin-left: 0;
    /* Убираем отступ */
}

.section-content {
    position: relative;
    padding-bottom: 40px;
    /* Место для пагинации */
     min-height: auto;
}

.custom-pagination {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
}

.section-swiper {
    min-height: auto;
}

.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,
.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
    transform: translateX(0%) !important;
}

@media (max-width: 800px) and (min-width: 100px) {
    .swiper-button-next img {
        width: 33px;
    }

    .swiper-button-prev img {
        width: 33px;
    }
}