.text-page__main:has(.doctors-v2-hero) {
  max-width: 1240px;
  padding-top: clamp(24px, 4vw, 44px);
}

.doctors-v2-hero {
  background: linear-gradient(140deg, var(--white) 0%, var(--cream) 100%);
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 18px 36px rgba(11, 37, 69, 0.07);
  margin-bottom: 18px;
}

.doctors-v2-hero__label {
  margin: 0 0 10px;
  display: inline-block;
  color: var(--mint-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 12px;
}

.doctors-v2-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.14;
}

.doctors-v2-hero__lead {
  margin: 0;
  max-width: 760px;
  color: var(--ink-soft);
}

.doctors-v2-hero__stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.doctors-v2-hero__stats article {
  background: var(--white);
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 16px;
  padding: 14px 12px;
}

.doctors-v2-hero__stats b {
  display: block;
  font-size: 1.15rem;
  color: var(--ink);
}

.doctors-v2-hero__stats span {
  color: var(--ink-soft);
  font-size: 14px;
}

/* Блок «Наша команда» под героем: скругления и тень как у .doctors-v2-hero */
.doctors-v2-team .landing-team.landing-team--grid {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: 0 18px 36px rgba(11, 37, 69, 0.07);
}

html[data-theme="dark"] .doctors-v2-team .landing-team.landing-team--grid {
  border-color: rgba(232, 240, 255, 0.12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.doctors-v2-trust {
  background: var(--white);
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
  margin-top: 16px;
}

.doctors-v2-trust h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.doctors-v2-trust__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.doctors-v2-trust__grid article {
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: var(--white);
}

.doctors-v2-trust__grid b {
  display: block;
  color: var(--ink);
}

.doctors-v2-trust__grid span {
  font-size: 14px;
  color: var(--ink-soft);
}

.doctors-v2-cta {
  margin-top: 16px;
  background: linear-gradient(145deg, #0b2545 0%, #2c4767 100%);
  color: #fff;
  border-radius: 24px;
  padding: clamp(20px, 4vw, 32px);
}

.doctors-v2-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
}

.doctors-v2-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.doctors-v2-cta__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.doctors-v2-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.doctors-v2-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.doctors-v2-blog {
  margin-top: 16px;
  background: var(--white);
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
}

.doctors-v2-blog__head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.doctors-v2-blog__head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  max-width: 760px;
}

.doctors-v2-blog__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.doctors-v2-blog__card {
  background: linear-gradient(150deg, var(--white) 0%, var(--cream) 100%);
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.doctors-v2-blog__card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.doctors-v2-blog__card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.doctors-v2-blog__card a {
  margin-top: 10px;
  display: inline-block;
  font-weight: 700;
}

/* /doctors: 4 в ряд на desktop; flex + center — неполный последний ряд (1–3 карточки) не к левому краю */
.doctors-v2-team .landing-team--grid .landing-team__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
}

.doctors-v2-team .landing-team--grid .landing-team__grid > .landing-team__card {
  box-sizing: border-box;
  flex: 0 1 calc((100% - 48px) / 4);
  max-width: calc((100% - 48px) / 4);
  min-width: 0;
  width: auto;
  height: auto;
  align-self: stretch;
}
.doctors-v2-team .landing-team--grid .landing-team__photo,
.doctors-v2-team .landing-team--grid .landing-team__photo img {
  width: 100%;
}

/* Нельзя задавать display:flex на корне — иначе перебивается [hidden] и кнопка видна на десктопе */
.doctors-v2-loadmore {
  margin-top: 14px;
}
.doctors-v2-loadmore:not([hidden]) {
  display: flex;
  justify-content: center;
}

.doctors-v2-loadmore__btn {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  box-shadow: 0 14px 30px rgba(240, 92, 77, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.doctors-v2-loadmore__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(240, 92, 77, 0.34);
  filter: saturate(1.05);
}

.doctors-v2-team .landing-team__card.is-reveal-enter {
  opacity: 0;
  transform: translateY(14px) scale(.985);
}

.doctors-v2-team .landing-team__card.is-reveal-enter-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .38s ease, transform .38s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

@media (max-width: 1200px) and (min-width: 981px) {
  .doctors-v2-team .landing-team--grid .landing-team__grid > .landing-team__card {
    flex: 0 1 calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
  }
}

@media (max-width: 980px) {
  .doctors-v2-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doctors-v2-trust__grid {
    grid-template-columns: 1fr;
  }
  .doctors-v2-blog__grid {
    grid-template-columns: 1fr;
  }
  .doctors-v2-team .landing-team--grid .landing-team__grid > .landing-team__card {
    flex: 0 1 calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 640px) {
  .doctors-v2-hero__stats {
    grid-template-columns: 1fr;
  }
  .doctors-v2-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
  /* На мобиле — строго 2 колонки (не 1) */
  .doctors-v2-team .landing-team--grid .landing-team__grid {
    gap: 12px;
    justify-content: stretch;
  }
  .doctors-v2-team .landing-team--grid .landing-team__grid > .landing-team__card {
    flex: 0 1 calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
  .doctors-v2-team .landing-team__body {
    padding: 12px 10px 14px;
  }
  .doctors-v2-team .landing-team__role {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .doctors-v2-team .landing-team__name {
    font-size: 14px;
    line-height: 1.22;
  }
  .doctors-v2-team .landing-team__cta {
    font-size: 12px;
    padding-top: 8px;
  }
  .doctors-v2-team .landing-team--details .landing-team__meta,
  .doctors-v2-team .landing-team--details .landing-team__about,
  .doctors-v2-team .landing-team--details .landing-team__tags {
    display: none;
  }
  .doctors-v2-team .landing-team .container {
    padding-left: 0;
    padding-right: 0;
  }
  .doctors-v2-loadmore:not([hidden]) {
    margin-top: 12px;
  }
  .doctors-v2-loadmore__btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

html[data-theme="dark"] .doctors-v2-hero {
  background: linear-gradient(140deg, var(--white) 0%, var(--cream) 100%);
  border-color: rgba(232, 240, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .doctors-v2-hero__stats article {
  background: var(--white);
  border-color: rgba(232, 240, 255, 0.14);
}

html[data-theme="dark"] .doctors-v2-trust {
  border-color: rgba(232, 240, 255, 0.12);
}

html[data-theme="dark"] .doctors-v2-trust__grid article {
  border-color: rgba(232, 240, 255, 0.12);
}
