/* ============================================================
   Страницы «Услуги» и «Чекапы» + новый подвал (макет Page 2)
   Подключается после style.css
   ============================================================ */

/* ---------- Хлебные крошки и заголовок ---------- */

.page-top {
  padding-top: 6px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-47);
}

.crumbs a {
  color: var(--text-47);
  transition: color 0.2s;
}

.crumbs a:hover {
  color: var(--dark);
}

.crumbs__sep {
  color: var(--red);
}

.crumbs__current {
  color: var(--blue);
}

.page-h1 {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ============================================================
   Услуги (точные значения из макета)
   ============================================================ */

.uslugi {
  padding-top: 8px;
}

.uslugi__grid {
  display: grid;
  grid-template-columns: 451px minmax(0, 1fr);
  gap: 39px;
  align-items: start;
}

/* без min-width:0 строка фильтров с nowrap растягивает колонку */
.uslugi__side,
.uslugi__main {
  min-width: 0;
}

/* --- левая колонка --- */

.uslugi__h1 {
  margin: 18px 0 22px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

/* строка «Найдено N услуг» — над поиском, число меняется живым поиском и фильтрами */
.uslugi__count {
  margin: -10px 0 22px;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text-47);
}

.uslugi__search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 67px;
  padding: 0 37px 0 28px;
  border-radius: 18px;
  background: var(--grey-bg-2);
}

.uslugi__search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.uslugi__search input::placeholder {
  color: rgba(2, 13, 32, 0.24);
}

/* поиск раньше был <label> без кнопки, теперь <form> — лупа стала сабмитом
   для случая без JS, поэтому сбрасываем ей вид нативной кнопки */
.uslugi__search button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.uslugi__search button:hover {
  opacity: 1;
}

.cat-list {
  margin-top: 11px;
  padding: 0;
  list-style: none;
}

.cat-list__item {
  margin-bottom: 11px;
  border-radius: 18px;
  background: var(--grey-bg-2);
  transition: background 0.2s;
}

.cat-list__item a {
  display: flex;
  align-items: baseline;
  gap: 15px;
  min-height: 56px;
  padding: 16px 28px;
}

.cat-list__name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.cat-list__count {
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text-47);
}

.cat-list__item:hover {
  background: #e6ecf5;
}

/* активная категория — крупная красная карточка со счётчиком-пилюлей */
.cat-list__item.is-active {
  background: linear-gradient(16deg, #ed3237 39.4%, #ff777b 95.6%);
}

.cat-list__item.is-active a {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: 132px;
  padding: 28px;
}

.cat-list__item.is-active .cat-list__name {
  font-weight: 700;
  color: #fff;
}

.cat-list__item.is-active .cat-list__count {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 18px;
  background: #f04f53;
  color: #fff;
}

/* --- правая колонка --- */

.uslugi__tags {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  cursor: grab;
  scroll-behavior: smooth;
  /* подсказка: край подтаивает, пока ряд домотан не до конца */
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 100%);
          mask-image: linear-gradient(to right, #000 0, #000 100%);
  transition: -webkit-mask-image 0.2s, mask-image 0.2s;
}

.uslugi__tags.has-more {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent 100%);
}

.uslugi__tags.has-prev.has-more {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 56px), transparent 100%);
}

.uslugi__tags.has-prev {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 100%);
}

.uslugi__tags.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.uslugi__tags.is-dragging .filters__chip {
  user-select: none;
}

/* тот же ряд с прокруткой на главной */
.filters__list[data-scroll-row] {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  /* без min-width:0 ряд с nowrap растягивает всю страницу */
  min-width: 0;
  flex: 1 1 auto;
}

.filters__list[data-scroll-row]::-webkit-scrollbar {
  display: none;
}

.filters__list[data-scroll-row] .filters__chip {
  flex: none;
  white-space: nowrap;
}

.filters__list[data-scroll-row].is-dragging {
  cursor: grabbing;
}

.uslugi__tags::-webkit-scrollbar {
  display: none;
}

.uslugi__tags .filters__chip {
  flex: none;
  white-space: nowrap;
}

.uslugi__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.uslugi__empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  color: var(--text-47);
}

.svc-card {
  display: flex;
  flex-direction: column;
  min-height: 256px;
  padding: 29px 33px;
  border-radius: 18px;
  background: linear-gradient(142deg, #ebf0f7 28.5%, #eef4ff 97.6%);
}

.svc-card__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--dark);
  /* название приходит из донорского каталога и у части услуг растягивается
     на 3-4 строки — обрезаем, чтобы карточки в сетке не расползались по высоте */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.svc-card__list {
  flex: 1;
  margin: 18px 0 0;
  padding-left: 24px;
  list-style: disc;
}

.svc-card__list li {
  margin-top: 4px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(2, 13, 32, 0.66);
}

.svc-card__list li::marker {
  color: rgba(2, 13, 32, 0.66);
}

.svc-card__bottom {
  display: flex;
  align-items: center;
  /* цена бывает и коротким числом, и словами «По запросу» — переносим на новую
     строку вместо того, чтобы сжимать пилюлю или вылезать за карточку */
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 24px;
}

.svc-card__price {
  display: inline-flex;
  align-items: center;
  height: 35px;
  padding: 0 14px 0 12px;
  border-radius: 18px;
  background: #fff;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--blue);
  white-space: nowrap;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.svc-card__link img {
  width: 11px;
  height: 6px;
  transform: rotate(-90deg);
}

/* кнопку не убираем из DOM (её может вернуть живой поиск), а прячем атрибутом —
   но .blog__more уже задаёт свой display, и он перебивает display:none у [hidden] */
.uslugi__more[hidden] {
  display: none;
}

/* ============================================================
   Чекапы
   ============================================================ */

.chekapy {
  padding-top: 20px;
}

/* в макете серая подложка шире контейнера: 1440 против 1400, а карточки
   отступают от её края на 20px — отсюда отрицательные поля и padding 20 */
.chekapy__bg {
  margin: 0 -20px;
  background: var(--grey-bg-2);
  border-radius: 28px;
  padding: 48px 20px 56px;
}

.chekapy__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
}

.chekapy__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px 20px;
  margin-top: 40px;
}

/* карточка и кнопка — две части одной колонки: белый блок тянется на всю
   высоту строки, поэтому кнопки во всех карточках оказываются на одной линии */
.chk2-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chk2-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
}

.chk2-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
}

.chk2-card__badge img {
  width: 14px;
  height: 14px;
}

.chk2-card__title {
  margin-top: 16px;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.09;
  letter-spacing: -0.02em;
}

.chk2-card__list {
  flex: 1;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.chk2-card__list li {
  position: relative;
  padding-left: 16px;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.25;
  color: rgba(2, 13, 32, 0.62);
}

.chk2-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dark);
}

.chk2-card__price {
  margin-top: 18px;
  font-size: 16px;
  color: var(--text-47);
}

.chk2-card__price b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.chk2-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  /* из макета: кнопка 335×64 в 11px под карточкой */
  min-height: 64px;
  margin-top: 11px;
  border-radius: 32px;
  background: var(--dark);
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.2s;
}

.chk2-card__btn:hover {
  opacity: 0.88;
}

/* ============================================================
   Дополнения к подвалу
   ============================================================ */

/* раскладка ряда соцсетей задана в style.css по макету — здесь только цвет и ховер */
.footer__social {
  color: var(--red); /* currentColor задаёт фон иконки */
  transition: opacity 0.2s, transform 0.2s;
}

.footer__social:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* плашка дисклеймера описана в style.css — здесь оставалось правило от старой
   однострочной версии с рамкой, оно перебивало новые отступы и размер шрифта */

.review-card__source {
  font-size: 12px;
  color: var(--text-47);
}

/* значок площадки в углу карточки: высота фиксирована, ширина по пропорции */
.review-card__logo {
  height: 20px;
  width: auto;
  flex: none;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1099px) {
  .uslugi__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .uslugi__h1 { font-size: 40px; }
  .cat-list__item.is-active a { min-height: 0; padding: 20px 24px; }
  .chekapy__grid { grid-template-columns: repeat(2, 1fr); }
  .chekapy__bg { padding: 36px 24px 40px; }
  .page-h1, .chekapy__title { font-size: 34px; }
  .cat-list__item a { min-height: 48px; }
}

@media (max-width: 659px) {
  /* карточка слайдера на главной теперь свёрстана по макету Figma (иконка/фото/
     бейдж — абсолютным позиционированием), фиксированная высота обязательна;
     старое правило "height:auto" осталось от прежней плоской вёрстки и ломало
     новую раскладку (текст наезжал на ссылку «Записаться») — убрано. */
  .uslugi__cards { grid-template-columns: 1fr; }
  .uslugi__h1 { font-size: 32px; }
  .svc-card { padding: 22px 20px; min-height: 0; }
  .svc-card__title { font-size: 20px; }
  .uslugi__search { height: 56px; padding: 0 20px; }
  .chekapy__grid { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .page-h1, .chekapy__title { font-size: 28px; }
  .chekapy__bg { padding: 26px 16px 32px; border-radius: 20px; }
  /* карточка чекапа свёрстана под колонку 335px: заголовок 30px, поля 26,
     кнопка 64 — на телефоне одна карточка занимала весь экран */
  .chk2-card { padding: 20px; border-radius: 18px; }
  .chk2-card__badge { padding: 6px 12px; font-size: 14px; }
  .chk2-card__title { margin-top: 12px; font-size: 22px; }
  .chk2-card__list { margin-top: 10px; }
  .chk2-card__list li { margin-top: 6px; font-size: 15px; }
  .chk2-card__price { margin-top: 14px; font-size: 14px; }
  .chk2-card__price b { font-size: 20px; }
  .chk2-card__btn { min-height: 50px; margin-top: 8px; font-size: 16px; }
  .svc-card__bottom { flex-wrap: wrap; gap: 14px; }
  .footer__disclaimer-text { font-size: 11px; }
}

/* ============================================================
   Лайтбокс галереи
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.22s;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 13, 32, 0.62);
  backdrop-filter: blur(3px);
}

/* по макету: картинка 939px, поля 75 сверху/снизу и 123/124 по бокам —
   в боковых полях стоят стрелки, поэтому картинку они не поджимают */
.lightbox__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1186px, 100%);
  max-height: calc(100vh - 48px);
  padding: 75px 124px 75px 123px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(2, 13, 32, 0.35);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s;
}

.lightbox.is-open .lightbox__card {
  transform: none;
}

/* крестик */
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.lightbox__close:hover {
  background: var(--grey-bg-2);
}

.lightbox__close span {
  position: absolute;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: #9aa6b8;
}

.lightbox__close span:first-child { transform: rotate(45deg); }
.lightbox__close span:last-child { transform: rotate(-45deg); }

/* сцена с фото */
.lightbox__stage {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  display: none;
  width: 100%;
  max-height: calc(100vh - 240px);
  object-fit: contain;
  border-radius: 14px;
}

.lightbox__img.is-current {
  display: block;
  animation: lightbox-fade 0.25s ease;
}

@keyframes lightbox-fade {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: none; }
}

/* стрелки — по центру боковых полей: (123 - 52) / 2 ≈ 36 */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grey-bg-2);
  font-size: 19px;
  color: var(--dark);
  transition: background 0.18s, transform 0.18s;
}

.lightbox__nav--prev {
  left: 36px;
}

.lightbox__nav--next {
  right: 36px;
}

.lightbox__nav:hover {
  background: #e2e8f2;
  transform: translateY(-50%) scale(1.05);
}

.lightbox__caption {
  position: absolute;
  left: 123px;
  bottom: 30px;
  font-size: 14px;
  color: var(--text-47);
}

.lightbox__counter {
  position: absolute;
  right: 124px;
  bottom: 30px;
  font-size: 14px;
  color: var(--text-47);
}

/* на узких экранах поля макета съели бы саму картинку */
@media (max-width: 1099px) {
  .lightbox__card { padding: 56px 84px; }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
  .lightbox__caption { left: 84px; }
  .lightbox__counter { right: 84px; }
}

@media (max-width: 659px) {
  .lightbox__card { padding: 52px 14px 60px; border-radius: 20px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__caption { left: 16px; bottom: 20px; }
  .lightbox__counter { right: 16px; bottom: 20px; }
}

/* кликабельные превью в секции «О клинике» */
.about__photo-back,
.about__photo-front,
.about__gallery-link {
  cursor: pointer;
}

.about__gallery-link {
  border: none;
  background: none;
  font: inherit;
  padding: 0;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1099px) {
  .lightbox { padding: 14px; }
  .lightbox__card { padding: 52px 16px 40px; gap: 10px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 17px; }
  .lightbox__caption, .lightbox__counter { left: 20px; right: 20px; font-size: 13px; }
  .lightbox__counter { text-align: right; }
}

@media (max-width: 659px) {
  .lightbox__card { flex-wrap: wrap; justify-content: center; padding: 50px 12px 44px; }
  .lightbox__stage { order: -1; flex: 1 1 100%; }
  .lightbox__img { max-height: 60vh; }
}

/* ============================================================
   Детальная страница услуги
   ============================================================ */

.usluga { padding-top: 8px; }

.uhero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 612px;
  margin-top: 16px;
  padding: 56px 60px;
  border-radius: 28px;
  background: linear-gradient(23deg, #ed3237 39.4%, #ff777b 95.6%);
  overflow: hidden;
}

.uhero__content {
  position: relative;
  z-index: 2;
  width: 663px;
  max-width: 100%;
}

.uhero__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
}

.uhero__text {
  margin-top: 24px;
  max-width: 470px;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.uhero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.uhero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 44px;
  border-radius: 32px;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.uhero__btn:hover { opacity: 0.9; }
.uhero__btn--white { background: #fff; color: var(--dark); }
.uhero__btn--ghost { background: rgba(255, 255, 255, 0.2); color: #fff; }

.uhero__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 52%;
  object-fit: contain;
  object-position: bottom right;
}

/* --- преимущества --- */

.ubenefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.ubenefit {
  display: flex;
  flex-direction: column;
  min-height: 351px;
  padding: 30px;
  border-radius: 22px;
  background: var(--grey-bg);
}

.ubenefit__icon { width: 34px; height: 34px; }

/* Узор из квадратов растёт от карточки к карточке. Первые два стоят в ряд
   через отступ, а третий и четвёртый складываются в шахматку вплотную:
   ▪ ▫ ▪ / ▫ ▪ ▫ — как в макете. */
.ubenefit__dots {
  display: grid;
  gap: 8px;
  grid-auto-flow: column;
  /* без явной ширины колонок треки auto растягиваются на всю карточку
     и квадраты разъезжаются по её краям */
  grid-auto-columns: 22px;
  justify-content: start;
}

.ubenefit__dots i {
  width: 22px;
  height: 22px;
  background: var(--blue-tag-bg);
  border-radius: 2px;
}

.ubenefit__dots--3,
.ubenefit__dots--4 {
  grid-auto-flow: row;
  grid-template-rows: repeat(2, 22px);
  gap: 0;
}

.ubenefit__dots--3 { grid-template-columns: repeat(3, 22px); }
.ubenefit__dots--4 { grid-template-columns: repeat(4, 22px); }

.ubenefit__dots--3 i:nth-child(1),
.ubenefit__dots--4 i:nth-child(1) { grid-area: 1 / 1; }

.ubenefit__dots--3 i:nth-child(2),
.ubenefit__dots--4 i:nth-child(2) { grid-area: 1 / 3; }

.ubenefit__dots--3 i:nth-child(3),
.ubenefit__dots--4 i:nth-child(3) { grid-area: 2 / 2; }

.ubenefit__dots--4 i:nth-child(4) { grid-area: 2 / 4; }

/* в макете заголовок идёт сразу под значком, а описание прижато к низу карточки */
.ubenefit__title {
  margin-top: 40px;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.09;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.ubenefit__text {
  margin-top: auto;
  padding-top: 24px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.25;
  color: rgba(2, 13, 32, 0.66);
}

/* --- как проходит процедура --- */

.uprocess {
  padding-top: 96px;
  text-align: center;
}

.uprocess__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 59px;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.uprocess__lead {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 16px;
  color: var(--text-47);
}

/* стопка слоёв: основной блок с «тенями»-ступеньками под ним */
.uprocess__stack {
  position: relative;
  width: 730px;
  max-width: 100%;
  margin: 44px auto 0;
  padding-bottom: 34px;
}

/* стопка под карточкой — статичные плашки из макета, они не участвуют в слайдере */
.uprocess__card {
  position: relative;
  z-index: 3;
  height: 269px;
}

/* каждая карточка — отдельный слайд Swiper (effect: creative) */
.uprocess__slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 269px;
  padding: 0 24px;
  text-align: center;
  border-radius: 18px;
  background: var(--blue);
}

.uprocess__layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 18px;
}

.uprocess__layer--2 {
  z-index: 2;
  top: 0;
  width: 646px;
  max-width: 92%;
  height: 100%;
  background: #9dbae8;
}

.uprocess__layer--3 {
  z-index: 1;
  top: 34px;
  width: 550px;
  max-width: 80%;
  height: 100%;
  background: #b1caf3;
}

/* при смене карточки стопка подтягивается вверх вслед за уходящей — волной,
   поэтому у нижней плашки старт с задержкой */
.uprocess__stack.is-shift .uprocess__layer--2 {
  animation: uprocess-layer 600ms ease;
}

.uprocess__stack.is-shift .uprocess__layer--3 {
  animation: uprocess-layer 600ms ease 90ms;
}

@keyframes uprocess-layer {
  0% { transform: translateX(-50%) translateY(0) scaleX(1); }
  40% { transform: translateX(-50%) translateY(-13px) scaleX(1.035); }
  100% { transform: translateX(-50%) translateY(0) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .uprocess__stack.is-shift .uprocess__layer--2,
  .uprocess__stack.is-shift .uprocess__layer--3 { animation: none; }
}

.uprocess__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 30px;
  border-radius: 51px;
  background: rgba(255, 255, 255, 0.11);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: #fff;
}

.uprocess__badge img { filter: brightness(0) invert(1); }

.uprocess__duration {
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
}

.uprocess__cta {
  margin-top: 70px;
  height: 56px;
  font-size: 17px;
  max-width: 400px;
  width: 100%;
}

/* ============================================================
   Врачи — список
   ============================================================ */

.docs { padding-top: 26px; }

.docs__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.docs__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.docs__note {
  max-width: 250px;
  text-align: right;
  font-size: 15px;
  color: var(--text-47);
}

.docs__note b { color: var(--red); }

.docs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 17px;
  margin-top: 34px;
}

.doc-card__photo {
  display: block;
  height: 340px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(92, 131, 195, 0.2), rgba(29, 147, 210, 0.2));
}

.doc-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s;
}

.doc-card__photo:hover img { transform: scale(1.03); }

.doc-card__name {
  margin-top: 16px;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.09;
  letter-spacing: -0.02em;
}

.doc-card__name a:hover { color: var(--red); }

.doc-card__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-47);
}

/* стоимость приёма в карточке списка врачей */
.doc-card__price {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-47);
}

.doc-card__price b {
  font-weight: 500;
  color: var(--dark);
}

.doc-card.is-hidden { display: none; }

.docs__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 210px;
  height: 48px;
  margin: 40px auto 0;
  border-radius: 26px;
  background: var(--grey-bg);
  font-size: 15px;
  color: var(--dark);
  transition: background 0.2s;
}

.docs__more:hover { background: #dde5f0; }
.docs__more-arrow { font-size: 18px; line-height: 1; }

.aibot__bg--light {
  background: var(--pink-bg);
  height: auto;
  padding: 40px 0;
}

/* ============================================================
   Карточка врача
   ============================================================ */

.doc { padding-top: 20px; }

.doc__hero {
  display: grid;
  grid-template-columns: 640px minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

/* в макете фото — подложка карточки во всю её высоту, а «Миссия» и кнопка
   лежат поверх него; поэтому фото выведено из потока, а тексту поднят слой */
.doc__photo-block {
  position: relative;
  min-height: 550px;
  padding: 28px;
  border-radius: 28px;
  background: var(--grey-bg-2);
  overflow: hidden;
}

.doc__city,
.doc__mission-label,
.doc__mission {
  position: relative;
  z-index: 1;
  /* оба ярлыка — span'ы: без block они встают в одну строку */
  display: block;
}

.doc__city {
  font-size: 13px;
  color: var(--text-47);
}

.doc__mission-label {
  margin-top: 14px;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: rgba(2, 13, 32, 0.28);
}

.doc__mission {
  margin-top: 6px;
  max-width: 349px;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* по макету высота фото 623px и оно упирается в нижний край карточки */
.doc__photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 450px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
}

.doc__cta {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  height: 52px;
  font-size: 18px;
  padding: 0 30px;
}

.doc__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* у основной специализации в макете стоит красный квадратик-маркер */
.doc__spec:first-child::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  background: var(--red);
}

.doc__spec {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 15px;
  border-radius: 35px;
  background: rgba(92, 131, 195, 0.12);
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(2, 13, 32, 0.5);
}

.doc__name {
  margin-top: 22px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.doc__name span { display: block; }

.doc__position {
  margin-top: 16px;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text-47);
}

/* правая колонка тянется на высоту карточки, показатели прижаты к её низу —
   в макете их подписи стоят вровень с нижним краем фото */
.doc__info {
  display: flex;
  flex-direction: column;
}

/* в макете показатели — не карточки, а три колонки с тонкими разделителями,
   число сверху, подпись прижата к низу блока */
.doc__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  padding-top: 60px;
}

.doc__stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 142px;
  padding: 0 28px; /* уже — иначе «клинической практики» ломается на две строки */
}

.doc__stat:first-child {
  padding-left: 0;
}

.doc__stat:last-child {
  padding-right: 0;
}

.doc__stat + .doc__stat {
  border-left: 1px solid rgba(2, 13, 32, 0.12);
}

.doc__stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 40px;
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.doc__stat span {
  display: block;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(2, 13, 32, 0.34);
}

/* вехи */
.doc__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 30px;
  margin-top: 60px;
}

.doc-fact h3 {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.doc-fact h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--red);
}

.doc-fact p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(2, 13, 32, 0.6);
}

/* дипломы */
.diplomas { padding-top: 70px; }

.diplomas__bg {
  background: var(--dark);
  border-radius: 28px;
  padding: 70px 60px;
  text-align: center;
  color: #fff;
}

.diplomas__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 54px;
  letter-spacing: -0.03em;
}

.diplomas__title span { font-weight: 700; font-style: italic; }

/* в макете текст под заголовком крупный (32px), а не мелкая подпись —
   в старой вёрстке был занижен вдвое (16px) */
.diplomas__text {
  max-width: 700px;
  margin: 24px auto 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.47);
}

.diplomas__text span { color: #fff; font-weight: 500; }

.diplomas__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 50px;
}

.diplomas__row img {
  width: 100%;
  border-radius: 8px;
  background: #fff;
}

/* ============================================================
   Адаптив новых страниц
   ============================================================ */

@media (max-width: 1099px) {
  .uhero { min-height: 0; padding: 40px 28px; flex-direction: column; align-items: stretch; }
  .uhero__content { width: auto; }
  .uhero__title { font-size: 40px; }
  .uhero__photo { position: static; max-width: none; width: 100%; height: auto; margin-top: 28px; object-position: center; }
  .ubenefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ubenefit { min-height: 0; padding: 24px; }
  .ubenefit__title { font-size: 24px; margin-top: 24px; }
  .uprocess { padding-top: 60px; }
  .uprocess__title { font-size: 36px; }
  .uprocess__badge { height: 48px; font-size: 22px; padding: 0 22px; }
  .uprocess__card,
  .uprocess__slide { height: 220px; }

  .docs__head { flex-direction: column; }
  .docs__note { text-align: left; max-width: none; }
  .docs__title { font-size: 40px; }
  .docs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .doc__hero { grid-template-columns: minmax(0, 1fr); }
  .doc__photo-block { padding-bottom: 96px; }
  .doc__name { font-size: 40px; margin-top: 18px; }
  .doc__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diplomas__bg { padding: 44px 24px; }
  .diplomas__title { font-size: 34px; }
  .diplomas__text { font-size: 22px; max-width: 560px; }
  .diplomas__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 659px) {
  .uhero__title { font-size: 30px; }
  .uhero__btn { width: 100%; height: 54px; font-size: 16px; }
  .ubenefits { grid-template-columns: minmax(0, 1fr); }
  .uprocess__title { font-size: 28px; }
  .uprocess__stack { padding-bottom: 22px; }
  .uprocess__card,
  .uprocess__slide { height: 180px; }
  .uprocess__slide { gap: 14px; }
  .uprocess__badge { font-size: 18px; height: 42px; }
  .docs__grid { grid-template-columns: minmax(0, 1fr); }
  /* Цифры врача свёрстаны в три колонки: высота 142px, подпись прижата к низу,
     разделитель слева. В одну колонку это давало лесенку с провалами между
     числом и подписью — на телефоне складываем их простым списком. */
  .doc__stats { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 28px; }
  .doc__stat {
    min-height: 0;
    justify-content: flex-start;
    gap: 6px;
    padding: 0;
  }
  .doc__stat + .doc__stat {
    border-left: 0;
    border-top: 1px solid rgba(2, 13, 32, 0.12);
    padding-top: 16px;
  }
  .doc__stat b { font-size: 32px; }
  .doc__facts { grid-template-columns: minmax(0, 1fr); }
  .diplomas__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diplomas__text { font-size: 18px; max-width: none; }
  .doc__name { font-size: 32px; }
}

/* дипломы кликабельны — открывают лайтбокс */
.diplomas__item {
  display: block;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}

.diplomas__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.diplomas__item img {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: #fff;
}

/* блок ИИ-бота на светлой подложке: 3D-картинка крупнее и заходит на чат */
.aibot__bg--light .aibot__panel { background: none; }

.aibot__bg--light .aibot__3d {
  left: 360px;
  top: -10px;
  width: 470px;
  height: 470px;
  z-index: 2;
}

/* ============================================================
   Лайтбокс видео-отзывов
   ============================================================ */

.vlightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.22s;
}

.vlightbox[hidden] { display: none; }
.vlightbox.is-open { opacity: 1; }

.vlightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 13, 32, 0.72);
  backdrop-filter: blur(3px);
}

.vlightbox__card {
  position: relative;
  width: min(940px, 100%);
  border-radius: 22px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 13, 32, 0.45);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s;
}

.vlightbox.is-open .vlightbox__card { transform: none; }

.vlightbox__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.vlightbox__frame iframe,
.vlightbox__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.vlightbox__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
}

.vlightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(2, 13, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.vlightbox__close:hover { background: rgba(2, 13, 32, 0.8); }

.vlightbox__close span {
  position: absolute;
  width: 16px;
  height: 1.8px;
  border-radius: 2px;
  background: #fff;
}

.vlightbox__close span:first-child { transform: rotate(45deg); }
.vlightbox__close span:last-child { transform: rotate(-45deg); }

/* превью видео кликабельно целиком */
.video-card button { cursor: pointer; }

@media (max-width: 659px) {
  .vlightbox { padding: 12px; }
  .vlightbox__card { border-radius: 16px; }
}

/* ============================================================
   Блог: список статей и страница статьи
   (макеты «Статьи в блоге» и «Статья», значения — из фрейма 1440×…)
   ============================================================ */

.blog { padding-top: 8px; }

.blog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
}

.blog__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* ---------- Пилюля поиска: список блога и сайдбар статьи ---------- */
.search-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 275px;
  flex: none;
  height: 67px;
  padding: 0 20px 0 28px;
  border-radius: 32px;
  background: var(--grey-bg-2);
}

.search-pill input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  outline: none;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.search-pill input::placeholder { color: rgba(2, 13, 32, 0.24); }

.search-pill button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.search-pill button:hover { opacity: 1; }

/* ---------- Ряд рубрик: тот же паттерн прокрутки, что и на главной/уcлугах ---------- */
.blog__filters { margin-top: 28px; }

.blog__filters.has-more {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent 100%);
}

.blog__filters.has-prev.has-more {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 56px), transparent 100%);
}

.blog__filters.has-prev {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 100%);
}

/* ---------- Шапка блога: плашка, заголовок и поиск по центру ---------- */
.blog__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 24px;
}

.blog__hero-title {
  margin-top: 20px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.blog__hero-text {
  margin-top: 16px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-47);
}

.blog__search {
  width: 100%;
  max-width: 470px;
  margin-top: 26px;
}

/* ---------- «Последние публикации» + «Важно знать» ---------- */
.blog__latest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 300px;
  gap: 34px 24px;
  margin-top: 44px;
}

/* заголовок ряда с линией до края колонки — как в макете */
.blog__rowhead {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog__rowhead--main { grid-column: 1 / 4; }
.blog__rowhead--aside { grid-column: 4; }

.blog__rowhead-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.blog__rowhead-line {
  flex: 1;
  height: 1px;
  background: rgba(92, 131, 195, 0.35);
}

/* крупная карточка занимает две колонки первого ряда */
.post-hero {
  position: relative;
  grid-column: 1 / 3;
  display: block;
  min-height: 375px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
}

.post-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* текст лежит на снимке, поэтому низ затемняем */
.post-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(2, 13, 32, 0.82), rgba(2, 13, 32, 0));
}

.post-hero__date {
  position: absolute;
  left: 26px;
  top: 24px;
  z-index: 2;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.post-hero__body {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 2;
  display: block;
}

.post-hero__title {
  display: block;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.post-hero__text {
  display: block;
  margin-top: 12px;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.blog__aside {
  grid-column: 4;
  grid-row: 2 / span 2;
  align-self: stretch;
}

.blog__all-title {
  margin-top: 72px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
}

/* ---------- Сетка карточек статей: список блога и «Похожие статьи» ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 24px;
  margin-top: 44px;
}

.blog__empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  color: var(--text-47);
}

.blog__more {
  display: flex;
  margin: 46px auto 0;
  padding: 0 40px;
  width: max-content;
}

/* ссылка на всю карточку — див должен вести себя как блок */
.post__img { display: block; }

/* карточки блога радиусом крупнее, чем на главной, — точное значение из макета */
.post-grid .post__img,
.featured-band .post__img { border-radius: 22px; }

/* ---------- Строка с итогами поиска ---------- */
.blog__result {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
}

.blog__result-text {
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-47);
}

.blog__result-text b {
  font-weight: 500;
  color: var(--dark);
}

.blog__result-reset {
  font-size: 15px;
  color: var(--red);
  border-bottom: 1px solid rgba(237, 50, 55, 0.35);
  transition: border-color 0.2s;
}

.blog__result-reset:hover {
  border-color: var(--red);
}

/* ---------- «Показать ещё»: спиннер на время запроса ---------- */
.blog__more {
  position: relative;
}

.blog__more-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: blog-more-spin 0.7s linear infinite;
}

.blog__more.is-loading {
  pointer-events: none; /* второй клик не отправит запрос повторно */
  opacity: 0.85;
}

.blog__more.is-loading .blog__more-spinner {
  display: inline-block;
}

@keyframes blog-more-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .blog__more-spinner { animation-duration: 2s; }
}

/* ---------- Блок «выделенные статьи»: крупная карточка + стопка мелких ---------- */
.featured-band {
  display: grid;
  grid-template-columns: 353px minmax(0, 1fr);
  gap: 36px;
  margin-top: 64px;
  margin-bottom: 64px; /* блок не прилипает к следующей секции и подвалу */
}

.featured-band__stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* в стопке карточка короткая — под заголовком сразу просмотры и дата */
.post__bottom--compact {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.post__dot {
  color: var(--grey-text);
}

.featured-band__big { position: relative; display: block; }

.featured-band__img {
  height: 504px;
  border-radius: 22px;
  overflow: hidden;
}

.featured-band__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-band__big .post__tag { margin-top: 14px; display: inline-flex;}

.featured-band__title {
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 748px;
}

.featured-band__meta {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  font-size: 16px;
  color: var(--grey-text);
}

.featured-band__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.featured-band__read { color: var(--red); font-weight: 500; }

/* ============================================================
   Страница статьи
   ============================================================ */

.artpage { padding-top: 8px; }

.artpage .crumbs__current {
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artpage__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 353px;
  gap: 36px;
  align-items: start;
  margin-top: 18px;
}

.artpage__hero {
  margin-top: 28px;
  height: 504px;
  border-radius: 22px;
  overflow: hidden;
}

.artpage__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* теги идут строкой под подзаголовком, а не над картинкой */
.artpage__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.artpage__tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 29px;
  background: var(--grey-bg);
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.artpage__title {
  margin-top: 20px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.artpage__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--grey-text);
}

/* кружок с ключом перед датой — как в макете статьи */
.artpage__meta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f2f7e0;
  flex: none;
}

.artpage__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.artpage__lead {
  margin-top: 16px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dark);
}

/* ---------- Тело статьи: HTML из редактора админки, без Html::encode ---------- */
.article__body {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.38;
  font-weight: 300;
  color: var(--dark);
}

.article__body p { margin: 0 0 24px; }
.article__body p:last-child { margin-bottom: 0; }

.article__body h2,
.article__body h3 {
  margin: 40px 0 20px;
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.article__body h2 { font-size: 28px; }
.article__body h3 { font-size: 22px; }

.article__body ul {
  margin: 0 0 24px;
  padding-left: 30px;
  list-style: disc;
}

.article__body li { margin-bottom: 10px; }
.article__body li:last-child { margin-bottom: 0; }

.article__body img {
  display: block;
  width: 100%;
  height: 504px;
  object-fit: cover;
  border-radius: 22px;
  margin: 8px 0 32px;
}

/* цитата в рамке: серая плашка, как в макете (узел 260:16) */
.article__body blockquote {
  margin: 32px 0;
  padding: 38px;
  border-radius: 22px;
  background: var(--grey-bg);
  font-size: 20px;
  line-height: 1.38;
}

.article__body blockquote p { margin: 0 0 16px; }
.article__body blockquote p:last-child { margin-bottom: 0; }

.article__body blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 400;
  color: var(--blue);
}

/* ---------- Сайдбар: поиск, карточки, «Важно знать» ---------- */
.artpage__sidebar { display: flex; flex-direction: column; gap: 36px; }

.artpage__side-cards { display: flex; flex-direction: column; gap: 36px; }

.artpage__side-cards .post__title,
.artpage__side-cards .post__text { max-width: none; }

.artpage__important {
  padding: 24px;
  border-radius: 22px;
  background: var(--grey-bg);
}

.artpage__important-title {
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.artpage__important-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.artpage__important-item { display: block; }

.artpage__important-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.artpage__important-cat {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.artpage__important-date {
  font-size: 14px;
  color: var(--text-47);
}

.artpage__important-item p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.38;
  color: var(--dark);
  transition: color 0.2s;
}

.artpage__important-item:hover p { color: var(--red); }

.artpage__important-more {
  display: inline-block;
  margin-top: 22px;
  font-weight: 500;
  font-size: 16px;
  color: var(--red);
}

.artpage__related { margin-top: 80px; }

/* ============================================================
   Адаптив блога и страницы статьи
   ============================================================ */

@media (max-width: 1099px) {
  /* витрина блога: боковой список уходит под карточки, крупная плитка ниже */
  .blog__latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog__rowhead--main { grid-column: 1 / -1; }
  /* порядком двигаем боковой список с его заголовком под карточки */
  .blog__rowhead--aside { grid-column: 1 / -1; margin-top: 12px; order: 1; }
  .post-hero { grid-column: 1 / -1; min-height: 320px; }
  .blog__aside { grid-column: 1 / -1; grid-row: auto; order: 2; }
  .blog__hero-title, .blog__all-title { font-size: 36px; }

  .blog__head { flex-direction: column; align-items: flex-start; }
  .search-pill { width: 100%; }

  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }

  .featured-band { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .featured-band__stack { flex-direction: row; }
  .featured-band__stack .post { flex: 1 1 0; min-width: 0; }
  .featured-band__img { height: 380px; }
  .featured-band__title { font-size: 28px; }

  .artpage__layout { grid-template-columns: minmax(0, 1fr); }
  .artpage__hero { height: 380px; }
  .artpage__title { font-size: 34px; max-width: none; }
  .artpage__side-cards { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .artpage__side-cards .post { flex: 0 0 280px; }
  .article__body img { height: 360px; }
}

@media (max-width: 659px) {
  .blog__title { font-size: 26px; }

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

  .featured-band__stack { flex-direction: column; }
  .featured-band__img { height: 220px; }
  .featured-band__title { font-size: 22px; }

  .artpage__hero { height: 220px; }
  .artpage__title { font-size: 26px; }
  .blog__latest { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .post-hero { min-height: 260px; }
  .post-hero__title { font-size: 20px; }
  .post-hero__text { display: none; }
  .blog__hero { padding-top: 12px; }
  .blog__hero-title, .blog__all-title { font-size: 28px; }
  .blog__all-title { margin-top: 40px; }
  .blog__rowhead-title { font-size: 20px; }
  .artpage__meta { flex-wrap: wrap; gap: 14px; }
  .artpage__lead,
  .article__body { font-size: 17px; }
  .article__body img { height: 220px; }
  .artpage__side-cards { flex-direction: column; }
  .artpage__side-cards .post { flex: none; }
  .artpage__important { padding: 20px; }
  .artpage .crumbs__current { max-width: 200px; }
}

/* ============================================================
   Юридические страницы (политика, соглашение, юр. информация)
   ============================================================ */

.legal {
  padding-top: 20px;
}

.legal__card {
  background: var(--grey-bg-2);
  border-radius: 28px;
  padding: 64px 40px;
}

.legal__title {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
}

/* размеры из макета: колонка 974px, Inter Display 16/1.1, трекинг -2% */
.legal__body {
  max-width: 974px;
  margin: 40px auto 0;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.legal__body p {
  margin: 0 0 16px;
}

.legal__body p:last-child {
  margin-bottom: 0;
}

.legal__body h2,
.legal__body h3 {
  margin: 28px 0 12px;
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.25;
}

.legal__body h2 {
  font-size: 22px;
}

.legal__body h3 {
  font-size: 18px;
}

.legal__body ul,
.legal__body ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal__body li + li {
  margin-top: 6px;
}

.legal__body a {
  color: var(--blue);
  text-decoration: underline;
}

.legal__stub {
  color: var(--text-47);
  text-align: center;
}

@media (max-width: 1099px) {
  .legal__card { padding: 48px 28px; }
  .legal__title { font-size: 32px; }
}

@media (max-width: 659px) {
  .legal__card { padding: 32px 16px; border-radius: 20px; }
  .legal__title { font-size: 26px; }
  .legal__body { max-width: none; }
}

/* ============================================================
   Запись к врачу (frontend/web/js/booking.js)
   ============================================================ */

.booking { padding-top: 60px; }

.booking__inner {
  padding: 48px;
  border-radius: 28px;
  background: var(--grey-bg-2);
}

.booking__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
}

.booking__subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: var(--text-47);
}

/* стоимость приёма — под подзаголовком блока записи */
.booking__price {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-47);
}

.booking__price b {
  font-weight: 500;
  color: var(--dark);
}

/* ---------- Статус расписания: скелет / сообщение (нет слотов, ошибка SDK) ---------- */
.booking__status { margin-top: 24px; }
.booking__status[hidden] { display: none; }

.booking__skeleton {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 14px;
  background: #fff;
}

.booking__skeleton[hidden] { display: none; }

.booking__skeleton-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking__skeleton-chip,
.booking__skeleton-pill {
  background: linear-gradient(90deg, var(--grey-bg) 25%, #f8fafd 37%, var(--grey-bg) 63%);
  background-size: 400% 100%;
  animation: booking-shimmer 1.4s ease infinite;
}

.booking__skeleton-chip {
  width: 64px;
  height: 56px;
  border-radius: 14px;
}

.booking__skeleton-pill {
  width: 84px;
  height: 40px;
  border-radius: 999px;
}

@keyframes booking-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .booking__skeleton-chip,
  .booking__skeleton-pill { animation: none; }
}

.booking__message {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-47);
}

.booking__message[hidden] { display: none; }
.booking__message p { margin: 0; }

.booking__retry {
  justify-self: start;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(2, 13, 32, 0.16);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.booking__retry:hover { border-color: var(--red); color: var(--red); }
.booking__retry[hidden] { display: none; }

.booking__retry:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Двухколоночная раскладка: слева даты/время, справа форма ---------- */
.booking__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: start;
  gap: 32px 48px;
  margin-top: 28px;
}

.booking__body[hidden] { display: none; }

.booking__picker {
  display: grid;
  gap: 24px;
}

.booking__picker[hidden] { display: none; }

.booking__group {
  display: grid;
  gap: 12px;
}

/* счётчик свободных окон держим рядом с подписью: при justify-content:
   space-between он улетал к правому краю колонки и читался как отдельный блок */
.booking__group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.booking__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-47);
}

.booking__slots-count {
  font-size: 13px;
  color: var(--text-47);
}

.booking__dates,
.booking__times {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking__date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 64px;
  padding: 10px 14px;
  border: 1px solid rgba(2, 13, 32, 0.14);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.booking__date-dow {
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--text-47);
}

.booking__date-num {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.booking__date:hover {
  border-color: var(--red);
}

.booking__date.is-active {
  background: var(--dark);
  border-color: var(--dark);
}

.booking__date.is-active .booking__date-dow,
.booking__date.is-active .booking__date-num {
  color: #fff;
}

.booking__time {
  position: relative;
  padding: 10px 18px;
  border: 1px solid rgba(2, 13, 32, 0.14);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.booking__time:hover {
  border-color: var(--red);
  color: var(--red);
}

.booking__time.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* галочка на выбранных дате/времени — состояние читается и без цвета (ч/б, печать) */
.booking__date.is-active::after,
.booking__time.is-active::after {
  content: '✓';
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.booking__date:focus-visible,
.booking__time:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---------- Правая колонка: сводка выбора + форма ---------- */
.booking__panel {
  display: grid;
  gap: 20px;
}

.booking__panel[hidden] { display: none; }

.booking__summary {
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(2, 13, 32, 0.1);
  background: #fff;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text-47);
}

/* заполненная сводка — тёмная плашка, чтобы выбор читался с одного взгляда */
.booking__summary.is-filled {
  border-color: transparent;
  background: var(--dark);
  color: #fff;
  font-weight: 500;
}

.booking__form {
  display: grid;
  gap: 20px;
}

.booking__fields {
  display: grid;
  gap: 16px;
}

.booking__field {
  display: grid;
  gap: 8px;
}

.booking__input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(2, 13, 32, 0.16);
  border-radius: 14px;
  background: #fff;
  outline: none;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.booking__input::placeholder {
  color: rgba(2, 13, 32, 0.32);
}

.booking__input:focus {
  border-color: var(--blue);
}

.booking__input:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(92, 131, 195, 0.22);
}

.booking__input.is-error {
  border-color: var(--red);
}

.booking__field-error {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: var(--red);
}

.booking__field-error[hidden] { display: none; }

.booking__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-47);
  cursor: pointer;
}

.booking__agree input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

.booking__agree input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.booking__form-error {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--pink-bg);
  font-size: 14px;
  line-height: 1.4;
  color: var(--red);
}

.booking__form-error[hidden] { display: none; }

.booking__submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.booking__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  height: 56px;
  font-size: 17px;
}

.booking__submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.booking__submit.is-loading {
  opacity: 0.85;
  cursor: progress;
}

.booking__submit:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 3px;
}

/* спиннер кнопки — виден только в состоянии отправки */
.booking__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: booking-spin 0.7s linear infinite;
}

.booking__submit.is-loading .booking__spinner { display: inline-block; }

@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .booking__spinner { animation-duration: 2s; }
}

.booking__submit-hint {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-47);
}

.booking__submit-hint[hidden] { display: none; }

.booking__success {
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: 14px;
  background: var(--green);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
}

/* в блоке два абзаца, а глобальный сброс обнуляет margin у всего */
.booking__success p + p { margin-top: 10px; }

.booking__success[hidden] { display: none; }

@media (max-width: 1099px) {
  .booking { padding-top: 44px; }
  .booking__inner { padding: 36px 24px; border-radius: 22px; }
  .booking__title { font-size: 28px; }
}

/* ниже этой ширины форма контактов уезжает под блок выбора даты/времени */
@media (max-width: 899px) {
  .booking__body { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 659px) {
  .booking__inner { padding: 28px 18px; }
  .booking__title { font-size: 24px; }
  .booking__date { min-width: 56px; padding: 8px 10px; }
  .booking__input { height: 48px; }
  .booking__submit-row { flex-direction: column; align-items: stretch; }
  .booking__submit { width: 100%; height: 52px; font-size: 16px; }
}

/* ============================================================
   Детальная страница чекапа /chekapy/<slug> (макет «Чекап открытый»)
   Слева фото + герой-карточка, справа (в одну колонку шириной с карточку)
   программа и итоги — блоки 3–5 в макете не растянуты на всю ширину.
   ============================================================ */

.chk { padding-top: 8px; }

.chk-layout {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 16px;
}

/* Фото едет вместе со страницей: правая колонка длинная, левая иначе пустует.
   Шапка не залипает, поэтому отступ сверху нужен только для воздуха. */
.chk-photo {
  position: sticky;
  top: 20px;
  flex: 0 0 666px;
  width: 666px;
  height: 474px;
  border-radius: 28px;
  overflow: hidden;
}

/* вырезка вписывается в подложку целиком, иначе cover срезал бы голову */
.chk-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

/* колонка ровно по ширине геро-карточки — под ней и стоят программа/итоги */
.chk-right {
  flex: 0 0 719px;
  width: 719px;
  max-width: 100%;
}

.chk-hero {
  box-sizing: border-box;
  padding: 32px;
  border-radius: 22px;
  background: var(--grey-bg);
  min-height: 474px;
}

.chk-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 45px;
  padding: 0 20px;
  border-radius: 30px;
  background: #fff;
  font-size: 16px;
  color: var(--dark);
}

.chk-hero__dot { flex: none; width: 7px; height: 7px; background: var(--red); }

.chk-hero__title {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 48px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--red);
}

.chk-hero__text {
  margin-top: 18px;
  max-width: 512px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--dark);
}

.chk-hero__list {
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-top: 24px;
  list-style: none;
}

.chk-hero__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  line-height: 1.1;
  color: var(--dark);
}

.chk-hero__list li i { flex: none; width: 10px; height: 10px; background: var(--red); }

.chk-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 33px;
}

.chk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 37px 0 38px;
  border-radius: 32px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  transition: opacity 0.2s;
}

.chk-btn:hover { opacity: 0.9; }
.chk-btn--red { background: var(--red); color: #fff; }
.chk-btn--ghost { background: none; border: 1.5px solid var(--blue); color: var(--blue); font-weight: 400; }
.chk-btn--wide { display: flex; width: 100%; margin-top: 32px; }

/* --- что входит в программу --- */

.chk-program { margin-top: 32px; }

.chk-program__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.chk-program__lead {
  margin-top: 14px;
  max-width: 436px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.3;
  color: var(--dark);
}

.chk-group { margin-top: 40px; }
.chk-program__lead + .chk-group { margin-top: 56px; }

.chk-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chk-group__icon { width: 22px; height: 20px; }

.chk-group__title {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  color: var(--dark);
}

/* Таблетки-чипы: часть реальных данных — короткие термины («Альбумин»), часть —
   связный текст до 300+ символов (донорские данные), поэтому высота тянется,
   а не зафиксирована — 60px получается сама на одной строке за счёт паддингов. */
.chk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 20px;
}

.chk-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: auto;
  min-height: 60px;
  padding: 21px 22px 21px 19px;
  border: 1.5px solid var(--blue-tag-bg);
  border-radius: 30px; /* половина min-height, а не 50% — иначе многострочная таблетка ломается в овал */
  color: var(--blue);
  font-size: 16px;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere; /* длинные латинские аббревиатуры (sTfR и т.п.) не рвут сетку */
}

/* --- что вы получите в итоге --- */

.chk-results { margin-top: 64px; }

.chk-results__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--red);
}

.chk-results__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.chk-result {
  box-sizing: border-box;
  padding: 26px 34px;
  border-radius: 22px;
  background: var(--grey-bg);
}

.chk-result__dot { display: block; width: 10px; height: 10px; background: var(--red); }

.chk-result__title {
  margin-top: 14px;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: var(--dark);
}

.chk-result__text {
  margin-top: 16px;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.25;
  color: var(--dark);
}

@media (max-width: 1099px) {
  .chk-layout { flex-direction: column; }
  .chk-photo,
  .chk-right { width: 100%; flex: none; }
  /* колонки встали друг под друга — залипать фото уже некуда */
  .chk-photo { position: static; height: auto; aspect-ratio: 666 / 474; }
  .chk-hero__title { font-size: 40px; }
  .chk-results__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 659px) {
  .chk-hero { padding: 24px; }
  .chk-hero__title { font-size: 30px; }
  .chk-hero__text { max-width: none; }
  .chk-hero__buttons { flex-direction: column; align-items: stretch; }
  .chk-btn { width: 100%; }
  .chk-program__lead { max-width: none; }
  .chk-program__lead + .chk-group { margin-top: 40px; }
  .chk-results__title,
  .chk-program__title { font-size: 26px; }
}

/* ============================================================
   Модалка заявки на странице чекапа (.chkm__*)
   Кнопка «Пройти чекап в Москве» открывает её вместо прыжка к форме
   внизу страницы — см. frontend/views/site/_checkup-modal.php
   и frontend/web/js/checkup-modal.js. Схема подложка+карточка,
   hidden/is-open, блокировка скролла body — как у модалки чата
   (.chatm__* в style.css), палитра и токены — те же, что и у неё.
   ============================================================ */

body.checkup-modal-open {
  overflow: hidden;
}

.chkm {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s;
}

.chkm[hidden] { display: none; }
.chkm.is-open { opacity: 1; }

.chkm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 13, 32, 0.55);
  backdrop-filter: blur(3px);
}

.chkm__window {
  position: relative;
  width: min(884px, 100%);
  max-height: min(760px, 100vh - 40px);
  overflow-y: auto;
  border-radius: 22px;
  background: var(--grey-bg);
  box-shadow: 0 30px 80px rgba(2, 13, 32, 0.35);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.25s;
}

.chkm.is-open .chkm__window { transform: none; }

.chkm__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 26px;
  right: 26px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: opacity 0.18s;
}

.chkm__close:hover { opacity: 0.6; }

.chkm__close span {
  position: absolute;
  width: 22px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text-47);
}

.chkm__close span:first-child { transform: rotate(45deg); }
.chkm__close span:last-child { transform: rotate(-45deg); }

.chkm__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* боковые 190px из макета: при ширине окна 884px поля выходят ровно 505px */
  padding: 63px clamp(20px, 21.5%, 190px) 56px;
  text-align: center;
}

.chkm__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 45px;
  padding: 0 22px;
  border-radius: 30px;
  background: #fff;
  font-size: 16px;
  color: var(--red);
}

.chkm__badge-dot { flex: none; width: 7px; height: 7px; background: var(--red); }

.chkm__title {
  margin: 12px 0 0;
  max-width: 515px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 49px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.chkm__subtitle {
  margin: 20px 0 0;
  max-width: 453px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.chkm__form {
  width: 100%;
  margin-top: 56px;
}

.chkm__field { margin-bottom: 8px; }

.chkm__input {
  display: block;
  width: 100%;
  height: 65px;
  padding: 0 26px;
  border: 1px solid rgba(2, 13, 32, 0.23);
  border-radius: 14px;
  background: #fff;
  outline: none;
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--dark);
  transition: border-color 0.2s;
}

.chkm__input::placeholder { color: var(--text-34); }
.chkm__input:focus { border-color: var(--blue); background: #fff; }
.chkm__input.is-error { border-color: var(--red); }

.chkm__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 65px;
  margin-top: 12px;
  border-radius: 14px;
  background: var(--red);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
  transition: opacity 0.2s;
}

.chkm__submit:hover { opacity: 0.9; }
.chkm__submit:disabled { opacity: 0.7; cursor: not-allowed; }

.chkm__consent {
  max-width: 445px;
  margin-top: 48px;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-36);
}

.chkm__consent a {
  color: var(--pink);
  text-decoration: underline;
}

.chkm__error {
  margin-top: 12px;
  font-size: 13px;
  color: var(--red);
}
.chkm__error[hidden] { display: none; }

/* ---------- Состояние «Заявка отправлена» ---------- */

.chkm__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 24px;
}
.chkm__success[hidden] { display: none; }

.chkm__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chkm__success-text {
  margin: 18px 0 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--dark);
}

@media (prefers-reduced-motion: reduce) {
  .chkm,
  .chkm__window {
    transition: none;
  }
}

@media (max-width: 899px) {
  .chkm__title { font-size: 38px; }
  .chkm__subtitle { font-size: 20px; }
  .chkm__form { margin-top: 36px; }
}

@media (max-width: 659px) {
  .chkm { padding: 16px; }
  .chkm__window { width: 100%; max-height: min(88vh, 720px); border-radius: 20px; }
  .chkm__body { padding: 44px 20px 28px; }
  .chkm__title { font-size: 28px; max-width: none; }
  .chkm__subtitle { font-size: 17px; max-width: none; margin-top: 14px; }
  .chkm__form { margin-top: 28px; }
  .chkm__input,
  .chkm__submit { height: 56px; font-size: 16px; }
  .chkm__consent { margin-top: 20px; }
}

/* Врач с записью только по телефону: вместо календаря — кнопка звонка.
   Отступ тот же, что у подзаголовка блока записи, чтобы блок не «прыгал». */
.booking__phone {
  margin-top: 22px;
}
