header {
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    width: 100vw;
    background-color: var(--white);
}

.header--sticky {
    position: sticky;
}

.header--fixed {
    position: fixed;
}

.header--container {
    position: relative;
}

.header--fixed ~ main,
.header--sticky ~ main {
    padding-top: var(--header-height);
}

.header--logo {
    display: block;
    width: auto;
    height: auto;
}

.header--logo-link:not(:has(picture)) img {
    width: var(--width-mobile);
    height: var(--height-mobile);
}

.header--logo-link {
    min-width: var(--width-mobile);
    min-height: var(--height-mobile);
}

.header--logo:focus-visible {
    outline: -webkit-focus-ring-color auto 0px;
}

body:not(:has(.header--modal.is-open)) header[data-visible="false"] .header--line:nth-child(2) {
    transform: translateY(-100%);
}

.header--nav {
    display: flex;
    align-items: center;
}

.header--nav.header--modal:not(.header--modal__desktop-only) {
    flex-direction: column;
}

.header--nav-links {
    display: flex;
}

.header--modal:not(.header--modal__desktop-only) .header--nav-links {
    flex-direction: column;

    width: 100%;
    padding: 0;
}

header .header--accordion-title {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 0;
}

.header--nav:not(.header--modal):not(.header--modal__mobile-only) .header--accordion-content {
    position: absolute;
}

.header--burger {
    pointer-events: visible;
    cursor: pointer;
}

.header--burger path {
    stroke: var(--white);
    transform-origin: center center;
    transition: transform var(--transition-time);
}

/* MODALS */

.header--modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;

    width: 100vw;
    height: 100vh;
    transform: translateY(calc(-100%));

    overflow: auto;
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow);

    transition: transform var(--transition-time);
}

.header--modal.is-open {
    transform: translateY(0);
}

.header--nav:not(.header--modal),
.header--modal__desktop-only {
    position: static;

    height: auto;
    width: auto;

    transform: none;
    opacity: 1;

    overflow: auto;
}

.header--nav-links {
    list-style: none;
}

header .header--accordion-title:after {
    position: static;
    background-image: var(--dropdown-arrow-background--text);
}

@media screen and (min-width: 64rem) /* 1024px */ {

    /* STICKY ON SCROLL HEADER */
    header[data-visible="sticky"] .header--container,
    header[data-visible="true"] .header--container,
    header[data-visible="false"] .header--container {
        left: 0;
        right: 0;
        transition: top var(--transition-time, 0.2s);
    }

    header[data-visible="sticky"] .header--container,
    header[data-visible="true"] .header--container {
        top: 0;
    }

    .header--logo-link,
    .header--search-lang {
        pointer-events: all;
    }

    /* HEADER MODALS */
    .header--nav:not(.header--modal),
    .header--nav.header--modal:not(.header--modal__desktop-only) {
        display: flex;
        flex-direction: row;
    }

    .header--nav.header--modal:not(.header--modal__mobile-only) {
        flex-direction: column;
    }

    .header--nav.header--modal.header--modal__mobile-only .header--nav-links {
        flex-direction: row;
    }

    .header--nav.header--modal.header--modal__desktop-only .header--nav-links {
        flex-direction: column;
    }

    .header--nav:not(.header--modal) .header--accordion-content,
    .header--nav.header--modal.header--modal__mobile-only .header--accordion-content {
        position: absolute;
    }

    .header--modal__mobile-only {
        position: static;

        height: auto;
        width: auto;

        transform: none;
        opacity: 1;
    }

    .header--modal__desktop-only {
        position: fixed;

        height: calc(100vh - var(--header-height));
        width: 100vw;

        transform: translateX(100%);
    }

    .header--modal__desktop-only .header--nav-links {
        flex-direction: column;
    }

}