/* Inklyuziv (zaif ko'ruvchilar) rejim — shrift va kontrast */

/* Shrift kattaligi (html elementiga) */
html.font-small { font-size: 14px; }
html.font-normal { font-size: 16px; }
html.font-large { font-size: 19px; }
html.font-xlarge { font-size: 22px; }

/* Yuqori kontrast — qora-oq */
body.contrast-bw { background: #000 !important; color: #fff !important; }
body.contrast-bw .top-bar,
body.contrast-bw .site-nav,
body.contrast-bw .site-footer,
body.contrast-bw .page-main,
body.contrast-bw section,
body.contrast-bw .container,
body.contrast-bw header,
body.contrast-bw .desktop-link,
body.contrast-bw .menu-link-row,
body.contrast-bw a:not(.btn) { background: #000 !important; color: #fff !important; }
body.contrast-bw a { text-decoration: underline !important; }
body.contrast-bw img:not(.no-invert) { filter: grayscale(100%) contrast(1.1); }
body.contrast-bw .sect-card,
body.contrast-bw .td-card,
body.contrast-bw .ds-block,
body.contrast-bw .mi-content,
body.contrast-bw .sd-content,
body.contrast-bw .gerb-card,
body.contrast-bw .madh-card { background: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; }

/* Yuqori kontrast — sariq matn, qora fon */
body.contrast-yb { background: #000 !important; color: #ffeb3b !important; }
body.contrast-yb .top-bar,
body.contrast-yb .site-nav,
body.contrast-yb .site-footer,
body.contrast-yb .page-main,
body.contrast-yb section,
body.contrast-yb .container,
body.contrast-yb header,
body.contrast-yb .desktop-link,
body.contrast-yb .menu-link-row,
body.contrast-yb a:not(.btn),
body.contrast-yb h1, body.contrast-yb h2, body.contrast-yb h3, body.contrast-yb h4, body.contrast-yb h5, body.contrast-yb h6,
body.contrast-yb p, body.contrast-yb span, body.contrast-yb li { background: #000 !important; color: #ffeb3b !important; border-color: #ffeb3b !important; }
body.contrast-yb a { color: #ffeb3b !important; text-decoration: underline !important; }
body.contrast-yb img:not(.no-invert) { filter: grayscale(100%) contrast(1.2); }
body.contrast-yb .sect-card,
body.contrast-yb .td-card,
body.contrast-yb .ds-block,
body.contrast-yb .mi-content,
body.contrast-yb .sd-content,
body.contrast-yb .gerb-card,
body.contrast-yb .madh-card { background: #000 !important; color: #ffeb3b !important; border-color: #ffeb3b !important; box-shadow: none !important; }

/* ═══ TOP-BAR — qora, ingichka (navbar qizilidan ajratuvchi) ═══ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1101;
    background: #1a1f2e;
    color: #e6eaf2;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    height: 32px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Header pastga ofset — top-bar ostida */
header.site-header { top: 32px !important; }
.page-main { padding-top: 96px !important; }
@media (max-width: 991.98px) { .page-main { padding-top: 96px !important; } }
@media (max-width: 575.98px)  { .page-main { padding-top: 110px !important; } }

/* Home sahifa uchun — hero rasm to'liq ekrandan boshlansin (top-bar+navbar uning ustida sticky) */
body.home-page .page-main {
    padding-top: 0 !important;
}

/* Home hero kontenti pastga tushirish — top-bar+navbar (96px) ostida bo'shliq qoldirish */
body.home-page .hero-section {
    min-height: 100vh;
    padding-top: clamp(8rem, 16vw, 12rem) !important;
    padding-bottom: clamp(7rem, 14vw, 11rem) !important;
}
@media (max-width: 767.98px) {
    body.home-page .hero-section {
        min-height: auto;
        padding-top: clamp(7rem, 18vw, 10rem) !important;
        padding-bottom: clamp(5rem, 14vw, 8rem) !important;
    }
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow: hidden;
}
.top-bar-left, .top-bar-center, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.top-bar-left { flex: 0 0 auto; }
.top-bar-right { flex: 0 0 auto; margin-left: auto; }

/* Davlat ramzlari tugmalari (oq matn qizil ustida) */
.tb-state-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.18s ease;
}
.tb-state-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.tb-state-btn img {
    height: 16px;
    width: 22px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.35);
    display: block;
}
.tb-state-emblem-img {
    height: 20px !important;
    width: 20px !important;
    object-fit: contain !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Ishonch telefonlari — oddiy text, fonsiz, bordersiz, ikonkasiz */
.tb-phone {
    display: inline-flex;
    align-items: center;
    color: #e6eaf2;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0;
    background: none;
    border: none;
    transition: color 0.15s ease;
}
.tb-phone:hover { color: #fff; text-decoration: underline; }
.tb-phone .label { color: rgba(255, 255, 255, 0.75); font-weight: 500; margin-right: 0.3rem; }

/* Inklyuziv (a11y) tugmalar — oq matn qora ustida */
.top-bar-tools { display: inline-flex; align-items: center; gap: 0.28rem; }
.tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.38rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    border-radius: 5px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.tb-btn.active { background: #fff; color: #1a1f2e; }
.tb-btn-a-minus { font-size: 0.62rem; }
.tb-btn-a-normal { font-size: 0.78rem; }
.tb-btn-a-plus { font-size: 0.88rem; }

.tb-btn-contrast {
    width: 24px;
    background: linear-gradient(135deg, #fff 50%, #000 50%);
    color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-indent: -9999px;
    overflow: hidden;
}
.tb-btn-contrast.tb-yb { background: linear-gradient(135deg, #ffeb3b 50%, #000 50%); border-color: #ffeb3b; }
.tb-btn-contrast.tb-off { background: rgba(255, 255, 255, 0.1); color: #fff; text-indent: 0; overflow: visible; width: auto; padding: 0 0.5rem; font-size: 0.72rem; font-weight: 600; border: 1px solid transparent; }
.tb-btn-contrast.tb-off.active { background: #fff; color: #1a1f2e; }

/* Footer "Foydali havolalar" ro'yxati */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.65rem;
    line-height: 1.4;
}
.footer-links li:last-child { margin-bottom: 0; }
.footer-links .footer-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s ease, padding-left 0.15s ease;
    display: inline-block;
}
.footer-links .footer-link:hover {
    color: #fff;
    padding-left: 4px;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 3px;
}

/* TTS — ovozli o'qish tugmasi */
.tb-btn-tts {
    width: 28px;
    height: 22px;
    padding: 0;
    font-size: 0.92rem;
}
.tb-btn-tts i { line-height: 1; }
.tb-btn-tts.active {
    background: #1cc88a;
    color: #fff;
    border-color: #1cc88a;
    box-shadow: 0 0 0 2px rgba(28, 200, 138, 0.25);
    animation: tts-pulse 1.6s ease-in-out infinite;
}
@keyframes tts-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(28, 200, 138, 0.25); }
    50% { box-shadow: 0 0 0 4px rgba(28, 200, 138, 0.4); }
}
.tb-btn-tts:disabled { cursor: not-allowed; }

/* Vertikal divider — oq, ingichka */
.tb-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.22);
    margin: 0 0.3rem;
    display: inline-block;
}

.tb-tools-label { font-size: 0.7rem; opacity: 0.78; margin-right: 0.2rem; color: rgba(255, 255, 255, 0.88); }

/* ═══ Navbar tilshim — custom dropdown bayroq rasm bilan ═══ */
.nav-lang-dd {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
}
.nav-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #9f6d6d;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    min-width: 150px;
    height: 38px;
    line-height: 1;
    box-sizing: border-box;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}
.nav-lang-trigger:hover { background: #b07c7c; border-color: rgba(255, 255, 255, 0.55); transform: translateY(-1px); }
.nav-lang-trigger .fi { width: 22px; height: 16px; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); flex: 0 0 auto; }
.nav-lang-trigger .lang-label { flex: 1; text-align: left; }
.nav-lang-trigger .chev {
    width: 12px; height: 12px; flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.18s ease;
}
.nav-lang-dd.open .chev { transform: rotate(180deg); }

.nav-lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 175px;
    background: #fff;
    border: 1px solid #e4e7ee;
    border-radius: 10px;
    padding: 6px;
    margin: 0;
    list-style: none;
    box-shadow: 0 14px 32px rgba(20, 30, 60, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1200;
}
.nav-lang-dd.open .nav-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-lang-menu form { margin: 0; }
.nav-lang-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    background: transparent;
    color: #2a3242;
    border: 0;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}
.nav-lang-item:hover { background: #f5f6fa; color: #1a1f2e; }
.nav-lang-item.active { background: rgba(159, 29, 42, 0.10); color: #74151f; font-weight: 700; }
.nav-lang-item .fi { width: 22px; height: 16px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.18); flex: 0 0 auto; }

@media (max-width: 991.98px) {
    .nav-lang-dd { display: none; }
}

/* ═══ Logo va navbar inner — markazlash ═══ */
.bitu-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: clamp(1rem, 3vw, 2.4rem) !important;
    padding-right: clamp(1rem, 3vw, 2.4rem) !important;
}
.top-bar > .container { max-width: 1400px; }

/* ═══ Mobile responsive — top-bar ingichka ═══ */
@media (max-width: 991.98px) {
    .top-bar { font-size: 0.74rem; }
    .tb-tools-label { display: none !important; }
    .tb-phone .label { display: none; }
    .top-bar-inner { gap: 0.35rem; }
}
@media (max-width: 767.98px) {
    .top-bar { font-size: 0.7rem; height: 30px; }
    .top-bar-inner { height: 30px; }
    header.site-header { top: 30px !important; }
    .page-main { padding-top: 90px !important; }
    .top-bar-left, .top-bar-right { flex: 0 0 auto; justify-content: flex-start; }
    .top-bar-right { gap: 0.25rem; }
    .tb-divider { display: none; }
    .tb-state-btn { width: 22px; height: 20px; }
    .tb-state-btn img { height: 12px; }
    .tb-state-emblem-img { height: 14px !important; width: 14px !important; }
    .tb-btn { min-width: 20px; height: 20px; padding: 0 0.32rem; font-size: 0.68rem; }
    .tb-btn-contrast { width: 22px; }
    .tb-btn-contrast.tb-off { padding: 0 0.4rem; font-size: 0.66rem; }
    .tb-phone { font-size: 0.68rem; }
}
@media (max-width: 575.98px) {
    .tb-phone { display: none; }
    .top-bar { height: 28px; }
    .top-bar-inner { height: 28px; }
    header.site-header { top: 28px !important; }
    .page-main { padding-top: 86px !important; }
}

/* ═══ Mobil menu ichida til flag'lar — pastroq tartib, butun ko'rinish ═══ */
.bitu-offcanvas .mobile-lang-wrap {
    padding: 1.2rem 1rem 0.8rem !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bitu-offcanvas .lang-flags {
    display: flex !important;
    gap: 0.55rem;
    padding: 0.4rem 0 !important;
    margin: 0 !important;
    overflow: visible;
    flex-wrap: wrap;
}
.bitu-offcanvas .lang-flags .flag-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    overflow: hidden;
    padding: 0;
}
.bitu-offcanvas .lang-flags .flag-btn:hover { border-color: rgba(255, 255, 255, 0.6); transform: translateY(-2px); }
.bitu-offcanvas .lang-flags .flag-btn.active { border-color: #fff; background: rgba(255, 255, 255, 0.15); }
.bitu-offcanvas .lang-flags .flag-btn .fi { width: 26px; height: 19px; border-radius: 2px; }
