/**
 * GEO-блоки SEO-текста на страницах услуг.
 *
 * Источник стилей: макеты клиники (13 HTML-файлов, new-templates/), у всех один и тот же
 * блок <style>. Здесь он перенесён в единый файл и переведён на классы geo__* (BEM),
 * px -> rem (база 16px), чтобы совпадать с флюидной типографикой темы.
 *
 * Блоки первого этапа: текст, список, карточки, этапы, стоимость, преимущества.
 */

.geo {
  /* Matches the mockup rhythm; the site already paints #eee on body. */
  padding-bottom: 6rem;
}

.geo__col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ---------------------------------------------------------------- block shell */

.geo__blk {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem;
  border-radius: 2rem;
  background: #ffffff;
}

.geo__blk--lav {
  background: #ebebfc;
}

.geo__blk--dark {
  background: #545569;
  color: #ebebfc;
}

/* ------------------------------------------------------------------ typography */

.geo__title {
  margin: 0;
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #545569;
}

.geo__blk--dark .geo__title {
  color: #ffffff;
}

.geo__subtitle {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: #545569;
}

.geo__text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #545569;
}

.geo__text + .geo__text {
  margin-top: 0.875rem;
}

.geo__text--lead {
  font-size: 1.375rem;
  line-height: 1.5;
}

.geo__text--sm {
  font-size: 1rem;
  line-height: 1.55;
}

.geo__text a {
  color: inherit;
}

/* Wysiwyg output keeps its own <p> tags inside .geo__text. */
.geo__text p {
  margin: 0;
  font: inherit;
  line-height: inherit;
}

.geo__text p + p {
  margin-top: 0.875rem;
}

.geo__text ul,
.geo__text ol {
  margin: 0.875rem 0 0;
  padding-left: 1.25rem;
}

.geo__blk--dark .geo__text,
.geo__blk--dark .geo__text a {
  color: #ebebfc;
}

/* ------------------------------------------------------------- two-column split */

.geo__split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  align-items: start;
}

.geo__split > * {
  min-width: 0;
}

/* ----------------------------------------------------------------- market cards */

.geo__grid {
  display: grid;
  gap: 1rem;
}

.geo__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.geo__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.geo__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: #f4f4f6;
}

.geo__card--white {
  background: #ffffff;
  border: 1px solid #e0e1eb;
}

.geo__num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #6e7085;
}

/* ----------------------------------------------------------------- icon rows */

.geo__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.geo__row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.125rem 0;
  border-top: 1px solid #e0e1eb;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.geo__row:last-child {
  border-bottom: 1px solid #e0e1eb;
}

.geo__ico {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 1.125rem;
  background: #ebebfc;
}

/* ----------------------------------------------------------------------- steps */

.geo__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.geo__step {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-bottom: 1.75rem;
}

.geo__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 3rem;
  bottom: 0.25rem;
  left: 1.3125rem;
  width: 2px;
  background: #e0e1eb;
}

.geo__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1.375rem;
  background: #545569;
  color: #ebebfc;
  font-size: 1rem;
  font-weight: 500;
}

.geo__step .geo__subtitle {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------- factors */

.geo__factors {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.geo__fac {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  background: #f4f4f6;
  font-size: 1rem;
  line-height: 1.5;
}

.geo__blk--lav .geo__fac {
  background: #ffffff;
}

/* ------------------------------------------------------------------ side pieces */

.geo__note {
  padding: 1.375rem 1.625rem;
  border-radius: 1.25rem;
  background: #f4f4f6;
  font-size: 1rem;
  line-height: 1.55;
}

.geo__blk--lav .geo__note {
  background: #ffffff;
}

.geo__btn {
  display: inline-block;
  padding: 1.125rem 1.75rem;
  border: 0;
  border-radius: 1.25rem;
  background: #ebebfc;
  color: #545569;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.geo__btn:hover {
  color: #2f3042;
}

.geo__figure {
  margin: 0;
}

.geo__img {
  display: block;
  width: 100%;
  height: auto;
  /* Фото из медиатеки бывают портретными: держим единый широкий кадр. */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.5rem;
}

.geo__caption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6e7085;
}

/* ------------------------------------------------------------------ responsive */

@media screen and (max-width: 991px) {
  .geo__split {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .geo__grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .geo__title {
    font-size: 2.25rem;
  }
}

@media screen and (max-width: 767px) {
  .geo__blk {
    padding: 1.75rem;
    border-radius: 1.5rem;
  }

  .geo__grid--2,
  .geo__grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .geo__title {
    font-size: 1.875rem;
  }

  .geo__text--lead {
    font-size: 1.1875rem;
  }
}

/* ----------------------------------------------------------------- vertical rhythm inside columns
 * Правка 26.11.2026: внутри .geo__split лежат безымянные <div>-колонки, а gap родителя
 * (.geo__blk, .geo__col) действует только на ПРЯМЫХ детях. Из-за этого .geo__text--lead,
 * .geo__rows и .geo__note внутри колонки слипались: у .geo__text и .geo__rows margin: 0,
 * а отступ был прописан только для пары .geo__text + .geo__text.
 * Даём колонкам собственный flex-ритм; на разметку и другие макеты не влияет.
 */
.geo__split > div:not([class]),
.geo__col > div:not([class]) {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

/* Внутри заметки абзацы шли через <br> и без margin — слипались в один ком.
 * Переводим на нормальные отступы между абзацами, лишние <br> гасим. */
.geo__note p {
  margin: 0;
}

.geo__note p + p,
.geo__note br + p,
.geo__note p ~ p {
  margin-top: 0.7rem;
}

.geo__note br {
  display: none;
}

/* Для макетов, где элементы лежат прямо в .geo__blk вперемешку с списками и заметками. */
.geo__blk > .geo__text + .geo__rows,
.geo__blk > .geo__text + .geo__note,
.geo__blk > .geo__rows + .geo__text,
.geo__blk > .geo__rows + .geo__note,
.geo__blk > .geo__note + .geo__text,
.geo__blk > .geo__text + .geo__grid,
.geo__blk > .geo__text + .geo__figure {
  margin-top: 0.5rem;
}

/* Строки списка: если у какого-то макета нет разделителей, минимальный вертикальный зазор. */
.geo__rows {
  display: flex;
  flex-direction: column;
}

.geo__row + .geo__row {
  margin-top: 0;
}

/* Обёртка внутри шага (h3 + текст) — тоже безымянный div, gap родителя до него не достаёт. */
.geo__step > div:not([class]) {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

/* Внутри шага: подпись и текст не должны слипаться, если лежат прямо в li. */
.geo__step .geo__subtitle {
  margin: 0 0 0.35rem;
}