header {
    width: var(--full-width);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    background-color: var(--white);
}

.header.container.flex.desktop {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15%;
    padding: 15px 0;
    border-top: 1px solid var(--light-grey);
    border-bottom: 1px solid var(--light-grey);
    position: relative;
}

.header_logo {
    width: var(--static-width);
    margin: 0 auto;
    padding: 30px 0;
    text-align: center;
}

.header_logo a img {
    height: 65px;
    transition: 0.6s;
    -webkit-transition: 0.6s;
}

.header_logo a:hover img {
    opacity: 0.4;
}

.header_logo.header_min img {
    height: 30px;
}

.header_voice a {
    text-decoration: none;
    color: var(--grey);
    transition: 0.3s;
    -webkit-transition: 0.3s;
    position: relative;
    display: inline-block;
    padding: 0 0 3px 0;
}

.header_voice a:after {
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 1px;
    left: 50%;
    position: absolute;
    background: var(--black);
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}

.header_voice a:hover:after {
    width: var(--full-width);
    left: 0;
}

.header_voice a:hover {
    color: var(--black);
}

.overlay_header, .burger_menu {
    display: none;
}

.language_cont {
    position: absolute;
    right: 0;
}

.language_cont ul {
    padding: 0;
    margin: 0;
}

.language_cont ul li {
    list-style-type: none;
    display: inline-block;
    font-family: 'Marcellus', serif;
    cursor: pointer;
    color: var(--grey);
    opacity: 0.4;
    margin-right: 10px;
}

.language_cont ul li:last-child {
    margin-right: 0;
}

.language_cont ul li.active {
    opacity: 1;
}

@media screen and (max-width: 1024px) {

    header {
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header_logo {
        width: 450px;
        height: 38px;
        margin: 0 auto;
        padding: 0;
        position: relative;
        z-index: 9999;
    }

    .header_logo a img {
        height: 100%;
        width: var(--full-width);
        object-fit: contain;
        transition: 0.6s;
        -webkit-transition: 0.6s;
    }

    .header_logo a img.active {
        opacity: 0;
    }

    .header.container.flex.desktop {
        display: none;
    }

    .overlay_header, .burger_menu {
        display: flex;
    }

    .burger_menu {
        width: 40px;
        height: 40px;
        position: absolute;
        left: 50px;
        top: calc((80px / 2) - 20px);
        z-index: 99999;
        cursor: pointer;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .burger_menu span {
        width: 30px;
        height: 2px;
        border-radius: 15px;
        background-color: var(--black);
        position: relative;
        transition: 0.6s;
        -webkit-transition: 0.6s;
    }

    .burger_menu span:nth-of-type(2) {
        width: 20px;
        left: 0;
        margin: 5px 10px 5px 0;
        transition: 0.6s;
        -webkit-transition: 0.6s;
    }

    .burger_menu:hover span {
        background-color: var(--light-grey);
    }

    .burger_menu span:first-of-type.active {
        transform: rotate(-134deg) translate(-2px, -2px);
        -webkit-transform: rotate(-134deg) translate(-2px, -2px);
    }

    .burger_menu span:nth-of-type(2).active {
        left: -10px;
        opacity: 0;
    }

    .burger_menu span:last-of-type.active {
        transform: rotate(-230deg) translate(-8px, 8px);
        -webkit-transform: rotate(-230deg) translate(-8px, 8px);
    }

    .overlay_header {
        width: 600px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -600px;
        z-index: 999;
        background-color: var(--white);
        transition: 0.6s;
        -webkit-transition: 0.6s;
    }

    .overlay_header.active {
        left: 0;
    }

    .overlay_header_container.flex { 
        width: var(--calc-width);
        height: 100%;
        margin: 0 auto;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .overlay_header_menu ul {
        padding-left: 0;
    }

    .overlay_header_menu ul li {
        list-style-type: none;
        padding-bottom: 30px;
    }

    .overlay_header_menu ul li:last-of-type {
        padding-bottom: 0;
    }

    .overlay_header_menu ul li a {
        font-size: clamp(2rem, 4vw, 4rem);
        text-decoration: none;
        font-family: 'Marcellus', serif;
        color: var(--grey);
        font-weight: 300;
        transition: 0.3s;
        -webkit-transition: 0.3s;
    }

    .overlay_header_menu ul li a:hover {
        opacity: 0.6;
    }

    .overlay_dark {
        width: var(--full-width);
        height: 100vh;
        transition: 0.6s;
        -webkit-transition: 0.6s;
        background-color: var(--black);
        opacity: 0.8;
        right: -100%;
        top: 0;
        position: fixed;
        z-index: 99;
    }

    .overlay_dark.active {
        right: 0;
    }

    .language_cont {
        position: relative;
        left: 0;
        top: 60px;
    }

    .language_cont ul li {
        font-size: clamp(1.3rem, 2.5vw, 2rem);
        padding-bottom: 0 !important;
    }

}

@media screen and (max-width: 768px) {

    .burger_menu {
        left: 25px;
    }

}

@media screen and (max-width: 600px) {

    .header_logo {
        width: 300px;
    }

    .burger_menu {
        left: 15px;
    }

    .overlay_header {
        width: var(--full-width);
        left: -100%;
    }

}

@media screen and (max-width: 428px) {

    header {
        height: 50px;
    }

    .header_logo {
        width: 200px;
        height: 20px;
    }

    .burger_menu {
        top: calc((50px / 2) - 20px);
    }

}