/* === Основной Hero === */
.hero {
    position: relative;
    max-height: 100vh;
    aspect-ratio: 16 / 9;
    background: url('../assets/images/hero.webp') no-repeat center center / cover;
    background: -webkit-image-set(url('../assets/images/hero.webp') 1x) no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    width: 100%;
    overflow: hidden;
}

/* .hero.header {
    display: none;
} */

.hero.contacts {
    min-height: 750px;
    background: url('../assets/images/hero-contacts.webp') no-repeat center center / cover;
    background: -webkit-image-set(url('../assets/images/hero-contacts.webp') 1x) no-repeat center center / cover;
}

.no-webp .hero {
    background: url('../assets/images/hero.png') no-repeat center center / cover;
}

.no-webp .hero.contacts {
    background: url('../assets/images/hero-contacts.png') no-repeat center center / cover;
}

.hero.visible {
    opacity: 1;
}

.hero h1 {
    font-weight: 700;
    font-size: clamp(36px, 6vw, 69px);
    line-height: 1.2;
    color: white;
    max-width: 800px;
    margin-bottom: 20px;
}

.hero p {
    font-weight: 400;
    font-size: clamp(15px, 3vw, 34px);
    color: white;
}

.hero.contacts p {
    color: white;
    text-align: center;
    font-size: clamp(17px, 3vw, 37px);
    line-height: 1.1;
    font-weight: 700;
    margin-top: 40px;
    transform: translateY(15px);
}

/* === Hero Products === */
.hero-products {
    position: relative;
    max-height: 80vh;
    aspect-ratio: 22 / 8;
    background: url('../assets/images/products-hero.webp') no-repeat center center / cover;
    background: -webkit-image-set(url('../assets/images/products-hero.webp') 1x) no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    width: 100%;
    overflow: hidden;
}

.no-webp .hero-products {
    background: url('../assets/images/products-hero.png') no-repeat center center / cover;
}

.hero.news-hero {
    background: url('../assets/images/news-hero.webp') no-repeat center 20% / cover;
    /* background: url('../assets/images/news-hero.jpg') no-repeat center 20% / cover; */
    min-height: 420px;
    aspect-ratio: 21 / 6;
    position: relative;
}
.hero.news-hero::before {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(13, 34, 68, 0.695) 0%, rgba(28, 77, 133, 0.629) 100%);
    z-index: 1;
    pointer-events: none;
}

.no-webp .hero.news-hero {
    background: url('../assets/images/news-hero.jpg') no-repeat center 20% / cover;
}

.news-hero-content {
    width: 100%;
    padding-block: 60px 40px;
}
.news-hero h1 {
    color: #fff;
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 700;
    margin-bottom: 20px;
    z-index: 2;
}
.news-hero .breadcrumb {
    background: transparent;
    color: #fff;
}
.news-hero .breadcrumb-item,
.news-hero .breadcrumb-item a {
    color: #fff;
    font-size: 18px;
    z-index: 2;
}
.news-hero .breadcrumb-item.active {
    color: #fff;
}

.hero.news-hero .breadcrumb-item + .breadcrumb-item::before {
    color: #fff;
}

/* Хедер с видео для десктопа */
.hero-video {
    position: relative;
    min-height: 720px;
    display: block; 
    overflow: hidden;
}
.hero-video .video-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.45) 100%); */
    pointer-events: none;
}
.hero-video .hero-video-el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-video .container-fluid {
    position: relative;
    z-index: 2;
}

@media (min-width: 1600px) {
    .hero.contacts p {
        font-size: 40px;
        line-height: 1.2;
        font-weight: 550;
        margin-top: 70px;
    }
    .hero.contacts {
        min-height: 900px;
    }

    .hero.news-hero,
    .no-webp .hero.news-hero {
        background-position: center 27%;
    }
}
@media (max-width: 1199px) {
    .hero.hero-video { 
        display: none; 
    }

    /* .hero.header { 
        display: flex; 
    } */

    .hero {
        background-position: 30% center;
    }

    .hero.contacts {
        min-height: 750px;
    }

    .hero.news-hero,
    .no-webp .hero.news-hero {
        background-position: center 15%;
        min-height: 350px;
    }
}
@media (max-width: 767px) {
    .hero {
        min-height: 600px;
    }
    .hero.contacts {
        min-height: 550px;
    }
    .hero.news-hero,
    .no-webp .hero.news-hero {
        background-position: center 30px;
        
    }
}
@media (max-width: 576px) {
    .hero {
        min-height: 550px;
        background-position: 35% center;
    }
    .hero.contacts {
        min-height: 450px;
    }
    .hero-products {
        min-height: 400px;
    }
}
@media (max-width: 426px) {
    .hero {
        min-height: 500px;
        background-position: 15% center;
    }
    .hero.contacts {
        min-height: 500px;
    }
}
@media (max-width: 400px) {
    .hero.contacts {
        min-height: 550px;
    }
}
@media (max-width: 339px) {
    .hero.contacts {
        min-height: 600px;
    }
}
@media (max-height: 450px) {
    .hero {
        min-height: 350px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 15px;
    }
}
