header {
    align-items: center;
    background-color: var(--header-background-color);
    box-sizing: border-box;
    display: flex;
    height: var(--header-height-size);
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- START LOGO */

header .logo {
    color: var(--main-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: var(--font-size-normal);
}

header .logo img {
    display: block;
    height: 46px;
    margin: 0 auto;
    width: 46px;
}

/* --- END LOGO */

/* --- START NAV */

.menu-burger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-burger > div {
    background: var(--main-color);
    border-radius: 50px;
    height: 6px;
    pointer-events: none;
    width: 49px;
    transition: transform 0.5s;
}

.menu-burger.menu-burger_opened {
    gap: 0;
}

.menu-burger.menu-burger_opened > div:nth-child(1) {
    transform: rotate(45deg);
}

.menu-burger.menu-burger_opened > div:nth-child(2) {
    display: none;
}

.menu-burger.menu-burger_opened > div:nth-child(3) {
    margin-top: -6px;
    transform: rotate(-45deg);
}

nav {
    display: none;
    background-color: var(--header-background-color);
    border-top: 1px solid var(--header-separator-color);
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
}

.menu-burger.menu-burger_opened + nav {
    display: block;
}

nav ol {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 40px 20px;
}

nav ol li a {
    color: var(--main-color);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: var(--text-bold);
}

nav ol li a:hover {
    text-decoration: underline;
}

nav ol li:last-child a + a {
    display: none;
}

@media only screen and (min-width: 1024px) {
    header {
        height: var(--header-height-desktop-size);
        justify-content: space-between;
        padding: 0 20px;
    }

    .menu-burger {
        display: none;
    }

    nav {
        border: none;
        display: block;
        position: relative;
        top: 0;
        width: auto;
    }

    nav ol {
        flex-direction: row;
        gap: 20px;
        padding: 0;
    }

    nav ol li:last-child a:first-child {
        display: none;
    }

    nav ol li:last-child a + a {
        display: inline;
    }
}

@media only screen and (min-width: 1224px) {
    header {
        padding: 0 50px;
    }
}

/* --- END NAV */
