:root {
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --ink: #142033;
  --muted: #5a6b7f;
  --line: rgba(20, 48, 80, 0.1);
  --brand: #0b6bcb;
  --brand-dark: #0856a5;
  --brand-soft: rgba(11, 107, 203, 0.1);
  --accent: #1a9e8a;
  --danger: #c0392b;
  --danger-soft: rgba(192, 57, 43, 0.1);
  --success: #1a7a5c;
  --success-soft: rgba(26, 158, 138, 0.12);
  --shadow: 0 10px 28px rgba(20, 48, 80, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --header-h: 76px;
  --mobile-cta-h: 0px;
  --focus: 0 0 0 3px rgba(11, 107, 203, 0.35);
  --tap: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
#top {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 460px at 8% -8%, rgba(11, 107, 203, 0.08) 0%, transparent 55%),
    radial-gradient(700px 380px at 96% 12%, rgba(26, 158, 138, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 40%, #eef3f8 100%);
  min-height: 100vh;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.modal-close:focus-visible {
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(11, 107, 203, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-sub {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3d5168;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-link {
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.phone-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-actions .phone-link {
  color: var(--brand-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  min-height: var(--tap);
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.btn-lg {
  padding: 0.9rem 1.4rem;
  font-size: 1.02rem;
  min-height: 48px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 107, 203, 0.22);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(11, 107, 203, 0.28);
}

.btn-primary:active {
  background: #074a8f;
}

.btn-secondary {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid rgba(11, 107, 203, 0.28);
}

.btn-secondary:hover {
  background: rgba(11, 107, 203, 0.16);
  border-color: rgba(11, 107, 203, 0.45);
  color: var(--brand-dark);
}

.btn-secondary:active {
  background: rgba(11, 107, 203, 0.22);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(20, 48, 80, 0.14);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(11, 107, 203, 0.35);
  color: var(--brand-dark);
}

.btn-ghost:active {
  background: #e4ecf5;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

.hero .btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: 1.25rem 0 1.35rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: min(70vh, 620px);
  background:
    linear-gradient(105deg, rgba(6, 48, 102, 0.82) 0%, rgba(11, 107, 203, 0.55) 48%, rgba(11, 90, 150, 0.22) 72%, rgba(11, 90, 150, 0.08) 100%),
    url("../assets/hero-cover.jpg?v=4") right center / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow);
  display: grid;
  align-items: end;
  border: 1px solid rgba(11, 107, 203, 0.12);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(1.85rem, 4.5vw, 3.6rem);
  max-width: 680px;
  animation: rise 0.75s ease both;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(6, 48, 102, 0.55) 0%, rgba(6, 48, 102, 0.28) 55%, transparent 78%);
  pointer-events: none;
}

.hero-kicker,
.section-eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fc4ef;
}

.section-eyebrow {
  color: var(--brand);
}

.hero h1 {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.2rem;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7.2vw, 5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-tagline {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 32rem;
  color: rgba(236, 244, 255, 0.95);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  position: absolute;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  display: grid;
  gap: 0.55rem;
  z-index: 1;
  animation: rise 0.85s 0.08s ease both;
}

.meta-chip {
  min-width: 200px;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  gap: 0.12rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4e8ff;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-tight {
  padding: 2.4rem 0 3.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.65rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-head p:not(.section-eyebrow),
.section-lead {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

.section-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.services-prices-split {
  margin-top: 1.35rem;
}

/* How to book */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.how-card {
  position: relative;
  padding: 1.35rem 1.25rem 1.3rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.how-card:hover {
  border-color: rgba(11, 107, 203, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 48, 80, 0.1);
}

.how-step {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
}

.how-card h3 {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.how-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.how-cta {
  margin-top: 0.75rem;
}

.how-cta .btn {
  width: 100%;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 760px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(11, 107, 203, 0.28);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap);
  padding: 1rem 1.15rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -0.2rem;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.faq-item summary:hover {
  color: var(--brand-dark);
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
  border-radius: 14px;
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.empty-state {
  margin: 1.25rem 0 0;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(11, 107, 203, 0.28);
  background: var(--brand-soft);
  color: var(--muted);
  text-align: center;
}

/* Directions — photo-top clinical cards */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.direction-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: rise 0.65s ease both;
}

.direction-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--card-color, var(--brand));
  opacity: 0.85;
  z-index: 2;
  border-radius: 18px 0 0 18px;
}

.direction-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-color, var(--brand)) 35%, var(--line));
  box-shadow: 0 16px 34px rgba(20, 48, 80, 0.12);
}

.direction-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.direction-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, 0.35)),
    linear-gradient(135deg, color-mix(in srgb, var(--card-color, #0b6bcb) 22%, transparent), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.direction-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.direction-card:hover .direction-media img {
  transform: scale(1.045);
}

.direction-media-fallback {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--card-color, #0b6bcb) 35%, #fff), var(--surface-2));
}

.direction-card-body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.direction-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}

.direction-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.service-card {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.65s ease both;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 107, 203, 0.35);
  box-shadow: 0 16px 34px rgba(20, 48, 80, 0.12);
}

.service-media {
  position: relative;
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.03);
}

.service-media.is-fallback::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--brand-dark);
  background:
    linear-gradient(145deg, rgba(11, 107, 203, 0.12), rgba(26, 158, 138, 0.08));
}

.service-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.service-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink);
}

.service-card strong {
  color: var(--brand);
  font-size: 1.02rem;
  margin-top: auto;
}

.service-book {
  margin-top: 0.7rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

/* Doctors */
.doctors-toolbar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.doctors-search-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #3d5168;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
  border-color: rgba(11, 107, 203, 0.45);
  color: var(--brand-dark);
}

.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.doctors-toolbar input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.9rem 1.05rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.doctors-toolbar input::placeholder {
  color: #8494a8;
}

.doctors-toolbar input:focus {
  background: #fff;
  border-color: rgba(11, 107, 203, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.12);
}

.empty-state {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px dashed rgba(11, 107, 203, 0.3);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.doctor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-card:hover {
  border-color: rgba(11, 107, 203, 0.35);
  box-shadow: 0 14px 32px rgba(20, 48, 80, 0.12);
  transform: translateY(-3px);
}

.doctor-photo {
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.35s ease;
}

.doctor-card:hover .doctor-photo img {
  transform: scale(1.04);
}

.doctor-photo-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d6e8f8 0%, #e8f4f1 55%, #eef3f9 100%);
}

.doctor-initials {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--brand);
  letter-spacing: 0.02em;
}

.doctor-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}

.doctor-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.3;
  color: var(--ink);
}

.doctor-specialty {
  margin: 0;
  color: var(--brand);
  font-weight: 650;
  font-size: 0.88rem;
  line-height: 1.35;
}

.doctor-meta {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.doctor-cta {
  margin-top: auto;
  padding-top: 0.85rem;
  width: 100%;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-rating:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.hero-rating-score {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.hero-rating-meta {
  display: grid;
  gap: 0.1rem;
  font-size: 0.82rem;
  color: rgba(236, 244, 255, 0.95);
}

.hero-rating-stars {
  color: #ffd56a;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.review-author {
  color: var(--ink);
  font-size: 0.98rem;
}

.review-date {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.review-stars {
  color: #e6a700;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  white-space: nowrap;
}

.review-text {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.review-source {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.hidden {
  display: none !important;
}

/* Prices */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.9rem;
  align-items: start;
}

.list-block {
  padding: 1.4rem;
}

.list-block h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
}

.panel-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.daily-grid {
  display: grid;
  gap: 0.65rem;
}

.daily-card {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 107, 203, 0.07), rgba(26, 158, 138, 0.05));
  border: 1px solid var(--line);
}

.daily-card h4 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--ink);
}

.daily-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-height: 420px;
  overflow: auto;
  padding-right: 0.25rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.price-row strong {
  white-space: nowrap;
  color: var(--brand);
}

.price-row small {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
}

.price-foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.price-foot p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.price-foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Visit tips + gallery inside contacts */
.visit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.news-card {
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}

.news-card:hover {
  border-color: rgba(11, 107, 203, 0.3);
}

.news-card .tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 0.98rem;
  color: var(--ink);
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery-strip .gallery-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-strip .gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-strip .gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-strip .gallery-item:first-child {
  grid-row: auto;
}

.gallery-strip .gallery-item:first-child img {
  min-height: 0;
  height: 180px;
}

/* Contacts */
.contacts-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  overflow: hidden;
}

.contacts-info {
  padding: clamp(1.4rem, 3vw, 2.1rem);
}

.contacts-title {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  color: var(--ink);
}

.contacts-info > p {
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.contact-lines {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.contact-lines a,
.contact-lines span {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.contact-lines a {
  color: var(--brand);
}

.contact-lines a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-phone-block {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.contact-lines .contact-phone-primary {
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand-dark);
  line-height: 1.2;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}

.contact-phone-secondary {
  display: grid;
  gap: 0.2rem;
}

.contact-lines .contact-phone-alt {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3d5168;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.contacts-cta {
  margin-top: 0.25rem;
}

.phone-primary {
  font-weight: 800;
}

.phone-secondary {
  font-weight: 600;
  color: #3d5168 !important;
  opacity: 0.9;
}

.footer-links .phone-primary {
  font-size: 1.05rem;
  color: var(--brand-dark);
}

.footer-links .phone-secondary {
  font-size: 0.9rem;
}

.contacts-map {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  background: #e8f1fa;
  border-left: 1px solid var(--line);
}

.map-preview {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  text-decoration: none;
  background:
    linear-gradient(rgba(232, 241, 250, 0.55), rgba(214, 230, 245, 0.72)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(11, 107, 203, 0.07) 27px,
      rgba(11, 107, 203, 0.07) 28px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 27px,
      rgba(11, 107, 203, 0.07) 27px,
      rgba(11, 107, 203, 0.07) 28px
    ),
    radial-gradient(circle at 48% 46%, rgba(11, 107, 203, 0.18), transparent 42%),
    linear-gradient(160deg, #d7e8f7, #c5dcf0 70%);
  transition: filter 0.2s ease;
}

.map-preview:hover {
  filter: brightness(1.03);
}

.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translateY(-10px);
  background: #0b6bcb;
  box-shadow: 0 0 0 8px rgba(11, 107, 203, 0.18);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.map-card {
  position: relative;
  z-index: 1;
  margin-top: 4.5rem;
  display: grid;
  gap: 0.2rem;
  min-width: min(260px, calc(100% - 2rem));
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 48, 80, 0.12);
  box-shadow: 0 14px 30px rgba(20, 48, 80, 0.12);
  color: var(--ink);
}

.map-card strong {
  font-family: var(--display);
  font-size: 1rem;
}

.map-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.map-card-hint {
  margin-top: 0.35rem !important;
  color: var(--brand) !important;
  font-size: 0.82rem !important;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--line);
  background: #f7fafc;
}

.btn-sm {
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 11px;
}

.meta-chip-link {
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.meta-chip-link:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.24);
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: transparent;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.footer-brand strong {
  color: var(--ink);
}

.footer-domain {
  margin-top: 0.25rem;
  color: var(--brand);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: start;
  justify-content: end;
}

.footer-links a {
  font-weight: 600;
  color: #3d5168;
}

.footer-links a:hover {
  color: var(--brand);
}

.disclaimer {
  grid-column: 1 / -1;
  max-width: 58rem;
  margin: 0;
  line-height: 1.55;
  color: #6b7c90;
}

/* Modal */
[hidden],
.is-hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 1rem;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 70, 0.45);
  backdrop-filter: blur(5px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: 0 24px 48px rgba(20, 48, 80, 0.18);
  animation: modalIn 0.25s ease both;
  color: var(--ink);
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #e2eaf3;
}

.modal-close:active {
  background: #d5e0eb;
}

.modal-dialog h2 {
  margin: 0 1.5rem 0.5rem 0;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ink);
}

.modal-lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.booking-form {
  display: grid;
  gap: 0.85rem;
}

.booking-form label {
  display: grid;
  gap: 0.35rem;
}

.booking-form label span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #31465c;
}

.booking-form input {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.booking-form input:focus {
  border-color: rgba(11, 107, 203, 0.55);
  box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.12);
}

.booking-form input.is-invalid {
  border-color: rgba(192, 57, 43, 0.65);
  background: #fff8f7;
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.booking-form input.is-invalid:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.form-hint {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.modal-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 140px);
}

.booking-success-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking-result-text {
  margin: 0 0 1rem;
  color: #31465c;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + var(--mobile-cta-h));
  z-index: 45;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--surface-2);
  color: var(--brand-dark);
}

.back-top:active {
  background: #e4ecf5;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 68px;
    --mobile-cta-h: 78px;
  }

  .container {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .directions-grid,
  .services-grid,
  .how-grid,
  .visit-strip,
  .gallery-strip,
  .reviews-grid,
  .split,
  .contacts-panel {
    grid-template-columns: 1fr;
  }

  .doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
  }

  .contacts-map {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 300px;
  }

  .gallery-strip .gallery-item img,
  .gallery-strip .gallery-item:first-child img {
    height: 200px;
  }

  /* Header: breathing room + readable brand + usable CTA */
  .brand-sub {
    display: none;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 1.16rem;
    letter-spacing: -0.025em;
  }

  .nav,
  .header-actions > .phone-link {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .header-inner {
    position: relative;
    gap: 0.85rem;
    padding: 0.8rem 0;
    min-height: var(--header-h);
  }

  .header-actions {
    gap: 0.55rem;
    flex-shrink: 0;
  }

  .header-actions .btn {
    min-height: var(--tap);
    padding: 0.7rem 1.05rem;
    font-size: 0.94rem;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-height: min(70vh, 420px);
    overflow: auto;
    z-index: 60;
  }

  .nav.open a {
    min-height: var(--tap);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: var(--ink);
    display: flex;
    align-items: center;
  }

  .nav.open a:hover,
  .nav.open a:focus-visible {
    background: var(--brand-soft);
    color: var(--brand-dark);
  }

  .hero {
    padding: 1rem 0 1.15rem;
  }

  .hero-content {
    padding: 1.55rem 1.25rem 1.25rem;
  }

  .hero-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .hero-cta {
    gap: 0.65rem;
  }

  .hero-meta {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 1.15rem 1.2rem;
  }

  .meta-chip {
    min-width: 0;
    flex: 1 1 calc(50% - 0.55rem);
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }

  .section {
    padding: 2.65rem 0;
  }

  .section-tight {
    padding: 1.9rem 0 2.65rem;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    margin-bottom: 1.35rem;
    gap: 0.35rem;
  }

  .section-head p:not(.section-eyebrow),
  .section-lead,
  .panel-lead {
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: none;
  }

  .direction-card-body,
  .service-card-body {
    padding: 1.05rem 1.15rem 1.25rem;
    gap: 0.4rem;
  }

  .direction-card h3 {
    font-size: 1.08rem;
  }

  .direction-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .service-card h3 {
    font-size: 1.02rem;
  }

  .direction-media,
  .service-media {
    aspect-ratio: 16 / 9.5;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: start;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
  }

  .footer-links .phone-link {
    display: inline-flex;
  }

  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.55rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 48;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(20, 48, 80, 0.1);
    backdrop-filter: blur(14px);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }

  .mobile-cta.is-visible {
    transform: translateY(0);
  }

  .mobile-cta .btn {
    width: 100%;
    min-height: var(--tap);
    font-size: 0.94rem;
  }

  body {
    padding-bottom: calc(var(--mobile-cta-h) + 0.5rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding-bottom: 1.75rem;
  }

  .back-top {
    bottom: calc(var(--mobile-cta-h) + 0.85rem + env(safe-area-inset-bottom, 0px));
    right: 0.85rem;
  }

  body.modal-open .mobile-cta,
  body.modal-open .back-top {
    visibility: hidden;
  }

  .chip {
    min-height: var(--tap);
    padding: 0.55rem 0.95rem;
  }

  .doctor-cta,
  .service-book {
    min-height: var(--tap);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .doctor-body {
    padding: 0.95rem 1rem 1.1rem;
    gap: 0.4rem;
  }

  .doctor-name {
    font-size: 0.98rem;
  }

  .doctor-specialty {
    font-size: 0.9rem;
  }

  .doctor-meta {
    font-size: 0.86rem;
    line-height: 1.45;
  }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .doctors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  .services-grid,
  .directions-grid,
  .how-grid,
  .visit-strip,
  .gallery-strip,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-strip .gallery-item:first-child {
    grid-column: 1 / -1;
  }

  .gallery-strip .gallery-item:first-child img {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .doctors-toolbar {
    padding: 0.9rem;
  }

  .hero-panel {
    min-height: 68vh;
  }

  .hero-content {
    padding: 1.4rem 1.1rem 1.1rem;
  }

  .hero-tagline {
    font-size: clamp(1.2rem, 5.6vw, 1.55rem);
  }

  .hero-brand {
    font-size: clamp(2.35rem, 11.5vw, 3.2rem);
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: var(--tap);
  }

  .hero-meta {
    margin: 0 1rem 1.05rem;
    gap: 0.5rem;
  }

  .meta-chip {
    flex: 1 1 100%;
    min-width: 0;
  }

  .meta-label {
    font-size: 0.72rem;
  }

  .header-actions .btn {
    padding: 0.72rem 1rem;
    min-height: var(--tap);
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .section {
    padding: 2.35rem 0;
  }

  .section-tight {
    padding: 1.7rem 0 2.35rem;
  }

  .section-head h2 {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
  }

  .section-head p:not(.section-eyebrow),
  .section-lead,
  .panel-lead,
  .how-card p,
  .news-card p,
  .review-card p,
  .daily-card p,
  .direction-card p,
  .doctor-meta {
    font-size: 1rem;
    line-height: 1.55;
    color: #46586c;
  }

  .direction-card h3 {
    font-size: 1.1rem;
  }

  .service-card h3 {
    font-size: 1.04rem;
  }

  .direction-card-body,
  .service-card-body {
    padding: 1.1rem 1.15rem 1.25rem;
  }

  .price-list {
    max-height: none;
  }

  .mobile-cta {
    grid-template-columns: 1fr 1.25fr;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }

  .modal {
    padding: 0.5rem;
    align-items: end;
  }

  .modal-dialog {
    width: 100%;
    border-radius: 20px 20px 12px 12px;
    max-height: min(92vh, 640px);
    overflow: auto;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

/* Small phones: single-column doctors, less density */
@media (max-width: 560px) {
  :root {
    --header-h: 64px;
    --mobile-cta-h: 80px;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .doctor-photo {
    aspect-ratio: 16 / 11;
  }

  .doctor-body {
    padding: 1.05rem 1.1rem 1.15rem;
  }

  .doctor-name {
    font-size: 1.05rem;
  }

  .doctor-specialty {
    font-size: 0.94rem;
  }

  .doctor-meta {
    font-size: 0.9rem;
  }

  .header-inner {
    padding: 0.7rem 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .meta-chip {
    flex: 1 1 calc(50% - 0.5rem);
  }
}

@media (max-width: 400px) {
  .meta-chip {
    flex: 1 1 100%;
  }

  /* Header booking is redundant with sticky CTA — free space for brand */
  .header-actions > .btn {
    display: none;
  }

  .brand {
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .mobile-cta {
    grid-template-columns: 1fr 1.2fr;
    gap: 0.5rem;
  }

  .mobile-cta .btn {
    font-size: 0.92rem;
    padding-inline: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
