/* ═══════════════════════════════════════════════════════════════════════════
   Olimlar.uz — dizayn tizimi
   Yagona token manbai: rang, tipografiya, spacing, radius, container.
   Bu fayl base.html dagi inline stillardan OLDIN emas, KEYIN ulanadi.
   Yangi kodda faqat shu yerdagi tokenlardan foydalaning.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Olimlar.uz — LIGHT-ONLY. Kun/tun almashtirgichi yo'q va qo'shilmaydi.
     Bu e'lon brauzerga form control, scrollbar va tizim UI elementlarini
     light rejimda chizishni aytadi — foydalanuvchining OS sozlamasidan
     qat'i nazar. `light dark` yoki `dark` qiymati hech qachon qo'yilmasin. */
  color-scheme: light;

  /* ── Rang ── */
  --color-brand-orange: #ff4203;
  --color-action-blue: #0056d6;
  --color-action-blue-light: #6593dc;
  --color-action-blue-dark: #00429f;

  --color-text-primary: #0c0f12;
  --color-text-secondary: #333333;
  --color-text-muted: #666666;

  --color-white: #ffffff;
  --color-background: #ffffff;
  --color-background-soft: #f6f6f6;

  --color-border: #e6e6e6;
  --color-border-subtle: #ecebe9;

  --color-orange-soft: #fff7ef;
  --color-blue-soft: #ebf1f9;

  --color-success: #0c8930;
  --color-success-soft: #f4faf6;

  --color-error: #af1d1d;
  --color-error-soft: #fdf4f4;

  --color-notice: #ff9900;
  --color-notice-soft: #fff9e6;

  /* SEMANTIK to'q rang — global dark theme EMAS. AI yuzalarini qolgan
     interfeysdan ajratish uchun zaxiraga olingan (dizayn tizimi kontraktida
     belgilangan). Hozircha iste'molchisi yo'q: #ai-panel oq fonda.
     Faqat AI konteksti uchun ishlating; sahifa yoki karta foniga qo'ymang. */
  --color-ai-background: #171426;

  /* ── Tipografiya ──
     H1/H2 — serif; qolgan hamma narsa (H3–H5, body, navigatsiya, jadval) sans.
     Inter va Manrope loyihada o'zbek lotin + kirill subsetlari bilan
     self-host qilingan, shuning uchun Noto Serif o'rniga mavjud shriftlar
     saqlanadi (spetsifikatsiya shunga ruxsat beradi). */
  /* H1/H2 uchun haqiqiy serif. Manrope bu yerda EMAS — u sans-serif geometrik
     shrift bo'lib, "serif" tokeniga noto'g'ri qo'yilgan edi.
     Noto Serif repoga yuklanmagan: loyiha ataylab Google Fonts'siz ishlaydi
     (O'zbekiston latency, base.html:69). Foydalanuvchi tizimida Noto Serif
     bo'lsa ishlatiladi, aks holda Georgia — u lotin va kirill uchun ham
     ishonchli serif. Batafsil: docs/dead-templates.md yonidagi hisobot. */
  --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  /* Manrope sarlavhaviy sans sifatida saqlanadi (self-hosted, kirill subseti
     bilan), Inter esa asosiy UI shrifti. */
  --font-sans: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;

  --text-hero: 56px;
  --text-h1: 48px;
  --text-h2: 40px;
  --text-h3: 32px;
  --text-h4: 24px;
  --text-h5: 20px;
  --text-body-lg: 20px;
  --text-body: 16px;
  --text-small: 14px;
  --text-meta: 12px;

  --leading-heading: 1.25;
  --leading-body: 1.5;
  --leading-meta: 1.4;

  /* ── Spacing ── */
  --space-0: 0px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-112: 112px;
  --space-128: 128px;
  --space-144: 144px;
  --space-160: 160px;

  /* ── Radius ── */
  --radius-default: 4px;
  --radius-banner: 8px;
  --radius-rounded: 24px;
  --radius-full: 9999px;

  /* ── Container va grid ── */
  --container-max: 1600px;
  --container-pad: clamp(24px, 8vw, 130px);
  --gutter: 20px;

  /* ── Yagona minimal soya (faqat dropdown/drawer uchun) ── */
  --shadow-dropdown: 0 4px 12px rgba(12, 15, 18, 0.08);

  --header-height: 64px;
}

@media (max-width: 1023px) { :root { --gutter: 16px; } }
@media (max-width: 649px)  { :root { --gutter: 12px; } }

/* ── Container ─────────────────────────────────────────────────────────────── */

.ol-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Jadval va grafik sahifalari uchun kengroq ish maydoni. */
.ol-container--wide { padding-inline: clamp(16px, 3vw, 40px); }

.ol-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
@media (max-width: 649px) { .ol-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ── Tipografiya ───────────────────────────────────────────────────────────── */

/* Standart: H1 va H2 — serif; H3–H5, body, UI — sans.
   Bu element darajasidagi qoida, shuning uchun `.ol-*` klassi yozilmagan
   sahifalar ham to'g'ri ierarxiyani oladi. Sahifa o'z font-family sini
   ataylab bersa, u yuqoriroq spetsifiklik bilan yengadi. */
h1, h2 { font-family: var(--font-serif); }
h3, h4, h5, h6 { font-family: var(--font-sans); }

.ol-hero-title,
.ol-h1, .ol-h2 { font-family: var(--font-serif); font-weight: 700; }
.ol-h3, .ol-h4, .ol-h5 { font-family: var(--font-sans); font-weight: 600; }

.ol-hero-title { font-size: var(--text-hero); line-height: 1.2; }
.ol-h1 { font-size: var(--text-h1); line-height: 1.2; }
.ol-h2 { font-size: var(--text-h2); line-height: 1.25; }
.ol-h3 { font-size: var(--text-h3); line-height: 1.3; }
.ol-h4 { font-size: var(--text-h4); line-height: 1.35; }
.ol-h5 { font-size: var(--text-h5); line-height: 1.35; }

.ol-hero-title, .ol-h1, .ol-h2, .ol-h3, .ol-h4, .ol-h5 {
  color: var(--color-text-primary);
  margin: 0 0 var(--space-16);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.ol-body-lg { font-size: var(--text-body-lg); line-height: var(--leading-body); }
.ol-body { font-size: var(--text-body); line-height: var(--leading-body); }
.ol-small { font-size: var(--text-small); line-height: var(--leading-body); }
.ol-meta { font-size: var(--text-meta); line-height: var(--leading-meta); color: var(--color-text-muted); }
.ol-muted { color: var(--color-text-muted); }

@media (max-width: 649px) {
  .ol-hero-title { font-size: 40px; }
  .ol-h1 { font-size: 32px; }
  .ol-h2 { font-size: 28px; }
  .ol-h3 { font-size: 24px; }
  .ol-h4 { font-size: 20px; }
  .ol-h5 { font-size: 18px; }
  .ol-body-lg { font-size: var(--text-body); }
}

/* ── Fokus ─────────────────────────────────────────────────────────────────── */

.ol-focusable:focus-visible,
.ol-btn:focus-visible,
.ol-nav__trigger:focus-visible,
.ol-nav__link:focus-visible,
.ol-icon-btn:focus-visible,
.ol-menu__link:focus-visible,
.ol-field:focus-visible,
.ol-field:focus {
  outline: 2px solid var(--color-action-blue);
  outline-offset: 2px;
}

.ol-skip-link {
  position: absolute;
  left: var(--space-16);
  top: -100px;
  z-index: 2000;
  padding: var(--space-12) var(--space-16);
  background: var(--color-white);
  border: 1px solid var(--color-action-blue);
  border-radius: var(--radius-default);
  color: var(--color-action-blue);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
}
.ol-skip-link:focus { top: var(--space-8); }

/* ── Tugmalar ──────────────────────────────────────────────────────────────── */

.ol-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 44px;
  padding: var(--space-12) var(--space-20);
  border: 1px solid transparent;
  border-radius: var(--radius-default);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ol-btn:hover { text-decoration: none; }

.ol-btn--primary { background: var(--color-action-blue); color: var(--color-white); }
.ol-btn--primary:hover { background: var(--color-action-blue-dark); color: var(--color-white); }
.ol-btn--primary:active { background: var(--color-action-blue-dark); }

.ol-btn--secondary {
  background: var(--color-white);
  border-color: var(--color-border);
  color: var(--color-text-primary);
}
.ol-btn--secondary:hover { border-color: var(--color-action-blue); color: var(--color-action-blue); }

.ol-btn--tertiary { background: transparent; color: var(--color-action-blue); padding-inline: var(--space-8); }
.ol-btn--tertiary:hover { color: var(--color-action-blue-dark); text-decoration: underline; }

.ol-btn--danger { background: var(--color-error); color: var(--color-white); }
.ol-btn--danger:hover { background: #8f1717; color: var(--color-white); }

.ol-btn--block { width: 100%; }

/* ── Kartalar ──────────────────────────────────────────────────────────────── */

.ol-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-default);
  padding: var(--space-24);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ol-card:hover { border-color: var(--color-action-blue-light); }
.ol-card__title { font-size: var(--text-h5); font-weight: 600; color: var(--color-text-primary); margin: 0 0 var(--space-8); }
.ol-card__meta { font-size: var(--text-small); color: var(--color-text-muted); margin: 0; }
@media (max-width: 649px) { .ol-card { padding: var(--space-16); } }

/* ── Badge (yagona status komponenti) ──────────────────────────────────────── */

.ol-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 2px var(--space-8);
  border-radius: var(--radius-rounded);
  font-family: var(--font-sans);
  font-size: var(--text-meta);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.ol-badge--neutral { background: var(--color-background-soft); color: var(--color-text-secondary); }
.ol-badge--info    { background: var(--color-blue-soft); color: var(--color-action-blue); }
.ol-badge--brand   { background: var(--color-orange-soft); color: var(--color-brand-orange); }
.ol-badge--success { background: var(--color-success-soft); color: var(--color-success); }
.ol-badge--error   { background: var(--color-error-soft); color: var(--color-error); }
.ol-badge--notice  { background: var(--color-notice-soft); color: #8a5200; }

/* ── Formalar va filtrlar ──────────────────────────────────────────────────── */

.ol-field-group { display: flex; flex-direction: column; gap: var(--space-8); }
.ol-label {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-secondary);
}
.ol-field {
  min-height: 44px;
  width: 100%;
  padding: var(--space-12);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-default);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--color-text-primary);
}
.ol-field::placeholder { color: var(--color-text-muted); }
.ol-field:focus { border-color: var(--color-action-blue); }

/* ── Jadval ────────────────────────────────────────────────────────────────── */

.ol-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-default);
  overflow-x: auto;
  background: var(--color-white);
}
.ol-table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); }
.ol-table th {
  background: var(--color-background-soft);
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  font-weight: 500;
  text-align: left;
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.ol-table td {
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: var(--text-small);
  color: var(--color-text-primary);
}
.ol-table tbody tr:last-child td { border-bottom: 0; }
.ol-table tbody tr:hover td { background: var(--color-blue-soft); }
.ol-table__meta { font-size: var(--text-meta); color: var(--color-text-muted); }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */

.ol-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
  margin: 0 0 var(--space-24);
  padding: 0;
  list-style: none;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}
.ol-breadcrumb a { color: var(--color-action-blue); text-decoration: none; }
.ol-breadcrumb a:hover { text-decoration: underline; }
.ol-breadcrumb li + li::before { content: "/"; margin-right: var(--space-8); color: var(--color-border); }

/* ── Sahifa sarlavhasi (components/page_header.html macro) ─────────────────── */

.ol-page-header { margin-bottom: var(--space-32); }
.ol-page-header__title { font-family: var(--font-serif); font-size: var(--text-h1);
  line-height: var(--leading-heading); font-weight: 700; color: var(--color-text-primary);
  margin: 0 0 var(--space-12); }
.ol-page-header__lead { max-width: 70ch; margin: 0; font-size: var(--text-body-lg);
  line-height: var(--leading-body); color: var(--color-text-muted); }
.ol-page-header__actions { display: flex; flex-wrap: wrap; gap: var(--space-12);
  margin-top: var(--space-20); }
.ol-page-header__meta { display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-16);
  margin-top: var(--space-12); font-size: var(--text-small); color: var(--color-text-muted); }
@media (max-width: 649px) {
  .ol-page-header { margin-bottom: var(--space-24); }
  .ol-page-header__title { font-size: 32px; }
  .ol-page-header__lead { font-size: var(--text-body); }
}

/* ── Bo'lim sarlavhasi ─────────────────────────────────────────────────────── */

.ol-section-header { display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-16); flex-wrap: wrap; margin-bottom: var(--space-16); }
.ol-section-header h2 { font-family: var(--font-sans); font-size: var(--text-h5);
  font-weight: 600; color: var(--color-text-primary); margin: 0; }

/* ── Stat kartalar ─────────────────────────────────────────────────────────── */

.ol-stat-grid { display: grid; gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ol-stat {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-default);
  padding: var(--space-20) var(--space-24);
}
.ol-stat__value { font-size: var(--text-h3); font-weight: 600; line-height: 1.15;
  color: var(--color-text-primary); font-variant-numeric: tabular-nums; }
.ol-stat__label { margin-top: var(--space-4); font-size: var(--text-small);
  color: var(--color-text-muted); }
.ol-stat__trend { display: inline-flex; align-items: center; gap: var(--space-4);
  margin-top: var(--space-8); font-size: var(--text-meta); font-weight: 600; }
.ol-stat__trend--up { color: var(--color-success); }
.ol-stat__trend--down { color: var(--color-error); }
@media (max-width: 649px) { .ol-stat { padding: var(--space-16); } }

/* ── Filter paneli (barcha ro'yxat sahifalarida bir xil) ───────────────────── */

.ol-filters {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-default);
  padding: var(--space-20) var(--space-24);
  margin-bottom: var(--space-24);
}
.ol-filters__row { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: flex-end; }
.ol-filters__row > .ol-field-group { flex: 1 1 200px; min-width: 0; }
.ol-filters__actions { display: flex; gap: var(--space-8); flex-wrap: wrap; margin-left: auto; }
.ol-filters__count { font-size: var(--text-small); color: var(--color-text-muted); }
/* Mobil: filtrlar yig'iladi, tugma tanlanganlar sonini ko'rsatadi. */
.ol-filters__toggle { display: none; }
@media (max-width: 767px) {
  .ol-filters { padding: var(--space-16); }
  .ol-filters__toggle { display: inline-flex; width: 100%; }
  .ol-filters__body { display: none; margin-top: var(--space-16); }
  .ol-filters__body[data-open="true"] { display: block; }
  .ol-filters__row > .ol-field-group { flex-basis: 100%; }
  .ol-filters__actions { margin-left: 0; width: 100%; }
  .ol-filters__actions > * { flex: 1; }
}

/* Tanlangan filtrlar — chip ko'rinishida */
.ol-chips { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: center; }
.ol-chip {
  display: inline-flex; align-items: center; gap: var(--space-6);
  min-height: 32px; padding: var(--space-4) var(--space-12);
  background: var(--color-blue-soft);
  border: 1px solid var(--color-action-blue-light);
  border-radius: var(--radius-rounded);
  color: var(--color-action-blue);
  font-size: var(--text-small); font-weight: 600;
}
.ol-chip button { display: grid; place-items: center; width: 20px; height: 20px;
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font-size: 12px; }
.ol-chip button:hover { color: var(--color-action-blue-dark); }

/* ── Grafik paneli ─────────────────────────────────────────────────────────── */

.ol-chart {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-default);
  padding: var(--space-24);
}
.ol-chart__head { margin-bottom: var(--space-16); }
.ol-chart__title { font-size: var(--text-h5); font-weight: 600; color: var(--color-text-primary); margin: 0; }
.ol-chart__note { margin: var(--space-4) 0 0; font-size: var(--text-small); color: var(--color-text-muted); }
.ol-chart__body { position: relative; min-height: 240px; }
.ol-chart__state { padding: var(--space-40) var(--space-16); text-align: center;
  font-size: var(--text-small); color: var(--color-text-muted); }
.ol-chart__state--error { color: var(--color-error); }
@media (max-width: 649px) { .ol-chart { padding: var(--space-16); } }

/* ── Tablar ────────────────────────────────────────────────────────────────── */

.ol-tabs {
  display: flex; gap: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: thin;
}
.ol-tab {
  flex-shrink: 0;
  min-height: 44px;
  padding: var(--space-12) var(--space-16);
  background: none; border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--font-sans); font-size: var(--text-small); font-weight: 600;
  color: var(--color-text-muted); white-space: nowrap; cursor: pointer;
  text-decoration: none;
}
.ol-tab:hover { color: var(--color-action-blue); text-decoration: none; }
.ol-tab[aria-selected="true"] { color: var(--color-action-blue); border-bottom-color: var(--color-action-blue); }

/* ── Sahifalash ────────────────────────────────────────────────────────────── */

.ol-pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6);
  padding: var(--space-16) 0; }
.ol-pager button, .ol-pager a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-default);
  color: var(--color-text-primary); font-size: var(--text-small); cursor: pointer;
  text-decoration: none;
}
.ol-pager button:hover:not(:disabled):not([aria-current]),
.ol-pager a:hover { border-color: var(--color-action-blue); color: var(--color-action-blue); text-decoration: none; }
.ol-pager [aria-current="page"] { background: var(--color-action-blue);
  border-color: var(--color-action-blue); color: var(--color-white); font-weight: 600; cursor: default; }
.ol-pager button:disabled { opacity: 0.4; cursor: default; }
.ol-pager__info { margin-left: var(--space-8); font-size: var(--text-small); color: var(--color-text-muted); }

/* ── Yon filter paneli (dashboard fasetlari) ───────────────────────────────── */

.ol-facets {
  width: 260px; flex-shrink: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-default);
  padding: var(--space-16);
  position: sticky; top: calc(var(--header-height) + var(--space-8));
  max-height: calc(100vh - var(--header-height) - var(--space-24));
  overflow-y: auto;
}
.ol-facets__group { border-bottom: 1px solid var(--color-border-subtle); padding: var(--space-12) 0; }
.ol-facets__group:last-child { border-bottom: 0; }
.ol-facets__title { font-size: var(--text-small); font-weight: 600;
  color: var(--color-text-primary); margin-bottom: var(--space-8); }
.ol-facets__opt { display: flex; align-items: center; gap: var(--space-8);
  min-height: 32px; font-size: var(--text-small); color: var(--color-text-secondary); cursor: pointer; }
.ol-facets__opt input { accent-color: var(--color-action-blue); cursor: pointer; flex-shrink: 0; }
.ol-facets__count { margin-left: auto; font-size: var(--text-meta); color: var(--color-text-muted); }

/* ── Sahifa karkasi ────────────────────────────────────────────────────────── */

.ol-page { padding-block: var(--space-48) var(--space-96); }
.ol-section + .ol-section { margin-top: var(--space-64); }
.ol-stack > * + * { margin-top: var(--space-16); }
.ol-empty {
  padding: var(--space-48) var(--space-24);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-default);
  background: var(--color-background-soft);
  color: var(--color-text-muted);
  text-align: center;
}
@media (max-width: 649px) { .ol-page { padding-block: var(--space-32) var(--space-64); } }

/* ═══════════════════════════════════════════════════════════════════════════
   Header
   ═══════════════════════════════════════════════════════════════════════════ */

.ol-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-sans);
}
.ol-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  min-height: var(--header-height);
}

.ol-brand { display: inline-flex; align-items: center; gap: var(--space-8); text-decoration: none; flex-shrink: 0; }
.ol-brand:hover { text-decoration: none; }
.ol-brand__mark { height: 28px; width: auto; display: block; }
.ol-brand__name {
  font-family: var(--font-sans);
  font-size: var(--text-h5);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}
/* Orange — faqat brend detali sifatida. */
.ol-brand__name::after { content: "."; color: var(--color-brand-orange); }

.ol-nav { display: flex; align-items: center; gap: var(--space-4); margin-inline: auto; }
.ol-nav__item { position: relative; }
.ol-nav__trigger,
.ol-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 44px;
  padding: var(--space-8) var(--space-12);
  background: none;
  border: 0;
  border-radius: var(--radius-default);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.ol-nav__trigger:hover,
.ol-nav__link:hover { background: var(--color-blue-soft); color: var(--color-action-blue); text-decoration: none; }
.ol-nav__trigger[aria-expanded="true"] { background: var(--color-blue-soft); color: var(--color-action-blue); }
.ol-nav__item--active > .ol-nav__trigger,
.ol-nav__link--active { color: var(--color-action-blue); font-weight: 600; }
.ol-nav__caret { font-size: 10px; transition: transform 0.15s ease; }
.ol-nav__trigger[aria-expanded="true"] .ol-nav__caret { transform: rotate(180deg); }

/* ── Dropdown (bir ustunli) ── */

.ol-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1100;
  width: 300px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - var(--header-height) - var(--space-24));
  overflow-y: auto;
  padding: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-default);
  box-shadow: var(--shadow-dropdown);
  display: none;
}
.ol-menu[data-open="true"] { display: block; }
/* Ekrandan chiqib ketmasin — o'ngdagi bo'limlar chapga tekislanadi. */
.ol-menu--end { left: auto; right: 0; }

.ol-menu__link {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  min-height: 44px;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-default);
  border-left: 2px solid transparent;
  color: var(--color-text-primary);
  font-size: var(--text-small);
  text-decoration: none;
}
.ol-menu__link:hover,
.ol-menu__link:focus-visible { background: var(--color-blue-soft); color: var(--color-action-blue); text-decoration: none; }
.ol-menu__link--active { color: var(--color-action-blue); border-left-color: var(--color-action-blue); font-weight: 600; }
.ol-menu__link i { color: var(--color-text-muted); font-size: 15px; flex-shrink: 0; }
.ol-menu__link--active i,
.ol-menu__link:hover i { color: var(--color-action-blue); }
.ol-menu__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ol-menu__desc { font-size: var(--text-meta); color: var(--color-text-muted); line-height: var(--leading-meta); }
.ol-menu__sep { height: 1px; margin: var(--space-4) var(--space-8); background: var(--color-border-subtle); }

/* ── Header'ning o'ng tomoni ── */

.ol-header__actions { display: flex; align-items: center; gap: var(--space-8); flex-shrink: 0; }
/* Tor ekranda flex hech qachon 44px tegish maydonini siqmasin. */
.ol-header__actions > *,
.ol-header__burger { flex-shrink: 0; }

.ol-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  position: relative;
  background: none;
  border: 0;
  border-radius: var(--radius-default);
  color: var(--color-text-secondary);
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
}
.ol-icon-btn:hover { background: var(--color-blue-soft); color: var(--color-action-blue); text-decoration: none; }
.ol-icon-btn__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--color-error);
  color: var(--color-white);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

/* Orange yulduz — kichik brend aksenti; blue tugma ustida ham, drawer
   ichidagi to'liq kenglikdagi CTA ustida ham bir xil ko'rinadi. */
.ol-premium-cta i { color: var(--color-notice); }

.ol-account { position: relative; }
.ol-account__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 44px;
  padding: var(--space-6) var(--space-8);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-default);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--color-text-primary);
  cursor: pointer;
}
.ol-account__trigger:hover { border-color: var(--color-action-blue); color: var(--color-action-blue); }
.ol-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-blue-soft);
  color: var(--color-action-blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ol-account__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Mobil ── */

.ol-header__burger { display: none; }
.ol-nav--desktop { display: flex; }

/* Desktop nav ~1043px joy talab qiladi (brand 130 + nav 632 + actions 281),
   ustiga container padding. 1199px dan pastda drawer'ga o'tamiz. */
@media (max-width: 1199px) {
  .ol-header__burger { display: inline-grid; }
  .ol-nav--desktop { display: none; }
  .ol-header__inner { gap: var(--space-8); }
  /* Logotip burger yonida qoladi; actions o'ng chekkaga suriladi. */
  .ol-brand { margin-right: auto; }
  .ol-account__name { display: none; }
}

/* Premium yorlig'i joy tor bo'lgandagina ikonkaga qisqaradi. */
@media (max-width: 767px) {
  .ol-premium-btn span { display: none; }
  .ol-premium-btn { width: 44px; min-width: 44px; padding: 0; }
}

/* Telefonda header'da faqat eng zarur boshqaruvlar qoladi; xabarlar va
   bildirishnomalar drawer ichidagi hisob akkordeonida ochiladi. */
@media (max-width: 649px) {
  .ol-icon-btn--secondary { display: none; }
  .ol-brand__name { font-size: var(--text-body); }
}

/* 480px dan tor ekranda Premium drawer ichidagi to'liq kenglikdagi CTA
   sifatida qoladi — header sig'masligi kerak emas. */
@media (max-width: 479px) {
  .ol-premium-btn { display: none; }
}

.ol-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.ol-drawer[data-open="true"] { display: block; }
.ol-drawer__backdrop { position: absolute; inset: 0; background: rgba(12, 15, 18, 0.4); }
.ol-drawer__panel {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: min(380px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
}
.ol-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid var(--color-border);
}
.ol-drawer__body { padding: var(--space-8) var(--space-16) var(--space-24); }
.ol-drawer__foot { padding: var(--space-16); border-top: 1px solid var(--color-border); }

.ol-acc { border-bottom: 1px solid var(--color-border-subtle); }
.ol-acc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
  width: 100%;
  min-height: 48px;
  padding: var(--space-12) 0;
  background: none;
  border: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
}
.ol-acc__trigger[aria-expanded="true"] { color: var(--color-action-blue); }
.ol-acc__trigger i { transition: transform 0.15s ease; font-size: 12px; }
.ol-acc__trigger[aria-expanded="true"] i { transform: rotate(180deg); }
.ol-acc__panel { display: none; padding-bottom: var(--space-8); }
.ol-acc__panel[data-open="true"] { display: block; }
.ol-acc__panel .ol-menu__link { padding-left: var(--space-8); }

/* ═══════════════════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════════════════ */

.ol-footer {
  background: var(--color-background-soft);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-64) var(--space-32);
  margin-top: var(--space-64);
  font-family: var(--font-sans);
  color: var(--color-text-secondary);
}
.ol-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr));
  gap: var(--space-32) var(--gutter);
}
.ol-footer__brand-name { font-size: var(--text-h5); font-weight: 700; color: var(--color-text-primary); }
.ol-footer__mission { max-width: 320px; margin: var(--space-12) 0 var(--space-16); font-size: var(--text-small); line-height: var(--leading-body); color: var(--color-text-muted); }
.ol-footer__col h2 { font-size: var(--text-small); font-weight: 700; color: var(--color-text-primary); margin: 0 0 var(--space-12); }
.ol-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.ol-footer__col a { font-size: var(--text-small); color: var(--color-text-secondary); text-decoration: none; }
.ol-footer__col a:hover { color: var(--color-action-blue); text-decoration: underline; }
.ol-footer__bottom {
  margin-top: var(--space-40);
  padding-top: var(--space-20);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  justify-content: space-between;
  font-size: var(--text-meta);
  color: var(--color-text-muted);
}
@media (max-width: 1023px) { .ol-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 649px)  { .ol-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ol-footer { padding-block: var(--space-40) var(--space-24); } }

/* ── Harakatni kamaytirish ─────────────────────────────────────────────────── */

@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;
  }
}

/* Drawer ochilganda body scroll bloklanadi (JS shu klassni qo'yadi). */
body.ol-scroll-locked { overflow: hidden; }
