/* Dr Salhi: one blue identity, with semantic colors for both appearances. */
:root {
  color-scheme: light;
  --ink: #163b56;
  --ink-2: #426178;
  --muted: #48667d;
  --paper: #fff;
  --surface: #fff;
  --off: #f2f7fb;
  --sky: #c8e7fa;
  --sky-2: #e5f2fb;
  --accent: var(--sky);
  --line: rgba(28, 67, 95, .14);
  --brand: #176fa8;
  --brand-hover: #125984;
  --on-brand: #fff;
  --hero-bg: #e7f4fc;
  --hero-rgb: 231, 244, 252;
  --header-bg: rgba(248, 252, 255, .93);
  --footer-bg: #edf5fb;
  --soft-button: rgba(255, 255, 255, .72);
  --focus: #1675b9;
  --bot-heading: #176fa8;
  --bot-heading-ink: #fff;
  --success-bg: #e7f5ec;
  --success-ink: #14532d;
  --error-bg: #fdecea;
  --err: #b3261e;
  --elevation: 0 12px 40px -16px rgba(21, 63, 96, .22);
  --radius: 22px;
  --radius-sm: 12px;
  --max: 1440px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5eff8;
  --ink-2: #b5c8db;
  --muted: #94abc0;
  --paper: #0b1623;
  --surface: #132638;
  --off: #0f1f30;
  --sky: #254d6b;
  --sky-2: #19364e;
  --line: rgba(162, 197, 225, .17);
  --brand: #8bcbf5;
  --brand-hover: #b0dfff;
  --on-brand: #082339;
  --hero-bg: #0c1c2d;
  --hero-rgb: 12, 28, 45;
  --header-bg: rgba(11, 22, 35, .93);
  --footer-bg: #0e1e2e;
  --soft-button: rgba(19, 38, 56, .84);
  --focus: #8bcbf5;
  --bot-heading: #1b3c56;
  --bot-heading-ink: #e5f2ff;
  --success-bg: #14392f;
  --success-ink: #a6e1bd;
  --error-bg: #41252d;
  --err: #ffb9b0;
  --ok: #8cdbb3;
  --elevation: 0 18px 50px -18px rgba(0, 9, 20, .65);
}
[hidden] { display: none !important; }
body { background: var(--paper); color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-size: clamp(1.9rem, 1.1rem + 2.3vw, 3.5rem); }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip { background: var(--surface); color: var(--ink); }
.btn { border-radius: 14px; background: var(--surface); transition-duration: .2s; }
.btn:active, .chip:active, .theme-toggle:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.btn-accent, .btn-dark, .fab-book, .chip-primary, .step-n, .msg-me, .bot-send {
  background: var(--brand); color: var(--on-brand);
}
.btn-accent:hover, .btn-dark:hover, .chip-primary:hover, .bot-send:not(:disabled):hover { background: var(--brand-hover); }
.btn-outline { background: transparent; border-color: var(--line); }
.btn-outline:hover { background: var(--sky-2); }
.btn-ghost-light { color: var(--ink); background: var(--soft-button); border-color: var(--line); }
.btn-ghost-light:hover { background: var(--surface); }
.btn-lg { min-height: 56px; }
.link-arrow, .hero-queue { text-underline-offset: 6px; }

/* Header: a compact appearance picker, translated with the rest of the site. */
.site-header, .site-header.over-hero, .site-header.over-hero.is-scrolled {
  color: var(--ink); background: var(--header-bg); border-bottom: 1px solid var(--line);
  --logo-ink: var(--paper);
}
.site-header .logo-mark, .site-header.over-hero .logo-mark,
.site-header.over-hero.is-scrolled .logo-mark { color: var(--brand); }
.logo-text { gap: 4px; }
.header-inner { min-height: 80px; gap: 22px; }
.header-right { gap: 12px; }
.nav { gap: 24px; margin-inline-start: 16px; }
.nav a { white-space: nowrap; }
.nav a[aria-current], .nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.lang-switch { border-color: var(--line); border-radius: 12px; opacity: 1; background: var(--soft-button); }
.lang-btn { border-radius: 8px; min-width: 34px; min-height: 36px; padding: 0 8px; }
.lang-btn.is-on, .over-hero:not(.is-scrolled) .lang-btn.is-on { background: var(--brand); color: var(--on-brand); }
.lang-btn:not(.is-on):hover, .menu-btn:hover { background: var(--sky-2); }
.theme-control { position: relative; }
.theme-toggle { min-width: 44px; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft-button); cursor: pointer; font-size: 14px; font-weight: 500; transition: background .2s; }
.theme-toggle:hover, .theme-toggle[aria-expanded="true"] { background: var(--sky-2); border-color: var(--brand); }
.theme-panel { position: absolute; inset-inline-start: 0; top: calc(100% + 12px); width: 224px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--elevation); }
.theme-heading { padding: 4px 10px 8px; font-size: 12px; color: var(--muted); }
.theme-option { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 9px; padding: 0 10px; min-height: 44px; cursor: pointer; background: transparent; text-align: start; font-size: 15px; }
.theme-option > span { flex: 1; }
.theme-option > svg:last-child { visibility: hidden; }
.theme-option[aria-pressed="true"] { background: var(--sky-2); color: var(--brand); font-weight: 600; }
.theme-option[aria-pressed="true"] > svg:last-child { visibility: visible; }
.theme-option:hover { background: var(--off); }
.theme-option[aria-pressed="true"]:hover { background: var(--sky-2); }
.drawer { background: var(--hero-bg); color: var(--ink); overflow-y: auto; }
.drawer-close { color: var(--ink); }

/* Hero: keep the cardiology image and put the next action beside its context. */
.hero { background: var(--hero-bg); color: var(--ink); align-items: center; min-height: min(820px, 100svh); }
.hero-media { overflow: hidden; }
.hero-media img { object-position: 90% 50%; filter: none; }
.hero-media::after { background: linear-gradient(0deg, rgba(var(--hero-rgb), .65), transparent 72%), linear-gradient(90deg, var(--hero-bg) 3%, rgba(var(--hero-rgb), .93) 32%, transparent 85%); }
html[dir="rtl"] .hero-media::after { background: linear-gradient(0deg, rgba(var(--hero-rgb), .65), transparent 72%), linear-gradient(-90deg, var(--hero-bg) 3%, rgba(var(--hero-rgb), .93) 32%, transparent 85%); }
html[data-theme="dark"] .hero-media img { filter: brightness(.65) saturate(.8); }
.hero-copy { padding: 148px 0 76px; text-shadow: none; }
.hero-copy .kicker { color: var(--ink-2); display: flex; align-items: center; gap: 10px; opacity: 1; }
.hero-copy .kicker::before { content: ""; width: 7px; height: 7px; background: var(--brand); border-radius: 50%; flex: none; box-shadow: 0 0 0 5px var(--sky-2); }
.hero-copy h1, .hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); max-width: 20ch; }
html[lang="ar"] .hero h1 { max-width: 19ch; }
.hero-line { background: none; color: var(--brand); padding: 0; font-size: 1em; backdrop-filter: none; }
.hero-bottom { grid-template-columns: 1fr; gap: 22px; max-width: 520px; margin-top: 24px; }
.hero-copy .lede { color: var(--ink-2); max-width: 43ch; font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.75; }
.hero-queue { display: inline-flex; justify-self: start; align-items: center; gap: 10px; min-height: 32px; font-size: 15px; color: var(--ink-2); }
.hero-queue:hover { color: var(--brand); text-decoration: underline; }
html[dir="rtl"] .hero-queue svg { transform: scaleX(-1); }

/* Content surfaces, imagery and live queue. */
.info-strip { background: var(--sky-2); color: var(--ink); }
.info-grid .info-item + .info-item { border-color: var(--line); }
.info-book { background: var(--sky); color: var(--ink); }
.info-book:hover { background: var(--sky-2); }
.info-label { opacity: 1; color: var(--muted); }
.about-grid { grid-template-columns: 1.1fr 1fr .85fr; }
.about-grid > .shot img { object-position: center 26%; }
.about-text { line-height: 1.8; }
.about-text .shot-sm img { height: 260px; object-position: center 44%; }
.h2-wide { white-space: pre-line; max-width: 24ch; }
.stat-card { background: var(--sky-2); }
.step { border-top: 2px solid var(--line); }
.step-n { border-radius: 12px; }
.banner { background: var(--sky-2); color: var(--ink); }
.banner-img img { height: 360px; object-position: 90% 50%; }
.service-head img { object-position: 70% 45%; }
.service-head:focus-visible { outline-offset: 6px; }
.card { background: var(--surface); }
.card img.cover { height: auto; aspect-ratio: 4 / 3; }
.detail-img img { height: auto; aspect-ratio: 4 / 3.4; }
.card-body { min-height: 240px; display: flex; flex-direction: column; align-items: start; }
.card-body .link-arrow { margin-top: auto; }
.card .cover { object-position: center 35%; }
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); }
.logo-footer { --logo-ink: var(--paper); color: var(--brand); }
.logo-footer .logo-text { color: var(--ink); }
.logo-footer .logo-mark { color: var(--brand); }
.live-board { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--elevation); }
.live-contact { background: var(--paper); }
.live-num { background: var(--sky-2); color: var(--brand); box-shadow: 0 0 0 8px var(--off); }
.live-dot { background: var(--muted); }
.live-dot::after { animation: none; }
.live-mine input { background: var(--surface); border-color: var(--line); }
.live-mine input:focus { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: none; }
.receipt-mine { display: flex; flex-direction: column; align-items: stretch; gap: 8px; font-size: 14px; }
.saved-receipt { border-top: 1px solid var(--line); padding-top: 8px; }
.saved-receipt small { display: block; color: var(--muted); }
.clinic-hours { display: grid; gap: 8px; line-height: 1.55; }
.clinic-hours strong { font-weight: 600; }
.clinic-hours bdi { display: inline-block; font-size: .95em; font-variant-numeric: tabular-nums; }
.hours-timezone { font-size: 12px; color: var(--muted); }
.drawer .clinic-hours { font-size: 15px; }
html[data-theme="dark"] .banner-img img,
html[data-theme="dark"] .shot-sm img,
html[data-theme="dark"] .service-head img,
html[data-theme="dark"] .card .cover,
html[data-theme="dark"] .detail-img img { filter: brightness(.83) saturate(.85); }

/* The booking conversation uses the same palette in every state. */
.bot { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--elevation); }
.bot-head { background: var(--bot-heading); color: var(--bot-heading-ink); padding: 16px; }
.bot-icon-btn { color: var(--bot-heading-ink); }
.bot-avatar { background: rgba(255,255,255,.14); color: var(--bot-heading-ink); border-radius: 12px; }
.bot .dot { background: #bce3f8; }
.bot-form, .bot-privacy, .msg-bot { background: var(--surface); }
.bot-privacy { font-size: 12px; }
.bot-input { border-radius: 12px; }
.bot-input::placeholder { color: var(--muted); opacity: 1; }
.bot-send { border-radius: 12px; }
.chip { background: var(--surface); color: var(--ink); border-color: var(--line); border-radius: 10px; min-height: 44px; }
.chip:hover { background: var(--sky-2); border-color: var(--brand); }
.chip-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip-ghost { background: transparent; }
.msg.success { background: var(--success-bg); color: var(--success-ink); }
.msg.error { background: var(--error-bg); color: var(--err); }
.bot-log .msg.summary { margin-bottom: 6px; }
.msg-me { background: var(--brand); color: var(--on-brand); }

@media (max-width: 1199px) {
  .theme-label { display: none; }
  .theme-toggle { padding: 0; }
  .header-book { display: none; }
}
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid .stat-card { grid-column: 1 / -1; }
}
@media (max-width: 720px), (max-width: 1024px) and (orientation: portrait) {
  .hero { min-height: auto; }
  .hero-media { height: 52%; }
  .hero-media::after, html[dir="rtl"] .hero-media::after { background: linear-gradient(180deg, rgba(var(--hero-rgb), .15), transparent 30%, rgba(var(--hero-rgb), .3) 50%, var(--hero-bg)); }
  .hero-media img { object-position: 82% 45%; }
  .hero-copy { padding-top: clamp(300px, 43svh, 460px); padding-bottom: 36px; }
  .hero-copy h1, .hero h1 { font-size: clamp(2.25rem, 6.2vw, 3.75rem); }
  html[lang="ar"] .hero h1, .hero h1 { max-width: none; }
  .hero-bottom { max-width: 580px; gap: 18px; margin-top: 20px; }
  .hero-copy .lede { font-size: 18px; }
  .hero .btn-row { gap: 10px; }
  .hero .btn-row .btn { flex: 1 1 auto; padding-inline: 16px; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-inner { min-height: 72px; gap: 8px; }
  .header-right { gap: 6px; }
  .logo { gap: 7px; }
  .logo-text strong { font-size: 13px; max-width: 100px; line-height: 1.4; }
  .logo-mark { width: 30px; height: 30px; }
  .lang-switch { padding: 2px; }
  .lang-btn { min-width: 28px; min-height: 38px; padding: 0 4px; font-size: 12px; }
  .theme-toggle, .menu-btn { width: 40px; min-width: 40px; height: 44px; padding: 0; }
  .theme-panel { width: 212px; inset-inline: auto; left: 50%; transform: translateX(-50%); }
  .bot { border: 0; }
  .bot-form { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .info-grid .info-item + .info-item { border-color: var(--line); }
}
@media (max-width: 359px) {
  .logo-text strong { font-size: 12px; max-width: 72px; }
  .logo-mark { width: 27px; height: 27px; }
  .header-inner, .header-right { gap: 4px; }
  .hero-copy h1, .hero h1 { font-size: 2rem; }
  .hero .btn-row .btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .live-board, .step, .bot, .msg { transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .25s, opacity .25s; }
}

/* Each full guide has one home; other pages link to it. */
.doctor-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.doctor-intro .shot { margin: 0; }
.doctor-intro .shot img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 26%; border-radius: var(--radius); }
.doctor-copy h2 { margin-bottom: 24px; }
.doctor-copy .link-arrow { margin-top: 28px; color: var(--brand); min-height: 44px; }
.visit-shortcut { margin-top: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.page-contact #acces, .home-contact { scroll-margin-top: 96px; }
.visit-shortcut h3 { font-size: 18px; margin-bottom: 12px; }
.visit-shortcut .link-arrow { color: var(--brand); font-size: 15px; min-height: 44px; }
.visit-links { padding: 0 0 56px; }
.visit-links > .wrap { display: flex; gap: 16px 40px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.visit-links a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--brand); }
.visit-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
html[dir="rtl"] .visit-links a svg:last-child { transform: scaleX(-1); }
.has-inline-booking .header-book { visibility: hidden; pointer-events: none; }
.has-inline-booking .fab-book, .no-scroll .fab-book { visibility: hidden; pointer-events: none; }
@media (min-width: 1200px) { .fab-book { display: none; } }
@media (max-width: 720px) { .doctor-intro { grid-template-columns: 1fr; } }

/* Cardiology: readable clinical information, with a clear route to the next step. */
.section-intro { max-width: 58ch; color: var(--ink-2); line-height: 1.85; }
.cardio-layout { display: grid; grid-template-columns: .85fr 1.35fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.cardio-intro h2 { margin-bottom: 24px; max-width: 17ch; }
.cardio-intro .link-arrow { margin-top: 28px; color: var(--brand); min-height: 44px; }
.cardio-consult { display: block; width: fit-content; color: var(--ink-2); margin-top: 8px; padding-block: 8px; text-decoration: underline; text-underline-offset: 5px; }
.cardio-consult:hover { color: var(--brand); }
.cardio-topics { border-top: 1px solid var(--line); }
.cardio-topic { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.topic-number { color: var(--brand); font-size: 14px; padding-top: 4px; font-variant-numeric: tabular-nums; font-weight: 600; }
.cardio-topic h3 { font-size: clamp(1.2rem, 1.5vw, 1.5rem); margin-bottom: 10px; }
.cardio-topic p { color: var(--ink-2); line-height: 1.85; max-width: 60ch; }
.exams-section { background: var(--paper); }
.page-home .exams-section { padding-bottom: 0; }
.exams-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 42px; }
.exams-heading h2 { max-width: 21ch; margin: 0; }
.exam-list { border-top: 1px solid var(--line); }
.exam-row { display: grid; grid-template-columns: 82px minmax(180px, .85fr) 1.5fr; gap: 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.exam-code { color: var(--brand); background: var(--sky-2); font-size: 11px; font-weight: 600; letter-spacing: .035em; min-height: 32px; padding: 7px 10px; border-radius: 6px; text-align: center; }
.exam-row h3 { font-size: 20px; line-height: 1.55; }
.exam-row p { color: var(--ink-2); line-height: 1.8; max-width: 64ch; }
.medical-sources { display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: baseline; margin-top: 24px; color: var(--muted); font-size: 13px; }
.medical-sources > div { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.medical-sources a { text-decoration: underline; text-underline-offset: 4px; padding-block: 6px; }
.medical-sources a:hover { color: var(--brand); }
.page-services .page-hero h1 { white-space: pre-line; max-width: 26ch; }
.page-services .page-hero { padding-bottom: 64px; }
.page-services .exams-section { background: var(--off); }
.page-services .exams-section + .off { background: var(--paper); }
.care-paths { display: grid; margin-top: 40px; border-top: 1px solid var(--line); }
.care-paths .card { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 28px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.care-paths .card:hover { transform: none; }
.care-paths .card:hover h3 { color: var(--brand); }
.care-paths .card img.cover { width: 100%; height: 176px; border-radius: var(--radius-sm); object-fit: cover; }
.care-paths .card-body { min-height: 0; padding: 0; gap: 10px; }
.care-paths .card-body .num { font-size: 13px; color: var(--brand); }
.care-paths .card-body h3, .care-paths .card-body p { margin: 0; }
.care-paths .card-body p { max-width: 70ch; }
.care-paths .card-body .link-arrow { margin-top: 2px; }

/* FAQs keep native keyboard access, with a clearer reading measure. */
.faq-grid h2 { white-space: pre-line; max-width: 22ch; }
.faq-grid > div:first-child > p:not(.tag) { color: var(--ink-2); line-height: 1.85; max-width: 42ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { padding: 22px 0; }
.faq-list details p { margin-top: 18px; padding-inline-end: 36px; line-height: 1.9; max-width: 66ch; }
.faq-list summary:hover, .faq-list details[open] summary { color: var(--brand); }
.faq-list summary:focus-visible { outline-offset: 6px; border-radius: 4px; }
.faq-list .plus { flex-shrink: 0; }
.faq-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; color: var(--brand); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
html[dir="rtl"] .faq-link svg { transform: scaleX(-1); }

/* Directions: clinic details beside the map, with direct arrival guidance. */
.map-intro { margin-top: 16px; }
.home-contact .map-grid { margin-top: 32px; }
.home-contact .map-hours { border-top: 1px solid var(--line); padding-top: 22px; }
.home-contact .map-phone .js-phone { min-height: 44px; }
.map-grid { grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: stretch; }
.map-card { padding: 32px; gap: 24px; grid-template-columns: 1fr; background: var(--off); }
.map-address { display: flex; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.map-address > svg { color: var(--brand); flex: none; margin-top: 3px; }
.map-address h2, .map-address h3 { font-size: 22px; margin-bottom: 6px; }
.map-address p { color: var(--ink-2); line-height: 1.7; }
.map-hours .info-label, .map-phone .info-label { margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.map-hours .clinic-hours { display: grid; gap: 10px; font-size: 16px; }
.map-hours .clinic-hours strong { font-weight: 500; }
.map-hours bdi, .map-phone .js-phone { font-variant-numeric: tabular-nums; }
.map-phone .js-phone { color: var(--brand); font-size: 23px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.map-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.map-card .btn-row { padding: 0; gap: 10px; align-items: flex-start; flex-direction: column; }
.map-card .btn { min-height: 48px; }
.map-book-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding: 4px 0; border: 0; background: transparent; cursor: pointer; font-size: 14px; }
.map-book-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 5px; }
.map-view { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.map-frame { flex: 1; min-height: 400px; position: relative; border: 1px solid var(--line); }
.map-frame iframe { position: absolute; inset: 0; min-height: 0; height: 100%; }
.map-view figcaption { display: grid; gap: 10px; padding-inline: 4px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.map-view figcaption a, .footer-directions { display: inline-flex; gap: 8px; align-items: center; width: fit-content; color: var(--brand); min-height: 36px; text-decoration: underline; text-underline-offset: 4px; }
html[dir="rtl"] :is(.map-book-link, .map-view figcaption a, .footer-directions) > svg { transform: scaleX(-1); }

/* A concise footer; the emergency message is separate from routine booking. */
.site-footer { padding-top: 44px; }
.emergency-note { display: flex; gap: 16px; padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.emergency-note > svg { flex: none; margin-top: 3px; color: var(--brand); }
.emergency-note strong { display: block; margin-bottom: 6px; font-weight: 600; }
.emergency-note p { color: var(--ink-2); font-size: 14px; max-width: 100ch; line-height: 1.8; }
.footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
.footer-note { max-width: 40ch; line-height: 1.9; }
.footer-links { display: flex; gap: 24px; align-items: center; margin-top: 36px; }
.footer-links > p { font-size: 13px; }
.footer-nav { display: flex; gap: 10px 28px; flex-wrap: wrap; font-size: 14px; justify-content: end; align-content: start; }
.footer-bottom { margin-top: 20px; }
@media (max-width: 1100px) {
  .nav { gap: 16px; margin-inline-start: 0; font-size: 14px; }
  .cardio-layout { grid-template-columns: .9fr 1.1fr; gap: 36px; }
  .map-card { padding: 24px; }
}
@media (max-width: 999px) {
  .cardio-layout, .exams-heading { grid-template-columns: 1fr; gap: 30px; }
  .cardio-intro h2, .exams-heading h2 { max-width: 25ch; }
  .cardio-intro .section-intro { max-width: 65ch; }
  .cardio-topics { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .cardio-topic { grid-template-columns: 28px 1fr; gap: 12px; }
  .exam-row { grid-template-columns: 70px minmax(160px, .8fr) 1.2fr; gap: 22px; }
  .map-grid { grid-template-columns: 1fr; }
  .map-card { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .map-address { grid-column: 1 / -1; }
  .map-hours { grid-row: span 2; }
  .map-card .btn-row { grid-column: auto; }
  .map-frame { min-height: 400px; }
  .footer-grid { gap: 28px; grid-template-columns: 1.2fr 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}
@media (max-width: 600px) {
  .cardio-topics { grid-template-columns: 1fr; }
  .cardio-topic { padding: 22px 0; }
  .exams-heading { margin-bottom: 28px; }
  .exam-row { grid-template-columns: 64px 1fr; gap: 12px 18px; padding: 24px 0; }
  .exam-row h3 { font-size: 18px; }
  .exam-row p { grid-column: 2; font-size: 15px; }
  .exam-code { font-size: 10px; padding-inline: 5px; }
  .care-paths .card { grid-template-columns: 80px 1fr; gap: 18px; padding: 24px 0; }
  .care-paths .card img.cover { height: 100px; }
  .care-paths .card-body h3 { font-size: 20px; }
  .care-paths .card-body p { font-size: 15px; }
  .faq-list details p { padding-inline-end: 0; }
  .map-card { grid-template-columns: 1fr; padding: 24px; }
  .map-address, .map-hours { grid-column: auto; grid-row: auto; }
  .map-frame { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-nav { gap: 4px 22px; justify-content: start; }
  .emergency-note { gap: 12px; }
}
