:root {
    --nav-height: 6rem;
}

header {
    height: var(--nav-height);
    display: flex;
    z-index: 999;
    width: 100vw;
    padding: var(--padding);
    background-color: white;
}

.logo {
    display: flex;
    flex-direction: column;
    width: 50%;
    position: relative;
    top: 50%;
    transform: translateY(-25%);
    white-space: nowrap;
}

.main-logo {
    font-family: 'Oswald', sans-serif;
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.75px;
}

.slogan-logo {
    color: #707070;
    font-weight: 500;
    font-style: italic;
}
.nav {
    display: flex;
    justify-content: space-between;
    width: 50%;
    position: relative;
    background-color: white;
}

.lang {
    position: absolute;
    display: block;
    top: 0.5rem;
    right: 0;
}

.lang-icon {
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    color: #707070;
}
.lang-icon_active {
    font-weight: 700;
    color: var(--primary)
}

.nav-item {
    display: inline-block;
    font-weight: 700;
}

.nav-link {
    display: block;
    line-height: var(--nav-height);
    color: #424242;
    letter-spacing: 0.7px;
    padding: 0 3px;
}

.nav-span:hover, .active {
    border-bottom: var(--primary) 4px solid;
}

.menu-icon {
    display: none;
}
@media only screen and (max-width: 850px) {

    :root {
        --nav-height: 3rem;
    }
    .header {
        position: fixed;
        height: var(--nav-height);
        width: 100%;
        background-color: #fcfcfc;
        display: grid;
        grid-template-rows: var(--nav-height) 100vh;
        grid-template-columns: 60px auto 60px;
        top: 0;
        padding: 0;
        transition: height 200ms;
    }

    .header-active {
        height: 100vh;
    }

    .nav {
        flex-direction: column;
        width: 100%;
        height: 100vh;
        padding: 6rem 60px 18rem;
        border-top: 1px solid rgb(230, 230, 230);
        grid-row: 2;
        grid-column: 1/4;
        display: none;
        transition: display 300ms;
    }

    .nav-active {
        display: flex;
    }

    .logo {
        grid-row: 1;
        grid-column: 2;
        width: 100%;
        margin: auto;
        top: 0;
        transform: none;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        width: 30px;
        height: 26px;
        margin: auto;
        justify-content: space-around;
        grid-row: 1;
        grid-column: 1;
        cursor: pointer;
    }

    .line {
        height: 4px;
        width: 30px;
        background-color: var(--primary);
        border-radius: 10px;
    }

    .lang {
        left: 60px;
        position: absolute;
        top: 60vh;
    }

    .lang-icon {
        font-size: 16px;
    }

    .main-logo {
        font-size: 16px;
    }

    .slogan-logo {
        display: none;
    }

    .menu-icon {
        display: block;
        width: var(--nav-height);
        height: var(--nav-height);
        position: relative;
        left: 0;
        top: 0;
    }

}