/* ==================== БАННЕР С РАМКОЙ ==================== */
.banner-section {
    width: 100%;
    padding: 20px 0;
    background: transparent;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* РАМКА БАННЕРА - вот она! */
.banner-slider {
    width: 100%;
    height: 450px;
    border-radius: 30px;  /* Закругленные углы */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* Тень */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая рамка */
}

.banner-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 20px 30px;
}

.banner-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: #ff8c42;
    color: white;
}

.banner-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
    color: white;
}

.banner-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.banner-button {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #ff8c42;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.banner-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-color: white;
    background: #ff8c42;
}

/* Навигация */
.banner-slider .swiper-button-prev,
.banner-slider .swiper-button-next {
    color: white !important;
    background: rgba(255,255,255,0.2);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.banner-slider .swiper-button-prev:hover,
.banner-slider .swiper-button-next:hover {
    background: #ff8c42;
    border-color: #ff8c42;
}

.banner-slider .swiper-button-prev:after,
.banner-slider .swiper-button-next:after {
    font-size: 1.2rem !important;
}

.banner-slider .swiper-pagination {
    bottom: 10px !important;
}

.banner-slider .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: white !important;
    opacity: 0.6;
    margin: 0 6px !important;
}

.banner-slider .swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #ff8c42 !important;
    transform: scale(1.2);
}

/* Планшеты */
@media (max-width: 992px) {
    .banner-slider {
        height: 380px;
        border-radius: 25px;
    }
    .banner-title {
        font-size: 2.2rem;
    }
    .banner-description {
        font-size: 1.1rem;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .banner-section {
        padding: 10px 0;
    }
    
    .banner-container {
        padding: 0 10px;
    }
    
    .banner-slider {
        height: 280px;
        border-radius: 20px; /* Рамка остается! */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    
    .banner-title {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }
    
    .banner-description {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .banner-tag {
        padding: 5px 15px;
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .banner-button {
        padding: 8px 25px;
        font-size: 0.9rem;
    }
    
    /* На мобильных убираем стрелки */
    .banner-slider .swiper-button-prev,
    .banner-slider .swiper-button-next {
        display: none !important;
    }
}

/* Маленькие мобильные */
@media (max-width: 576px) {
    .banner-slider {
        height: 220px;
        border-radius: 15px; /* Рамка все еще есть! */
    }
    
    .banner-title {
        font-size: 1.3rem;
    }
    
    .banner-description {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .banner-tag {
        padding: 4px 12px;
        font-size: 0.7rem;
        margin-bottom: 5px;
    }
    
    .banner-button {
        padding: 6px 18px;
        font-size: 0.8rem;
    }
}

/* Анимация */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== УБИРАЕМ ПРОМЕЖУТОК МЕЖДУ БАННЕРОМ И ПРОДУКТАМИ ==================== */

/* Для мобильных устройств */
@media (max-width: 768px) {
    /* Убираем все отступы снизу баннера */
    .banner-section {
        margin-bottom: 50 !important;
        padding-bottom: 0 !important;
    }
    
    .banner-container {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .banner-slider {
        margin-bottom: 0 !important;
    }
    
    /* Убираем отступ сверху у секции с продуктами */
    #products {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Убираем отступ у контейнера продуктов */
    #products .container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Убираем отступ у заголовка продуктов */
    #products .section-title {
        margin-top: 5px !important;
        padding-top: 0 !important;
    }
    
    /* Если есть другие секции между ними - тоже убираем */
    .banner-section + * {
        margin-top: 0 !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
    #products .section-title {
        margin-top: 0 !important;
    }
}