/* ===== HERO СЛАЙДЕР ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: -1px; /* Убираем возможный отступ */
}

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

/* Слайды */
.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Новый красивый градиент */
.slider-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        105deg,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.2) 100%
    );
    z-index: 1;
}

.slider-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Контент слайда */
.slide-content {
    max-width: 800px;
    color: white;
    animation: fadeInUp 0.8s ease;
}

.slide-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #FDB81E;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    padding: 8px 20px;
    border-radius: 40px;
    backdrop-filter: blur(5px);
}

.slide-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.slide-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.slide-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Белая кнопка для слайдера */
.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #1E1E1E;
    transform: translateY(-2px);
}

/* Кнопки навигации */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

.slider-prev:hover,
.slider-next:hover {
    background: #FDB81E;
    border-color: #FDB81E;
    color: #1E1E1E;
}

/* Точки (dots) */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #FDB81E;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255,255,255,0.8);
}

/* Анимация */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-prev { left: 15px; }
    .slider-next { right: 15px; }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 500px; /* Чуть выше, чтобы контент влезал */
    }
    
    .slide-content {
        text-align: center;
        margin: 0 auto;
        padding: 20px 0;
    }
    
    .slide-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .slide-buttons {
        justify-content: center;
    }
    
    /* Фиксим кнопки навигации на мобилках */
    .slider-prev,
    .slider-next {
        top: auto;
        bottom: 80px; /* Поднимаем выше точек */
        transform: none;
        width: 45px;
        height: 45px;
        background: rgba(0,0,0,0.5);
    }
    
    .slider-prev {
        left: 15px;
    }
    
    .slider-next {
        right: 15px;
    }
    
    .slider-dots {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 70vh; /* Делаем выше, чтобы точно всё влезло */
        min-height: 550px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .slide-buttons .btn {
        width: 100%;
    }
    
    .slider-prev,
    .slider-next {
        display: none; /* Прячем стрелки на очень маленьких */
    }
}