
ul.menu {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 1em;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
    scrollbar-gutter: stable;
    height: 100vh;
}

li.menu__title {
    font-size: 1.25em;
    font-weight: 500;
    padding: 1em;
    background: #FFF;
    border-radius: .3em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    position: sticky;
    top: 0;
}

li.menu__item {
    display: flex;
    gap: 1em;
    position: relative;
    align-items: center;
    border-radius: 0.375em;
    padding: .75em 1em;
    transition: .3s;
}

li.menu__item:hover {
    background: #f2f5f9;
}

li.menu__item::after {
    content: "\ecba";
    font-family: 'icomoon', sans-serif;
    position: absolute;
    right: .5em;
    transition: .3s;
    transform: translateX(-.5em);
    opacity: 0;
}

li.menu__item:hover:after {
    transform: translateX(0);
    opacity: 1;
}

li.menu__item.active::after {
    content: "\e957";
    transform: translateX(0);
    opacity: 1;
    color: var(--gray-color);
}

li.menu__item:focus-within {
    outline: 2px solid var(--default-color-hover);
}

li.menu__item i {
    font-size: clamp(0.875em, 1vw, 1em);
    color: var(--gray-color);
    transition: .3s;
}

li.menu__item:hover i {
    color: var(--additional-color);
}

li.menu__item.active {
    background: #F1F1F1;
}

li.menu__item.active i {
    color: var(--additional-color-hover);
}

li.menu__item a {
    font-weight: 500;
    color: #3A3A3A;
    display: block;
    transition: .3s;
}

li.menu__item a:hover {
    color: var(--default-color-hover);
}

li.menu__item.active a {
    color: var(--default-color-hover);
    cursor: default;
}

.header__sub {
    display: none;
}

@media (min-width: 1024px) {

    .header__container {
        width: 80%!important;
    }

    li.menu__title {
        padding: 0 .5em;
        background: #FFF;
    }

    span.header__menu-cover-text {
        position: fixed;
        top: 2em;
        right: 2em;
        color: rgba(255, 255, 255, .5);
    }

    li.menu__item a {
        font-size: clamp(0.875em, 1vw, 1em);
    }

    .header__sub {
        position: relative;
        width: 65%;
        padding: 2em;
        overflow-y: auto;
        scrollbar-gutter: stable;
        height: 100vh;
        background: #FFF;
        display: block;
    }

    .header__sub-list {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 2em;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .header__sub-list.active {
        visibility: visible;
        opacity: 1;
    }

    .header__sub-item a {
        color: #313131;
        font-weight: 500;
        padding: .5em 0;
        display: block;
    }

    .header__sub-nested a {
        font-size: clamp(0.875em, 1vw, 1em);
        padding: .5em;
        display: block;
        color: #555;
        transition: .3s;
    }

    .header__sub-nested a:hover {
        padding: .5em .5em .5em .75em;
    }

    ul.menu {
        width: 35%;
    }
}