/* Top-bar (davlat ramzlari + telefon) va til tanlash dropdown uslublari.

   Eslatma: shrift kattaligi (html.font-*) va yuqori kontrast (body.contrast-bw /
   body.contrast-yb) qoidalari OLIB TASHLANDI — ularni yoqadigan "Zaif
   ko'ruvchilar uchun" paneli top-bar'dan olib tashlangan. */

/* ═══ TOP-BAR — brend qizilining quyuq soyasi (header bilan bir butun) ═══ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1101;
    background: #4a0e14;
    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; }

/* 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;
}

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

/* ═══ 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;
    text-decoration: none;
    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-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-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; }
