.nested_menu {
    z-index: 1;
    height: calc(100vh - 80px);
    top: 80px;
    position: fixed;
    background: var(--main-transparent-bg);
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
}

.nested_menu::-webkit-scrollbar {
    display: none;
}

.menu-item,
.submenu-item {
    list-style-type: none;
    display: flex;
    flex-direction: column;
}

.menu-item a {
    color: var(--main-text-color);
    margin: 0 !important;
}

.menu-item .submenu-item {
    border: none;
    min-height: 60px;
    height: auto;
    justify-content: center;
    display: flex;
    font-size: 14px;
    padding: 0;
    border-bottom: 1px solid #2C2C2C;
}

.menu-item.has-children > a:after {
    content: url("../../../images/nested-menu/arrow-right.svg");
    padding-left: 5px;
    cursor: pointer;
}

.nested-menu-list {
    padding: 0 !important;
}

.submenu-item {
    height: auto;
}

.submenu,
.subsubmenu {
    display: none;
    padding: 0 !important;
}

.menu-item a.parent {
    border-bottom: 1px solid #2C2C2C;
    display: flex;
    align-items: center;
    padding: 20px;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.menu-item.parent {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0;
}

.submenu-item a, .subsubmenu-item a {
    text-decoration: none;
    color: #abaaaa;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 40px;
}

.menu-item li:first-child a:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-item.open {
    display: flex;
}

.menu-item.has-children.has-submenu > a:after {
    content: url("../../../images/nested-menu/arrow-right.svg");
    padding-left: 5px;
    cursor: pointer;
}

.menu-item.has-children.has-submenu.open > a:after {
    content: url("../../../images/nested-menu/arrow-down.svg");
}

.menu-item .submenu-item.active,
.parent.active {
    background: var(--main-filling-block);
}

/* Логотип в меню */
.nested-menu-logo {
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    padding: 0;
    text-align: center;
    border: none !important;
    transition: opacity 0.3s ease;
}

.nested-menu-logo.visible {
    opacity: 1;
    max-height: 200px;
    padding: 10px 20px;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.nested-menu-logo > a {
    display: block;
    text-align: center;
}
