.vx-header {
    position: relative;
    z-index: 100;
    background: var(--vx-white);
    border-bottom: 1px solid var(--vx-gray-10);
}

.vx-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 8px;
}

.vx-header__logo {
    display: flex;
    align-items: center;
    height: 47px;
}

.vx-header__logo img {
    display: block;
    width: 161px;
    height: auto;
}

.vx-header__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--vx-primary);
    cursor: pointer;
}

.vx-header__toggle svg {
    display: block;
    width: 24px;
    height: 24px;
}

.vx-header__toggle[aria-expanded="true"] .vx-icon--menu,
.vx-header__toggle[aria-expanded="false"] .vx-icon--close {
    display: none;
}

.vx-header__desktop {
    display: none;
}

/* --- Навігація --------------------------------------------------------- */

.vx-nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vx-nav__list a {
    display: block;
    padding: 10px;
    color: var(--vx-primary);
    font-family: var(--vx-font-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.vx-nav__list a:hover,
.vx-nav__list a:focus-visible,
.vx-nav__list .current-menu-item > a,
.vx-nav__list .current_page_item > a {
    color: var(--vx-blue);
}

/* --- Перемикач мов ----------------------------------------------------- */

.vx-lang {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
}

.vx-lang__item {
    padding: 10px;
    background: var(--vx-gray-30);
    color: var(--vx-white);
    font-family: var(--vx-font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

.vx-lang__item--current {
    background: var(--vx-gray-10);
    color: var(--vx-primary);
}

/* --- Мобільне меню ----------------------------------------------------- */

.vx-mobile-menu {
    position: fixed;
    /* 64px = висота шапки: паддинги 8 + 8, логотип 47, бордер 1. */
    inset: 64px 0 0;
    z-index: 90;
    padding: 48px var(--vx-page-pad) 32px;
    overflow-y: auto;
    background: var(--vx-white);
}

.vx-mobile-menu[hidden] {
    display: none;
}

.vx-mobile-menu .vx-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.vx-mobile-menu .vx-nav__list a {
    padding: 10px 0;
}

.vx-mobile-menu .vx-lang {
    width: fit-content;
    margin-top: 64px;
}

body.vx-menu-open {
    overflow: hidden;
}

/* --- Десктоп ----------------------------------------------------------- */

@media (min-width: 1024px) {
    .vx-header {
        border-bottom: 0;
    }

    .vx-header__inner {
        padding-block: 24px;
    }

    .vx-header__logo {
        height: 36px;
    }

    .vx-header__logo img {
        width: 226px;
    }

    .vx-header__toggle {
        display: none;
    }

    .vx-header__desktop {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-left: 16px;
    }

    .vx-mobile-menu {
        display: none;
    }
}
