

/* The catalog is now the first section on this page, so reserve space for
   the absolutely positioned header above it. */
.page > .catalog-section:first-child {
    --padding-top: 250px;
}

@media (max-width: 1500px) {
    .page > .catalog-section:first-child {
        --padding-top: 210px;
    }
}

@media (max-width: 1200px) {
    .page > .catalog-section:first-child {
        --padding-top: 180px;
    }
}

@media (max-width: 768px) {
    .page > .catalog-section:first-child {
        --padding-top: 122px;
    }
}


.header-menu__item {
    position: relative;
    display: flex;
    align-items: center;
}

.header_catalog .header-content {
    background-color: rgba(0, 0, 0, .25);
}

.header-menu__item_has-children > .nav-item::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0 3px 8px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.header-menu__item_has-children:hover > .nav-item::after,
.header-menu__item_has-children:focus-within > .nav-item::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.header-menu__toggle {
    display: none;
}

.header-menu__submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    display: flex;
    flex-direction: column;
    min-width: 210px;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(43, 43, 43, .96);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .28);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.header-menu__submenu::before {
    content: '';
    position: absolute;
    top: -14px;
    right: 0;
    left: 0;
    height: 14px;
}

.header-menu__item_has-children:hover > .header-menu__submenu,
.header-menu__item_has-children:focus-within > .header-menu__submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.header-menu__sublink {
    display: block;
    padding: 10px 16px;
    color: #feffff;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
}

.header-menu__sublink:hover,
.header-menu__sublink:focus-visible {
    background: rgba(184, 16, 18, .8);
}

@media (max-width: 1200px) {
    .mobile-menu .header-menu {
        width: 100%;
        gap: 0;
        padding: 0;
    }

    .mobile-menu .header-menu__item {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

    .mobile-menu .header-menu__item > .nav-item {
        padding: 14px 0;
    }

    .mobile-menu .header-menu__item_has-children > .nav-item::after {
        display: none;
    }

    .mobile-menu .header-menu__toggle {
        display: block;
        width: 38px;
        height: 38px;
        margin-left: 8px;
        color: #feffff;
    }

    .mobile-menu .header-menu__toggle::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border: solid currentColor;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg) translate(-2px, -2px);
        transition: transform .2s ease;
    }

    .mobile-menu .header-menu__item.is-open > .header-menu__toggle::before {
        transform: rotate(225deg) translate(2px, 2px);
    }

    .mobile-menu .header-menu__submenu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin: 0 0 12px;
        border: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, .06);
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .mobile-menu .header-menu__item.is-open > .header-menu__submenu {
        display: flex;
    }

    .mobile-menu .header-menu__sublink {
        padding: 12px 20px;
        text-align: center;
    }
}
