.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 100;
    padding: 30px 0;
    transition: .3s ease-in-out;
}

@media (min-width: 993px) {
    .header {
        background: transparent;
    }
}

.header .inner {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.header .left a {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header .header_title {
    color: var(--white);
    max-width: 235px;
    font-size: var(--size-menu);
    line-height: var(--line-height-normal);
    font-weight: var(--font-bold);
    display: inline-block;
}

.header_title .logo-full {
    display: block;
    max-width: 100%;
    height: auto;
}

.header_title .site-title-text {
    display: none;
}

.header .left img.logo-small {
    display: none;
    width: 100%;
    height: auto;
    max-width: 42.5px;
    max-height: 90px;
}


.header .header_title .logo-white {
    display: block;
}
.header .header_title .logo-black {
    display: none;
}

.header.black .header_title .logo-white {
    display: none;
}
.header.black .header_title .logo-black {
    display: block;
}

.header.hide_logo_text .left img.logo-small.logo-white {
    display: block;
}
.header.hide_logo_text .left img.logo-small.logo-black {
    display: none;
}
.header.hide_logo_text.black .left img.logo-small.logo-white {
    display: none;
}
.header.hide_logo_text.black .left img.logo-small.logo-black {
    display: block;
}

.header.hide_logo_text .header_title .logo-full {
    display: none;
}
.header.hide_logo_text .header_title .site-title-text {
    display: none;
}

/* .header.smaller .left svg {
    max-width: 50px;
    max-height: 60px;
    transform: translateX(-3px);
} */

/* .header.smaller .left svg path {
    fill: var(--black);
}

.header.smaller {
    padding: 5px 0;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid var(--black);
}

.header.smaller a,
.header.smaller .header_title {
    color: var(--black) !important;
    font-size: var(--size-menu);
} */

.header .right ul {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
}
.header .right .right ul {
    right: 0;
    text-align: right;
    left: auto;
    align-items: end;
}

.header .right ul li {
    position: relative;
    width: fit-content;
}
.header .right ul li a {
    position: relative;
    width: fit-content;
}
.header .right ul li a::after {
    content: "";
    background: var(--white);
    width: 0;
    height: 2px;
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
    transition: .3s all ease-in-out;
}
.header .right ul li a:hover::after {
    width: 100%;
    transition: .3s all ease-in-out;
}
.header.black .right ul li a:hover::after {
    background: var(--black);
}

.header .right a {
    color: var(--white);
    font-size: var(--size-menu);
    line-height: var(--line-height-normal);
    font-weight: var(--font-bold);
    text-decoration: none;
}

.header.smaller .right a {
    font-weight: 400;
}

.header.black .header_title,
.header.black .right a,
.header.black .left svg path {
    color: var(--black);
    fill: var(--black);
}

.header .right {
    width: fit-content;
}



@media (min-width: 1251px)  and (max-width: 1500px) {
.header .right ul {
    gap: 15px;
}
}

@media (min-width: 1500px) {
.header .right {
    padding-left: 30px;
}
.header .right ul li {
    flex: 0 0 auto;
    padding-left: 0;
}
}
.header .right ul li.right {
    flex: 0 0 auto;
    width: fit-content;
}
@media (min-width: 1251px) {
.header .left {
    width: 100%;
    flex: 1;
}
.header .right {
    width: 100%;
    max-width: 50vw;
    flex: 1;

}

.menu-item-has-children {
    position: relative;
}
.menu-item-has-children .sub-menu {
    position: absolute;
    top: calc(100%);
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 100;
}

.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-top: 7px;
    gap: 5px;
}

.menu-item-has-children .sub-menu li {
    margin-top: 0 !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .3s ease;
}

.menu-item-has-children:hover .sub-menu li {
    opacity: 1;
    transform: translateY(0);
}
.menu-item-has-children:hover .sub-menu li:nth-child(1) {
    transition-delay: 0s;
}
.menu-item-has-children:hover .sub-menu li:nth-child(2) {
    transition-delay: .08s;
}
.menu-item-has-children:hover .sub-menu li:nth-child(3) {
    transition-delay: .16s;
}
.menu-item-has-children:hover .sub-menu li:nth-child(4) {
    transition-delay: .24s;
}
.menu-item-has-children:hover .sub-menu li:nth-child(5) {
    transition-delay: .32s;
}
.sub-menu li a {
    display: block;
    width: 100%;
    white-space: nowrap;
    transition: background .2s ease;
}
header .header {
    transition: .1s ease-in-out;
}
header.show .header {
    height: 100%;
}
header:has(.sub-menu.show) .header {
    height: 100%;
}
}

@media (min-width: 1251px) and (max-width: 1400px) {
.header .left {
    width: auto;
    flex: 0 0 auto;
}
.header .right {
    width: 100%;
    max-width: 48vw;
    flex: 0 0 auto;
}
}

.header.smaller #burger .line {
    background: var(--black);
}

.header .header_title,
.header .right a,
#burger .line {
    color: var(--white);
}
#burger .line {
    background: var(--white);
}
.header.black #burger .line {
    background: var(--black);
}
.header.over-hero {
    mix-blend-mode: normal;
}

#burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    display: none;
}
#burger .line {
    content: "";
    background: var(--white);
    width: 30px;
    height: 2px;
}

@media (max-width: 1250px) {
#burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}
#burger .line {
    background: var(--white);
    width: 30px;
    height: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
    position: absolute;
    left: 0;
}
#burger .line:nth-child(1) {
    top: 0;
}
#burger .line:nth-child(2) {
    top: 9px;
}
#burger .line:nth-child(3) {
    top: 18px;
}
#burger.active .line:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
    background: var(--black);
}
#burger.active .line:nth-child(2) {
    opacity: 0;
}
#burger.active .line:nth-child(3) {
    top: 9px;
    transform: rotate(-224deg);
    background: var(--black);
}
.header {
    padding: 10px 0;
}
.header .left a {
    gap: 0;
}
.header .right a {
    font-size: var(--size-medium);
}
.header .right ul.main_menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: var(--green-light);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    padding: 60px 30px;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 15;
}
.header .right ul.main_menu.active {
    transform: translateX(0);
}
.header .right ul.main_menu.active a {
    color: var(--black);
}

.header .right ul .sub-menu {
    display: block;
    background-color: transparent;
    padding: 15px 10px;
    position: relative;
    list-style: disclosure-closed;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: start;
    width: 100%;
    margin-left: 15px;
}
.header .right ul .sub-menu li {
    color: var(--black);
}
}