/*
  ═══════════════════════════════════════════════════
  DOCTORS.CSS — Стили страницы списка врачей
  Только специфика этой страницы.

  Размеры шрифтов     → var(--text-*)     из base.css
  Цвета               → var(--sage-*)     из base.css
  Прозрачные цвета    → var(--sage-20)    из base.css
  Метки-капители      → .label-caps       из base.css
  ═══════════════════════════════════════════════════
*/


/* ══════════════════════════════════════════
   1. ШАПКА СТРАНИЦЫ
══════════════════════════════════════════ */

.pg {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 2.5rem) clamp(1rem, 4vw, 1.5rem);
  min-height: 100vh;
}


@media (max-width: 768px) {
  .hero__scanner {
    display: none;
  }
}

/* Метка "Наши специалисты" — нестандартный цвет --sage вместо --muted */
.page-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);

  margin: 2rem 0 .4rem 0
}

/* Заголовок страницы меньше hero h1, поэтому переопределяем */
.page-title {
  font-family: var(--serif);
  font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl));
  font-weight: 400;
  color: var(--text);
  margin-bottom: .3rem;
  line-height: 1.15;
}

.page-sub {
  font-size: var(--text-base);
  color: var(--muted);
  margin-bottom: clamp(1.2rem, 4vw, 2rem);
  line-height: 1.6;
}

/* Метка секции с горизонтальной линией (отличается от .section-label в base) */
.section-label--line {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding-bottom: 0;
  border-bottom: none;
}
.section-label--line::after {
  content: '';
  flex: 1;
  height: .5px;
  background: var(--sage-20);
}

.divider {
  border: none;
  border-top: .5px solid var(--sage-20);
}


/* ══════════════════════════════════════════
   2. КАРТОЧКА ГЛАВНОГО ВРАЧА
══════════════════════════════════════════ */
.chief-section { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.chief-card {
  background: var(--white);
  border: 1.5px solid var(--sage-dk-18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Фото ── */
.chief-photo {
  width: 100%;
  height: clamp(220px, 48vw, 280px);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.chief-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.chief-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, var(--text-55) 100%);
  pointer-events: none;
}

/* ── Тело карточки ── */
.chief-body {
  padding: clamp(1.1rem, 4vw, 1.8rem) clamp(1.1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1;
}

.chief-name {
  font-family: var(--serif);
  font-size: clamp(var(--text-lg), 5vw, var(--text-2xl));
  font-weight: 400;
  line-height: 1.05;
  color: var(--text);
}
.chief-role {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  padding-bottom: 1.6rem;
}
/* Цитата — паттерн из doctor_detail.css */
.chief-bio {
  font-family: var(--serif);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
  border-left: 2.5px solid var(--sage-lt);
  padding-left: 12px;
  font-style: italic;
}

/* Специализации */
.specs-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.spec-pill {
  font-size: var(--text-xs);
  color: var(--sage-dk);
  background: var(--sage-10);
  border: .5px solid var(--sage-dk-18);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-weight: 500;
  line-height: 1.4;
}

/* ── Статистика главного врача ── */
.chief-stats {
  display: flex;
  flex-wrap: wrap;
}
.chief-stat-item {
  padding: .4rem clamp(14px, 4vw, 28px) .4rem 0;
  margin-right: clamp(14px, 4vw, 28px);
  border-right: .5px solid var(--sage-20);
}
.chief-stat-item:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.stat-val {
  font-family: var(--serif);
  font-size: clamp(var(--text-xl), 5vw, var(--text-3xl));
  font-weight: 700;
  color: var(--sage-dk);
  line-height: 1;
}
.stat-lbl {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Кнопки ── */
.chief-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-book {
  background: var(--sage-dk);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: .65rem 1.8rem;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sys);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: opacity .15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.btn-book:hover { opacity: .85; }

.btn-more {
  background: transparent;
  color: var(--sage-dk);
  border: 1.5px solid var(--sage-dk-40);
  border-radius: var(--radius-pill);
  padding: .62rem 1.4rem;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sys);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.btn-more:hover { background: var(--sage-dk); color: var(--white); }

/* Горизонтальный layout на md+ */
@media (min-width: 768px) {
  .chief-card { flex-direction: row; }
  .chief-photo {
    width: clamp(220px, 30%, 280px);
    height: auto;
    min-height: 300px;
  }
  .chief-photo-overlay {
    background: linear-gradient(to right, transparent 60%, var(--white-55) 100%);
  }
}


/* ══════════════════════════════════════════
   3. СЕТКА КОМАНДЫ ВРАЧЕЙ
══════════════════════════════════════════ */
.team-section { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 3vw, 18px);
}
@media (min-width: 576px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Карточка врача ── */
.card {
  background: var(--white);
  border: var(--border-sage);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Зона фото */
.photo-zone {
  width: 100%;
  height: clamp(200px, 44vw, 260px);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--ivory);
}
@media (min-width: 576px) {
  .photo-zone { height: clamp(210px, 30vw, 270px); }
}
@media (min-width: 992px) {
  .photo-zone { height: 260px; }
}
.photo-zone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  color: var(--muted);
  font-size: 48px;
}
.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, var(--text-45) 100%);
}

/* Имя поверх фото */
.doc-name-overlay {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  z-index: 1;
}
.doc-name {
  font-family: var(--serif);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 1px 4px var(--text-45);
}
@media (min-width: 576px) {
  .doc-name { font-size: var(--text-md); }
}
.doc-role-card {
  font-size: var(--text-xs);
  color: var(--white-75);
  margin-top: 2px;
  text-shadow: 0 1px 3px var(--text-45);
}

/* ── Тело карточки ── */
.card-body {
  padding: clamp(1rem, 3vw, 1.2rem) clamp(1rem, 3vw, 1.25rem) clamp(1.1rem, 3vw, 1.3rem);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  justify-content: space-between;
}

/* Статистика в карточке */
.card-stats { display: flex; }
.card-stat {
  flex: 1;
  text-align: center;
  padding: .5rem .4rem;
}
.card-stat + .card-stat {
  border-left: .5px solid var(--sage-15);
}
.card-stat .stat-val {
  font-size: clamp(var(--text-lg), 4vw, var(--text-xl));
}

/* Кнопки карточки */
.card-btns { display: flex; gap: 8px; }
.card-btns .btn-book {
  flex: 1;
  padding: .55rem 0;
  text-align: center;
}
/* Если кнопка одна — растягиваем на всю ширину (по центру) */
.card-btns .btn-more:only-child {
  flex: 1;
  text-align: center;
}
/* ── Чётные карточки — тёплый акцент ── */
.card:nth-child(even) .spec-pill {
  color: var(--warm);
  background: #FDF0E6;
  border-color: rgba(201, 125, 78, .28);
}
.card:nth-child(even) .btn-book  { background: var(--warm); }
.card:nth-child(even) .btn-more  { color: var(--warm); border-color: var(--warm); }
.card:nth-child(even) .btn-more:hover { background: var(--warm); color: var(--white); }
.card:nth-child(even) .stat-val  { color: var(--warm); }



/* В doctor_detail.css */
.reviews {
  background: var(--cream);
  padding: 3.5rem;
  border-top: var(--border-sage);
}



/* ══════════════════════════════════════════
   4. БЛОК «НЕ ЗНАЕТЕ К КОМУ ОБРАТИТЬСЯ»
══════════════════════════════════════════ */
.not-sure {
  background: var(--white);
  border: var(--border-sage);
  border-left: 3px solid var(--sage-lt);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2rem) clamp(1.2rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.not-sure__top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.not-sure__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-10);
  border: .5px solid var(--sage-dk-18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sage-dk);
  margin-top: 2px;
}
.not-sure__dot svg { width: 18px; height: 18px; }

.not-sure__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .3rem;
}

.not-sure__title {
  font-family: var(--serif);
  font-size: clamp(var(--text-md), 3.5vw, var(--text-lg));
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}

.not-sure__text {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
  padding-left: calc(40px + 1rem);
}

.not-sure__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  padding-left: calc(40px + 1rem);
}

.not-sure__btn { white-space: nowrap; }

.not-sure__phone {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--sage-dk);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .15s;
}
.not-sure__phone:hover { color: var(--sage); }

.not-sure__note {
  font-size: var(--text-xs);
  color: var(--muted);
}

@media (max-width: 480px) {
  .not-sure__text,
  .not-sure__actions { padding-left: 0; }
}


/* вопросы — популярные FAQ */
.pfaq {
  background: var(--cream);
  padding: 3.5rem;
  border-top: var(--border-sage);
}

.pfaq-title {
  font-family: var(--serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--text);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin: 0 0 2rem;
}

.pfaq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.pfaq-item {
  background: var(--ivory);
  border: .5px solid var(--sage-28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s;
}
.pfaq-item.open {
  border-color: var(--sage-dk-50);
  background: var(--white);
}

.pfaq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.6rem;
  cursor: pointer;
  user-select: none;
}

.pfaq-q-text {
  font-family: var(--serif);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
  transition: color .2s;
}
.pfaq-item.open .pfaq-q-text { color: var(--sage-dk); }

.pfaq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: .5px solid var(--sage-40);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  position: relative;
}
.pfaq-item.open .pfaq-icon {
  background: var(--sage-dk);
  border-color: var(--sage-dk);
}

.pfaq-icon::before,
.pfaq-icon::after {
  content: '';
  position: absolute;
  background: var(--sage-dk);
  border-radius: 1px;
  transition: transform .25s, background .2s;
}
.pfaq-icon::before { width: 11px; height: 1.5px; }
.pfaq-icon::after  { width: 1.5px; height: 11px; }
.pfaq-item.open .pfaq-icon::before,
.pfaq-item.open .pfaq-icon::after  { background: var(--white); }
.pfaq-item.open .pfaq-icon::after  { transform: rotate(90deg) scaleY(0); }

.pfaq-body {
  display: none;
  border-top: .5px solid var(--sage-18);
}
.pfaq-item.open .pfaq-body { display: block; }

.pfaq-a-text {
  padding: 1.2rem 1.6rem 1.4rem;
  font-size: var(--text-md);
  color: var(--muted);
  line-height: 1.8;
}

.pfaq-doctor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .9rem 1.6rem;
  border-top: .5px solid var(--sage-15);
  background: var(--ivory);
}

.pfaq-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pfaq-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--sage-dk);
  flex-shrink: 0;
}

.pfaq-doctor-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pfaq-doctor-name {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
}

/* Адаптив */
@media (max-width: 768px) {
  .pfaq { padding: 2rem 1.6rem; }
  .pfaq-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pfaq { padding: 2rem 1.2rem; }
}



/* ══ HERO-БЛОК ══════════════════════════════════════ */

.hero {
  background: var(--ivory);
  border-bottom: var(--border-sage);
  margin: 3rem 0;
}

/* ── Внутренний контейнер: текст + сканер ── */
.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

/* ── Левая колонка: текст ── */
.hero__content {
  max-width: 520px;
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-weight: 400;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.hero__title em {
  font-style: italic;
  color: var(--sage-dk);
  display: block;
}

.hero__divider {
  width: 36px;
  height: 2px;
  background: var(--sage-dk);
  margin: 1.6rem 0;
}

.hero__sub {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 1.5vw, 0.97rem);
  color: #5a5446;
  line-height: 1.78;
  max-width: 480px;
  margin: 0;
  font-weight: 300;
}

/* ══ AI-СКАНЕР ══════════════════════════════════════ */

:root {
  --dh-c: #1D9E75;
  --dh-c-dk: #0F6E56;
  --dh-c-bg: rgba(4, 52, 44, 0.92);
  --dh-c-border: rgba(29, 158, 117, 0.45);
}

.hero__scanner {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  margin: 0 auto;
  background: transparent;
}

/* Тег "AI Диагностика" */
.dh-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dh-c);
  border: 1px solid rgba(29, 158, 117, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
  white-space: nowrap;
  z-index: 10;
  font-family: var(--sans);
}

.dh-blink {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dh-c);
  animation: dhblink 1.8s ease-in-out infinite;
}

@keyframes dhblink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* Кольца */
.dh-rings { position: absolute; inset: 0; pointer-events: none; }

.dh-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(29, 158, 117, 0.15);
  transform: translate(-50%, -50%);
}
.dh-r1 { width: 300px; height: 300px; }
.dh-r2 { width: 236px; height: 236px; border-color: rgba(29, 158, 117, 0.09); }
.dh-r3 { width: 176px; height: 176px; border-color: rgba(29, 158, 117, 0.06); }

.dh-rspin {
  position: absolute;
  top: 50%; left: 50%;
  width: 276px; height: 276px;
  border-radius: 50%;
  border: 1px dashed rgba(29, 158, 117, 0.12);
  transform: translate(-50%, -50%);
  animation: dhspin 22s linear infinite;
}
.dh-rspin2 {
  position: absolute;
  top: 50%; left: 50%;
  width: 152px; height: 152px;
  border-radius: 50%;
  border: 1px dashed rgba(29, 158, 117, 0.09);
  transform: translate(-50%, -50%);
  animation: dhspin 14s linear infinite reverse;
}

@keyframes dhspin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Зуб */
.dh-tooth-anchor {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: 150px; height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-tooth-floater {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dhfloat 5s ease-in-out 1.4s infinite;
}

@keyframes dhfloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

.tooth-wrapper {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooth-svg {
  width: 100%; height: 100%;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.13));
  transition: filter 0.2s ease;
}

.tooth-wrapper.scan-active .tooth-svg {
  filter: drop-shadow(0 0 7px rgba(29, 158, 117, 0.6));
}

/* Оверлей динамики (кариес, "нет зуба") */
.dh-dynamic-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Луч сканирования */
.dh-scan-overlay {
  position: absolute;
  top: 8%; left: 10%;
  width: 80%; height: 80%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 15;
}

.dh-scanbeam {
  position: absolute;
  left: 0; right: 0;
  top: -3px;
  height: 2px;
  background: rgba(29, 158, 117, 0.95);
  box-shadow: 0 0 6px #1D9E75;
  transition: top 0.02s linear;
}

.dh-scanbeam::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -10px;
  height: 20px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(29, 158, 117, 0.15) 40%,
    rgba(29, 158, 117, 0.25) 50%,
    rgba(29, 158, 117, 0.15) 60%,
    transparent 100%
  );
}

.dh-scan-mask {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 0;
  background: rgba(29, 158, 117, 0.06);
}

/* Бейджи */
.dh-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: translateX(6px);
  z-index: 20;
}

.dh-badge.show {
  opacity: 1;
  transform: translateX(0);
}

.dh-badge-left {
  flex-direction: row-reverse;
  transform: translateX(-6px);
}

.dh-b-em { top: 14%; right: -4%; }
.dh-b-cv { top: 42%; right: -4%; }
.dh-b-rt { top: 66%; right: -2%; }
.dh-b-hl { top: 28%; left: -6%; }

.dh-bdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--dh-c);
  box-shadow: 0 0 5px var(--dh-c);
}

.dh-bhline {
  width: 14px; height: 1px;
  background: rgba(29, 158, 117, 0.5);
}

.dh-bcard {
  background: var(--dh-c-bg);
  border: 1px solid var(--dh-c-border);
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 76px;
}

.dh-blabel {
  display: block;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(157, 225, 203, 0.7);
  font-family: monospace;
}

.dh-bval {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* Статус / прогресс */
.dh-status {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 9px;
  color: rgba(29, 158, 117, 0.9);
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.28);
  padding: 3px 10px;
  border-radius: 30px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 20;
}

.dh-ptrack {
  width: 60px; height: 2px;
  background: rgba(29, 158, 117, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.dh-pfill {
  height: 100%; width: 0%;
  background: var(--dh-c);
  border-radius: 2px;
}

/* Название этапа */
.dh-stage-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-family: monospace;
  letter-spacing: 0.08em;
  color: var(--dh-c);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 20;
  white-space: nowrap;
  text-align: center;
}

.dh-stage-label.show { opacity: 1; }

/* Сообщение "зуб отсутствует" */
.no-tooth-msg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.65);
  border-radius: 24px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #ffb347;
  white-space: nowrap;
  z-index: 30;
  font-family: monospace;
  border: 1px solid rgba(255, 180, 70, 0.5);
  pointer-events: none;
}

/* Пятна кариеса */
.caries-spot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
  z-index: 10;
}

/* ══ СТАТИСТИКА ══════════════════════════════════════ */

.hero__stats {
  border-top: var(--border-sage);
}

.hero__stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
}

.hero__stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2.5rem 1.5rem 0;
  border-right: var(--border-sage);
}

.hero__stat:first-child { padding-left: 0; }
.hero__stat:last-child  { border-right: none; padding-left: 2.5rem; }
.hero__stat:nth-child(2){ padding-left: 2.5rem; }

.hero__stat-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sage-10);
  border: 0.5px solid var(--sage-dk-18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__stat-icon svg {
  width: 16px; height: 16px;
  stroke: var(--sage-dk);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__stat-val {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--sage-dk);
  line-height: 1;
}

.hero__stat-val em {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: normal;
  color: var(--sage);
  margin-left: 2px;
}

.hero__stat-val.warm    { color: var(--warm); }
.hero__stat-val.warm em { color: var(--warm); opacity: 0.7; }

.hero__stat-lbl {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.4;
}

/* ══ АДАПТИВ ══════════════════════════════════════ */

/* Планшет — сканер чуть меньше */
@media (max-width: 1024px) {
  .hero__inner {
    gap: 1.5rem;
  }
  .hero__scanner {
    max-width: 320px;
  }
  .dh-r1 { width: 260px; height: 260px; }
  .dh-r2 { width: 204px; height: 204px; }
  .dh-r3 { width: 152px; height: 152px; }
  .dh-rspin  { width: 238px; height: 238px; }
  .dh-rspin2 { width: 130px; height: 130px; }
}

/* Мобильный — сканер скрываем, текст на всю ширину */
@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 1.5rem;
    gap: 0;
  }

  .hero__scanner {
    display: none;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .hero__stats-inner {
    flex-wrap: wrap;
    padding: 0 1.25rem;
  }

  .hero__stat {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: var(--border-sage);
    padding: 1rem;
  }

  .hero__stat:first-child,
  .hero__stat:nth-child(2),
  .hero__stat:last-child {
    padding-left: 1rem;
  }

  .hero__stat:last-child {
    border-bottom: none;
  }
}