#header .header-catalog-mobile,
#header .main-burger__basket,
#header .menu-burger__contacts {
    display: none;
}

.header-catalog-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-catalog-links a {
    display: block;
    color: #161616;
}

.header-catalog-links a:hover,
.header-catalog-links a:focus-visible {
    text-decoration: underline;
}

.header-catalog-desktop {
    padding: 4px 0 10px;
}

.header-catalog-desktop .header-catalog-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 0;
    font-size: 13px;
}

.header-catalog-desktop a {
    padding: 4px 10px;
}

.header-catalog-desktop li + li a {
    border-left: 1px solid #aaa;
}

@media (max-width: 991.98px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    #header .header-catalog-desktop,
    #header .contacts__header,
    #header .header-desktop-cart {
        display: none !important;
    }

    #header .menu-burger {
        display: flex;
    }

    #header #burger {
        display: grid;
        place-items: center;
        min-width: 44px;
        min-height: 44px;
        border: 0;
        background: transparent;
        padding: 0;
    }

    #menu-burger {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 999;
        overflow: auto;
        overscroll-behavior: contain;
        background-color: rgba(0, 0, 0, .58);
    }

    #menu-burger .modal-close-fon {
        position: fixed;
        inset: 0;
    }

    #menu-burger .main-header__menu {
        position: relative;
        box-sizing: border-box;
        width: min(320px, calc(100% - 24px));
        max-width: none;
        margin: 12px 12px 12px auto;
        padding: 44px 0 0;
        background: #fefefe;
        box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    }

    #menu-burger .burger-close {
        display: block;
        position: absolute;
        top: 0;
        left: auto;
        right: 0;
        width: 44px;
        height: 44px;
        border: 0;
        padding: 0;
        background: url(../images/svg/white_close_icon.svg) center / 22px no-repeat #333;
    }

    #menu-burger .burger-close::after {
        content: none;
    }

    #header .header-catalog-mobile,
    #header .main-burger__basket,
    #header .menu-burger__contacts {
        display: block;
    }

    .header-catalog-mobile {
        padding: 4px 20px 12px;
        border-bottom: 1px solid #ddd;
    }

    .header-catalog-label {
        margin: 0 0 4px;
        font-weight: 600;
    }

    .header-catalog-mobile a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 4px 0;
        font-size: 15px;
    }

    #menu-burger .main-header__list {
        display: block !important;
        height: auto;
        padding: 10px 20px;
    }

    #menu-burger .main-header__list-sub {
        position: static;
        box-shadow: none;
    }

    #menu-burger .part__line-bottom {
        display: none;
    }

    #header .main-burger__basket,
    #header .menu-burger__contacts {
        padding: 10px 20px;
    }
}

@media (min-width: 992px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    #header .header__logo {
        flex: 0 0 25%;
        max-width: 25%;
    }

    #header .main-header {
        flex: 0 0 58.3333%;
        max-width: 58.3333%;
    }
}
