.nav{
    position: fixed;
    left: 0;
    width: 100%;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: stretch;
    transition: all .4s;
    opacity: 1;
    pointer-events: none;
    user-select: none;
    min-height: 100%;
    backdrop-filter: blur(em(20));
    transform: translateX(-100%);
    z-index: 15;
    overflow: auto;
    &::-webkit-scrollbar {
        width: em(6);
    }
    &::-webkit-scrollbar-track {
        // background: $main-tint-200;
    }

    &::-webkit-scrollbar-thumb {
        // background-color: $main-color;
        border-radius: em(0);
        border: 0;
    }
    &.nav-open{
        opacity: 1;
        transition: all .4s;
        pointer-events: unset;
        user-select: unset;
        transform: translateX(0);
        .nav__menu_block{
            transition: all .4s;
        }
    }
    &__mob_logo{
        position: relative;
        width: em(220);
        margin-left: auto;
        margin-right: auto;
        margin-top: em(36);
        z-index: 1;
        cursor: pointer;
        transition: filter .2s ease-in-out;
        img{
            width: 100%;
        }
        &:hover{
            filter: drop-shadow(em(0) em(0) em(10) rgba(250, 255, 0, 0.6));
        }
    }
    &__menu {
        position: relative;
        width: 68%;
        margin-left: auto;
        margin-right: auto;
        margin-top: em(30);
        height: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        background-color: $text-menu;
        border-radius: em(20);
        border: em(2) solid #FFC692;
        // overflow: auto;
       
        ul{
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            width: 100%;
            height: 100%;
            flex: 1 0 auto;
            list-style-type: none;
            margin-bottom: 0;
            font-family: "Ultra", serif;
            font-weight: 400;
            color: $text-bonus;
            li{
                position: relative;
                margin-left: 0;
                width: 100%;
                border-bottom: em(1) solid #dac1aa;
                // padding-left: em(20);
                cursor: pointer;
                &:last-child{
                    border-bottom: em(1) solid transparent;
                }
                &.show-item{
                    overflow: hidden;
                    flex: 0 0 auto;
                    padding-top: em(14);
                    padding-left: em(20);
                    &:has(a){
                        padding-left: em(0);
                        display: flex;
                        align-items: center;
                        justify-content: flex-start;
                        flex-wrap: wrap;
                        gap: em(0) em(12);
                        ul{
                            width: 100%;
                            padding-top: em(14);
                            li{
                                padding-left: 0;
                                a{
                                    padding-left: em(40);
                                    font-size: em(20,20);
                                }
                                span{
                                    padding-left: 0;
                                }
                            }
                        }
                        span{
                            padding-left: em(20);
                            font-size: em(20);
                        }
                        &:after{
                            content: '';
                            position: absolute;
                            top: em(24);
                            right: em(20);
                            width: em(28);
                            height: em(14);
                            background: url('../img/icons/arrow-bottom-header.svg') no-repeat;
                            filter: grayscale(1) brightness(0.5);
                            background-position: center;
                            background-size: contain;
                            transition: .2s ease-in-out;
                        }
                        &.active{
                            &:after{
                                transform: scaleY(-1);
                            }
                        }
                    }
                }
                a{
                    width: 100%;
                    padding-top: em(14);
                    padding-bottom: em(14);
                    padding-left: em(20);
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    gap: em(12);
                    font-size: em(20);
                }
                ul{
                    overflow: hidden;
                    height: 0;
                    @include transition(300ms, height);
                    li{
                        &:last-child{
                            border-bottom: 0;
                        }
                        a{
                            padding-left: em(60);
                            background: #e4ceba;
                            
                        }
                    }
                }
            }
        }
    }
    &__btns{
        position: relative;
        width: 80%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: em(12);
        margin: em(20) auto;
        font-size: 1.5rem;
        .button{
            font-size: 1.5rem;
            width: 50%;
            &--register{
                &:hover{
                    padding-left: em(0,16);
                    padding-right: em(0,16);
                }
            }
        }
    }
}

#burger{
    position: relative;
    width: em(70);
    height: em(70);
    transition: .25s ease-in-out;
    cursor: pointer;
    right: em(0);
    margin-top: em(0);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    z-index: 16;
    font-size: .4rem;
    span{
        display: block;
        width: 100%;
        height: em(10);
        background: $text-menu;
        border-radius: em(10);
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .2s ease-in-out;
        &.ultinate{
            width: 100%;
            transform: translateX(em(0));
        }
    }
    &.open{
        span{
            &:nth-child(1){
                transform:translateY(em(30)) rotate(45deg);
                // background: $main-color;
            }
            &.ultinate{
                opacity: 0;
                pointer-events: none;
                user-select: none;
                transform: translateX(100%);
                span{
                    &:first-child{
                        opacity: 0;
                        transform: none;
                    }
                   
                }
            }
            &:nth-child(3){
                transform:translateY(em(-30)) rotate(-45deg);
                // background: $main-color;
            }
        }
    }
}

@media(max-width:500px) and (orientation:portrait){
    .nav{
        &__btns{
            flex-direction: column;
            .button{
                width: 100%;
            }
        }
    }
}