/* ==========================================================================
   Bakı Ağrı Klinikası — ictimai sayt dizayn sistemi
   Brend: loqodan — göy #064E84, qırmızı #D81E36 (qırmızı yalnız CTA + ağrı nöqtələri)
   Şriftlər: Nunito (başlıq, AZ+RU yoxlanılıb) · Source Sans 3 (mətn)
   ========================================================================== */

:root {
  --ground: #F3F6F9;
  --surface: #FFFFFF;
  --surface-2: #E8EFF5;
  --ink: #0C2236;
  --ink-2: #3A5167;
  --ink-3: #687D90;
  --rule: #D6E1EA;
  --rule-strong: #BCCBD8;
  --brand: #064E84;
  --brand-ink: #043B64;
  --brand-soft: #DDEAF4;
  --accent: #D81E36;
  --accent-ink: #B1162A;
  --accent-soft: #FBE4E7;
  --ok: #1D7549;
  --ok-soft: #DDF0E5;
  --warn-soft: #FFF4DB;
  /* WhatsApp brend yaşılı (rəsmi #25D366) + üzərinə gələndə tündləşən ton */
  --wa: #25D366;
  --wa-ink: #1DA851;
  --shadow-sm: 0 1px 2px rgba(12, 34, 54, .06);
  --shadow: 0 1px 2px rgba(12, 34, 54, .05), 0 12px 32px -18px rgba(12, 34, 54, .28);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;

  --f-display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.4rem, 1.1rem + 1.2vw, 1.75rem);
  --t-2xl: clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem);
  --t-3xl: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #09172A;
    --surface: #0F2238;
    --surface-2: #152D48;
    --ink: #E8EFF6;
    --ink-2: #AFC1D2;
    --ink-3: #8095A9;
    --rule: #203B58;
    --rule-strong: #2E4E70;
    --brand: #74B3E8;
    --brand-ink: #A3CDF2;
    --brand-soft: #123452;
    --accent: #FF5C70;
    --accent-ink: #FF8595;
    --accent-soft: #3B1522;
    --ok: #62C893;
    --ok-soft: #13301F;
    --warn-soft: #33290F;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #09172A;
  --surface: #0F2238;
  --surface-2: #152D48;
  --ink: #E8EFF6;
  --ink-2: #AFC1D2;
  --ink-3: #8095A9;
  --rule: #203B58;
  --rule-strong: #2E4E70;
  --brand: #74B3E8;
  --brand-ink: #A3CDF2;
  --brand-soft: #123452;
  --accent: #FF5C70;
  --accent-ink: #FF8595;
  --accent-soft: #3B1522;
  --ok: #62C893;
  --ok-soft: #13301F;
  --warn-soft: #33290F;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ── Baza ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.012em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 800px; }

/* ── Düymələr ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-display); font-weight: 800; font-size: var(--t-sm); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-ink); color: #fff; }
:root[data-theme="dark"] .btn-brand, :root[data-theme="dark"] .btn-brand:hover { color: #09172A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-brand, :root:not([data-theme="light"]) .btn-brand:hover { color: #09172A; } }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { min-height: 40px; padding: .5em 1.05em; }
.btn-block { width: 100%; }
/* WhatsApp düyməsi: brend yaşılı + dolu loqo */
.btn-wa { background: var(--wa); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .2); }
.btn-wa:hover { background: var(--wa-ink); color: #fff; }
.btn-wa svg { width: 21px; height: 21px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--f-display); font-weight: 800; font-size: var(--t-sm);
  text-decoration: none; color: var(--brand);
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ── Başlıq (header) ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-logo {
  height: 48px; width: auto;
  border-radius: 8px;
}
:root[data-theme="dark"] .brand-logo { background: #fff; padding: 3px 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { background: #fff; padding: 3px 6px; } }
.brand-name {
  font-family: var(--f-display); font-weight: 800; font-size: 1.02rem; line-height: 1.15; color: var(--ink);
}
.brand-name small { display: block; font-family: var(--f-body); font-weight: 600; font-size: .78rem; color: var(--ink-3); letter-spacing: .02em; }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-family: var(--f-display); font-weight: 700; font-size: var(--t-sm);
  color: var(--ink-2); text-decoration: none;
}
.main-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.main-nav a[aria-current="page"] { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; color: var(--ink);
  font-family: var(--f-display); font-weight: 800; font-size: var(--t-sm); white-space: nowrap;
}
.header-phone small { font-family: var(--f-body); font-weight: 600; font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { padding: 6px 8px; font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; color: var(--ink-3); text-decoration: none; border-radius: 6px; }
.lang-switch a[aria-current="true"] { color: var(--brand); background: var(--brand-soft); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--rule);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow);
    padding: 12px 20px 20px; display: none; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 8px; font-size: var(--t-md); border-bottom: 1px solid var(--rule); border-radius: 0; }
  .brand-name { display: none; }
}

/* ── Bölmələr ──────────────────────────────────────────────────────────── */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head > div { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 800; font-size: var(--t-xs);
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.section-title { font-size: var(--t-2xl); }
.section-lead { color: var(--ink-2); font-size: var(--t-lg); line-height: 1.55; margin-top: 12px; max-width: 60ch; }

/* ── Hero: «Harası ağrıyır?» ───────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 88% -10%, var(--brand-soft), transparent 62%),
    var(--ground);
  padding-block: clamp(24px, 3vw, 44px) clamp(20px, 2.4vw, 36px);
}
/* Slayderdən dərhal sonrakı bölmə — standart .section boşluğu hero-nun aşağı boşluğu ilə toplanıb çox böyük olurdu */
.hero + .section { padding-top: clamp(32px, 4vw, 56px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--t-3xl); line-height: 1.06; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: var(--t-lg); color: var(--ink-2); margin-top: 20px; max-width: 34em; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* Ana səhifə slayderi — slaydlar eyni grid xanasında üst-üstədir (hündürlük = ən hündür slayd, keçiddə
   səhifə «tullanmır»). Keçid: solğunlaşma + yüngül sürüşmə; istiqamət --hero-shift ilə JS-dən gəlir. */
.hero .hero-title { font-size: var(--t-3xl); line-height: 1.06; letter-spacing: -.02em; }
.hero .hero-title em { font-style: normal; color: var(--brand); }
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateX(var(--hero-shift, 32px));
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .55s;
}
.hero-slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}
.hero-slide.is-leaving { transform: translateX(calc(var(--hero-shift, 32px) * -1)); }

.hero-controls { display: flex; align-items: center; gap: 10px; margin-top: clamp(14px, 1.6vw, 22px); }
.hero-controls[hidden] { display: none; }
.hero-arrow {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink);
  transition: border-color .18s ease, color .18s ease;
}
.hero-arrow:hover, .hero-arrow:focus-visible { border-color: var(--brand); color: var(--brand); }
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow.is-prev svg { transform: scaleX(-1); }
.hero-dots { display: flex; align-items: center; }
/* Düymə 24px-lik toxunma sahəsidir; görünən hissə ::before zolağıdır, span — avtomatik keçidin irəliləyişi */
.hero-dot { position: relative; width: 24px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .3s ease; }
.hero-dot::before, .hero-dot span { content: ""; position: absolute; left: 8px; top: 50%; height: 8px; margin-top: -4px; border-radius: 999px; }
.hero-dot::before { right: 8px; background: var(--rule-strong); transition: background-color .3s ease; }
.hero-dot span { width: 0; background: var(--brand); }
.hero-dot.is-active { width: 60px; }
.hero-dot.is-active::before { background: var(--brand-soft); }
.hero-dot.is-active span { animation: hero-progress var(--hero-interval, 7s) linear forwards; }
.hero-slider.is-paused .hero-dot.is-active span { animation-play-state: paused; }
.hero-slider.no-autoplay .hero-dot.is-active span { animation: none; width: calc(100% - 16px); }
@keyframes hero-progress { to { width: calc(100% - 16px); } }

.hero-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; }
/* 2-ci/3-cü slaydın kartı naviqator kartı ilə eyni hündürlükdədir — çərçivə slaydlar arasında «oynamır», üstdə boşluq qalmır */
.hero-slide > .hero-card { align-self: stretch; display: flex; flex-direction: column; }
.hero-card-more { margin-top: auto; padding-top: 10px; }
.hero-svc { list-style: none; margin: 6px 0 0; padding: 0; }
.hero-svc li + li { border-top: 1px solid var(--rule); }
.hero-svc a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; text-decoration: none; color: var(--ink); }
.hero-svc .service-icon { width: 44px; height: 44px; flex: none; }
.hero-svc .service-icon svg { width: 22px; height: 22px; }
.hero-svc-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hero-svc-text b { font-family: var(--f-display); font-weight: 800; font-size: var(--t-sm); line-height: 1.25; transition: color .18s ease; }
.hero-svc-text small { color: var(--ink-3); font-size: .78rem; font-weight: 600; margin-top: 3px; }
.hero-svc-arrow { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .18s ease, color .18s ease; }
.hero-svc a:hover b, .hero-svc a:focus-visible b { color: var(--brand); }
.hero-svc a:hover .hero-svc-arrow, .hero-svc a:focus-visible .hero-svc-arrow { color: var(--brand); transform: translateX(3px); }
.hero-card-more { margin-inline: 4px; align-self: flex-start; }

.hero-doctor { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; text-decoration: none; color: var(--ink); padding: 34px 28px 30px; transition: border-color .18s ease; }
.hero-doctor:hover, .hero-doctor:focus-visible { border-color: var(--brand); }
.hero-doctor-photo {
  width: 152px; height: 152px; border-radius: 50%; overflow: hidden; margin-bottom: 14px;
  display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-soft), var(--surface-2));
  border: 5px solid var(--surface); box-shadow: 0 0 0 1px var(--rule), var(--shadow-sm);
}
.hero-doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-doctor-photo .monogram { width: 64%; height: auto; object-fit: contain; }
.hero-doctor-name { font-family: var(--f-display); font-weight: 800; font-size: var(--t-xl); line-height: 1.2; }
.hero-doctor .doctor-meta { justify-content: center; margin: 10px 0 14px; }
.hero-doctor-quote { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; max-width: 38ch; padding-top: 14px; border-top: 1px dashed var(--rule); }

/* Onurğa naviqatoru */
.spine-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}
.spine-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px 10px; border-bottom: 1px dashed var(--rule); }
.spine-card-title strong { font-family: var(--f-display); font-weight: 800; font-size: var(--t-lg); }
.spine-card-title span { font-size: var(--t-xs); color: var(--ink-3); }
/* İnsan siluеti: viewBox 200×440; nöqtələr --x/--y siluеt koordinatlarındadır, xəritə hündürlüyünə görə miqyaslanır */
.spine-map { --map-h: 420px; position: relative; height: var(--map-h); margin-top: 8px; }
.spine-map svg.body-map { position: absolute; left: 50%; top: 0; height: 100%; width: calc(var(--map-h) * 200 / 440); transform: translateX(-50%); overflow: visible; }
.body-map .body-stop-a { stop-color: var(--brand-soft); }
.body-map .body-stop-b { stop-color: color-mix(in srgb, var(--brand-soft) 80%, var(--brand)); }
.body-map .body-sil { fill: url(#bodyFill); stroke: color-mix(in srgb, var(--rule-strong) 80%, var(--brand)); stroke-width: .8; }
.body-map .body-detail { fill: none; stroke: color-mix(in srgb, var(--rule-strong) 75%, var(--brand)); stroke-width: .7; opacity: .75; }
.body-map .body-spine-line { stroke: var(--accent); stroke-width: .9; stroke-linecap: round; opacity: .9; }
.body-map .body-vert { fill: var(--brand); opacity: .82; }
.body-map .body-disc { stroke: var(--brand); stroke-width: 1.9; stroke-linecap: round; opacity: .82; }
.body-map .body-sacrum { fill: var(--brand); opacity: .5; }

.region-pin {
  position: absolute; display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  transform: translateY(-50%);
}
.region-pin .pin-label {
  display: inline-flex; flex-direction: column; line-height: 1.15;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  padding: 8px 12px; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, background-color .18s ease;
}
.region-pin .pin-label b { font-family: var(--f-display); font-weight: 800; font-size: var(--t-sm); }
.region-pin .pin-label small { color: var(--ink-3); font-size: .74rem; font-weight: 600; }
.region-pin .pin-line { height: 1.5px; background: var(--rule-strong); flex: 1; min-width: 18px; }
.region-pin .pin-dot {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--surface); border: 3px solid var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent);
  transition: box-shadow .25s ease, background-color .2s ease;
}
.region-pin:hover .pin-label, .region-pin:focus-visible .pin-label { border-color: var(--accent); background: var(--accent-soft); }
.region-pin:hover .pin-dot, .region-pin:focus-visible .pin-dot { background: var(--accent); box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent); }
/* Etiket kartın kənarında, xətt siluеtdəki nöqtəyə qədər uzanır (nöqtə 14px → yarısı 7px) */
.region-pin { --dx: calc((var(--x) - 100) * var(--map-h) / 440); top: calc(var(--y) / 440 * 100%); }
.region-pin.left { left: 0; right: calc(50% - var(--dx) - 7px); flex-direction: row; }
.region-pin.right { right: 0; left: calc(50% + var(--dx) - 7px); flex-direction: row-reverse; }
.region-pin .pin-line { flex: 1; min-width: 14px; }
.spine-note { margin-top: 10px; font-size: var(--t-xs); color: var(--ink-3); text-align: center; }

.region-chips { display: none; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.region-chips a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule);
  text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: var(--t-sm);
}
.region-chips a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--accent); flex: none; }
.region-chips a span { margin-right: auto; }
.region-chips a small { color: var(--ink-3); font-family: var(--f-body); font-weight: 600; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-slide { align-content: start; }
  .hero-controls { justify-content: center; }
  .spine-map { display: none; }
  .spine-card { padding: 18px; }
  .region-chips { display: grid; margin-top: 14px; }
}

/* ── Kartlar və şəbəkələr ──────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: inherit; }
.card h3 { font-size: var(--t-lg); }
.card p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }
.card .link-arrow { margin-top: auto; padding-top: 6px; }
.card-media { margin: -24px -24px 6px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
a.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-date { align-self: flex-start; font-size: var(--t-xs); font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: .76rem; font-weight: 700; letter-spacing: .01em;
}
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.service-icon svg { width: 26px; height: 26px; }

/* Proses (real ardıcıllıq — nömrələr məlumat daşıyır) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 26px 22px 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--f-display); font-weight: 800; margin-bottom: 16px;
}
:root[data-theme="dark"] .steps li::before { color: #09172A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { color: #09172A; } }
.steps h3 { font-size: var(--t-md); margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: var(--t-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Həkim bloku */
.doctor-feature { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.doctor-portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, var(--brand-soft), var(--surface-2));
  display: grid; place-items: center; border: 1px solid var(--rule);
}
.doctor-portrait img { width: 100%; height: 100%; object-fit: cover; }
/* Foto yoxdursa klinika nişanı göstərilir — kəsilməməlidir */
.doctor-portrait .monogram { width: 58%; height: auto; object-fit: contain; opacity: .95; }
.doctor-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.doctor-feature blockquote { margin: 0; padding-left: 18px; border-left: 3px solid var(--accent); color: var(--ink-2); font-size: var(--t-lg); line-height: 1.6; }
@media (max-width: 800px) { .doctor-feature { grid-template-columns: 1fr; } .doctor-portrait { max-width: 320px; } }

/* Video (yüngül YouTube — kliklə yüklənir) */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.video {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b1a2a;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s ease, transform .3s ease; }
.video:hover img { opacity: 1; transform: scale(1.02); }
.video .play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.video .play svg { width: 26px; height: 26px; color: #fff; margin-left: 3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 10px; font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.4; }
.video-kind { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 2px; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--f-display); font-weight: 800; font-size: var(--t-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* ── CTA + əlaqə + form ────────────────────────────────────────────────── */
.contact-band { background: var(--brand); color: #fff; }
.contact-band h2, .contact-band h3 { color: #fff; }
.contact-band .section-lead { color: rgba(255, 255, 255, .82); }
.contact-band .eyebrow { color: #cfe3f5; }
.contact-band a { color: #fff; }
:root[data-theme="dark"] .contact-band { background: #0B2A47; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact-band { background: #0B2A47; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; opacity: .72; font-weight: 700; }
.contact-list strong, .contact-list a { font-family: var(--f-display); font-weight: 800; font-size: var(--t-md); text-decoration: none; }
.contact-list .contact-wa .ci { background: var(--wa); color: #fff; }
.contact-list .contact-wa .ci svg { width: 25px; height: 25px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface); color: var(--ink);
  border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); border: 1px solid var(--rule);
}
.form-card h3 { color: var(--ink); font-size: var(--t-xl); }
.form-card .form-lead { color: var(--ink-2); font-size: var(--t-sm); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: var(--t-sm); color: var(--ink); }
.field label .req { color: var(--accent); }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--accent); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--t-sm); color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--ink-3); margin-top: 12px; }
/* Formun altında alternativ: birbaşa WhatsApp */
.form-alt { margin-top: 12px; text-align: center; }
.form-alt-or { display: block; margin-bottom: 10px; font-size: var(--t-sm); color: var(--ink-2); }

.alert { padding: 14px 16px; border-radius: 12px; font-size: var(--t-sm); margin-top: 16px; }
.alert-error { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.alert-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
/* «Tezliklə» rejimində daxil olmuş işçiyə xəbərdarlıq */
.staff-bar { background: var(--ink); color: var(--surface); font-size: var(--t-xs); font-weight: 600; text-align: center; padding: 7px 16px; }
.staff-bar a { color: inherit; text-decoration: underline; margin-left: 6px; }
.thanks-box { display: flex; gap: 14px; align-items: flex-start; font-size: var(--t-md); padding: 18px 20px; }
.thanks-box p { margin: 0 0 4px; }
.thanks-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--ok-soft); }
.thanks-icon svg { width: 22px; height: 22px; stroke-width: 2.6; }

.map-frame { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); background: var(--surface-2); }

/* ── Daxili səhifələr ──────────────────────────────────────────────────── */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--rule); padding-block: clamp(32px, 5vw, 60px); }
.page-hero h1 { font-size: var(--t-3xl); letter-spacing: -.02em; }
.page-hero .section-lead { margin-top: 14px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: var(--t-xs); color: var(--ink-3); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--rule-strong); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 960px) { .layout-sidebar { grid-template-columns: 1fr; } .sidebar { position: static; } }

.side-box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.side-box h3 { font-size: var(--t-md); margin-bottom: 12px; }
.side-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.side-box li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: var(--t-sm); }
.side-box li:last-child a { border-bottom: 0; }
.side-box li a:hover { color: var(--brand); }
.side-cta { background: var(--brand); color: #fff; border: 0; }
.side-cta h3, .side-cta p { color: #fff; }
.side-cta p { opacity: .85; font-size: var(--t-sm); margin-bottom: 16px; }
:root[data-theme="dark"] .side-cta { background: #0B2A47; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .side-cta { background: #0B2A47; } }

/* Məqalə tipoqrafiyası */
.prose { font-size: 1.1rem; line-height: 1.75; color: var(--ink); max-width: 72ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: var(--t-xl); margin-top: 1.8em; }
.prose h3 { font-size: var(--t-lg); margin-top: 1.5em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--brand); }
.prose img { border-radius: var(--radius-sm); margin-inline: auto; height: auto; }
/* Köhnə saytdan gələn şəkillərdə ölçü atributu yoxdur — nəzarətsiz böyüməsinlər */
.prose p > img, .prose figure img { max-height: 520px; width: auto; }
/* cədvəl daxilindəki kiçik şəkillər (bayraqlar, nişanlar) — sütun daraldığı üçün max-width ləğv edilir */
.prose table img { height: 22px; width: auto; max-width: none; border-radius: 3px; margin: 0; }
.prose a > img { max-height: 84px; width: auto; }
.prose blockquote { margin-inline: 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); }
.prose a { word-break: break-word; }

.region-section { padding-block: 28px; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 20px); }
.region-section:first-of-type { border-top: 0; }
.region-section h2 { font-size: var(--t-xl); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.region-section h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--accent); }
.region-section.is-target h2::before { background: var(--accent); }
.region-empty { color: var(--ink-3); font-size: var(--t-sm); background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: var(--radius); padding: 18px 20px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--rule); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery.certs a { aspect-ratio: 3 / 4; }
.gallery.certs img { object-fit: contain; background: #fff; padding: 6px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs button {
  border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: var(--t-sm); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(4, 14, 26, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.lightbox img { max-height: calc(100dvh - 120px); width: auto; margin-inline: auto; border-radius: 8px; }
.lightbox figcaption { color: #dfe9f3; text-align: center; font-size: var(--t-sm); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); padding-block: 56px 28px; font-size: var(--t-sm); color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 32px; }
.footer-grid h4 { font-size: var(--t-sm); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-family: var(--f-body); font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.footer-about p { margin-top: 14px; max-width: 34ch; }
.footer-wa { display: inline-flex; align-items: center; gap: 7px; }
.footer-wa svg { width: 19px; height: 19px; color: var(--wa); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--ink-3); font-size: var(--t-xs); }
.footer-disclaimer { max-width: 70ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobil alt panel: zəng + randevu */
.mobile-bar { display: none; }
@media (max-width: 920px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 95%, transparent); border-top: 1px solid var(--rule);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .mobile-bar.has-wa { grid-template-columns: 1fr 1fr 1fr; }
  .mobile-bar .btn { min-height: 46px; padding-inline: .6em; }
  .mobile-bar .bar-wa { background: var(--wa); border-color: var(--wa); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .2); }
  .mobile-bar .bar-wa:hover { background: var(--wa-ink); border-color: var(--wa-ink); color: #fff; }
  .mobile-bar .bar-wa svg { width: 22px; height: 22px; }
  body { padding-bottom: 76px; }
}
/* Dar ekranda 3 düymə sığmır: zəng və WhatsApp yalnız ikon (mətn ekran oxuyucusu üçün qalır), «Qəbula yazıl» tam */
@media (max-width: 480px) {
  .mobile-bar.has-wa { grid-template-columns: 54px 54px minmax(0, 1fr); }
  .mobile-bar.has-wa .bar-icon { padding-inline: 0; gap: 0; }
  .mobile-bar.has-wa .bar-icon svg { width: 22px; height: 22px; }
  .mobile-bar.has-wa .bar-wa svg { width: 27px; height: 27px; }
  .mobile-bar.has-wa .bar-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* WhatsApp: kompüterdə sağ aşağı küncdə üzən düymə (mobildə alt paneldədir).
   Brend yaşılı dairə + böyük ağ loqo; açılışda 3 dəfə yumşaq halqa; üzərinə gələndə solda «WhatsApp-a yazın» etiketi */
.wa-float { display: none; }
@media (min-width: 921px) {
  .wa-float {
    position: fixed; right: 26px; bottom: 26px; z-index: 55;
    width: 62px; height: 62px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--wa); color: #fff; text-decoration: none;
    box-shadow: 0 8px 22px -6px rgba(37, 211, 102, .6), 0 2px 6px rgba(12, 34, 54, .22);
    transition: background-color .18s ease, transform .18s ease;
  }
  .wa-float svg { width: 34px; height: 34px; }
  .wa-float::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    animation: wa-pulse 2s ease-out 1.5s 3;
  }
  .wa-float span {
    position: absolute; right: calc(100% + 12px); top: 50%;
    transform: translate(6px, -50%); opacity: 0; pointer-events: none;
    padding: 8px 14px; border-radius: 999px; white-space: nowrap;
    background: var(--surface); color: var(--ink); border: 1px solid var(--rule); box-shadow: var(--shadow);
    font-family: var(--f-display); font-weight: 800; font-size: var(--t-sm);
    transition: opacity .2s ease, transform .2s ease;
  }
  .wa-float:hover, .wa-float:focus-visible { background: var(--wa-ink); color: #fff; transform: scale(1.06); }
  .wa-float:hover span, .wa-float:focus-visible span { opacity: 1; transform: translate(0, -50%); }
}
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float span { transition: none; }
  .wa-float::before { animation: none; }
}

.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: var(--radius); }


/* ── Şəkilli komponentlər (2026-10 UI yenilənməsi) ───────────────────────── */
/* Başlıq: mətn + şəkil (xidmət, ağrı, səhifə, yenilik, həkim) */
.page-hero.has-photo { padding-block: clamp(26px, 4vw, 52px); }
.page-hero.has-photo h1 { font-size: clamp(2rem, 1.35rem + 2.1vw, 3.1rem); line-height: 1.08; }
/* Başlığın sağında interaktiv blok (ağrılar səhifəsində insan siluеti) */
.page-hero.has-aside { padding-block: clamp(26px, 4vw, 48px); }
.page-hero.has-aside h1 { font-size: clamp(2rem, 1.35rem + 2.1vw, 3.1rem); line-height: 1.08; }
.page-hero-aside { min-width: 0; }
.hero-hint { margin-top: 14px; color: var(--ink-2); font-size: var(--t-md); line-height: 1.6; max-width: 46ch; }
.hero-stats { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats li { display: flex; flex-direction: column; gap: 4px; min-width: 112px; padding: 12px 18px; background: var(--ground); border: 1px solid var(--rule); border-radius: 14px; }
.hero-stats b { font-family: var(--f-display); font-weight: 800; font-size: var(--t-2xl); line-height: 1; color: var(--brand); }
.hero-stats span { font-size: var(--t-xs); font-weight: 700; color: var(--ink-3); }
.page-hero.has-aside .hero-actions { margin-top: 24px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
.page-hero-photo { margin: 0; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo.is-portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 340px; justify-self: end; }
/* Portretlərdə üz kadrın yuxarı hissəsindədir — kəsim zamanı baş itməsin */
.page-hero-photo.is-portrait img, .doctor-portrait img, .doctor-card-photo img, .hero-doctor-photo img { object-position: 50% 18%; }
.hero-tags { margin-top: 18px; }
.hero-tags .tag { text-decoration: none; }
a.tag:hover { background: var(--brand); color: #fff; }
.hero-date { margin-top: 14px; color: var(--ink-3); font-size: var(--t-sm); }
.page-hero .hero-actions { margin-top: 22px; }

/* Əlaqəli bloklar (video, kartlar, üzvlüklər) */
.related-block { margin-top: clamp(36px, 5vw, 56px); }
.related-title { font-size: var(--t-xl); margin-bottom: 16px; }
.related-lead { color: var(--ink-2); margin: -6px 0 18px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

/* Kompakt kart: şəkil + başlıq */
.card.is-compact { padding: 0; gap: 0; overflow: hidden; }
.card.is-compact .card-media { margin: 0; border-radius: 0; aspect-ratio: 16 / 10; }
.card.is-compact .card-body { padding: 14px 16px 16px; gap: 6px; }
.card.is-compact h3 { font-size: var(--t-md); line-height: 1.3; }
.card.is-compact .service-icon { margin: 16px 16px 0; }

/* Yan paneldə telefon */
.side-cta .btn { gap: 8px; }
.side-cta .btn svg { width: 18px; height: 18px; }
.side-cta .btn + .btn { margin-top: 10px; }
.side-cta .btn-wa svg { width: 21px; height: 21px; }
.side-cta-phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: #fff; font-family: var(--f-display); font-weight: 800; text-decoration: none; opacity: .92; }
.side-cta-phone:hover { color: #fff; opacity: 1; }
.side-cta-phone svg { width: 18px; height: 18px; }

/* Ağrılar arxivi: nahiyə başlığı şəkli */
.region-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.region-head h2 { margin: 0; }
.region-head h2::before { display: none; }
.region-thumb { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--rule-strong); }
.region-thumb img { width: 100%; height: 100%; object-fit: cover; }
.region-section.is-target .region-thumb { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.region-count { margin-left: auto; color: var(--ink-3); font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .region-head { flex-wrap: wrap; } .region-count { margin-left: 70px; width: 100%; white-space: normal; } }
/* Nahiyənin müalicə üsulları — teq kimi linklər (sayı başlıqdakı «N müalicə üsulu» ilə eynidir) */
.region-services { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--t-sm); color: var(--ink-2); }
.region-services strong { font-family: var(--f-display); margin-right: 2px; }
.region-services .tag { text-decoration: none; font-size: .8rem; padding: 5px 12px; }

/* Həkimlər arxivi */
.doctor-card { align-items: center; text-align: center; }
.doctor-card-photo { width: 168px; height: 210px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-soft), var(--surface-2)); }
.doctor-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card-photo .monogram { width: 64%; height: auto; object-fit: contain; }
.doctor-card-role { color: var(--brand); font-weight: 700; }

/* Üzvlüklər — həkim səhifəsi (kartlar) və ana səhifə (loqo zolağı). Loqolar ağ fonda — tünd rejimdə də */
.member-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.member-grid li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.member-logo { width: 88px; height: 56px; flex: none; display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--rule); }
.member-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.member-text b { display: block; font-family: var(--f-display); font-weight: 800; font-size: var(--t-sm); line-height: 1.3; }
.member-text small { display: block; margin-top: 3px; color: var(--ink-3); font-size: var(--t-xs); }
.member-strip { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--rule); }
.member-strip-label { display: block; font-family: var(--f-display); font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.member-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.member-strip li { height: 54px; padding: 6px 12px; background: #fff; border: 1px solid var(--rule); border-radius: 10px; display: grid; place-items: center; }
.member-strip img { max-height: 40px; max-width: 112px; width: auto; object-fit: contain; }

/* Ana səhifə: «Necə işləyirik» — solda foto, sağda 2×2 addım */
.steps-layout.has-photo { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.steps-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); min-height: 100%; }
.steps-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps-layout.has-photo .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Həkim səhifəsi: kurslar cədvəli və mətbuat */
.prose-table { max-width: none; }
.prose-table table { border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface); }
.prose-table td strong, .prose-table td b { font-weight: inherit; }
.prose-table tr:first-child td { font-weight: 700; background: var(--surface-2); font-family: var(--f-display); }
.prose-table tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }
.prose-table td { padding: 10px 12px; }
.prose-table td p { margin: 0; }
.prose-press { max-width: none; }
.prose-press p > img { float: left; width: 168px; height: auto; max-height: none; margin: 4px 18px 10px 0; border-radius: 12px; object-fit: cover; }
.prose-press p > br:first-child { display: none; }
.prose-press hr { clear: both; border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }
.prose-press::after { content: ""; display: block; clear: both; }

/* Şəbəkədə tək qalan şəkilli kart (məs. bir yenilik) — üfüqi: şəkil solda, mətn sağda */
@media (min-width: 760px) {
  .grid-3 > .card.has-media:only-child { grid-column: 1 / -1; flex-direction: row; align-items: stretch; padding: 0; gap: 0; overflow: hidden; }
  .grid-3 > .card.has-media:only-child .card-media { margin: 0; width: 42%; flex: none; aspect-ratio: auto; min-height: 240px; border-radius: 0; }
  .grid-3 > .card.has-media:only-child .card-body { padding: 28px 32px; justify-content: center; }
  .grid-3 > .card.has-media:only-child h3 { font-size: var(--t-xl); }
}
.member-strip li { min-width: 92px; }

/* Qalereya: əvvəlcə 12, qalanı «Hamısını göstər» (JS aktivləşdirir — JS-siz hamısı görünür) */
.gallery[data-collapsed] > a:nth-child(n+13) { display: none; }
.btn-expand { margin-top: 14px; }

@media (max-width: 1000px) {
  .steps-layout.has-photo { grid-template-columns: 1fr; }
  .steps-photo { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .page-hero-photo { aspect-ratio: 16 / 10; border-radius: 18px; }
  .page-hero-photo.is-portrait { aspect-ratio: 4 / 5; max-width: 260px; justify-self: start; }
}
@media (max-width: 560px) {
  .steps-layout.has-photo .steps { grid-template-columns: 1fr; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-stats li { min-width: 0; padding: 10px 12px; }
  .hero-stats b { font-size: var(--t-xl); }
  .grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card.is-compact .card-body { padding: 10px 12px 12px; }
  .card.is-compact h3 { font-size: var(--t-sm); }
  .region-count { display: none; }
  .card-media { aspect-ratio: 16 / 9; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .video-caption { font-size: var(--t-xs); }
  .prose-press p > img { float: none; display: block; width: 100%; margin: 0 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
