/* ==========================================================================
   Dr. Qafar Tağıyev — Oftalmologiya saytı
   Dizayn: Doccure (eye-care) referansı əsasında. Palitra: tünd #243B42,
   açıq #C5DEE6. Modern, yuvarlaq kartlar, yumşaq kölgələr, tünd footer.
   Font: Plus Jakarta Sans (Azərbaycan əlifbasını tam dəstəkləyir).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --c-dark:      #243B42;   /* əsas tünd (loqo/footer/başlıq) */
  --c-dark-2:    #2d4d56;
  --c-darker:    #16272c;
  --c-teal:      #2f7d8e;   /* vurğu — ikon, highlight */
  --c-teal-dark: #266775;   /* düymə/link (yaxşı kontrast) */
  --c-light:     #C5DEE6;   /* açıq mavi — yumşaq fonlar, çiplər */
  --c-light-2:   #e6f1f5;   /* daha açıq tint */
  --c-light-3:   #f3f8fa;   /* zemin */

  --c-ink:    #21353b;      /* mətn — ağ üzərində ~12:1 */
  --c-muted:  #5a6e75;      /* ikinci dərəcəli */
  --c-border: #dde9ed;
  --c-border-2:#cbdde2;
  --c-bg:     #ffffff;
  --c-surface:#ffffff;
  --c-success:#1f8f5f;
  --c-danger: #d24a44;
  --c-wa:     #1faf54;
  --c-blue:   #1f6fa8;      /* etibar — mavi vurğu */
  --c-blue-1: #5aa9dc;      /* tünd zəmində açıq mavi */
  --c-green:  #21b15c;      /* sağlamlıq — canlı yaşıl */
  --grad-accent: linear-gradient(90deg, var(--c-blue-1), var(--c-teal), var(--c-green)); /* elit ayraç */

  /* boşluq şkalası (spacing scale) — bütün UI bu addımlara riayət edir */
  --space-1: 0.5rem;  --space-2: 0.75rem; --space-3: 1rem;  --space-4: 1.5rem;
  --space-5: 2rem;    --space-6: 3rem;    --space-7: 4rem;   --space-8: 6rem;

  --radius:    16px;
  --radius-lg: 26px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 6px 20px rgba(36,59,66,0.06);
  --shadow:    0 16px 40px rgba(36,59,66,0.10);
  --shadow-lg: 0 30px 70px rgba(36,59,66,0.16);

  --font-base: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --fs-base: clamp(1rem, 0.96rem + 0.3vw, 1.08rem);
  --lh-base: 1.7;
  --container: 1200px;
  --header-h: 80px;
  --user-scale: 1;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--user-scale)); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-base); font-size: var(--fs-base); line-height: var(--lh-base);
  color: var(--c-ink); background: var(--c-bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, picture, iframe { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; color: var(--c-dark); margin: 0 0 0.55em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--c-teal-dark); text-decoration-color: rgba(47,125,142,0.35); text-underline-offset: 3px; }
a:hover { color: var(--c-dark); text-decoration-color: currentColor; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -120px; z-index: 1000; background: var(--c-dark); color: #fff; padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 0.5rem + 2vw, 2rem); }
.section { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.section--soft { background: var(--c-light-3); }
.section--tint { background: var(--c-light-2); }
.section--dark { background: var(--c-dark); color: #d6e6ea; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(1.6rem, 1rem + 2vw, 2.8rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-teal-dark); background: var(--c-light); padding: 7px 16px; border-radius: var(--radius-pill); margin-bottom: 1rem; }
.section--dark .eyebrow { background: rgba(197,222,230,0.16); color: #cfe6ec; }
.lead { font-size: 1.16rem; color: var(--c-muted); }
.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.4vw, 1.7rem); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-5 { grid-template-columns: repeat(5,1fr); }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--c-teal-dark); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.1;
  padding: 0.8rem 1.5rem; min-height: 52px; border: 2px solid transparent; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--c-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--dark { --btn-bg: var(--c-dark); }
.btn--dark:hover { background: var(--c-darker); }
.btn--light { --btn-bg: var(--c-light); --btn-fg: var(--c-dark); }
.btn--light:hover { background: #b3d3de; color: var(--c-darker); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-dark); border-color: var(--c-border-2); box-shadow: none; }
.btn--ghost:hover { background: var(--c-light-3); color: var(--c-darker); border-color: var(--c-teal); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,0.5); box-shadow: none; }
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn--wa { --btn-bg: var(--c-wa); }
.btn--wa:hover { background: #178c43; }
.btn--lg { font-size: 1.08rem; padding: 1rem 2rem; min-height: 58px; }
.btn--block { width: 100%; }

/* ---------- 5. Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--c-border); min-height: var(--header-h); display: flex; align-items: center; }
.nav { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 0.5rem + 2vw, 2rem); display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__logo { display: block; height: 54px; width: auto; }
.brand__logo--footer { height: 78px; width: auto; background: none; padding: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 3px 9px rgba(0,0,0,0.4)); }
.nav__toggle { margin-left: auto; display: none; width: 48px; height: 48px; border: 1px solid var(--c-border); background: #fff; border-radius: var(--radius-sm); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { content: ""; display: block; width: 22px; height: 2.5px; background: var(--c-dark); border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
.nav__toggle span::before { position: absolute; top: -7px; } .nav__toggle span::after { position: absolute; top: 7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.nav__menu { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0 auto 0 1rem; padding: 0; }
.nav__menu a { display: inline-block; padding: 0.5rem 0.7rem; border-radius: var(--radius-pill); color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav__menu a:hover { color: var(--c-teal-dark); }
.nav__menu a[aria-current="page"] { color: var(--c-teal-dark); background: var(--c-light); }
.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.nav__phone { display: inline-grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-teal-dark); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.nav__phone:hover { background: var(--c-teal-dark); color: #fff; border-color: var(--c-teal-dark); }
.nav__phone svg { width: 18px; height: 18px; }
.nav__menu-extras { display: none; }

/* ---------- 6. Hero (dark, Doccure-style) ---------- */
.hero { position: relative; background: linear-gradient(135deg, #243B42 0%, #2d4d56 60%, #1f6271 130%); color: #d9e8ec; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -8%; top: -20%; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(197,222,230,0.18), transparent 65%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem,1rem + 3vw,3.5rem); align-items: center; padding-block: clamp(2.5rem,1.5rem + 5vw,5.5rem); }
.hero h1 { color: #fff; margin-bottom: 0.7rem; }
.hero .lead { color: #cfe1e6; max-width: 42ch; margin-bottom: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; font-size: 0.95rem; color: #bcd3d9; }
.hero__trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/4.6; background: #1b3036; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.hero__badge { position: absolute; left: 18px; bottom: 18px; background: #fff; color: var(--c-dark); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; }
.hero__badge b { color: var(--c-teal-dark); font-size: 1.3rem; }

/* ---------- 7. Cards ---------- */
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: clamp(1.3rem,1rem + 1vw,1.9rem); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s, border-color .2s; height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--c-light); }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card--link .card__more { margin-top: auto; padding-top: 0.8rem; font-weight: 800; color: var(--c-teal-dark); }
.card__icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: var(--c-light); color: var(--c-teal-dark); margin-bottom: 1.1rem; }
.card__icon svg { width: 30px; height: 30px; }
.card:hover .card__icon { background: var(--c-teal-dark); color: #fff; }

/* service card with top accent bar */
.svc { position: relative; overflow: hidden; }
.svc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--c-teal), var(--c-light)); opacity: 0; transition: opacity .2s; }
.svc:hover::before { opacity: 1; }

/* ---------- 8. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.1rem; }
.stat__num { font-size: clamp(2rem,1.4rem + 1.8vw,3rem); font-weight: 800; color: var(--c-teal-dark); line-height: 1; }
.section--dark .stat__num { color: #cfe6ec; }
.stat__label { color: var(--c-muted); font-size: 0.95rem; margin-top: 0.35rem; }
.section--dark .stat__label { color: #aecbd2; }

/* ---------- 9. Checklist / tags ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.15rem; width: 22px; height: 22px; border-radius: 50%; background: var(--c-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23266775' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; background: var(--c-light); color: var(--c-teal-dark); padding: 5px 13px; border-radius: var(--radius-pill); margin: 0 5px 5px 0; }
.section--dark .tag { background: rgba(197,222,230,0.16); color: #d6e6ea; }

/* ---------- 10. Split / media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1.4rem + 3vw, 4rem); align-items: start; }
.split > aside { align-self: start; }
.split--reverse > :first-child { order: 2; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--c-border); background: var(--c-light-3); aspect-ratio: 4/3; display: grid; place-items: center; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--photo { padding: 0; aspect-ratio: 4/5; }
.media-frame--photo img { object-position: 50% 16%; }
.media-frame--wide { aspect-ratio: 3/2; }

/* mission/vision mini boxes */
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.mini { background: var(--c-light-3); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.mini h4 { color: var(--c-teal-dark); margin-bottom: 0.3rem; }
.mini p { margin: 0; font-size: 0.96rem; color: var(--c-muted); }

/* ---------- 11. Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,0.6rem + 1.4vw,1.6rem); counter-reset: step; }
.step { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.6rem 1.3rem; box-shadow: var(--shadow-sm); }
.step__n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-dark); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; }
.step:nth-child(2) .step__n { background: var(--c-teal-dark); }
.step:nth-child(3) .step__n { background: var(--c-teal); }
.step:nth-child(4) .step__n { background: var(--c-dark-2); }
.step h3 { font-size: 1.15rem; }

/* ---------- 12. Doctor / profile ---------- */
.doctor { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.avatar { width: 92px; height: 92px; flex: 0 0 auto; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(150deg, var(--c-teal), var(--c-dark)); color: #fff; font-weight: 800; font-size: 1.7rem; box-shadow: var(--shadow-sm); }
.doctor .role { color: var(--c-teal-dark); font-weight: 700; margin-bottom: 0.5rem; }

/* ---------- 13. Accordion (FAQ) ---------- */
.accordion { display: grid; gap: 0.85rem; }
.acc-item { border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.acc-item__q { margin: 0; }
.acc-item__btn { width: 100%; text-align: left; background: transparent; border: none; font-family: inherit; font-size: 1.08rem; font-weight: 700; color: var(--c-dark); padding: 1.15rem 3.2rem 1.15rem 1.3rem; cursor: pointer; position: relative; line-height: 1.4; }
.acc-item__btn:hover { color: var(--c-teal-dark); }
.acc-item__btn::after { content: ""; position: absolute; right: 1.2rem; top: 1.35rem; width: 26px; height: 26px; border-radius: 50%; background: var(--c-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23266775' stroke-width='3' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .2s; }
.acc-item__btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.acc-item__a { padding: 0 1.3rem 1.2rem; color: var(--c-muted); }
.acc-item__a p:last-child { margin-bottom: 0; }
.js-loaded .acc-item__a { display: none; }
.js-loaded .acc-item.is-open .acc-item__a { display: block; }

/* ---------- 14. Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.96rem; }
.field .req { color: var(--c-danger); }
.field input, .field select, .field textarea { font-family: inherit; font-size: 1rem; color: var(--c-ink); padding: 0.85rem 1rem; border: 1.5px solid var(--c-border-2); border-radius: var(--radius-sm); background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-teal); box-shadow: 0 0 0 3px rgba(47,125,142,0.18); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--c-muted); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; color: var(--c-muted); }
.consent input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--c-teal-dark); }
.form-note { font-size: 0.9rem; color: var(--c-muted); background: var(--c-light-3); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; }

/* ---------- 15. Info / map / callout ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-list .ico { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--c-light); color: var(--c-teal-dark); }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list a { font-weight: 700; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
.callout { border-left: 5px solid var(--c-teal); background: var(--c-light-3); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.callout--gold { border-left-color: var(--c-teal-dark); background: var(--c-light-2); }

/* ---------- 16. CTA band ---------- */
.cta-band { background: linear-gradient(125deg, #102f47 0%, #1b4f5b 50%, #1c6450 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem,1.5rem + 3.5vw,4rem); text-align: center; position: relative; overflow: hidden; box-shadow: 0 30px 70px rgba(11,32,47,0.3); }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(197,222,230,0.18), transparent 60%); }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #cfe1e6; max-width: 60ch; margin-inline: auto; position: relative; }
.cta-band .hero__cta { justify-content: center; margin: 1.6rem 0 0; position: relative; }
.cta-band .btn--wa { box-shadow: 0 14px 32px rgba(31,175,84,0.42); }
.cta-band .btn--wa svg { width: 22px; height: 22px; }
.cta-band__alt { position: relative; margin: 1.15rem 0 0; color: #cfe1e6; font-size: 0.97rem; }
.cta-band__alt a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.45); padding-bottom: 1px; }
.cta-band__alt a:hover { border-color: #fff; }

/* ---------- 17. Breadcrumb / prose / page-hero ---------- */
.breadcrumb { font-size: 0.92rem; color: var(--c-muted); padding-top: 1.2rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumb li::after { content: "›"; margin-left: 0.45rem; color: var(--c-border-2); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { text-decoration: none; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; } .prose h3 { margin-top: 1.6rem; }
.prose img { border-radius: var(--radius); margin-block: 1.2rem; }
.article-meta { color: var(--c-muted); font-size: 0.92rem; margin-bottom: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.page-hero { background: linear-gradient(180deg, var(--c-light-2), #fff); position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad-accent); }
.page-hero .container { padding-block: clamp(1.5rem,1rem + 2vw,3rem); }
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero .lead { max-width: 65ch; }
.figure { margin: 1.6rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--c-light-3); }
.figure img { width: 100%; height: auto; display: block; }
.figure--wide img { aspect-ratio: 3/2; object-fit: cover; object-position: 50% 38%; }
.figure--portrait { max-width: 440px; margin-inline: auto; }
.figure figcaption { font-size: 0.9rem; color: var(--c-muted); padding: 0.6rem 0.95rem; }

/* ---------- 18. Footer (dark) ---------- */
.site-footer { background: var(--c-dark); color: #bcd2d8; padding-top: clamp(3.6rem, 2.4rem + 3vw, 5.5rem); padding-bottom: clamp(5.5rem, 4rem + 4vw, 7rem); position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-accent); }
.site-footer a { color: #cfe1e6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: clamp(1.6rem,1rem + 2.5vw,3.4rem); padding-top: 0.5rem; }
.footer-grid > div { padding-top: 0.55rem; }
.footer-brand p { color: #a9c4cb; font-size: 0.95rem; margin-top: 1rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(197,222,230,0.12); display: grid; place-items: center; color: #cfe1e6; transition: background .2s, transform .2s, color .2s; }
.footer-social a:hover { background: var(--c-green); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 0.9rem; color: #c2d6dc; line-height: 1.5; font-size: 0.95rem; }
.footer-contact__ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: rgba(90,169,220,0.15); display: grid; place-items: center; color: var(--c-blue-1); margin-top: 1px; }
.footer-contact__ic svg { width: 16px; height: 16px; }
.footer-contact a { color: #eaf3f6; font-weight: 600; }
.footer-bottom { margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid rgba(197,222,230,0.18); display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between; font-size: 0.9rem; color: #c4d7dd; }
.footer-bottom span:first-child { color: #dcebf0; }

/* ---------- 19. Accessibility floating panel ---------- */
.a11y-fab { position: fixed; left: clamp(16px, 4vw, 28px); bottom: 20px; z-index: 200; display: flex; align-items: center; gap: 8px; }
.a11y-fab__toggle { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: var(--radius-pill); border: 2px solid #fff; background: var(--c-teal-dark); color: #fff; cursor: pointer; box-shadow: var(--shadow-lg); font-weight: 700; }
.a11y-fab__toggle:hover { background: var(--c-dark); transform: translateY(-1px); }
.a11y-fab__toggle svg { width: 24px; height: 24px; stroke: currentColor; }
.a11y-fab__txt { font-size: 0.9rem; }
.a11y-fab__panel { display: none; flex-direction: column; align-items: stretch; gap: 6px; min-width: 240px; padding: 12px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.a11y-fab.is-open .a11y-fab__panel { display: flex; }
.a11y-fab__title { margin: 0 0 2px; font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--c-muted); }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.96rem; }
.a11y-size { display: inline-flex; gap: 4px; }
.a11y-size button { min-width: 40px; height: 38px; border: 1px solid var(--c-border); background: #fff; border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; color: var(--c-ink); }
.a11y-size button:hover { background: var(--c-light-3); color: var(--c-teal-dark); }
.a11y-toggle, .a11y-clear { width: 100%; min-height: 44px; text-align: left; padding: 0 12px; border: 1px solid var(--c-border); background: #fff; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-size: 0.96rem; font-weight: 600; color: var(--c-ink); }
.a11y-toggle:hover, .a11y-clear:hover { background: var(--c-light-3); color: var(--c-teal-dark); }
.a11y-toggle[aria-pressed="true"] { background: var(--c-teal-dark); color: #fff; border-color: var(--c-teal-dark); }
.a11y-clear { text-align: center; margin-top: 4px; color: var(--c-muted); font-weight: 700; }

/* a11y feature effects */
.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
.a11y-links .btn { text-decoration: none !important; box-shadow: 0 0 0 2px var(--c-dark) inset; }
.a11y-spacing p, .a11y-spacing li, .a11y-spacing .lead, .a11y-spacing .acc-item__a { line-height: 2 !important; letter-spacing: 0.03em; word-spacing: 0.09em; }
.a11y-motion *, .a11y-motion *::before, .a11y-motion *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
.a11y-grayscale .site-header, .a11y-grayscale main, .a11y-grayscale .site-footer { filter: grayscale(1); }

/* ---------- 20. Utilities ---------- */
.text-center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-3{margin-top:1.25rem}.mt-4{margin-top:2rem}
.muted { color: var(--c-muted); }
.fs-sm { font-size: 0.9rem; }
.narrow { max-width: 900px; margin-inline: auto; }
.narrow-sm { max-width: 820px; }
.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; }
.divider { height: 1px; background: var(--c-border); border: 0; margin-block: 2rem; }
.divider--accent { height: 3px; background: var(--grad-accent); border: 0; border-radius: var(--radius-pill); margin-block: clamp(2rem, 1.5rem + 2vw, 3rem); }
.eyebrow--ondark { background: rgba(197,222,230,0.16); color: #cfe6ec; }
.text-ondark { color: #cfe1e6; }
.doctor-name { font-size: 1.4rem; }
.info-list--sm { font-size: 0.98rem; }
.avatar--accent { background: linear-gradient(150deg, var(--c-teal), var(--c-teal-dark)); }
.avatar--ink { background: linear-gradient(150deg, var(--c-darker), var(--c-dark)); }
.about-photo { width: 100%; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 16%; display: block; box-shadow: var(--shadow); margin-bottom: 1rem; }
@keyframes navMenuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1180px) {
  .nav__menu { display: none; position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.2rem; margin: 0; background: #fff; border-bottom: 1px solid var(--c-border); padding: 1rem clamp(1rem,0.5rem + 2vw,2rem) 1.4rem; box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav__menu.is-open { display: flex; animation: navMenuIn .22s ease both; }
  .nav__menu a { padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav__toggle { display: inline-flex; }
  .nav__actions { display: none; }
  .nav__menu-extras { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 0.9rem; margin-top: 0.4rem; border-top: 1px solid var(--c-border); }
  html:not(.js-loaded) .nav__menu { display: flex; position: static; box-shadow: none; border: 0; flex-direction: row; flex-wrap: wrap; max-height: none; }
  html:not(.js-loaded) .nav__toggle { display: none; }
  .grid-5 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-5 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --fs-base: 1.02rem; }
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; }
  .minis { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .brand__logo { height: 44px; }
  .a11y-fab__txt { display: none; }
  .a11y-fab__toggle { padding: 0; width: 52px; justify-content: center; }
}

/* ---------- 22. High contrast ---------- */
[data-contrast="high"] { --c-ink: #000; --c-muted: #1a1a1a; --c-dark: #11252b; --c-teal-dark: #0c4350; --c-border: #555; --c-border-2: #333; --c-light-3: #f0f0f0; --c-light-2: #e6f0f3; }
[data-contrast="high"] a { text-decoration: underline; }
[data-contrast="high"] .card, [data-contrast="high"] .acc-item, [data-contrast="high"] .field input, [data-contrast="high"] .field textarea, [data-contrast="high"] .field select { border-color: #000; }

/* ---------- 23. Reduced motion / print ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
@media print { .site-header, .a11y-fab, .nav__actions, .footer-social { display: none; } body { font-size: 12pt; color: #000; } a { color: #000; text-decoration: underline; } }

/* ---------- 24. Section tight + theme toggle ---------- */
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.4rem); }
.theme-toggle { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-dark); cursor: pointer; display: inline-grid; place-items: center; transition: background .2s, color .2s; }
.theme-toggle:hover { background: var(--c-light); color: var(--c-teal-dark); }
.theme-toggle svg { width: 22px; height: 22px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
.theme-toggle--block { width: 100%; height: 48px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; font-weight: 700; font-size: 0.98rem; }

/* ---------- 25. Gecə rejimi (dark theme) ---------- */
[data-theme="dark"] {
  --c-bg: #16262c;
  --c-surface: #1e333a;
  --c-ink: #e7eff1;
  --c-muted: #a6bcc3;
  --c-border: #2f464e;
  --c-border-2: #3b545c;
  --c-light: #2a4750;
  --c-light-2: #1f343b;
  --c-light-3: #1a2c33;
  --c-teal-dark: #3f9fb3;
  --c-teal: #5bc0d4;
}
[data-theme="dark"] body { color: var(--c-ink); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: #eef5f6; }
[data-theme="dark"] .site-header { background: rgba(18,30,35,0.9); border-bottom-color: var(--c-border); }
[data-theme="dark"] .nav__menu a, [data-theme="dark"] .nav__phone { color: var(--c-ink); }
[data-theme="dark"] .nav__menu a[aria-current="page"] { color: #cfeef6; }
[data-theme="dark"] .page-hero { background: linear-gradient(180deg, #1b2f36, #16262c); }
[data-theme="dark"] .card,
[data-theme="dark"] .acc-item,
[data-theme="dark"] .step,
[data-theme="dark"] .field input, [data-theme="dark"] .field select, [data-theme="dark"] .field textarea,
[data-theme="dark"] .a11y-fab__panel,
[data-theme="dark"] .a11y-size button,
[data-theme="dark"] .a11y-toggle, [data-theme="dark"] .a11y-clear,
[data-theme="dark"] .nav__toggle,
[data-theme="dark"] .nav__menu { background: var(--c-surface); }
[data-theme="dark"] .card { border-color: var(--c-border); }
[data-theme="dark"] .acc-item__btn { color: var(--c-ink); }
[data-theme="dark"] .acc-item__btn:hover { color: var(--c-teal); }
[data-theme="dark"] .acc-item__btn::after { background-color: #cfe6ee; }
[data-theme="dark"] a:hover { color: var(--c-teal); }
[data-theme="dark"] .nav__phone { color: var(--c-ink); }
[data-theme="dark"] .nav__phone svg { color: var(--c-teal); }
[data-theme="dark"] .nav__toggle span, [data-theme="dark"] .nav__toggle span::before, [data-theme="dark"] .nav__toggle span::after { background: var(--c-ink); }
[data-theme="dark"] .btn--ghost { --btn-fg: var(--c-ink); border-color: var(--c-border-2); }
[data-theme="dark"] .btn--ghost:hover { background: var(--c-light-3); color: #fff; }
[data-theme="dark"] .btn--dark { --btn-bg: var(--c-teal-dark); }
[data-theme="dark"] .btn--dark:hover { background: var(--c-teal); }
[data-theme="dark"] .btn--light { --btn-bg: #cfe6ee; --btn-fg: #173039; }
[data-theme="dark"] .btn--light:hover { background: #bcdbe6; color: #0f2329; }
[data-theme="dark"] .stat__num { color: var(--c-teal); }
[data-theme="dark"] .card__icon { background: var(--c-light); color: var(--c-teal); }
[data-theme="dark"] .card:hover .card__icon { background: var(--c-teal-dark); color: #fff; }
[data-theme="dark"] .theme-toggle { color: #ffd479; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .map-wrap { filter: brightness(0.82) contrast(1.05); }
[data-theme="dark"] .hero, [data-theme="dark"] .cta-band, [data-theme="dark"] .section--dark { box-shadow: inset 0 0 0 1px rgba(197,222,230,0.06); }