.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 16px 32px;
    background-color: white;
    box-sizing: border-box;
    border-bottom: 1px solid #EEE;
    z-index: 10;
}

.header--scrolled {
    background-color: white;
}

.header__image {
    width: 100px;
}

.menu-toggle {
    display: none;
    width: 32px;
    height: 24px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-gap: 6px;
    align-self: center;
    justify-self: end;
    z-index: 1;
}

.menu-toggle__line {
    position: relative;
    top: 0;
    opacity: 1;
    width: 100%;
    height: 100%;
    background-color: #4b00e1;
    transition: background-color 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.header--open .menu-toggle__line:nth-child(1) {
    top: 12px;
    transform: rotate(45deg);
}
.header--open .menu-toggle__line:nth-child(2) {
    top: 2px;
    transform: rotate(-45deg);
}
.header--open .menu-toggle__line:nth-child(3) {
    top: 8px;
    opacity: 0;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu__item {
    position: relative;
    margin: 0 24px;
    padding: 32px 0;
}

.menu__link {
    color: #aaaaaa;
    font-weight: 700;
    transition: color 0.2s ease-in-out;
}

.header--scrolled .menu__link {
    color: #1a3d73;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: -32px;
    padding-top: 20px;
    list-style: none;
    min-width: 200px;
    transition: background-color 0.2s ease-in-out;
}
.header--scrolled .submenu {
    background-color: white;
}
.menu__item:hover .submenu {
    display: block;
}

.submenu__item {
    margin: 16px 0;
}

.submenu__link {
    color: white;
    margin: 32px;
    box-sizing: border-box;
}
.header--scrolled .submenu__link {
    color: #1a3d73;
}

.login {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 16px;
}
.login__icon {
    width: 24px;
}
.login__paragraph {
    font-size: 12px;
    margin: 0 8px;
}

@media (max-width: 1200px) {

    .menu__item {
        position: relative;
        margin: 0 12px;
        padding: 32px 0;
    }

}

@media (max-width: 1000px) {

    .header {
        grid-template-columns: 1fr auto auto;
        gap: 16px;
    }

    .menu-toggle {
        display: grid;
    }
    
    .menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100% - 75px);
        z-index: -1;
        margin-top: 75px;
        overflow-y: scroll;
        box-sizing: border-box;
        background-color: #4b00e1;
    }
    .header--open .menu {
        display: block;
        opacity: 1;
    }

    .menu__item {
        margin: 0;
        padding: 0;
    }

    .menu__link {
        display: block;
        color: white;
        border-bottom: 1px solid #5c12ee;
        width: 100%;
        padding: 32px;
        box-sizing: border-box;
    }
    .menu__item:first-child .menu__link {
        border-top: 1px solid #1a3d73;
    }

    .submenu {
        padding-top: 0;
        left: 0;
        position: relative;
        background-color: #eee;
    }
    
    .submenu__item {
        margin: 0;
    }
    
    .submenu__link {
        display: block;
        width: 100%;
        color: #1a3d73;
        padding: 32px 48px;
        box-sizing: border-box;
        border-bottom: 1px solid #1a3d73;
    }
}

@media (max-width: 380px) {
    .login__paragraph {
        display: none;
    }
}