/* ===== Doctors listing + doctor profile pages — violet brand palette,
   reuses the same tokens/idioms as services.css (glass icon circles,
   .sv-hero/.sv-btn-dark/.sv-breadcrumb/.sv-stats) so both new pages
   feel like the same site rather than a third visual language. ===== */

/* ---------- Shared glass icon circle (reused across founder bullets,
   why-us cards, service-mini cards) ---------- */
.doc-icon {
  position: relative; overflow: hidden; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, rgba(220, 171, 218, 0.8) 0%, rgba(187, 114, 192, 0.75) 45%, rgba(116, 83, 178, 0.82) 100%);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 16px rgba(122, 83, 178, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #fff;
}
.doc-icon::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%); }
.doc-icon svg { width: 24px; height: 24px; position: relative; }
.doc-icon--sm { width: 44px; height: 44px; }
.doc-icon--sm svg { width: 20px; height: 20px; }

/* 4-stat variant of services.css's .sv-stats__grid (which defaults to
   5 columns) — needs its own explicit mobile breakpoint rather than
   relying on services.css's @media rule for the bare class, since
   doctors.css loads after it and would otherwise win at every width
   including mobile (equal specificity, later source order). */
.sv-stats__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 899px) {
  /* Auto-scrolling looped strip instead of a grid. .sv-stats__grid--4 holds
     two identical .sv-stats__track copies (markup in doctors.html) laid out
     in a row; animating the parent by exactly -50% (one track's width)
     loops seamlessly with no visible jump/reset.
     The text-only "Сімейна клініка" card is dropped from the strip: it has
     no number line, so its icon sits at a different height than the three
     numeric stats and visibly breaks the row. */
  .sv-stats-card:has(.sv-stats__grid--4) { overflow: hidden; padding-left: 0; padding-right: 0; }
  .sv-stats__grid--4 {
    display: flex; align-items: flex-start; width: max-content;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    animation: sv-stats-marquee 14s linear infinite;
  }
  .sv-stats__grid--4:active { animation-play-state: paused; }
  /* flex-start, not center: labels wrap to different line-counts per stat
     ("15+" -> 2 lines, "7" -> 1 line), so centering the whole icon+number+
     label stack shifts each item's icon/number to a different height. */
  .sv-stats__grid--4 .sv-stats__track { display: flex; align-items: flex-start; flex: none; }
  .sv-stats__grid--4 .sv-stats__track[aria-hidden="true"] { display: flex; }
  .sv-stats__grid--4 .sv-stat {
    flex: 0 0 auto; width: 148px;
    border-right: none; border-bottom: none; padding: 4px 14px;
  }
  .sv-stats__grid--4 .sv-stat--text { display: none; }

  @keyframes sv-stats-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  @media (prefers-reduced-motion: reduce) {
    .sv-stats__grid--4 { animation: none; }
  }
}

/* ---------- Founder spotlight (doctors.html) ---------- */
.doc-founder { padding-top: clamp(48px, 6vw, 80px); }
.doc-founder__card {
  display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--surface-50); border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--surface-line);
}
.doc-founder__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); }
.doc-founder__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet-600); }
.doc-founder__eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--violet-400); }
.doc-founder__text h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); color: var(--ink-900); margin-top: 10px; }
.doc-founder__text h3 { font-size: 15px; font-weight: 600; color: var(--violet-700); margin-top: 4px; }
.doc-founder__text p { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--ink-500); max-width: 560px; }
.doc-founder__list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.doc-founder__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-700); line-height: 1.5; }
.doc-founder__list svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--violet-600); }
.doc-founder__row { display: flex; align-items: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.doc-play {
  display: inline-flex; align-items: center; gap: 12px; background: none; border: none; font-family: inherit; cursor: pointer; text-align: left;
}
.doc-play__icon {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: #fff; border: 1.5px solid var(--surface-line);
  display: flex; align-items: center; justify-content: center; color: var(--violet-600);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.doc-play:hover .doc-play__icon { border-color: var(--violet-400); }
.doc-play__icon svg { width: 14px; height: 14px; margin-left: 2px; }
.doc-play span:last-child { font-size: 13px; font-weight: 600; color: var(--ink-700); line-height: 1.35; }

/* ---------- Team grid (doctors.html) ---------- */
.doc-team { padding-top: clamp(56px, 7vw, 96px); }
.doc-team__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.doc-team__head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.8vw, 32px); color: var(--ink-900); }
.doc-team__head p { margin-top: 8px; font-size: 14.5px; color: var(--ink-500); max-width: 420px; }
.doc-team__all { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--violet-700); white-space: nowrap; }
.doc-team__all .btn-arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--violet-100); display: inline-flex; align-items: center; justify-content: center; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.doc-team__all:hover .btn-arrow { background: var(--violet-500); color: #fff; transform: translateX(3px); }

.doc-team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.doc-card { display: block; }
.doc-card__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 3.4; box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.doc-card:hover .doc-card__photo { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.doc-card__body { padding: 14px 4px 0; }
.doc-card__body h3 { font-size: 16px; font-weight: 700; color: var(--ink-900); }
.doc-card__body span { display: block; font-size: 12.5px; color: var(--violet-600); font-weight: 600; margin-top: 3px; }
.doc-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--violet-700); }
.doc-card__more svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.doc-card:hover .doc-card__more svg { transform: translateX(3px); }

/* ---------- Why-us cards (doctors.html) ---------- */
.doc-why { padding-top: clamp(56px, 7vw, 96px); }
.doc-why h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.8vw, 32px); color: var(--ink-900); margin-bottom: 30px; }
.doc-why__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.doc-why__item { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 18px; background: var(--surface-50); border-radius: var(--radius-lg); border: 1px solid var(--surface-line); transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.doc-why__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc-why__item h4 { font-size: 14.5px; font-weight: 700; color: var(--ink-900); }
.doc-why__item p { font-size: 12.5px; color: var(--ink-500); line-height: 1.5; }

/* ---------- Certificates horizontal scroller (doctors.html) ---------- */
.doc-certs { padding-top: clamp(56px, 7vw, 96px); }
.doc-certs__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.doc-certs__head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); color: var(--ink-900); }
.doc-certs__nav { display: flex; gap: 8px; }
.doc-certs__arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--surface-line);
  display: flex; align-items: center; justify-content: center; color: var(--violet-700);
  background: #fff; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.doc-certs__arrow:hover { background: var(--gradient-brand); border-color: transparent; color: #fff; }
.doc-certs__arrow svg { width: 16px; height: 16px; }
.doc-certs__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.doc-certs__track::-webkit-scrollbar { display: none; }
.doc-certs__item { flex: 0 0 clamp(150px, 18vw, 200px); aspect-ratio: 3 / 4; border-radius: var(--radius-md); scroll-snap-align: start; box-shadow: var(--shadow-sm); }

/* ---------- Closing CTA photo banner (shared: doctors.html + profile) ---------- */
.doc-cta { padding-block: clamp(56px, 7vw, 96px); }
.doc-cta__banner { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 320px; display: flex; align-items: center; box-shadow: var(--shadow-lg); }
.doc-cta__banner .ph { position: absolute; inset: 0; border-radius: 0; }
.doc-cta__banner::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(46, 16, 101, 0.92) 0%, rgba(46, 16, 101, 0.75) 45%, rgba(91, 33, 182, 0.35) 100%); }
.doc-cta__content { position: relative; z-index: 1; padding: clamp(28px, 4vw, 56px); max-width: 480px; color: #fff; }
.doc-cta__content h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.25; }
.doc-cta__content ul { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.doc-cta__content li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; opacity: 0.9; }
.doc-cta__content li svg { width: 16px; height: 16px; flex: none; }
.doc-cta__btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  padding: 15px 26px; border-radius: var(--radius-pill);
  background: #fff; color: var(--violet-700); font-weight: 700; font-size: 14.5px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.doc-cta__btn:hover { transform: translateY(-2px); }

/* ---------- Doctor profile hero ---------- */
.doc-profile-hero { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.doc-profile-hero__grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.doc-profile-hero__photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 3 / 3.6; box-shadow: var(--shadow-lg); }
.doc-profile-hero__badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--violet-100); color: var(--violet-700); font-size: 12px; font-weight: 700; }
.doc-profile-hero__text h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 44px); color: var(--ink-900); margin-top: 14px; }
.doc-profile-hero__text h2 { font-size: 15.5px; font-weight: 600; color: var(--violet-700); margin-top: 6px; }
.doc-profile-hero__meta { font-size: 13.5px; color: var(--ink-500); margin-top: 4px; }
.doc-profile-hero__bio { margin-top: 18px; font-size: 15px; line-height: 1.65; color: var(--ink-500); max-width: 560px; }
.doc-profile-hero__list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.doc-profile-hero__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-700); line-height: 1.5; }
.doc-profile-hero__list svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--violet-600); }

/* "Професійний профіль" card sitting under the profile hero — a heading,
   a big hero stat (first cell) next to three icon stats, and a highlighted
   specialization pill underneath. */
.doc-profile-stats { margin-top: clamp(28px, 4vw, 44px); }
.doc-profile-stats__card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(245, 243, 255, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); padding: clamp(20px, 2.6vw, 32px);
}
.doc-profile-stats__head { margin-bottom: clamp(16px, 2.2vw, 24px); }
.doc-profile-stats__head h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-900); }
/* Thin full-width track with a small sparkle that continuously runs from
   edge to edge, looping forever underneath the card heading. */
.doc-profile-stats__spark-track {
  display: block; position: relative; width: 100%; height: 2px; margin-top: 10px;
  background: var(--violet-100); border-radius: 2px; overflow: hidden;
}
.doc-profile-stats__spark {
  position: absolute; top: 50%; left: -16px;
  width: 15px; height: 15px; margin-top: -7.5px;
  color: var(--violet-400);
  filter: drop-shadow(0 0 5px var(--violet-300));
  animation: doc-spark-run 1.7s linear infinite;
}
.doc-profile-stats__spark svg { width: 100%; height: 100%; }
@keyframes doc-spark-run {
  0% { left: -16px; }
  100% { left: 100%; }
}

.doc-profile-stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.doc-profile-stat { display: flex; align-items: center; gap: 14px; padding: 4px 14px; border-right: 1px solid var(--surface-line); min-width: 0; }
.doc-profile-stat:last-child { border-right: none; }
.doc-profile-stat > div { min-width: 0; }
.doc-profile-stat b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink-900); line-height: 1.15; overflow-wrap: anywhere; }
.doc-profile-stat div span { display: block; font-size: 12px; color: var(--ink-500); margin-top: 2px; line-height: 1.3; }
.doc-profile-stat__accent { color: var(--violet-600) !important; font-weight: 700; margin-top: 3px !important; }

.doc-profile-stat--hero { position: relative; flex-direction: column; align-items: flex-start; gap: 2px; overflow: hidden; }
.doc-profile-stat--hero b {
  font-size: clamp(40px, 5vw, 52px); white-space: nowrap;
  background: linear-gradient(135deg, var(--violet-400), var(--violet-600));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.doc-profile-stat--hero .doc-profile-stat__label { font-size: 13.5px; font-weight: 700; color: var(--ink-900); margin-top: 2px; }
.doc-profile-stat--hero .doc-profile-stat__sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; line-height: 1.25; max-width: 20ch; }
/* Faint clinic-logo watermark sitting behind the hero number */
.doc-profile-stat--hero::after {
  content: ''; position: absolute; right: -14px; bottom: -14px;
  width: 96px; height: 96px;
  background: url('../assets/img/logo.png') center / contain no-repeat;
  opacity: 0.08; pointer-events: none;
}

.doc-profile-stats__highlight {
  display: flex; align-items: center; gap: 10px; margin-top: clamp(16px, 2.2vw, 22px);
  padding: 12px 18px; border-radius: var(--radius-lg);
  background: var(--violet-50); border: 1px solid var(--violet-100);
  font-size: 13px; color: var(--ink-700);
}
.doc-profile-stats__highlight svg { width: 18px; height: 18px; flex: none; color: var(--violet-500); }
.doc-profile-stats__highlight b { color: var(--violet-700); font-weight: 700; }

/* ---------- "Послуги лікаря" simple list: numbered rows (icon, title,
   description, arrow-link) stacked in a soft card, plus a highlighted
   closing banner. ---------- */
.doc-services-list { padding-block: clamp(48px, 6vw, 80px); }
.doc-services-list__inner {
  max-width: 900px; margin-inline: auto;
  background: var(--surface-50); border-radius: var(--radius-xl);
  padding: clamp(14px, 1.8vw, 20px); border: 1px solid var(--surface-line);
}
.doc-services-list__row {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 24px);
  background: #fff; border-radius: var(--radius-lg);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  box-shadow: var(--shadow-sm);
  text-decoration: none; cursor: pointer;
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.doc-services-list__row:hover { box-shadow: var(--shadow-md); }
.doc-services-list__row + .doc-services-list__row { margin-top: 14px; }
.doc-services-list__num { flex: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 32px); color: var(--violet-100); line-height: 1; }
.doc-services-list__row .doc-icon { flex: none; }
.doc-services-list__body { flex: 1 1 auto; min-width: 0; }
.doc-services-list__body h3 { font-size: 16px; font-weight: 700; color: var(--ink-900); }
.doc-services-list__body p { margin-top: 4px; font-size: 13px; color: var(--ink-500); line-height: 1.5; }
.doc-services-list__more {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--violet-50); color: var(--violet-700);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.doc-services-list__more svg { width: 16px; height: 16px; }
.doc-services-list__row:hover .doc-services-list__more { background: var(--gradient-brand); color: #fff; transform: translateX(2px); }

.doc-services-list__banner {
  display: flex; align-items: center; gap: 16px; margin-top: 14px;
  background: var(--violet-50); border-radius: var(--radius-lg);
  padding: clamp(16px, 2vw, 20px) clamp(18px, 2.2vw, 26px);
}
.doc-services-list__banner .doc-icon { flex: none; }
.doc-services-list__banner p { flex: 1 1 auto; font-size: 13.5px; color: var(--ink-700); line-height: 1.5; }
.doc-services-list__banner .doc-services-list__check { flex: none; color: var(--violet-600); }
.doc-services-list__banner .doc-services-list__check svg { width: 26px; height: 26px; }

@media (max-width: 640px) {
  .doc-services-list__row { gap: 12px; padding: 14px 14px; }
  .doc-services-list__num { font-size: 22px; }
  .doc-services-list__body h3 { font-size: 14.5px; }
  .doc-services-list__body p { font-size: 12px; }
  .doc-services-list__banner { flex-wrap: wrap; }
}

/* ---------- Experience / education timeline ---------- */
.doc-timeline-section { padding-block: clamp(48px, 6vw, 80px); background: var(--surface-50); }
.doc-timeline-section h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink-900); margin-bottom: 30px; }
.doc-timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.doc-timeline-col h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--violet-600); margin-bottom: 20px; }
.doc-timeline { position: relative; padding-left: 26px; display: flex; flex-direction: column; gap: 22px; }
.doc-timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1.5px; background: var(--surface-line); }
.doc-timeline__item { position: relative; }
.doc-timeline__item::before { content: ''; position: absolute; left: -26px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gradient-brand); box-shadow: 0 0 0 3px var(--violet-100); }
.doc-timeline__year { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; color: var(--violet-700); }
.doc-timeline__title { font-size: 14.5px; font-weight: 600; color: var(--ink-900); margin-top: 3px; }
.doc-timeline__place { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }

/* ---------- Doctor's own services mini-grid ---------- */
.doc-services-mini { padding-block: clamp(48px, 6vw, 80px); }
.doc-services-mini h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink-900); margin-bottom: 30px; }
.doc-services-mini__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.doc-services-mini__card { padding: 22px 18px; border-radius: var(--radius-lg); border: 1px solid var(--surface-line); display: flex; flex-direction: column; gap: 14px; transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out); }
.doc-services-mini__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc-services-mini__card h4 { font-size: 14.5px; font-weight: 700; color: var(--ink-900); }
.doc-services-mini__card p { font-size: 12.5px; color: var(--ink-500); line-height: 1.5; }

/* ---------- Reviews carousel (profile page) ---------- */
.doc-reviews { padding-block: clamp(48px, 6vw, 80px); }
.doc-reviews__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.doc-reviews__head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink-900); }
.doc-reviews__all { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--violet-700); white-space: nowrap; }
.doc-reviews__track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.doc-reviews__track .testimonial b { color: var(--ink-900); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .doc-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-services-mini__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-reviews__track { grid-template-columns: 1fr; }
}

@media (max-width: 899px) {
  .doc-founder__card { grid-template-columns: 1fr; }
  .doc-founder__photo { aspect-ratio: 4 / 2.8; }
  .doc-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Mobile doctor-profile hero: name/badge/experience run full width up
     top, then photo and checklist sit side by side (photo stretches to
     match the checklist's height via the grid row, so it never reads as
     a narrow sliver), CTA breaks out full width underneath. Both
     .doc-profile-hero__text and .doc-profile-hero__top are promoted to
     display:contents so their children become individual grid items
     placed by name. */
  .doc-profile-hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "top top"
      "photo checklist"
      "cta cta";
    gap: 14px 16px;
    align-items: stretch;
  }
  .doc-profile-hero__photo { grid-area: photo; width: 100%; aspect-ratio: auto; min-height: 0; max-width: none; margin-inline: 0; }
  .doc-profile-hero__text { display: contents; }
  .doc-profile-hero__top { grid-area: top; }
  .doc-profile-hero__badge { padding: 5px 12px; font-size: 11px; }
  .doc-profile-hero__text h1 { font-size: 21px; margin-top: 10px; }
  .doc-profile-hero__text h2 { font-size: 13.5px; margin-top: 5px; }
  .doc-profile-hero__meta { margin-top: 4px; font-size: 12.5px; }
  .doc-profile-hero__bio { display: none; }
  .doc-profile-hero__list { grid-area: checklist; margin-top: 0; gap: 12px; }
  .doc-profile-hero__list li { font-size: 12.5px; line-height: 1.5; gap: 8px; }
  .doc-profile-hero__cta { grid-area: cta; width: 100%; justify-content: center; margin-top: 6px; }
  /* 2x2 stat grid: dividers are real per-cell borders (border-right on the
     left column, border-bottom on the top row), anchored to each cell's
     own edge rather than a guessed 50% offset — so when one cell's text
     runs longer than its neighbour (e.g. the hero's 3-line sub-copy), the
     row simply grows taller and the border grows with it instead of
     slicing through the extra text. Zero grid gap + cell padding makes
     the four border segments meet with no visible break at the centre. */
  .doc-profile-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .doc-profile-stat { border-right: none; border-bottom: none; padding: 14px 12px; gap: 10px; }
  .doc-profile-stat:nth-child(1), .doc-profile-stat:nth-child(3) { border-right: 1px solid var(--surface-line); }
  .doc-profile-stat:nth-child(1), .doc-profile-stat:nth-child(2) { border-bottom: 1px solid var(--surface-line); }
  .doc-profile-stat:nth-child(1) { padding-top: 4px; padding-left: 0; }
  .doc-profile-stat:nth-child(2) { padding-top: 4px; }
  .doc-profile-stat:nth-child(3) { padding-left: 0; padding-bottom: 4px; }
  .doc-profile-stat:nth-child(4) { padding-bottom: 4px; }
  /* Free up room for text in the tight 2-column cells: smaller icon,
     smaller gap, and a size cap on the bold title so multi-word labels
     wrap at spaces instead of needing to break mid-word. */
  .doc-profile-stat:not(.doc-profile-stat--hero) .doc-icon--sm { width: 36px; height: 36px; }
  .doc-profile-stat:not(.doc-profile-stat--hero) .doc-icon--sm svg { width: 16px; height: 16px; }
  .doc-profile-stat:not(.doc-profile-stat--hero) b { font-size: 13.5px !important; }
  .doc-profile-stat--hero { padding-right: 4px; }
  .doc-timeline-grid { grid-template-columns: 1fr; gap: 32px; }
  .doc-cta__content { max-width: 100%; }
}

@media (max-width: 640px) {
  .doc-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .doc-card__body h3 { font-size: 14px; }
  .doc-why__grid { grid-template-columns: 1fr 1fr; }
  .doc-services-mini__grid { grid-template-columns: 1fr; 
  
  }
}
