nav{
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 99;
    box-shadow: var(--shadow);
    transition: all .5s ease;
}
.nav-holder{
    width: 100%;
    display: flex;
    justify-content: center;
}
.nav-top-holder{
    background-color: var(--ac);
    height: 70px;
}
.nav-bottom-holder{
    background-color: var(--pr);
    height: 40px;
}

.nav-top,
.nav-bottom{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    padding: var(--site-padding);
}

.logo-holder{
    position: absolute;
    left: 1em;
    top: 1em;
    height: 130px;
    width: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--pr);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    z-index: 100;
    cursor: pointer;
    transition: .5s ease;
}

.logo-holder.active {
    transform: scale(0);
}
.logo-holder img{
    width: 90%;
    height: auto;
}



.nav-top-menu{
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    padding-right: 1em;
    transform: translateX(20px);
    position: relative;
    z-index: 99;
}
.mobile-corner{
    display: none;
    user-select: none;
}

.nav-yt{
    width: 40px;
    height: auto;
    cursor: pointer;
}

.burger{
    display: none;
    width: 40px;
    height: 32px;
    position: relative;
    cursor: pointer;
}
.burger .bar{
    width: 100%;
    height: 5px;
    background-color: var(--pr);
    transition: var(--transition);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.burger .bar:nth-of-type(1){
    top: 10%;
}
.burger .bar:nth-of-type(3){
    top: 90%;
}

.burger.active .bar:nth-of-type(1){
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.burger.active .bar:nth-of-type(2){
    display: none;
}
.burger.active .bar:nth-of-type(3){
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-phone{
    width: max-content;
    height: max-content;
    border: solid 2px var(--pr);
    display: flex;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}
.nav-phone svg{
    height: 40px;
    width: auto;
    padding: 5px;
}
.nav-phone a{
    color: var(--pr);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px;
    transition: var(--transition);
}
.nav-phone:hover{
    background-color: var(--pr);
}
.nav-phone:hover > svg path{
    fill: var(--ac) !important;
    transition: var(--transition);
}
.nav-phone:hover > a{
    color: var(--ac);
}



.nav-list{
    height: 100%;
    display: flex;
}
.list-item{
    height: 100%;
    width: max-content;
    position: relative;
}
.list-item.akt::before{
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(0 0, 50% 50%, 100% 0);
    background-color: var(--ac);
    width: 15px;
    height: 15px;
}
.list-item::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: black;
    transition: var(--transition);
}
.list-item a{
    height: 100%;
    padding: 0 15px;
    font-size: 1.1rem;
    color: var(--ac);
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.list-item:hover > a{
    color: black;
}
.list-item:hover::after{
    width: 100%;
}


@media(max-width: 1100px){
    .nav-top-holder{
        background-color: var(--pr);
        z-index: 99;
    }
    .logo-holder{
        top: 5px;
        width: 100px;
        height: 100px;
    }
    .mobile-corner{
        display: block !important;
        position: absolute;
        top: 0;
        right: 100%;
        height: 100%;
        z-index: 99;
        transform: translateX(1px);
    }
    .nav-top-menu{
        background-color: var(--ac);
    }
    .nav-phone{
        border: 0;
    }

    .burger{
        display: block !important;
    }

    .nav-bottom-holder{
        flex-direction: column;
        justify-content: flex-start;
        transform: translateX(420px);
        transition: all .5s ease;
        height: 100svh;
        width: 420px;
        position: absolute;
        top: 0;
        right: 0;
        box-shadow: var(--shadow);
        background-color: var(--ac);
        overflow-y: auto;
        padding-bottom: 16px;
    }
    .nav-bottom-holder.active{
        transform: translateX(0);
    }
    .nav-bottom{
        margin-top: 86px;
    }
    .nav-list{
        flex-direction: column;
        width: 100%;
    }
    .nav-list li{
        width: 100%;
    }
    .nav-list li a{
        width: 100%;
        padding: 15px 20px;
        display: flex;
        justify-content: flex-start;
        border-bottom: 1px solid var(--ac-d);
        color: var(--pr);
    }
    .nav-list li:first-of-type a{
        border-top: 1px solid var(--ac-d);
    }
    .nav-list li:hover{
        color: var(--pr);
    }
    .nav-list li:hover::after{
        width: 0;
    }
    .nav-list li:hover > a{
        padding-left: 25px;
        color: var(--pr);
    }
    .list-item.akt::before{
        left: 5px;
        top: 50%;
        transform: translateY(-50%) rotate(-90deg);
        background-color: var(--pr);
    }
}


@media(max-width: 600px){
    .nav-phone a{
        display: none;
    }
    .nav-phone svg,
    .nav-yt{
        height: 30px;
        width: auto;
    }
    .nav-phone:hover{
        background-color: var(--ac);
    }
    .nav-phone:hover svg path{
        fill: var(--pr) !important;
    }

    .nav-bottom-holder{
        transform: translateY(-102vh);
        width: 100%;
    }
    .nav-bottom-holder.active{
        transform: translateY(0);
    }
    .nav-bottom{
        margin-top: 121px;
    }
}