/* Базовые стили слайдера */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Ограничение высоты слайдера */
.hero-section .hero-height {
    position: relative;
    height: 780px !important;
    max-height: 780px !important;
    min-height: 500px !important;
    overflow: hidden;
}

.hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Центрирование контента */
.hero-section .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

/* Стили Swiper */
.swiper-mainSlider {
    width: 100%;
    height: 780px !important;
    max-height: 780px !important;
    overflow: hidden;
}

.swiper-mainSlider .swiper-wrapper {
    display: flex;
    height: 100% !important;
}

.swiper-mainSlider .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 780px !important;
    max-height: 780px !important;
    position: relative;
    transition-property: transform;
}

/* Кнопки навигации */
.array-button {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    gap: 10px;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.array-prev,
.array-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.array-prev:hover,
.array-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .hero-section .hero-height,
    .swiper-mainSlider,
    .swiper-mainSlider .swiper-slide {
        height: 500px !important;
        max-height: 500px !important;
        min-height: 400px !important;
    }
                   
    .array-button {
        bottom: 15px;
        right: 15px;
    }
    
    .array-prev,
    .array-next {
        width: 40px;
        height: 40px;
    }
}

/* Для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section .hero-height,
    .swiper-mainSlider,
    .swiper-mainSlider .swiper-slide {
        height: 600px !important;
        max-height: 600px !important;
    }
}

/* ========== НОВАЯ КНОПКА THEME-BTN3 ========== */
.theme-btn3 {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    -webkit-appearance: none;
    border: 2px solid #B99D75;
    outline: none !important;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    font-weight: 600;
    padding: 16px 36px;
    -webkit-transition: all 400ms ease;
    transition: all 400ms ease;
    text-transform: uppercase;
    background-color: #B99D75;
    color: #FFFFFF;
    z-index: 99;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 0;
    min-width: 220px;
}

.theme-btn3:hover {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

.swiper-slide-active .theme-btn3 {
    background-color: #B99D75;
    border-color: #B99D75;
}

.swiper-slide-active .theme-btn3:hover {
    background-color: #000000;
    border-color: #000000;
}

@media (max-width: 768px) {
    .theme-btn3 {
        padding: 14px 28px;
        font-size: 15px;
        min-width: 200px;
    }
}



/* ========== ОКОНЧАТЕЛЬНОЕ РЕШЕНИЕ ДЛЯ ЦЕНТРИРОВАНИЯ ========== */
/* Переопределяем container для слайдера */
.hero-section .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Контент внутри контейнера - на всю ширину */
.hero-section .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Для разных размеров экранов */
@media (min-width: 1400px) {
    .hero-section .container {
        max-width: 1340px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-section .container {
        max-width: 1140px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .hero-section .container {
        max-width: 960px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-section .container {
        max-width: 720px !important;
    }
}

@media (max-width: 767px) {
    .hero-section .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}