header nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}

header nav ul li a { 
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
    height: 46px;
    line-height: 44px;
    display: block;
    box-sizing: border-box;
}

header nav ul li a:hover,
header nav ul li.current-menu-item a {
    font-weight: 700;
}

header nav ul li.contact a { 
    color: white;
    background: var(--darkblue);
    padding: 0 35px;
    border-radius: 100px;
    border: 2px solid var(--darkblue);
    font-weight: 700;
}

header nav ul li.contact a:hover {
    background: white;
    color: var(--darkblue);
}

@media (max-width: 1200px) {
    header nav ul {
        gap: 20px;
    }
}

/* @media (max-width: 768px) { */
/* @media (max-width: 1160px) { */

@media (max-width: 1400px) {

    body.menu-active {
        height: 100%;
        overflow: hidden;
    }

    body.menu-active header .logo {
        background: transparent;
        position: fixed;
        top: 25px;
        left: 20px;
        z-index: 909;
        height: 26px;
    }

    body.menu-active header .logo a { 
        height: 26px;
        filter: brightness(200);
    }

    header nav.primary-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--gradient3);
        z-index: 808;
        justify-content: center;
    }

    body.menu-active header nav.primary-nav {
        display: flex;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        padding: 0 25px;
        box-sizing: border-box;
        width: 100%;
        display: block;
    }

    header nav ul li a,
    header nav ul li.contact a,
    header nav ul li a:hover,
    header nav ul li.contact a:hover {
        color: white;
        padding: 0;
        font-weight: 400;
        border: 0;
        background: transparent;
        font-size: 20px;
        text-align: left;
        line-height: 140%;
        height: auto;
    }

    .menu-toggle,
    .modal-close {
        cursor: pointer;
        display: block;
        width: 50px;
        height: 50px;
        background: transparent !important;
        position: absolute;
        z-index: 909;
        top: 0px;
        right: 0px;
    }
    
    .modal-close {
        right: 10px !important;
    }

    .menu-toggle span,
    .modal-close span {
        background: var(--darkblue);
        width: 38px;
        height: 2px;
        position: absolute;
        top: 12px;
        left: 6px;
    }
    
    .menu-toggle span:nth-child(2) {
        top: 23px;
    }
    
    .menu-toggle span:nth-child(3) {
        top: 34px;
    }

    body.menu-active .menu-toggle {
        top: -25px;
        right: 0px;
    }
    
    body.menu-active .menu-toggle span:nth-child(1),
    body.menu-active .modal-close span:nth-child(1) {
        transform: rotate(45deg);
        top: 22px;
        background: white;
    }
    
    body.menu-active .menu-toggle span:nth-child(2),
    body.menu-active .modal-close span:nth-child(2) {
        display: none;
    }
    
    body.menu-active .menu-toggle span:nth-child(3),
    body.menu-active .modal-close span:nth-child(3) {
        transform: rotate(-45deg);
        top: 22px;
        background: white;
    }
}