/* ==========================================================
   QULAYLIKLAR: tungi rejim (quyosh/oy), shrift o'lchami, "asosiy matnga o'tish"
   Odatiy holat — oq (kunduzgi) fon. Tungi rejim faqat foydalanuvchi tanlasa yoqiladi.
   ========================================================== */

/* ---------- "Asosiy matnga o'tish" (faqat klaviatura bilan ko'rinadi) ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 10px; }
[dir="rtl"] .skip-link { left: auto; right: 12px; }

/* ---------- Quyosh / oy tugmasi ---------- */
.theme-toggle { position: relative; }
.theme-toggle span { display: inline-flex; }
.theme-toggle__sun { display: none !important; }
html[data-theme="dark"] .theme-toggle__moon { display: none !important; }
html[data-theme="dark"] .theme-toggle__sun { display: inline-flex !important; }

/* ---------- A− / A+ tugmalari ---------- */
.a11y { display: flex; gap: 4px; }
.a11y__btn {
  min-width: 34px; height: 30px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
}
.a11y__btn:hover { border-color: var(--primary); color: var(--primary); }
.a11y__btn:disabled { opacity: .4; cursor: default; }
@media (pointer: coarse), (max-width: 1023px) { .a11y__btn { min-width: 40px; height: 38px; } }
@media (max-width: 339px) { .a11y { display: none; } }
@media (max-width: 420px) { .topbar__info a svg { display: none; } .topbar__right { gap: 8px; } .a11y__btn { min-width: 36px; padding: 0 6px; } }

/* ---------- Shrift o'lchami darajalari (sahifa mazmuni kattalashadi, menyu joyida qoladi) ---------- */
html[data-fs="-1"] main, html[data-fs="-1"] .footer { zoom: .92; }
html[data-fs="1"]  main, html[data-fs="1"]  .footer { zoom: 1.1; }
html[data-fs="2"]  main, html[data-fs="2"]  .footer { zoom: 1.2; }

/* ==========================================================
   TUNGI REJIM
   ========================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --text: #e7e9ee;
  --text-2: #c4c9d2;
  --muted: #8f98a8;
  --line: #2a313d;
  --soft: #12161e;
  --primary: #8a73f2;
  --primary-600: #a08cf6;
  --primary-50: #1d1a33;
  --primary-100: #2d2752;
  --navy: #1a1f3d;
  --surface: #161b24;
  --bg: #0d1016;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }

/* Yuzalar (oldin oq bo'lganlar) */
html[data-theme="dark"] :is(.topbar, .header, .search, .page-hero, .page-hero--img, .subnav, .footer, .nav) { background: var(--bg) !important; }
html[data-theme="dark"] .section--soft, html[data-theme="dark"] .section.section--soft { background: var(--soft) !important; }
html[data-theme="dark"] :is(.card, .course, .student, .video-tile, .video-item, .news-big, .news-row, .news-featured, .leader,
  .event, .event__date, .value, .doc, .widget:not(.widget--accent), .initiative, .step, .contact-card, .reg__form-wrap, .council, .calendar,
  .table-wrap, .faq details, .map-block, .branch, .latest, .stats__grid, .stat, .quick__item, .quick--overlap .quick__grid,
  .quick--overlap .quick__item, .lang-select__menu, .drop, .tabs, .empty, .council-hero__logo, .council__nums li, .mini, .cat-list li a) {
  background: var(--surface) !important; border-color: var(--line) !important; color: var(--text);
}
html[data-theme="dark"] .quick--overlap .quick__item:hover, html[data-theme="dark"] .lang-select__menu button:hover { background: #1c2230 !important; }
html[data-theme="dark"] .table th { background: #1a202a; color: var(--text); }
html[data-theme="dark"] .table tbody tr:hover td { background: #1a202a; }

/* Tugmalar va maydonlar */
html[data-theme="dark"] :is(.icon-btn, .lang-select__btn, .a11y__btn, .btn--ghost, .pagination a, .pagination span, .share a, .share button, .tags a, .socials a) {
  background: var(--surface) !important; border-color: var(--line) !important; color: var(--text) !important;
}
html[data-theme="dark"] .pagination .is-active { background: var(--primary) !important; color: #fff !important; }
html[data-theme="dark"] .btn--primary, html[data-theme="dark"] .btn--navy { background: #6b52e0; color: #fff; }
html[data-theme="dark"] .btn--primary:hover { background: #7c64ea; }
html[data-theme="dark"] .btn--white { background: #fff; color: #111827; }
html[data-theme="dark"] :is(input, select, textarea, .form input, .form select, .form textarea, .input-search input, .search__form input) {
  background: #10141b !important; color: var(--text) !important; border-color: var(--line) !important;
}
html[data-theme="dark"] ::placeholder { color: #6f7887; }
html[data-theme="dark"] .tabs button { color: var(--text-2); }
html[data-theme="dark"] .tabs button.is-active { background: var(--primary); color: #fff; }

/* Matn va havolalar */
html[data-theme="dark"] :is(h1, h2, h3, h4, .title, .brand__text strong, .quick__item strong, .stat strong, .event__date strong, .council__nums strong) { color: var(--text) !important; }
html[data-theme="dark"] :is(.nav__list > li > a, .drop a, .footer ul a, .topbar__info a, .topbar__info span) { color: var(--text-2); }
html[data-theme="dark"] .nav__list > li > a:hover, html[data-theme="dark"] .nav__list > li > a.is-active { color: var(--primary); }
html[data-theme="dark"] .prose blockquote { background: var(--primary-50); color: var(--text); }

/* Logotiplar qorong'i fonda ham aniq ko'rinsin */
/* Logotiplar: fonsiz; tungi rejimda xuddi shu o'lchamdagi och rangli nusxa ko'rsatiladi */
.logo-dark { display: none !important; }
html[data-theme="dark"] .logo-light { display: none !important; }
html[data-theme="dark"] .logo-dark { display: block !important; }

/* Rasm joylari, chiziqlar */
html[data-theme="dark"] .media { background: #1b212b; }
html[data-theme="dark"] .timeline__item::before { background: var(--bg); }
html[data-theme="dark"] .overlay { background: rgba(0,0,0,.6); }
html[data-theme="dark"] .to-top { background: #6b52e0; }

/* Rejim almashganda ranglar silliq o'zgarsin (animatsiyasiz qurilmalar bundan mustasno) */
@media (prefers-reduced-motion: no-preference) {
  body, .header, .topbar, .card, .course, .footer { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
}

/* Qo'shimcha: tungi rejimda qolgan oq joylar */
html[data-theme="dark"] .contact__map, html[data-theme="dark"] .map-block__map { background: var(--surface) !important; }
html[data-theme="dark"] .calendar__legend i.t { background: var(--bg); }
html[data-theme="dark"] .pill--green { background: rgba(34, 197, 94, .14); color: #6ee7a1; }
html[data-theme="dark"] .pill--yellow { background: rgba(234, 179, 8, .14); color: #facc15; }
html[data-theme="dark"] .pill--gray { background: var(--surface); color: var(--muted); border-color: var(--line); }

/* ==========================================================
   KONTRAST TUZATISHLARI (har bir matn kamida 4.5:1)
   ========================================================== */
/* --- Kunduzgi va umumiy --- */
.pill--green { color: #166534; }
.pill--yellow { color: #854d0e; }
.mini__num { color: var(--muted); }
.crumbs .sep { color: var(--muted); }

/* --- Tungi rejim: binafsha fonli elementlarda oq matn o'qilsin --- */
html[data-theme="dark"] :is(.tabs button.is-active, .tag, .media .tag, .card__media .tag, .calendar__day.has-event,
  .pagination .is-active, .btn--primary, .btn--navy, .to-top) {
  background: #5b43d6 !important; color: #fff !important;
}
html[data-theme="dark"] :is(.tabs button.is-active, .btn--primary, .btn--navy, .calendar__day.has-event, .to-top):hover { background: #6a53e0 !important; }
/* Binafsha yon blok */
html[data-theme="dark"] .widget--accent { background: #33267a !important; border-color: #33267a !important; }
html[data-theme="dark"] .widget--accent h3 { color: #fff !important; border-color: rgba(255,255,255,.25); }
html[data-theme="dark"] .widget--accent p { color: #e6e3f2 !important; }
html[data-theme="dark"] .widget--accent .btn { background: #fff !important; color: #4b2fa6 !important; }
/* Sarlavha ichidagi rangli so'z (inline uslub bilan berilgan) */
html[data-theme="dark"] .title span[style], html[data-theme="dark"] .accent { color: var(--primary) !important; }
/* Kunduzgi rejimdagi yashil/sariq yorliqlar tungi rejimda o'z tusida */
html[data-theme="dark"] .pill--green { color: #6ee7a1; }
html[data-theme="dark"] .pill--yellow { color: #facc15; }
/* Forma xabarlari */
.form__msg.ok { color: #15803d; }
.form__msg.err { color: #b91c1c; }
.form .is-invalid { border-color: #b91c1c !important; }
html[data-theme="dark"] .form__msg.ok { color: #4ade80; }
html[data-theme="dark"] .form__msg.err { color: #f87171; }
html[data-theme="dark"] .form .is-invalid { border-color: #f87171 !important; }

/* ==========================================================
   SAYQAL: kengash raqamlari, 01–04, aloqa paneli, yumaloq katakcha
   ========================================================== */

/* --- 1. Kengash raqamlari: teng qutilar, markazda --- */
.council__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; margin: 20px 0; padding: 0; list-style: none; }
.council__nums li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 92px; padding: 14px 8px; text-align: center; border-radius: 12px !important; }
.council__nums strong { font-size: 24px; line-height: 1; letter-spacing: -.01em; }
.council__nums span { font-size: 12.5px !important; line-height: 1.3; color: var(--muted); max-width: 11ch; }

/* --- 2. 01–04 raqamlari: bir qatorda, bir xil kenglikda --- */
.mini { align-items: flex-start; gap: 14px; }
.mini__num { flex: 0 0 30px; width: 30px; white-space: nowrap; font-size: 17px; line-height: 1.45; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: 0; text-align: left; padding-top: 1px; }
[dir="rtl"] .mini__num { text-align: right; }

/* --- 3. Aloqa: 4 ta alohida quti o'rniga bitta yaxlit panel --- */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 !important;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.contact-cards .contact-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-content: start;
  border: 0 !important; border-radius: 0 !important; border-right: 1px solid var(--line) !important; padding: 24px 22px; background: transparent !important; }
.contact-cards .contact-card:last-child { border-right: 0 !important; }
.contact-cards .contact-card .quick__icon { grid-row: 1 / span 3; width: 44px !important; height: 44px !important; margin: 0;
  border-radius: 50% !important; background: var(--primary-50) !important; color: var(--primary) !important; display: grid; place-items: center; }
.contact-cards .contact-card .quick__icon svg { width: 20px; height: 20px; }
.contact-cards .contact-card small { grid-column: 2; margin-top: 2px; }
.contact-cards .contact-card strong { grid-column: 2; font-size: 15.5px; }
.contact-cards .contact-card .link { grid-column: 2; margin-top: 6px; font-size: 13.5px; justify-self: start; }
[dir="rtl"] .contact-cards .contact-card { border-right: 0 !important; border-left: 1px solid var(--line) !important; }
[dir="rtl"] .contact-cards .contact-card:last-child { border-left: 0 !important; }
html[data-theme="dark"] .contact-cards { background: var(--surface); border-color: var(--line); }
@media (max-width: 1023px) {
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards .contact-card:nth-child(2) { border-right: 0 !important; }
  .contact-cards .contact-card:nth-child(-n+2) { border-bottom: 1px solid var(--line) !important; }
  [dir="rtl"] .contact-cards .contact-card:nth-child(2) { border-left: 0 !important; }
}
@media (max-width: 599px) {
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .contact-cards .contact-card { border-right: 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line) !important; padding: 18px; }
  .contact-cards .contact-card:last-child { border-bottom: 0 !important; }
}

/* --- 4. Yumaloq belgilash katakchasi + "Batafsil" --- */
.form__check-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
.form .form__check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--text-2); margin: 0; }
.form .form__check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: 0 0 22px; width: 22px !important; height: 22px !important; margin: 0; padding: 0;
  border: 2px solid #9ca3af !important; border-radius: 50% !important; background: #fff !important;
  display: inline-grid; place-content: center; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.form .form__check input[type="checkbox"]::before {
  content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity .15s;
}
.form .form__check input[type="checkbox"]:checked { background: var(--primary) !important; border-color: var(--primary) !important; }
.form .form__check input[type="checkbox"]:checked::before { opacity: 1; }
.form .form__check input[type="checkbox"]:hover { border-color: var(--primary) !important; }
.form .form__check input[type="checkbox"]:focus-visible { outline: 3px solid var(--primary-100); outline-offset: 2px; }
.form .form__check input[type="checkbox"].is-invalid { border-color: #b91c1c !important; }
.form__check-link { color: var(--primary); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.form__check-link:hover { text-decoration-thickness: 2px; }
html[data-theme="dark"] .form .form__check input[type="checkbox"] { background: #10141b !important; border-color: #4b5563 !important; }
html[data-theme="dark"] .form .form__check input[type="checkbox"]:checked { background: #5b43d6 !important; border-color: #5b43d6 !important; }
html[data-theme="dark"] .form .form__check input[type="checkbox"].is-invalid { border-color: #f87171 !important; }

/* Hujjatlarga "Batafsil" orqali kelinganda maxfiylik hujjati ajratib ko'rsatiladi */
.doc:target { border-color: var(--primary) !important; box-shadow: 0 0 0 3px var(--primary-100) !important; }
/* Aloqa paneli: boshqa bloklar bilan bir chiziqda; 4 ustun faqat keng ekranda */
.container.contact-cards { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding: 0 !important; }
.contact-cards .contact-card strong, .contact-cards .contact-card strong a { overflow-wrap: normal; word-break: normal; }
.contact-cards .contact-card strong a[href^="tel:"], .contact-cards .contact-card strong a[href^="mailto:"] { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .contact-cards .contact-card:nth-child(2) { border-right: 0 !important; }
  .contact-cards .contact-card:nth-child(-n+2) { border-bottom: 1px solid var(--line) !important; }
}
.form__check-row { flex-wrap: nowrap; align-items: center; }
.form__check-row .form__check { flex: 1 1 auto; min-width: 0; }
.form__check-row .form__check-link { flex: 0 0 auto; white-space: nowrap; }

/* ==========================================================
   TELEFON HEADER'I: tugmalar o'ng chetda, raqam bir qatorda
   ========================================================== */
.header__actions { margin-left: auto; }
[dir="rtl"] .header__actions { margin-left: 0; margin-right: auto; }
.topbar__info a, .topbar__info span { white-space: nowrap; }
.a11y--nav { display: none; }

@media (max-width: 1180px) {
  .header__inner { gap: 12px; }
  .header__actions { gap: 8px; }
}
@media (max-width: 479px) {
  /* A−/A+ yuqori paneldan menyu ichiga ko'chadi */
  .topbar .a11y { display: none !important; }
  .nav .a11y--nav { display: flex !important; justify-content: center; gap: 12px; padding: 6px 0 2px; }
  .nav .a11y--nav .a11y__btn { min-width: 56px; height: 44px; font-size: 15px; }
  .topbar__inner { min-height: 48px; gap: 10px; }
  .topbar__info a { font-size: 13.5px; gap: 6px; }
  .header__actions .icon-btn { width: 40px; height: 40px; }
}
@media (max-width: 359px) {
  .topbar__info a svg { display: none; }
  .topbar__info a { font-size: 13px; }
  .header__actions { gap: 6px; }
  .header__actions .icon-btn { width: 38px; height: 38px; }
  .brand__logo { height: 30px; }
}

/* ==========================================================
   QISQA MATNLAR BIR QATORDA
   ========================================================== */
/* Sana, ko'rishlar, vaqt — bo'linmaydi; kerak bo'lsa butun element keyingi qatorga o'tadi */
.meta { flex-wrap: wrap; row-gap: 6px; }
.meta > span { white-space: nowrap; }
/* Tadbir: vaqt alohida, manzil alohida — tartibli */
.event__info p.event__where { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 14px; }
.event__where > span { display: inline-flex; align-items: center; gap: 6px; }
.event__where .event__time { white-space: nowrap; }
.event__where svg { flex-shrink: 0; }
/* Statistika va kichik izohlar — teng balandlik, chiroyli bo'linish */
.stat span, .council__nums span { text-wrap: balance; }
.stats__grid { align-items: stretch; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Telefonda tezkor havolalar: ikonka tepada, matn ostida — bir qatorda */
@media (max-width: 479px) {
  .quick--overlap .quick__item { flex-direction: column !important; align-items: center !important; text-align: center; gap: 8px !important; padding: 16px 8px !important; }
  .quick--overlap .quick__item strong { font-size: 13.5px !important; line-height: 1.3; white-space: nowrap; }
  .stat span { font-size: 12px; line-height: 1.35; }
}
@media (max-width: 359px) {
  .quick--overlap .quick__item strong { font-size: 12.5px !important; }
}

/* ==========================================================
   Menyu: alohida strelka tugmasi + doim ko'rinadigan X
   ========================================================== */
.nav__head { display: none; }
.has-drop { display: flex; align-items: center; }
.nav__list > .has-drop > a { padding-right: 2px; }
.drop-toggle {
  display: grid; place-items: center; background: none; border: 0; padding: 0 8px 0 0;
  color: var(--text-2); cursor: pointer; align-self: stretch;
}
.drop-toggle svg { width: 14px; height: 14px; transition: transform .25s ease; }
.has-drop:hover .drop-toggle, .has-drop > a.is-active + .drop-toggle { color: var(--primary); }
[dir="rtl"] .nav__list > .has-drop > a { padding-right: 11px; padding-left: 2px; }
[dir="rtl"] .drop-toggle { padding: 0 0 0 8px; }

@media (max-width: 1180px) {
  .nav { padding-top: 0 !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .nav__head {
    display: flex; justify-content: flex-end; align-items: center;
    position: sticky; top: 0; z-index: 3; flex: none;
    margin: 0 -20px; padding: 14px 20px 10px; background: #fff;
    border-bottom: 1px solid var(--line);
  }
  html[data-theme="dark"] .nav__head { background: var(--bg); }
  .nav__close { width: 44px; height: 44px; border-radius: 50% !important; }
  .nav__close svg { width: 20px; height: 20px; }
  html.menu-open .burger { visibility: hidden; transition: none; }

  .has-drop { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; }
  .nav__list > .has-drop > a { padding-right: 14px; }
  [dir="rtl"] .nav__list > .has-drop > a { padding-left: 14px; padding-right: 14px; }
  .drop-toggle, [dir="rtl"] .drop-toggle {
    width: 44px; height: 44px; padding: 0; justify-self: end; align-self: center;
    border-radius: 50%; transition: background .2s, color .2s;
  }
  .drop-toggle:hover { background: var(--primary-50); color: var(--primary); }
  html[data-theme="dark"] .drop-toggle:hover { background: rgba(255,255,255,.06); }
  .drop-toggle svg { width: 18px; height: 18px; }
  .has-drop.is-sub-open > .drop-toggle { color: var(--primary); }
  .has-drop.is-sub-open > .drop-toggle svg { transform: rotate(180deg); }
  .has-drop > .drop { grid-column: 1 / -1; display: none !important; }
  .has-drop.is-sub-open > .drop { display: block !important; }
}
/* Menyu ochiq bo'lsa — u tepadagi paneldan (til tugmasi) ham ustun turadi */
@media (max-width: 1180px) {
  html.menu-open .header { z-index: 200; }
}

/* ==========================================================
   Qidiruv paneli: ekranga sig'adi + jonli maslahatlar
   ========================================================== */
.search.is-open { max-height: 640px; }
.search__form { min-width: 0; }
.search__form > svg { flex: none; width: 20px; height: 20px; }
.search__form input { min-width: 0; width: 100%; }
.search__go { flex: none; gap: 8px; white-space: nowrap; }
.search__go svg { width: 18px; height: 18px; display: none; }

.suggest {
  list-style: none; margin: 0 0 14px; padding: 6px; max-height: min(60vh, 460px); overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  overscroll-behavior: contain;
}
.suggest[hidden] { display: none; }
.suggest__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; transition: background .15s;
}
.suggest__item:hover, .suggest__item.is-active { background: var(--primary-50); }
.suggest__ic {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary);
}
.suggest__ic svg { width: 18px; height: 18px; }
.suggest__txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.suggest__txt strong {
  font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.suggest__txt small { font-size: 12.5px; color: var(--muted); }
.suggest mark { background: transparent; color: var(--primary); font-weight: 700; }
.suggest__empty { padding: 14px 12px; color: var(--muted); font-size: 14.5px; text-align: center; }

html[data-theme="dark"] .suggest { background: #161b24; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .suggest__item:hover, html[data-theme="dark"] .suggest__item.is-active { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .suggest__ic { background: rgba(138,115,242,.16); color: #a996ff; }
html[data-theme="dark"] .suggest mark { color: #a996ff; }

/* Topilgan element qisqa vaqt belgilanadi */
.is-found { outline: 3px solid var(--primary) !important; outline-offset: 4px; border-radius: 16px; transition: outline-color .4s; }
tr.is-found { outline-offset: -3px; }
.event:target { outline: 3px solid var(--primary); outline-offset: 4px; border-radius: 16px; }

@media (max-width: 599px) {
  .search__form { gap: 8px; padding: 12px 0; }
  .search__form > svg { display: none; }
  .search__form input { padding: 10px 16px !important; font-size: 16px; }
  .search__go { width: 46px; height: 46px; padding: 0 !important; border-radius: 50% !important; justify-content: center; }
  .search__go span { display: none; }
  .search__go svg { display: block; }
  [dir="rtl"] .search__go svg { transform: scaleX(-1); }
  .suggest { margin-bottom: 12px; border-radius: 16px; }
  .suggest__item { padding: 10px; gap: 10px; }
  .suggest__ic { width: 34px; height: 34px; }
  .suggest__txt strong { font-size: 14.5px; }
}

/* Footer "Aloqa": ikonka va matn bir chiziqda */
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; line-height: 1.5; }
.footer__contact li a, .footer ul.footer__contact a { display: inline; padding: 0 !important; }
.footer__contact svg { flex: none; width: 16px; height: 16px; margin-top: calc(.75em - 8px) !important; }

/* Mobil menyu tepasi: chapda logotip, o'ngda X */
@media (max-width: 1180px) {
  .nav__head { justify-content: space-between; gap: 12px; }
  .nav__brand { display: flex; align-items: center; min-width: 0; }
  .nav__brand img { height: 36px; width: auto; display: block; }
}

/* ==========================================================
   Hamkorlar: bir qatorli, to'xtovsiz aylanuvchi karusel
   ========================================================== */
.partners .section__head { margin-bottom: 28px; }
.marquee {
  --p-size: 116px; --p-gap: 40px; --p-speed: 38s;
  position: relative; overflow: hidden; direction: ltr; padding: 8px 0 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee__track { display: flex; width: max-content; animation: km-marquee var(--p-speed) linear infinite; will-change: transform; }
.marquee__group { display: flex; gap: var(--p-gap); padding-right: var(--p-gap); margin: 0; list-style: none; flex: none; }
@keyframes km-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.partner { min-width: calc(var(--p-size) + 28px); flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.partner__logo {
  width: var(--p-size); height: var(--p-size); border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20, 16, 50, .07);
}
.partner__logo svg { width: 44%; height: 44%; }
.partner__logo img { width: 72%; height: 72%; object-fit: contain; }
.partner__logo.p1 { color: #14229c; } .partner__logo.p2 { color: #0e7490; }
.partner__logo.p3 { color: #b45309; } .partner__logo.p4 { color: #1d4ed8; }
.partner__logo.p5 { color: #4f35c9; } .partner__logo.p6 { color: #be123c; }
.partner__logo.p7 { color: #047857; } .partner__logo.p8 { color: #7e22ce; }
.partner__name { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--text-2); white-space: nowrap; }

html[data-theme="dark"] .partner__logo { border-color: rgba(255,255,255,.14); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
html[data-theme="dark"] .partner__name { color: var(--text-2); }

@media (max-width: 1023px) { .marquee { --p-size: 100px; --p-gap: 30px; --p-speed: 32s; } }
@media (max-width: 599px) {
  .marquee { --p-size: 84px; --p-gap: 22px; --p-speed: 26s;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
  .partner { gap: 10px; }
  .partner__name { font-size: 13px; }
  .partners .section__head { margin-bottom: 20px; }
}
@media print { .marquee__track { animation: none; } }

/* ==========================================================
   Skroll animatsiyasi: pastdan yuqoriga silliq paydo bo'lish
   (har safar ekranga kirganda takrorlanadi)
   ========================================================== */
html.km-rv .rv {
  opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity .7s cubic-bezier(.2, .65, .25, 1), transform .7s cubic-bezier(.2, .65, .25, 1),
              background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease !important;
  transition-delay: var(--rv-d, 0ms), var(--rv-d, 0ms), 0ms, 0ms, 0ms, 0ms !important;
}
html.km-rv .rv.rv-in { opacity: 1; transform: none; }
/* Tizimda "harakatni kamaytirish" yoqilgan bo'lsa — faqat yumshoq paydo bo'lish (siljishsiz) */
@media (prefers-reduced-motion: reduce) {
  html.km-rv .rv { transform: none !important; transition: opacity .5s ease !important; }
}
@media print { html.km-rv .rv { opacity: 1 !important; transform: none !important; } }

/* ==========================================================
   Yuklanish skeleti (birinchi kirishda va yangilashda)
   ========================================================== */
html.km-loading, html.km-loading body { overflow: hidden !important; }
html { overscroll-behavior-y: contain; }   /* brauzerning o'z "tortib yangilash"i o'rniga bizniki */
.skel {
  --sk-bg: #ffffff; --sk-bone: #eceef4; --sk-shine: rgba(255,255,255,.75); --sk-line: #eef0f5;
  position: fixed; inset: 0; z-index: 9990; background: var(--sk-bg); overflow: hidden;
  display: flex; flex-direction: column; transition: opacity .38s ease;
}
html[data-theme="dark"] .skel { --sk-bg: #0d1016; --sk-bone: #1a2029; --sk-shine: rgba(255,255,255,.06); --sk-line: #1c222c; }
.skel.skel--out { opacity: 0; pointer-events: none; }
html.km-refresh .skel { animation: km-skel-in .3s ease both; }
@keyframes km-skel-in { from { opacity: 0; } to { opacity: 1; } }

.skel__b {
  display: block; border-radius: 10px; position: relative; overflow: hidden;
  background: var(--sk-bone);
}
.skel__b::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--sk-shine), transparent);
  animation: km-shimmer 1.3s ease-in-out infinite;
}
@keyframes km-shimmer { to { transform: translateX(100%); } }

.skel__top, .skel__head, .skel__body { width: min(1240px, calc(100% - 2 * var(--gutter, 24px))); margin: 0 auto; }
.skel__top { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.skel__phone { width: 150px; height: 12px; }
.skel__lang { width: 96px; height: 28px; border-radius: 999px; }
.skel__head {
  display: flex; align-items: center; gap: 28px; height: 76px;
  border-top: 1px solid var(--sk-line); border-bottom: 1px solid var(--sk-line);
  width: 100%; padding: 0 max(var(--gutter, 24px), calc((100% - 1240px) / 2));
}
.skel__logo { width: 110px; height: 36px; flex: none; }
.skel__nav { display: flex; gap: 18px; flex: 1; }
.skel__nav .skel__b { width: 78px; height: 12px; }
.skel__acts { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.skel__dot { width: 42px; height: 42px; border-radius: 50%; }
.skel__dot--m { display: none; }
.skel__cta { width: 150px; height: 44px; border-radius: 999px; }
.skel__body { padding-top: 24px; display: flex; flex-direction: column; gap: 22px; }
.skel__hero {
  height: min(46vh, 440px); border-radius: 20px; background: var(--sk-bone);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 40px;
}
.skel__hero .skel__b { background: var(--sk-line); }
html[data-theme="dark"] .skel__hero .skel__b { background: #232a35; }
.skel__h1 { width: min(520px, 70%); height: 30px; }
.skel__h1--s { width: min(380px, 52%); }
.skel__p { width: min(460px, 62%); height: 14px; }
.skel__btn { width: 170px; height: 46px; border-radius: 999px; margin-top: 8px; }
.skel__quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skel__quick .skel__b { height: 74px; border-radius: 16px; }
.skel__title { width: 260px; height: 26px; margin-top: 10px; }
.skel__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skel__card { display: flex; flex-direction: column; gap: 12px; }
.skel__img { height: 190px; border-radius: 16px; }
.skel__line { height: 14px; width: 92%; }
.skel__line--s { width: 60%; }

@media (max-width: 1180px) {
  .skel__nav, .skel__cta { display: none; }
  .skel__dot--m { display: block; }
}
@media (max-width: 1023px) {
  .skel__cards { grid-template-columns: repeat(2, 1fr); }
  .skel__card:nth-child(3) { display: none; }
}
@media (max-width: 599px) {
  .skel__top { height: 48px; }
  .skel__phone { width: 130px; }
  .skel__lang { width: 78px; height: 34px; }
  .skel__head { height: 66px; padding: 0 16px; }
  .skel__logo { width: 92px; height: 30px; }
  .skel__dot { width: 40px; height: 40px; }
  .skel__body { gap: 16px; padding-top: 16px; }
  .skel__hero { height: 52vh; padding: 22px; border-radius: 18px; }
  .skel__btn { width: 100%; }
  .skel__quick { grid-template-columns: repeat(2, 1fr); gap: 0; border-radius: 16px; overflow: hidden; }
  .skel__quick .skel__b { border-radius: 0; height: 86px; border: 1px solid var(--sk-bg); }
  .skel__title { width: 62%; }
  .skel__cards { grid-template-columns: 1fr; }
  .skel__card:nth-child(n+2) { display: none; }
}

/* ==========================================================
   Tortib yangilash: tepada doira ichida aylanuvchi belgi
   ========================================================== */
.ptr {
  position: fixed; top: 0; left: 50%; z-index: 9995; pointer-events: none;
  transform: translate3d(-50%, -56px, 0); opacity: 0; display: none;
  padding-top: env(safe-area-inset-top, 0px);
}
.ptr.ptr--show, .ptr.ptr--spin { display: block; }
.ptr.ptr--back, .ptr.ptr--spin { transition: transform .26s cubic-bezier(.2,.7,.2,1), opacity .26s ease !important; }
.ptr.ptr--fade { opacity: 0 !important; transition: opacity .3s ease !important; }
.ptr__circle {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 6px 20px rgba(20, 16, 50, .18), 0 0 0 1px rgba(20, 16, 50, .05);
}
.ptr__circle svg { width: 24px; height: 24px; transform: rotate(-90deg); }
.ptr__track { fill: none; stroke: #ebe8fb; stroke-width: 2.6; }
.ptr__arc { fill: none; stroke: #5b43d6; stroke-width: 2.6; stroke-linecap: round; transition: stroke-dashoffset .08s linear; }
.ptr.ptr--ready .ptr__arc { stroke: #4527c4; }
html[data-theme="dark"] .ptr__circle { background: #1b212b; box-shadow: 0 6px 20px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); }
html[data-theme="dark"] .ptr__track { stroke: #2a3140; }
html[data-theme="dark"] .ptr__arc { stroke: #8a73f2; }
/* Yangilanish paytida doira to'xtovsiz aylanadi (bu muhim ko'rsatkich, shuning uchun doim ishlaydi) */
html .ptr.ptr--spin .ptr__circle { animation: km-ptr-spin .75s linear infinite !important; }
@keyframes km-ptr-spin { to { transform: rotate(360deg); } }
.skel > * { flex: none; }
.skel__body { flex: 1 1 auto; min-height: 0; }
.skel__body > * { flex: none; }
