.text-page__main {
  max-width: min(1240px, 100%);
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 56px) clamp(64px, 8vw, 96px);
}

.text-page__article {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
  color: inherit;
}

.doctor-profile {
  display: grid;
  gap: clamp(24px, 3vw, 34px);
}

.doctor-profile__hero {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 60% at 100% 0%, rgba(62, 207, 178, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(43, 127, 255, 0.14) 0%, transparent 62%),
    linear-gradient(145deg, #ffffff 0%, #f7fbff 48%, #eef8ff 100%);
  box-shadow: 0 24px 54px rgba(11, 37, 69, 0.08);
}

.doctor-profile__photo {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--mint-soft) 0%, var(--sky) 100%);
  min-height: 100%;
}

.doctor-profile__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: top center;
}

.doctor-profile__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.doctor-profile__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doctor-profile__title {
  margin: 14px 0 12px;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.doctor-profile__role {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.doctor-profile__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.doctor-profile__fact {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: 0 10px 22px rgba(11, 37, 69, 0.05);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.doctor-profile__lead {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.doctor-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.doctor-profile__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.doctor-profile__btn:hover {
  transform: translateY(-2px);
}

.doctor-profile__btn--primary {
  background: linear-gradient(135deg, var(--mint) 0%, var(--blue-bright) 100%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(43, 127, 255, 0.22);
}

.doctor-profile__btn--ghost {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 1.5px solid rgba(11, 37, 69, 0.12);
  box-shadow: 0 10px 24px rgba(11, 37, 69, 0.06);
}

.doctor-profile__aside {
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(160deg, var(--surface-ink) 0%, var(--surface-ink-deep) 100%);
  color: var(--on-surface-ink);
  box-shadow: 0 24px 46px rgba(11, 37, 69, 0.18);
}

.doctor-profile__aside-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.25;
  /* перебиваем .text-page__article h2 { color: var(--ink) } */
  color: var(--on-surface-ink) !important;
}

.doctor-profile__aside-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.doctor-profile__aside-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.doctor-profile__aside-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  line-height: 1.5;
}

.doctor-profile__section {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(11, 37, 69, 0.06);
}

.doctor-profile__section-head {
  margin: 0 0 18px;
}

.doctor-profile__section-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doctor-profile__section-title {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.doctor-profile__section-title .accent {
  color: var(--mint-deep);
  font-style: italic;
  font-weight: 500;
}

.doctor-profile__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.doctor-profile__tags,
.doctor-profile__services,
.doctor-profile__other {
  display: grid;
  gap: 14px;
}

.doctor-profile__tags {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.doctor-profile__tag {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--mint-mist) 0%, #ffffff 100%);
  border: 1px solid rgba(11, 37, 69, 0.08);
  font-weight: 700;
  color: var(--ink);
}

.doctor-profile__services,
.doctor-profile__other {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.doctor-profile__card {
  display: block;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff8ee 0%, #ffffff 100%);
  border: 1px solid rgba(11, 37, 69, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.doctor-profile__card:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 207, 178, 0.38);
  box-shadow: 0 18px 36px rgba(11, 37, 69, 0.08);
}

.doctor-profile__card-title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.doctor-profile__card-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* В `base-text-page` карточки лежат в `article`: правило `.text-page__main h3` перебивает размер заголовка */
.text-page__main .doctor-profile .doctor-profile__card-title {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.text-page__main .doctor-profile .doctor-profile__card-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.52;
}
/* Блок «Другие врачи сети»: длинные ФИО — ещё компактнее */
.text-page__main .doctor-profile__other .doctor-profile__card-title {
  font-size: 12px;
  line-height: 1.28;
  margin-bottom: 4px;
}
.text-page__main .doctor-profile__other .doctor-profile__card-text {
  font-size: 11px;
  line-height: 1.45;
}

.doctor-profile__cta {
  padding: clamp(26px, 4vw, 38px);
  border-radius: 30px;
  background:
    radial-gradient(ellipse 60% 55% at 12% 12%, rgba(62, 207, 178, 0.18) 0%, transparent 62%),
    linear-gradient(145deg, var(--surface-ink) 0%, var(--surface-ink-deep) 100%);
  color: var(--on-surface-ink);
  text-align: center;
}

.doctor-profile__cta-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  /* перебиваем .text-page__article h2 { color: var(--ink) } */
  color: #fff !important;
}

.doctor-profile__cta-text {
  margin: 0 auto 22px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

.doctor-profile__cta .doctor-profile__actions {
  justify-content: center;
}

.doctor-profile__cta .doctor-profile__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Кнопка-ghost внутри тёмной aside-карточки в hero — иначе тёмный текст
   на тёмном фоне (--ink сливается с темно-синим градиентом aside). */
.doctor-profile__aside .doctor-profile__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.doctor-profile__aside .doctor-profile__btn--primary {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1080px) {
  .doctor-profile__hero,
  .doctor-profile__intro {
    grid-template-columns: 1fr;
  }

  .doctor-profile__photo img {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .text-page__main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .doctor-profile__hero,
  .doctor-profile__section,
  .doctor-profile__cta {
    border-radius: 24px;
    padding: 22px;
  }

  .doctor-profile__photo img {
    min-height: 300px;
  }

  .doctor-profile__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .doctor-profile__btn {
    width: 100%;
  }
}

.doctor-profile__photo--placeholder{
  min-height:420px;
  background:linear-gradient(165deg,#e8f0fc 0%,#d4e4f8 100%);
}
.doctor-profile__photo--placeholder img{
  display:block;
  width:100%;
  height:100%;
  min-height:420px;
  object-fit:contain;
  object-position:center;
}
.doctor-profile--presale .doctor-profile__title{
  font-size:clamp(26px,3vw,38px);
}
