.header {
    position: fixed;
    top: 30px; left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .3s;
    z-index: 98;
}

.nav {
    width: 100%;
    padding: 0 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .3s;
}

.menu {
    color: #fff;
    padding: 20px 30px;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .2);
    background-color: rgba(0, 0, 0, .3);
    white-space: nowrap;
    transition: all .2s;
    z-index: 1;
}
.menu:hover {
    border: 1px solid var(--main-color);
    background-color: var(--main-color);
}
.menu:nth-child(1) {
    border-radius: 7px 0 0 7px;
}
.menu:nth-child(3) {
    border-radius: 0 7px 7px 0;
}

.logo {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, .5);
    border-radius: 24px;
    box-shadow: 0 6px 25px rgba(45,52,61,.2);
    transition: all .1s;
    margin: 0 -3px;
    z-index: 2;
}

.logo img {
    height: 70% !important;
}

.logo:hover {
    transform: scale(1.1);
    background-color: #fff;
}


/*=========================================================*/
@media (max-width: 768px) {
    .header {
        top: unset;
        bottom: 0;
        width: 102%;
    }

    .nav {
        padding: 0;
    }
    
    .menu {
        width: 100%;
        height: 70px;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        border-radius: 0 !important;
        transition: none;
    }
    .menu:hover {
        border: none;
        background-color: inherit;
    }
    .menu:nth-child(1) {
        background-color: #111;
    }
    .menu:nth-child(3) {
        background-color: var(--main-color);
    }
    
    .logo {
        width: 80px;
        min-width: 80px;
        height: 70px;
        min-height: 70px;
        border-radius: 0;
        background-color: #fff;
    }
}


@media (max-width: 550px) {
    .menu {
        height: 60px;
        font-size: 16px;
    }

    .logo {
        width: 66px;
        min-width: 66px;
        height: 60px;
        min-height: 60px;
    }
}


@media (max-width: 450px) {
    .menu {
        height: 50px;
        font-size: 14px;
    }

    .logo {
        width: 60px;
        min-width: 60px;
        height: 50px;
        min-height: 50px;
    }
}


@media (max-width: 350px) {
    .menu {
        font-size: 12px;
    }
}