.navbar .nav-links {
    align-items: center;
}

.language-picker {
    position: relative;
    margin-left: 4px;
}

.section-title .section-subtitle {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.language-picker-mobile {
    display: none;
}

.lang-picker-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(201, 169, 89, 0.42);
    background: transparent;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.2px;
    cursor: pointer;
}

.lang-picker-toggle:hover,
.language-picker.is-open .lang-picker-toggle {
    color: #1a1a1a;
    border-color: rgba(201, 169, 89, 0.85);
    background: rgba(201, 169, 89, 0.06);
}

.lang-globe-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: #b89448;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lang-picker-arrow {
    font-size: 13px;
    line-height: 1;
    transform: translateY(-1px);
}

.lang-picker-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1200;
    display: none;
    min-width: 120px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.language-picker.is-open .lang-picker-menu {
    display: block;
}

.lang-picker-menu button {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: #666;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.lang-picker-menu button:hover,
.lang-picker-menu button.is-active {
    background: #f7f7f7;
    color: #1a1a1a;
}

html[lang="en"] .hero h1.home-title {
    font-size: clamp(2.45rem, 3.85vw, 3.55rem);
}

html[lang="ru"] .hero h1.home-title,
html[lang="kk"] .hero h1.home-title {
    max-width: 980px;
    font-size: clamp(2rem, 3.35vw, 3.15rem);
}

html[lang="en"] .page-hero h1 {
    font-size: clamp(1.9rem, 3.7vw, 3.2rem);
}

html[lang="ru"] .page-hero h1,
html[lang="kk"] .page-hero h1 {
    font-size: clamp(1.75rem, 3.35vw, 2.95rem);
}

html[lang="en"] .news-detail h1 {
    font-size: 1.65rem;
}

html[lang="ru"] .news-detail h1,
html[lang="kk"] .news-detail h1 {
    font-size: 1.5rem;
}

html[lang="en"] .footer ul li,
html[lang="ru"] .footer ul li,
html[lang="kk"] .footer ul li {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

html[lang="en"] .participant-table,
html[lang="ru"] .participant-table,
html[lang="kk"] .participant-table {
    font-size: 0.76rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .navbar .container {
        min-width: 0;
    }

    .navbar .nav-links {
        min-width: 0;
        max-width: calc(100vw - 42px);
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .navbar .nav-links::-webkit-scrollbar {
        display: none;
    }

    .navbar .nav-links li {
        flex: 0 0 auto;
    }

    .navbar .language-picker {
        display: none;
    }

    .language-picker-mobile {
        position: fixed;
        right: 16px;
        bottom: 16px;
        z-index: 1400;
        display: block;
        margin: 0;
    }

    .lang-picker-toggle {
        height: 38px;
        padding: 0 13px;
        border-color: rgba(201, 169, 89, 0.55);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
        font-size: 12px;
    }

    .lang-picker-menu {
        top: auto;
        right: 0;
        bottom: calc(100% + 8px);
        min-width: 128px;
    }

    html[lang="en"] .hero h1.home-title,
    html[lang="ru"] .hero h1.home-title,
    html[lang="kk"] .hero h1.home-title {
        font-size: clamp(1.8rem, 8vw, 3rem) !important;
    }

    html[lang="en"] .page-hero h1,
    html[lang="ru"] .page-hero h1,
    html[lang="kk"] .page-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.45rem) !important;
    }
}
