.catalog-menu {
    display: none;
    position: absolute;
    top: 100%;
    /*max-height: 62.5rem;*/
    z-index: 101;
}
.catalog-menu::before {
    content: "";
    position:absolute;
    top:0;
    left:-200px;
    width: calc(100vw + 200px);
    height: 100vh;
    background: #00000033;
}

.catalog-menu__wrapper {
    position: relative;
    display: flex;
    height: 100%;
    max-height: 560px;
}
@media (max-width: 1600px) {
    .catalog-menu__wrapper {
        max-height: 500px;
    }
}
@media (max-width: 1440px) {
    .catalog-menu__wrapper {
        max-height: 460px;
    }
}
@media (max-width: 1200px) {
    .catalog-menu__wrapper {
        max-height: 420px;
    }
}

.catalog-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    border: 0;
    padding: 0.5rem;
    background-color: transparent;
}
.catalog-menu__close:focus,
.catalog-menu__close:focus-visible {
    outline: 0;
}
.catalog-menu__close svg {
    fill: #121212;
}

.catalog-menu__list {
    position: relative;
    background-color: #F6F9FC;
    margin-bottom: 0;
    border-radius: 0 0 12px 12px;
    width: 334px;
    overflow: hidden;
    overflow-y: auto;
}

.catalog-menu__second-level, .catalog-menu__third-level {
    display: none;
    position: relative;
    border-radius: 0 0 12px 12px;
    width: 334px;
    overflow: hidden;
    overflow-y: auto;
    max-height: 100%;
    margin: 0;
}
.catalog-menu__second-level {
    background-color: #fff;
}

.catalog-menu__third-level {
    background-color: #F6F9FC;
}

.catalog-menu__item {
    margin-bottom: 4px;
}

.catalog-menu__item--all,
.catalog-menu__item--go-back {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.catalog-menu__item--all a {
    color: #175cff;
}

.catalog-menu__wrapper li {
    list-style-type: none;
}
.catalog-menu__wrapper li:before {
    display: none;
}

.catalog-menu__link.active {
    position: relative;
    background-color:#175CFF;
    color: #fff;
    text-decoration: none !important;
}

.catalog-menu__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #163560;
    gap: 10px;
    text-decoration: none;
    padding: 8px 26px 8px 18px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;

    transition: all .3s ease;
}
.catalog-menu__link--parent:after {
    content: "";
    display: block;
    width: 7px;
    height: 14px;
    flex-shrink: 0;

    -webkit-background-size: contain;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml,<svg width="9" height="16" viewBox="0 0 9 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L8 8L1 15" stroke="%23163560" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.catalog-menu__link--without-arrow:after {
    display: none;
}

.catalog-menu__link:hover {
    text-transform: unset;
    background-color: #175cff;
    color: #fff;
    text-decoration: none;
    transition: all .3s ease;
}

.catalog-menu__item--all .catalog-menu__link:hover {
    background-color: transparent;
    color: #175cff;
    text-decoration: underline;
}

.catalog-menu__link--parent:hover:after {
    background-image: url('data:image/svg+xml,<svg width="9" height="16" viewBox="0 0 9 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L8 8L1 15" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.catalog-menu__link--parent.active:after {
    background-image: url('data:image/svg+xml,<svg width="9" height="16" viewBox="0 0 9 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L8 8L1 15" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.catalog-menu__link--back {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: rgba(0, 0, 0, 0.6);
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
    outline: 0;
    border: 0;
    text-transform: unset;
}
.catalog-menu__link--back:hover {
    color: #175cff;
    background-color: transparent;
}
.catalog-menu__link--back:hover,
.catalog-menu__link--back:active,
.catalog-menu__link--back:focus {
    outline: 0;
}

.catalog-menu__link--back:after {
    display: none;
}
.catalog-menu__link--back:before {
    content: "← ";
    display: block;
    font-family: 'Roboto' !important;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 33px;
}

.catalog-menu__link-arrow {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    fill: #163560;
    transition: fill .3s .1s ease;
}

.catalog-menu__item--back {
    display: none;
    width: 100%;
}

@media (max-width: 1200px) {
    .catalog-menu__list, .catalog-menu__second-level, .catalog-menu__third-level {
        width: 300px;
    }
}

@media(max-width: 991px ) {
    .catalog-menu__item--back {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .catalog-menu__wrapper {
        width: 100%;
        max-height: unset;
    }
    .catalog-menu__list {
        border-radius: 0;
        width: 100%;
        height: 100vh;
        padding-bottom: 100px;
    }

    .catalog-menu__product-list::-webkit-scrollbar {
        width: 10px;
        overflow:hidden;
    }
    .catalog-menu__product-list::-webkit-scrollbar-thumb{
        background-color: #175CFF;
    }
    .catalog-menu__product-list::-webkit-scrollbar-track {
        background: #EEEEEE;        /* цвет дорожки */
        border-radius: 0 0 12px 0;
    }

    .catalog-menu__second-level,
    .catalog-menu__third-level {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        width: 100%;
        max-height: 100%;
        overflow-y: auto;
        border-radius: 0;
        padding-bottom: 100px;
    }
    .catalog-menu__second-level.active,
    .catalog-menu__third-level.active {
        height: 100%;
    }
    .catalog-menu {
        position: fixed;
        max-height: 100vh;
        height: 100vh;
        overflow: hidden;
        right: 0;
        top: 0;
        left: 0;
    }
}
@media (max-width: 768px) {
    .catalog-menu {
        margin-left: 0;
        top:0;
    }
    .header__bottom{
        position: inherit !important;
    }
}

.catalog-menu__list::-webkit-scrollbar,
.catalog-menu__second-level::-webkit-scrollbar,
.catalog-menu__third-level::-webkit-scrollbar {
    width: 10px;
    overflow:hidden;
}

.catalog-menu__list::-webkit-scrollbar-thumb,
.catalog-menu__second-level::-webkit-scrollbar-thumb,
.catalog-menu__third-level::-webkit-scrollbar-thumb{
    background-color: #175CFF;
}
.catalog-menu__list::-webkit-scrollbar-track,
.catalog-menu__second-level::-webkit-scrollbar-track,
.catalog-menu__third-level::-webkit-scrollbar-track {
    background: #EEEEEE;
    border-radius: 0 0 12px 0;
}

.stop-scroll {
    max-height: 100vh;
    height: 100vh;
    overflow:hidden;
}