/* BOJENI — Hero (главная страница)*/

.bj-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #fff;
}

/* ----- Фоновое изображение ----- */

.bj-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bj-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

/* ----- Слоган ----- */

.bj-hero__slogan {
    position: absolute;
    right: 55px;
    bottom: calc(1085px - 812px);
    bottom: 234px;
    font-weight: 100;
    font-size: 32px;
    line-height: 1.219;
    text-transform: lowercase;
    color: #E2DDD7;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    z-index: 2;
    pointer-events: none;
}

.bj-hero__category-bar {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 5, 8, 0.06);
    background-blend-mode: screen;
    backdrop-filter: blur(3.7px);
    -webkit-backdrop-filter: blur(10.7px);
    border-radius: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
    max-width: calc(100% - 32px);
    width: auto;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    box-shadow: 0px 0px 1px 0px rgb(179 99 43);
}

.bj-hero__category-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #2C05080F;
    background-blend-mode: screen;
    box-shadow: 0 8px 40px 0 #00000033;
    border-radius: 14px;
    border: 1px solid transparent;
    padding: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    scrollbar-width: thin;
    scrollbar-color: #00000033 transparent;
}

.bj-hero__category-nav::-webkit-scrollbar {
    height: 4px;
}

.bj-hero__category-nav::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.bj-hero__category-link {
    font-weight: 300;
    font-size: 18px;
    line-height: 21.28px;
    letter-spacing: -0.16px;
    color: #E2DDD7;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 18px;
    transition: ease-in-out .3s;
    border: 1px solid transparent;
}

.bj-hero__category-link:hover {
    background: transparent;
    box-shadow: 0 2px 7.5px 0 #F9B195;
    transition: ease-in-out .3s;
    border: 1px solid transparent;
    border-radius: 14px;
}
.bj-hero__category-link--mobile-only {
    display: none;
}

.bj-hero__bg-img--dark {
    display: block;
}
.bj-hero__bg-img--dark picture {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bj-hero__bg-img--mobile {
    display: none;
}
.bj-hero__video--desktop {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media (max-width: 768px) {
    .bj-hero__category-link:not(.bj-hero__category-link--mobile-only) {
        display: none;
    }

    .bj-hero__category-bar {
        width: 100%;
        text-align: center;
        padding: 0;
        min-height: unset;
        bottom: 40px;
    }
    .bj-hero__category-link--mobile-only {
        display: block;
        font-weight: 300;
        font-size: 24px;
        line-height: 21.28px;
        letter-spacing: -0.16px;
        vertical-align: middle;
        width: 100%;
        max-width: 100%;
    }

    .bj-hero__slogan {
        top: 50%;
        left: 50%;
        width: 100%;
        text-align: center;
        right: 0;
        transform: translate(-50%, -50%);
        white-space: nowrap;
        font-size: 24px;
        line-height: 120%;
        letter-spacing: 0;
    }

    .bj-hero__category-bar {
        box-shadow: 0 2px 7.5px 0 #F9B195;
    }
    .bj-hero__video--desktop {
        display: none;
    }

    .bj-hero__bg-img--mobile {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .bj-hero__video-container {
        position: relative;
        width: 100%;
        height: 100%;
    }
}
