/* ═════════════════════════════════════════════════════════════════════
   ATSO — site.css (mobile-first, 2026-10)
   Asosiy uslub 320px uchun yozilgan; kattaroq ekranlar min-width bilan qo'shiladi.
   Breakpointlar: 640, 768, 1024, 1280, 1440.
   Bu fayl oxirida yuklanadi va eski nav.css / mobile.css o'rnini bosadi.
   ═════════════════════════════════════════════════════════════════════ */

:root {
  --c-navy: #012340;
  --c-navy-2: #0b2f55;
  --c-gold: #c9a860;
  --c-text: #14213d;
  --c-muted: #5b6b82;
  --c-line: #e3e8ef;
  --c-bg: #f6f8fb;
  --sh-h: 64px;
  --tap: 44px;
}

/* ── 1. Global asos ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 16px; overflow-x: clip; }
img, video, iframe, svg { max-width: 100%; }
img, video { height: auto; }
p, li, dd, td, th, blockquote { overflow-wrap: anywhere; word-break: normal; }
a { overflow-wrap: anywhere; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }

/* Kontent ichidagi jadvallar: o'z konteynerida gorizontal scroll */
.content table, .anndet-body table, .nd-body table, .page-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Matnni ikki tomonga tekislash mobilda katta bo'shliqlar beradi */
@media (max-width: 767px) {
  [align="justify"], [style*="justify"], .content p, .content div { text-align: left !important; }
}

/* Skip-link */
.skip-link:focus { left: 16px !important; top: 12px; z-index: 3000; background: #fff; color: var(--c-navy); padding: 10px 16px; border-radius: 8px; }

/* Ichki sahifalar: header endi oqimda (sticky), eski kompensatsiya kerak emas */
body.layout-default { padding-top: 0 !important; }
html.sh-lock, html.sh-lock body { overflow: hidden; }
html.sh-lock body { position: fixed; left: 0; right: 0; width: 100%; }

/* ── 2. Header ───────────────────────────────────────────────────── */
.sh {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(1, 35, 64, .06), 0 6px 24px rgba(1, 35, 64, .06);
  padding-top: env(safe-area-inset-top);
  color: var(--c-navy);
  font-family: inherit;
}
/* Bosh sahifa: hero ustida shaffof, scroll'da oq */
.sh--home { position: fixed; left: 0; right: 0; background: transparent; box-shadow: none; color: #fff; transition: background .25s, box-shadow .25s, color .25s; }
.sh--home.is-scrolled, html.sh-lock .sh--home { background: #fff; color: var(--c-navy); box-shadow: 0 1px 0 rgba(1, 35, 64, .06), 0 6px 24px rgba(1, 35, 64, .06); }

.sh-bar {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: var(--sh-h);
  max-width: 1440px; margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}

.sh-brand { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: var(--tap); color: inherit; text-decoration: none; flex: 0 1 auto; }
.sh-logo { width: 44px; height: 44px; flex: none; }
/* Universitet nomi: mobilda ham logo yonida, ekranga moslashuvchan o'lchamda (2 qator) */
.sh-brand { flex: 1 1 auto; }
.sh-brand-text {
  display: block; min-width: 0;
  font-size: clamp(10.5px, 3.05vw, 13px); font-weight: 800; line-height: 1.22;
  letter-spacing: .015em; text-transform: uppercase; max-width: 240px;
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
.sh-brand-text br { display: block; }
@media (max-width: 359px) { .sh-logo { width: 38px; height: 38px; } .sh-brand { gap: 8px; } }

.sh-utils { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }

.sh-icon-btn, .sh-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: var(--tap); height: var(--tap); padding: 0;
  border: 1px solid var(--c-line); border-radius: 12px;
  background: rgba(255, 255, 255, .92); color: var(--c-navy);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sh-pill { padding: 0 10px; }
.sh-pill svg:first-child { width: 22px; height: 16px; border-radius: 2px; }
.sh-icon-btn:hover, .sh-pill:hover { background: #fff; border-color: #c9d3e0; }
.sh-chev { transition: transform .2s; flex: none; }
[aria-expanded="true"] > .sh-chev { transform: rotate(180deg); }
.sh-hide-sm { display: none; }
@media (min-width: 768px) { .sh-hide-sm { display: block; } }

/* Popover'lar (til, telefon) */
.sh-pop { position: relative; }
.sh-pop-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--c-line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(1, 35, 64, .16);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.sh-pop.is-open .sh-pop-panel { opacity: 1; visibility: visible; transform: none; }
.sh-pop-panel a { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 8px 12px; border-radius: 10px; color: var(--c-navy); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sh-pop-panel a:hover, .sh-pop-panel a[aria-current] { background: var(--c-bg); }
.sh-pop-panel a svg { width: 22px; height: 16px; border-radius: 2px; flex: none; }

/* Burger */
.sh-burger { flex-direction: column; gap: 4px; }
.sh-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }

/* ── Menyu: mobil va planshet (< 1280px) — to'liq ekranli panel ── */
.sh-overlay { position: fixed; inset: 0; z-index: 1090; background: rgba(1, 35, 64, .45); }
.sh-overlay[hidden] { display: none; }

.sh-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1100;
  width: 100%;
  display: flex; flex-direction: column;
  background: #fff; color: var(--c-navy);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateX(100%); visibility: hidden;
  transition: transform .28s ease, visibility 0s linear .28s;
}
.sh-nav.is-open { transform: none; visibility: visible; transition: transform .28s ease; }
@media (min-width: 768px) { .sh-nav { width: min(440px, 100%); box-shadow: -20px 0 50px rgba(1, 35, 64, .18); } }
@media (prefers-reduced-motion: reduce) { .sh-nav, .sh-nav.is-open { transition: none; } }

.sh-drawer-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--sh-h); padding: env(safe-area-inset-top) 16px 0 20px;
  background: #fff; border-bottom: 1px solid var(--c-line);
}
.sh-drawer-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }

.sh-menu { list-style: none; margin: 0; padding: 0; }
.sh-item { border-bottom: 1px solid var(--c-line); }
.sh-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 12px 20px;
  border: 0; background: none; color: inherit; text-align: left;
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
.sh-sub { display: none; background: var(--c-bg); padding: 4px 0 10px; }
.sh-item.is-open > .sh-sub { display: block; }
.sh-list { list-style: none; margin: 0; padding: 0; }
.sh-list a {
  display: flex; align-items: center; min-height: 48px; padding: 10px 20px 10px 32px;
  color: var(--c-text); font-size: 16px; font-weight: 500; text-decoration: none;
}
.sh-list a:hover, .sh-list a:focus-visible { color: var(--c-navy); background: #edf1f7; }
/* Tuzilma: mobil/planshetda ichma-ich guruhlar (PC dagi kabi ixcham ro'yxat, rasmlar bilan) */
.sh-mega { display: block; }
.sh-mega-title, .sh-grp-all--desk { display: none; }
.sh-grp-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 52px; padding: 10px 20px 10px 32px;
  border: 0; background: none; color: var(--c-navy); text-align: left;
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.sh-grp-body { display: none; padding: 2px 0 10px; }
.sh-grp.is-open > .sh-grp-body { display: block; }
.sh-mega-link {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 20px 8px 40px;
  color: var(--c-text); font-size: 15px; line-height: 1.35; text-decoration: none;
}
.sh-mega-link:hover, .sh-mega-link:focus-visible { background: #edf1f7; }
.sh-mega-link strong { display: block; font-weight: 700; color: var(--c-navy); }
.sh-mega-link small { display: block; color: var(--c-muted); font-size: 13px; }
.sh-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #dde4ee; flex: none; }
.sh-avatar--ph { display: inline-flex; align-items: center; justify-content: center; background: #e3e9f2; color: var(--c-navy); font-size: 16px; font-weight: 800; }
.sh-grp-all { display: flex; align-items: center; min-height: 44px; padding: 6px 20px 6px 40px; color: var(--c-navy); font-size: 14px; font-weight: 700; text-decoration: none; }

.sh-drawer-foot { margin-top: auto; padding: 20px; display: grid; gap: 16px; }
.sh-langs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sh-langs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 60px; border: 1px solid var(--c-line); border-radius: 12px;
  color: var(--c-navy); font-size: 13px; font-weight: 700; text-decoration: none;
}
.sh-langs a svg { width: 26px; height: 18px; border-radius: 2px; }
.sh-langs a[aria-current] { border-color: var(--c-navy); background: var(--c-bg); }
.sh-drawer-phone { display: flex; align-items: center; min-height: var(--tap); color: var(--c-navy); font-size: 18px; font-weight: 800; text-decoration: none; }
.sh-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-socials a { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: 12px; background: var(--c-bg); color: var(--c-navy); }

/* ── Desktop (≥ 1280px): gorizontal menyu ── */
@media (min-width: 1280px) {
  :root { --sh-h: 76px; }
  .sh-burger, .sh-overlay, .sh-drawer-head, .sh-drawer-foot { display: none !important; }
  .sh-brand-text { display: none; }
  .sh-nav {
    position: static; transform: none; visibility: visible; width: auto; overflow: visible;
    background: transparent; color: inherit; padding: 0; box-shadow: none; transition: none;
    margin-left: 8px; flex: 1 1 auto; min-width: 0;
  }
  .sh-menu { display: flex; align-items: center; justify-content: center; gap: 2px; }
  .sh-item { border: 0; position: relative; }
  .sh-top {
    min-height: var(--tap); padding: 0 11px; border-radius: 10px;
    font-size: 14.5px; font-weight: 600; white-space: nowrap; gap: 6px;
  }
  .sh-top:hover, .sh-item.is-open > .sh-top { background: rgba(1, 35, 64, .06); }
  .sh--home:not(.is-scrolled) .sh-top:hover, .sh--home:not(.is-scrolled) .sh-item.is-open > .sh-top { background: rgba(255, 255, 255, .14); }
  .sh-sub {
    display: block; position: absolute; top: calc(100% + 10px); left: 0; z-index: 30;
    min-width: 270px; padding: 8px;
    background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
    box-shadow: 0 24px 60px rgba(1, 35, 64, .18);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s, transform .16s, visibility .16s;
  }
  .sh-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .sh-item.is-open > .sh-sub { opacity: 1; visibility: visible; transform: none; }
  .sh-list a { min-height: var(--tap); padding: 10px 14px; border-radius: 10px; font-size: 15px; color: var(--c-navy); }
  /* Mega-menyu */
  .sh-item--mega { position: static; }
  .sh-item--mega > .sh-sub { left: 16px; right: 16px; max-width: 1180px; margin: 0 auto; padding: 22px; }
  .sh-mega { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr; gap: 28px; }
  .sh-mega-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .sh-mega-title { display: block; margin: 0 0 8px; padding: 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold); text-decoration: none; }
  .sh-grp-btn, .sh-grp-all { display: none !important; }
  .sh-grp-body { display: block !important; padding: 0; }
  .sh-grp--sub { margin-top: 18px; }
  .sh-mega-link { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 10px; border-radius: 10px; color: var(--c-navy); font-size: 14.5px; text-decoration: none; }
  .sh-mega-link:hover { background: var(--c-bg); }
  .sh-mega-link strong { display: block; font-weight: 700; }
  .sh-mega-link small { display: block; color: var(--c-muted); font-size: 12.5px; line-height: 1.35; }
  .sh-avatar { width: 32px; height: 32px; }
  .sh-avatar--ph { font-size: 13px; }
  .sh-brand { flex: 0 1 auto; }
  .sh-mega-link { padding: 6px 10px; gap: 10px; }
  .sh-hide-sm { display: block; }
}
@media (min-width: 1440px) {
  .sh-brand-text { display: block; max-width: 230px; }
  .sh-top { padding: 0 13px; font-size: 15px; }
}

/* BVI tugmasi bosilgan holat */
#bvi-toggle[aria-pressed="true"] { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* ── 3. Footer: mobilda accordion ───────────────────────────────── */
.ft-acc { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ft-acc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; margin: 0 !important; cursor: pointer; list-style: none;
}
.ft-acc > summary::-webkit-details-marker { display: none; }
.ft-acc > summary::marker { content: ""; }
.ft-acc[open] > summary .ft-chev { transform: rotate(180deg); }
.ft-chev { transition: transform .2s; opacity: .7; flex: none; }
.ft-acc > .footer-links, .ft-acc > .footer-contact { padding-bottom: 16px; }
.site-footer .footer-links a, .site-footer .footer-contact a { display: inline-flex; align-items: center; min-height: var(--tap); }
.site-footer .footer-social a { min-width: var(--tap); min-height: var(--tap); }
@media (min-width: 768px) {
  .ft-acc { border-bottom: 0; }
  .ft-acc > summary { min-height: 0; cursor: default; pointer-events: none; margin-bottom: 16px !important; }
  .ft-chev { display: none; }
}

/* ── 4. Sahifa modullari: mobil tuzatishlar ─────────────────────── */
/* Hero */
.hero__grid { padding-left: clamp(16px, 4vw, 48px) !important; padding-right: clamp(16px, 4vw, 48px) !important; }
@media (max-width: 639px) {
  .hero-title, .hero--premium .hero-title { font-size: clamp(26px, 8vw, 32px) !important; line-height: 1.15 !important; }
  .hero-text { font-size: 16px !important; }
  .hero-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-buttons .btn { width: 100%; justify-content: center; text-align: center; }
}

/* Tugmalar va havola-tugmalar: kamida 44×44 */
.btn, .ldr-btn, .ctr-btn, .jd-btn, .ct-btn, .gs-chip, .qk-filter-btn, .qb-btn, .an-btn, .nw-btn, button[type="submit"] {
  min-height: var(--tap);
  display: inline-flex; align-items: center; justify-content: center;
}

/* Rahbariyat kartochkasi tugmalari tor ekranda */
.ldr-actions { flex-wrap: wrap; }


/* Kontrakt filtr tugmalari tor ekranda o'raladi */
.qk-filters, .qk-filter-wrap { flex-wrap: wrap; }

/* Kontent matni mobilda o'qilishi oson bo'lsin */
@media (max-width: 767px) {
  .anndet-body, .nd-body, .content, .ab-body { font-size: 16px; line-height: 1.7; }
}

/* ── 5. Scroll animatsiyalari ───────────────────────────────────── */
/* Yonga siljish ekran chetidan chiqib ketadi — faqat vertikal */
[data-animate="fade-left"]:not(.animated), [data-animate="fade-right"]:not(.animated),
[data-animate="fade-up-right"]:not(.animated), [data-animate="fade-up-left"]:not(.animated) { transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  [data-animate], [data-animate-children] > * { transform: none !important; opacity: 1 !important; filter: none !important; transition: none !important; }
}

/* Mobil/planshet: til tanlash faqat menyu panelida (burger ichida) */
@media (max-width: 1279px) { .sh-hide-mobile { display: none !important; } }

/* ── 4. "Dars jadvali" tugmasi (header) ─────────────────────────── */
.sh-sched {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: var(--tap); height: var(--tap); padding: 0 6px; flex: none;
  border: 1px solid var(--c-line); border-radius: 12px;
  background: rgba(255, 255, 255, .92); color: var(--c-navy);
  font-size: 10px; font-weight: 800; line-height: 1; letter-spacing: .01em; white-space: nowrap; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.sh-sched svg { width: 18px; height: 18px; flex: none; }
.sh-sched:hover { background: #fff; border-color: #c9d3e0; color: var(--c-navy); }
.sh-sched.is-active { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
@media (min-width: 420px) {
  .sh-sched { flex-direction: row; gap: 6px; padding: 0 12px; font-size: 13.5px; }
  .sh-sched svg { width: 19px; height: 19px; }
}
@media (min-width: 1280px) {
  .sh-sched { background: var(--c-navy); border-color: var(--c-navy); color: #fff; font-size: 14px; }
  .sh-sched:hover { background: #02355f; border-color: #02355f; color: #fff; }
  .sh-sched.is-active { box-shadow: 0 0 0 3px rgba(201, 168, 96, .55); }
}
/* 1280–1599: menyu sig'ishi uchun faqat ikonka, menyu bandlari zichroq */
@media (min-width: 1280px) and (max-width: 1599px) {
  .sh-sched { padding: 0; width: var(--tap); }
  .sh-sched span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1280px) and (max-width: 1439px) { .sh-top { padding: 0 8px; font-size: 14px; } }
@media (min-width: 1440px) and (max-width: 1599px) { .sh-top { padding: 0 9px; font-size: 14.5px; } }
@media (min-width: 1600px) { .sh-bar { max-width: 1680px; } .sh-top { padding: 0 11px; } }

/* Ijtimoiy tarmoqlar popover (PC) */
.sh-social-list a svg { width: 20px; height: 20px; border-radius: 0; color: var(--c-navy); }
.sh-social-list a:hover svg { color: var(--c-gold); }

/* ── 5. Katta monitorlar (27"/32"/4K): butun sayt proporsional kattalashadi ──
   Masshtab = ekran kengligi / ~1600px. TV rejimi o'z masshtabiga ega. */
:root { --zoom: 1; }
@media (min-width: 1760px) { html:not(.sch-tv-mode) { --zoom: 1.1; zoom: 1.1; } }
@media (min-width: 1920px) { html:not(.sch-tv-mode) { --zoom: 1.2; zoom: 1.2; } }
@media (min-width: 2240px) { html:not(.sch-tv-mode) { --zoom: 1.4; zoom: 1.4; } }
@media (min-width: 2400px) { html:not(.sch-tv-mode) { --zoom: 1.5; zoom: 1.5; } }
@media (min-width: 2880px) { html:not(.sch-tv-mode) { --zoom: 1.8; zoom: 1.8; } }
@media (min-width: 3200px) { html:not(.sch-tv-mode) { --zoom: 2; zoom: 2; } }
@media (min-width: 3840px) { html:not(.sch-tv-mode) { --zoom: 2.4; zoom: 2.4; } }
/* zoom'da vh ham kattalashadi — to'liq ekranli hero ekranga sig'ishi uchun qaytarib bo'linadi */
@media (min-width: 1760px) {
  html:not(.sch-tv-mode) .hero { height: calc(100vh / var(--zoom)); min-height: calc(100vh / var(--zoom)); }
}
