/* ========== КАРУСЕЛЬ БАННЕРОВ ========== */
.banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 225px; /* базовая высота */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    overflow: hidden;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Контейнер picture для адаптивных изображений */
.carousel-bg-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.carousel-bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    text-align: center;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.carousel-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.carousel-button {
    display: inline-block;
    background-color: var(--primary);
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.carousel-button:hover {
    background-color: var(--primary-light);
}

/* Кнопки навигации */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 0.5rem;
    transition: background 0.2s;
}
.carousel-prev { left: 30px; }
.carousel-next { right: 30px; }
.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0,0,0,0.8);
}

/* Точки (индикаторы) */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}
.carousel-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-dot.active {
    background-color: var(--primary);
}

/* Адаптивность высоты слайдов */
@media (max-width: 768px) {
    .carousel-slides {
        height: 200px;
    }
    .carousel-title {
        font-size: 2rem;
    }
    .carousel-subtitle {
        font-size: 1rem;
    }
    .carousel-prev, .carousel-next {
        font-size: 1.5rem;
        padding: 0.3rem 0.8rem;
    }
}