/* namsifl.uz - shablondan tashqari o'zgartirishlar */

/* ==========================================================================
   Dizayn tokenlari
   ========================================================================== */
:root {
  /* Shrift: Inter (assets/fonts/inter, fonts.css), yuklanmasa tizim shrifti */
  --default-font: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  --heading-font: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  --nav-font: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;

  /* Ranglar: ko'k (asosiy) va logotipdagi ko'k-yashil (urg'u) */
  --brand-navy: #04415f;
  --brand-navy-dark: #022a3f;
  --brand-teal: #0a8a9a;        /* faqat bezak: fon, chiziq, belgi (matn uchun kontrast yetmaydi) */
  --brand-teal-text: #087a88;   /* matn, havola, oq matnli tugma foni (oqda 5.06:1) */
  --brand-teal-dark: #066570;   /* teal tugmaning hover holati */
  --brand-teal-light: #ecf7f8;  /* och fon: chip, belgi, faol punkt */

  /* Neytral ranglar */
  --text: #1f2d36;
  --text-muted: #5b6b77;        /* oq va --bg-soft fonda 4.5:1 dan yuqori */
  --line: #d6e0e6;
  --bg-soft: #f4f7f9;

  /* shablon o'zgaruvchilari tokenlarga bog'lanadi */
  --default-color: var(--text);
  --nav-hover-color: var(--brand-teal-text);
  --nav-dropdown-hover-color: var(--brand-navy);

  /* Burchaklar */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Soyalar */
  --shadow-1: 0 1px 3px rgba(4, 65, 95, 0.10);
  --shadow-2: 0 6px 20px rgba(4, 65, 95, 0.08);
  --shadow-3: 0 12px 32px rgba(4, 65, 95, 0.14);

  /* Harakat */
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  /* "transition: all" o'rniga - faqat shu xususiyatlar animatsiya qilinadi */
  --transition-ui: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease);

  /* Fokus halqasi (maydonlar uchun) */
  --focus-ring: 0 0 0 3px rgba(8, 122, 136, 0.25);
}

/* harakatni cheklagan foydalanuvchilar uchun animatsiyalar o'chiriladi */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ==========================================================================
   Klaviatura: mazmunga o'tish havolasi va fokus halqasi
   ========================================================================== */
/* faqat fokus olganda chap yuqorida sariq (GOV.UK namunasi) */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 12px 16px;
  background: #ffdd00;
  color: #0b0c0c;
  font-weight: 600;
  text-decoration: underline;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  color: #0b0c0c;
  outline: 3px solid #0b0c0c;
  outline-offset: 0;
}

main:focus {
  outline: 0;
}

:focus-visible {
  outline: 3px solid var(--brand-teal-text);
  outline-offset: 2px;
}

/* Bootstrap o'zining box-shadow halqasini beradi - bir xil halqa qoldiriladi */
.btn:focus-visible,
.btn-check:focus-visible + .btn,
.nav-link:focus-visible,
.page-link:focus-visible,
.dropdown-item:focus-visible,
.accordion-button:focus-visible {
  outline: 3px solid var(--brand-teal-text);
  outline-offset: 2px;
  box-shadow: none;
}

.accordion-button:focus-visible {
  outline-offset: -3px;
}

/* maydonlarda halqa box-shadow orqali (pastda) */
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 0;
}

/* to'q fonlarda halqa oq */
.navbar-header :focus-visible,
.footer :focus-visible,
.a11y-panel :focus-visible,
.hero .hero-wrapper :focus-visible,
.stats :focus-visible,
.page-title :focus-visible,
.calc-result-head :focus-visible,
.summary-cta:focus-visible {
  outline-color: #fff;
}

/* ==========================================================================
   Header va menyu
   ========================================================================== */
.navbar-header {
  background: var(--brand-navy-dark);
  color: #fff;
  font-size: .875rem;
}

.navbar-header a:hover {
  color: #9fdbe4;
}

.navbar-header .btn {
  min-height: 0;
  padding: 2px 8px;
  font-weight: 400;
  border-radius: var(--radius-sm);
}

.header {
  --background-color: #ffffff;
  border-bottom: 1px solid rgba(4, 65, 95, 0.08);
  padding: 8px 0;
}

.header .mw-75 {
  font-size: .9375rem;
  line-height: 1.3;
  color: var(--brand-navy);
}

/* planshet: ustunlar orasi torroq - yuqori qator ikki satrga bo'linmaydi */
@media (max-width: 991.98px) {
  .navbar-header .row > .col-auto {
    padding-left: 6px;
    padding-right: 6px;
  }

  .navbar-header .btn {
    padding: 2px 4px;
  }
}

/* Mobil: yuqori qator bitta satr, header 64px */
@media (max-width: 767.98px) {
  .navbar-header .row {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .navbar-header .row > .col-auto {
    margin-bottom: 0 !important;
    padding-left: 6px;
    padding-right: 6px;
    white-space: nowrap;
  }

  .navbar-header .btn {
    padding: 2px 4px;
  }

  .header {
    padding: 4px 0;
  }

  .header .header-container {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .header .header-container > a img {
    width: 44px;
    height: 44px;
  }

  .header .mw-75 {
    font-size: .8125rem;
  }
}

@media (max-width: 575.98px) {
  /* .fs-6 (1rem !important) tor ekranda kichraytiriladi */
  .navbar-header .fs-6 {
    font-size: .875rem !important;
  }
}

/* Asosiy menyu (desktop) */
@media (min-width: 1200px) {
  .navmenu > ul > li > a {
    position: relative;
    padding: 22px 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
  }

  .navmenu > ul > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    height: 2px;
    background: var(--brand-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }

  .navmenu > ul > li:hover > a::after,
  .navmenu > ul > li.dropdown-open > a::after,
  .navmenu > ul > li:focus-within > a::after,
  .navmenu > ul > li > a.active::after {
    transform: scaleX(1);
  }

  .navmenu > ul > li > a.active {
    color: var(--brand-teal-text);
  }

  .navmenu li:hover > a .toggle-dropdown,
  .navmenu li.dropdown-open > a .toggle-dropdown,
  .navmenu li:focus-within > a .toggle-dropdown {
    transform: rotate(180deg);
  }

  /* Ochiladigan ro'yxat */
  .navmenu .dropdown ul {
    padding: 8px;
    min-width: 260px;
    border-radius: var(--radius);
    border: 1px solid rgba(4, 65, 95, 0.08);
    box-shadow: var(--shadow-3);
  }

  .navmenu .dropdown ul::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(4, 65, 95, 0.08);
    border-top: 1px solid rgba(4, 65, 95, 0.08);
    transform: rotate(45deg);
  }

  .navmenu .dropdown ul li {
    min-width: 0;
  }

  .navmenu .dropdown ul a {
    padding: 10px 14px 10px 18px;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    color: var(--text);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul a:focus-visible,
  .navmenu .dropdown ul li:hover > a,
  .navmenu .dropdown ul a.active {
    background: var(--brand-teal-light);
    color: var(--brand-navy);
    border-left-color: var(--brand-teal);
  }

  .navmenu .dropdown ul a.active {
    font-weight: 600;
  }

  .navmenu a i.external {
    font-size: .6875rem;
    opacity: 0.6;
  }

  /* manzili bor ota punkt: chevron alohida tugma, havolaning o'ng to'ldirmasi ichida turadi */
  .navmenu > ul > li.dropdown > .dropdown-toggle-btn {
    margin-left: -10px;
    padding: 22px 8px 22px 0;
    color: var(--nav-color);
  }

  .navmenu > ul > li.dropdown:hover > .dropdown-toggle-btn,
  .navmenu > ul > li.dropdown.dropdown-open > .dropdown-toggle-btn,
  .navmenu > ul > li.dropdown:focus-within > .dropdown-toggle-btn {
    color: var(--brand-teal-text);
  }

  .navmenu .dropdown ul li.dropdown > .dropdown-toggle-btn {
    padding: 10px 14px;
    color: var(--text);
  }
}

/* Ochiladigan ro'yxat tugmasi (havolasi bor ota punktlarda) */
.navmenu li.dropdown {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.navmenu li.dropdown > a {
  flex: 1 1 auto;
  min-width: 0;
}

.navmenu .dropdown-toggle-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.navmenu .dropdown-toggle-btn i {
  font-size: .75rem;
  transition: transform var(--dur) var(--ease);
}

.navmenu li.dropdown:hover > .dropdown-toggle-btn i,
.navmenu li.dropdown.dropdown-open > .dropdown-toggle-btn i {
  transform: rotate(180deg);
}

.navmenu a:focus-visible,
.navmenu .dropdown-toggle-btn:focus-visible {
  border-radius: var(--radius-sm);
}

/* "burger" - <button>, brauzer ko'rinishi olib tashlanadi */
.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
}

/* Mobil menyu */
@media (max-width: 1199.98px) {
  .navmenu a {
    border-radius: var(--radius-sm);
    margin: 2px 10px;
  }

  .navmenu a:hover,
  .navmenu a.active {
    background: var(--brand-teal-light);
    color: var(--brand-navy);
  }

  .navmenu a.active {
    font-weight: 600;
  }

  /* ichki ro'yxat oqim ichida turadi - havola yonida emas, pastki qatorda */
  .navmenu li.dropdown > ul {
    flex: 1 1 100%;
    min-width: 0;
  }

  .navmenu .dropdown ul {
    border: 0;
    border-left: 2px solid var(--brand-teal);
    border-radius: 0;
    margin: 4px 10px 8px 24px;
    padding: 4px 0;
  }

  .navmenu .dropdown ul a {
    font-size: .9375rem;
    font-weight: 400;
    /* uzun nom kesilib qolmasin, ikki qatorga tushsin */
    white-space: normal;
    line-height: 1.35;
  }

  .navmenu .dropdown-toggle-btn {
    margin: 2px 10px 2px 0;
    padding: 10px 10px 10px 0;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown-toggle-btn i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu .dropdown-toggle-btn:hover i,
  .navmenu li.dropdown.dropdown-open > .dropdown-toggle-btn i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  /* ochiq bo'lim sarlavhasi ajralib tursin */
  .navmenu li.dropdown.dropdown-open > a {
    background: var(--brand-teal-light);
    color: var(--brand-navy);
    font-weight: 600;
  }

  .navmenu li.dropdown.dropdown-open > a > i.toggle-dropdown {
    transform: rotate(180deg);
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  /* tashqi havola belgisi tugmaga o'xshab qolmasin */
  .navmenu a i.external {
    width: auto;
    height: auto;
    font-size: .75rem;
    background: none;
    opacity: 0.55;
  }
}

/* ==========================================================================
   Sayt bo'ylab qidiruv (header)
   ========================================================================== */
.header-search {
  display: flex;
  align-items: center;
  flex: 0 1 170px;
  min-width: 0;
  margin-left: 18px;
  border: 1px solid #6f808c;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.header-search:focus-within {
  border-color: var(--brand-teal-text);
  box-shadow: var(--focus-ring);
}

/* shablon .header ichida --default-color ni oqqa o'zgartiradi, shuning uchun matn rangi aniq ko'rsatiladi */
.header-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 8px 4px 8px 12px;
  font-size: .875rem;
  background: transparent;
  color: var(--brand-navy);
  caret-color: var(--brand-teal-text);
}

/* halqa butun blokda (:focus-within), maydonning o'zida takrorlanmaydi */
.header-search input:focus-visible {
  outline: 0;
}

.header-search input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.header-search button {
  border: 0;
  background: transparent;
  color: var(--brand-navy);
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px 6px 6px;
  line-height: 1;
  cursor: pointer;
}

.header-search button:hover {
  color: var(--brand-teal-text);
}

/* mobil ko'rinishda qidiruv logotipdan keyin, "burger" tugmasidan oldin turadi */
@media (max-width: 1199.98px) {
  .header-search {
    order: 1;
    flex-basis: 150px;
    margin-left: 8px;
    margin-right: 8px;
  }

  .header .navmenu {
    order: 2;
  }
}

/* tor ekran: qidiruv maydoni bo'sh joyni oladi (90px ga qisilib qolmaydi) */
@media (max-width: 575.98px) {
  .header-search {
    flex: 1 1 130px;
    max-width: 220px;
  }

  .header .mw-75 {
    font-size: .75rem;
  }
}

/* juda tor ekranda so'z belgisi yashirinadi - logotipning alt matni qoladi */
@media (max-width: 399.98px) {
  .header .mw-75 {
    display: none;
  }
}

/* ==========================================================================
   Tugmalar: 2 o'lcham (44 / 52px) x 2 ko'rinish (to'ldirilgan / konturli)
   ========================================================================== */
.btn {
  --bs-btn-border-radius: var(--radius-sm);
  --bs-btn-padding-y: .5rem;
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  min-height: 44px;
  transition: var(--transition-ui);
}

.btn-lg {
  --bs-btn-padding-x: 1.75rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-border-radius: var(--radius-sm);
  min-height: 52px;
}

.btn-sm {
  --bs-btn-border-radius: var(--radius-sm);
  --bs-btn-font-size: .875rem;
  min-height: 40px;
}

.btn-primary {
  --bs-btn-bg: var(--brand-navy);
  --bs-btn-border-color: var(--brand-navy);
  --bs-btn-hover-bg: var(--brand-teal-text);
  --bs-btn-hover-border-color: var(--brand-teal-text);
  --bs-btn-active-bg: var(--brand-teal-dark);
  --bs-btn-active-border-color: var(--brand-teal-dark);
  --bs-btn-disabled-bg: var(--brand-navy);
  --bs-btn-disabled-border-color: var(--brand-navy);
}

.btn-outline-secondary {
  --bs-btn-color: var(--brand-navy);
  --bs-btn-border-color: var(--brand-navy);
  --bs-btn-hover-bg: var(--brand-navy);
  --bs-btn-hover-border-color: var(--brand-navy);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-navy-dark);
  --bs-btn-active-border-color: var(--brand-navy-dark);
  --bs-btn-active-color: #fff;
}

/* "Barchasi" havolasi - konturli, 44px */
.btn-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  min-height: 44px;
  padding: 8px 24px;
  border: 2px solid var(--brand-navy);
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
  font-weight: 600;
  transition: var(--transition-ui);
}

.btn-all:hover {
  background: var(--brand-navy);
  color: #fff;
}

/* ==========================================================================
   Formalar: bitta ko'rinish
   ========================================================================== */
.form-control,
.form-select {
  min-height: 44px;
  font-size: 1rem;
  color: var(--text);
  background-color: #fff;
  border: 1px solid #6f808c;
  border-radius: var(--radius-sm);
  box-shadow: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-control {
  padding: .5rem .875rem;
}

.form-select {
  padding: .5rem 2.25rem .5rem .875rem;
}

.form-control-lg,
.form-select-lg,
.input-group-lg > .form-control,
.input-group-lg > .form-select {
  min-height: 48px;
  font-size: 1.0625rem;
  border-radius: var(--radius-sm);
}

textarea.form-control {
  min-height: 120px;
}

.form-control:focus,
.form-select:focus {
  color: var(--text);
  background-color: #fff;
  border-color: var(--brand-teal-text);
  box-shadow: var(--focus-ring);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.form-label {
  font-weight: 500;
  color: var(--text);
  margin-bottom: .375rem;
}

.input-group > .btn {
  min-height: 0;
}

/* ==========================================================================
   Jadvallar: bitta ko'rinish (.data-table)
   ========================================================================== */
.data-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  margin: 0;
  font-size: .9rem;
  color: var(--text);
}

.data-table thead th {
  background: #f3f8fa;
  color: var(--brand-navy);
  font-weight: 600;
  vertical-align: middle;
  border-color: rgba(4, 65, 95, 0.1);
  white-space: nowrap;
}

.data-table td {
  vertical-align: middle;
  border-color: rgba(4, 65, 95, 0.08);
}

.data-table a {
  color: var(--brand-navy);
  font-weight: 500;
}

.data-table a:hover {
  color: var(--brand-teal-text);
}

/* ==========================================================================
   Belgilar (chip) va bo'sh holat
   ========================================================================== */
.badge-lang,
.badge-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-lang {
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
}

.badge-tag {
  background: var(--bg-soft);
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.empty-state,
.calc-empty,
.search-page .alert-light {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.empty-state-icon,
.calc-empty i {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--brand-teal);
  margin-bottom: 12px;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 0 0 4px;
}

.empty-state-text {
  margin: 0;
  font-size: .9375rem;
}

.calc-empty p {
  margin: 0;
}

.alert {
  border-radius: var(--radius);
}

/* ==========================================================================
   Bosh sahifa
   ========================================================================== */
.hero {
  --background-color: transparent;
  background: transparent;
  color: #fff;
}

/* bino surati butun hero foni bo'ladi */
.hero .hero-wrapper {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(500px, 74vh, 720px);
  padding: 140px 0 96px;
  background: var(--brand-navy-dark);
  overflow: hidden;
}

.hero .hero-wrapper > .container {
  width: 100%;
}

.hero .hero-bg,
.hero .hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero .hero-bg img {
  object-fit: cover;
  object-position: 50% 30%;
}

/* matn o'qilishi uchun pastdan va chapdan to'q ko'k soya — bayroqlar va peshtoq ochiq qoladi */
.hero .hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(2, 42, 63, 0.94) 0%, rgba(2, 42, 63, 0.74) 30%, rgba(4, 65, 95, 0.22) 60%, rgba(4, 65, 95, 0) 80%),
    linear-gradient(to right, rgba(2, 42, 63, 0.5) 0%, rgba(2, 42, 63, 0) 55%);
}

.hero .hero-caption {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(2, 42, 63, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .hero .hero-wrapper {
    min-height: clamp(480px, 78vh, 640px);
    padding: 120px 0 100px;
  }

  .hero .hero-bg img {
    object-position: 50% 40%;
  }

  .hero .hero-wrapper::after {
    background: linear-gradient(to top, rgba(2, 42, 63, 0.95) 0%, rgba(2, 42, 63, 0.8) 38%, rgba(4, 65, 95, 0.2) 68%, rgba(4, 65, 95, 0) 85%);
  }
}

.hero .hero-wrapper .hero-content h1 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero .hero-wrapper .hero-content .action-buttons .btn-primary {
  background: var(--brand-teal-text);
  color: #fff;
}

.hero .hero-wrapper .hero-content .action-buttons .btn-primary:hover {
  background: var(--brand-teal-dark);
  color: #fff;
}

.hero .hero-wrapper .hero-content .action-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.hero .hero-wrapper .hero-content .action-buttons .btn-secondary:hover {
  background: #fff;
  color: var(--brand-navy);
}

.hero .feature-cards-wrapper {
  margin-top: -50px;
  padding-bottom: 20px;
}

.hero .feature-cards-wrapper .feature-card {
  border-left: 4px solid var(--brand-teal);
}

.hero .feature-cards-wrapper .feature-card .feature-icon {
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
}

.hero .feature-cards-wrapper .feature-card:hover .feature-icon,
.hero .feature-cards-wrapper .feature-card.active .feature-icon {
  background: var(--brand-teal-text);
  color: #fff;
}

.hero .feature-cards-wrapper .feature-card h3 {
  color: var(--brand-navy);
}

.hero .feature-cards-wrapper .feature-card p {
  color: var(--text-muted);
}

/* ijtimoiy tarmoqlar bandi — hero ostida, och fonda */
.hero .upcoming-event {
  background: transparent;
  color: var(--brand-navy);
  margin: 8px 0 0;
  padding-bottom: 48px;
}

.hero .upcoming-event .event-content {
  gap: 16px 24px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

.hero .upcoming-event .event-content .event-info {
  margin: 0;
}

.hero .upcoming-event .event-content .event-info h3 {
  color: var(--brand-navy);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.hero .upcoming-event .event-content .social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero .upcoming-event .event-content .event-action .btn-event {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--brand-teal-light);
  color: var(--brand-navy);
  font-size: 1.15rem;
  line-height: 1;
}

.hero .upcoming-event .event-content .event-action .btn-event:hover,
.hero .upcoming-event .event-content .event-action .btn-event:focus-visible {
  background: var(--brand-navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .hero .upcoming-event .event-content .event-info {
    margin-bottom: 0;
  }
}

/* Bo'lim sarlavhalari: hammasi bir xil - markazda, ostida qisqa chiziq */
.section-title h2,
.about .about-content h2,
.campus-facilities .section-header h2 {
  display: block;
  position: relative;
  color: var(--brand-navy);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
  padding-bottom: 16px;
}

.section-title h2::after,
.about .about-content h2::after,
.campus-facilities .section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  margin: 0;
  border-radius: 0;
  background: var(--brand-teal);
}

/* Institut haqida */
.about .about-content p {
  color: var(--text);
  line-height: 1.75;
}

.about .about-content .service-link {
  color: var(--brand-teal-text);
  font-weight: 600;
}

.about .about-content .service-link:hover {
  color: var(--brand-navy);
}

/* E'lonlar */
.recent-news {
  --background-color: #ffffff;
}

.recent-news .post-item {
  border: 1px solid rgba(4, 65, 95, 0.06);
}

.recent-news .post-img {
  display: block;
}

.recent-news .category {
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 12px;
}

.recent-news .post-title {
  font-size: 1.25rem;
}

.recent-news .post-item:hover .post-title a {
  color: var(--brand-teal-text);
}

.recent-news .post-meta .read-more,
.news-posts .read-more,
.events .event-item .event-details h3 a {
  color: var(--brand-navy);
  font-weight: 600;
  transition: color var(--dur) var(--ease);
}

.recent-news .post-meta .read-more:hover,
.news-posts .read-more:hover,
.events .event-item .event-details h3 a:hover {
  color: var(--brand-teal-text);
}

.recent-news .post-meta .read-more,
.news-posts .read-more {
  font-size: .875rem;
  white-space: nowrap;
}

.recent-news .post-date {
  color: var(--text-muted);
}

/* Yangiliklar */
.events .event-item {
  border: 1px solid rgba(4, 65, 95, 0.06);
}

.events .event-item .event-image {
  display: block;
}

.events .event-item .event-image .event-date-overlay {
  background: var(--brand-teal-text);
}

.events .event-item .event-details .event-category .badge.academic {
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
}

.events .event-item .event-details .event-category .event-time {
  color: var(--brand-teal-text);
  background: var(--brand-teal-light);
}

.events .event-item .event-details p {
  color: var(--text-muted);
}

.events .event-item .event-details .event-footer .register-btn {
  background: var(--brand-navy);
}

.events .event-item .event-details .event-footer .register-btn:hover {
  background: var(--brand-teal-text);
  color: #fff;
}

/* Davlat ramzlari */
.campus-facilities {
  --background-color: #ffffff;
}

.campus-facilities .facilities-grid .category-card {
  border: 1px solid rgba(4, 65, 95, 0.06);
}

.campus-facilities .facilities-grid .category-card::before {
  background: var(--brand-teal);
}

.campus-facilities .facilities-grid .category-card .card-header h3 {
  color: var(--brand-navy);
}

.campus-facilities .facilities-grid .category-card:hover {
  border-color: var(--brand-teal);
}

/* ==========================================================================
   Ichki sahifalar
   ========================================================================== */
.page-title {
  --background-color: transparent;
  background: linear-gradient(135deg, var(--brand-navy-dark) 0%, var(--brand-navy) 60%, var(--brand-teal-text) 100%);
  color: #fff;
  padding: 34px 0;
}

.page-title h1 {
  color: #fff;
  margin-bottom: 0;
}

.page-title .breadcrumbs ol {
  color: rgba(255, 255, 255, 0.7);
}

.page-title .breadcrumbs ol a {
  color: rgba(255, 255, 255, 0.85);
}

.page-title .breadcrumbs ol a:hover {
  color: #fff;
}

.page-title .breadcrumbs ol li+li::before {
  color: rgba(255, 255, 255, 0.4);
}

.page-title .breadcrumbs ol .current {
  color: #fff;
}

/* Yangiliklar ro'yxati */
.news-posts article {
  border: 1px solid rgba(4, 65, 95, 0.06);
  transition: var(--transition-ui);
}

.news-posts article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}

/* rasm 16:9 - yuklanguncha ham joy band qilinadi */
.news-posts .post-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.news-posts article:hover .post-img img {
  transform: scale(1.05);
}

.news-posts .title {
  line-height: 1.4;
}

.news-posts .title a {
  color: var(--brand-navy);
}

.news-posts .post-category,
.news-posts .post-date {
  color: var(--text-muted);
}

.news-posts .post-footer {
  padding-top: 15px;
  border-top: 1px solid rgba(4, 65, 95, 0.08);
}

.pagination-2 ul li a.active,
.pagination-2 ul li a:hover {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #fff;
}

/* Post ichi: sarlavha bandda, bu yerda toifa, sana va matn */
.blog-details .article-header .meta-categories .category {
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
}

.blog-details .article-header .meta-categories a.category:hover {
  background: var(--brand-teal-text);
  color: #fff;
}

.blog-details .article-header .article-meta .post-info,
.blog-details .article-header .article-meta .author .author-info span {
  color: var(--text-muted);
}

/* bitta maqola: yon ustunsiz, matn ~65-75 belgi kenglikda markazda */
.blog-details .article-single {
  display: block;
}

.blog-details .article-single .article-content.rich-text,
.blog-details .article-single ~ .article-footer {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.blog-details .article-featured-image .swiper-button-prev,
.blog-details .article-featured-image .swiper-button-next {
  color: #fff;
  background: rgba(4, 65, 95, 0.75);
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.blog-details .article-featured-image .swiper-button-prev::after,
.blog-details .article-featured-image .swiper-button-next::after {
  font-size: 1.125rem;
}

.blog-details .article-featured-image .gallery-item a {
  display: block;
}

/* ==========================================================================
   Tahrirlagichdan kelgan matnlar (.rich-text): sahifalar, yangiliklar,
   fakultet/kafedra/bo'lim va xodim sahifalari
   ========================================================================== */
.rich-text {
  line-height: 1.85;
  font-size: 1.0625rem;
  /* bir satrda ~80 belgi qolsin, aks holda ko'z satr boshini yo'qotadi */
  max-width: 78ch;
  /* blok konteynerdan tor bo'lgani uchun markazga olinadi */
  margin-left: auto;
  margin-right: auto;
}

/* yangilik sahifasida "Ulashish" bloki ham matn chizig'ida turadi */
.blog-details .article-footer {
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

.rich-text > p,
.rich-text > div > p,
.rich-text > ul,
.rich-text > ol {
  margin-bottom: 1.15em;
  text-indent: 0;
}

/* Qaror bandlari: "1.", "2." ... raqam chapga chiqariladi */
.rich-text .clause {
  margin-top: 2em;
  padding-left: 2.1em;
  text-indent: -2.1em;
  font-weight: 500;
  color: var(--heading-color);
}

.rich-text .clause:first-child {
  margin-top: 0;
}

.rich-text .clause-num {
  display: inline-block;
  min-width: 1.6em;
  font-weight: 700;
  color: var(--brand-teal-text);
}

/* Band ichidagi ro'yxat punktlari */
.rich-text .clause-item {
  position: relative;
  margin-bottom: 0.7em;
  padding-left: 1.7em;
}

.rich-text .clause-item::before {
  content: "—";
  position: absolute;
  left: 0.15em;
  color: var(--brand-teal-text);
}

/* Matn ichidagi tayyor ro'yxatlar */
.rich-text ol,
.rich-text ul {
  padding-left: 1.5em;
}

.rich-text li {
  margin-bottom: 0.55em;
}

.rich-text li::marker {
  color: var(--brand-teal-text);
  font-weight: 700;
}

/* "a)", "b)" kabi ichki bandlar - raqam ko'rsatilmaydi, belgisi matnda turibdi */
.rich-text li.sub-item {
  list-style: none;
  margin-left: 0.4em;
}

/* akkordeon ichida (xodim sahifasi) kenglik cheklovi ortiqcha bo'sh joy qoldirmasin */
.accordion-body.rich-text {
  max-width: 68rem;
}

@media (max-width: 575.98px) {
  .rich-text {
    font-size: 1rem;
  }

  .rich-text .clause {
    padding-left: 1.7em;
    text-indent: -1.7em;
  }
}

.rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.rich-text table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.rich-text a {
  color: var(--brand-teal-text);
  text-decoration: underline;
}

/* Word'dan ko'chirilgan matnlardagi shrift va o'lchamlar saytnikiga moslanadi */
.rich-text [style*="font-family"] {
  font-family: inherit !important;
}

.rich-text [style*="font-size"] {
  font-size: inherit !important;
}

.blog-details .article-footer .share-article .share-buttons .share-button {
  border: 1px solid rgba(4, 65, 95, 0.12);
}

.blog-details .article-footer .share-article .share-buttons .share-button.telegram:hover {
  background: #229ED9;
  color: #fff;
}

.other-posts h3 {
  color: var(--brand-navy);
  font-size: 1.25rem;
}

.other-posts .other-post {
  color: var(--brand-navy);
  transition: color var(--dur) var(--ease);
}

.other-posts .other-post:hover {
  color: var(--brand-teal-text);
}

.other-posts .other-post img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.other-posts .other-post .other-post-date {
  color: var(--text-muted);
}

/* Rektorat va xodimlar */
.academics .faculty-card {
  border: 1px solid rgba(4, 65, 95, 0.06);
}

.academics .faculty-card .faculty-content h4 a {
  color: var(--brand-navy);
}

.academics .faculty-card .faculty-content h4 a:hover {
  color: var(--brand-teal-text);
}

.academics .faculty-card .faculty-content .faculty-position {
  color: var(--brand-teal-text);
  font-weight: 500;
}

.academics .faculty-card .faculty-contacts {
  font-size: .875rem;
  margin: 0;
  text-align: left;
  padding-top: 12px;
  border-top: 1px solid rgba(4, 65, 95, 0.08);
}

.academics .faculty-card .faculty-contacts li {
  margin-bottom: 6px;
  color: var(--text-muted);
}

.academics .faculty-card .faculty-contacts i {
  color: var(--brand-teal-text);
  margin-right: 6px;
}

.academics .faculty-card .faculty-contacts a {
  color: inherit;
}

.academics .faculty-card .faculty-contacts a:hover {
  color: var(--brand-teal-text);
}

.leadership .intro-content .subtitle {
  color: var(--brand-teal-text);
}

.leadership .intro-content .title {
  color: var(--brand-navy);
}

/* xodim sahifasi: h1 (ism) bandda, bu yerda lavozim - kichikroq */
.leadership .intro-content .title.title-role {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.leadership .intro-image .employee-photo {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
}

.leadership .highlights .icon-box {
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
}

.leadership .highlights .highlight-item .icon-box i {
  color: var(--brand-teal-text);
}

.leadership .highlights .content p a {
  color: inherit;
}

.leadership .leadership-section .section-header .title {
  color: var(--brand-navy);
  font-size: 1.25rem;
  font-weight: 700;
}

.employee-accordion .accordion-item {
  border-color: rgba(4, 65, 95, 0.12);
}

.employee-accordion .accordion-button {
  color: var(--brand-navy);
  background-color: #f3f8fa;
  font-weight: 600;
  box-shadow: none;
}

.employee-accordion .accordion-button:not(.collapsed) {
  background-color: var(--brand-teal-light);
  color: var(--brand-navy);
}

.employee-accordion .accordion-button:focus {
  box-shadow: none;
}

.employee-accordion .accordion-body {
  line-height: 1.7;
  border-left: 4px solid var(--brand-teal);
}

.team-card .card-back {
  background: var(--brand-navy);
}

.leadership .team-card .card-back h4,
.leadership .team-card .card-back .position,
.leadership .team-card .card-back .bio {
  color: #fff;
}

.leadership .team-card .card-back a {
  color: #fff;
  text-decoration: underline;
}

/* 404 */
.error-404 .error-icon {
  color: var(--brand-teal);
}

.error-404 .error-code {
  color: var(--brand-navy);
}

/* Kontakt */
.contact .contact-card .icon-box {
  background: var(--brand-teal-light);
}

.contact .contact-card .icon-box i {
  color: var(--brand-teal-text);
}

.contact .contact-card .contact-text h3 {
  color: var(--brand-navy);
}

.contact .contact-card .contact-text p a {
  color: inherit;
}

.contact .contact-form-container h3 {
  color: var(--brand-navy);
}

.contact .contact-form-container .php-email-form button {
  background: var(--brand-navy);
}

.contact .contact-form-container .php-email-form button:hover {
  background: var(--brand-teal-text);
}

/* Kutubxona */
.books-table .book-cover,
.books-table .book-cover-empty {
  width: 80px;
  height: 110px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.books-table .book-cover-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 2rem;
}

.book-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.book-card .book-cover-lg {
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  --background-color: var(--brand-navy-dark);
  --default-color: rgba(255, 255, 255, 0.78);
  --heading-color: #ffffff;
  --accent-color: var(--brand-teal);
  border-top: 4px solid var(--brand-teal);
}

.footer .footer-top {
  padding-top: 50px;
  padding-bottom: 20px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--dur) var(--ease);
}

.footer a:hover {
  color: #fff;
}

.footer p strong {
  color: #fff;
}

.footer .social-links a {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.footer .social-links a:hover {
  background: var(--brand-teal-text);
  border-color: var(--brand-teal-text);
}

.footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
}

.footer .copyright p,
.footer .credits {
  color: rgba(255, 255, 255, 0.7);
  font-size: .8125rem;
}

.footer .copyright .sitename {
  color: #fff;
}

/* Yuqoriga tugmasi */
.scroll-top {
  background: var(--brand-teal-text);
}

.scroll-top:hover {
  background: var(--brand-navy);
}

/* tugma fonining o'zi ko'k-yashil - halqa to'q ko'k */
.scroll-top:focus-visible {
  outline-color: var(--brand-navy);
}

/* ==========================================================================
   HEMIS statistikasi
   ========================================================================== */
.stats {
  background: var(--brand-navy);
  color: #fff;
  padding: 50px 0;
}

.stats .stat-box {
  text-align: center;
  padding: 10px;
}

.stats .stat-box i {
  font-size: 2rem;
  color: var(--brand-teal);
  opacity: .9;
}

.stat-box .stat-number {
  font-size: 2.375rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 8px;
}

.stat-box .stat-label {
  font-size: .875rem;
  opacity: .85;
  margin-top: 4px;
}

.stats .service-link {
  color: #fff;
  font-weight: 600;
}

.stats .service-link:hover {
  color: #9fdbe4;
}

.stat-page .stat-box {
  background: var(--brand-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px 12px;
  text-align: center;
  height: 100%;
}

.stat-page .stat-box i {
  font-size: 1.75rem;
  color: var(--brand-teal);
}

.stat-table-card {
  background: var(--surface-color);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  height: 100%;
}

.stat-table-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--brand-navy);
}

@media (max-width: 575.98px) {
  .stat-box .stat-number {
    font-size: 1.75rem;
  }
}

/* Sanaladigan raqamlar: raqam kengligi bir xil bo'lsin, aks holda "sakraydi" */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.stat-number.count-up {
  display: block;
}

/* ==========================================================================
   Qidiruv sahifasi
   ========================================================================== */
.search-page .search-form {
  max-width: 640px;
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-result {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface-color);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-ui);
}

.search-result:hover {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-2);
}

.search-result .result-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.search-result .result-body {
  display: block;
  min-width: 0;
}

.search-result .result-type {
  display: inline-block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--brand-teal-text);
  margin-bottom: 2px;
}

.search-result .result-title {
  display: block;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 4px;
}

.search-result .result-excerpt {
  display: block;
  font-size: .875rem;
  color: var(--text-muted);
}

.search-result .result-date {
  display: block;
  font-size: .8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   Ko'zi ojizlar uchun versiya
   ========================================================================== */
.a11y-panel {
  background: #000;
  color: #fff;
  padding: 10px 0;
  border-bottom: 2px solid #fff;
}

.a11y-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.a11y-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.a11y-label {
  font-size: .875rem;
  opacity: .85;
  margin-right: 2px;
}

.a11y-btn {
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  font-size: .875rem;
  line-height: 1.6;
  min-height: 32px;
  cursor: pointer;
}

.a11y-btn:hover,
.a11y-btn.active,
.a11y-btn[aria-pressed="true"] {
  background: #fff;
  color: #000;
}

.a11y-swatch.swatch-white { background: #fff; color: #000; }
.a11y-swatch.swatch-black { background: #000; color: #fff; }
.a11y-swatch.swatch-beige { background: #f5f0e1; color: #1f1f1f; }

/* tanlangan variant - sariq ramka (rang namunalarida fon o'zgarmaydi) */
.a11y-btn.active,
.a11y-btn[aria-pressed="true"] {
  outline: 2px solid #ffe100;
  outline-offset: 1px;
}

.a11y-off {
  margin-left: auto;
}

/* --- rejim yoqilganda: sayt bo'ylab faqat ikki rang qoladi --- */
[data-a11y] body,
[data-a11y] body *:not(.a11y-panel):not(.a11y-panel *) {
  background-color: var(--a11y-bg) !important;
  background-image: none !important;
  color: var(--a11y-fg) !important;
  border-color: var(--a11y-fg) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* matn ichidagi band belgilari ham bir xil rangda bo'lsin */
[data-a11y] .rich-text .clause-num,
[data-a11y] .rich-text .clause-item::before,
[data-a11y] .rich-text li::marker {
  color: var(--a11y-fg) !important;
}

/* havolalar ajralib turishi kerak - yuqoridagi umumiy qoidadan kuchliroq */
[data-a11y] body a:not(.a11y-btn):not(.btn-primary):not(.btn-secondary),
[data-a11y] body a:not(.a11y-btn):not(.btn-primary) *:not(.a11y-panel) {
  color: var(--a11y-link) !important;
  text-decoration: underline;
}

/* tugmalar teskari rangda (body qo'shilgani - yuqoridagi umumiy qoidadan ustun turishi uchun) */
[data-a11y] body .btn-primary,
[data-a11y] body .btn-secondary,
[data-a11y] body .action-buttons .btn-primary,
[data-a11y] body .action-buttons .btn-secondary,
[data-a11y] body button[type="submit"]:not(.a11y-btn) {
  background-color: var(--a11y-fg) !important;
  color: var(--a11y-bg) !important;
  border: 1px solid var(--a11y-fg) !important;
}

[data-a11y] .card,
[data-a11y] .feature-card,
[data-a11y] .stat-box,
[data-a11y] .stat-table-card,
[data-a11y] .search-result,
[data-a11y] input,
[data-a11y] select,
[data-a11y] textarea,
[data-a11y] table,
[data-a11y] td,
[data-a11y] th {
  border: 1px solid var(--a11y-fg) !important;
}

/* fokus halqasi fon rangiga qarab */
[data-a11y] :focus-visible {
  outline-color: var(--a11y-focus);
}

/* hech qanday rejimda panelning o'zi oq-qora bo'lib qoladi */
.a11y-panel,
.a11y-panel .a11y-label,
.a11y-panel .a11y-btn {
  background-color: #000;
  color: #fff;
  border-color: #fff;
}

.a11y-panel .a11y-btn:hover,
.a11y-panel .a11y-btn.active,
.a11y-panel .a11y-btn[aria-pressed="true"] {
  background-color: #fff;
  color: #000;
}

.a11y-panel .a11y-swatch.swatch-white { background-color: #fff; color: #000; }
.a11y-panel .a11y-swatch.swatch-black { background-color: #000; color: #fff; }
.a11y-panel .a11y-swatch.swatch-beige { background-color: #f5f0e1; color: #1f1f1f; }

/* rang sxemalari: oq, qora va bej (ilgari och ko'k edi) */
[data-a11y-theme="white"] { --a11y-bg: #ffffff; --a11y-fg: #000000; --a11y-link: #0b3d91; --a11y-focus: #0b3d91; }
[data-a11y-theme="black"] { --a11y-bg: #000000; --a11y-fg: #ffffff; --a11y-link: #ffe100; --a11y-focus: #ffdd00; }
[data-a11y-theme="beige"] { --a11y-bg: #f5f0e1; --a11y-fg: #1f1f1f; --a11y-link: #0b3d91; --a11y-focus: #0b3d91; }

/* shrift o'lchami: rem asosidagi barcha matn kattalashadi */
[data-a11y-font="large"] { font-size: 120%; }
[data-a11y-font="xlarge"] { font-size: 145%; }

[data-a11y-font="large"] body,
[data-a11y-font="xlarge"] body {
  font-size: 1rem;
}

/* harflar orasi */
[data-a11y-spacing="wide"] body {
  letter-spacing: .08em;
  word-spacing: .16em;
  line-height: 1.9;
}

/* rasmlarni o'chirish */
[data-a11y-images="off"] img,
[data-a11y-images="off"] picture,
[data-a11y-images="off"] .swiper,
[data-a11y-images="off"] [style*="background-image"] {
  display: none !important;
}

[data-a11y-images="off"] [style*="background-image"] {
  background-image: none !important;
}

@media (max-width: 767.98px) {
  .a11y-off {
    margin-left: 0;
  }
}

/* ==========================================================================
   Hujjatlar
   ========================================================================== */
.documents-nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.documents-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text);
  border-bottom: 1px solid rgba(4, 65, 95, 0.06);
  font-size: .9rem;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.documents-nav a:last-child {
  border-bottom: 0;
}

.documents-nav a i {
  color: var(--brand-teal-text);
}

.documents-nav a .count {
  margin-left: auto;
  font-size: .75rem;
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}

.documents-nav a:hover,
.documents-nav a.active {
  background: var(--brand-teal-light);
  color: var(--brand-navy);
  font-weight: 600;
}

.documents-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.documents-filter .form-select {
  max-width: 160px;
}

.document-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  transition: var(--transition-ui);
}

.document-item:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--brand-teal);
}

.document-item .doc-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
  flex-shrink: 0;
}

.document-item .doc-icon.doc-pdf {
  background: #fdecea;
  color: #b3261e;
}

.document-item .doc-icon.doc-doc,
.document-item .doc-icon.doc-docx {
  background: #e8f0fe;
  color: #1a56db;
}

.document-item .doc-body {
  flex: 1;
  min-width: 0;
}

.document-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.4;
}

.document-item h3 a {
  color: var(--brand-navy);
}

.document-item h3 a:hover {
  color: var(--brand-teal-text);
}

.document-item .doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: .8125rem;
  color: var(--text-muted);
}

.document-item .doc-meta i {
  margin-right: 3px;
}

.document-item .doc-meta .badge {
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
  font-weight: 600;
  border-radius: var(--radius-pill);
}

.document-item .doc-desc {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.document-item .doc-download {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-navy);
  color: #fff;
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: var(--transition-ui);
}

.document-item .doc-download:hover {
  background: var(--brand-teal-text);
  color: #fff;
}

@media (max-width: 575.98px) {
  .documents-filter {
    flex-wrap: wrap;
  }

  .documents-filter .form-select {
    max-width: none;
  }
}

/* ==========================================================================
   Qabul: o'tish ballari, kalkulyator, bakalavriat, yo'nalish
   ========================================================================== */
.scores-intro {
  max-width: 900px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* yorliqlar (tab) - tugma ko'rinishida, 44px */
.scores-tabs .nav-link,
.calc-mode .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  transition: var(--transition-ui);
}

.scores-tabs .nav-link.active {
  background: var(--brand-navy);
  color: #fff;
}

.calc-mode .nav-link {
  font-size: .875rem;
  min-height: 40px;
  padding: 6px 14px;
}

.calc-mode .nav-link.active {
  background: var(--brand-teal-light);
  color: var(--brand-navy);
}

.scores-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scores-table {
  margin: 0;
  font-size: .9rem;
}

.scores-table thead th {
  text-align: center;
}

.scores-table thead th.sub {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  font-weight: 600;
}

.scores-table thead th.latest,
.scores-table td.latest {
  background: var(--brand-teal-light);
}

.scores-table thead th.year-col.latest {
  color: var(--brand-teal-text);
}

.scores-table .direction-col {
  min-width: 260px;
  text-align: left;
}

.scores-table td {
  text-align: center;
  padding: 12px 10px;
}

.scores-table .direction {
  font-weight: 600;
  color: var(--brand-navy);
}

.scores-table .subjects {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.scores-table .score .value {
  display: block;
  font-weight: 700;
  font-size: .97rem;
  color: var(--text);
}

.scores-table .score .quota {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
}

.scores-table .score .none {
  color: #8a969e;
}

.scores-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--text-muted);
}

.scores-legend i {
  color: var(--brand-teal-text);
  margin-right: 5px;
}

.scores-source {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-teal);
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--text-muted);
}

.scores-source i {
  color: var(--brand-teal-text);
  font-size: 1.125rem;
}

.scores-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-card .label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.summary-card .value {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.1;
}

.summary-card.summary-cta {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-teal-text) 100%);
  border: 0;
  color: #fff;
  transition: var(--transition-ui);
}

.summary-card.summary-cta .label {
  color: rgba(255, 255, 255, 0.8);
}

.summary-card.summary-cta .value {
  color: #fff;
  font-size: 1.125rem;
}

.summary-card.summary-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}

.scores-table .lang-badge,
.calc-meta .tag,
.direction-card .lang-badge {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  vertical-align: middle;
}

.scores-table .lang-badge,
.calc-meta .tag {
  margin-left: 4px;
}

/* Ball kalkulyatori */
.calc-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 100px;
}

.calc-title {
  font-size: 1.25rem;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.dtm-total {
  font-size: .875rem;
  color: var(--text-muted);
}

.dtm-total strong {
  color: var(--brand-navy);
  font-size: 1.125rem;
}

.calc-result-head {
  background: linear-gradient(135deg, var(--brand-navy-dark) 0%, var(--brand-navy) 60%, var(--brand-teal-text) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.calc-result-head .calc-ball {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.calc-result-head .calc-ball small {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
}

.calc-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 12px 0 8px;
  font-weight: 600;
}

.calc-counts .c-grant { color: #7ee2a8; }
.calc-counts .c-contract { color: #ffd479; }
.calc-counts .c-none { color: rgba(255, 255, 255, 0.75); }

.calc-result-head .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

.calc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #c0c8ce;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.calc-item.status-grant { border-left-color: #28a745; }
.calc-item.status-contract { border-left-color: #f0ad4e; }
.calc-item.status-none { opacity: 0.75; }

.calc-item-body { flex: 1; min-width: 0; }

.calc-meta code,
.direction-card-head code,
.related-item code,
.code-list code {
  font-size: .75rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.calc-name {
  display: inline-block;
  font-weight: 600;
  color: var(--brand-navy);
  margin-top: 4px;
  text-decoration: none;
}

.calc-name:hover { color: var(--brand-teal-text); }

.calc-name .bi { opacity: 0.5; }

.calc-subjects {
  font-size: .8125rem;
  color: var(--text-muted);
}

.calc-item-scores {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.calc-item-scores .pill {
  min-width: 58px;
  text-align: center;
  font-weight: 700;
  font-size: .85rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-muted);
}

.calc-item-scores .pill.grant.ok { background: #e6f6ec; color: #1e7e34; }
.calc-item-scores .pill.contract.ok { background: #fff4e0; color: #9a5b00; }

.calc-status {
  width: 190px;
  flex-shrink: 0;
  text-align: right;
}

.calc-status small {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8125rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.badge-status.grant { background: #e6f6ec; color: #1e7e34; }
.badge-status.contract { background: #fff4e0; color: #9a5b00; }
.badge-status.none { background: var(--bg-soft); color: var(--text-muted); }
.badge-status.info { background: var(--brand-teal-light); color: var(--brand-teal-text); }

@media (max-width: 767.98px) {
  .calc-form { position: static; }
  .calc-item { flex-wrap: wrap; }
  .calc-status { width: 100%; text-align: left; }
}

/* Kalkulyator: qadam raqami va fanlar */
.calc-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-teal-text);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: 2px;
}

.calc-ball-sm { font-size: 1.875rem; }

.calc-matching {
  color: #fff;
  font-weight: 600;
}

.scores-tabs .count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: var(--radius-pill);
  background: rgba(4, 65, 95, 0.1);
  font-size: .75rem;
  line-height: 20px;
  text-align: center;
}

.scores-tabs .nav-link.active .count { background: rgba(255, 255, 255, 0.25); }

.summary-card.summary-link {
  text-decoration: none;
  transition: var(--transition-ui);
}

.summary-card.summary-link:hover {
  border-color: var(--brand-teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.summary-card.summary-link .value { font-size: 1.125rem; }

/* Bakalavriat: yo'nalish kartalari */
.direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.direction-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
  transition: var(--transition-ui);
}

.direction-card:hover {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
  color: inherit;
}

.direction-card-head {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.direction-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-navy);
  line-height: 1.35;
  margin-bottom: 6px;
}

.direction-card-subjects {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.direction-card-stats {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.direction-card .stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.direction-card .stat-lang {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 22px;
}

.direction-card .stat {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 700;
  font-size: .875rem;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-muted);
  white-space: nowrap;
}

.direction-card .stat.grant { background: #e6f6ec; color: #1e7e34; }
.direction-card .stat.contract { background: #fff4e0; color: #9a5b00; }

.direction-card .stat i { font-size: .8125rem; }

.direction-card .stat small {
  margin-left: auto;
  font-size: .6875rem;
  font-weight: 500;
  opacity: 0.85;
}

.direction-card-more {
  margin-top: 12px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brand-teal-text);
}

/* Yo'nalish sahifasi */
.direction-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.direction-box-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.direction-box-title i { color: var(--brand-teal-text); }

.subject-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subject-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.subject-item.main { background: var(--brand-teal-light); }

.subject-item small { color: var(--text-muted); font-size: .75rem; }

.subject-order {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.subject-item.main .subject-order { background: var(--brand-teal-text); }

.subject-name {
  font-weight: 600;
  color: var(--brand-navy);
}

.code-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.code-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .875rem;
}

.code-list li:last-child { border-bottom: 0; }

.code-list code {
  color: var(--brand-navy);
  font-weight: 600;
}

.code-list span { color: var(--text-muted); }

.direction-table .direction-col { min-width: 170px; }

.related-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--brand-navy);
  text-decoration: none;
  font-weight: 500;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.related-item:hover { background: var(--brand-teal-light); color: var(--brand-teal-text); }

.related-item code {
  background: #fff;
}

.related-item span { flex: 1; }

/* O'tish ballari jadvalidagi yo'nalish havolasi */
.scores-table .direction a {
  color: inherit;
  text-decoration: none;
}

.scores-table .direction a:hover { color: var(--brand-teal-text); }

.summary-card.summary-quota .value { font-size: 1.25rem; white-space: nowrap; }
.summary-card.summary-quota .value small { font-size: .75rem; font-weight: 500; }

/* ==========================================================================
   Davlat ramzlari sahifasi (/davlat-ramzlari/{bayroq|gerb|madhiya})
   ========================================================================== */
.symbols-intro {
  max-width: 48rem;
  margin: 0 auto 1.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.symbol-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

.symbol-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand-navy);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: var(--transition-ui);
}

.symbol-tab img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: none;
}

.symbol-tab:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal-text);
  transform: translateY(-2px);
}

.symbol-tab[aria-current="page"] {
  border-color: var(--brand-teal);
  background: var(--brand-teal-light);
  color: var(--brand-teal-text);
  box-shadow: inset 0 -3px 0 var(--brand-teal);
}

.symbol-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-2);
}

.symbol-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.symbol-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.symbol-card-title {
  margin: 0 0 .75rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.symbol-facts {
  margin: 0 0 1.25rem;
}

.symbol-facts > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.symbol-facts dt {
  font-weight: 500;
  color: var(--text-muted);
}

.symbol-facts dd {
  margin: 0;
  color: var(--text);
}

.symbol-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  color: var(--brand-navy);
}

.symbol-lead {
  margin-bottom: 1.5rem;
  padding: 14px 18px;
  border-left: 4px solid var(--brand-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--brand-teal-light);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
}

.symbol-subtitle {
  margin: 1.75rem 0 .75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.symbols-page p {
  line-height: 1.7;
}

.symbol-meaning {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.symbol-meaning > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.symbol-meaning dt {
  margin-bottom: 2px;
  font-weight: 700;
  color: var(--brand-navy);
}

.symbol-meaning dd {
  margin: 0;
  color: var(--text);
}

.symbol-source {
  margin-top: .75rem;
  font-size: .875rem;
  color: var(--text-muted);
}

.symbol-source a { color: var(--brand-teal-text); }

.symbol-list {
  margin: 0;
  padding-left: 1.25rem;
}

.symbol-list li {
  margin-bottom: .5rem;
  line-height: 1.6;
}

.symbol-list li::marker { color: var(--brand-teal); }

@media (max-width: 767.98px) {
  .symbol-tabs { grid-template-columns: 1fr; }
  .symbol-meaning { grid-template-columns: 1fr; }
  .symbol-facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Kompyuter menyusi: manzilli ota punkt (masalan "Hujjatlar") va uning ochish tugmasi
   bir qatorda qolsin — tor joyda tugma pastki qatorga tushib, punkt yuqoriga surilardi */
@media (min-width: 1200px) {
  .navmenu > ul > li.dropdown {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}
