/* =====================================================================
   SAMDTU Klinika — bosh sahifa bo'limlari (2026)
   Raqamlar (.hs-*) va foto/video galereya (.hg-*).
   header-hero.css dagi --sh-* o'zgaruvchilaridan foydalanadi; eski shablon
   klasslariga (.fun-facts, .foto-vedio, .single-news) bog'liq emas.
   ===================================================================== */

/* ---------- Raqamlar ---------- */
.hs {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 64px 0; background: var(--sh-navy); font-family: var(--sh-font);
}
.hs::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 320px at 8% 0%, rgba(23, 100, 216, .38), transparent 62%),
    radial-gradient(560px 300px at 96% 100%, rgba(14, 165, 233, .2), transparent 62%);
}
.hs::after { /* hero dagi kabi nozik nuqtali naqsh */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 60%); mask-image: linear-gradient(270deg, #000 0%, transparent 60%);
}
.hs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hs-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 4px 28px;
  border-left: 1px solid rgba(255, 255, 255, .13);
}
.hs-item:first-child { padding-left: 0; border-left: 0; }
.hs-item:last-child { padding-right: 0; }
.hs-ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #7cc4ff;
}
.hs-ic svg { width: 24px; height: 24px; display: block; }
.hs-txt { min-width: 0; }
.hs-num {
  display: block; font-family: var(--sh-display); font-size: clamp(34px, 3.4vw, 46px); font-weight: 800;
  line-height: 1.05; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums;
}
.hs-label { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; color: #9fb3cf; }

@media (max-width: 991.98px) {
  .hs { padding: 48px 0; }
  .hs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .hs-item { padding: 0 0 0 24px; }
  .hs-item:nth-child(odd) { padding: 0 24px 0 0; border-left: 0; }
}
@media (max-width: 575.98px) {
  .hs { padding: 40px 0; }
  .hs-grid { row-gap: 28px; }
  .hs-item { flex-direction: column; gap: 12px; padding-left: 18px; }
  .hs-item:nth-child(odd) { padding-right: 18px; }
  .hs-ic { width: 42px; height: 42px; border-radius: 12px; }
  .hs-ic svg { width: 21px; height: 21px; }
  .hs-label { font-size: 13px; margin-top: 6px; }
}

/* ---------- Foto / video galereya ---------- */
.hg {
  padding: 72px 0 88px; font-family: var(--sh-font);
  background: linear-gradient(180deg, #fff 0%, #f6f9ff 100%);
}
.hg svg { display: block; flex-shrink: 0; }
.hg a { text-decoration: none !important; }
.hg-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; margin-bottom: 30px; }
.hg-head h2 {
  position: relative; margin: 0; padding-left: 16px; max-width: 560px;
  font-size: 32px; font-weight: 800 !important; line-height: 1.15; color: #0b2545 !important; text-transform: none;
}
.hg-head h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 4px;
  background: linear-gradient(180deg, #1a76d1, #36c2ff);
}

.hg-tabs { display: inline-flex; gap: 4px; padding: 5px; max-width: 100%; border-radius: 14px; background: #eaf0f8; }
.hg-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; margin: 0;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer; white-space: nowrap;
  font-family: var(--sh-font); font-size: 14.5px; font-weight: 600; color: var(--sh-body);
  transition: background .2s, color .2s, box-shadow .2s;
}
.hg-tab svg { width: 18px; height: 18px; }
.hg-tab:hover { color: var(--sh-ink); }
.hg-tab.active { background: #fff; color: var(--sh-brand); box-shadow: 0 6px 16px -8px rgba(11, 31, 58, .4); }
.hg-tab:focus-visible, .hg-shot:focus-visible, .hg-video:focus-visible { outline: 3px solid #7cc0ff; outline-offset: 2px; }

/* Foto — birinchi rasm katta katakda */
.hg-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 232px; gap: 18px; }
.hg-shot {
  position: relative; isolation: isolate; display: block; overflow: hidden; border-radius: 18px;
  background: linear-gradient(135deg, #1e3a5f, #2d6a9f); color: #fff !important;
  box-shadow: 0 16px 32px -24px rgba(11, 31, 58, .55);
}
.hg-shot--lg { grid-column: span 2; grid-row: span 2; }
.hg-shot img, .hg-video img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--sh-ease);
}
.hg-shot:hover img, .hg-video:hover img { transform: scale(1.05); }
.hg-shot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 26, 51, 0) 45%, rgba(7, 26, 51, .82) 100%);
}
.hg-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.hg-cap b { font-family: var(--sh-display); font-size: 16px; font-weight: 700; line-height: 1.3; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.hg-shot--lg .hg-cap { padding: 26px 28px; }
.hg-shot--lg .hg-cap b { font-size: 22px; }
.hg-zoom {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--sh-ease);
}
.hg-zoom svg { width: 18px; height: 18px; }
.hg-shot:hover .hg-zoom, .hg-shot:focus-visible .hg-zoom { opacity: 1; transform: none; }
@media (hover: none) { .hg-zoom { opacity: 1; transform: none; } }

/* Video */
.hg-video { position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sh-navy); }
.hg-video::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 26, 51, .38); transition: background .3s; }
.hg-video:hover::after { background: rgba(7, 26, 51, .26); }
.hg-play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--sh-brand);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .2), 0 18px 34px -12px rgba(7, 26, 51, .7);
  transition: transform .25s var(--sh-ease), box-shadow .25s;
}
.hg-play svg { width: 26px; height: 26px; margin-left: 3px; }
.hg-video:hover .hg-play { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(255, 255, 255, .16), 0 18px 34px -12px rgba(7, 26, 51, .7); }

.hg-feature {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); overflow: hidden;
  background: #fff; border: 1px solid var(--sh-line); border-radius: 22px;
  box-shadow: 0 24px 48px -32px rgba(11, 31, 58, .45);
}
.hg-feature .hg-video { aspect-ratio: auto; min-height: 380px; }
.hg-feature__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 36px 40px; }
.hg-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: #e8f1ff; color: var(--sh-brand-ink); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.hg-badge svg { width: 13px; height: 13px; }
.hg-feature__body h3 { margin: 2px 0 0; font-size: 26px; font-weight: 800 !important; line-height: 1.2; color: var(--sh-ink) !important; }
.hg-feature__body p, .hg-card__body p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--sh-body); }

.hg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hg-card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--sh-line); border-radius: 18px; box-shadow: 0 16px 32px -26px rgba(11, 31, 58, .45);
  transition: transform .25s var(--sh-ease), box-shadow .25s, border-color .25s;
}
.hg-card:hover { transform: translateY(-4px); border-color: #cfe0f8; box-shadow: 0 26px 46px -26px rgba(11, 31, 58, .5); }
.hg-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 24px; }
.hg-card__body h3 { margin: 0; font-size: 18px; font-weight: 700 !important; line-height: 1.35; color: var(--sh-ink) !important; }
.hg-card__body p { font-size: 14.5px; }

@media (max-width: 991.98px) {
  .hg { padding: 56px 0 68px; }
  .hg-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 14px; }
  .hg-shot--lg { grid-row: auto; height: 340px; }
  .hg-feature { grid-template-columns: 1fr; }
  .hg-feature .hg-video { aspect-ratio: 16 / 9; min-height: 0; }
  .hg-feature__body { padding: 26px 28px 30px; }
}
@media (max-width: 575.98px) {
  .hg { padding: 40px 0 52px; }
  .hg-head { margin-bottom: 22px; }
  .hg-head h2 { font-size: 26px; }
  .hg-tabs { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .hg-tabs::-webkit-scrollbar { display: none; }
  .hg-tab { height: 40px; padding: 0 13px; font-size: 14px; }
  .hg-photos { grid-template-columns: 1fr; grid-auto-rows: 200px; gap: 12px; }
  .hg-shot--lg { grid-column: auto; height: auto; }
  .hg-shot, .hg-card { border-radius: 16px; }
  .hg-cap, .hg-shot--lg .hg-cap { padding: 16px; }
  .hg-shot--lg .hg-cap b { font-size: 18px; }
  .hg-feature { border-radius: 18px; }
  .hg-feature__body { padding: 20px 20px 24px; }
  .hg-feature__body h3 { font-size: 22px; }
  .hg-cards { grid-template-columns: 1fr; gap: 14px; }
  .hg-play { width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .hg-shot img, .hg-video img, .hg-play, .hg-card, .hg-zoom { transition: none; }
  .hg-shot:hover img, .hg-video:hover img, .hg-video:hover .hg-play, .hg-card:hover { transform: none; }
}
