.menu{
    width: 330px;
    position: relative;
}

.nav__list li:not(:last-child) {
	margin-bottom: 7px;
}
.open-menu{
    display: none;
}

.open-menu, .close-menu{
    border: 1px solid #616161;
    border-bottom-color: #ffe600;
    border-right-color: #ffe601;
    border-radius: 5px;
    background: linear-gradient(#0111fd, #000000 50%, #0111fd);
    box-shadow: 1px 1px #ffff0091;
    padding: 5px 20px;
    color: #ffffff;
    font-family: Arial;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    box-shadow: 8px 8px 15px var(--color);
    margin-bottom: 10px;
}
.open-menu:hover, .close-menu:hover {
    background: linear-gradient(#01e946, #000000 50%, #01e946);
}

.open-menu:active, .close-menu:active {
    background: linear-gradient(#00c03a, #000000 50%, #00c03a);
    transform: translate(1px, 2px);
    transition: transform 50ms ease-in-out;
}

.close-menu{
    display: block;
    margin: 0 auto;
}

.menu__modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.726);
    display: grid;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .4s, visibility .4s;
}

.menu-box{
    width: 344px;
    height: 488px;
    padding: 20px;
    background-color: rgb(0, 33, 65);
    margin-top: 110px;
    transform: scale(0);
    transition: transform .4s;
}

.menu__modal.open {
visibility: visible;
opacity: 1;
}

.menu__modal.open .menu-box {
    transform: scale(1);
}
