/* ============ Главная ============ */

/* Универсальная заглушка под изображение (рыба до реальных фото) */
.img-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px dashed rgba(0, 0, 0, 0.25);
  border-radius: var(--r-lg);
  color: rgba(0, 0, 0, 0.55);
  font-family: var(--font-ui);
  font-size: 12.2px;
  letter-spacing: 0.13px;
  text-align: center;
  padding: 12px;
  box-shadow: 0 18px 50px -22px rgba(27, 23, 20, 0.28);
}
/* Реальное фото в квадратном hero-слоте (заменяет .img-slot.phero__slot) */
.phero__img {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center;
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px -22px rgba(27, 23, 20, 0.28);
}
.img-slot::before, .svc__media::before {
  content: "";
  width: 28px; height: 28px;
  opacity: .45;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 74px) clamp(56px, 7vw, 89px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 64px;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.82px;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero__title em { font-style: italic; color: var(--accent); }
.hero__lead {
  max-width: 533px;
  font-size: 19px;
  line-height: 30.4px;
  color: var(--ink-soft);
  padding-top: 8px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-block: 18px 30px; }
.hero__mini {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  width: 100%;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}
.hero__miniItem { display: flex; flex-direction: column; gap: 3px; }
.hero__miniItem strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
}
.hero__miniItem span { font-size: 13.5px; color: var(--ink-mute); }

.hero__media { position: relative; }
.hero__slot { aspect-ratio: 24 / 26; width: 100%; }
.hero__photo {
  display: block; width: 100%; aspect-ratio: 24 / 26; object-fit: cover; object-position: 50% 22%;
  border-radius: var(--r-lg); box-shadow: 0 18px 50px -22px rgba(27, 23, 20, 0.28);
}
.hero__badge {
  position: absolute;
  left: -26px;
  bottom: 39px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 18px 22px;
  box-shadow: 0 18px 50px -22px rgba(27, 23, 20, 0.28);
}
.hero__badge b {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}
.hero__badge span { font-size: 12px; line-height: 19.2px; color: var(--ink-mute); }

/* Стрелка в кнопке */
.btn__arrow { font-size: 1.05em; line-height: 0; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--outline:hover { background: var(--accent-soft); border-color: transparent; }
.btn--lg { padding: 16px 26px; font-size: 15.5px; }

/* Общий заголовок секции (по центру) */
.section__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.section__eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.82px;
  text-transform: uppercase;
  color: var(--accent);
}
.section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section__title em { font-style: italic; color: var(--accent); }

/* Stats (тёмная полоса) */
.stats { background: var(--ink); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-block: 64px;
}
.stats__item { padding: 6px 8px; }
.stats__value {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 58px;
  line-height: 1;
  color: #fff;
  margin-bottom: 12px;
}
.stats__value small { font-size: 29px; color: var(--accent); }
.stats__label { font-size: 14.5px; line-height: 23.2px; color: rgba(255, 255, 255, 0.62); max-width: 178px; }

/* Services (карточки направлений) */
.services { background: var(--cream); padding-block: clamp(56px, 6vw, 60px) clamp(72px, 8vw, 120px); }
.services__inner { display: flex; flex-direction: column; gap: 48px; }
.services .section__head { align-items: flex-start; text-align: left; }
.services__lead { max-width: 520px; font-size: 16px; line-height: 25.6px; color: var(--ink-soft); }
.services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.svc {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.svc__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.035);
  border-bottom: 1px solid var(--line);
  color: rgba(0, 0, 0, 0.5);
  font-family: var(--font-ui);
  font-size: 12.2px;
}
/* Реальное фото в слоте карточки направления */
.svc__media .svc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.svc__media:has(.svc__img)::before { content: none; }
.svc__index {
  position: absolute;
  top: 16px; left: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 14px;
}
.svc__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.svc__title { font-family: var(--font-serif); font-weight: 600; font-size: 26px; line-height: 1.1; color: var(--ink); }
.svc__blurb { font-size: 15px; line-height: 24px; color: var(--ink-soft); }
.svc__list { display: flex; flex-wrap: wrap; gap: 8px; }
.svc__list li {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}
.svc__more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
  transition: gap .2s;
}
.svc__more:hover { gap: 10px; }

/* Путь пациента (кремовый фон) */
.journey { background: var(--cream); padding-block: clamp(72px, 10vw, 150px) clamp(72px, 8vw, 120px); }
.journey__head { margin-bottom: clamp(44px, 6vw, 76px); }
.journey__eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 1.82px; text-transform: uppercase; color: var(--accent); }
.journey__title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); margin-top: 14px; max-width: 620px; }
.journey__title em { font-style: italic; color: var(--accent); }
.journey__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 40px; }
.journey__step { display: flex; flex-direction: column; }
.journey__ic { color: var(--accent); margin-bottom: 26px; }
.journey__ic svg { width: 54px; height: 54px; }
.journey__num { display: flex; align-items: center; gap: 12px; }
.journey__num b { font-family: var(--font-serif); font-weight: 600; font-size: 54px; line-height: 43.2px; letter-spacing: -0.54px; color: var(--ink); }
.journey__dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.journey__line { flex: 1; height: 1px; background: linear-gradient(to right, var(--accent), rgba(206, 107, 130, 0)); }
.journey__text { margin-top: 20px; font-size: 17px; line-height: 25.5px; color: var(--ink-soft); max-width: 249px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { order: -1; max-width: 420px; }
  .hero__badge { left: auto; right: -10px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .journey__grid { grid-template-columns: 1fr 1fr; gap: 44px 28px; }
  .journey__text { max-width: none; }
}
/* Reviews (кремовый фон) */
.reviews { background: var(--cream); padding-block: clamp(72px, 10vw, 150px) clamp(72px, 8vw, 120px); }
.reviews__inner { display: flex; flex-direction: column; gap: 54px; }
.reviews__head {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: flex-end; justify-content: space-between;
}
.reviews__headText { display: flex; flex-direction: column; gap: 17px; align-items: flex-start; }
.reviews__rating { display: flex; align-items: center; gap: 12px; }
.reviews__ratingNum { font-family: var(--font-serif); font-weight: 600; font-size: 38px; line-height: 1; color: var(--ink); }
.reviews__stars { display: inline-flex; gap: 2px; color: var(--accent); font-size: 15px; }
.reviews__ratingTxt { font-size: 15px; line-height: 24px; color: var(--ink-soft); }
.reviews__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.review {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: #fff;
  border: 1px solid rgba(27, 23, 20, 0.06);
  border-radius: var(--r-md);
  padding: 35px;
}
.review__stars { display: inline-flex; gap: 2px; color: var(--accent); font-size: 15px; }
.review__text { font-family: var(--font-serif); font-style: italic; font-size: 21px; line-height: 29.82px; color: var(--ink); }
.review__foot { display: flex; align-items: center; gap: 14px; }
.review__avatar {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 23px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 18px;
}
.review__name { font-weight: 700; font-size: 15.5px; line-height: 24.8px; color: var(--ink); }
.review__op { font-size: 13.5px; line-height: 21.6px; color: var(--ink-mute); }
.reviews__more { display: flex; justify-content: center; margin-top: 38px; }

@media (max-width: 720px) {
  .services__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero__mini { gap: 22px; }
  .hero__miniItem strong { font-size: 28px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stats__value { font-size: 48px; }
  .process__grid { grid-template-columns: 1fr; }
}
