.header {
    position: fixed;
    width: calc(100% - 16px);
    margin: 0 auto;
    left: 8px;
    top: 0;
    z-index: 99999;
}

.language-dropdown li:has(.disabled-lang),
.disabled-lang {
    pointer-events: none;
    cursor: none;
}

.header__outer-wrapper {
    display: flex;
    justify-content: space-between;
    background: #202029;
}

.header__top-row {
    background: #DEE3ED;
    position: relative;
    width: 100%;
    height: 8px;
}

#wpadminbar {
    display: none;
}

.header__border-decor {
    position: absolute;
    width: 20px;
    height: 18px;
    display: none;
    z-index: 10;
}

.header__menu-button {
    display: none;
}

.header__wrapper {
    display: flex;
    padding: 17.5px 0;
    margin: 0 -28px 0 -28px;
    justify-content: space-between;
}


.header__logo-link {
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 101;
    margin-top: 12.5px;
}

.header__logo {
    width: 140px;
    height: 35px;
    object-fit: contain;
}

.header__logo-wrapper {
    position: relative;
    padding-left: 50px;
}

.header__logo-wrapper,
.header__btn-wrapper {
    min-width: 300px;
    z-index: 10;
    position: relative;
}

.btn-without-content {
    opacity: 0;
    pointer-events: none;
}

.header__side-overlay {
    position: absolute;
    top: 0;
    z-index: 100;
    width: 100%;
    height: auto;
}

.header__btn-wrapper .header__side-overlay {
    right: 0;
    transform: rotateY(180deg);
}

.header__logo-wrapper .header__side-overlay{
    left: 0;
}

.header__btn-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.header__navigation-wrapper {
    background: #202029;
    margin: auto;
    position: relative;
    display: flex;
    gap: 25px;
    align-items: center;
    width: fit-content;
    justify-content: center;
}

.header__phone {
    color: #FFF;
    display: flex;
    gap: 7px;
    align-items: center;
    font-weight: 300;
    font-size: 15px;
}

.header__desktop-navigation ul{
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
    color: #FFF;
    font-size: 16px;
}

.header__btn {
    margin-top: 7px;
    border-radius: 20px;
    font-size: 16px;
    padding: 10px 11px;
    min-width: 243px;
    width: fit-content;
    height: fit-content;
    color: #DEE3ED;
    z-index: 101;
    position: relative;
}

.header__btn:hover {
    border-color: #FF5A46;
}


.header-decor-border {
    position: absolute;
}

.header__container {
    position: relative;
    z-index: 3;
    padding: 0;
}

/* language switcher   */

.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.current-language {
    color: #FFF;
    font-size: 16px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px 8px 5px 8px;
    list-style: none;
    background: #36363e;
    z-index: 100;
    width: max-content;
    border-radius: 12px;
}


.language-dropdown ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.language-dropdown li {
    cursor: pointer;
}

.language-dropdown li:hover a {
    background: #202029;
}

.language-dropdown .language-dropdown__language {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    font-size: 16px;
    border-radius: 8px;
}

.language-dropdown * {
    transition: all 0.3s ease;
}


.language-dropdown__language img {
    width: 18px!important;
    height: 13px!important;
    object-fit: contain;
}

.language-switcher:hover .language-dropdown {
    display: flex;
}

.flag-icon {
    width: 20px;
    height: auto;
    margin-right: 10px;
}

.language-dropdown__language.current-lang {
    background: #202029;
}


/* language switcher   */

/* */

.header__mobile-wrapper {
    display: none;
    transform: translateY(-150%) translateX(-50%);
    transition: all 0.5s ease;
    z-index: -1;
}

.opened .header__mobile-wrapper {
    transform: translateY(0) translateX(-50%);
}

/* */

.menu-bar {
    width: 22px;
    height: 2px;
    border-radius: 5px;
    background-color: #202029;
    transition: all 0.5s ease;
    transform-origin: center;
    animation-duration: .8s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in-out;
}

.menu-bar:nth-child(2) {
    width: 14.5px;
}

.menu-bar:not(:last-child) {
    margin-bottom: 6.5px;
}

.opened .menu-bar:not(:last-child) {
    margin-bottom: 5.25px;
}


.opened .menu-bar:first-child,
.opened .menu-bar:last-child {
    width: 22px;
}

.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;
}

.border-decor-left-mobile,
.border-decor-right-mobile {
    display: none;
}



/* SUB MENU */

/* sub-menu styles */
.header__navigation ul.sub-menu {
    display: none;
    position: absolute;
    top: 24px;
    width: calc(100vw - 11.81%);
    margin: 0;
    padding-top: 18.5px;
    max-width: 1270px;
    transform: translateX(-50%);
    left: 50%;
    z-index: 9999999;
}


.menu-item:hover > .sub-menu {
    display: block;
}

.menu-item:has(.sub-menu)::after {
    content: "";
    display: inline-block;
    width: 22px; /* Adjusted to match the SVG width */
    height: 20px; /* Adjusted to match the SVG height */
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.51758 8.32454L10.8926 12.4912L15.2676 8.32454" stroke="%23FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 4px;
    margin-bottom: 2px;
    vertical-align: bottom;
    transition: all 0.5s ease;
}

.menu-item:has(.sub-menu):hover::after {
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.51758 8.32454L10.8926 12.4912L15.2676 8.32454" stroke="%23FF5A46" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>');
}

.menu-item-has-children {
    cursor: pointer;
    pointer-events: none;
}

/* Mobile menu - sub-menu styles */
.header__mobile-navigation ul.sub-menu {
    position: relative;
    display: block;
    padding-top: 0;
    max-height: 0;
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.header__mobile-navigation .sub-menu-opened.sub-menu {
    opacity: 1;
    pointer-events: auto;
}

@media screen and (min-width: 1024px) {
    .author .headerblock::before,
    .author .headerblock::after {
        content: '';
        background: #DEE3ED;
        height: 100%;
        width: 8px;
        bottom: 0;
        position: fixed;
    }

    .author .headerblock::before {
        left: 0;
    }

    .author .headerblock::after {
        right: 0;
    }

}

 .headerblock::before,
 .headerblock::after {
    content: '';
    background: #DEE3ED;
    height: 100%;
    width: 8px;
    bottom: 0;
    position: fixed;
     z-index: 1000000;
}

 .headerblock::before{
    left: 0;
}

 .headerblock::after{
    right: 0;
}

/* sub-menu adjustments for screen sizes */
@media screen and (max-width: 1023.98px) {
  .headerblock::before,
   .headerblock::after,
    .headerblock::before,
    .headerblock::after {
        width: 5px;
    }

    .menu-item:has(.sub-menu) {
        position: relative;
    }

    .menu-item:has(.sub-menu-opened.sub-menu) {
        border: 1px solid #4a5357;
        border-radius: 20px;
    }

    .menu-item:has(.sub-menu)::after {
        content: "";
        position: absolute;
        display: inline-block;
        top: 17px;
        margin-bottom: 0;
        right: 20px;
        pointer-events: none;
        width: 24px; /* Adjusted to match the SVG width */
        height: 24px; /* Adjusted to match the SVG height */
        flex-shrink: 0;
        background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.51758 8.32454L10.8926 12.4912L15.2676 8.32454" stroke="%23FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>');
        background-size: contain;
        background-repeat: no-repeat;
        margin-left: 12px;
    }

    .menu-item:has(.sub-menu.sub-menu-opened)::after {
        transform: rotateX(180deg);
    }

    .header__mobile-navigation ul.sub-menu {
        top: unset;
        width: 100%;
    }
}

/* SUB MENU */

@media screen and (max-width: 1249.98px) {
    .header__navigation-wrapper {
        gap: 15px;
    }

    .header-decor-border {
        height: 56.5px;
    }

}

@media screen and (max-width: 1299.98px) {

    .header__btn {
        min-width: 176px;
        font-size: 15px;
        padding: 8px 10px;
        margin-top: 6.2px;
    }

    .header__navigation ul.sub-menu {
        padding-top: 15.5px;
    }

    .language-switcher__planet-icon {
        width: 19px;
        height: 19px;
    }

    .header__phone-logo {
        width: 6px;
        height: 15px;
    }

    .header__logo-link {
        margin-top: 11px;
    }

    .header__desktop-navigation ul {
        gap: 15px;
    }

    .header__wrapper {
        padding: 15px 0;
    }

    .header__logo {
        height: 32px;
    }

    .header-decor-border {
        height: 51.5px;
    }

    .decor-border-right {
        right: -7px;
    }

    .decor-border-left {
        left: -7px;
    }

    .header__navigation-wrapper {
       gap: 15px;
    }

    .menu-item:has(.sub-menu)::after {
        margin-left: 2px;
        width: 20px;
        height: 18px;
    }

    .header__logo-wrapper, .header__btn-wrapper {
        min-width: 275px;
    }
}

@media screen and (max-width: 1199.98px) {
    .menu-item:has(.sub-menu)::after {
        margin-left: 0;
        width: 19px;
        height: 17px;
    }

    .header__navigation ul.sub-menu {
        padding-top: 9px;
    }

    .header__desktop-navigation ul,
    .header__phone,
    .current-language,
    .language-dropdown .language-dropdown__language {
        font-size: 14px;
    }


    .header__desktop-navigation ul {
        gap: 12px;
    }

    .header__logo {
        height: 27px;
    }

    .header__wrapper {
        padding: 12px 0;
    }

    .header__btn {
        min-width: 150px;
        margin-top: 5.4px;
        font-size: 13px;
        padding: 7px 8px;
    }

    .header__logo-wrapper, .header__btn-wrapper {
        min-width: 230px;
    }

    .header__logo-wrapper {
        padding-left: 30px;
    }

    .header__logo-link {
        margin-top: 9.3px;
    }
}

@media screen and (max-width: 1023.98px) {

    .header__logo-link {
        margin-top: 0;
    }

    .header__top-row {
        display: none;
    }

    .menu-item a {
        transition: background 0.3s ease;
    }

.menu-item:has(.sub-menu-opened) > a {
    background: #484851;
}

    .header-decor-border {
        display: none;
    }

    .border-decor-left {
        left: 0;
    }

    .border-decor-right {
        right: 0;
    }

    .header__desktop-navigation,
    .language-switcher,
    .header__btn-wrapper,
    .header__side-overlay {
        display: none;
    }

    .header__navigation-wrapper {
        background: #DEE3ED;
    }

    .header__btn-wrapper,
    .header__logo-wrapper {
        padding-bottom: 0;
        bottom: 0;
        margin-top: 0;
    }

    .header__menu-button {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .header__wrapper {
        background: #DEE3ED;
        padding: 21.5px 15px 21.5px 20px;
        margin: 0;
    }

    .header__outer-wrapper {
        background: #DEE3ED;
    }

    .header {
        width: calc(100% - 10px);
        left: 5px;
    }

    .header__logo-wrapper {
        padding-left: 10px;
        display: flex;
        align-items: center;
        min-width: fit-content;
        background: #DEE3ED;

    }

    .header__navigation-wrapper {
        gap: 21px;
        margin-right: 0;
    }

    .header__logo {
        width: 110px;
    }

    .header__phone-logo {
        width: 7px;
        height: 17px;
    }

    .header__phone-logo path {
        fill: #202029;
    }

    .header__phone {
        color: #202029;
        gap: 10px;
    }

    .header__desktop-navigation ul, .header__phone, .header__btn, .current-language, .language-dropdown .language-dropdown__language {
        font-size: 16px;
    }

    .header__mobile-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 50%;
        height: 100%;
        padding: 67px 5px 20px 5px;
        width: 100%;
        gap: 20px;
        background: #202029;
    }

    .header__mobile-body-wrapper {
        background: #202029;
        padding: 25px 20px 20px 20px;
        height: fit-content;
        max-height: calc(100% - 47px);
        overflow: auto;
        border-radius: 0 0 15px 15px;
    }

    .header__mobile-inner-wrapper {
        border-radius: 20px;
        border: 1px solid #fdfcfc;
        overflow: hidden;
    }

    .header__btn {
        width: 100%;
        background: #FF5A46;
        max-width: 100%;
        font-size: 17px;
        line-height: 1.4;
        letter-spacing: -0.06em;
        color: #fdfcfc;
        border-radius: 0;
        font-weight: 500;
        justify-content: space-between;
        padding: 17px 15px;
        margin-bottom: 24px;
        min-height: 62px;
        margin-top: 0;
        border: 0;
    }

    .header__btn-icon-border {
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid #FFF;
    }

    .header__mobile-navigation {
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .header__mobile-navigation ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .header__mobile-navigation a {
        font-weight: 700;
        font-size: 17px;
        letter-spacing: -0.06em;
        color: #fdfcfc;
        display: flex;
        padding: 15.5px 20px;
        border: 1px solid #4a5357;
        border-radius: 20px;
    }

    .mobile-language-switcher {
        list-style: none;
        padding: 7px;
        display: flex;
        justify-content: space-between;
        background: #36363e;
        border-radius: 12px;
        width: fit-content;
        margin: 0 auto;
    }

    .mobile-language-switcher a {
        font-size: 16px;
        color: #FFF;
        padding: 5px 12px;
        display: flex;
        align-items: center;
       justify-content: space-between;
        gap: 25px;
        border-radius: 8px;
    }

    .mobile-language-switcher img {
        width: 18px;
        height: 13px;
    }

    .mobile-language-switcher .current-lang a{
        background: #202029;
    }

    .mobile-language-switcher-wrapper {
        padding: 0 15px;
        margin-bottom: 23px;
    }

    .header__border-decor {
        bottom: -18px;
        display: block;
    }
}
