@media (max-width: 1024px) {
    body header .button-wrap.right.menu,
    body header .button-wrap.menu,
    body .classic-menu .button-wrap.right.menu,
    body .classic-menu .button-wrap.right.menu.burger-lines,
    body .button-wrap.right.burger-lines {
        display: flex !important;
        right: 16px !important;
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 42px !important;
        height: 42px !important;
        align-items: center !important;
        justify-content: center !important;
    }
    body header .button-wrap.right.menu .icon-wrap,
    body header .button-wrap.menu .icon-wrap {
        display: flex !important;
        width: 42px !important;
        height: 42px !important;
        align-items: center !important;
        justify-content: center !important;
        border: 1px solid rgba(184, 169, 125, 0.4) !important;
        border-radius: 999px !important;
        background: rgba(11, 16, 23, 0.5) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    body header #menu-burger {
        display: block !important;
        width: 16px !important;
        height: 22px !important;
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        margin: 0 auto !important;
    }
    body header #menu-burger span {
        display: block !important;
        background-color: #f0eee9 !important;
        opacity: 1 !important;
        position: absolute !important;
        height: 2px !important;
        width: 100% !important;
        right: 0 !important;
    }
    body header #menu-burger span:nth-child(1) { top: 7px !important; }
    body header #menu-burger span:nth-child(2) { top: 13px !important; }
    body header #menu-burger span:nth-child(3) { display: none !important; }
    body header .button-wrap.right.menu .button-text { display: none !important; }
}

/* ============================================================
 * Language pill override — fixes legacy bottom/right rule from
 * kki-multilang/switcher.css that conflicts with the centered
 * navbar positioning at ≤768px (was stretching the pill into
 * the hamburger's hit area).
 * ============================================================ */
@media (max-width: 1024px) {
    body header #header-container .kki-ml-header-mount,
    body .classic-menu #header-container .kki-ml-header-mount {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        z-index: 100 !important;
        width: auto !important;
        height: auto !important;
        max-width: calc(100% - 120px) !important;
        display: inline-flex !important;
    }
    body header #header-container .kki-ml-header-mount .kki-ml-pill,
    body .classic-menu #header-container .kki-ml-header-mount .kki-ml-pill {
        padding: 3px !important;
        background: rgba(11, 16, 23, 0.7) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(184, 169, 125, 0.4) !important;
        border-radius: 100px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
    }
    body header #header-container .kki-ml-header-mount .kki-ml-pill-link {
        padding: 4px 10px !important;
        font-size: 10px !important;
        letter-spacing: 0.12em !important;
        font-weight: 700 !important;
        opacity: 0.78 !important;
    }
    body header #header-container .kki-ml-header-mount .kki-ml-pill-link.is-active {
        background: #b8a97d !important;
        color: #131a24 !important;
        opacity: 1 !important;
    }
    body header #header-container .kki-ml-header-mount .kki-ml-pill-flag {
        width: 11px !important;
        height: 11px !important;
    }
    body header #header-container .kki-ml-header-mount .kki-ml-pill-label {
        font-size: 9px !important;
        letter-spacing: 0.12em !important;
    }
}
