header {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    transition: 0.7s;
    -webkit-transition: 0.5s;
}

.header_mobile {
    display: none;
}

.header_container.d_flex {
    width: var(--static-width);
    height: auto;
    margin: 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 0;
}

.logo img {
    height: 100px;
}

.header_voice {
    margin: 0 40px;
}

.header_voice a {
    font-size: 1.2rem;
    line-height: 1.2rem;
    font-weight: 400;
    cursor: pointer;
    color: #623412;
    text-decoration: none;
}

/* .header_voice a:hover {
    font-weight: 700;
} */

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

    .header_voice {
        margin: 0 30px;
    }

}

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

    .header_desktop {
        display: none;
    }

    .header_mobile {
        display: flex;
    }

    .header_container.d_flex {
        width: var(--calc-width);
        padding: 10px 0;
    }

    .header_left, .header_right {
        flex: 0 50%;
    }

    .header_right {
        display: flex;
        justify-content: flex-end;
    }

    .logo_mobile {
        width: 100px;
    }

    .logo_mobile img {
        width: 100%;
        object-fit: contain;
        transition: 0.3s;
        -webkit-transition: 0.3s;
    }

    .logo_mobile:hover img {
        transform: scale(1.1);
    }

    /*RULES FOR BURGER MENU*/

    .hamburger_container {
        width: 60px;
        height: 60px;
        background: #fff;
        border-radius: 50px;
        text-align: center;
        border: 1px solid #fff;
        z-index: 10;
    }
    
    .hamburger {
        padding: 15px 0;
        display: inline-block;
        cursor: pointer;
        transition-property: opacity, filter;
        transition-duration: 0.15s;
        transition-timing-function: linear;
        font: inherit;
        color: inherit;
        text-transform: none;
        background-color: transparent;
        border: 0;
        margin: 0;
        overflow: visible; 
    }

    .hamburger:hover {
        opacity: 0.7; 
    }

    .hamburger.is-active:hover {
        opacity: 0.7; 
    }

    .hamburger.is-active .hamburger-inner,
    .hamburger.is-active .hamburger-inner::before,
    .hamburger.is-active .hamburger-inner::after {
        background-color: #623412; 
    }
    
    .hamburger-box {
        width: 30px;
        height: 24px;
        display: inline-block;
        position: relative; 
    }
    
    .hamburger-inner {
        display: block;
        top: 50%;
        margin-top: -2px; 
    }

    .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
        width: 30px;
        height: 3px;
        background-color: #623412;
        border-radius: 4px;
        position: absolute;
        transition-property: transform;
        transition-duration: 0.15s;
        transition-timing-function: ease; 
    }

    .hamburger-inner::before, .hamburger-inner::after {
        content: "";
        display: block; 
    }

    .hamburger-inner::before {
        top: -8px; 
    }

    .hamburger-inner::after {
        bottom: -10px; 
    }

    .hamburger--collapse .hamburger-inner {
        top: auto;
        bottom: 0;
        transition-duration: 0.13s;
        transition-delay: 0.13s;
        transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); 
    }

    .hamburger--collapse .hamburger-inner::after {
        top: -16px;
        transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), opacity 0.1s linear; 
    }

    .hamburger--collapse .hamburger-inner::before {
        transition: top 0.12s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19); 
    }
    
    .hamburger--collapse.is-active .hamburger-inner {
        transform: translate3d(0, -10px, 0) rotate(-45deg);
        transition-delay: 0.22s;
        transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); 
    }

    .hamburger--collapse.is-active .hamburger-inner::after {
        top: 0;
        opacity: 0;
        transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), opacity 0.1s 0.22s linear; 
    }

    .hamburger--collapse.is-active .hamburger-inner::before {
        top: 0;
        transform: rotate(-90deg);
        transition: top 0.1s 0.16s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.13s 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
    }

    /*RULES FOR OVERLAY*/

    .overlay {
        position: fixed;
        top: 0;
        right: -200%;
        width: 50%;
        height: 100vh;
        background-color: #fff;
        z-index: 9;
        transition: 0.7s;
        -webkit-transition: 0.7s;
    }

    .overlay_active {
        right: 0;
    }

    .overlay_container.d_flex {
        width: var(--calc-width);
        height: 100%;
        margin: 0 auto;
        text-align: right;
        align-items: center;
        justify-content: flex-end;
    }

    .overlay_container.d_flex ul {
        padding-left: 0;
        margin: 0;
    }

    .overlay_container.d_flex ul li {
        list-style-type: none;
        padding-bottom: 50px;
    }

    .overlay_container.d_flex ul li a {
        text-decoration: none;
        font-size: 2rem;
        line-height: 2rem;
        color:#623412;
        transition: 0.3s;
        -webkit-transition: 0.3s;
    }

    .overlay_container.d_flex ul li a:hover {
        opacity: 0.7;
    }

}

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

    .overlay_container.d_flex ul li {
        padding-bottom: 40px;
    }
    
    .overlay_container.d_flex ul li a {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }

}

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

    .logo_mobile {
        width: 70px;
    }

    /*RULES FOR BURGER MENU*/

    .hamburger_container {
        width: 50px;
        height: 50px;
    }

    .hamburger {
        padding: 11px 0;
    }

    /*RULES FOR OVERLAY*/

    .overlay {
        width: 60%;
    }

    .overlay_container.d_flex {
        width: var(--full-width);
    }

    .overlay_container.d_flex ul {
        padding-right: 25px;
    }

    .overlay_container.d_flex ul li {
        padding-bottom: 35px;
    }

    .overlay_container.d_flex ul li a {
        font-size: 1.2rem;
        line-height: 1.2rem;
    }

}

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

    .overlay_container.d_flex ul li a {
        font-size: 1.1rem;
        line-height: 1.1rem;
    }

}