/* =========================================================================
   samyoshlar.uz — Samarqand viloyati Yoshlar murojaatlari portali
   Dizayn tizimi: «Institutional editorial» — chuqur navy + oltin aksent
   Qayta yozilgan: 2026-10-14 · to'liq responsiv (360px → 1920px)
   Zaxira: app/static/css/_bak/style.css.bak_20261014_design
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* --- brend ranglari --- */
  --navy-950: #050e1c;
  --navy-900: #071527;
  --navy-800: #0a1f38;
  --navy-700: #0f3b6c;
  --navy-600: #17497f;
  --navy-500: #1e5ba3;
  --gold-700: #a4761f;
  --gold-600: #b8862c;
  --gold-500: #c99738;
  --gold-300: #e0b96a;
  --gold-100: #fae8be;
  --gold-50: #fdf6e6;
  --azure-600: #0284c7;
  --azure-500: #0ea5e9;
  --azure-100: #e0f2fe;

  /* --- sirt va chiziqlar --- */
  --bg-main: #f5f7fb;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e5e9f1;
  --line-strong: #d5dce7;

  /* --- matn (ink) --- */
  --ink: #0e1c30;
  --ink-2: #4b596e;
  --ink-3: #7d8a9c;
  --ink-invert: #f3f7fc;
  --ink-invert-2: #c3cfdf;

  /* --- holat ranglari --- */
  --success: #0e9268;
  --success-bg: #e6f6ef;
  --warning: #b97a12;
  --warning-bg: #fdf3e2;
  --danger: #cf3f3f;
  --danger-bg: #fdeded;
  --info: #1d4ed8;
  --info-bg: #eaf0fe;

  /* --- tipografiya --- */
  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --fs-h1: clamp(1.95rem, 1.05rem + 3.6vw, 3.4rem);
  --fs-h2: clamp(1.5rem, 1.06rem + 1.7vw, 2.3rem);
  --fs-h3: clamp(1.1rem, 1.02rem + 0.45vw, 1.38rem);
  --fs-lead: clamp(1rem, 0.95rem + 0.3vw, 1.14rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;
  --fs-micro: 0.72rem;

  /* --- oraliq (4px grid) va layout --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --container: 1220px;
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(56px, 7.5vw, 100px);
  --nav-h: 68px;

  /* --- radius: 2 qiymat + pill --- */
  --rc: 12px;
  --rk: 20px;
  --rp: 999px;

  /* --- soyalar (4 daraja) --- */
  --sh-1: 0 1px 2px rgba(10, 31, 56, 0.05), 0 1px 3px rgba(10, 31, 56, 0.06);
  --sh-2: 0 2px 4px rgba(10, 31, 56, 0.05), 0 10px 22px -8px rgba(10, 31, 56, 0.16);
  --sh-3: 0 24px 48px -20px rgba(10, 31, 56, 0.3);
  --sh-4: 0 34px 64px -26px rgba(6, 18, 34, 0.45);

  /* --- harakat --- */
  --dur: 180ms;
  --dur-2: 260ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* --- eski nomlar (shablonlar/admin var() bilan chaqiradi — moslik uchun) --- */
  --primary-dark: var(--navy-900);
  --primary-blue: var(--navy-700);
  --primary-light: var(--navy-500);
  --accent-gold: var(--gold-500);
  --accent-gold-light: var(--gold-100);
  --accent-azure: var(--azure-500);
  --bg-card: var(--surface);
  --border-color: var(--line);
  --text-main: var(--ink);
  --text-muted: var(--ink-2);
  --text-light: var(--ink-3);
  --radius-sm: 10px;
  --radius-md: var(--rc);
  --radius-lg: 16px;
  --radius-xl: var(--rk);
  --shadow-sm: var(--sh-1);
  --shadow-md: var(--sh-2);
  --shadow-lg: var(--sh-3);
  --shadow-xl: var(--sh-4);
  --transition-fast: 160ms ease;
}

/* =========================== BAZA =========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--bg-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Diqqat: bu yerda `color` berilmaydi — sarlavhalar kontekstdan rang oladi
   (masalan qorong'i hero/loginda oq, oq kartochkalarda --ink meros bo'lib qoladi) */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: 1.02rem; }

img { max-width: 100%; }

a { color: var(--navy-600); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--gold-300); color: var(--navy-900); }

/* Ankoraga o'tishda yopishqoq sarlavha ostida qolmasin */
section[id], div[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

/* =========================== UTILITLAR =========================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-header {
  max-width: 780px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy-600);
  background: rgba(15, 59, 108, 0.07);
  border: 1px solid rgba(15, 59, 108, 0.12);
  font-weight: 700;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--rp);
  margin-bottom: 14px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.section-desc {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  line-height: 1.68;
}

/* Scroll-reveal (faqat JS bor bo'lganda yashiriladi) */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  will-change: opacity, transform;
}
html.js .reveal.in { opacity: 1; transform: none; }

html.js .stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
html.js .stagger.in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal,
  html.js .stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================== YUQORI QATOR =========================== */
.header-top {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--ink-invert-2);
  font-size: 0.8rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.top-links { flex: 0 0 auto; }

.top-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-width: 0;
}

/* Diqqat: display faqat sinf selektorlarida beriladi — shunda media-query'dagi
   `.top-agency { display: none }` ustun keladi (avval `.top-info span` yutib,
   matnlar ustma-ust tushardi) */
.top-agency,
.top-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
}

.top-info i { color: var(--gold-300); }
.top-agency img { flex: 0 0 auto; }
.top-phone { font-variant-numeric: tabular-nums; }
.top-info a { color: #fff; font-weight: 700; text-decoration: none; }
.top-info a:hover { color: var(--gold-300); }
.ph-extra { color: var(--ink-invert-2); }

.top-links a {
  color: var(--ink-invert-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: var(--rp);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition: color var(--dur) ease, border-color var(--dur) ease, background var(--dur) ease;
  font-weight: 600;
  white-space: nowrap;
}

.top-links a:hover {
  color: #fff;
  border-color: rgba(201, 151, 56, 0.55);
  background: rgba(201, 151, 56, 0.14);
}

.top-links .lbl-short { display: none; }

@media (max-width: 1240px) {
  .top-links .lbl-full { display: none; }
  .top-links .lbl-short { display: inline; }
}

@media (max-width: 940px) {
  .top-agency { display: none; }
  .top-info { gap: 12px; }
}

@media (max-width: 560px) {
  .header-top { font-size: 0.75rem; padding: 7px 0; }
  .ph-label, .ph-extra { display: none; }
  .top-links a { padding: 3px 9px; }
  .top-links .lbl-short::before { content: '\f023'; font-family: 'Font Awesome 6 Free'; font-weight: 900; }
}

/* =========================== ASOSIY NAVIGATSIYA =========================== */
.main-navbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -18px rgba(10, 31, 56, 0.5);
  padding: 10px 0;
}

/* Shisha effekt faqat katta ekranlarda: mobil tortma panel (position:fixed)
   backdrop-filter ostida buzilmasligi uchun */
@media (min-width: 1281px) {
  .main-navbar {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
  }
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: max-content;
}

.emblem-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px rgba(15, 59, 108, 0.22));
  transition: transform var(--dur-2) var(--ease);
}

.logo-group:hover .emblem-img { transform: scale(1.05); }

.logo-text {
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-text h1 {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--navy-700);
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
}

.logo-text p {
  font-size: 0.78rem;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 9px 11px;
  border-radius: var(--rc);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: color var(--dur) ease, background var(--dur) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}

.nav-link:hover { color: var(--navy-700); background: var(--surface-2); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--navy-700); }
.nav-link.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-actions .btn { min-height: 42px; padding: 9px 18px; font-size: 0.88rem; white-space: nowrap; flex-shrink: 0; }
.nav-cta-mobile { display: none; }

/* --- Mobil menyu tugmasi (gamburger) --- */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--rc);
  background: var(--surface);
  color: var(--navy-700);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: border-color var(--dur) ease, background var(--dur) ease, transform var(--dur) ease;
}

.nav-toggle:hover { border-color: var(--navy-500); background: var(--surface-2); }
.nav-toggle:active { transform: scale(0.97); }

.nav-toggle .bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur) ease, top var(--dur-2) var(--ease);
}

.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* --- Fon to'sig'i --- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(5, 14, 28, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-2) ease, visibility var(--dur-2) ease;
  touch-action: none;
}

.nav-backdrop.open { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* Tortma panel sarlavhasi faqat mobil menyuda ko'rinadi (desktopda yashirilgan) */
.nav-drawer-header { display: none; }

/* --- Planshet / telefon: menyu tortma panelga o'tadi (1280px dan past) --- */
@media (max-width: 1280px) {
  .nav-toggle { display: inline-flex; }
  .nav-actions { display: none; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 60px -30px rgba(6, 18, 34, 0.5);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform var(--dur-2) var(--ease), visibility var(--dur-2) var(--ease);
  }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 4px 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .nav-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--navy-700);
    letter-spacing: -0.01em;
  }
  .nav-drawer-brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
  .nav-drawer-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .nav-drawer-close:hover,
  .nav-drawer-close:active {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
  }

  .nav-menu:has(.nav-drawer-header)::before {
    display: none;
  }

  .nav-menu:not(:has(.nav-drawer-header))::before {
    content: "Bo'limlar";
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-micro);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    padding: 6px 14px 12px;
  }

  .nav-menu.open { transform: translateX(0); visibility: visible; }

  .nav-menu li { width: 100%; }

  .nav-link {
    width: 100%;
    padding: 14px 14px;
    border-radius: var(--rc);
    font-size: 0.98rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-link::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 22px;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
  }

  .nav-link:hover::after,
  .nav-link.active::after { transform: translateY(-50%) scaleY(1); }

  .nav-menu li:last-child .nav-link { border-bottom: none; }

  .nav-cta-mobile {
    display: block;
    margin-top: 18px;
    padding: 0 14px;
  }

  .nav-cta-mobile .btn { width: 100%; }
  .nav-cta-mobile .nav-drawer-note {
    font-size: var(--fs-xs);
    color: var(--ink-3);
    margin-top: 12px;
    text-align: center;
  }

  /* JS o'chirilgan brauzerlar uchun zaxira: menyu oddiy ro'yxat bo'lib ko'rinadi */
  html:not(.js) .navbar-inner { flex-wrap: wrap; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-menu {
    position: static;
    width: 100%;
    transform: none;
    visibility: visible;
    padding: 6px 0 0;
    border-left: 0;
    box-shadow: none;
  }
  html:not(.js) .nav-menu::before { display: none; }
  html:not(.js) .nav-cta-mobile { padding: 0 14px; }
}

@media (max-width: 480px) {
  .emblem-img { width: 42px; height: 42px; }
  .logo-text h1 { font-size: 0.88rem; }
  .logo-text p { font-size: 0.72rem; }
  .nav-toggle { width: 44px; height: 44px; }
}

/* =========================== TUGMALAR =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--rc);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}

.btn i { font-size: 0.95em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[disabled],
.btn.is-loading {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(15, 59, 108, 0.75);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  box-shadow: 0 12px 26px -12px rgba(15, 59, 108, 0.85);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-300) 100%);
  color: var(--navy-900);
  box-shadow: 0 8px 20px -10px rgba(201, 151, 56, 0.8);
}

.btn-gold:hover { background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-500) 100%); }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--navy-500);
  color: var(--navy-700);
  background: rgba(15, 59, 108, 0.05);
}

.btn-tg { background: #24a1de; color: #fff; }
.btn-tg:hover { background: #1d8bc0; }

.btn-lg { min-height: 50px; padding: 14px 28px; font-size: 0.98rem; border-radius: var(--rc); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.84rem; }
.btn-block { width: 100%; }

@media (max-width: 560px) {
  .btn-lg { width: 100%; }
}

/* =========================== HERO =========================== */
.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(48px, 7vw, 76px) 0 clamp(96px, 11vw, 132px);
  background:
    radial-gradient(1100px 520px at 84% -8%, rgba(14, 165, 233, 0.22), transparent 62%),
    radial-gradient(760px 420px at 2% 108%, rgba(201, 151, 56, 0.18), transparent 60%),
    linear-gradient(150deg, var(--navy-950) 0%, var(--navy-800) 52%, #0a2747 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.hero-content { min-width: 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(201, 151, 56, 0.16);
  border: 1px solid rgba(201, 151, 56, 0.42);
  color: var(--gold-100);
  padding: 7px 15px;
  border-radius: var(--rp);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-badge.hero-badge-azure {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.42);
  color: #bae6fd;
}

.hero-badge img { flex: 0 0 auto; }

.hero-title {
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero-title span {
  background: linear-gradient(120deg, var(--gold-100) 0%, var(--gold-300) 45%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-desc {
  font-size: var(--fs-lead);
  color: var(--ink-invert-2);
  line-height: 1.72;
  max-width: 62ch;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-buttons .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.hero-buttons .btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}

/* --- Tezkor kuzatish kartasi --- */
.hero-quick-card {
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--rk);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--sh-4);
  min-width: 0;
}

.quick-card-title {
  font-size: 1.24rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.quick-card-desc {
  font-size: var(--fs-sm);
  color: var(--ink-invert-2);
  margin-bottom: 18px;
}

.quick-search-box {
  display: flex;
  align-items: stretch;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--rc);
  padding: 5px;
  margin-bottom: 20px;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}

.quick-search-box:focus-within {
  border-color: rgba(201, 151, 56, 0.7);
  box-shadow: 0 0 0 3px rgba(201, 151, 56, 0.18);
}

.quick-search-box input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 11px 14px;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  outline: none;
}

.quick-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.quick-search-box .btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 18px;
  border-radius: calc(var(--rc) - 2px);
}

.telegram-connect-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(36, 161, 222, 0.14);
  border: 1px dashed rgba(56, 189, 248, 0.45);
  border-radius: var(--rc);
  padding: 15px 16px;
}

.tg-icon-box {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #24a1de;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 21px;
  box-shadow: 0 10px 20px -10px rgba(36, 161, 222, 0.9);
}

.tg-text { min-width: 0; }
.tg-text h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.tg-text p { font-size: var(--fs-xs); color: var(--ink-invert-2); line-height: 1.5; }

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 6px 13px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #7dd3fc;
  text-decoration: none;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: var(--rp);
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}

.tg-link:hover {
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
}

.tg-link i { font-size: 0.78rem; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-desc { margin-bottom: 26px; }
}

@media (max-width: 560px) {
  .hero-section { padding-bottom: 84px; }
  .quick-card-title { font-size: 1.12rem; }
  .telegram-connect-banner { align-items: flex-start; }
  .tg-icon-box { width: 42px; height: 42px; }
}

/* =========================== OCHIQ STATISTIKA =========================== */
.stats-strip {
  position: relative;
  z-index: 3;
  margin-top: clamp(-64px, -5vw, -40px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: clamp(16px, 1.8vw, 22px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rk);
  box-shadow: var(--sh-2);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
    border-color var(--dur-2) ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: var(--line-strong);
}

.stat-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.icon-blue { background: #eaf1fe; color: #2258d6; }
.icon-yellow { background: var(--warning-bg); color: #b97a12; }
.icon-green { background: var(--success-bg); color: #0e9268; }
.icon-purple { background: #f2edfe; color: #6d3fd1; }

.stat-info { min-width: 0; }

.stat-info h3 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-info p {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 5px;
}

@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .stats-strip { margin-top: -44px; }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 11px; padding: 16px; }
  .stat-icon { width: 42px; height: 42px; font-size: 18px; border-radius: 12px; }
  .stat-info p { font-size: 0.76rem; }
}

/* =========================== TIZIM ISHLASHI (WORKFLOW) =========================== */
.workflow-section {
  position: relative;
  padding: var(--section-y) 0;
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-soft) 100%);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.workflow-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rk);
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
    border-color var(--dur-2) ease;
}

.workflow-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-700), var(--azure-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}

@media (hover: hover) {
  .workflow-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-3);
    border-color: rgba(14, 165, 233, 0.35);
  }
  .workflow-card:hover::before { transform: scaleX(1); }
}

.workflow-watermark {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: #eef2f8;
  user-select: none;
  pointer-events: none;
  transition: color var(--dur-2) ease;
}

.workflow-card:hover .workflow-watermark { color: #e2e8f3; }

.workflow-icon-wrap {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 12px 22px -12px rgba(9, 23, 44, 0.6);
}

.wf-icon-1 { background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%); color: #fff; }
.wf-icon-2 { background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-500) 100%); color: var(--gold-100); }
.wf-icon-3 { background: linear-gradient(135deg, #059669 0%, #34d399 100%); color: #fff; }
.wf-icon-4 { background: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%); color: #fff; }

.workflow-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 11px;
  margin-bottom: 12px;
  border-radius: var(--rp);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wf-badge-1 { background: var(--azure-100); color: var(--azure-600); }
.wf-badge-2 { background: var(--warning-bg); color: #b45309; }
.wf-badge-3 { background: var(--success-bg); color: #047857; }
.wf-badge-4 { background: #f2edfe; color: #6d28d9; }

.workflow-card-title {
  position: relative;
  z-index: 1;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.34;
  margin-bottom: 9px;
}

.workflow-card-text {
  position: relative;
  z-index: 1;
  flex: 1;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.62;
  margin-bottom: 16px;
}

.workflow-result-box {
  position: relative;
  z-index: 1;
  padding: 11px 13px;
  background: var(--surface-2);
  border-left: 3px solid var(--azure-600);
  border-radius: 0 10px 10px 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #33415a;
  line-height: 1.55;
}

.workflow-result-box code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: #e9eef7;
  padding: 1px 5px;
  border-radius: 5px;
}

.wf-card-1 .workflow-result-box { border-left-color: var(--azure-600); }
.wf-card-2 .workflow-result-box { border-left-color: var(--gold-500); }
.wf-card-3 .workflow-result-box { border-left-color: var(--success); }
.wf-card-4 .workflow-result-box { border-left-color: #8b5cf6; }

/* Yo'nalishlar paneli (chips) */
.workflow-categories-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(20px, 3vw, 34px);
  padding: clamp(16px, 2.2vw, 24px) clamp(16px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rk);
  box-shadow: var(--sh-1);
}

.wf-bar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy-700);
}

.wf-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--rp);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #33415a;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease,
    transform var(--dur) ease;
}

.wf-chip:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 1080px) {
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-card { padding: 24px 18px 20px; }
  .workflow-categories-bar { flex-direction: column; align-items: flex-start; }
  .wf-chips-list { width: 100%; }
  .wf-chip { width: 100%; justify-content: flex-start; }
}

/* =========================== DAVLAT IMTIYOZLARI =========================== */
.privileges-section {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privilege-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
  margin-bottom: clamp(32px, 4vw, 52px);
}

.privilege-main-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--rk);
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
    border-color var(--dur-2) ease, background-color var(--dur-2) ease;
}

@media (hover: hover) {
  .privilege-main-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-3);
    border-color: rgba(14, 165, 233, 0.35);
    background: var(--surface);
  }
}

.privilege-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: var(--rp);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-ielts { background: var(--azure-100); color: var(--azure-600); }
.badge-study { background: var(--warning-bg); color: #b45309; }
.badge-daftari { background: var(--success-bg); color: #047857; }

.privilege-main-title {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--navy-700);
  line-height: 1.32;
  margin-bottom: 16px;
}

.privilege-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  font-size: 0.88rem;
  color: #33415a;
}

.privilege-details-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--line);
}

.privilege-details-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.privilege-details-list .param-label {
  font-size: var(--fs-micro);
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.privilege-details-list .param-value {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* 12 ta imtiyoz sarlavha paneli */
.privilege-12-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(20px, 2.6vw, 30px);
  padding: clamp(20px, 2.8vw, 30px) clamp(20px, 3vw, 34px);
  border-radius: var(--rk);
  color: #fff;
  background:
    radial-gradient(600px 240px at 88% -30%, rgba(201, 151, 56, 0.28), transparent 70%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  box-shadow: var(--sh-3);
}

.privilege-12-title { min-width: 0; }

.privilege-12-title h3 {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.32rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.32;
}

.privilege-12-title h3 i { color: var(--gold-100); margin-top: 4px; }

.privilege-12-title p {
  font-size: var(--fs-sm);
  color: var(--ink-invert-2);
  margin-top: 6px;
}

.privilege-12-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--rp);
  background: rgba(201, 151, 56, 0.2);
  border: 1px solid rgba(201, 151, 56, 0.45);
  color: var(--gold-100);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}

.privileges-12-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.privilege-item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
    border-color var(--dur-2) ease, background-color var(--dur-2) ease;
}

@media (hover: hover) {
  .privilege-item-card:hover {
    background: var(--surface);
    border-color: #7cc2ec;
    transform: translateY(-4px);
    box-shadow: var(--sh-2);
  }
}

.p-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.p-item-num-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 8px 16px -10px rgba(9, 23, 44, 0.55);
}

.p-icon-green { background: var(--success-bg); color: #059669; }
.p-icon-blue { background: #eaf1fe; color: #1d4ed8; }
.p-icon-purple { background: #f2edfe; color: #6d28d9; }
.p-icon-amber { background: var(--warning-bg); color: #b45309; }

.p-item-category {
  padding: 4px 9px;
  border-radius: 8px;
  background: #e8edf5;
  color: #475569;
  font-size: var(--fs-micro);
  font-weight: 700;
  text-align: right;
  line-height: 1.4;
}

.p-item-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.34;
  margin-bottom: 7px;
}

.p-item-desc {
  flex: 1;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
}

.p-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
}

@media (max-width: 1080px) {
  .privilege-top-grid { grid-template-columns: 1fr; }
  .privileges-12-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .privilege-top-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .privileges-12-grid { grid-template-columns: 1fr; }
  .privilege-12-header { flex-direction: column; align-items: flex-start; }
}

/* =========================== MUROJAAT FORMASI =========================== */
.form-section {
  padding: var(--section-y) 0;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(14, 165, 233, 0.07), transparent 60%),
    var(--bg-main);
}

.form-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rk);
  box-shadow: var(--sh-3);
  overflow: hidden;
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 4vw, 40px);
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--azure-600) 130%);
}

.form-card-header-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gold-100);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.form-card-header-text { min-width: 0; }

.form-card-header-text h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 700;
  color: #fff;
}

.form-card-header-text p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 3px;
}

.form-body { padding: clamp(20px, 4vw, 40px); }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 4px;
}

.form-group { margin-bottom: 20px; min-width: 0; }
.form-group.full-width { grid-column: 1 / -1; }

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

.form-label .req,
.req { color: var(--danger); }

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--rc);
  outline: none;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease, background var(--dur) ease;
}

.form-control::placeholder { color: var(--ink-3); }

.form-control:hover { border-color: #c2cddd; }

.form-control:focus {
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(30, 91, 163, 0.14);
}

.form-control:disabled {
  background: var(--bg-soft);
  color: var(--ink-3);
  cursor: not-allowed;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%234b596e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}

textarea.form-control {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
}

.file-upload-box {
  position: relative;
  padding: 24px 20px;
  text-align: center;
  background: var(--surface-2);
  border: 2px dashed var(--line-strong);
  border-radius: var(--rc);
  cursor: pointer;
  transition: border-color var(--dur) ease, background var(--dur) ease;
}

.file-upload-box:hover,
.file-upload-box:focus-within,
.file-upload-box.dragover {
  border-color: var(--navy-500);
  background: #eef4fc;
}

.file-upload-box input[type='file'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon { font-size: 30px; color: var(--navy-600); margin-bottom: 8px; }
.file-upload-text { font-size: var(--fs-sm); color: var(--ink-2); }
.file-upload-name {
  margin-top: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--navy-600);
  overflow-wrap: anywhere;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

@media (max-width: 820px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: 18px; }
  .form-submit { justify-content: stretch; }
  .form-submit .btn { width: 100%; }
}

/* =========================== XABAR BLOKLARI (ALERT) =========================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  margin-bottom: 22px;
  border: 1px solid transparent;
  border-radius: var(--rc);
  font-size: 0.92rem;
  line-height: 1.55;
}

.alert > i { margin-top: 3px; flex: 0 0 auto; }
.alert-success { background: var(--success-bg); border-color: #a7e6cd; color: #065f46; }
.alert-danger { background: var(--danger-bg); border-color: #f6c9c9; color: #991b1b; }
.alert-info { background: var(--info-bg); border-color: #c9d8fb; color: #1e40af; }
.alert-warning { background: var(--warning-bg); border-color: #f2ddb4; color: #92400e; }

/* =========================== MODAL =========================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 14, 28, 0.66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-2) ease, visibility var(--dur-2) ease;
}

.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  background: var(--surface);
  border-radius: var(--rk);
  box-shadow: var(--sh-4);
  overflow: hidden;
  transform: translateY(18px) scale(0.985);
  transition: transform var(--dur-2) var(--ease);
}

.modal-backdrop.active .modal-box { transform: none; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-title { font-size: 1.14rem; font-weight: 700; color: var(--navy-900); }

.modal-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--dur) ease, color var(--dur) ease;
}

.modal-close:hover { background: var(--bg-soft); color: var(--ink); }

.modal-body { padding: clamp(20px, 3vw, 28px); overflow-y: auto; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px clamp(20px, 3vw, 28px);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.success-code-display { text-align: center; padding: 8px 0 4px; }

.success-check-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #059669;
  background: var(--success-bg);
  border: 2px solid #b7e6d3;
}

.code-badge-box {
  margin: 20px 0;
  padding: 16px;
  background: #eef4fe;
  border: 2px dashed #7fa6e8;
  border-radius: var(--rc);
}

.code-badge-box span {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-badge-box strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 4.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy-700);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-box {
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  .modal-backdrop.active .modal-box { transform: translateY(0); }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1 1 auto; }
}

/* =========================== HOLAT BELGILARI (track sahifa) =========================== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--rp);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-new { background: #fef3c7; color: #92400e; }
.badge-in_progress { background: #dbeafe; color: #1e40af; }
.badge-resolved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* Track sahifasidagi belgiga nuqta indikatori (faqat .track-badge bilan) */
.track-badge { padding: 6px 13px; font-size: 0.8rem; }

.track-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

/* =========================== FOOTER =========================== */
.footer {
  margin-top: auto;
  padding: clamp(40px, 6vw, 64px) 0 26px;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(14, 165, 233, 0.12), transparent 60%),
    var(--navy-900);
  color: #97a6bb;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(26px, 4vw, 50px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.68;
  max-width: 430px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }

.footer-col li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.89rem;
  line-height: 1.55;
}

.footer-col li i { margin-top: 4px; color: var(--gold-500); flex: 0 0 auto; font-size: 0.85rem; }

.footer-col a {
  color: #97a6bb;
  text-decoration: none;
  transition: color var(--dur) ease;
}

.footer-col a:hover { color: var(--gold-300); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-bottom a { color: #97a6bb; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-300); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================== KATTA EKRANLAR =========================== */
@media (min-width: 1440px) {
  :root { --container: 1280px; }
  .hero-desc { font-size: 1.1rem; }
}

@media (min-width: 1800px) {
  :root { --container: 1360px; }
}

/* ==========================================================================
   MOBIL JILO — 2026-10-15 (resp2)
   Telefonda hero nishoni ikki qatorga chiqsa ham chiroyli turishi va
   tugmalar barmoq bilan oson bosilishi uchun.
   ========================================================================== */
@media (max-width: 620px) {
  .hero-badge {
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 6px 12px;
    gap: 7px;
  }
  .hero-badge img { width: 16px; height: 16px; }

  .hero-buttons { gap: 10px; }
  .hero-buttons .btn { flex: 1 1 100%; }
}


/* =========================================================================
   TUNGI / KUNDUZGI MAVZU (DARK & LIGHT THEME) — qo'shildi: 2026-10-15
   Almashtirgich: .theme-toggle tugmasi (theme.js) → html[data-theme="dark"]
   ========================================================================= */

/* --- Mavzu almashtirgich tugmasi --- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--dur) ease, border-color var(--dur) ease, background var(--dur) ease, transform var(--dur) ease;
}
.theme-toggle:hover { color: var(--navy-700); border-color: var(--line-strong); background: var(--surface); }
.theme-toggle:active { transform: scale(0.96); }

/* Yuqori panel (header-top) ichida — ixcham ko'rinish */
.top-links { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.top-links .theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--rp);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-invert-2);
  font-size: 0.85rem;
}
.top-links .theme-toggle:hover { color: var(--gold-300); border-color: rgba(201, 151, 56, 0.55); background: rgba(201, 151, 56, 0.14); }

@media (max-width: 480px) {
  .theme-toggle { width: 42px; height: 42px; }
}

/* --- Rang tokenlari (tungi mavzu) --- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg-main: #0b1424;
  --bg-soft: #0f1c30;
  --surface: #111d31;
  --surface-2: #17253d;
  --line: #24344e;
  --line-strong: #33465f;
  --ink: #e8eef9;
  --ink-2: #b5c2d8;
  --ink-3: #8695ad;
  --success-bg: #0e2c22;
  --warning-bg: #33270f;
  --danger-bg: #391b1e;
  --info-bg: #17234a;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.35);
  --sh-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 10px 22px -8px rgba(0, 0, 0, 0.55);
  --sh-3: 0 24px 48px -20px rgba(0, 0, 0, 0.66);
  --sh-4: 0 34px 64px -26px rgba(0, 0, 0, 0.75);
}

html[data-theme="dark"] body { background-color: var(--bg-main); }
html[data-theme="dark"] body[style] { background-color: var(--bg-main) !important; }
html[data-theme="dark"] a:not([class]) { color: #8ab8ea; }
html[data-theme="dark"] a:not([class]):hover { color: #a9cdf3; }

/* Navigatsiya */
html[data-theme="dark"] .main-navbar { background: rgba(13, 22, 38, 0.96); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.9); }
html[data-theme="dark"] .logo-text h1 { color: #d7e3f5 !important; }
html[data-theme="dark"] .nav-link:hover { color: #d7e3f5; background: var(--surface-2); }
html[data-theme="dark"] .nav-link.active { color: #e3ecfa; }
html[data-theme="dark"] .nav-toggle { color: var(--ink-2); }
html[data-theme="dark"] .theme-toggle:hover { color: #d7e3f5; }
html[data-theme="dark"] .nav-drawer-close { color: var(--ink-2); }

/* Sarlavhalar va asosiy matnlar */
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .stat-info h3,
html[data-theme="dark"] .modal-title,
html[data-theme="dark"] .code-badge-box strong { color: var(--ink); }
html[data-theme="dark"] .wf-bar-title,
html[data-theme="dark"] .privilege-main-title { color: #cddcf0; }
html[data-theme="dark"] .section-tag { color: #9dc2e8; background: rgba(122, 174, 229, 0.1); border-color: rgba(122, 174, 229, 0.24); }
html[data-theme="dark"] .workflow-result-box { color: #cbd8ea; }
html[data-theme="dark"] .workflow-result-box code { background: #1b2a44; color: #cfe0f4; }
html[data-theme="dark"] .wf-chip { color: #cbd8ea; }
html[data-theme="dark"] .privilege-details-list { color: #c3d0e2; }
html[data-theme="dark"] .p-item-category { background: #1b2a44; color: #aab9d0; }
html[data-theme="dark"] .p-item-desc { color: #aab9d0; }
html[data-theme="dark"] .file-upload-icon,
html[data-theme="dark"] .file-upload-name { color: #9dc2e8; }
html[data-theme="dark"] .file-upload-box:hover,
html[data-theme="dark"] .file-upload-box:focus-within,
html[data-theme="dark"] .file-upload-box.dragover { background: #16263f; }
html[data-theme="dark"] .code-badge-box { background: #16263f; border-color: #33507e; }

/* Kichik ikonka va badge bloklari */
html[data-theme="dark"] .icon-blue { background: #16294d; color: #7fa8f0; }
html[data-theme="dark"] .icon-purple { background: #241a3f; color: #b39df1; }
html[data-theme="dark"] .icon-green { color: #58d3a8; }
html[data-theme="dark"] .icon-yellow { color: #e8c07a; }
html[data-theme="dark"] .wf-badge-1 { background: #10283f; color: #6db6ea; }
html[data-theme="dark"] .wf-badge-2 { background: #33270f; color: #e5b96b; }
html[data-theme="dark"] .wf-badge-3 { background: #0e2c22; color: #5ecfa4; }
html[data-theme="dark"] .wf-badge-4 { background: #241a3f; color: #b39df1; }
html[data-theme="dark"] .badge-ielts { background: #10283f; color: #6db6ea; }
html[data-theme="dark"] .badge-study { background: #33270f; color: #e5b96b; }
html[data-theme="dark"] .badge-daftari { background: #0e2c22; color: #5ecfa4; }
html[data-theme="dark"] .p-icon-blue { background: #16294d; color: #7fa8f0; }
html[data-theme="dark"] .p-icon-purple { background: #241a3f; color: #b39df1; }
html[data-theme="dark"] .p-icon-green { color: #58d3a8; }
html[data-theme="dark"] .p-icon-amber { color: #e8c07a; }

/* Holat badge'lari */
html[data-theme="dark"] .badge-new { background: rgba(250, 204, 21, 0.16); color: #fcd34d; }
html[data-theme="dark"] .badge-in_progress { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
html[data-theme="dark"] .badge-resolved { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
html[data-theme="dark"] .badge-rejected { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }

/* Xabarnoma (alert) bloklari */
html[data-theme="dark"] .alert-success { border-color: rgba(110, 231, 183, 0.35); color: #8fe3c0; }
html[data-theme="dark"] .alert-danger { border-color: rgba(252, 165, 165, 0.35); color: #f6b4b4; }
html[data-theme="dark"] .alert-info { border-color: rgba(147, 197, 253, 0.35); color: #a8c6f8; }
html[data-theme="dark"] .alert-warning { border-color: rgba(229, 185, 107, 0.35); color: #ecc98a; }

/* Kuzatuv sahifasi (track.html) inline bloklari */
html[data-theme="dark"] .track-search-container,
html[data-theme="dark"] .track-result-container { background: var(--surface); }
html[data-theme="dark"] .stepper::before { background: #2a3b55; }
html[data-theme="dark"] .step-circle { background: var(--surface); border-color: #33465f; color: #8695ad; }
html[data-theme="dark"] .step-label { color: #b5c2d8; }
html[data-theme="dark"] .step-item.current .step-label { color: #d7e3f5; }
html[data-theme="dark"] .track-code-label { color: #8695ad; }
html[data-theme="dark"] .detail-grid { background: var(--surface-2); }
html[data-theme="dark"] .detail-item span { color: #8695ad; }
html[data-theme="dark"] .detail-item strong { color: var(--ink); }
html[data-theme="dark"] .reply-box { background: rgba(16, 185, 129, 0.08); border-color: rgba(110, 231, 183, 0.3); }
html[data-theme="dark"] .reply-header { color: #8fe3c0; }
html[data-theme="dark"] #t_problem { background: var(--surface-2) !important; color: #c3d0e2 !important; }

/* Maqola sahifasi (news_detail.html) inline bloklari */
html[data-theme="dark"] .article-main,
html[data-theme="dark"] .sidebar-card { background: var(--surface); border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .article-lead { background: var(--surface-2); color: #c3d0e2; }

/* Inline oq fonlar (bo'sh holat bloklari va h.k.) */
html[data-theme="dark"] [style*="background: #fff;"],
html[data-theme="dark"] [style*="background: #ffffff;"] { background: var(--surface) !important; }
