

/* Start:/local/templates/ogonek/components/bitrix/news.list/home_slider/style.css?17835982836846*/
/* === СТИЛИ КОМПОНЕНТА "СЛАЙДЕР" (FINAL) === */

/* 1. Контейнер */
.hero-slider-container {
    width: 100%;
    max-width: 100%;
    /* Высота для ПК: уменьшена для попадания виджета Госуслуги в первый экран */
    height: 22vw; 
    min-height: 320px;
    max-height: 480px;
    
    margin-bottom: 25px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.hero-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

/* 2. Слайд (теперь это ссылка <a>) */
.hero-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 100px; /* Отступ для ПК */
    color: white;
    
    /* Свойства ссылки */
    text-decoration: none !important;
    cursor: pointer;
    
    /* === ФОН (CSS Variables) === */
    background-image: var(--bg-desktop) !important;
    background-position: center 25% !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    
    transition: background-image 0.2s ease-in-out;
}

/* 3. Затемнение (Градиент) */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgb(41, 178, 152) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

/* 4. Контент */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-family: 'Nunito', sans-serif;
    font-size: 28px; font-weight: 800;
    margin-bottom: 12px; line-height: 1.15;
}

.hero-subtitle {
    font-size: 16px; line-height: 1.5;
    margin-bottom: 20px; opacity: 0.95; font-weight: 500;
}

.tag {
    background: rgba(255,255,255,0.25);
    padding: 8px 16px; border-radius: 20px;
    font-size: 14px; font-weight: 700;
    margin-bottom: 25px; display: inline-block;
    backdrop-filter: blur(5px);
}

/* 5. Кнопка (визуальная) */
.hero-btn {
    display: inline-flex; /* Важно для span */
    align-items: center;
    justify-content: center;
    padding: 14px 30px; 
    font-size: 16px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}
.hero-btn:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(231, 98, 39, 0.4) !important;
}
.hero-btn i { transition: transform 0.3s ease; }
.hero-btn:hover i { transform: translateX(5px); }

/* 6. Стрелки */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none; color: white;
    font-size: 20px; width: 50px; height: 50px; border-radius: 50%;
    cursor: pointer; z-index: 10; backdrop-filter: blur(5px);
    transition: background 0.3s;
}
.slider-arrow:hover { background: rgba(255, 255, 255, 0.5); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }


/* === АДАПТИВНОСТЬ (ПК и Планшеты) === */
@media (min-width: 1600px) {
    .hero-title { font-size: 34px; }
    .hero-subtitle { font-size: 17px; }
}
@media (max-width: 1500px) {
    .hero-title { font-size: 30px; }
    .hero-btn { font-size: 13px; }
}


/* === МОБИЛЬНАЯ ВЕРСИЯ (ОТ КРАЯ ДО КРАЯ) === */
@media (max-width: 768px) {
    
    /* 1. Контейнер (Фикс отступов) */
    .hero-slider-container {
        height: auto !important;
        
        /* Компенсируем отступы родителя (padding: 10px) */
        width: calc(100% + 20px) !important; 
        margin-left: -10px !important;       
        margin-right: -10px !important;      
        
        /* Убираем зазор от шапки */
        margin-top: -15px !important;        
        
        max-width: none !important;
        margin-bottom: 10px;
        background: white;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    /* 2. Слайд (Колонка) */
    .hero-slide {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        background-image: none !important; /* Фон убираем */
        height: auto !important;
        border-radius: 0;
        overflow: visible;
    }

    /* 3. Картинка (Квадратная сверху) */
    .hero-slide::before {
        content: '';
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1; /* Квадрат */
        
        background-image: var(--bg-mobile) !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .hero-overlay { display: none !important; }

    /* 4. Текст (Снизу на белом) */
    .hero-content {
        position: relative !important;
        z-index: 2;
        max-width: 100% !important;
        padding: 15px 15px 20px !important;
        text-align: center !important;
        color: var(--dark) !important;
    }

    .hero-title {
        font-size: 18px !important;
        margin-bottom: 5px;
        color: var(--dark) !important;
        line-height: 1.2;
        font-weight: 800;
    }

    .hero-subtitle {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 12px;
        color: #666 !important;
        opacity: 1 !important;
        display: block !important; 
    }

    .tag {
        background: #f4f4f4 !important;
        color: #999 !important;
        margin-bottom: 8px !important;
        font-size: 10px !important;
        padding: 3px 8px !important;
        backdrop-filter: none !important;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 0 !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    /* 5. Стрелки */
    .slider-arrow {
        top: calc(50vw - 18px) !important; /* Центр картинки */
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
        background: rgba(255, 255, 255, 0.8) !important;
        color: var(--dark) !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .slider-arrow.prev { left: 10px !important; }
    .slider-arrow.next { right: 10px !important; }
}
/* End */
/* /local/templates/ogonek/components/bitrix/news.list/home_slider/style.css?17835982836846 */
