/**
 * Hero Background Styles
 * Оптимизированный фон для hero секции с поддержкой WebP
 */

/* Базовый фон для hero секции */
.hero-modern {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Фоновое изображение */
.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/prostobau_hero_bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Тёмный оверлей (35%) для читаемости текста */
.hero-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* Контент поверх фона */
.hero-modern > * {
    position: relative;
    z-index: 2;
}

/* Parallax эффект при скролле — только десктоп */
@media (min-width: 768px) {
    .hero-modern::before {
        background-attachment: fixed;
    }
}

/* Мобильные устройства */
@media (max-width: 767px) {
    .hero-modern {
        min-height: 500px;
    }
    
    .hero-modern::before {
        background-attachment: scroll;
        background-position: center top;
    }
}
