/* Barlow latin-ext (č, š, ž, ľ, ť, ą, ę, ł …) */
@font-face{font-display:swap;font-family:"Barlow";font-style:italic;font-weight:400;src:url("../fonts/barlow-latin-ext-400italic.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-display:swap;font-family:"Barlow";font-style:normal;font-weight:300;src:url("../fonts/barlow-latin-ext-300.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-display:swap;font-family:"Barlow";font-style:normal;font-weight:400;src:url("../fonts/barlow-latin-ext-400.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-display:swap;font-family:"Barlow";font-style:normal;font-weight:500;src:url("../fonts/barlow-latin-ext-500.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-display:swap;font-family:"Barlow";font-style:normal;font-weight:600;src:url("../fonts/barlow-latin-ext-600.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-display:swap;font-family:"Barlow";font-style:normal;font-weight:700;src:url("../fonts/barlow-latin-ext-700.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-display:swap;font-family:"Barlow";font-style:normal;font-weight:800;src:url("../fonts/barlow-latin-ext-800.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}

/* Max Blank – language switcher: black 2-column dropdown (flag + native name + code) */

.mb-lang__toggle {
    font: inherit;
    font-size: 1.7rem;
    font-weight: 500;
    color: #fff;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: .8rem 0 .6rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    line-height: 1;
    transition: border-color .2s;
}
.mb-lang__toggle:focus-visible {
    outline: 2px solid #AB182E;
    outline-offset: 4px;
}
.mb-lang__toggle[aria-expanded="true"] {
    border-bottom-color: #AB182E;
}
.mb-lang__chevron {
    width: 1.4rem;
    height: .8rem;
    transition: transform .2s;
}
.mb-lang__toggle[aria-expanded="true"] .mb-lang__chevron {
    transform: rotate(180deg);
}
.mb-lang__flag {
    display: block;
    width: 2.4rem;
    height: 1.5rem;
    flex: 0 0 auto;
    object-fit: cover;
    box-shadow: -2px 2px 0 rgba(255, 255, 255, .2);
}

@media (max-width: 767px) {
    .mb-lang__toggle { font-size: 1.5rem; gap: .8rem; }
    .mb-lang__flag--toggle { width: 2.2rem; height: 1.4rem; }
    .mb-lang__chevron { width: 1.2rem; }
}

/* header stays black with logo while the panel is open (home page header is transparent) */
.mb-lang-open .header {
    background: #000 !important;
}
.mb-lang-open .header .logo {
    opacity: 1 !important;
    visibility: visible !important;
}

/* panel */
.mb-lang__panel {
    position: fixed;
    top: 100px;
    right: 30rem;
    width: 54rem;
    max-width: calc(100vw - 3.2rem);
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
    z-index: 6;
    background: #000;
    color: #fff;
    padding: 2rem 3.2rem 3rem;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.mb-lang__panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

.mb-lang__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: column;
    column-gap: 3.2rem;
    border-top: 1px solid rgba(255, 255, 255, .35);
}
.mb-lang__list li {
    margin: 0;
    padding: 0;
}
.mb-lang__list li::before { content: none; }

.mb-lang__link {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    height: 5.2rem;
    padding: 0 1rem;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .88);
    text-decoration: none !important;
    transition: background-color .2s, color .2s;
}
.mb-lang__link:hover,
.mb-lang__link:focus-visible {
    background: #1f1f1f;
    color: #fff;
}
.mb-lang__link:focus-visible {
    outline: 2px solid #AB182E;
    outline-offset: -2px;
}
.mb-lang__link.is-active {
    background: #161616;
    color: #fff;
}
.mb-lang__name {
    flex: 1 1 auto;
    font-size: 1.8rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mb-lang__link.is-active .mb-lang__name {
    font-weight: 600;
}
.mb-lang__code {
    font-size: 1.3rem;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .5);
}
.mb-lang__check {
    flex: 0 0 auto;
    width: 1.6rem;
    height: 1.2rem;
}

.mb-lang__backdrop {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .mb-lang__panel, .mb-lang__panel.is-open { transition: none; transform: none; }
}

/* mobile: full-width panel under the header, page dimmed */
@media (max-width: 767px) {
    .mb-lang__panel {
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 8rem);
        padding: 1.6rem 1.6rem 2.4rem;
        box-shadow: none;
    }
    .mb-lang__list { column-gap: 1.6rem; }
    .mb-lang__link { height: 5.6rem; padding: 0 .8rem; gap: 1.2rem; }
    .mb-lang__name { font-size: 1.7rem; }
    .mb-lang__code { display: none; }
    .mb-lang__check { width: 1.4rem; height: 1.1rem; }
    .mb-lang__backdrop {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 80px;
        z-index: 5;
        background: rgba(0, 0, 0, .55);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility 0s linear .25s;
    }
    .mb-lang-open .mb-lang__backdrop {
        opacity: 1;
        visibility: visible;
        transition: opacity .25s ease, visibility 0s;
    }
    .mb-lang-open {
        overflow: hidden;
    }
}

@media (max-width: 360px) {
    .mb-lang__name { font-size: 1.5rem; }
    .mb-lang__flag { width: 2rem; height: 1.25rem; }
}
