* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Контейнер карусели */
.carousel-container {
    width: 100%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Заголовок */
.carousel-header {
    text-align: center;
    padding: 25px 20px;
    color: white;
}

.carousel-header h1 {
    font-size: 2rem;
    margin-top: 30px;
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.carousel-header p {
    font-size: 1.4rem;
    opacity: 0.8;
    color: #b8c1ec;
}

/* Обёртка */
.carousel-wrapper {
    padding: 30px;
}

/* Боковая часть */
.carousel-side {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Основной блок */
.carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 15px;
}

/* Слайды */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Текст на слайде */
.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    z-index: 2;
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.slide-description {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 90%;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Навигация */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

/* Нижняя подпись */
.carousel-footer {
    text-align: center;
    padding: 20px;
    color: #b8c1ec;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================= */
/* 📱 АДАПТИВНОСТЬ */
/* ============================= */

/* Планшеты */
@media (max-width: 992px) {

    .carousel-wrapper {
        padding: 20px;
    }

    .carousel {
        height: 380px;
    }

    .slide-content {
        padding: 25px;
    }

    .slide-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .slide-description {
        font-size: 1rem;
        max-width: 95%;
        line-height: 1.5;
    }
}

/* Телефоны */
@media (max-width: 576px) {

    .carousel {
        height: 320px;
    }

    .slide-content {
        padding: 18px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    }

    .slide-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .slide-description {
        font-size: 0.9rem;
        line-height: 1.4;
        max-width: 100%;
        opacity: 0.95;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 400px) {

    .carousel {
        height: 280px;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-title {
        font-size: 1.2rem;
    }

    .slide-description {
        font-size: 0.85rem;
        line-height: 1.35;
    }

    .carousel-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .carousel-footer {
        padding: 15px;
        font-size: 0.85rem;
    }
}

