/* Bosh sahifa — «Bolalik» (spec 2026-10-14 §10.1, mockup «C · Bolalik»).
   Tartib o'zgarmaydi: hero → bannerlar → tezkor kirish → xizmatlar →
   bo'limlar. Hero — yalpiz paneli, plitkalar — tus plitkalari, xizmat va
   bo'lim — oq varaqlar. */

.home { width: min(var(--content-width), calc(100% - 64px)); margin-inline: auto; }

/* Bo'lim sarlavhalari mockupdagidek ko'rinadi (ilgari faqat ekran
   o'quvchisi uchun edi). Markup o'zgarmaydi: `.visually-hidden` shu yerda
   bekor qilinadi. */
.home-quick > h2.visually-hidden, .home-tiles > h2.visually-hidden, .home-sections > h2.visually-hidden {
  position: static; width: auto; height: auto; margin: 0 0 20px; padding: 0; overflow: visible; clip-path: none; white-space: normal;
  font-size: 26px; font-weight: 800; letter-spacing: -.025em; color: var(--text-primary);
}

/* Hero — yalpiz paneli. Bezak: o'ng pastda logodagi barg va uchta tus
   doirasi, shaffofligi temaga qarab (--decor-opacity). Ikkalasi ham
   pseudo-element: ekran o'quvchisiga ko'rinmaydi, markupga tegilmaydi. */
.home-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; margin-top: 12px; padding: 80px 64px 72px; border-radius: var(--radius-hero); background: var(--tint-yalpiz-soft); }
.home-hero::before { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -110px; width: 440px; height: 440px; background: var(--brand-mark) center / contain no-repeat; opacity: var(--decor-opacity); transform: rotate(-8deg); pointer-events: none; }
.home-hero::after { content: ""; position: absolute; z-index: -1; right: 330px; top: 52px; width: 56px; height: 56px; border-radius: 50%; background: var(--tint-shaftoli-soft); box-shadow: 190px 70px 0 -15px var(--tint-sariyog-soft), -110px 250px 0 -19px var(--tint-lavanda-soft); pointer-events: none; }
/* Salomlashuv — oq pill, sarlavha ustida. Ism `--accent` bilan: u bosiladi
   va kabinetga olib boradi. */
.home-greeting { display: inline-flex; flex-wrap: wrap; gap: 0 .3em; margin: 0 0 18px; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text-secondary); font-size: 15px; font-weight: 600; text-wrap: balance; }
.home-greeting-name { color: var(--accent); font-weight: 800; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .home-greeting-name:hover { text-decoration: underline; text-underline-offset: 3px; } }
/* To'lqinli tagchiziq — mockupdagi qo'lda chizilgandek chiziq. Matnning
   o'z bezagi: til va uzunlik qanday bo'lsa ham so'z ostiga tushadi. */
.home-hero h1 { max-width: 14ch; margin: 0; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.04; font-weight: 800; letter-spacing: -.04em; text-align: left; text-decoration: underline wavy var(--tint-shaftoli-strong); text-decoration-thickness: 4px; text-underline-offset: 14px; text-decoration-skip-ink: none; }
.home-search { width: min(var(--search-width), 100%); margin-top: 48px; }
.home-search .search-field { width: 100%; }
.home-search .search-field-large { padding-right: 76px; }
/* Qidirish tugmasi markupda bor, lekin ilgari faqat ekran o'quvchisi uchun
   edi. Endi u maydon ichidagi yashil doira (mockup). Matni («Qidirish»)
   ekran o'quvchisi uchun qoladi, ko'zga lupa belgisi ko'rinadi. */
.home-search > button[type="submit"].visually-hidden {
  position: absolute; z-index: 1; top: 9px; right: 9px; width: 54px; height: 54px; margin: 0; padding: 0; overflow: hidden; clip-path: none;
  border: 0; border-radius: 50%; background: var(--accent); color: transparent; font-size: 0; cursor: pointer;
}
.home-search > button[type="submit"].visually-hidden::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; background: var(--text-on-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-search > button[type="submit"].visually-hidden:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* Takliflar qutisi maydon ostida suzadi. `position: relative` formada, */
/* chunki quti kengligi maydon kengligiga teng bo'lishi kerak. */
.home-search { position: relative; }
.home-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 10px); display: grid; gap: 4px; max-height: min(60vh, 420px); overflow-y: auto; padding: 10px; border: 1px solid var(--card-border); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow-float); }
.home-suggest-row { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius-control); color: var(--text-primary); text-decoration: none; }
.home-suggest-row[aria-selected="true"] { background: var(--surface-selected); }
.home-suggest-row.is-locked { cursor: not-allowed; }
.home-suggest-row.is-locked strong { color: var(--text-secondary); }
.home-suggest-type { width: fit-content; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.home-suggest-access { color: var(--warning); font-size: 12px; }
.home-suggest-row.is-more strong { color: var(--accent-strong); font-size: 14px; }
.home-suggest-state { margin: 10px 0 0; color: var(--text-secondary); font-size: 13px; }

/* ── Reklama tasmasi (spec 2026-09-15-reklama-bannerlari) ─────────────────
   Halqa: ekranda `--ads-slots` ta plitka, o'ngda bitta kirib keladigan
   plitka yashirin turadi. Qadam: 450 ms siljish + har plitka 90 ms kechikish.
   ⚠ premium-dizayn §4 dagi 300 ms chegarasidan ONGLI ISTISNO: bu bosishga
   javob emas, 6 soniyada bir marta bo'ladigan bezak harakati. Qisqartirilsa
   plitkalarning ketma-ket jo'nashi («tortib ketish») sig'maydi — spec §2.1.
   Joylar chegarasi `slotsFor()` (adapters/banners.js) bilan bir xil. */
.home-ads { --ads-slots: 3; --ads-gap: 16px; --ads-move: 450ms; --ads-slide: 5000ms; width: 100%; margin-top: 32px; }
.home-ads-viewport { overflow: hidden; padding: 4px; margin: -4px; touch-action: pan-y; }
.home-ads-track { display: flex; gap: var(--ads-gap); }
.home-ad {
  position: relative; display: block; flex: 0 0 calc((100% - (var(--ads-slots) - 1) * var(--ads-gap)) / var(--ads-slots));
  aspect-ratio: 3 / 1; overflow: hidden; border: 1px solid var(--card-border); border-radius: var(--radius-card); box-shadow: var(--shadow-raised);
  background: var(--canvas-raised); color: inherit;
}
.home-ad:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.home-ad-media { display: block; width: 100%; height: 100%; }
.home-ad-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Statik zaxira uz rasm; ru/en foydalanuvchida shell `data-i18n-pending` ni
 * DOMContentLoaded gacha ushlab turadi — shu paytda sayt rasmi ko'rsatilmaydi,
 * noto'g'ri tildagi banner bir lahzaga ham chiqmaydi (spec 2026-09-21 §2a.2). */
html[data-i18n-pending] .home-ad[data-ad-house] img { visibility: hidden; }
[data-ads-step] .home-ad { transition: transform var(--ads-move) var(--ease-out) var(--ads-delay, 0ms); }
[data-ads-step="forward"] .home-ad,
[data-ads-step="back-start"] .home-ad { transform: translateX(calc(-100% - var(--ads-gap))); }
[data-ads-step="back-start"] .home-ad { transition: none; }
[data-ads-step="back"] .home-ad { transform: none; }
.home-ads-bar { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; }
.home-ads-progress { flex: 0 0 96px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-sunken); }
.home-ads-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: ads-progress var(--ads-slide) linear forwards; }
[data-ads-paused="true"] .home-ads-progress i { animation-play-state: paused; }
[data-ads-stepping="true"] .home-ads-progress i { animation: none; transform: scaleX(1); }
@keyframes ads-progress { to { transform: scaleX(1); } }
@media (max-width: 899px) { .home-ads { --ads-slots: 2; } }
@media (max-width: 599px) { .home-ads { --ads-slots: 1; --ads-gap: 12px; margin-top: 24px; } }
/* Jonli plitka — banner (spec 2026-09-21 2-bosqich §2): tasma reklama yuzasi,
   shuning uchun gradient shu yerda ruxsatli (§1.1) — faqat token orqali, funksiya
   bu faylda yozilmaydi. Qo'shnilar grammatikasi: eyebrow → katta raqam → meta → pill.
   Matn sof oq (≥6:1), shaffoflik faqat chiziq ostida va meta qatorida. */
/* Plitka 3:1 qutida yashaydi va `overflow: hidden` — demak ichki o'lchamlar
   ham katak KENGLIGIDAN kelib chiqadi. Qat'iy px bilan pastki qator («Sayt
   tirikligi» tugmasi) qirqilib qolardi: 1040 px sahifada katak 336 px, bo'yi
   112 px, ichki ustun esa 116 px edi; 900 px da farq 27 px ga yetardi.
   `container-type: inline-size` + `cqi` — har o'lcham katak kengligining
   ulushi (bo'y = 33.3cqi), `clamp` px chegarasini ushlaydi. Bo'y budjeti:
   2×2.8 (ichki chet) + 3.9 (eyebrow) + 2×1 (oraliq) + 11 (raqam) + 7.4
   (tugma) ≈ 30cqi < 33.3cqi. Har o'lchamdan oldin px qiymati turadi:
   `cqi` ni bilmaydigan brauzer o'shanda qoladi. */
.home-ad-live {
  container-type: inline-size;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "eyebrow eyebrow" "main spark" "meta cta";
  align-items: end; gap: 4px 12px; padding: 12px 16px;
  gap: clamp(2px, 1cqi, 6px) clamp(10px, 3.5cqi, 16px); padding: clamp(8px, 2.8cqi, 14px) clamp(12px, 4cqi, 18px);
  border-color: transparent; background: var(--tint-osmon-soft); color: var(--tint-osmon-ink); text-decoration: none;
}
.home-ad-live:focus-visible { outline: 2px solid var(--tint-osmon-ink); outline-offset: -4px; }
.home-ad-live-eyebrow { grid-area: eyebrow; display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 11px; font-size: clamp(9px, 3.1cqi, 11px); line-height: 1.2; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.home-ad-pulse { flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--tint-osmon-ink); }
/* Raqam yangilanganda bir marta uradi (JS `is-beat` qo'yadi); halqa yo'q. */
.home-ad-pulse.is-beat { animation: ads-pulse 900ms var(--ease-out) 1; }
.home-ad-live-main { grid-area: main; display: flex; align-items: baseline; gap: 8px; align-self: center; min-width: 0; overflow: hidden; }
.home-ad-live-main b { font-size: 40px; font-size: clamp(22px, 11cqi, 40px); line-height: 1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.home-ad-live-main span { font-size: 14px; font-size: clamp(11px, 4cqi, 14px); white-space: nowrap; }
.home-ad-live-spark { grid-area: spark; align-self: center; width: 120px; height: 40px; width: clamp(64px, 30cqi, 120px); height: clamp(24px, 11cqi, 40px); }
.home-ad-live-spark:empty { display: none; }
.home-ad-live-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.home-ad-live-spark .spark-line { fill: none; stroke: var(--tint-osmon-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-ad-live-spark .spark-area { fill: var(--tint-osmon-ink); opacity: .18; }
/* Qatordan chiqqan meta ikkinchi qatorga tushsa plitkaning bo'yi o'sib
   qirqilardi — shuning uchun o'ralmaydi: sig'magani chetda kesiladi. */
.home-ad-live-meta { grid-area: meta; display: flex; flex-wrap: nowrap; gap: 0 10px; min-width: 0; overflow: hidden; font-size: 12px; font-size: clamp(10px, 3.6cqi, 12px); line-height: 1.3; opacity: .9; white-space: nowrap; }
.home-ad-live-meta [data-live-row] { display: inline-flex; align-items: baseline; gap: 4px; }
.home-ad-live-meta b { font-weight: 600; font-variant-numeric: tabular-nums; }
.home-ad-live-cta { grid-area: cta; justify-self: end; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; height: clamp(22px, 7.4cqi, 30px); padding: 0 clamp(9px, 3cqi, 12px); border: 1px solid var(--tint-osmon-ink); border-radius: 999px; font-size: 12px; font-size: clamp(10px, 3.4cqi, 12px); font-weight: 500; white-space: nowrap; }
@keyframes ads-pulse { 0% { box-shadow: 0 0 0 0 var(--tint-osmon-ink); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
/* Chizilib kelish — faqat birinchi plitkada (JS `data-draw`), metrika sahifasidagi mexanizm. */
.home-ad-live-spark svg[data-draw="start"] .spark-line, .home-ad-live-spark svg[data-draw="start"] .spark-area { clip-path: inset(0 100% 0 0); }
.home-ad-live-spark svg[data-draw="run"] .spark-line, .home-ad-live-spark svg[data-draw="run"] .spark-area { clip-path: inset(0 0 0 0); transition: clip-path 480ms var(--ease-out); }
/* Chegara ekran emas, KATAK kengligi: telefonda plitka butun ekranni oladi
   va tugma bemalol sig'adi, kompyuterda esa uchga bo'lingan katak 336 px ga
   tushadi. Pastki qatorda meta va tugma yonma-yon turadi — uchchala meta
   bandi sig'masa qator ikkiga bo'linib plitkani cho'zardi (jonli saytdagi
   qirqilish shundan). Shuning uchun tor katakda avval «7 kun», juda tor
   katakda esa tugma tushadi. O'lchov katakning ICHKI kengligi bo'yicha
   ketadi (`@container` ichki qutini so'raydi): 336 px katak — 309 px.
   Chegaralar brauzerda o'lchab tanlandi: 320–1440 px oralig'ida pastki
   chetda 10–15 px zaxira qoldi. */
@container (max-width: 380px) {
  .home-ad-live-meta [data-live-row="week"] { display: none; }
}
@container (max-width: 210px) {
  .home-ad-live-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-ads-step] .home-ad { transition: none; }
  .home-ads-progress { visibility: hidden; }
  .home-ad-pulse.is-beat { animation: none; }
  .home-ad-live-spark svg[data-draw] .spark-line, .home-ad-live-spark svg[data-draw] .spark-area { clip-path: none; transition: none; }
}
@media (hover: hover) and (pointer: fine) { .home-suggest-row:hover { background: var(--surface-selected); } }
/* «Davom ettirish» va «Bugun» — hero ichidagi oq pill qatorlar. */
.home-continue { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 20px; padding: 8px 18px 8px 20px; border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow-raised); color: var(--text-secondary); font-size: 15px; font-weight: 600; text-decoration: none; }
.home-continue strong { color: var(--accent); font-weight: 800; }
.home-continue [data-icon] { color: var(--accent); display: inline-flex; }
/* «Bugun» — «Davom ettirish» o'rnidagi qator (kabinet maqsadlari §11).
   Yorliq, qalin qism, holat, strelka — bitta havola, ODDIY matn oqimida:
   flex bo'lsa telefonda «Bugun:» yolg'iz qolib, uzun mavzu nomi alohida
   qatorga tushadi. Holat matn bilan ajratiladi, rang faqat qo'shimcha:
   «orqada» qizil, «rejada» aksent. */
.home-today { display: block; max-width: 640px; min-height: 52px; margin-top: 20px; padding: 14px 20px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-raised); color: var(--text-secondary); font-size: 15px; font-weight: 600; line-height: 1.45; text-align: left; text-wrap: balance; text-decoration: none; }
.home-today-title { color: var(--accent); font-weight: 800; }
.home-today-status { display: inline-block; margin-left: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-tertiary); }
.home-today-status[data-status="rejada"] { color: var(--accent); }
.home-today-status[data-status="orqada"] { color: var(--accent-muted); }
.home-today-status[data-status="oldinda"] { color: var(--accent); }
.home-today-chevron { display: inline-flex; vertical-align: middle; margin-left: 2px; color: var(--accent); }

/* Tezkor plitkalar — har biri o'z tusida (mockup tartibi, §10.1).
   Tus havola manzili bo'yicha beriladi: markup o'zgarmaydi. */
.home-quick { padding: 56px 0 0; }
.quick-tile[href="/mavzular"]        { --t-soft: var(--tint-shaftoli-soft); --t-ink: var(--tint-shaftoli-ink); }
.quick-tile[href="/standartlar"]     { --t-soft: var(--tint-osmon-soft);    --t-ink: var(--tint-osmon-ink); }
.quick-tile[href="/farmakologiya"]   { --t-soft: var(--tint-sariyog-soft);  --t-ink: var(--tint-sariyog-ink); }
.quick-tile[href="/kutubxona"]       { --t-soft: var(--tint-yalpiz-soft);   --t-ink: var(--tint-yalpiz-ink); }
.quick-tile[href="/malaka"]          { --t-soft: var(--tint-lavanda-soft);  --t-ink: var(--tint-lavanda-ink); }
.quick-tile[href="/katalog"]         { --t-soft: var(--tint-atirgul-soft);  --t-ink: var(--tint-atirgul-ink); }
.quick-tile[href="/jihozlar"]        { --t-soft: var(--tint-feruza-soft);   --t-ink: var(--tint-feruza-ink); }
.quick-tile[href="/kabinet"]         { --t-soft: var(--tint-qum-soft);      --t-ink: var(--tint-qum-ink); }

/* Xizmatlar: navbatchi klinikalar va ikki xizmat */
.home-tiles { padding: 56px 0 0; }
/* Ikki xizmat plitkasi (Pediatric Care, Tibbiy Tizim). Ustun soni qat'iy
   emas: plitka qo'shilsa yoki olinsa qolganlari bo'sh joyni o'zi egallaydi. */
/* Ustun `minmax(0, 1fr)`: oddiy `1fr` eng uzun bo'linmas qatorga (manba
   satri nowrap) qadar kengayib, telefonda uchala plitkani ekrandan chiqarardi. */
.home-tiles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.home-tiles-grid > .tile { min-width: 0; }
/* Navbatchi plitka boshqalaridan ancha baland: uch ustunda xizmat plitkalari
   ichida katta bo'shliq qolardi. Desktopda u chapda ikki qator egallaydi,
   ikki xizmat o'ngda ustma-ust turadi. Jadval bo'lmasa — oddiy auto-fit. */
@media (min-width: 901px) {
  .home-tiles-grid:has(> .duty-tile:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tiles-grid > .duty-tile { grid-row: span 2; }
}
.tile[hidden] { display: none; }
/* Navbatchi plitka. Kattalar va bolalar — ikki alohida blok, chiziq bilan
   ajratilgan: ular boshqa-boshqa manzil va bemor oqimini bildiradi, bitta
   ro'yxatga qo'shilsa aralashib ketardi. */
.duty-tile { display: flex; flex-direction: column; gap: 14px; }

/* Xizmat plitkalari: nima berishi ro'yxat bilan, bitta asosiy amal. */
.service-tile { gap: 14px; }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* Pediatric Care plitkasi: narx yoki «Obunangiz faol» belgisi (home.js). Narx —
   accent pill; faol obuna — yalpiz, rang bilan birga matnda ham aytiladi. */
.service-badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.service-badge.is-active { background: var(--tint-yalpiz-soft); color: var(--tint-yalpiz-ink); }
.service-badge[hidden] { display: none; }
/* Plitka ichidagi kichik sarlavha: «Obunada nima bor», «Obuna uch qadamda» —
   ro'yxat va qadamlar nimaga javob berayotganini bir qarashda aytadi. */
.service-label { margin: 8px 0 -6px; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.service-tile h3 { margin-top: 6px; font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.tile-dashed.service-tile h3 { color: var(--text-body); }
/* «Tez kunda» — sariyog badge (mockup). */
.tile-dashed .tile-kicker { display: inline-flex; width: fit-content; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--tint-sariyog-soft); color: var(--tint-sariyog-ink); }
.tile .service-tagline { margin-top: -8px; color: var(--accent); font-size: 17px; font-weight: 600; }
.tile-dashed .service-tagline { color: var(--text-secondary); }
.service-points { display: grid; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.service-points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--text-body); font-size: 15px; font-weight: 500; line-height: 1.5; }
.service-points [data-icon] { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint-yalpiz-soft); color: var(--tint-yalpiz-ink); }
.service-points [data-icon] svg { width: 14px; height: 14px; stroke-width: 3; }
.tile-dashed .service-points [data-icon] { background: var(--surface-sunken); color: var(--text-secondary); }
.service-points svg { display: block; }
.service-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: auto; padding-top: 14px; }
.service-site { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-size: 15px; font-weight: 700; text-decoration: none; }
.service-site [data-icon], .service-actions [data-icon] { display: inline-flex; }
/* Talaba tarifi — plitka ostida alohida havola (spec 2026-11-04 §5). */
.service-talaba { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--tint-osmon-soft); color: var(--tint-osmon-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.service-talaba [data-icon] { display: inline-flex; margin-left: auto; }
@media (hover: hover) and (pointer: fine) { .service-talaba:hover { text-decoration: underline; } }
@media (hover: hover) and (pointer: fine) { .service-site:hover { text-decoration: underline; } }
/* Oqim: uch qadam strelka bilan — «retseptdan nazoratgacha» bir qarashda. */
.service-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 6px 0; padding: 20px 12px; border: 1px solid var(--card-border); border-radius: var(--radius-card); list-style: none; background: var(--surface); }
.service-flow li { position: relative; display: grid; justify-items: center; gap: 8px; color: var(--text-primary); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; }
.service-flow li + li::before { content: "→"; position: absolute; top: 14px; left: -8px; color: var(--text-tertiary); font-size: 15px; }
.service-flow-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--t-soft); color: var(--t-ink); }
.service-flow li:nth-child(1) { --t-soft: var(--tint-shaftoli-soft); --t-ink: var(--tint-shaftoli-ink); }
.service-flow li:nth-child(2) { --t-soft: var(--tint-osmon-soft); --t-ink: var(--tint-osmon-ink); }
.service-flow li:nth-child(3) { --t-soft: var(--tint-yalpiz-soft); --t-ink: var(--tint-yalpiz-ink); }
.duty-today { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; min-height: 30px; padding: 4px 12px 4px 10px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--accent) 11%, var(--canvas)); color: var(--accent); font-size: 13px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.duty-today b { font-weight: 650; }
.duty-today-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.duty-group { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.duty-group:first-of-type { padding-top: 0; border-top: 0; }
.duty-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.duty-group-title { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); }
.duty-clinic-key { font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }
.duty-clinic-name { margin: 0; font-size: 15px; line-height: 1.35; color: var(--text-primary); }
.duty-clinic-addr { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
/* Manzil xaritaga olib boradi. Ikonka matnning birinchi qatoriga tekislanadi:
   manzil ikki qatorga tushsa igna o'rtada osilib qolmasin. */
.duty-map-link { display: inline-flex; align-items: flex-start; gap: 6px; min-height: 44px; padding: 4px 0; color: var(--accent); text-decoration: none; }
.duty-map-pin { display: inline-flex; flex: none; margin-top: 1px; }
.duty-map-pin svg { display: block; }
@media (hover: hover) and (pointer: fine) { .duty-map-link:hover { text-decoration: underline; } }

/* Kunlar — raqamlar qatori. Bugungisi `--accent` bilan ajraladi, lekin
   faqat rang bilan emas: `aria-current` uni ekran o'quvchiga ham aytadi. */
.duty-days { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }
.duty-days-label { margin-right: 2px; font-family: inherit; letter-spacing: .04em; }
.duty-day { min-width: 18px; text-align: center; }
.duty-day.is-today { padding: 0 5px; border-radius: var(--radius-pill); background: var(--accent); color: var(--canvas); font-weight: 600; }

.duty-unknown { margin: 0; color: var(--text-secondary); font-size: 14px; }
.duty-city { margin: 0; padding-top: 14px; border-top: 1px solid var(--border-subtle); font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.duty-city strong { color: var(--text-primary); font-weight: 500; }
.duty-more { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
/* Manba — izoh, matn emas: ingichka chiziq ostida, kichik, bir qatorda. */
.duty-source { margin: 0; padding-top: 8px; border-top: 1px dashed var(--border-subtle); font-size: 10.5px; font-style: italic; line-height: 1.35; letter-spacing: .01em; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }

/* Oylik jadval dialogi — `mavzu.js` dagi mundarija paneli bilan bir naqsh. */
.duty-backdrop { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; padding: 16px; background: var(--backdrop); }
.duty-backdrop[hidden] { display: none; }
/* Balandlik QOTIRILGAN: tab almashganda oyna o'lchami o'zgarmaydi va
   o'rtada qayta joylashmaydi — sakrash shundan edi. Jadval ichida aylanadi. */
.duty-panel { display: flex; flex-direction: column; width: min(560px, 100%); height: min(80vh, 640px); padding: 8px 20px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow-float); overflow: hidden; will-change: transform, opacity; }
.duty-panel[hidden] { display: none; }
.duty-panel-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; background: var(--surface); font-size: 15px; }
/* Segment: ko'k fon tablar orasida sirpanadi, tugmalar joyida qoladi. */
.duty-tabs { position: relative; flex: none; display: grid; grid-template-columns: repeat(var(--duty-tabs, 2), 1fr); margin: 4px 0 14px; padding: 4px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); background: var(--canvas-raised); }
.duty-tab-indicator { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--duty-tabs, 2)); border-radius: var(--radius-pill); background: var(--accent); transform: translateX(calc(100% * var(--duty-tab, 0))); transition: transform 280ms var(--ease-out); }
.duty-tab { position: relative; z-index: 1; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: color 200ms var(--ease-standard); }
.duty-tab[aria-selected="true"] { color: var(--text-on-accent); }
.duty-tab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .duty-tab[aria-selected="false"]:hover { color: var(--text-primary); } }
.duty-schedule { flex: 1 1 auto; min-height: 0; display: grid; align-content: start; gap: 16px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -20px; padding: 0 20px 4px; }
.duty-schedule-row { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.duty-schedule-row:first-child { padding-top: 0; border-top: 0; }
.duty-schedule-row .duty-group-title { font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-primary); }
.duty-schedule + .duty-source { flex: none; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .duty-tab-indicator, .duty-tab { transition: none; } }

/* Bo'limlar — oq kartalar (mockup): tepada bo'lim tusidagi kvadratda
   ikonka, ostida nom va sanoq. Tus `data-tint` dan (home.js, §6).
   «Barcha» kartasi — yashil: u amal, bo'lim emas. */
.home-sections { padding: 56px 0 0; }
.home-sections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.home-section-link { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 168px; padding: 22px; border: 1px solid var(--card-border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-raised); color: inherit; text-decoration: none; }
.home-section-link .home-section-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0 0 10px; border-radius: 14px; font-size: 0; background: var(--t-soft, var(--surface-sunken)); color: var(--t-ink, var(--text-secondary)); }
.home-section-link .home-section-mark svg { width: 20px; height: 20px; }
.home-section-link b { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--text-primary); }
.home-section-link span { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.home-section-link b + span { margin-top: auto; }
.home-section-link.is-all { background: var(--accent-soft); box-shadow: none; }
.home-section-link.is-all b, .home-section-link.is-all span { color: var(--accent); }
.home-section-link.is-all .home-section-mark { background: var(--surface); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .home-section-link:hover b { color: var(--accent); } }

@media (max-width: 900px) {
  .home { width: calc(100% - 32px); }
  .home-hero { padding: 48px 32px 44px; border-radius: var(--radius-panel); }
  .home-hero::before { width: 300px; height: 300px; right: -80px; bottom: -90px; }
  .home-hero::after { right: 120px; top: 28px; }
  .home-tiles-grid { grid-template-columns: minmax(0, 1fr); }
  .home-sections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-section-link { min-height: 150px; padding: 18px; }
}

@media (max-width: 600px) {
  .home-hero { margin-top: 8px; padding: 32px 20px 28px; }
  .home-hero::after { display: none; }
  .home-greeting { margin-bottom: 14px; font-size: 14px; }
  .home-hero h1 { font-size: 40px; text-underline-offset: 10px; text-decoration-thickness: 3px; }
  .home-search { margin-top: 28px; }
  .home-search .search-field-large { min-height: 60px; padding: 0 64px 0 18px; }
  .home-search .search-field-large input { font-size: 16px; }
  .home-search > button[type="submit"].visually-hidden { top: 8px; right: 8px; width: 44px; height: 44px; }
  .home-quick, .home-tiles, .home-sections { padding-top: 40px; }
  .home-quick > h2.visually-hidden, .home-tiles > h2.visually-hidden, .home-sections > h2.visually-hidden { font-size: 22px; margin-bottom: 14px; }
  .service-tile h3 { font-size: 28px; }
  /* Telefonda jadval — pastdan chiqadigan varaq: bosh barmoq yetadi. */
  .duty-backdrop { place-items: end stretch; padding: 0; }
  .duty-panel { width: 100%; height: min(86vh, 680px); padding-bottom: calc(14px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: var(--radius-panel) var(--radius-panel) 0 0; }
  .duty-panel::before { content: ""; flex: none; align-self: center; width: 36px; height: 4px; margin: 2px 0 4px; border-radius: var(--radius-pill); background: var(--border-strong); }
}
