/* ============================================================
   HERO-SLIDER.CSS - СЛАЙДЕР НА ГЛАВНОЙ СТРАНИЦЕ
   ============================================================ */

.hero-slider {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    max-height: 900px;
    overflow: hidden;
    background: #1a1a1a;
}

.hero-slider__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.hero-slider__slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ============================================================
   КОНТЕЙНЕР ДЛЯ ИЗОБРАЖЕНИЯ
   ============================================================ */

.hero-slider__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* ============================================================
   ИЗОБРАЖЕНИЕ
   ============================================================ */

.hero-slider__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.1);
    transition: transform 8s ease-in-out;
}

.hero-slider__slide.active .hero-slider__img {
    transform: scale(1);
}

/* ============================================================
   ОВЕРЛЕЙ (ЗАТЕМНЕНИЕ)
   ============================================================ */

.hero-slider__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

/* ============================================================
   КОНТЕНТ БАННЕРА - ИСПРАВЛЕННЫЕ ОТСТУПЫ
   ============================================================ */

/* Убираем лишние отступы у контейнера внутри слайдера */
.hero-slider .container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-slider__content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 20px; /* Уменьшенные паддинги */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Для планшетов и мобильных - еще меньше отступов */
@media (max-width: 768px) {
    .hero-slider__content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero-slider__content {
        padding: 12px;
    }
}

.hero-slider__content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    line-height: 1.2;
}

.hero-slider__slide.active .hero-slider__content h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider__content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 35px;
    max-width: 700px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
    line-height: 1.6;
}

.hero-slider__slide.active .hero-slider__content p {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.hero-slider__buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}

.hero-slider__slide.active .hero-slider__buttons {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider__buttons .btn {
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    letter-spacing: 0.32px !important;
    height: auto !important;
    min-height: auto !important;
    line-height: 1.4 !important;
}

.hero-slider__buttons .btn-primary {
    background: linear-gradient(135deg, #4a4a4a 0%, #5a5a5a 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-slider__buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #5a5a5a 0%, #6a6a6a 100%);
}

.hero-slider__buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-slider__buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* ============================================================
   СТРЕЛКИ УПРАВЛЕНИЯ
   ============================================================ */

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.hero-slider__arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-slider__arrow--prev {
    left: 30px;
}

.hero-slider__arrow--next {
    right: 30px;
}

/* ============================================================
   ТОЧКИ НАВИГАЦИИ
   ============================================================ */

.hero-slider__dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-slider__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.hero-slider__dot.active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.15);
}

.hero-slider__dot:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 1024px) {
    .hero-slider__content h1 {
        font-size: 3.2rem;
    }
    .hero-slider__content p {
        font-size: 1.2rem;
    }
    .hero-slider__arrow {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .hero-slider__arrow--prev {
        left: 20px;
    }
    .hero-slider__arrow--next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        min-height: 70vh;
        height: 70vh;
        max-height: 700px;
    }
    .hero-slider__content h1 {
        font-size: 2.4rem;
        margin-bottom: 15px;
    }
    .hero-slider__content p {
        font-size: 1.05rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    .hero-slider__buttons .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    .hero-slider__arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .hero-slider__arrow--prev {
        left: 10px;
    }
    .hero-slider__arrow--next {
        right: 10px;
    }
    .hero-slider__dots {
        bottom: 20px;
        gap: 10px;
        padding: 6px 14px;
    }
    .hero-slider__dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 60vh;
        height: 60vh;
        max-height: 600px;
    }
    .hero-slider__content h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    .hero-slider__content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .hero-slider__buttons {
        gap: 12px;
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }
    .hero-slider__buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .hero-slider__arrow {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .hero-slider__arrow--prev {
        left: 6px;
    }
    .hero-slider__arrow--next {
        right: 6px;
    }
    .hero-slider__dots {
        bottom: 15px;
        gap: 8px;
        padding: 4px 12px;
    }
    .hero-slider__dot {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }
}

@media (min-width: 1600px) {
    .hero-slider__content h1 {
        font-size: 5rem;
    }
    .hero-slider__content p {
        font-size: 1.6rem;
        max-width: 800px;
    }
    .hero-slider__buttons .btn {
        padding: 18px 44px;
        font-size: 1.2rem;
    }
}

/* ============================================================
   ФИКС ДЛЯ МОБИЛЬНЫХ - явная высота контейнера
   ============================================================ */

/* Принудительная высота для всех устройств */
.hero-slider {
    min-height: 100vh !important;
    height: 100vh !important;
    max-height: 900px !important;
}

.hero-slider__slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
}

.hero-slider__image-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    overflow: hidden !important;
}

.hero-slider__img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Специально для мобильных устройств (меньше 800px) */
@media (max-width: 800px) {
    .hero-slider {
        min-height: 70vh !important;
        height: 70vh !important;
        max-height: 700px !important;
    }
    
    .hero-slider__slide {
        height: 100% !important;
        min-height: 100% !important;
    }
    
    .hero-slider__image-wrapper {
        height: 100% !important;
        min-height: 100% !important;
    }
    
    .hero-slider__img {
        height: 100% !important;
        min-height: 100% !important;
        object-position: center 30% !important;
    }
}

@media (max-width: 500px) {
    .hero-slider {
        min-height: 60vh !important;
        height: 60vh !important;
        max-height: 600px !important;
    }
    
    .hero-slider__img {
        object-position: center 20% !important;
    }
}

/* Форсируем display для всех элементов слайдера */
.hero-slider__slides {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    position: relative !important;
}

.hero-slider__content {
    position: relative !important;
    z-index: 3 !important;
    min-height: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
}
