/* Shoroq Medical Center: one stylesheet, mobile first, logical properties for RTL. */
:root {
  --navy: #1f3566;
  --navy-700: #182a52;
  --green: #12804a;
  --green-600: #0f6f40;
  --teal-50: #eaf6f0;
  --bg: #f5f9f7;
  --bg-alt: #ecf4f0;
  --surface: #ffffff;
  --surface-2: #f8fbfa;
  --text: #14233f;
  --muted: #475569;
  --border: #d7e3de;
  --primary: var(--green);
  --primary-strong: var(--green-600);
  --link: var(--green-600);
  --btn-book: var(--navy);
  --btn-book-hover: var(--navy-700);
  --on-book: #ffffff;
  --on-primary: #ffffff;
  --accent: var(--navy);
  --accent-soft: #e6ecf7;
  --primary-soft: var(--teal-50);
  --danger: #b42318;
  --danger-soft: #fdecea;
  --wa: #128a4d;
  --shadow-sm: 0 1px 2px rgba(20, 35, 63, .06);
  --shadow: 0 6px 24px -10px rgba(20, 35, 63, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --dir: 1;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 72px;
  color-scheme: light;
}
[dir='rtl'] { --dir: -1; --font: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, Tahoma, Arial, sans-serif; }
[data-theme='dark'] {
  --bg: #0b1424;
  --bg-alt: #0f1b30;
  --surface: #12203a;
  --surface-2: #162745;
  --text: #e7edf6;
  --muted: #a9b6c8;
  --border: #253757;
  --primary: #3fbf7f;
  --primary-strong: #5ed096;
  --link: #5ed096;
  --btn-book: #a9c1ee;
  --btn-book-hover: #c3d4f4;
  --on-book: #0b1424;
  --on-primary: #06281a;
  --accent: #a9c1ee;
  --accent-soft: #1b2d50;
  --primary-soft: #11301f;
  --danger: #ff8a80;
  --danger-soft: #3a1714;
  --wa: #3fbf7f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (min-width: 900px) { html { font-size: 115%; } }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--bg);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
[dir='rtl'] body { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; color: var(--text); font-weight: 700; }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 { line-height: 1.45; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
li { margin-block: .3em; }
strong { font-weight: 700; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-lg { width: 28px; height: 28px; }
[dir='rtl'] .icon-flip { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.placeholder { background: #fff4cc; color: #6b4a00; border-radius: 4px; padding: 0 .25em; font-weight: 600; font-size: .92em; }
[data-theme='dark'] .placeholder { background: #4a3a05; color: #ffe08a; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .7em 1.25em;
  border-radius: 12px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn { white-space: nowrap; }
.btn-primary { background: var(--btn-book); color: var(--on-book); }
.btn-primary:hover { background: var(--btn-book-hover); color: var(--on-book); }
.btn-wa { background: var(--wa); color: #fff; }
[data-theme='dark'] .btn-wa { color: #06281a; }
.btn-outline { background: transparent; color: var(--accent); border-color: currentColor; }
[data-theme='dark'] .btn-outline { color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-sm { min-height: 44px; padding: .5em .95em; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn .icon { width: 1.2em; height: 1.2em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand-logo { width: 48px; height: 48px; border-radius: 10px; background: #fff; border: 1px solid var(--border); object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: .98rem; }
.brand-name small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.nav { margin-inline-start: auto; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .45em .6em; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .88rem; white-space: nowrap; }
.nav-list a:hover { background: var(--bg-alt); }
.nav-list a[aria-current='page'] { color: var(--primary-strong); background: var(--primary-soft); }
[data-theme='dark'] .nav-list a[aria-current='page'] { color: var(--primary); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; text-decoration: none;
}
.tool-btn:hover { background: var(--bg-alt); text-decoration: none; }
.tool-btn .icon { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
[data-theme='dark'] .theme-toggle .i-sun { display: block; }
[data-theme='dark'] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }
.header-book { display: inline-flex; }
@media (max-width: 1140px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset-block: 0; inset-inline-end: 0; width: min(86vw, 360px); background: var(--surface); z-index: 60;
    padding: 84px 20px 24px; transform: translateX(calc(var(--dir) * 105%)); visibility: hidden; transition: transform .28s ease, visibility .28s;
    box-shadow: var(--shadow); overflow-y: auto; margin: 0;
  }
  .nav.open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a { padding: .8em .9em; font-size: 1.05rem; }
  .nav-close { position: absolute; top: 16px; inset-inline-end: 16px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(8, 15, 30, .45); z-index: 55; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .header-tools { margin-inline-start: auto; }
}
.nav-extra { margin-top: 18px; display: grid; gap: 10px; }
.lang-short { display: none; }
@media (min-width: 1141px) {
  .nav-close, .nav-backdrop, .nav-extra, .nav-secondary { display: none; }
  .lang-text { display: none; }
  .lang-short { display: inline; }
}
@media (min-width: 1141px) and (max-width: 1399px) { .brand-name small { display: none; } }
@media (max-width: 640px) {
  .brand-name small { display: none; }
  .header-book { display: none; }
  .brand-logo { width: 42px; height: 42px; }
  .header-inner { gap: 10px; }
  .lang-text { display: none; }
  .lang-short { display: inline; }
}
@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .header-tools { gap: 6px; }
  .tool-btn { min-width: 42px; height: 42px; padding: 0 8px; }
  .tool-btn[data-lang-switch] .icon { display: none; }
  .brand-name { font-size: .9rem; }
  .brand { gap: 8px; }
}
html, body { overflow-x: clip; }

/* Breadcrumbs */
.breadcrumbs { padding-block: 14px 0; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.breadcrumbs li + li::before { content: '/'; opacity: .6; margin-inline: 4px; }
.breadcrumbs a { color: var(--muted); }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary-strong); font-size: .92rem; margin-bottom: 12px; }
[data-theme='dark'] .eyebrow { color: var(--primary); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 64ch; }
.page-hero { padding-block: 28px 40px; background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-top: 12px; max-width: 26ch; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin-top: 10px; }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }

/* Home hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 80px); background: var(--surface); border-bottom: 1px solid var(--border); }
.hero::before {
  content: ''; position: absolute; inset-block-start: -20%; inset-inline-end: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(closest-side, var(--primary-soft), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.25fr .9fr; gap: 56px; } }
.hero h1 { max-width: 20ch; }
.hero .lead { margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: .35em .75em; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-weight: 600; font-size: .85rem; }
[data-theme='dark'] .badge { color: var(--primary); }
.badge-navy { background: var(--accent-soft); color: var(--accent); }
.badge-warn { background: #fff4cc; color: #6b4a00; }
[data-theme='dark'] .badge-warn { background: #4a3a05; color: #ffe08a; }
.info-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.info-card h2 { font-size: 1.2rem; margin-bottom: 14px; }
.info-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; margin: 0; align-items: flex-start; }
.info-list .icon { color: var(--primary); margin-top: 4px; }
.info-list b { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.info-note { font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 12px; margin: 0; }
.phone-link { font-weight: 700; color: var(--text); text-decoration: none; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.phone-link:hover { color: var(--primary-strong); text-decoration: underline; }
bdi, .ltr { direction: ltr; unicode-bidi: isolate; }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat { flex: 1 1 100px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.stat-num { display: block; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); font-weight: 700; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { display: block; color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* Cards */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card h3 { margin: 0; font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.card-link a.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-link a.stretched { color: var(--text); text-decoration: none; }
.card-link:hover a.stretched { color: var(--primary-strong); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-strong); }
[data-theme='dark'] .card-icon { color: var(--primary); }
.card-icon .icon { width: 28px; height: 28px; }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary-strong); font-size: .95rem; }
[data-theme='dark'] .card-more { color: var(--primary); }
.card-link:hover .card-more .icon { transform: translateX(calc(var(--dir) * 3px)); }
.card-more .icon { transition: transform .2s ease; width: 1.1em; height: 1.1em; }
.card .badge { align-self: flex-start; }

.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item h3 { margin-bottom: 4px; }
.why-item p { color: var(--muted); margin: 0; }

/* Emergency band */
.emergency-band { background: var(--navy); color: #fff; border-radius: 20px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; align-items: center; }
[data-theme='dark'] .emergency-band { background: #142a52; }
@media (min-width: 860px) { .emergency-band { grid-template-columns: auto 1fr auto; gap: 28px; } }
.emergency-band h2 { color: #fff; margin-bottom: 6px; }
.emergency-band p { color: #d6e0f2; margin: 0; }
.emergency-band .icon-wrap { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.emergency-band .icon-wrap .icon { width: 34px; height: 34px; color: #7fe0ad; }
.emergency-band .btn-primary { background: #3fbf7f; color: #06281a; }
.mobile-bar .btn { white-space: nowrap; }

/* Doctors */
.doctor-card { gap: 14px; }
.doctor-top { display: flex; gap: 14px; align-items: center; }
.avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 1.3rem; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card h3 { font-size: 1.08rem; margin: 0; }
.doctor-title { color: var(--muted); font-size: .93rem; margin: 2px 0 0; }
.cred-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .93rem; }
.cred-list li { display: flex; gap: 8px; margin: 0; }
.cred-list .icon { color: var(--primary); width: 1.1em; height: 1.1em; margin-top: .3em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chip { display: inline-block; padding: .25em .7em; border-radius: 999px; border: 1px solid var(--border); font-size: .86rem; color: var(--text); text-decoration: none; background: var(--surface-2); }
a.chip:hover { border-color: var(--primary); color: var(--primary-strong); }
.doctor-note { font-size: .82rem; color: var(--muted); }
.filter-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 40px; }
.doctor-group { scroll-margin-top: calc(var(--header-h) + 20px); }
.doctor-group + .doctor-group { margin-top: 48px; }
.doctor-group > h2 { display: flex; align-items: center; gap: 10px; }
.doctor-group > h2 a { text-decoration: none; color: inherit; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--text); border: 1px solid var(--border); margin-block: 20px; }
.notice .icon { color: var(--accent); margin-top: 3px; }
.notice p { margin: 0; }
.notice-warn { background: var(--danger-soft); }
.notice-warn .icon { color: var(--danger); }

/* Reviews */
.review { gap: 14px; }
.review .icon-quote { width: 34px; height: 34px; color: var(--primary); opacity: .5; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.75; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: var(--muted); }
.review figcaption strong { color: var(--text); }
.review .orig { font-size: .92rem; color: var(--muted); border-inline-start: 3px solid var(--border); padding-inline-start: 10px; }

/* Article / prose */
.layout-content { display: grid; gap: 40px; padding-block: 40px 72px; }
@media (min-width: 1000px) { .layout-content { grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; } }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul li::marker { color: var(--primary); }
.prose ol { padding-inline-start: 1.5em; }
.prose ol li { padding-inline-start: .3em; }
.prose ol li::marker { color: var(--primary-strong); font-weight: 700; }
.aside { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1000px) { .aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); } }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.box h2, .box h3 { font-size: 1.08rem; margin-bottom: 10px; }
.box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.box li { margin: 0; }
.box li > .icon { display: inline-block; vertical-align: -0.22em; margin-inline-end: 4px; color: var(--primary); }
.box-cta { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.box-cta p { color: var(--muted); font-size: .95rem; }
.box-cta .btn { width: 100%; }
.box-cta .btn + .btn { margin-top: 10px; }
.toc a { text-decoration: none; color: var(--text); font-size: .95rem; }
.toc a:hover { color: var(--primary-strong); text-decoration: underline; }
.reviewer { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-block: 6px 28px; }
.reviewer .avatar { width: 56px; height: 56px; font-size: 1.05rem; }
.reviewer p { margin: 0; font-size: .93rem; color: var(--muted); }
.reviewer strong { color: var(--text); }
.disclaimer-box { margin-top: 36px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); font-size: .93rem; color: var(--muted); }
.disclaimer-box h2 { font-size: 1rem; margin: 0 0 6px; color: var(--text); }
.disclaimer-box p { margin: 0; }
.procedures { margin-block: 8px 28px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 14px; align-items: center; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .22s ease; color: var(--primary); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 18px 16px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 10px; transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.field input[type='tel'] { direction: ltr; text-align: start; }
[dir='rtl'] .field input[type='tel'] { text-align: right; }
.field .error { color: var(--danger); font-size: .88rem; display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .error { display: block; }
.consent { font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.consent .icon { color: var(--primary); margin-top: 3px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.3rem; }

/* Ways to book */
.way { align-items: flex-start; }
.way .btn { margin-top: 6px; }
.phone-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; width: 100%; }
.phone-list li { margin: 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.phone-list small { color: var(--muted); }

/* Branch */
.branch { display: grid; gap: 24px; }
@media (min-width: 960px) { .branch { grid-template-columns: 1fr 1.1fr; } }
.map-frame { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius); background: var(--bg-alt); }
.hours-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hours-table th, .hours-table td { padding: 9px 0; border-bottom: 1px solid var(--border); text-align: start; }
.hours-table td { text-align: end; font-variant-numeric: tabular-nums; }

/* CTA band */
.cta-band { background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); border-radius: 20px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--muted); }

/* Article cards */
.article-card .meta-line { margin-top: auto; font-size: .85rem; }

/* Footer */
.site-footer { background: #0f1d38; color: #c8d3e6; padding-block: 56px 28px; margin-top: 0; font-size: .95rem; }
[data-theme='dark'] .site-footer { background: #070e1b; }
.site-footer a { color: #e6edf8; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; font-weight: 700; text-decoration: none; }
.footer-brand img { width: 56px; height: 56px; border-radius: 12px; background: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links li { margin: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; margin: 0; }
.footer-contact .icon { color: #7fe0ad; margin-top: 4px; }
.footer-contact .phone-link { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.socials a:hover { background: rgba(255,255,255,.16); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: fixed; inset-inline: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px -12px rgba(0,0,0,.25);
  }
  .mobile-bar .btn { min-height: 50px; padding: .5em .4em; font-size: .92rem; gap: .4em; }
}

/* Motion: calm entrance and reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-side { opacity: 0; transform: translateX(calc(var(--dir) * -22px)); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible, .reveal-side.visible { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal-side { opacity: 1; transform: none; }
.stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }
.hero-anim > * { animation: rise .7s ease both; }
.hero-anim > *:nth-child(2) { animation-delay: .08s; }
.hero-anim > *:nth-child(3) { animation-delay: .16s; }
.hero-anim > *:nth-child(4) { animation-delay: .24s; }
.hero-anim > *:nth-child(5) { animation-delay: .32s; }
.hero-card-anim { animation: rise .8s .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-side { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

@media print {
  .site-header, .mobile-bar, .site-footer, .aside, .btn { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}
