/* Основные стили ротатора */
.slider-container-rotator { 
    width: 100% !important;
    margin-top: 0;
}

.swiper-container.slider-container-rotator {
    width: 100% !important;
    height: 60vh; /* Адаптивная высота */
    min-height: 400px; /* Минимальная высота */
    max-height: 800px; /* Максимальная высота */
}

.swiper-slide-height {
    width: 100% !important;
    height: 100%;
}

.swiper-image {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative;
}

/* Затемняющий оверлей для улучшения читаемости текста */
.swiper-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    top: 0;
    left: 0;
    z-index: 1;
}

/* Стили для контента */
.swiper-content {
    z-index: 2;
    position: relative;
}

a.swiper-slide { text-decoration: none !important; }
a.swiper-slide:hover { text-decoration: none !important; opacity: 0.98 !important;}

.swiper-title h2 {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.swiper-article {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.swiperid-4 .swiper-image { background-position: left top !important; }
.swiperid-4 .swiper-overlay { background: none !important; }

/* Стили кнопки */
.button-holder .btn {
/*    background: linear-gradient(135deg, #FF5317 0%, #e64a19 100%) !important; */
    background: linear-gradient(135deg, #00A1E7, #0077b6) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease !important;
}

.button-holder .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 137, 188, 0.54) !important;
}                               
/* Навигация */
/*
.slider-container-rotator .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    opacity: 0.7;
}

.slider-container-rotator .swiper-pagination-bullet-active {
    opacity: 1;
    background: #FF5317 !important;
}
*/
/* Стрелки навигации */
/*
.swiper-button-next.slider-button-next-rotator,
.swiper-button-prev.slider-button-prev-rotator {
    background-image: none !important;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    margin-top: 0;
    transform: translateY(-50%);
}

.swiper-button-prev.slider-button-prev-rotator:after,
.swiper-button-next.slider-button-next-rotator:after {
    font-family: FontAwesome;
    font-size: 24px !important;
    color: #ffffff;
    opacity: 0.9;
}

.swiper-button-prev.slider-button-prev-rotator:after {
    content: "\f104";
}

.swiper-button-next.slider-button-next-rotator:after {
    content: "\f105";
}

.swiper-button-prev.slider-button-prev-rotator:hover:after,
.swiper-button-next.slider-button-next-rotator:hover:after {
    color: #FF5317;
}

*/
/* Адаптивность */
@media (max-width: 575.98px) {
    .swiper-container.slider-container-rotator {
        height: 50vh;
        min-height: 300px;
    }
    
    .swiper-title h2 {
        font-size: 1.5rem !important;
    }
    
    .swiper-article {
        font-size: 0.95rem;
    }
    
    .swiper-content {
        text-align: center;
        padding: 0 15px;
    }
    
    .swiper-button-next.slider-button-next-rotator,
    .swiper-button-prev.slider-button-prev-rotator {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .swiper-container.slider-container-rotator {
        height: 55vh;
    }
    
    .swiper-title h2 {
        font-size: 1.8rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .swiper-container.slider-container-rotator {
        height: 60vh;
    }
    
    .swiper-title h2 {
        font-size: 2.2rem !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .swiper-container.slider-container-rotator {
        height: 65vh;
    }
    
    .swiper-title h2 {
        font-size: 2.5rem !important;
    }
}

@media (min-width: 1200px) {
    .swiper-container.slider-container-rotator {
        height: 70vh;
        max-height: 700px;
    }
    
    .swiper-title h2 {
        font-size: 3rem !important;
    }
}

/* Улучшение читаемости для светлых изображений */
@media (prefers-color-scheme: light) {
    .swiper-overlay {
        background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    }
}

/* Поддержка высококонтрастного режима */
@media (prefers-contrast: high) {
    .swiper-title h2 {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    }
    
    .swiper-article {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    }
}