/* UBS Hospital — brend ranglari logotipdan olingan */
:root {
  --navy: #003060;      /* logotipdagi “UBS” pastki tusi */
  --royal: #004a95;     /* logotipdagi “UBS” yuqori tusi */
  --crimson: #c81126;   /* xoch va EKG chizig‘i */
  --ink: #0e2238;
  --muted: #4e5f75;
  --mist: #f1f5fa;
  --line: #d7e1ec;
  --white: #fff;
  --ok: #0d6b42;
  --err: #b0101f;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mbar-h: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scroll-padding-bottom: calc(var(--mbar-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .pulse path { stroke-dashoffset: 0 !important; } }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); padding-bottom: var(--mbar-h); }
img { max-width: 100%; display: block; }
a { color: var(--royal); }
h1, h2, h3, h4 { margin: 0 0 .45em; color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.15; }
h3, .h3 { font-size: 1.3rem; line-height: 1.25; }
h4 { font-size: 1.04rem; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 2px; border-radius: 4px; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 1.55rem; height: 1.55rem; }
.i-xl { width: 2.6rem; height: 2.6rem; }

/* Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .6em 1.2em; border-radius: 10px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--royal); }
.btn-line { border-color: #b9c9db; color: var(--navy); background: #fff; }
.btn-line:hover { border-color: var(--navy); }
.btn-sm { min-height: 40px; padding: .4em .9em; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: .8em 1.5em; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Yuqori menyu */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 48px; width: auto; }
.logo-text { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; padding: .5em .75em; border-radius: 8px; }
.nav > a:hover { color: var(--royal); background: var(--mist); }
.nav-cta { display: none; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; font-size: 1rem; }
.top-phone .i { color: var(--crimson); }
.burger { display: none; width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; place-items: center; }
.burger .i { width: 24px; height: 24px; }
@media (max-width: 1140px) { .top-phone span { display: none; } .top-phone { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; justify-content: center; } }
@media (max-width: 980px) {
  .burger { display: grid; }
  .top-actions { margin-left: auto; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 6px 20px 20px; box-shadow: 0 16px 30px rgba(0, 48, 96, .12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .18s; max-height: calc(100dvh - 76px); overflow: auto; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav > a { padding: .95em .2em; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.08rem; }
  .nav-cta { display: grid; gap: 10px; padding-top: 16px; }
  .hide-sm { display: none; }
}
@media (max-width: 420px) { .logo img { height: 40px; } }

/* Bosh ekran */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.place { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-weight: 500; font-size: .95rem; max-width: 30em; }
.place .i { color: var(--crimson); margin-top: .22em; }
.hero h1 { color: var(--navy); max-width: 13em; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 32em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-phones { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-size: .95rem; }
.hero-phones a { font-weight: 700; color: var(--navy); text-decoration: none; font-size: 1.08rem; white-space: nowrap; }
.hero-phones a:hover { color: var(--royal); text-decoration: underline; }
.hero-media { margin: 0; position: relative; border-radius: 28px 28px 28px 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); box-shadow: 0 30px 60px -30px rgba(0, 48, 96, .45); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-empty { background: radial-gradient(120% 90% at 100% 0, var(--royal), var(--navy) 60%); }
figure > figcaption { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 32, 64, .72); color: #fff; font-size: .74rem; padding: .2em .6em; border-radius: 6px; }
/* Yagona harakat: sahifa ochilganda EKG chizig‘i bir marta chiziladi */
.pulse { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 80px; z-index: 0; pointer-events: none; }
.pulse path { fill: none; stroke: var(--crimson); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s .3s cubic-bezier(.6, .05, .3, 1) forwards; opacity: .9; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } .hero-media { aspect-ratio: 16 / 11; } }
@media (max-width: 520px) { .hero-btns .btn { width: 100%; } .hero-media { border-radius: 20px 20px 20px 4px; } .pulse { bottom: 8px; height: 50px; } }

/* Yo‘nalishlar ko‘rsatkichi — klinika yo‘lak belgilaridek */
.dir { background: var(--navy); color: #fff; }
.dir-in { display: grid; grid-template-columns: repeat(5, 1fr); }
.dir a { display: flex; gap: 12px; align-items: center; padding: 22px 18px; color: #fff; text-decoration: none; border-left: 1px solid rgba(255, 255, 255, .14); }
.dir a:last-child { border-right: 1px solid rgba(255, 255, 255, .14); }
.dir a:hover { background: var(--royal); }
.dir .i { color: #ff8b97; }
.dir b { display: block; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.dir small { color: #b8cbe2; font-size: .85rem; }
@media (max-width: 980px) {
  .dir-in { display: flex; overflow-x: auto; width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dir-in::-webkit-scrollbar { display: none; }
  .dir a { flex: none; padding: 16px 18px; }
}

/* Bo‘limlar */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-mist { background: var(--mist); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head p { margin: 0; }

/* Aksiyalar */
.promos { padding: 32px 0 0; }
.promo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.promo { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; border-left: 4px solid var(--crimson); background: var(--mist); border-radius: 0 14px 14px 0; padding: 16px 18px; }
.promo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.promo h3 { font-size: 1.12rem; margin-bottom: .3em; }
.promo p { margin: 0 0 .3em; }

/* Xizmatlar: ma’lumotnoma ko‘rinishi */
.svc-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.svc-side { position: sticky; top: 100px; }
.svc-layout > *, .lab > *, .about > *, .book > *, .contact > *, .faq-wrap > *, .hero-in > * { min-width: 0; }
.search { position: relative; margin: 20px 0 16px; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; min-height: 52px; padding: .7em 1em .7em 2.7em; border-radius: 10px; border: 1.5px solid #c3d1e0; font: inherit; background: #fff; }
.search input:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 4px rgba(0, 74, 149, .14); }
.tabs { display: grid; gap: 2px; }
.tab { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; min-height: 46px; padding: .55em .9em; border: 0; border-radius: 8px; background: transparent;
  font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
.tab small { color: var(--muted); font-size: .86rem; }
.tab:hover { background: var(--mist); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab[aria-selected="true"] small { color: #b8cbe2; }
.svc-group + .svc-group { margin-top: 44px; }
.svc-group-head { padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.svc-group-head h3 { font-size: 1.5rem; margin-bottom: .2em; }
.svc-group-head p { margin: 0; font-size: .95rem; max-width: 46em; }
.svc-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.svc { break-inside: avoid; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc h4 { margin-bottom: .2em; }
.svc p { margin: 0; color: var(--muted); font-size: .93rem; }
.svc-book { flex: none; font-weight: 600; font-size: .92rem; color: var(--royal); text-decoration: none; padding: .45em .8em; border-radius: 8px; border: 1.5px solid #c3d1e0; margin-top: 1px; }
.svc-book:hover { border-color: var(--navy); color: var(--navy); }
.empty { padding: 28px; border: 1.5px dashed var(--line); border-radius: 14px; text-align: center; }
@media (max-width: 1040px) { .svc-list { columns: 1; } }
@media (max-width: 860px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-side { position: static; }
  .tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; margin: 0 -20px; padding-inline: 20px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; border: 1.5px solid var(--line); border-radius: 99px; min-height: 42px; }
  .tab[aria-selected="true"] { border-color: var(--navy); }
  .svc-group + .svc-group { margin-top: 32px; }
}

/* Shifokorlar */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: .35em 1em; border-radius: 99px; border: 1.5px solid #c3d1e0; background: #fff; font: inherit; font-weight: 500; font-size: .93rem; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.doc { background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(0, 48, 96, .5); }
.doc-photo { aspect-ratio: 4 / 4.4; background: #e4ecf5; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-ph { height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, #e9f0f8, #d7e3f0); }
.doc-ph span { font-family: var(--serif); font-weight: 700; font-size: 2.6rem; color: #8ea6c2; letter-spacing: .04em; }
.doc-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.doc-body h3 { font-size: 1.16rem; margin: 0 0 2px; }
.doc-spec { margin: 0; color: var(--crimson); font-weight: 600; font-size: .9rem; }
.doc-exp, .doc-sched { margin: 0; color: var(--muted); font-size: .94rem; display: flex; gap: 6px; align-items: center; }
.doc-body .btn { margin-top: auto; }
.doc-body > :nth-last-child(2) { margin-bottom: 14px; }

/* Laboratoriya */
.lab { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.lab-noimg { grid-template-columns: 1fr; max-width: 820px; }
.lab-media, .care-media { margin: 0; position: relative; border-radius: 4px 28px 28px 28px; overflow: hidden; aspect-ratio: 3 / 2.2; }
.lab-media { position: sticky; top: 100px; }
.lab-media img, .care-media img { width: 100%; height: 100%; object-fit: cover; }
.lab-copy > .btn { margin-bottom: 10px; }
.price-block { margin-top: 26px; }
.price-block h3 { font-size: 1.2rem; padding-bottom: 10px; border-bottom: 2px solid var(--navy); margin: 0; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pl-name { font-weight: 500; }
.pl-price { font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-ask { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--royal); font-size: .92rem; white-space: nowrap; min-height: 40px; }
.pl-ask .i { color: var(--crimson); }
.pl-ask:hover { text-decoration: underline; }
@media (max-width: 860px) { .lab { grid-template-columns: 1fr; } .lab-media { position: relative; top: 0; } .lab-media, .care-media { aspect-ratio: 16 / 10; } }

/* Klinika haqida */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-lead { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.6; color: var(--ink); max-width: 34em; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; border-top: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.facts .i { color: var(--crimson); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; background: #e4ecf5; }
.gallery .g-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Qabulga yozilish */
.book-sec { background: var(--navy); color: #dbe6f3; padding: clamp(56px, 8vw, 104px) 0; position: relative; overflow: hidden; }
.book-sec::before { content: ''; position: absolute; right: -160px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%; background: var(--royal); opacity: .35; }
.book { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; position: relative; }
.book-info h2 { color: #fff; }
.book-info p { max-width: 30em; }
.book-alt { margin: 26px 0 10px; color: #b8cbe2; font-size: .95rem; }
.book-phones { display: grid; gap: 10px; max-width: 360px; }
.phone-big { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; padding: 12px 16px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .28); }
.phone-big:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.phone-big .i { color: #ff8b97; }
.form { background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(20px, 3vw, 34px); display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .65em .85em; border-radius: 10px; border: 1.5px solid #c3d1e0; font: inherit; color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 4px rgba(0, 74, 149, .14); }
.field [aria-invalid="true"] { border-color: var(--err); }
.hint { margin: 0; color: var(--muted); font-size: .85rem; }
.err { margin: 0; color: var(--err); font-size: .88rem; font-weight: 600; }
.err:empty { display: none; }
.req { color: var(--crimson); }
.check { grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--navy); }
.check label { font-weight: 400; font-size: .93rem; }
.check .err { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-status.ok { background: #e6f4ec; color: var(--ok); border: 1px solid #b5dcc6; }
.form-status.bad { background: #fdebec; color: var(--err); border: 1px solid #f3bfc4; }
.form-status .book-phones { margin-top: 10px; }
.form-status .phone-big { color: var(--navy); border-color: var(--line); font-size: 1.05rem; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* Savollar */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); }
.faq { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 48px 20px 0; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--crimson); border-bottom: 2px solid var(--crimson); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; margin: 0; color: var(--muted); max-width: 40em; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* Aloqa */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.addr { display: flex; gap: 12px; align-items: flex-start; font-size: 1.1rem; font-weight: 500; }
.addr .i { color: var(--crimson); }
.contact-phones { margin: 18px 0 20px; border-top: 1px solid var(--line); }
.phone-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.phone-row b { font-size: 1.2rem; color: var(--navy); }
.phone-row span { color: var(--royal); font-weight: 600; font-size: .92rem; }
.phone-row .i { color: var(--navy); }
.phone-row:hover b { color: var(--royal); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.map { position: relative; min-height: 360px; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ph { height: 100%; min-height: 360px; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; color: var(--navy); gap: 4px;
  background-image: linear-gradient(var(--mist) 2px, transparent 2px), linear-gradient(90deg, var(--mist) 2px, transparent 2px); background-size: 36px 36px; }
.map-ph .i { color: var(--crimson); }
.map-ph p { margin: 0; max-width: 24em; }
.map-open { position: absolute; right: 12px; bottom: 12px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Pastki qism */
.foot { background: #00213f; color: #b8cbe2; padding: 44px 0 36px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px 40px; align-items: start; }
.foot-brand img { height: 48px; width: auto; margin-bottom: 12px; }
.foot-name { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.3rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-nav { display: grid; gap: 6px; }
.foot-phones { display: grid; gap: 6px; text-align: right; font-weight: 700; }
.foot-note { grid-column: 1 / -1; margin: 0; color: #8ea6c2; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } .foot-phones { text-align: left; } }

/* Mobil doimiy panel */
.mbar { display: none; }
@media (max-width: 760px) {
  :root { --mbar-h: calc(70px + env(safe-area-inset-bottom)); }
  .mbar { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line);
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0, 48, 96, .1); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; font-weight: 700; text-decoration: none; }
  .mbar-call { border: 1.5px solid var(--navy); color: var(--navy); }
  .mbar-call .i { color: var(--crimson); }
  .mbar-book { background: var(--navy); color: #fff; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .tabs { margin: 0 -16px; padding-inline: 16px; }
}
.flash { animation: flash 1.1s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(0, 74, 149, .45); } 100% { box-shadow: 0 0 0 14px rgba(0, 74, 149, 0); } }
.doc-photo:has(.doc-ph) { aspect-ratio: 16 / 9; }
@media (max-width: 600px) {
  .docs { grid-template-columns: 1fr; gap: 12px; }
  .doc { flex-direction: row; }
  .doc-photo, .doc-photo:has(.doc-ph) { aspect-ratio: auto; width: 108px; flex: none; }
  .doc-ph span { font-size: 1.6rem; }
  .doc-body { padding: 14px; }
  .doc-body h3 { font-size: 1.05rem; }
  .doc-body .btn { min-height: 44px; }
  .doc-body > :nth-last-child(2) { margin-bottom: 10px; }
  .svc { padding: 14px 0; }
}

/* ===== Bosh ekran: klinika binosi surati ustida ===== */
.btn-accent { background: var(--crimson); color: #fff; }
.btn-accent:hover { background: #a90d1f; }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff;
  padding: clamp(56px, 9vw, 120px) 0 clamp(120px, 12vw, 160px); min-height: min(820px, 92vh); display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform-origin: 60% 60%; animation: heroZoom 9s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes heroZoom { from { transform: scale(1.14); filter: saturate(.7) brightness(.85); } to { transform: scale(1); filter: none; } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 33, 66, .94) 0%, rgba(0, 40, 80, .82) 34%, rgba(0, 48, 96, .25) 64%, rgba(0, 48, 96, 0) 100%),
              linear-gradient(0deg, rgba(0, 24, 48, .85) 0%, rgba(0, 24, 48, 0) 42%);
  animation: fadeIn 1.2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: end; width: min(1200px, 100% - 40px); }
.hero .place { color: #cfe0f3; }
.hero .place .i { color: #ff8b97; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.2vw, 4.8rem); line-height: 1.02; max-width: 11.5em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 20, 40, .35); }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.hero h1 .w > span { display: inline-block; animation: wordUp .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.35s + var(--d) * .08s); }
@keyframes wordUp { from { transform: translateY(105%); } to { transform: none; } }
.hero .lead { color: #dbe6f3; font-size: clamp(1.05rem, 1.6vw, 1.25rem); animation: riseIn .8s .9s both; }
.hero-btns, .hero-phones { animation: riseIn .8s 1.05s both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-phones { color: #b8cbe2; }
.hero-phones a { color: #fff; }
.hero-phones a:hover { color: #fff; }
.hero-stats { margin: 0; display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 0; max-width: 760px; border-radius: 16px; overflow: hidden;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(12px); animation: riseIn .9s 1.3s both; }
.hero-stats > div { padding: 14px 22px; border-right: 1px solid rgba(255, 255, 255, .18); }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats dt { font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats .hs-wide dt { font-size: 1.15rem; padding-top: .35em; }
.hero-stats dd { margin: 0; color: #cfe0f3; font-size: .88rem; }
.hero-credit { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 12px; margin: 0; font-size: .74rem; color: rgba(255, 255, 255, .7); z-index: 2; }
.hero .pulse { bottom: 40px; z-index: 1; height: 70px; }
.hero .pulse path { stroke: #ff5a6c; stroke-width: 2.4; animation-delay: 1.2s; filter: drop-shadow(0 0 6px rgba(255, 90, 108, .6)); }
.blip { fill: #fff; filter: drop-shadow(0 0 6px #ff5a6c) drop-shadow(0 0 14px #ff5a6c); }
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats .hs-wide { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .18); }
  .hero-stats > div:nth-child(3) { border-right: 0; }
}
@media (max-width: 700px) {
  .hero { min-height: 0; padding-top: 60vw; align-items: stretch; }
  .hero-bg { inset: 0 0 auto 0; height: 66vw; }
  .hero-bg img { object-position: 50% 50%; }
  .hero-shade { background: linear-gradient(180deg, rgba(0, 48, 96, 0) 0, rgba(0, 48, 96, .15) 30vw, var(--navy) 66vw, var(--navy) 100%); }
  .hero-in { width: calc(100% - 32px); }
  .hero-stats > div { padding: 12px 14px; }
  .hero-stats dt { font-size: 1.6rem; }
  .hero .pulse { bottom: 30px; height: 46px; }
  .hero-credit { top: 10px; bottom: auto; background: rgba(0, 32, 64, .55); padding: .15em .5em; border-radius: 6px; }
}
/* ===== Xizmatlar lentasi ===== */
.ticker { background: #00213f; color: #cfe0f3; overflow: hidden; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font-family: var(--serif); font-size: 1.15rem; }
.ticker i { font-style: normal; color: #ff5a6c; font-weight: 700; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ===== Paydo bo‘lish (JS bo‘lmasa hammasi ko‘rinadi) ===== */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ===== Shifokor kartasi: yengil 3D egilish ===== */
@media (hover: hover) and (pointer: fine) {
  .doc { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .doc:hover { box-shadow: 0 1px 0 var(--line), 0 30px 50px -28px rgba(0, 48, 96, .55); }
  .doc-photo img { transition: transform .6s; }
  .doc:hover .doc-photo img { transform: scale(1.05); }
  .svc { transition: padding .25s; }
  .svc:hover { padding-left: 8px; }
}

/* ===== Kirish surati va yozilish fonidagi EKG ===== */
.entrance { aspect-ratio: 7 / 4; border-radius: 4px 28px 28px 28px; box-shadow: 0 30px 60px -36px rgba(0, 48, 96, .6); }
.entrance img { transition: transform 8s ease; }
.entrance.in img, .entrance:hover img { transform: scale(1.06); }
.book-ecg { position: absolute; left: 0; right: 0; top: 82%; width: 100%; height: 120px; transform: translateY(-50%); pointer-events: none; opacity: .22; }
.book-ecg path { fill: none; stroke: #ff5a6c; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 340 1100; animation: ecgRun 4.5s linear infinite; }
@keyframes ecgRun { from { stroke-dashoffset: 1440; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
  .blip { display: none; }
  .ticker-track { animation: none; }
  .hero h1 .w > span, .hero .lead, .hero-btns, .hero-phones, .hero-stats, .hero-bg img, .hero-shade { animation: none !important; opacity: 1; transform: none; }
}

/* ===== Xizmatlar: uchta asosiy yo‘nalish ===== */
.svc3-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 20px 48px; align-items: end; margin-bottom: 28px; }
.svc3-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .2em; }
.svc3-head p { margin: 0; max-width: 40em; }
.svc3-head .search { margin: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; transition: opacity .25s; }
.pillars.dim { opacity: .55; }
.pillar { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; text-align: left; cursor: pointer;
  padding: 22px 22px 22px 20px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s; }
.pillar:hover { border-color: #9fb6cf; transform: translateY(-2px); }
.pillar-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--crimson); transition: background-color .2s; }
.pillar-ico .i { width: 26px; height: 26px; }
.pillar-txt b { display: block; font-family: var(--serif); font-size: 1.28rem; line-height: 1.2; color: var(--navy); }
.pillar-txt small { display: block; color: var(--muted); font-size: .9rem; margin-top: 3px; }
.pillar-n { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1; color: #c3d1e0; font-variant-numeric: tabular-nums; }
.pillar[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 22px 40px -24px rgba(0, 48, 96, .7); transform: none; }
.pillar[aria-selected="true"] .pillar-ico { background: rgba(255, 255, 255, .12); color: #ff8b97; }
.pillar[aria-selected="true"] .pillar-txt b { color: #fff; }
.pillar[aria-selected="true"] .pillar-txt small { color: #b8cbe2; }
.pillar[aria-selected="true"] .pillar-n { color: rgba(255, 255, 255, .35); }
.pillar[aria-selected="true"]::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; background: var(--navy); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.panes { margin-top: 22px; }
.pane { background: var(--mist); border-radius: 22px; padding: clamp(18px, 3vw, 34px); animation: paneIn .35s ease both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pane-intro { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pane-intro p { margin: 0; color: var(--muted); max-width: 46em; }
.tag { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .35em .9em; font-size: .9rem; font-weight: 600; color: var(--navy); }
.tag .i { color: var(--crimson); }
.pane h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; color: var(--navy); margin: 0 0 .25em; }
.pane p { margin: 0; }
.p-price { font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-ask { display: inline-flex; align-items: center; gap: 6px; color: var(--royal); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.p-ask .i { color: var(--crimson); }
.p-ask:hover { text-decoration: underline; }
.prep { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px !important; font-size: .88rem; color: #5a4300; background: #fff6d6; border-radius: 8px; padding: 6px 10px; }
.prep .i { color: #9a6b00; margin-top: .15em; }

/* Diagnostika: raqamlangan emas — tekshiruvlar ro‘yxati */
.diag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.diag { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; background: #fff; border-radius: 14px; padding: 18px 20px; border: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.diag:hover { border-color: var(--line); box-shadow: 0 14px 28px -22px rgba(0, 48, 96, .45); }
.diag p { color: var(--muted); font-size: .94rem; }
.diag-side { display: flex; align-items: center; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }

/* Laboratoriya */
.lab3 { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 22px; align-items: start; }
.lab3-stat { background: var(--navy); color: #dbe6f3; border-radius: 18px; padding: 24px; display: grid; gap: 10px; position: sticky; top: 100px; }
.lab3-stat .big { font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1; color: #fff; }
.lab3-stat .big-l { font-weight: 600; color: #fff; margin-top: -4px; }
.lab3-stat .muted { color: #b8cbe2; }
.lab3-stat .btn-line { justify-self: start; background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.lab3-stat .btn-line:hover { border-color: #fff; }
.lab3-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.labc { background: #fff; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.labc p { color: var(--muted); font-size: .92rem; }
.labc-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.lnk { font-weight: 600; font-size: .92rem; color: var(--royal); text-decoration: none; }
.lnk:hover { text-decoration: underline; }

/* Shifokorlar qabuli */
.feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.featc { background: #fff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.featc-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--mist); color: var(--crimson); display: grid; place-items: center; margin-bottom: 6px; }
.featc h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.featc p { color: var(--muted); font-size: .94rem; }
.featc-doc { display: grid; gap: 2px; margin-top: 6px !important; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink) !important; font-weight: 500; font-size: .9rem !important; }
.featc .btn { margin-top: auto; }
.featc > :nth-last-child(2) { margin-bottom: 14px; }
.rest { margin-top: 22px; }
.rest-h { font-family: var(--serif) !important; font-size: 1.2rem !important; }
.rest-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.restc { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 14px; }
.restc span { font-weight: 500; }
.restc a { font-size: .88rem; font-weight: 600; color: var(--royal); text-decoration: none; }
.restc a:hover { text-decoration: underline; }

/* Qidiruv natijalari */
.res-h { font-weight: 600; color: var(--navy); margin-bottom: 12px !important; }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.resc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; background: #fff; border-radius: 14px; padding: 14px 18px; }
.resc small { color: var(--crimson); font-weight: 600; font-size: .8rem; }
.resc p { color: var(--muted); font-size: .92rem; }

/* Qo‘shimcha xizmatlar */
.others { margin-top: 36px; }
.others-h { font-size: 1.3rem; margin-bottom: 12px; }
.others-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.other { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.other h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.other h4 .i { color: var(--crimson); }
.other ul { list-style: none; margin: 0; padding: 0; }
.other li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.other li a { color: var(--royal); font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap; }

/* Klinika rahbariyati */
.leaders { display: grid; gap: 10px; margin: 20px 0 6px; }
.leader { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line); }
.leader img, .leader-ph { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.leader-ph { display: grid; place-items: center; background: linear-gradient(160deg, #e9f0f8, #d7e3f0); font-family: var(--serif); font-weight: 700; color: #6d86a3; font-size: 1.3rem; }
.leader p { margin: 0; }
.leader-role { color: var(--crimson); font-weight: 600; font-size: .88rem; }
.leader-name { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.12rem; }
.leader-exp { color: var(--muted); font-size: .9rem; }

@media (max-width: 980px) {
  .feat { grid-template-columns: 1fr; }
  .lab3 { grid-template-columns: 1fr; }
  .lab3-stat { position: static; }
}
@media (max-width: 860px) {
  .svc3-head { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 8px; }
  .pillar { padding: 14px 16px; gap: 12px; }
  .pillar-ico { width: 42px; height: 42px; }
  .pillar-txt b { font-size: 1.1rem; }
  .pillar-n { font-size: 1.6rem; }
  .pillar[aria-selected="true"]::after { display: none; }
  .panes { margin-top: 12px; }
  .others-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pane { padding: 14px; border-radius: 18px; }
  .diag, .resc { grid-template-columns: 1fr; padding: 14px; }
  .diag-side { justify-content: space-between; }
  .lab3-grid { grid-template-columns: 1fr; }
  .feat { gap: 10px; }
  .featc { padding: 18px; }
}
.pane .svc { border-bottom: 0; break-inside: auto; }
.pane .labc, .pane .featc { align-items: stretch; }
.pane .svc:hover { padding-left: revert-layer; }
@media (hover: hover) and (pointer: fine) { .pane .diag:hover, .pane .resc:hover { padding-left: 20px; } .pane .labc:hover, .pane .featc:hover { padding-left: 18px; } .pane .restc:hover { padding-left: 14px; } }
@media (hover: hover) and (pointer: fine) { .pane .featc:hover { padding-left: 22px; } }
@media (max-width: 600px) { .rest-list { grid-template-columns: 1fr 1fr; } .restc { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; } }

/* ===== Klinika rahbariyati: bosh shifokor ===== */
.lead-sec { background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); padding: clamp(56px, 8vw, 104px) 0; }
.leadx { display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.leadx + .leadx { margin-top: 48px; }
.leadx-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 28px 28px 28px 6px; overflow: hidden; background: var(--navy); box-shadow: 0 40px 70px -40px rgba(0, 48, 96, .7); }
.leadx-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--crimson); }
.leadx-photo img { width: 100%; height: 100%; object-fit: cover; }
.leadx-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(120% 90% at 100% 0, var(--royal), var(--navy) 65%); }
.leadx-ph span { font-family: var(--serif); font-weight: 700; font-size: clamp(4rem, 9vw, 7rem); color: rgba(255, 255, 255, .28); letter-spacing: .04em; }
.leadx-kicker { margin: 0 0 18px; color: var(--muted); font-weight: 600; }
.leadx-role { margin: 0; color: var(--crimson); font-weight: 700; font-size: 1.1rem; }
.leadx-name { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; margin: 6px 0 22px; text-wrap: balance; }
.leadx-exp { display: inline-flex; align-items: baseline; gap: 10px; margin: 0 0 20px; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.leadx-exp b { font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1; }
.leadx-exp span { color: var(--muted); font-weight: 600; }
.leadx-bio { max-width: 38em; font-size: 1.08rem; color: var(--ink); }
@media (max-width: 760px) { .leadx { grid-template-columns: 1fr; gap: 20px; } .leadx-photo { width: min(240px, 70%); } .leadx-kicker { margin-bottom: 8px; } }

/* ===== Litsenziya va hujjatlar ===== */
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cert { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cert-img { display: block; padding: 16px 16px 0; border: 0; background: var(--mist); cursor: zoom-in; }
.cert-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 8px 8px 0 0; box-shadow: 0 10px 30px -18px rgba(0, 48, 96, .6); transition: transform .3s; }
.cert-img:hover img { transform: translateY(-4px); }
.cert-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cert-body h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: 0; }
.cert-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.cert-acts { margin-top: auto; padding-top: 10px; display: flex; gap: 16px; }
.cert-acts .lnk { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: .92rem; color: var(--royal); cursor: pointer; text-decoration: none; }
.cert-acts .lnk:hover { text-decoration: underline; }
.viewer { border: 0; padding: 0; border-radius: 16px; width: min(900px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: hidden; background: #fff; }
.viewer::backdrop { background: rgba(0, 20, 40, .7); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.viewer-x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.viewer-body { overflow: auto; background: var(--mist); }
.viewer-body img { width: 100%; height: auto; display: block; }

/* ===== Yangiliklar ===== */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.newsc { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.newsc-main { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; }
.newsc-main:not(:has(.newsc-img)) { grid-template-columns: 1fr; }
.newsc-img { aspect-ratio: 16 / 10; background: var(--mist); }
.newsc-main .newsc-img { aspect-ratio: auto; height: 100%; min-height: 240px; }
.newsc-img img { width: 100%; height: 100%; object-fit: cover; }
.newsc-body { padding: 18px 20px 20px; }
.newsc-body time { display: block; color: var(--crimson); font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.newsc-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.newsc-main .newsc-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.newsc-body p { color: var(--muted); font-size: .95rem; margin: 0 0 .6em; }
.newsc-body details summary { cursor: pointer; color: var(--royal); font-weight: 600; font-size: .92rem; list-style: none; }
.newsc-body details summary::-webkit-details-marker { display: none; }
.newsc-body details[open] summary { margin-bottom: 8px; }
@media (max-width: 980px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .news { grid-template-columns: 1fr; } .newsc-main { grid-column: auto; grid-template-columns: 1fr; } .newsc-main .newsc-img { min-height: 0; aspect-ratio: 16 / 10; } }

/* ===== Telefon ko‘rinishi: rasm joylashuvi, yo‘nalishlar, rahbariyat, animatsiyalar ===== */
@media (max-width: 700px) {
  /* Bosh ekran: bino surati to‘liq va markazda */
  .hero { padding-top: calc(70vw + 18px); }
  .hero-bg { height: 74vw; }
  .hero-bg img { object-position: 50% 42%; transform-origin: 50% 50%; animation-duration: 6s; }
  .hero-shade { background: linear-gradient(180deg, rgba(0, 48, 96, 0) 0, rgba(0, 48, 96, 0) 44vw, rgba(0, 48, 96, .7) 62vw, var(--navy) 74vw, var(--navy) 100%); }
  .hero-credit { top: auto; bottom: auto; right: auto; left: 16px; top: calc(74vw - 46px); }
  .hero .place { font-size: .9rem; }
  .hero h1 { font-size: clamp(2.05rem, 9.2vw, 2.6rem); line-height: 1.06; }
  .hero h1 .w > span { animation-duration: .7s; animation-delay: calc(.2s + var(--d) * .05s); }
  .hero .lead { animation-delay: .55s; }
  .hero-btns, .hero-phones { animation-delay: .7s; }
  .hero-stats { animation-delay: .85s; }
  .hero-btns { margin: 22px 0 16px; }
  .hero-stats dt { font-size: 1.45rem; }
  .hero-stats dd { font-size: .8rem; line-height: 1.3; }

  /* Yo‘nalishlar: gorizontal aylantirish o‘rniga teng uchta katak */
  .dir-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; width: 100%; }
  .dir a { flex-direction: column; text-align: center; gap: 6px; padding: 14px 6px; border-left: 0; border-right: 1px solid rgba(255, 255, 255, .14); }
  .dir a:last-child { border-right: 0; }
  .dir b { font-size: .86rem; }
  .dir small { display: none; }

  /* Bosh shifokor: surat va matn markazda */
  .leadx { justify-items: center; text-align: center; }
  .leadx-photo { width: min(260px, 72%); margin: 0 auto; }
  .leadx-body { display: flex; flex-direction: column; align-items: center; }
  .leadx-name { font-size: clamp(1.9rem, 8vw, 2.4rem); margin-bottom: 16px; }
  .leadx-bio { text-align: left; }

  /* Rasmli bloklar markazda va to‘liq kenglikda */
  .entrance, .lab-media, .care-media, .hero-media { margin-inline: auto; width: 100%; }
  .entrance { aspect-ratio: 4 / 3; border-radius: 20px; }
  .entrance img, .lab-media img, .care-media img { object-position: 50% 50%; }

  /* Paydo bo‘lish animatsiyasi telefonda yengilroq va tezroq */
  .js .rv { transform: translateY(16px); transition-duration: .5s; }
  .entrance img { transition-duration: 5s; }
  .ticker-track { animation-duration: 45s; }
}
@media (max-width: 380px) {
  .dir b { font-size: .8rem; }
  .hero-stats > div { padding: 10px; }
}

/* iPhone (Safari): sana maydoni kartadan chiqib ketmasin */
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 52px; box-sizing: border-box; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { margin-left: auto; }
.book form, .book .card, .book .f, .row2 > * { min-width: 0; }

/* Bosh shifokor surati hali yuklanmagan bo‘lsa — katta bo‘sh blok o‘rniga ixcham doira */
.leadx:has(.leadx-ph) { grid-template-columns: 220px minmax(0, 1fr); }
.leadx-photo:has(.leadx-ph) { aspect-ratio: 1; width: 200px; border-radius: 50%; box-shadow: 0 24px 50px -30px rgba(0, 48, 96, .7); outline: 6px solid #fff; }
.leadx-photo:has(.leadx-ph)::after { display: none; }
.leadx-photo:has(.leadx-ph) .leadx-ph span { font-size: 3.6rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 760px) {
  .leadx:has(.leadx-ph) { grid-template-columns: 1fr; }
  .leadx-photo:has(.leadx-ph) { width: 132px; }
  .leadx-photo:has(.leadx-ph) .leadx-ph span { font-size: 2.6rem; }
  .lead-sec { padding: 48px 0; }
}

/* Bosh shifokor bloki kattaroq */
.leadx:has(.leadx-ph) { grid-template-columns: 300px minmax(0, 1fr); }
.leadx-photo:has(.leadx-ph) { width: 280px; }
.leadx-photo:has(.leadx-ph) .leadx-ph span { font-size: 5rem; }
@media (max-width: 760px) {
  .leadx:has(.leadx-ph) { grid-template-columns: 1fr; }
  .leadx-photo:has(.leadx-ph) { width: min(230px, 62vw); }
  .leadx-photo:has(.leadx-ph) .leadx-ph span { font-size: 4rem; }
  .leadx-photo:not(:has(.leadx-ph)) { width: min(320px, 86%); }
}
.leadx-photo img { object-position: 50% 18%; background: #eef2f7; }
