.header__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 163px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 7;
}

.header__logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 13px 0;
    background: #095483;
}

.header__logo .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.header__logo a {
    display: flex;
}

.header__inner-block-menu {
    display: flex;
    align-items: center;
    min-height: 88px;
    border-bottom: 1px solid #E3E3E380;
    box-shadow: 0 0 15px 0 #0000001A;
}

.header__menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 33px;
}

.header__menu-list {
    position: relative;
}

.header__menu-items {
    display: flex;
    align-items: center;
    gap: 33px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__menu-items > li {
    position: relative;
}

.header__menu-items > li > a {
    display: inline-flex;
    align-items: center;
    padding: 19px 0 20px;
    text-decoration: none;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    line-height: 100%;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #FFFFFF;
}

.header__menu-items > li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    background: url('/wp-content/uploads/2025/12/icon-chevron-down.svg') no-repeat center / contain;
    transition: transform 0.25s ease;
    transform-origin: center;
}

.header__menu-items > li.menu-item-has-children:hover > a::after,
.header__menu-items > li.menu-item-has-children.is-open > a::after {
    transform: rotate(180deg);
}

.header__menu-items > li > .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    list-style: none;
    min-width: 220px;
    padding: 16px 10px;
    background: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0.2s ease;
}

.header__menu-items > li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


.header__menu-items > li > .sub-menu > li > a {
    display: block;
    padding: 8px 20px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0.03em;
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.header__menu-items > li > .sub-menu > li > a:hover {
    background: rgba(255,255,255,0.12);
}

@media (max-width: 1280px) {

    .header__menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 33px;
    }

    .header__menu-list {
        flex: 1;
        overflow-y: auto;
        max-width: 100%;
        width: 100%;
    }

    .header__menu-items {
        max-width: 100%;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .header__menu-items > li {
        max-width: 100%;
        width: 100%;
    }

    .header__menu-items > li > a {
        max-width: 100%;
        width: 100%;
        padding: 12px 0;
    }

    .header__menu-items > li > .sub-menu {
        position: static;
        margin-top: 0;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
        box-shadow: none;
        color: #FFFFFF;
    }

    .header__menu-items > li.menu-item-has-children.is-open > .sub-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }

    .header__menu-items > li > .sub-menu > li > a {
        display: block;
        padding: 10px 0;
        font-family: 'Satoshi', sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 100%;
        letter-spacing: 0.03em;
        color: #FFFFFF;
        text-decoration: none;
        white-space: nowrap;
        transition: background 0.2s ease;
    }
}

/* ===== MOBILE HEADER ===== */
@media (max-width: 1280px) {

    body.menu-open {
        overflow: hidden;
    }

    .header__inner {
        flex-direction: row;
        min-height: 50px;
        background: #095483;
        position: relative;
        z-index: 1000;
    }

    .header__logo {
        padding: 10px 0;
    }

    .logo img {
        max-width: 203px;
        height: 29px;
    }

    /* Burger */
    .header__burger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
    }

    .header__burger span {
        display: block;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: 0.3s;
    }

    /* Menu wrapper */
    .header__inner-block-menu {
        position: fixed;
        inset: 0;
        background: #0b5f8a;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1000;
        overflow: hidden;
    }

    body.menu-open .header__inner-block-menu {
        transform: translateX(0);
    }

    /* Main menu */
    .header__menu {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .header__menu-list {
        flex: 1;
        overflow-y: auto;
    }

    .header__menu-items {
        list-style: none;
        padding: 80px 20px 20px;
        margin: 0;
    }

    .header__menu-items > li {
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .header__menu-items a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        color: #fff;
        text-decoration: none;
        font-size: 18px;
    }

    /* Arrow for submenu */
    .menu-item-has-children > a::after {
        content: "›";
        font-size: 22px;
        transform: translateY(1px);
    }

    /* Hide all submenus initially */
    .sub-menu {
        display: none;
    }

    /* Submenu screen */
    .sub-menu.is-active {
        display: block;
        position: fixed;
        inset: 0;
        background: #0b5f8a;
        padding: 80px 20px 20px;
        z-index: 1200;
    }

    .sub-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    /* Back button */
    .submenu-back {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 20px;
        font-size: 16px;
        color: #fff;
        cursor: pointer;
    }

    .submenu-back::before {
        content: "‹";
        font-size: 22px;
    }

    /* Hide desktop button */
    .btn-blur {
        display: none;
    }
}