.headerblock {
    position: sticky;
    top: -0.5px;
    margin-top: -22px;
    z-index: 100;
}

.header .header__container {
    padding-top: 22px;
    padding-bottom: 16px;
}

.header {
    z-index: 10000000;
    transition: all 0.5s ease;
}

.overflow {
    overflow: hidden;
}

.header {
    position: absolute;
    top: 0; /* Изначально хедер виден */
    left: 0;
    width: 100%;
    transition: top 0.3s ease;
}

.header.show {
    top: 0; /* Хедер виден */
}

.header.hide {
    top: -100px; /* Хедер скрыт */
}

.header__mobile-wrapper {
    display: none;
    transform: translateY(-150%) translateX(-50%);
    transition: all 0.5s ease;
    z-index: -1;
}

.header__mobile-wrapper.opened {
    transform: translateY(0) translateX(-50%);
}

.header__logo-link {
    position: relative;
    z-index: 100;
    display: flex;
    flex-shrink: 0;
}

.header__logo {
    width: calc(233px + (181 - 136)*((100vw - 1024px) / (1920 - 1024)));
    height: calc(34px + (26 - 20)*((100vw - 1024px) / (1920 - 1024)));
    object-fit: contain;
}

.header__content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 86px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.header__navigation ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: calc(20px + (40 - 20)*((100vw - 1024px) / (1920 - 1024)));
}

.header__navigation ul li a {
    font-weight: 500;
    font-size: calc(16px + (20 - 16)*((100vw - 1024px) / (1920 - 1024)));
    line-height: 140%;
    text-align: center;
    color: #fff;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    display: inline;
}

.header__menu-button {
    display: none;
}

.mobile-logo {
    display: none;
}

/* submenu */
/* Submenu */

.header__desktop-navigation .menu-item:has(.sub-menu) {
    position: relative;
}

.header__desktop-navigation .menu-item:has(.sub-menu)::after {
    content: ""; /* Ensure the ::after element is displayed */
    display: inline-block;
    width: 12px;
    height: 8px;
    background-image: url('data:image/svg+xml,%3Csvg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M1 1.5L6 6.5L11 1.5" stroke="white" stroke-width="2" stroke-linecap="round" /%3E%3C/svg%3E');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 11px; /* Optional: Adjust spacing */
    position: relative;
    top: -10%;
    transition: all 0.3s ease;
}

.header__desktop-navigation .menu-item:has(.sub-menu):hover .sub-menu{
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.header__desktop-navigation .menu-item:has(.sub-menu):hover > a {
    padding-bottom: 30px;
}

.header__desktop-navigation .sub-menu {
    transition: all 0.3s ease;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    position: absolute;
    top: 40px;
    left: -37px;
    border-radius: 18px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.09);
    background: #FFF;
    padding: calc(17px + (27 - 17)*((100vw - 1024px) / (1920 - 1024))) calc(18px + (28 - 18)*((100vw - 1024px) / (1920 - 1024))) calc(28px + (38 - 28)*((100vw - 1024px) / (1920 - 1024))) calc(18px + (28 - 18)*((100vw - 1024px) / (1920 - 1024)));
    margin: 0;
    min-width: 277px;
}



.header__desktop-navigation .sub-menu * {
    font-size: 18px;
    line-height: 160%;
    color: #2d3039;
    text-transform: none;
}

.header__desktop-navigation .sub-menu .menu-item:not(:last-child) {
    margin-bottom: calc(14px + (24 - 14)*((100vw - 1024px) / (1920 - 1024)));
}

.header__desktop-navigation .sub-menu .menu-item a{
    transition: all 0.3s ease;
}

.header__desktop-navigation .sub-menu .menu-item:hover {
    color: #489EB7;
}

body .menu-image-title-after.menu-image-title,
body .menu-image-title-after.menu-image-not-hovered img,
body .menu-image-hovered.menu-image-title-after .menu-image-hover-wrapper,
body .menu-image-title-before.menu-image-title {
    padding-left: 0;
    padding-right: 0;
}

.menu-item,
.header__logo-link {
    z-index: 10001;
    cursor: pointer;
}

.menu-item {
    transition: all 0.3s ease;
}

body .menu-image-hover-wrapper img.hovered-image,
body .menu-item:hover .menu-image-hover-wrapper img.menu-image {
    transition: all 0.3s ease;
}

.menu-image-title {
    font-weight: 600;
    font-size: 15px;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.menu-image-title {
    position: relative;
}


.menu-image-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 1px;
    border-radius: 100px;
    background-color: #FFF;
    transition: all 0.3s ease;
}

.current_page_item .menu-image-title::after,
.menu-item:hover .menu-image-title::after {
    width: 100%;
    left: 0;
}

.nav-item-bg .menu-image-title::after {
    content: none;
    display: none;
}

.nav-item-bg {
    background: #25262A;
    padding: 11px;
    min-width: 138px;
    display: flex;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.header__navigation ul li.menu-item:hover {
    opacity: 1;
}

.menu-bar {
    width: 22px;
    height: 2px;
    border-radius: 5px;
    background-color: white;
    transition: all 0.5s ease;
    transform-origin: center;
    animation-duration: .8s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

.menu-bar:not(:last-child) {
    margin-bottom: 5px;
}

.opened .menu-bar:not(:last-child) {
    margin-bottom: 5.2px;
}


.opened .menu-bar:first-child,
.opened .menu-bar:last-child {
    width: 24px;
}

.opened .menu-bar,
.header-scrolling .menu-bar{
    background: #111111;
}

@keyframes topBarOpen {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(7.25px);
    }
    100% {
        transform: translateY(7.25px) rotate(45deg);
    }
}

@keyframes bottomBarOpen {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7.25px);
    }
    100% {
        transform: translateY(-7.25px) rotate(-45deg);
    }
}

@keyframes middleBarOpen {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.5);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes topBarClose {
    0% {
        transform: translateY(7.25px) rotate(45deg);
    }
    50% {
        transform: translateY(7.25px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes bottomBarClose {
    0% {
        transform: translateY(-7.25px) rotate(-45deg);
    }
    50% {
        transform: translateY(-7.25px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes middleBarClose {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(0.5);
    }
    100% {
        transform: scale(1);
    }
}

.opened .menu-bar:first-child {
    animation-name: topBarOpen;
}

.opened .menu-bar:last-child {
    animation-name: bottomBarOpen;
}

.opened .menu-bar:nth-child(2) {
    animation-name: middleBarOpen;
}

.menu-bar:first-child {
    animation-name: topBarClose;
}

.menu-bar:last-child {
    animation-name: bottomBarClose;
}

.menu-bar:nth-child(2) {
    animation-name: middleBarClose;
}

.header__logo.header-logo-mobile,
.header__logo.header-logo-mobile.black-logo-mobile{
    display: none;
}

.header__logo.header-logo-mobile.black-logo-mobile {
    position: absolute;
    top: 0;
    left: 0;
}

.header__menu-btn-wrapper {
    display: flex;
    align-items: center;
    gap: calc(15px + (22 - 15)*((100vw - 1024px) /(1920 - 1024)));
}

.header__btn {
    padding: calc(9.5px + (11 - 9.5)*((100vw - 390px) /(1920 - 390))) 15px;
}

.header-scrolling.header {
    background: #FFF;
    box-shadow: 0 6px 15px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease
}

.header-scrolling.header .header__navigation ul li a{
    color: #000;
}

.header-scrolling.header .header__desktop-navigation .menu-item:has(.sub-menu)::after {
    background-image: url('data:image/svg+xml,%3Csvg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M1 1.5L6 6.5L11 1.5" stroke="black" stroke-width="2" stroke-linecap="round" /%3E%3C/svg%3E');
}

.header-scrolling .header__logo {
    opacity: 0;
}

.header__logo.header-logo-black {
    opacity: 0;
    position: absolute;
}

.header-scrolling .header__logo.header-logo-black {
    opacity: 1;
    top: 0;
    left: 0;
}

.header-scrolling .header__email {
	color: #000000;
}

@media screen and (min-width: 1920px) {
    .header__btn {
        padding: 11px 15px;
    }

    .header__menu-btn-wrapper {
        gap: 22px;
    }

    .header__logo {
        width: 181px;
        height: 26px;
    }

    .header__navigation ul {
        list-style: none;
        padding: 0;
        display: flex;
        gap: 40px;
    }

    .header__navigation ul li a {
        font-size: 20px;
    }

    .header__desktop-navigation .sub-menu {
        padding: 27px 28px 38px 28px;
    }

    .header__desktop-navigation .sub-menu .menu-item:not(:last-child) {
        margin-bottom: 24px;
    }
}

@media screen and (max-width: 1199.98px) {
    .header__content-wrapper {
        gap: 40px;
    }
}

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

    .header__navigation ul li.current_page_item a {
        font-weight: 700;
    }

    .header__navigation ul {
        align-items: flex-start;
    }

    .header__navigation ul li {
        text-align: start;
    }

    .header {
        background: none;
        backdrop-filter: none;
    }

    .header .header__container {
        padding-top: 30px;
        padding-bottom: 10px;
    }

    .header__menu-btn-wrapper {
        display: none;
        gap: 0;
    }

    .header__navigation ul li a {
        font-size: 20px;
        color: #000;
    }

    .header__content-wrapper {
        width: 100%;
    }

    .desktop-btn {
        background: none;
        padding: 0;
        border-color: transparent;
    }

    #wpadminbar {
        display: none;
    }

    .header__mobile-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 50%;
        height: 100svh;
        background: #FFF;
        padding: 78px 0 0 0;
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        gap: 20px;
    }

    .header__mobile-body-wrapper {
        padding-top: 67px;
        overflow: auto;
        max-height: 100svh;
        padding-bottom: 30px;
    }

    .header__navigation-wrapper {
        opacity: 1;
        transition: all 0.3s ease;
    }

    .opened  .header__navigation-wrapper {
        opacity: 0;
    }

    .header__menu-button {
        display: block;
        position: relative;
        z-index: 100;
    }

    #desktop-navigation .menu-item {
        display: none;
    }

    .header__mobile-navigation ul {
        flex-direction: column;
        gap: 40px;
    }

    .header__logo {
        display: none;
        width: 0;
        height: 0;
    }

    .header__logo.header-logo-mobile,
    .header__logo.header-logo-mobile.black-logo-mobile {
        object-fit: contain;
        display: block;
        width: 141px;
        height: 35px;
        transition: all 0.3s ease;
    }

    .opened .header__logo.header-logo-mobile {
        opacity: 0;
    }

    .header__logo.header-logo-mobile.black-logo-mobile {
        opacity: 0;
    }

    .opened .header__logo.header-logo-mobile.black-logo-mobile,
    .header-scrolling .header__logo.header-logo-mobile.black-logo-mobile {
        opacity: 1;
    }


    .header__mobile-navigation .sub-menu * {
        font-size: 20px;
        color:  #000;
    }

    .header__mobile-navigation .sub-menu .menu-item:not(:last-child) {
        margin-bottom: 22px;
    }

    .header__mobile-navigation .sub-menu {
        display: block;
        margin: 0 -100% 0 -25px;
        padding: 0 20px 0 44px;
        background: #FFF;
        max-height: 0;
        overflow-y: hidden;
        transition: all 0.5s ease;
        width: 100%;
    }

    .header__mobile-navigation .sub-menu-opened .sub-menu {
        margin: 0 -100% 0 -25px;
        padding: 40px 20px 0 44px;
        max-height: 2000px; /* Або будь-яка інша відповідна висота */
    }

    .header__mobile-navigation .menu-item:has(.sub-menu) {
        position: relative;
        width: fit-content;
    }

    .header__mobile-navigation .menu-item:has(.sub-menu) a {
        position: relative;
        display: flex;
        align-items: center;
        gap: 11px;
        text-align: start;
    }

    .header__mobile-navigation .menu-item:has(.sub-menu) > a::after {
        content: '';
        position: relative;
        width: 12px;
        height: 8px;
        right: 0;
        transition: transform 0.3s ease;
        background-image: url('data:image/svg+xml,%3Csvg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M1 1.5L6 6.5L11 1.5" stroke="black" stroke-width="2" stroke-linecap="round" /%3E%3C/svg%3E');
        background-size: contain;
        background-repeat: no-repeat;
    }

    .header__mobile-navigation .menu-item:has(.sub-menu).sub-menu-opened > a::after {
        transform: rotateX(180deg);
    }

    .header__desktop-navigation .sub-menu .menu-item:not(:last-child) {
        margin-bottom: 0;
    }

    .header__desktop-navigation .sub-menu {
        padding: 0;
    }

    a:visited.header__btn,
    .header__btn {
        display: inline-block;
        padding: 0;
        color: #000;
        font-weight: 500;
        font-size: 20px;
        margin-top: 40px;
    }
	.header__mobile-navigation .pll-parent-menu-item.sub-menu-opened .sub-menu {
		    padding: 20px;
    margin: 0;
		overflow-x: hidden;
	}
	
	.header__mobile-navigation {
		display: flex;
    flex-direction: column;
		gap: 20px;
	}
	
	.header__email {
        color: #000;
        font-weight: 500;
        font-size: 20px;
	}
	
	
	.header__btn {
		margin-top:0;
	}
}

@media screen and (max-width: 599.98px) {
    .menu-bar {
        height: 2px;
    }
}

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