.nested_menu {
    --nested-menu-header-height: 80px;
    z-index: 1;
    position: fixed;
    top: var(--nested-menu-header-height);
    height: calc(100vh - var(--nested-menu-header-height));
    padding-top: 0;
    background: var(--main-transparent-bg);
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
    transition: none;
    will-change: top, height, padding-top;
}

.nested_menu.is-sticky {
    top: 0;
    height: 100vh;
    padding-top: var(--nested-menu-header-height);
    transition:
        top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        padding-top 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.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 {
    display: flex;
    align-items: stretch;
}

.submenu-item a {
    display: flex;
    align-items: center;
    color: #abaaaa;
    width: 100%;
    min-height: 60px;
    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 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nested-menu-header-height);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -8px, 0);
    pointer-events: none;
    text-align: center;
    border: none !important;
    will-change: opacity, transform;
    transition: none;
}

.nested-menu-logo.visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    transition:
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nested-menu-logo > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    text-align: center;
}

.nested-menu-logo img,
.nested-menu-logo svg {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(var(--nested-menu-header-height) - 20px);
    margin: 0 auto;
}


@media (prefers-reduced-motion: reduce) {
    .nested_menu,
    .nested-menu-logo,
    .nested-menu-logo.visible {
        transition: none;
    }
}