/* =====================================================================
   SAMDTU Klinika — yangi Header + Hero (2026)
   Eski shablon klasslariga (.header, .slider, .nav) bog'liq emas —
   shuning uchun eski CSS bilan to'qnashmaydi. Faqat .sh-*, .hx-*, .hq-*.
   ===================================================================== */
:root {
  --sh-ink: #0b1f3a;
  --sh-body: #4a5b75;
  --sh-muted: #7387a3;
  --sh-line: #e5ebf3;
  --sh-brand: #1764d8;
  --sh-brand-2: #0ea5e9;
  --sh-brand-ink: #0f4fb3;
  --sh-navy: #071a33;
  --sh-top-h: 40px;
  --sh-main-h: 78px;
  --sh-radius: 14px;
  --sh-ease: cubic-bezier(.2, .7, .2, 1);
  --sh-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --sh-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

.sh-wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 28px; }
.sh svg, .hx svg, .hq svg { display: block; flex-shrink: 0; }
.sh ul, .hq ul, .hx ul { list-style: none; margin: 0; padding: 0; }
.sh li::before, .hx li::before { display: none !important; }
.sh a, .hx a, .hq a { text-decoration: none !important; }
.sh button { font: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: inherit; }

/* ---------- Header konteyneri (yuqori panel aylantirilganda yashirinadi) ---------- */
.sh {
  position: sticky; top: calc(-1 * var(--sh-top-h)); z-index: 1000;
  font-family: var(--sh-font);
}

/* ---------- Yuqori panel ---------- */
.sh-top { background: var(--sh-navy); color: #b9c8dd; font-size: 13px; }
.sh-top__in { height: var(--sh-top-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-top__contacts { display: flex; align-items: center; gap: 22px; min-width: 0; }
.sh-top__link { display: inline-flex; align-items: center; gap: 7px; color: #b9c8dd !important; white-space: nowrap; transition: color .2s; }
.sh-top__link svg { width: 15px; height: 15px; color: #6fb3ff; }
a.sh-top__link:hover { color: #fff !important; }
.sh-top__right { display: flex; align-items: center; gap: 16px; }
/* Davlat ramzlari: bayroq, gerb, madhiya */
.sh-state { display: flex; align-items: center; gap: 7px; }
.sh-state a {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
  background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); transition: transform .2s var(--sh-ease), box-shadow .2s;
}
.sh-state a:hover, .sh-state a:focus-visible { transform: scale(1.12); box-shadow: 0 0 0 2px rgba(124, 192, 255, .7); outline: 0; }
.sh-state svg { width: 100%; height: 100%; }
.sh-state img { width: 100%; height: 100%; object-fit: contain; padding: 2px; display: block; }
.sh-state a.sh-state__note { background: rgba(255, 255, 255, .1); color: #dbe8fb !important; }
.sh-state__note svg { width: 15px; height: 15px; }
.sh-social { display: flex; gap: 4px; }
.sh-social a { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #b9c8dd !important; transition: background .2s, color .2s; }
.sh-social a:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
.sh-social svg { width: 15px; height: 15px; }

.sh-lang { display: flex; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .08); margin: 0; }
.sh-lang button {
  min-width: 34px; height: 24px; padding: 0 8px !important; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #b9c8dd !important;
  transition: background .2s, color .2s;
}
.sh-lang button:hover { color: #fff !important; }
.sh-lang button.is-active { background: #fff; color: var(--sh-navy) !important; }

/* ---------- Asosiy panel ---------- */
.sh-main {
  background: #fff;
  border-bottom: 1px solid var(--sh-line);
  transition: box-shadow .3s var(--sh-ease);
}
.sh.is-scrolled .sh-main { box-shadow: 0 10px 30px -18px rgba(11, 31, 58, .35); }
.sh-main__in { height: var(--sh-main-h); display: flex; align-items: center; gap: 24px; transition: height .3s var(--sh-ease); }
.sh.is-scrolled .sh-main__in { height: 66px; }

.sh-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--sh-ink) !important; }
.sh-brand img { width: 52px; height: 52px; object-fit: contain; transition: width .3s, height .3s; }
.sh.is-scrolled .sh-brand img { width: 44px; height: 44px; }
.sh-brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.sh-brand__txt b { font-family: var(--sh-display); font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--sh-ink); }
.sh-brand__txt small { font-size: 12.5px; font-weight: 500; color: var(--sh-muted); margin-top: 2px; white-space: nowrap; }

/* Menyu (kompyuter) */
.sh-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.sh-nav__head, .sh-only-mobile { display: none !important; }
.sh-menu { display: flex; align-items: center; gap: 2px; }
.sh-menu > li { position: relative; }
.sh-menu > li > a,
.sh-menu > li > .sh-sub-toggle {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px !important;
  border-radius: 10px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  color: var(--sh-ink) !important; transition: background .2s, color .2s;
}
.sh-menu > li > a:hover,
.sh-menu > li:hover > .sh-sub-toggle,
.sh-menu > li.is-open > .sh-sub-toggle,
.sh-menu > li > .sh-sub-toggle:focus-visible { background: #eef4fd; color: var(--sh-brand) !important; }
.sh-caret { width: 18px; height: 18px; color: var(--sh-muted); transition: transform .25s var(--sh-ease); margin-right: -4px; }
.sh-menu > li:hover .sh-caret, .sh-menu > li.is-open .sh-caret { transform: rotate(180deg); color: var(--sh-brand); }

.sh-ai > .sh-sub-toggle { color: var(--sh-brand-ink) !important; }
.sh-ai__ic { width: 16px; height: 16px; color: var(--sh-brand-2); }

/* Ochiluvchi menyu */
.sh-sub {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 250px; max-width: 340px;
  transform: translate(-50%, 6px); opacity: 0; visibility: hidden;
  background: #fff; border: 1px solid var(--sh-line); border-radius: var(--sh-radius);
  box-shadow: 0 24px 50px -20px rgba(11, 31, 58, .35); padding: 8px !important;
  max-height: min(70vh, 520px); overflow-y: auto;
  transition: opacity .2s, transform .2s var(--sh-ease), visibility .2s;
}
.sh-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sh-menu > li:hover > .sh-sub,
.sh-menu > li:focus-within > .sh-sub,
.sh-menu > li.is-open > .sh-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sh-sub a {
  display: block; padding: 9px 12px !important; border-radius: 9px;
  font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--sh-body) !important;
  transition: background .15s, color .15s;
}
.sh-sub a:hover, .sh-sub a:focus-visible { background: #f1f6fe; color: var(--sh-brand) !important; }
.sh-sub--wide { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; width: 620px; max-width: none; }

/* Tugmalar */
.sh-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.sh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px !important; border-radius: 12px; white-space: nowrap;
  font-family: var(--sh-font); font-size: 14.5px; font-weight: 700; letter-spacing: .005em;
  transition: transform .2s var(--sh-ease), box-shadow .2s, background .2s, color .2s;
}
.sh-btn svg { width: 18px; height: 18px; }
.sh-btn--primary { background: var(--sh-brand); color: #fff !important; box-shadow: 0 10px 24px -12px rgba(23, 100, 216, .8); }
.sh-btn--primary:hover { background: var(--sh-brand-ink); transform: translateY(-1px); color: #fff !important; }
.sh-btn--glass { background: rgba(255, 255, 255, .12); color: #fff !important; border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sh-btn--glass:hover { background: rgba(255, 255, 255, .2); color: #fff !important; }
.sh-btn--lg { height: 54px; padding: 0 26px !important; font-size: 15.5px; border-radius: 14px; }
.sh-btn:focus-visible, .sh-icon-btn:focus-visible, .sh-lang button:focus-visible { outline: 3px solid #7cc0ff; outline-offset: 2px; }

.sh-icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid !important; place-items: center; color: var(--sh-ink) !important; background: #f1f5fb !important; }
.sh-icon-btn svg { width: 22px; height: 22px; }
.sh-burger { display: none !important; }
.sh-backdrop { display: none; }

/* Logo matni sig'masa — yashiramiz (o'rta kenglikdagi ekranlar) */
@media (max-width: 1399.98px) and (min-width: 1200px) {
  .sh-brand__txt { display: none; }
  .sh-menu > li > a, .sh-menu > li > .sh-sub-toggle { padding: 0 10px !important; font-size: 14px; }
}

/* ---------- Mobil / planshet: yon panel ---------- */
@media (max-width: 1199.98px) {
  :root { --sh-main-h: 68px; }
  .sh-wrap { padding: 0 18px; }
  .sh-burger { display: grid !important; }
  .sh-brand img { width: 44px; height: 44px; }
  .sh-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); z-index: 1002;
    flex-direction: column; justify-content: flex-start; background: #fff;
    transform: translateX(100%); transition: transform .32s var(--sh-ease);
    box-shadow: -20px 0 50px -20px rgba(11, 31, 58, .4); overflow-y: auto; padding: 0 0 24px;
  }
  .sh.is-open .sh-nav { transform: none; }
  .sh-nav__head { display: flex !important; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--sh-line); font-family: var(--sh-display); font-weight: 800; font-size: 17px; color: var(--sh-ink); }
  .sh-only-mobile { display: block !important; }
  .sh-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 10px !important; }
  .sh-menu > li { border-bottom: 1px solid #f0f3f8; }
  .sh-menu > li > a, .sh-menu > li > .sh-sub-toggle { width: 100%; justify-content: space-between; height: 52px; font-size: 15.5px; padding: 0 10px !important; }
  .sh-menu > li:hover > .sh-sub-toggle { background: none; color: var(--sh-ink) !important; }
  .sh-ai > .sh-sub-toggle { justify-content: flex-start; }
  .sh-ai > .sh-sub-toggle .sh-caret { margin-left: auto; }
  .sh-menu > li:hover .sh-caret { transform: none; color: var(--sh-muted); }
  .sh-menu > li.is-open .sh-caret { transform: rotate(180deg); color: var(--sh-brand); }
  .sh-sub, .sh-sub--wide {
    position: static; transform: none !important; opacity: 1; visibility: visible; width: auto; max-width: none;
    display: none !important; grid-template-columns: 1fr; box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 10px 8px !important; max-height: none; transition: none;
  }
  .sh-menu > li.is-open > .sh-sub { display: block !important; }
  .sh-sub::before { display: none; }
  .sh-nav__cta { display: flex !important; margin: 16px 18px 0; height: 50px; }
  .sh-backdrop { display: block; position: fixed; inset: 0; z-index: 1001; background: rgba(7, 26, 51, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .sh.is-open .sh-backdrop { opacity: 1; visibility: visible; }
  html.sh-lock, html.sh-lock body { overflow: hidden; }
}
@media (max-width: 767.98px) {
  .sh-hide-md { display: none !important; }
}
@media (max-width: 575.98px) {
  .sh-hide-sm { display: none !important; }
  .sh-actions .sh-btn span { display: none; }
  .sh-actions .sh-btn { width: 44px; padding: 0 !important; }
  .sh-brand__txt b { font-size: 16px; }
  .sh-brand__txt small { font-size: 11.5px; }
  .sh-social { display: none; }
  /* tor ekranda telefon raqami qirqilmasligi uchun yuqori panel ixchamlashadi */
  .sh-top { font-size: 12px; }
  .sh-top__in, .sh-top__right { gap: 10px; }
  .sh-state { gap: 5px; }
  .sh-state a { width: 22px; height: 22px; }
  .sh-state__note svg { width: 13px; height: 13px; }
  .sh-lang button { min-width: 28px; padding: 0 5px !important; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hx {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 78vh, 760px); display: flex; align-items: center;
  background: var(--sh-navy); color: #fff; font-family: var(--sh-font);
  padding: 72px 0 140px;
}
.hx-bg { position: absolute; inset: 0; z-index: -2; }
.hx-bg span {
  position: absolute; inset: 0; background-size: cover; background-position: center 40%;
  opacity: 0; animation: hxFade 21s infinite; will-change: opacity, transform;
}
.hx-bg span:nth-child(1) { animation-delay: 0s; }
.hx-bg span:nth-child(2) { animation-delay: 7s; }
.hx-bg span:nth-child(3) { animation-delay: 14s; }
@keyframes hxFade {
  0% { opacity: 0; transform: scale(1.08); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
.hx::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 26, 51, .94) 0%, rgba(7, 26, 51, .82) 38%, rgba(7, 26, 51, .35) 70%, rgba(7, 26, 51, .15) 100%),
    linear-gradient(0deg, rgba(7, 26, 51, .7) 0%, rgba(7, 26, 51, 0) 40%);
}
.hx::after { /* nozik nuqtali naqsh */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%); mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}
.hx-in { position: relative; }
.hx-content { max-width: 680px; }
.hx-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px; font-weight: 600; color: #dbe8fb; letter-spacing: .01em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hx-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .22); }
.hx .hx-title {
  margin: 22px 0 18px; font-family: var(--sh-display); font-weight: 800;
  font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -.025em; color: #fff !important;
  text-transform: none;
}
.hx-title em {
  font-style: normal; background: linear-gradient(90deg, #7cc4ff, #5eead4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx .hx-lead { margin: 0 0 32px; max-width: 560px; font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.6; color: #c9d6ea !important; }
.hx-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hx-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 44px !important; padding-top: 26px !important; border-top: 1px solid rgba(255, 255, 255, .14); }
.hx-stats li { display: flex; flex-direction: column; gap: 2px; }
.hx-stats b { font-family: var(--sh-display); font-size: 26px; font-weight: 800; line-height: 1.1; color: #fff; }
.hx-stats span { font-size: 13px; color: #9fb3cf; }

@media (prefers-reduced-motion: reduce) {
  .hx-bg span { animation: none; }
  .hx-bg span:first-child { opacity: 1; }
}
@media (max-width: 991.98px) {
  .hx { padding: 56px 0 120px; min-height: 0; }
  .hx::before { background: linear-gradient(180deg, rgba(7, 26, 51, .78) 0%, rgba(7, 26, 51, .9) 100%); }
}
@media (max-width: 575.98px) {
  .hx { padding: 40px 0 110px; }
  .hx-cta .sh-btn { width: 100%; }
  .hx-stats { gap: 14px 24px; margin-top: 32px !important; }
  .hx-stats b { font-size: 22px; }
}

/* ---------- Tezkor havolalar (hero ustiga chiqib turadi) ---------- */
.hq {
  position: relative; z-index: 5; margin-top: -76px; font-family: var(--sh-font);
  /* kartochkalar ostidagi oraliq — keyingi bo'lim foni bilan bir xil */
  background: linear-gradient(180deg, transparent 0, transparent 76px, #f6f9ff 76px);
}
.hq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hq-card {
  display: flex; align-items: center; gap: 14px; padding: 20px 20px; background: #fff; border-radius: 18px;
  border: 1px solid var(--sh-line); box-shadow: 0 20px 44px -26px rgba(11, 31, 58, .45);
  color: var(--sh-ink) !important; transition: transform .25s var(--sh-ease), box-shadow .25s, border-color .25s;
}
.hq-card:hover { transform: translateY(-4px); border-color: #cfe0f8; box-shadow: 0 28px 54px -26px rgba(11, 31, 58, .5); }
.hq-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.hq-ic svg { width: 24px; height: 24px; }
.hq-ic--blue { background: #e8f1ff; color: #1764d8; }
.hq-ic--teal { background: #e3f8f4; color: #0d9488; }
.hq-ic--violet { background: #efeafe; color: #6d4ee6; }
.hq-ic--rose { background: #ffecef; color: #e0435c; }
.hq-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hq-txt b { font-family: var(--sh-display); font-size: 16px; font-weight: 700; color: var(--sh-ink); line-height: 1.25; }
.hq-txt small { font-size: 13px; color: var(--sh-muted); margin-top: 3px; line-height: 1.35; }
.hq-arrow { width: 20px; height: 20px; color: #b3c2d6; transition: transform .25s var(--sh-ease), color .25s; }
.hq-card:hover .hq-arrow { transform: translateX(3px); color: var(--sh-brand); }
@media (max-width: 1199.98px) { .hq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .hq { margin-top: -70px; background: linear-gradient(180deg, transparent 0, transparent 70px, #f6f9ff 70px); }
  .hq-grid { grid-template-columns: 1fr; gap: 10px; }
  .hq-card { padding: 14px 16px; border-radius: 14px; }
  .hq-ic { width: 42px; height: 42px; border-radius: 12px; }
}

/* Yopiq "Maxsus imkoniyatlar" paneli ekrandan tashqarida turadi, lekin soyasi
   sahifaning chap chetiga tushib, kulrang dog' qoldirardi — yopiqligida soyasiz. */
.a11y-panel:not(.open) { box-shadow: none !important; }
/* Mobil menyu ochiq paytda suzuvchi tugmalar menyu ustiga chiqmasin */
html.sh-lock .float-contact, html.sh-lock .a11y-toggle { opacity: 0; visibility: hidden; }

/* juda tor telefonlar: telefon ikonkasi yashirinadi, raqam to'liq sig'adi */
@media (max-width: 374.98px) { .sh-top__link svg { display: none; } }
