.header {
    background: transparent;
    position: fixed;
    width: 100%;
    z-index: 999;
    top: 0;
}

.header__wrapper {
    padding: 16px 0 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.header__logo {
    display: block;
    width: 96px;
    height: 54px;
    flex-basis: 96px;
}




.header__left-menu ul li > a,
.header__right-menu__mobile ul li > a{
    transition: color 0.3s ease;
    color: #17171B;
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: -0.01em;
}

.header__left-menu ul li:hover a,
.header__left-menu ul li:focus-within a,
.header__right-menu__mobile ul li:hover a {
    color: #17171B;
}

.header__left-menu > div > ul > li:hover > a,
.header__left-menu ul.menu > li:hover > a,
.header__left-menu > div > ul > li:focus-within > a,
.header__left-menu ul.menu > li:focus-within > a,
.header__right-menu__mobile ul.menu > li:hover > a {
    color: #214442;
}

.header__left-menu .menu-item-has-children {
    position: relative;
}

.header__left-menu .menu-item-has-children > a,
.header__right-menu__mobile .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header__left-menu .menu-item-has-children > a::after,
.header__right-menu__mobile .menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    flex-shrink: 0;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.header__left-menu .menu-item-has-children:hover > a::after,
.header__left-menu .menu-item-has-children:focus-within > a::after {
    transform: rotate(-135deg) translateY(-1px);
}

.header__left-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    margin: 0;
    padding: 8px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fafdff;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(33, 68, 66, 0.12);
    z-index: 30;
}

.header__left-menu .sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 12px;
}

.header__left-menu .menu-item-has-children:hover > .sub-menu,
.header__left-menu .menu-item-has-children:focus-within > .sub-menu {
    display: flex;
}

.header__left-menu .sub-menu li {
    display: block;
    width: 100%;
}

.header__left-menu .sub-menu a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
    color: #17171B;
}

.header__left-menu .sub-menu a:hover,
.header__left-menu .sub-menu li:hover > a {
    color: #214442;
}

.header__right-menu__wrapper {
    position: absolute;
    padding: 20px;
    z-index: 100;

    width: 100%;
    right: 0;
    background: #fafdff;
    height: 100svh;
    top: 70px;

    opacity: 0;
    visibility: hidden; /* елемент повністю неактивний */
    pointer-events: none; /* не ловить кліки */
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}


.header.scrolled{
    background: #fafdff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;

}
.header.scrolled .header__wrapper{
    padding: 10px 0;
}
.header__logo>img{
    width: 100%;
}
@media screen and (min-width: 1180px) {
    .header__left-menu > div > ul,
    .header__left-menu ul.menu {
        display: flex;
        align-items: center;
        gap: 31px;
    }

    .header__right-buttons {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .header__right-menu {
        display: none;
    }



    .header__right{
        display: flex;
        align-items: center;
        flex-basis: 924px;
        justify-content: space-between;
    }
    .header__right-buttons__btn.std-btn.btn-light{
        min-width: 142px;
    }
    .header__right-buttons__btn.std-btn{
        min-width: 243px;
    }

}

@media screen and (max-width: 1179.98px) {
    .header__left-menu,
    .header__right-buttons {
        display: none;
    }

    .header__wrapper {
        padding-top: 25px;
    }

    .header {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .header.menu-open {
        background: #fafdff;
    }

    .header__right-menu__wrapper.active {
        opacity: 1;
        visibility: visible; /* знову активний */
        pointer-events: auto;
        transform: translateY(0);
        background: #fafdff;
        z-index: 11111;
    }


    /* Стиль бургер-іконки */
    .header__right-menu__bm {
        display: flex;
        flex-direction: column;
        width: 40px;
        height: 40px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .header__bm-line {
        display: block;
        height: 2px;
        width: 20px;
        background: #010203;
        border-radius: 1px;
        transition: transform 0.28s ease, opacity 0.2s ease;
        flex-shrink: 0;
        transform-origin: center;
    }

    .header__right-menu__bm.active .header__bm-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header__right-menu__bm.active .header__bm-line:nth-child(2) {
        opacity: 0;
    }

    .header__right-menu__bm.active .header__bm-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header__right-menu__mobile ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .header__right-menu__mobile .sub-menu {
        position: static;
        display: flex;
        transform: none;
        min-width: 0;
        margin: 4px 0 0;
        padding: 0 0 0 12px;
        gap: 4px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .header__right-menu__mobile .sub-menu::before {
        display: none;
    }

    .header__right-menu__mobile{
        margin-bottom: 24px;
    }
    .header__right-menu__mobile ul li a {
        width: 100%;
        display: block;

        padding: 10px 20px;
    }

    .header__right-menu__mobile .menu-item-has-children > a {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    a.header__right-buttons__btn {
        width: 100%;
    }

    .header__right-menu__wrapper.active{
        max-height: 100vh; /* замість 100svh */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header__right-buttons__btn.std-btn.header__right-buttons__app-mobile{
        margin-bottom: 50px;
    }

    .header__switcher.switcher-desktop{
        display: none;
    }

    .pll-parent-menu-item .sub-menu {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 10px;

        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;

        box-shadow: none;
        background: transparent;
        padding: 0;
        margin-top: 5px;

        margin-bottom: 20px;
    }
    .pll-parent-menu-item .sub-menu li {
        display: inline-flex;
    }

    .lang-item a {
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 14px;
    }
    .lang-item a {
        border: 1px solid rgba(0,0,0,0.15);
        background: #fff;
    }

    .lang-item a:hover {
        background: #f5f5f5;
    }
    .pll-parent-menu-item >a{
        display:none!important;
    }
    .header__right-buttons__btn.std-btn.btn-light{
        margin-bottom: 10px;
    }
    .header__logo {
        display: block;
        width: 80px;
        height: 45px;
        flex-basis: 70px;
    }
}


