/*
 * fix-patch.css — Патч для темы 21rehab
 * Исправляет: меню, логотип, добавляет стили для новых секций
 * Загрузить в: /wp-content/themes/rehab-theme/assets/css/fix-patch.css
 */

/* ═══════════════════════════════════════════════
   FIX: Навигационное меню — отображение пунктов
   ═══════════════════════════════════════════════ */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: center;
}

.nav-menu li {
  display: block;
  position: relative;
}


.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
  color: var(--accent-red);
}


.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--brand-purple);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  min-width: 321px;
  z-index: 1000;
  list-style: none;
}

.nav-menu li:hover>.sub-menu {
  display: block;
}

.nav-menu .sub-menu li a {
  display: inline-block;
  padding: 8px 20px;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   FIX: Логотип
   ═══════════════════════════════════════════════ */
.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo img {
  display: block;
  width: auto;
  height: 60px;
  max-width: 230px;
  object-fit: contain;
  visibility: visible;
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   FIX: Header layout
   ═══════════════════════════════════════════════ */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.header__nav {
  flex: 1;
  display: flex;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ: О клинике (front-page)
   ═══════════════════════════════════════════════ */
.section--about {
  padding: 60px 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-grid__text h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--brand-color);
}

.about-grid__text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark-color);
  margin-bottom: 12px;
}

.about-grid__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-grid__images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ: Акции
   ═══════════════════════════════════════════════ */
.section--promos {
  padding: 60px 0;
  background: var(--bg-body);
}

.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Карточки акций ── */
.promos-grid--archive {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

.promo-card {
  background: #fff;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}

.promo-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.promo-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.promo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.promo-card:hover .promo-card__img {
  transform: scale(1.05);
}

.promo-card__content {
  padding: 20px;
}

.promo-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--brand-color);
  line-height: 1.4;
}

.promo-card__price {
  display: inline;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 991px) {
  .promos-grid--archive {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 575px) {
  .promos-grid--archive {
    grid-template-columns: 1fr !important;
  }
}

.promo-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
}

.promo-card__price {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ: CTA промежуточный (Telegram/WhatsApp)
   ═══════════════════════════════════════════════ */
.section--cta-messengers {
  padding: 40px 0;
  background: var(--brand-color);
  text-align: center;
  color: #fff;
}

.section--cta-messengers h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 8px;
}

.section--cta-messengers .cta-phone-big {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
}

.cta-messengers-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-messengers-btns a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform .15s, opacity .15s;
}

.cta-messengers-btns a:hover {
  transform: scale(1.05);
}

.btn--telegram {
  background: var(--telegram);
  color: #fff;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ: Статистика (счётчики)
   ═══════════════════════════════════════════════ */
.section--stats {
  padding: 50px 0;
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item__number {
  font-size: 42px;
  font-weight: 900;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ: Полезные статьи
   ═══════════════════════════════════════════════ */
.section--articles {
  padding: 60px 0;
  background: var(--bg-body);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.article-card {
  background: #fff;
  border-radius: var(--r-lg, 15px);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  transition: transform .2s;
}

.article-card:hover {
  transform: translateY(-3px);
}

.article-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e0e5ec;
}

.article-card__body {
  padding: 20px;
}

.article-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--brand-color);
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
}

.article-card__title a:hover {
  color: var(--accent-blue);
}

.article-card__excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ: Форма «Остались вопросы?»
   ═══════════════════════════════════════════════ */
.section--callback-form {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-deep) 100%);
  color: #fff;
}

.callback-form-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.callback-form-inner h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 10px;
}

.callback-form-inner p {
  opacity: .85;
  margin-bottom: 30px;
  font-size: 15px;
}

.callback-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.callback-form input[type="text"],
.callback-form input[type="tel"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: 2px solid var(--border-light);
  background: rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
}

.callback-form input::placeholder {
  color: rgba(255, 255, 255, .6);
}

.callback-form input:focus {
  border-color: var(--accent-red);
}

.callback-form button {
  padding: 14px 32px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.callback-form button:hover {
  background: #c82333;
  transform: scale(1.03);
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ: Преимущества (расширенная)
   ═══════════════════════════════════════════════ */
.section--advantages-full {
  padding: 60px 0;
  background: #fff;
}

.advantages-grid-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.advantage-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-body);
  border-radius: var(--r-lg, 15px);
}

.advantage-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--brand-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-card__icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.advantage-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--brand-color);
}

.advantage-card__text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   FIX: Header — адаптация средней колонки
   ═══════════════════════════════════════════════ */
.top-map {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.single-map a {
  color: var(--brand-color);
  font-size: var(--fs-base);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}

.single-map a:hover {
  color: var(--brand-deep);
}

.single-call {
  display: flex;
  align-items: center;
  gap: 6px;
}

.callback-price {
  color: var(--color-accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}

.callback-price:hover {
  text-decoration: underline;
}

.header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.header__cta {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* Планшет: скрываем адрес, оставляем телефон и кнопку */
@media (max-width: 991px) {
  .header__nav {
    display: none;
  }

  .top-map {
    display: none;
  }

  .header__phone {
    flex: 1;
    align-items: flex-start;
  }

  .header__cta {
    padding: 10px 16px;
    font-size: var(--fs-sm);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid-full {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {

  /* Мобильный: только логотип + телефон-ссылка + бургер */
  .header__phone .top-bar__schedule {
    display: none;
  }

  .header__phone .top-bar__phone {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--brand-color);
  }

  .header__cta {
    display: none;
  }

  .header__inner {
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-item__number {
    font-size: 32px;
  }

  .callback-form {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════
   FIX: Мобильное меню — slide-panel дизайн
   ═══════════════════════════════════════════════ */

/* Контейнер */
.mobile-menu {
  position: fixed !important;
  top: 0 !important;
  right: -100% !important;
  width: 100% !important;
  max-width: 420px !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #fff !important;
  z-index: 10000 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transform: none !important;
  transition: right .3s cubic-bezier(.4, 0, .2, 1) !important;
  box-shadow: -1px 0 6px rgba(0, 0, 0, .05) !important;
  border-left: none !important;
}

.mobile-menu--open {
  right: 0 !important;
  transform: none !important;
}

/* Шапка меню */
.mobile-menu__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.mobile-menu__logo img {
  height: 36px;
  width: auto;
}

.mobile-menu__tagline {
  font-size: 11px;
  color: #666;
  line-height: 1.3;
  flex: 1;
}

.mobile-menu__close {
  width: 32px !important;
  height: 32px !important;
  border: none !important;
  background: none !important;
  font-size: 24px !important;
  color: var(--text-dark) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  flex-shrink: 0;
  position: static !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.mobile-menu__close:hover {
  background: #f5f5f5 !important;
}

/* Панели (слайд навигация) */
.mobile-menu__panel {
  flex: 1;
  overflow-y: auto;
  display: none;
}

.mobile-menu__panel.is-active {
  display: block;
}

/* Анимация переходов панелей */
.mobile-menu__panel--main {
  animation: mmSlideIn .25s ease;
}

.mobile-menu__panel--sub.is-active {
  animation: mmSlideInRight .25s ease;
}

@keyframes mmSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mmSlideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Заголовок подпанели */
.mobile-menu__panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
}

.mobile-menu__back {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  padding: 0;
  border-radius: 50%;
}

.mobile-menu__back:hover {
  background: #f5f5f5;
}

.mobile-menu__panel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Навигация */
.mobile-nav {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mobile-nav li {
  border-bottom: 1px solid #f0f0f0 !important;
}

.mobile-nav li a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  color: var(--text-dark) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
}

.mobile-nav li a:hover {
  background: #f9f9f9 !important;
  color: var(--brand-color) !important;
}

/* Стрелка для пунктов с подменю */
.mobile-nav .menu-item-has-children>a::after {
  content: '' !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 2px solid #999 !important;
  border-bottom: 2px solid #999 !important;
  transform: rotate(-45deg) !important;
  flex-shrink: 0 !important;
  margin-left: 12px !important;
  transition: none !important;
}

/* Скрываем вложенные sub-menu в основной панели — они показываются в panel--sub */
.mobile-menu__panel--main .mobile-nav .sub-menu {
  display: none !important;
}

/* Подменю в панели sub */
.mobile-nav--sub {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav--sub li {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav--sub li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.3;
}

.mobile-nav--sub li a:hover {
  background: #f9f9f9;
  color: var(--brand-color);
}

.mobile-nav--sub .menu-item-has-children>a::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: rotate(-45deg);
  flex-shrink: 0;
  margin-left: 12px;
}

/* Нижняя секция */
.mobile-menu__footer {
  flex-shrink: 0;
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-menu__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
}

.mobile-menu__cta.btn--primary {
  background: var(--brand-color);
  color: #fff;
  border: 2px solid var(--brand-color);
}

.mobile-menu__cta.btn--outline-danger {
  background: transparent;
  color: var(--accent-red);
  border: 2px solid var(--accent-red);
}

.mobile-menu__contacts {
  margin-top: 8px !important;
}

.mobile-menu__contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-menu__phone {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  text-decoration: none;
  display: block !important;
  margin-bottom: 2px !important;
}

.mobile-menu__address {
  font-size: 13px;
  color: #666;
  display: block;
}

.mobile-menu__social-icons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-menu__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mobile-menu__social--tg {
  background: var(--telegram);
  color: #fff;
}

.mobile-menu__social--wa {
  background: var(--whatsapp);
  color: #fff;
}

.mobile-menu__social svg {
  width: 22px;
  height: 22px;
}

/* Очень маленькие экраны: скрываем телефон в шапке */
@media (max-width: 480px) {
  .header__phone {
    display: none;
  }
}


/* FIX: Мегаменю — позиционирование относительно top-bar */
.top-bar {
  position: sticky;
  z-index: 1001;
  overflow: visible !important;
}

.top-bar__inner {
  overflow: visible !important;
}

.nav-menu>li.has-megamenu {
  position: static !important;
}

.nav-menu>li.has-megamenu>.sub-menu {
  display: none !important;
  position: absolute !important;
  top: 80% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  background: var(--brand-purple) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-width: unset !important;
  z-index: 99999 !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
}

.nav-menu>li.has-megamenu:hover>.sub-menu {
  display: flex !important;
  max-width: 381px !important;
}

.nav-menu>li.has-megamenu>.sub-menu>li>.sub-menu {
  background: #2e2751 !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
  min-width: unset !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, .06) !important;
}

.nav-menu>li.has-megamenu>.sub-menu>li>.sub-menu>li>a {
  color: rgba(255, 255, 255, .75) !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
  text-transform: uppercase !important;
}

.nav-menu>li.has-megamenu>.sub-menu>li>.sub-menu>li>a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .07) !important;
}

.hero-doctor {
  position: relative;
}

.hero-doctor__card {
  position: absolute;
  left: -40px;
  bottom: 50px;
  padding: 14px 16px;
  border-radius: 14px;

  background: rgba(18, 36, 70, .82);
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
  max-width: 220px;
  z-index: 5;
}

.hero-doctor__name {
  font-size: var(--fs-base);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.hero-doctor__role {
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
}

.hero-doctor__exp {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .7);
}

.hero-doctor__note {
  position: absolute;
  bottom: 20px;
  left: 20px;

  font-size: 16px;
  color: rgba(255, 255, 255, .75);

  max-width: 300px;
}

.hero__content {
  max-width: 640px;
}

.hero-doctor__image {
  max-width: 440px;
  width: 100%;
  height: auto;
  transform-origin: bottom right;
}

.hero__media--doctor {
  max-width: 460px;
  margin-left: auto;
  margin-bottom: 0;
  margin-top: auto;
}

@media (max-width: 991px) {
  .hero__media--doctor {
    display: none;
  }
}

.hero-doctor__image {
  margin-left: auto;
}

.hero__badges {
  display: flex;
  gap: 10px;
  margin: 20px 0 25px;
}

.hero__badges span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════
   FIX: Responsive iframe для карт
   ═══════════════════════════════════════════════ */
.responsive-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-sm);
}

.responsive-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* ═══════════════════════════════════════════════
   FIX: Увеличение кнопок слайдеров для тач-устройств
   Минимальный размер тач-цели — 44x44px (WCAG 2.5.5)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  .section--about-gallery .about-gallery-slider .swiper-button-prev,
  .section--about-gallery .about-gallery-slider .swiper-button-next,
  .section--doctors .doctors-slider .swiper-button-prev,
  .section--doctors .doctors-slider .swiper-button-next,
  .home-promos-slider .swiper-button-prev,
  .home-promos-slider .swiper-button-next {
    width: 44px;
    height: 44px;
  }

  .section--about-gallery .about-gallery-slider .swiper-button-prev:after,
  .section--about-gallery .about-gallery-slider .swiper-button-next:after,
  .section--doctors .doctors-slider .swiper-button-prev:after,
  .section--doctors .doctors-slider .swiper-button-next:after,
  .home-promos-slider .swiper-button-prev:after,
  .home-promos-slider .swiper-button-next:after {
    font-size: 16px;
  }

  /* Больше пространства для кнопок */
  .about-gallery-slider,
  .doctors-slider {
    padding: 0 48px;
  }
}

/* ═══════════════════════════════════════════════
   FIX: Форма обратного звонка — паддинги на планшетах
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .callback-form {
    padding: 30px 24px;
  }
}

/* ═══════════════════════════════════════════════
   FOOTER — Редизайн по макету
   ═══════════════════════════════════════════════ */

.footer {
  background-color: var(--brand-purple) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  color: #fff;
  padding: 0 0 0 !important;
  position: relative;
}

.footer__accent-line {
  height: 4px;
  background: linear-gradient(90deg, #00c9a7, #00b894);
  width: 100%;
}

.footer>.container {
  padding-top: 50px;
  padding-bottom: 30px;
}

.footer__grid {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr !important;
  gap: 40px !important;
  margin-bottom: 40px !important;
}

/* Колонка 1: Лого + описание */
.footer__col--about .footer__logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer__col--about .footer__logo img {
  width: 200px;
  height: auto;
}

.footer__about {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, .75) !important;
  opacity: 1 !important;
  margin-bottom: 20px;
}

.footer__license-line {
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 24px;
  line-height: 1.5;
}

.footer__license-link {
  color: var(--accent-red) !important;
  text-decoration: underline;
  font-weight: 500;
}

.footer__license-link:hover {
  color: #ff4d5e !important;
}

.footer__cta-btn {
  display: inline-block !important;
  background: var(--accent-red) !important;
  color: #fff !important;
  padding: 14px 32px !important;
  border-radius: 5px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background .2s !important;
  border: none !important;
}

.footer__cta-btn:hover {
  background: #c0303e !important;
  color: #fff !important;
}

/* Заголовки колонок */
.footer__heading {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  opacity: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-bottom: 20px !important;
}

/* Навигация */
.footer__nav {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer__nav li {
  margin-bottom: 12px !important;
}

.footer__nav a {
  color: rgba(255, 255, 255, .8) !important;
  font-size: 15px !important;
  text-decoration: none !important;
  transition: color .2s !important;
}

.footer__nav a:hover {
  color: #fff !important;
}

/* Колонка контактов */
.footer__contacts-intro {
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.5;
  margin-bottom: 20px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
  transition: color .2s;
}

a.footer__contact-item:hover {
  color: rgba(255, 255, 255, .8);
}

.footer__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
}

.footer__contact-icon svg {
  width: 18px;
  height: 18px;
}

.footer__contact-item>span:last-child {
  padding-top: 6px;
}

/* Нижняя полоса */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1) !important;
  padding-top: 20px !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  gap: 16px !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, .5) !important;
  opacity: 1 !important;
}

.footer__dev a {
  color: rgba(255, 255, 255, .6) !important;
}

.footer__dev a:hover {
  color: #fff !important;
}

/* ── Footer responsive ── */
@media (max-width: 991px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 575px) {
  .footer__grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .footer__bottom {
    flex-direction: column !important;
    text-align: center !important;
  }
}

/* ═══════════════════════════════════════════════
   Блок «Нам доверяют» — рейтинги площадок
   ═══════════════════════════════════════════════ */

.section.section--trust-ratings {
  background: #e8eaf0 !important;
  padding: 50px 0 60px !important;
}

.trust-ratings {
  background: rgba(255, 255, 255, .45) !important;
  border-radius: 6px !important;
  padding: 40px 40px 48px !important;
}

.trust-ratings__title {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--brand-color) !important;
  margin-bottom: 28px !important;
}

.trust-ratings__grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

.trust-ratings__card {
  background: #fff !important;
  border-radius: 7px !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04) !important;
  transition: box-shadow .2s, transform .2s !important;
  text-decoration: none !important;
}

.trust-ratings__card:hover {
  box-shadow: 0 1px 5px rgba(0, 0, 0, .05) !important;
  transform: translateY(-2px) !important;
}

.trust-ratings__card img {
  max-width: 100% !important;
  height: auto !important;
  max-height: 80px !important;
  object-fit: contain !important;
}

.trust-ratings__empty {
  color: rgba(0, 0, 0, .4);
  font-size: 14px;
  font-style: italic;
}

@media (max-width: 767px) {
  .trust-ratings {
    padding: 24px 20px 32px !important;
  }

  .trust-ratings__title {
    font-size: 22px !important;
  }

  .trust-ratings__grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ═══════════════════════════════════════════════
   Callback-блок — фоновая картинка + overlay
   ═══════════════════════════════════════════════ */

.section--callback {
  position: relative;
  overflow: hidden;
}

.section--callback-has-bg {
  background-size: cover !important;
  background-position: center !important;
}

.section--callback__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 0;
  pointer-events: none;
}

.section--callback-has-bg .container {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════
   Блог — архив статей
   ═══════════════════════════════════════════════ */

.articles-grid--archive {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  margin-bottom: 40px !important;
}

.article-card {
  background: #fff !important;
  border-radius: 7px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04) !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
  display: flex !important;
  flex-direction: column !important;
}

.article-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05) !important;
}

.article-card__link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  text-decoration: none !important;
  color: inherit !important;
}

.article-card__image {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.article-card__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.article-card__body {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.article-card__date {
  display: block !important;
  font-size: 13px !important;
  color: #888 !important;
  margin-bottom: 8px !important;
}

.article-card__title {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 0 0 10px !important;
  color: #222 !important;
}

.article-card__excerpt {
  font-size: 14px !important;
  color: #666 !important;
  line-height: 1.5 !important;
  margin: 0 0 16px !important;
  flex: 1 !important;
}

.article-card__footer {
  margin-top: auto !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.article-card__more {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 11px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--brand-purple) !important;
  border: 2px solid var(--brand-purple) !important;
  border-radius: 6px !important;
  transition: background .22s ease, color .22s ease !important;
  box-sizing: border-box !important;
}

.article-card__more svg {
  flex-shrink: 0 !important;
  transition: transform .22s ease !important;
}

.article-card__link:hover .article-card__more {
  background: var(--brand-purple) !important;
  color: #fff !important;
}

.article-card__link:hover .article-card__more svg {
  transform: translateX(3px) !important;
}

@media (max-width: 991px) {
  .articles-grid--archive {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 575px) {
  .articles-grid--archive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .article-card__title {
    font-size: 16px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   section--page-hero — простой hero для внутренних страниц
   (лицензии, авторы, политики, калькулятор и др.)
   ═══════════════════════════════════════════════════════════ */
.section--page-hero {
  background: var(--bg-alt);
  padding: var(--sp-2xl, 48px) 0;
  border-bottom: 1px solid #e9ecef;
}

.section--page-hero .section__title,
.section--page-hero h1 {
  color: var(--brand-color);
  margin-bottom: 12px;
}

.section--page-hero .section__text,
.section--page-hero p {
  color: var(--text-white);
  max-width: 680px;
}

.section--page-hero--calculator {
  background: linear-gradient(135deg, var(--brand-purple) 0%, #1a1640 100%);
  color: #fff;
}

.section--page-hero--calculator h1,
.section--page-hero--calculator .section__title {
  color: #fff;
}

.section--page-hero--calculator .section__text,
.section--page-hero--calculator p {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767px) {
  .section--page-hero {
    padding: var(--sp-xl, 32px) 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   Правовые страницы (политика, соглашения, редполитика)
   ═══════════════════════════════════════════════════════════ */
.section--policy-content {
  padding: var(--sp-3xl, 56px) 0;
}

.policy-sidebar {
  position: sticky;
  top: 24px;
}

/* ═══════════════════════════════════════════════════════════
   Авторы — страница /avtory/
   ═══════════════════════════════════════════════════════════ */
.section--authors-grid {
  padding: var(--sp-3xl, 56px) 0;
}

/* ═══════════════════════════════════════════════════════════
   Лицензии — страница /licenzii/
   ═══════════════════════════════════════════════════════════ */
.section--licenses-gallery {
  padding: var(--sp-3xl, 56px) 0;
}

.licenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.license-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: box-shadow .2s, transform .2s;
  cursor: zoom-in;
}

.license-card--pdf {
  cursor: pointer;
}

.license-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  transform: translateY(-3px);
}

/* Обёртка изображения — нужна для overlay */
.license-card__img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-alt, #f5f6f8);
}

.license-card__img-wrap img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  transition: transform .25s;
}

.license-card:hover .license-card__img-wrap img {
  transform: scale(1.04);
}

/* Увеличительное стекло поверх фото */
.license-card__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .2s;
  border-radius: 8px;
}

.license-card:hover .license-card__zoom {
  opacity: 1;
}

.license-card__title {
  font-size: .85rem;
  text-align: center;
  font-weight: 500;
  line-height: 1.4;
}

/* PDF-вариант карточки */
.license-card__img-wrap--pdf {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.license-card__pdf-icon {
  color: var(--color-accent, #c0392b);
  opacity: .6;
}

.license-card__pdf-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-accent, #c0392b);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   Горячие линии (hotlines)
   ═══════════════════════════════════════════════════════════ */
.section--hotlines {
  padding: var(--sp-2xl, 48px) 0;
  background: var(--bg-alt);
}

.hotlines-box__head {
  margin-bottom: var(--sp-xl, 32px);
  text-align: center;
}

.hotlines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.hotline-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-light);
}

.hotline-card__title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: .95rem;
  color: var(--text-main);
}

.hotline-card__phone {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-color);
  text-decoration: none;
  margin-bottom: 6px;
}

.hotline-card__phone:hover {
  text-decoration: underline;
}

.hotline-card__note {
  font-size: .8rem;
  color: var(--text-muted);
}

@media (max-width: 575px) {

  .licenses-grid,
  .hotlines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════
   Блок «Нашли ошибку?»
   ═══════════════════════════════════════════════════════════ */
.section--error-report {
  padding: var(--sp-2xl, 48px) 0;
}

/* ═══════════════════════════════════════════════════════════
   Секция рейтингов клиники на странице «О нас»
   ═══════════════════════════════════════════════════════════ */
.section--about-ratings {
  padding: var(--sp-3xl, 56px) 0;
  background: var(--bg-alt);
}

/* ═══════════════════════════════════════════════════════════
   Универсальные секции с фоном / без оформления
   ═══════════════════════════════════════════════════════════ */
.section--calculator {
  padding: var(--sp-3xl, 56px) 0;
}

/* ═══════════════════════════════════════════════════════════
   Текстовые секции (flex-текст, прайс)
   ═══════════════════════════════════════════════════════════ */
.section--text,
.section--text-section {
  padding: var(--sp-2xl, 48px) 0;
}

.section--text-image {
  padding: var(--sp-3xl, 56px) 0;
}

.section--img-right .container>.row,
.section--img-right .section__inner {
  flex-direction: row-reverse;
}

/* ═══════════════════════════════════════════════════════════
   Преимущества (flex-benefits)
   ═══════════════════════════════════════════════════════════ */
.section--benefits {
  padding: var(--sp-3xl, 56px) 0;
  background: var(--bg-alt);
}

/* ═══════════════════════════════════════════════════════════
   Противопоказания
   ═══════════════════════════════════════════════════════════ */
.section--contraindications {
  padding: var(--sp-2xl, 48px) 0;
}

/* ═══════════════════════════════════════════════════════════
   Источники / научная база
   ═══════════════════════════════════════════════════════════ */
.section--sources {
  padding: var(--sp-xl, 32px) 0;
  border-top: 1px solid var(--border-light);
  font-size: .9rem;
}

/* ═══════════════════════════════════════════════════════════
   EEAT: мета + уровень доказательности
   ═══════════════════════════════════════════════════════════ */
.section--eeat-meta {
  padding: var(--sp-2xl, 40px) 0 var(--sp-lg, 20px);
}

.section--evidence-level {
  padding: var(--sp-xl, 32px) 0;
}

/* ═══════════════════════════════════════════════════════════
   Автор статьи
   ═══════════════════════════════════════════════════════════ */
.section--author-box {
  padding: var(--sp-2xl, 48px) 0;
}

/* ═══════════════════════════════════════════════════════════
   Архивы: статьи, врачи, акции, услуги
   ═══════════════════════════════════════════════════════════ */
.section--articles-list,
.section--promos-list,
.section--services-list {
  padding: var(--sp-3xl, 56px) 0;
}

.section--doctors-archive {
  padding: var(--sp-3xl, 56px) 0;
  background: var(--bg-alt);
}

.section--filters {
  padding: var(--sp-xl, 32px) 0 0;
  background: var(--bg-alt);
}

/* ═══════════════════════════════════════════════════════════
   Похожие услуги
   ═══════════════════════════════════════════════════════════ */
.section--related-services {
  padding: var(--sp-3xl, 56px) 0;
}

/* Сетка в блоке «Похожие услуги»: по умолчанию 3 колонки */
.services-grid--related {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
  .services-grid--related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .services-grid--related {
    grid-template-columns: 1fr;
  }
}

/* Кнопка «Все услуги клиники» под сеткой */
.section__more {
  margin-top: var(--sp-xl, 32px);
  text-align: center;
}

.section__more .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   Популярные услуги (главная, 404)
   ═══════════════════════════════════════════════════════════ */
.section--popular {
  padding: var(--sp-3xl, 56px) 0;
  background: var(--bg-alt);
}

/* ═══════════════════════════════════════════════════════════
   Рейтинги (главная)
   ═══════════════════════════════════════════════════════════ */
.section--home-ratings {
  padding: var(--sp-3xl, 56px) 0;
}

/* ═══════════════════════════════════════════════════════════
   Прайс: навигация по тарифам, акционные тарифы
   ═══════════════════════════════════════════════════════════ */
.section--price-nav {
  padding: var(--sp-xl, 32px) 0;
  background: var(--bg-alt);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}

.section--price-promos {
  padding: var(--sp-2xl, 48px) 0;
  border-top: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════════════════════════
   EEAT meta card (author + reviewer + stats bar)
   ═══════════════════════════════════════════════════════════ */
.eeat-meta-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 20px 24px;
}

.eeat-meta-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}

.eeat-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eeat-person__photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
}

.eeat-person__label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}

.eeat-person__name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--brand-color);
  text-decoration: none;
  display: block;
}

.eeat-person__name:hover {
  text-decoration: underline;
}

.eeat-person__position {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.eeat-meta-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.eeat-stat {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   Автор материала (author-box)
   ═══════════════════════════════════════════════════════════ */
.author-box-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.author-box-card {
  display: flex;
  gap: 16px;
  flex: 1 1 280px;
  background: var(--bg-white);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-light);
}

.author-box-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-card__role {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.author-box-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text-main);
}

.author-box-card__position,
.author-box-card__meta {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.author-box-card__link {
  display: inline-block;
  margin-top: 10px;
  font-size: .85rem;
  color: var(--brand-color);
  text-decoration: none;
  font-weight: 500;
}

.author-box-card__link:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   Противопоказания
   ═══════════════════════════════════════════════════════════ */
.contraindications-box {
  background: #fff5f5;
  border-left: 4px solid #e74c3c;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
}

.contraindications-box__label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #e74c3c;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════════════
   Источники и литература
   ═══════════════════════════════════════════════════════════ */
.section--sources {
  padding: var(--sp-xl) 0 var(--sp-2xl);
  border-top: 2px solid var(--border-light);
  background: var(--bg-body);
}

.sources-box {
  max-width: none;
}

.sources-box__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.sources-box__icon {
  color: var(--brand-color);
  flex-shrink: 0;
}

.sources-box__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--brand-color);
  margin: 0;
}

.sources-box__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--brand-color);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--r-full);
  line-height: 1;
  margin-left: auto;
}

.sources-box__disclaimer {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 var(--sp-md);
  padding: 10px 14px;
  background: rgba(31, 58, 95, 0.04);
  border-left: 3px solid var(--brand-color);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: source-counter;
}

.sources-list__item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--fs-sm);
  line-height: 1.65;
  align-items: flex-start;
}

.sources-list__item:last-child {
  border-bottom: none;
}

.sources-list__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-section);
  color: var(--brand-color);
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.sources-list__body {
  flex: 1;
  min-width: 0;
}

.sources-list__link {
  color: var(--brand-color);
  text-decoration: none;
  word-break: break-word;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  transition: color var(--transition);
}

.sources-list__link:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.sources-list__ext-icon {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: .55;
}

.sources-list__text {
  color: var(--text-secondary);
  word-break: break-word;
}

.sources-list__note {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   Медицинский дисклеймер (встроенный в eeat-top)
   ═══════════════════════════════════════════════════════════ */
.medical-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

.medical-disclaimer--inline {
  background: #fff8e7;
  border: 1px solid #f0c060;
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-top: 12px;
}

.medical-disclaimer--inline::before {
  content: "⚠️";
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.6;
}

.medical-disclaimer--block {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin: 24px 0 0;
}

.medical-disclaimer strong {
  color: var(--text-main);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   Responsive fixes
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .eeat-meta-card__top {
    flex-direction: column;
    gap: 12px;
  }

  .author-box-grid {
    flex-direction: column;
  }

  .author-box-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .section--price-nav {
    position: sticky;
  }
}

/* ═══════════════════════════════════════════════════════════
   Динамическая Яндекс.Карта городов (cities-map.js)
   ═══════════════════════════════════════════════════════════ */
.cities-map-wrap--dynamic {
  height: 420px;
}

@media (max-width: 767px) {
  .cities-map-wrap--dynamic {
    height: 280px;
  }
}

/* Honeypot-поле — всегда скрыто */
.form-honeypot {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* ═══════════════════════════════════════════════════════════
   Nav-cards — глобальный компонент
   (nav-card CSS дублирован из front-page.css для страниц
   где front-page.css не подключается: врачи, статьи и т.д.)
   ═══════════════════════════════════════════════════════════ */
.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nav-card {
  background: #fff;
  border-radius: 7px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.nav-card__icon {
  margin-bottom: 16px;
}

.nav-card__icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #1F3A5F;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.2s;
}

.nav-card__icon a:hover {
  background: #2B5F7A;
}

.nav-card__icon-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.nav-card__icon-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.nav-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.nav-card__title a {
  color: var(--brand-color);
  text-decoration: none;
}

.nav-card__title a:hover {
  color: var(--accent);
}

/* Исправление: текст аннотации — серый, не красный */
.nav-card__text {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.nav-card__btn {
  margin-top: auto;
}

@media (max-width: 991px) {
  .nav-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .nav-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Защита атрибута hidden от переопределения CSS display */
[hidden] {
  display: none !important;
}

/* ═══════════════════════════════════════════════
   СТРАНИЦА ОТЗЫВОВ (page-reviews.php)
   ═══════════════════════════════════════════════ */

/* Агрегированный рейтинг */
.reviews-aggregate {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
  flex-wrap: wrap;
}

.reviews-aggregate__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.reviews-aggregate__number {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-color);
}

.reviews-aggregate__stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  margin: 6px 0;
}

.reviews-aggregate__count {
  font-size: 13px;
  color: var(--text-muted);
}

.reviews-aggregate__bars {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reviews-filter__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background .2s;
}

.reviews-filter__bar:hover {
  background: #f5f5f5;
}

.reviews-filter__bar--active {
  background: #eef4ff;
}

.reviews-filter__star {
  width: 38px;
  flex-shrink: 0;
  color: #f59e0b;
}

.reviews-filter__track {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.reviews-filter__fill {
  display: block;
  height: 100%;
  background: #f59e0b;
  border-radius: 4px;
  transition: width .4s;
}

.reviews-filter__num {
  width: 24px;
  text-align: right;
  color: var(--text-muted);
  font-size: 12px;
}

.reviews-filter__reset {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--accent-red);
  text-decoration: underline;
  cursor: pointer;
}

/* Сетка карточек */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 991px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-aggregate {
    flex-direction: column;
    align-items: center;
  }
}

.review-card--page {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  gap: 16px;
}

.review-card--page .review-card__text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
}

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  transition: all .2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--brand-color);
  color: #fff;
  border-color: var(--brand-color);
}

.reviews-page__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
  font-size: 16px;
}

/* CTA оставить отзыв */
.section--leave-review {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  padding: 64px 0;
}

.leave-review-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.leave-review-cta__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--brand-color);
}

.leave-review-cta__text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.leave-review-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   О КЛИНИКЕ — счётчики, миссия, ценности
   ═══════════════════════════════════════════════ */

.section--about-counters {
  background: var(--brand-color);
  color: #fff;
  padding: 56px 0;
}

.section--about-counters .section__title {
  color: #fff;
  margin-bottom: 40px;
}

.about-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 991px) {
  .about-counters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .about-counters {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.about-counter__value {
  display: block;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.about-counter__label {
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.4;
}

.section--about-mission {
  padding: 56px 0;
}

.about-mission {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.about-mission__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-main);
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 991px) {
  .about-values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .about-values__grid {
    grid-template-columns: 1fr;
  }
}

.about-value-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

.about-value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
}

.about-value-card__icon {
  display: block;
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}

.about-value-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-color);
  margin-bottom: 8px;
}

.about-value-card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   ГЛАВНАЯ — лицензии
   ═══════════════════════════════════════════════ */

.section--home-licenses {
  background: #f8fafc;
  padding: 56px 0;
}

.home-licenses__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 1199px) {
  .home-licenses__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .home-licenses__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 479px) {
  .home-licenses__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-license-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .07);
  transition: box-shadow .2s, transform .2s;
  gap: 8px;
}

.home-license-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}

.home-license-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 4px;
}

.home-license-card__title {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════
   ВИДЕО-ОТЗЫВЫ В КАРТОЧКАХ
   ═══════════════════════════════════════════════ */

.review-card--has-video .review-card__video {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #111 center / cover no-repeat;
  cursor: pointer;
  flex-shrink: 0;
}

.review-card--has-video .review-card__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.review-card__video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .25);
  border: none;
  cursor: pointer;
  transition: background .2s;
  width: 100%;
}

.review-card__video-play:hover {
  background: rgba(0, 0, 0, .1);
}

.review-card--has-video .review-card__video--playing .review-card__video-play {
  display: none;
}

/* ═══════════════════════════════════════════════
   СЕКЦИЯ ВИДЕО-ОТЗЫВОВ (page-reviews.php)
   ═══════════════════════════════════════════════ */

.section--video-reviews {
  background: #f8fafc;
  padding: 56px 0;
}

.video-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .video-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .video-reviews-grid {
    grid-template-columns: 1fr;
  }
}

.video-review-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.video-review-card .review-card__video {
  height: 200px;
  background: #111 center / cover no-repeat;
  position: relative;
  cursor: pointer;
}

.video-review-card .review-card__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-review-card__info {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.video-review-card__author {
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-color);
}

.video-review-card__city {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   ПРАЙС — кнопка калькулятора
   ═══════════════════════════════════════════════ */

.price-header-meta__calc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: transparent;
  color: var(--brand-color);
  border: 1.5px solid var(--brand-color);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}

.price-header-meta__calc:hover {
  background: var(--brand-color);
  color: #fff;
}

/* ═══════════════════════════════════════════════
   CONTACT FORM 7 — стилизация под тему
   ═══════════════════════════════════════════════ */

/* Убираем стили CF7 по умолчанию */
.wpcf7 {
  margin: 0;
}

.wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wpcf7 form.sent .wpcf7-response-output {
  display: block !important;
}

/* Поля ввода */
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 textarea::placeholder {
  color: rgba(255, 255, 255, .5);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .18);
}

/* На светлом фоне (callback-block, review-form, etc.) */
.callback-block__form .wpcf7 input[type="text"],
.callback-block__form .wpcf7 input[type="tel"],
.callback-block__form .wpcf7 input[type="email"],
.callback-block__form .wpcf7 textarea,
.callback-block__form .wpcf7 select,
.review-form-wrap .wpcf7 input[type="text"],
.review-form-wrap .wpcf7 input[type="tel"],
.review-form-wrap .wpcf7 input[type="email"],
.review-form-wrap .wpcf7 textarea,
.review-form-wrap .wpcf7 select,
.modal .wpcf7 input[type="text"],
.modal .wpcf7 input[type="tel"],
.modal .wpcf7 input[type="email"],
.modal .wpcf7 textarea,
.price-page-layout .wpcf7 input[type="text"],
.price-page-layout .wpcf7 input[type="tel"],
.price-page-layout .wpcf7 input[type="email"],
.price-page-layout .wpcf7 textarea {
  background: #fff;
  border-color: #dee2e6;
  color: var(--text-main);
}

.callback-block__form .wpcf7 input::placeholder,
.review-form-wrap .wpcf7 input::placeholder,
.modal .wpcf7 input::placeholder {
  color: #adb5bd;
}

.callback-block__form .wpcf7 input:focus,
.callback-block__form .wpcf7 textarea:focus,
.review-form-wrap .wpcf7 input:focus,
.review-form-wrap .wpcf7 textarea:focus,
.modal .wpcf7 input:focus,
.modal .wpcf7 textarea:focus {
  border-color: var(--brand-color);
  background: #fff;
}

/* Кнопка submit */
.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .1s;
  -webkit-appearance: none;
}

.wpcf7 input[type="submit"]:hover {
  background: #b92d3a;
}

.wpcf7 input[type="submit"]:active {
  transform: scale(.98);
}

/* Спиннер при отправке */
.wpcf7 input[type="submit"].wpcf7-spinner-active {
  opacity: .7;
  cursor: not-allowed;
}

/* Метки */
.wpcf7 label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: inherit;
}

/* Ошибки валидации */
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #ef4444;
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
  border-color: #ef4444 !important;
}

/* Статус сообщение (успех/ошибка) */
.wpcf7 .wpcf7-response-output {
  margin: 8px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  border: none !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: #d1fae5;
  color: #065f46;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  background: #fee2e2;
  color: #991b1b;
}

.wpcf7 form.spam .wpcf7-response-output {
  background: #fef3c7;
  color: #92400e;
}

/* Чекбокс согласия */
.wpcf7 .wpcf7-acceptance label,
.wpcf7 .wpcf7-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"],
.wpcf7 .wpcf7-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent-red);
}

/* Группировка полей через p-тег (CF7 по умолчанию) */
.wpcf7 p {
  margin: 0;
}

/* Spinner CF7 */
.wpcf7 .wpcf7-spinner {
  display: none !important;
  /* используем нативный submit disabled */
}

/* Обёртка в модале */
.modal .rehab-cf7-wrap,
.exit-popup__box .rehab-cf7-wrap {
  margin-top: 4px;
}

/* Обёртка в doctor-appoint секции (CF7 внутри белой карточки) */
.section--doctor-appoint .rehab-cf7-wrap {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.section--doctor-appoint .wpcf7 input[type="text"],
.section--doctor-appoint .wpcf7 input[type="tel"],
.section--doctor-appoint .wpcf7 input[type="email"],
.section--doctor-appoint .wpcf7 textarea,
.section--doctor-appoint .wpcf7 select {
  background: #fff;
  border-color: #dee2e6;
  color: var(--text-main);
}

.section--doctor-appoint .wpcf7 input::placeholder,
.section--doctor-appoint .wpcf7 textarea::placeholder {
  color: #adb5bd;
}

.section--doctor-appoint .wpcf7 input:focus,
.section--doctor-appoint .wpcf7 textarea:focus {
  border-color: var(--brand-color);
  background: #fff;
}

.section--doctor-appoint .wpcf7 .callback-form__disclaimer {
  color: #868e96;
}

.section--doctor-appoint .wpcf7 .callback-form__disclaimer a {
  color: var(--brand-color);
}

/* Service-consult и express-form — светлый фон */
.service-consult-form-wrap .wpcf7 input[type="text"],
.service-consult-form-wrap .wpcf7 input[type="tel"],
.service-consult-form-wrap .wpcf7 input[type="email"],
.service-consult-form-wrap .wpcf7 textarea,
.express-form-wrap .wpcf7 input[type="tel"] {
  background: #fff;
  border-color: #dee2e6;
  color: var(--text-main);
}

.service-consult-form-wrap .wpcf7 input::placeholder,
.service-consult-form-wrap .wpcf7 textarea::placeholder,
.express-form-wrap .wpcf7 input::placeholder {
  color: #adb5bd;
}

.service-consult-form-wrap .wpcf7 input:focus,
.service-consult-form-wrap .wpcf7 textarea:focus,
.express-form-wrap .wpcf7 input:focus {
  border-color: var(--brand-color);
  background: #fff;
}

/* Express через CF7 — горизонтальный ряд как в оригинале */
.express-form-wrap .wpcf7 form {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.express-form-wrap .wpcf7 .wpcf7-form-control-wrap {
  flex: 1;
  min-width: 200px;
}

.express-form-wrap .wpcf7 input[type="submit"] {
  width: auto;
  flex-shrink: 0;
  padding: 14px 20px;
}

.express-form-wrap .wpcf7 .wpcf7-response-output {
  width: 100%;
  flex-basis: 100%;
}

/* ═══════════════════════════════════════════════
   БЕЙДЖ «ФАКТ ПРОВЕРЕН»
   ═══════════════════════════════════════════════ */

.fact-checked-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #eefaf4;
  border: 1px solid #22a55b;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  color: #166534;
  margin-bottom: 20px;
  line-height: 1.4;
}

.fact-checked-badge svg {
  color: #22a55b;
  flex-shrink: 0;
}

.fact-checked-badge strong {
  font-weight: 600;
}

.fact-checked-badge__by {
  color: #155724;
}

.fact-checked-badge__date {
  color: #6c757d;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════
   СРАВНИТЕЛЬНАЯ ТАБЛИЦА МЕТОДОВ
   ═══════════════════════════════════════════════ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 24px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  text-align: left;
  vertical-align: middle;
}

.comparison-table thead th {
  background: var(--brand-color);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.comparison-table thead th:first-child {
  background: #132338;
}

.comparison-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.comparison-table tbody tr:hover {
  background: #eef2ff;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--brand-color);
  background: #f5f7fa;
}

.comparison-table__check {
  color: #22a55b;
}

.comparison-table__cross {
  color: #dc2626;
}

.comparison-table__highlight {
  background: rgba(34, 165, 91, .08) !important;
  font-weight: 600;
}

@media (max-width: 767px) {
  .comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 600px;
  }
}

/* ═══════════════════════════════════════════════
   ВИДЕО ВРАЧА
   ═══════════════════════════════════════════════ */

.section--doctor-video {
  padding: 48px 0;
}

.doctor-video-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.doctor-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .15);
}

.doctor-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════
   EXIT INTENT POPUP
   ═══════════════════════════════════════════════ */

.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.exit-popup--visible {
  opacity: 1;
  pointer-events: auto;
}

.exit-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  cursor: pointer;
}

.exit-popup__box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  transform: scale(.9);
  transition: transform .3s;
}

.exit-popup--visible .exit-popup__box {
  transform: scale(1);
}

.exit-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-popup__close:hover {
  color: var(--text-dark);
}

.exit-popup__badge {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

.exit-popup__title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--brand-color);
  margin-bottom: 12px;
  line-height: 1.3;
}

.exit-popup__text {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.exit-popup__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exit-popup__input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-main);
  transition: border-color .2s;
  box-sizing: border-box;
}

.exit-popup__input:focus {
  outline: none;
  border-color: var(--brand-color);
}

.exit-popup__submit {
  width: 100%;
  padding: 14px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.exit-popup__submit:hover {
  background: #b92d3a;
}

.exit-popup__disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.exit-popup__disclaimer a {
  color: inherit;
}

.exit-popup__success {
  padding: 16px 0;
}

.exit-popup__success p {
  font-size: 16px;
  color: #22a55b;
  font-weight: 600;
}

@media (max-width: 575px) {
  .exit-popup__box {
    padding: 40px 24px 32px;
  }
}

/* ═══════════════════════════════════════════════
   ПРАЙС — дата актуальности + PDF-скачивание
   ═══════════════════════════════════════════════ */

.price-header-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0 8px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.price-header-meta__date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-header-meta__pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--brand-color);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
  margin-left: auto;
}

.price-header-meta__pdf:hover {
  background: #152540;
  color: #fff;
}

@media (max-width: 575px) {
  .price-header-meta__pdf {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════
   AUDIT — Тест на зависимость
   ═══════════════════════════════════════════════ */

.section--audit-test {
  padding: 48px 0 80px;
}

.audit-test {
  max-width: 680px;
  margin: 0 auto;
}

/* Прогресс-бар */
.audit-progress {
  margin-bottom: 32px;
}

.audit-progress__bar {
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.audit-progress__fill {
  height: 100%;
  background: var(--brand-color);
  border-radius: 3px;
  transition: width .35s ease;
}

.audit-progress__label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Блок вопроса */
.audit-question__text {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--brand-color);
  margin: 0 0 24px;
  line-height: 1.4;
}

.audit-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

/* Ответ */
.audit-answer {
  position: relative;
}

.audit-answer__radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.audit-answer__label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  color: #2d3748;
  transition: border-color .2s, background .2s, color .2s;
  user-select: none;
}

.audit-answer__label::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  transition: border-color .2s, background .2s;
}

.audit-answer__label:hover {
  border-color: var(--brand-color);
  background: #f0f4f8;
}

.audit-answer__label--selected {
  border-color: var(--brand-color);
  background: #eef2f8;
  color: var(--brand-color);
  font-weight: 500;
}

.audit-answer__label--selected::before {
  border-color: var(--brand-color);
  background: var(--brand-color);
  box-shadow: inset 0 0 0 4px #fff;
}

/* Навигация */
.audit-question__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audit-btn-next {
  min-width: 160px;
}

.audit-btn-prev {
  flex-shrink: 0;
}

/* Результат */
.audit-result {
  text-align: center;
  padding: 40px 0 0;
  animation: fadeInUp .4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.audit-result__score-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.audit-result__score {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  color: var(--brand-color);
  transition: color .3s;
}

.audit-result__scale {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 500;
}

.audit-result__badge {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 20px;
  background: var(--brand-color);
}

.audit-result__title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--brand-color);
  margin: 0 0 12px;
}

.audit-result__text {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 32px;
}

.audit-result__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.audit-result__restart {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.audit-result__restart:hover {
  color: var(--brand-color);
}

@media (max-width: 575px) {
  .audit-result__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .audit-result__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .audit-btn-next {
    min-width: unset;
    flex: 1;
  }

  .audit-answer__label {
    font-size: 15px;
    padding: 12px 14px;
  }
}


/* ═══════════════════════════════════════════════
   reCAPTCHA v3 — скрываем стандартный бейдж
   Вместо него добавляем текстовое упоминание в шаблонах форм
   ═══════════════════════════════════════════════ */

.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}

.recaptcha-notice {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

.recaptcha-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════
   CF7 — стилизация под дизайн темы
   ═══════════════════════════════════════════════════════ */

/* CF7 response output → matches .form-status */
.wpcf7-response-output {
  margin: 12px 0 0;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: none !important;
}

.wpcf7-form.sent .wpcf7-response-output {
  background: #d1fae5;
  color: #065f46;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
  background: #fee2e2;
  color: #991b1b;
}

/* Inline validation tips */
.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
  display: block;
}

/* Remove CF7 spinning indicator on submit */
.wpcf7-form .wpcf7-spinner {
  display: none !important;
}

/* Submit button loading state via CF7 */
.wpcf7-form.submitting [type="submit"] {
  opacity: 0.7;
  pointer-events: none;
}

/* CF7 wraps fields in span.wpcf7-form-control-wrap — make it block */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Remove CF7 aria-required asterisk styling conflicts */
.wpcf7-form-control-wrap [aria-required="true"] {
  /* inherits our form-input styles */
}

/* ═══════════════════════════════════════════════
   CF7 В EXIT-POPUP (белый фон — переопределяем прозрачные стили)
   ═══════════════════════════════════════════════ */
.exit-popup__box .wpcf7 input[type="text"],
.exit-popup__box .wpcf7 input[type="tel"],
.exit-popup__box .wpcf7 input[type="email"],
.exit-popup__box .wpcf7 textarea {
  background: #f8f9fa;
  border: 1.5px solid #dee2e6;
  color: var(--text-main);
}

.exit-popup__box .wpcf7 input::placeholder,
.exit-popup__box .wpcf7 textarea::placeholder {
  color: #adb5bd;
}

.exit-popup__box .wpcf7 input:focus,
.exit-popup__box .wpcf7 textarea:focus {
  border-color: var(--accent-red);
  background: #fff;
  outline: none;
}

.exit-popup__box .wpcf7 form {
  text-align: left;
}

/* ═══════════════════════════════════════════════
   DISCLAIMER В CF7 ФОРМАХ
   ═══════════════════════════════════════════════ */
.wpcf7 .callback-form__disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .55);
  text-align: center;
  margin: 0;
}

.wpcf7 .callback-form__disclaimer a {
  color: rgba(255, 255, 255, .75);
  text-decoration: underline;
}

/* На светлом фоне */
.callback-block__form .wpcf7 .callback-form__disclaimer,
.service-consult-form-wrap .wpcf7 .callback-form__disclaimer,
.review-form-wrap .wpcf7 .callback-form__disclaimer,
.modal .wpcf7 .callback-form__disclaimer,
.exit-popup__box .wpcf7 .callback-form__disclaimer {
  color: #868e96;
}

.callback-block__form .wpcf7 .callback-form__disclaimer a,
.service-consult-form-wrap .wpcf7 .callback-form__disclaimer a,
.review-form-wrap .wpcf7 .callback-form__disclaimer a,
.modal .wpcf7 .callback-form__disclaimer a,
.exit-popup__box .wpcf7 .callback-form__disclaimer a {
  color: var(--brand-color);
}

/* ═══════════════════════════════════════════════
   CF7 — КНОПКА SUBMIT АДАПТИРУЕТСЯ К КОНТЕКСТУ
   ═══════════════════════════════════════════════ */

/* Модальное окно — кнопка на всю ширину */
.modal .wpcf7 input[type="submit"] {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* Exit-popup — кнопка на всю ширину */
.exit-popup__box .wpcf7 input[type="submit"] {
  width: 100%;
  margin-top: 4px;
}

/* Service-consult — кнопка выровнена по правому краю как в оригинале */
.service-consult-form__footer .wpcf7 input[type="submit"],
.service-consult-form-wrap .wpcf7 input[type="submit"] {
  width: auto;
  min-width: 220px;
}

/* ═══════════════════════════════════════════════
   CF7 ФОРМА ВНУТРИ CALLBACK-BLOCK (тёмный фон)
   Кнопка + gap между полями
   ═══════════════════════════════════════════════ */
.callback-block__form .wpcf7 form {
  gap: 12px;
}

.callback-block__form .wpcf7 input[type="submit"] {
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   CF7 RESPONSE OUTPUT — убираем дефолтный border CF7
   ═══════════════════════════════════════════════ */
.wpcf7-response-output {
  border: none !important;
  border-radius: 8px;
  padding: 10px 14px !important;
  margin: 8px 0 0 !important;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════
   CF7 REQUIRED ASTERISK (*) — скрываем встроенный
   ═══════════════════════════════════════════════ */
.wpcf7-form abbr[title] {
  text-decoration: none;
}


/* ════════════════════════════════════════════════════════════════
   STYLING AUDIT FIXES — типографика, кнопки, карточки, адаптив
   ════════════════════════════════════════════════════════════════ */

/* ── 1. ТИПОГРАФИКА ── */

/* Секция-заголовок: чуть крупнее и с letter-spacing */
.section__title {
  letter-spacing: -0.01em;
}

/* Disclaimer-ссылки в формах CF7 */
.callback-form__disclaimer {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: var(--sp-md);
  line-height: 1.55;
}

.callback-form__disclaimer a {
  color: var(--brand-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.callback-form__disclaimer a:hover {
  color: var(--accent-blue);
}

/* Тёмный фон (callback-block) — текст белый */
.callback-block .callback-form__disclaimer,
.section--dark .callback-form__disclaimer {
  color: rgba(255, 255, 255, 0.65);
}

.callback-block .callback-form__disclaimer a,
.section--dark .callback-form__disclaimer a {
  color: rgba(255, 255, 255, 0.9);
}


/* ── 2. КНОПКИ: focus-visible + min-height + active ── */

/* Убираем глобальный outline: none — лучше через :focus-visible */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 3px;
}

/* Явные focus-visible для кнопок */
.btn:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.15);
}

.btn--primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.4);
}

.btn--outline:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 3px;
}

/* Touch-target WCAG 2.5.5 — min 44px */
.btn {
  min-height: 44px;
}

.btn--lg {
  min-height: 52px;
}

.btn--sm {
  min-height: 36px;
}

/* Active feedback */
.btn:active {
  transform: scale(0.98);
}

/* Hover-цвет через переменные вместо hardcoded hex */
.btn--phone-banner:hover {
  background: var(--color-accent-hover);
}

.btn--whatsapp:hover {
  background: #1da855;
  /* нет CSS-var для WA hover — оставляем */
}

.btn--telegram:hover {
  background: #0077b3;
  /* нет CSS-var для TG hover — оставляем */
}


/* ── 3. КАРТОЧКИ ── */

/* process-card — приводим mobile breakpoint к одному месту */
@media (max-width: 576px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* ── 4. СЕКЦИИ: отступы ── */

/* Callback-block: убираем hardcoded padding */
.callback-block {
  padding: var(--sp-2xl) var(--sp-xl);
}


/* ── 5. АДАПТИВ ── */

/* Benefits и advantages — мобильный breakpoint */
@media (max-width: 767px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .advantages-row {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  /* Заголовки на мобиле */
  .hero__title {
    font-size: clamp(26px, 6vw, 48px);
  }

  .section__title {
    font-size: clamp(20px, 5vw, 26px);
  }

  .callback-block h3,
  .callback-block .callback-form__title {
    font-size: clamp(18px, 5vw, 26px);
  }

  /* Форма: touch-target для полей */
  .wpcf7 input[type="text"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="email"],
  .wpcf7 textarea {
    min-height: 44px;
  }
}

/* Sticky CTA — только на мобиле */
@media (min-width: 768px) {
  .sticky-cta {
    display: none !important;
  }
}


/* ── 6. CF7 ФОРМЫ: недостающие контексты ── */

/* Doctor-appointment: поля */
.section--doctor-appoint .wpcf7 input[type="text"],
.section--doctor-appoint .wpcf7 input[type="tel"],
.section--doctor-appoint .wpcf7 input[type="email"],
.section--doctor-appoint .wpcf7 textarea {
  background: rgba(255, 255, 255, 0.97);
  border: 2px solid var(--border);
  border-radius: var(--radius-md, 14px);
  padding: 12px 16px;
  min-height: 44px;
  color: var(--text-main);
  transition: border-color var(--transition);
}

.section--doctor-appoint .wpcf7 input:focus,
.section--doctor-appoint .wpcf7 textarea:focus {
  border-color: var(--brand-color);
  outline: none;
}

/* CF7 невалидное поле + фокус */
.wpcf7 input.wpcf7-not-valid:focus,
.wpcf7 textarea.wpcf7-not-valid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  outline: none;
}

/* focus-visible на всех CF7 полях */
.wpcf7 input[type="text"]:focus-visible,
.wpcf7 input[type="tel"]:focus-visible,
.wpcf7 input[type="email"]:focus-visible,
.wpcf7 textarea:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 2px;
}

/* Модал: submit на всю ширину */
.modal .wpcf7 input[type="submit"],
.modal .btn--primary {
  width: 100%;
}

.modal .btn--primary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}


/* ════════════════════════════════════════════════════════════
   Шорткод [cite num="N"] — надстрочная ссылка на источник
   ════════════════════════════════════════════════════════════ */
.cite-ref {
  display: inline;
  line-height: 0;
  vertical-align: super;
  font-size: 0.72em;
}

.cite-ref__link {
  color: var(--brand-color);
  text-decoration: none;
  font-weight: 700;
  padding: 0 1px;
  transition: color 0.2s;
}

.cite-ref__link:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.cite-ref__link:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 1px;
  border-radius: 2px;
}


/* ════════════════════════════════════════════════════════════
   Шорткод [medical_term] — термин с всплывающей подсказкой
   ════════════════════════════════════════════════════════════ */
.medical-term {
  text-decoration: underline dotted var(--brand-color);
  text-underline-offset: 3px;
  cursor: help;
  color: inherit;
  font-style: normal;
}

.medical-term:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ════════════════════════════════════════════════════════════
   Шорткод [medical_fact] — выделенный блок факта/предупреждения
   ════════════════════════════════════════════════════════════ */
.medical-fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-lg, 12px);
  border-left: 4px solid;
  margin: 24px 0;
  font-size: var(--fs-base, 1rem);
  line-height: 1.68;
}

.medical-fact--info {
  background: rgba(95, 168, 211, 0.08);
  border-color: var(--accent-blue);
  color: var(--text-main);
}

.medical-fact--warning {
  background: #fff8e7;
  border-color: #f0a020;
  color: #7a4500;
}

.medical-fact--success {
  background: rgba(22, 163, 74, 0.07);
  border-color: #16a34a;
  color: #14532d;
}

.medical-fact__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 2px;
}

.medical-fact--info .medical-fact__icon {
  color: var(--accent-blue);
}

.medical-fact--warning .medical-fact__icon {
  color: #f0a020;
}

.medical-fact--success .medical-fact__icon {
  color: #16a34a;
}

.medical-fact__body {
  flex: 1;
  min-width: 0;
}

.medical-fact__body p:first-child {
  margin-top: 0;
}

.medical-fact__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .medical-fact {
    padding: 14px 16px;
    gap: 10px;
  }
}




/* ════════════════════════════════════════════════════════════
   Уровень доказательности — цветовые бейджи (A / B / C)
   ════════════════════════════════════════════════════════════ */
/* A — высокий */
.evidence-box__value--a-vysokij-randomizirovannye-issledovaniya {
  background: #e0f0e0;
  color: #1e7a1e;
}

/* B — умеренный (alias нового slug) */
.evidence-box__value--b-umerennyj-kogortnyе-issledovaniya,
.evidence-box__value--b-umerennyj-kogortny-issledovaniya {
  background: #fff3cd;
  color: #856404;
}

/* C — низкий (alias нового slug) */
.evidence-box__value--c-nizkij-opisaniya-sluchaev-ekspertnoe-mnenie-2,
.evidence-box__value--c-nizkij-opisaniya-slucha-ekspertnoe-mnenie {
  background: #fde2e2;
  color: #b91c1c;
}


/* ════════════════════════════════════════════════════════════
   Блок «Противопоказания»
   ════════════════════════════════════════════════════════════ */
.contraindications-box {
  padding: 24px 28px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--accent-red);
  border-radius: var(--r-lg, 12px);
}

.contraindications-box__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm, 0.875rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-red);
  margin-bottom: 14px;
}

.contraindications-box__label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23DC3646' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.contraindications-box .content-block {
  color: var(--text-main);
  font-size: var(--fs-base, 1rem);
  line-height: 1.72;
}

.contraindications-box .content-block ul {
  padding-left: 1.4em;
}

.contraindications-box .content-block li {
  margin-bottom: 6px;
}

@media (max-width: 767px) {
  .contraindications-box {
    padding: 18px 20px;
  }
}


/* ════════════════════════════════════════════════════════════
   Архив статей — E-E-A-T блок на карточке
   ════════════════════════════════════════════════════════════ */
.article-card__eeat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 8px 0 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.article-card__eeat-person {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.article-card__eeat-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.article-card__eeat-label {
  opacity: 0.7;
}

.article-card__eeat-name {
  font-weight: 600;
  color: var(--text-main);
}

.article-card__eeat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  border-radius: var(--r-full);
  padding: 2px 8px;
  line-height: 1.5;
}

.article-card__eeat-badge svg {
  flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════════
   Архив врачей — бейджи степени и категории
   ════════════════════════════════════════════════════════════ */
.doctor-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  line-height: 1.5;
  margin-right: 4px;
}

.doctor-card__badge--degree {
  background: rgba(31, 58, 95, 0.1);
  color: var(--brand-color);
}

.doctor-card__badge--qual {
  background: rgba(95, 168, 211, 0.15);
  color: #1e6fa0;
}


/* Бейдж «Автор материалов» на странице авторов */
.doctor-card__badge--author {
  background: rgba(255, 130, 27, 0.12);
  color: var(--accent-orange);
}


/* ════════════════════════════════════════════════════════════
   flex-consult-cta — рамочный баннер с телефоном
   ════════════════════════════════════════════════════════════ */
.consult-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding: 32px 36px;
  border: 2px solid var(--cc-border, var(--brand-color));
  border-radius: var(--r-sm, 16px);
  margin: 0 auto;
  background: #fff;
}

.consult-cta__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--cc-badge, var(--accent-red));
  color: #fff;
  font-size: var(--fs-xs, 0.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.consult-cta__subtitle {
  flex: 1;
  min-width: 200px;
  font-size: var(--fs-lg, 1.125rem);
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.consult-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--brand-color);
  text-decoration: none;
  white-space: nowrap;
}

.consult-cta__phone:hover {
  color: var(--accent-red);
}

.consult-cta__btn {
  padding: 14px 28px;
  margin: 0 auto;
  background: var(--cc-badge, var(--accent-red));
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  font-weight: 700;
  font-size: var(--fs-base);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.consult-cta__btn:hover {
  opacity: 0.88;
}

@media (max-width: 767px) {
  .consult-cta {
    padding: 22px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ════════════════════════════════════════════════════════════
   flex-phone-consult — горизонтальный баннер с телефоном
   ════════════════════════════════════════════════════════════ */
.phone-consult {
  display: flex;
  align-items: center;
  gap: 32px 48px;
  flex-wrap: wrap;
}

.section--phone-consult {
  color: #fff;
}

.phone-consult__info {
  flex: 1;
  min-width: 220px;
}

.phone-consult__title {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}

.phone-consult__subtitle {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  line-height: 1.6;
}

.phone-consult__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
}

.phone-consult__phone {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.phone-consult__phone:hover {
  opacity: 0.85;
}

.phone-consult__btn {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .phone-consult {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone-consult__action {
    width: 100%;
  }

  .phone-consult__btn {
    width: 100%;
    text-align: center;
  }
}


/* ════════════════════════════════════════════════════════════
   flex-phone-cta — компактный блок с телефоном + мессенджеры
   ════════════════════════════════════════════════════════════ */
.section--flex-phone-cta {
  background: var(--phcta-bg, var(--bg-section));
}

.flex-phone-cta {
  display: flex;
  align-items: center;
  gap: 24px 48px;
  flex-wrap: wrap;
  padding: 36px 0;
}

.flex-phone-cta__main {
  flex: 1;
  min-width: 220px;
}

.flex-phone-cta__title {
  font-size: var(--fs-lg, 1.125rem);
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 10px;
}

.flex-phone-cta__phone {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--brand-color);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.1;
}

.flex-phone-cta__phone:hover {
  color: var(--accent-red);
}

.flex-phone-cta__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.flex-phone-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-lg);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}

.flex-phone-cta__btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.flex-phone-cta__btn--tg {
  background: #2F89CE;
  color: #fff;
}

.flex-phone-cta__btn--wa {
  background: #48C95F;
  color: #fff;
}

@media (max-width: 767px) {
  .flex-phone-cta {
    padding: 28px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .flex-phone-cta__buttons {
    width: 100%;
  }

  .flex-phone-cta__btn {
    flex: 1;
    justify-content: center;
  }
}


/* ════════════════════════════════════════════════════════════
   flex-promo-banner — градиентный баннер с фото справа
   ════════════════════════════════════════════════════════════ */
.section--promo-banner {
  overflow: hidden;
  padding: 0;
}

.promo-banner__inner {
  position: relative;
  min-height: 280px;
  padding: 48px 52px;
  border-radius: var(--r-lg, 8px);
  background:
    linear-gradient(90deg, var(--pbanner-color, var(--brand-color)) 45%, transparent 80%),
    var(--pbanner-bg, none) center / cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.promo-banner__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: #fff;
}

.promo-banner__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.promo-banner__price {
  display: block;
  color: var(--accent-red);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.promo-banner__subtitle {
  font-size: var(--fs-lg, 1.125rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
  line-height: 1.5;
}

.promo-banner__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.promo-banner__signature {
  width: 120px;
  height: 70px;
  flex-shrink: 0;
  opacity: 0.55;
}

@media (max-width: 767px) {
  .promo-banner__inner {
    padding: 32px 24px;
    background: linear-gradient(180deg, var(--pbanner-color, var(--brand-color)) 60%, transparent 100%),
      var(--pbanner-bg, none) center / cover no-repeat;
    min-height: 320px;
    align-items: flex-end;
  }

  .promo-banner__content {
    max-width: 100%;
  }

  .promo-banner__btn {
    width: 100%;
    text-align: center;
  }
}


/* ════════════════════════════════════════════════════════════
   .medical-term-tooltip — JS-тултип для тач-устройств
   ════════════════════════════════════════════════════════════ */
.medical-term-tooltip {
  position: absolute;
  z-index: 9999;
  max-width: 280px;
  padding: 8px 12px;
  background: var(--brand-color);
  color: #fff;
  font-size: 13px;
  line-height: 1.55;
  border-radius: var(--r-md, 8px);
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0, 0, 0, .18));
  pointer-events: none;
}

.medical-term-tooltip[hidden] {
  display: none;
}

.eeat-meta-card {
  background: #fff;
  padding: 28px;
  box-shadow: none;
}

.eeat-meta-card__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.eeat-person {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  border: 1px solid #e9eef5;
}

.eeat-person--reviewer {
  background: #f6faff;
  border-color: #cfe0f7;
}

.eeat-person__photo-wrap {
  flex: 0 0 56px;
}

.eeat-person__photo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
}

.eeat-person__body {
  min-width: 0;
}

.eeat-person__label {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #7c8fb0;
}

.eeat-person__name {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  color: #183b70;
  text-decoration: none;
}

.eeat-person__name:hover {
  text-decoration: underline;
}

.eeat-person__position {
  font-size: 16px;
  line-height: 1.45;
  color: #5f7495;
}

.eeat-person__meta {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #4e6485;
  font-weight: 600;
}

.eeat-meta-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e7edf5;
}

.eeat-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: #5f7495;
}

.eeat-stat__label {
  color: #7d8daa;
}

.eeat-stat__value {
  color: #334a6d;
  font-weight: 600;
}

.medical-disclaimer--inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  font-size: 14px;
  border-radius: 10px;
  background: #fff9ec;
  border: 1px solid #f3d9a4;
  border-left: 3px solid #e6b35a;
  color: #5a4a22;
}

.medical-disclaimer__icon {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
}

.medical-disclaimer__text {
  font-size: 15px;
  line-height: 1.6;
}

.medical-disclaimer__text strong {
  color: #2f2a1f;
}

@media (max-width: 767px) {
  .eeat-meta-card {
    padding: 18px;
    border-radius: 18px;
  }

  .eeat-meta-card__top {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .eeat-person {
    padding: 16px;
    border-radius: 14px;
  }

  .eeat-person__name {
    font-size: 16px;
  }

  .eeat-person__position,
  .eeat-stat,
  .medical-disclaimer__text {
    font-size: 14px;
  }

  .eeat-meta-card__stats {
    gap: 10px 14px;
  }
}

.eeat-person--reviewer {
  background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 100%);
  border: 2px solid #cfe0f7;
  box-shadow: 0 10px 30px rgba(31, 58, 95, .08);
}

.eeat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: #1f3a5f;
  background: #e6f0ff;
  padding: 4px 10px;
  border-radius: 999px;
}

.eeat-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #2563eb;
}

.medical-disclaimer--inline {
  background: #fff6df;
  border-left: 5px solid #f2a100;
}

.medical-disclaimer--inline {
  font-weight: 500;
}

/* ================================================================
   О КЛИНИКЕ — новые секции (page-about.php)
   ================================================================ */

/* ── Intro ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro--has-media .about-intro__body {
  order: 2;
}

.about-intro__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.about-intro__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 480px;
}

.about-intro__play {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 56px;
  text-decoration: none;
  transition: background .2s;
}

.about-intro__play:hover {
  background: rgba(0, 0, 0, .55);
}

.about-intro__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.about-intro__text {
  color: #555;
  line-height: 1.7;
}

.about-intro__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-intro--has-media .about-intro__body {
    order: unset;
  }
}

/* ── Counters ── */
.about-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.about-counter {
  padding: 16px 8px;
}

.about-counter__value {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-white, #6d28d9);
  line-height: 1;
}

.about-counter__label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
}

.section--about-counters .about-counter__label {
  color: rgba(255, 255, 255, .75);
}

/* ── Gallery with captions (Swiper) ── */
.section--about-gallery-cap {
  overflow: hidden;
}

/* ── Фотогалерея — Swiper-слайдер ── */
.section--about-gallery {
  background: #f4f6fb;
  overflow: hidden;
  padding-bottom: 56px;
  /* место под пагинацию */
}

.about-gallery-slider {
  position: relative;
  padding: 0 52px;
  /* боковые отступы для стрелок */
}

.about-gallery-slider .swiper-slide {
  border-radius: 10px;
  overflow: hidden;
}

.about-gallery-slide__link {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  text-decoration: none;
}

.about-gallery-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.about-gallery-slide__link:hover .about-gallery-slide__img {
  transform: scale(1.06);
}

/* Подпись внизу слайда */
.about-gallery-slide__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(31, 58, 95, .75));
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.about-gallery-slide__link:hover .about-gallery-slide__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ── Стрелки навигации ── */
.about-gallery-slider .swiper-button-prev,
.about-gallery-slider .swiper-button-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-color, #1F3A5F);
  color: #fff;
  box-shadow: 0 2px 10px rgba(31, 58, 95, .3);
  transition: background .2s ease, box-shadow .2s ease;
}

.about-gallery-slider .swiper-button-prev:hover,
.about-gallery-slider .swiper-button-next:hover {
  background: var(--brand-purple, #2E2751);
  box-shadow: 0 4px 16px rgba(31, 58, 95, .4);
}

.about-gallery-slider .swiper-button-prev::after,
.about-gallery-slider .swiper-button-next::after {
  font-size: 14px;
  font-weight: 700;
}

.about-gallery-slider .swiper-button-prev.swiper-button-disabled,
.about-gallery-slider .swiper-button-next.swiper-button-disabled {
  opacity: .35;
  pointer-events: none;
}

/* ── Пагинация (точки) ── */
.about-gallery-slider .swiper-pagination {
  bottom: -40px;
}

.about-gallery-slider .swiper-pagination-bullet {
  background: var(--brand-color, #1F3A5F);
  opacity: .3;
  transition: opacity .2s, transform .2s;
}

.about-gallery-slider .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--accent, #DC3646);
  transform: scale(1.25);
}

/* ── Адаптив ── */
@media (max-width: 767px) {
  .about-gallery-slider {
    padding: 0 40px;
  }

  .about-gallery-slider .swiper-button-prev,
  .about-gallery-slider .swiper-button-next {
    width: 34px;
    height: 34px;
  }

  .about-gallery-slider .swiper-button-prev::after,
  .about-gallery-slider .swiper-button-next::after {
    font-size: 12px;
  }
}

@media (max-width: 479px) {
  .about-gallery-slider {
    padding: 0 8px;
  }

  .about-gallery-slider .swiper-button-prev,
  .about-gallery-slider .swiper-button-next {
    display: none;
  }
}

.about-gallery-cap-slider .swiper-slide {
  border-radius: 10px;
  overflow: hidden;
}

.about-gallery-cap__item {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.about-gallery-cap__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.about-gallery-cap__item:hover .about-gallery-cap__img {
  transform: scale(1.04);
}

.about-gallery-cap__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

/* ── Mission / Values ── */
.about-mission {
  margin-bottom: 40px;
}

.about-mission__text {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  max-width: 760px;
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.about-value-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  text-align: center;
}

.about-value-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(109, 40, 217, .1);
  color: var(--color-primary, #6d28d9);
}

.about-value-card__icon svg {
  display: block;
}

.about-value-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary, #6d28d9);
}

.about-value-card__text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ── Methods ── */
.section--about-methods {
  background: #f4f6fb;
}

.about-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .about-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .about-methods-grid {
    grid-template-columns: 1fr;
  }
}

.about-method-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  border-top: 4px solid var(--color-primary, #6d28d9);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}

.about-method-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at top right, rgba(109, 40, 217, .07), transparent 70%);
  pointer-events: none;
}

.about-method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(109, 40, 217, .13);
}

.about-method-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(109, 40, 217, .12), rgba(109, 40, 217, .06));
  color: var(--color-primary, #6d28d9);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.about-method-card__icon svg {
  display: block;
}

.about-method-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
  line-height: 1.35;
}

.about-method-card__text {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

/* ── Standards ── */
.about-standards__intro {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 28px;
  max-width: 720px;
}

.about-standards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-standard-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.about-standard-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(109, 40, 217, .1);
  color: var(--color-primary, #6d28d9);
}

.about-standard-item__icon svg {
  display: block;
}

.about-standard-item__body {
  flex: 1;
}

.about-standard-item__title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--color-primary, #6d28d9);
}

.about-standard-item__text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ── Logos grid (universities + associations) ── */
.about-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.about-logo-card,
a.about-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 20px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}

a.about-logo-card--link:hover {
  box-shadow: 0 6px 20px rgba(109, 40, 217, .15);
  transform: translateY(-2px);
}

.about-logo-card__img {
  width: 80px;
  height: 60px;
  object-fit: contain;
}

.about-logo-card__initial {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--color-primary, #6d28d9);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-card__name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

.about-logo-card__sub {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.about-uni__intro {
  font-size: 1rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 24px;
}

/* ── Licenses ── */
.about-licenses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.about-license-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}

.about-license-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
  transform: translateY(-3px);
}

.about-license-card--landscape {
  grid-column: span 2;
}

.about-license-card--landscape .about-license-card__img {
  max-height: 260px;
}

.about-license-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.about-license-card--landscape .about-license-card__img {
  aspect-ratio: 16/9;
}

.about-license-card__title {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  border-top: 1px solid #f0f0f0;
}

/* ── Awards ── */
.about-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.about-award-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.about-award-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
  transform: translateY(-4px);
}

.about-award-card__img-wrap {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.about-award-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.about-award-card:hover .about-award-card__img-wrap img {
  transform: scale(1.05);
}

.about-award-card__body {
  padding: 16px 18px;
  flex: 1;
}

.about-award-card__year {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  background: var(--color-primary, #6d28d9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}

.about-award-card__title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.about-award-card__desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ── Partners ── */
.about-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.about-partner-card,
a.about-partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  padding: 24px 20px;
  text-decoration: none;
  color: #fff;
  text-align: center;
  min-height: 110px;
  transition: background .2s, transform .2s;
}

a.about-partner-card--link:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}

.about-partner-card__logo {
  max-width: 100px;
  max-height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .85;
}

.about-partner-card__name-fallback {
  font-size: 14px;
  font-weight: 600;
}

/* ── Ratings ── */
.section--about-ratings .rating-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* ── Legal ── */
.about-legal-table {
  max-width: 720px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .07);
}

.about-legal-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid #f0f0f0;
  align-items: baseline;
}

.about-legal-row:last-child {
  border-bottom: none;
}

.about-legal-row__label {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

.about-legal-row__value {
  font-size: 14px;
  color: #222;
}

.about-legal-extra {
  padding: 14px 22px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  white-space: pre-line;
}

@media (max-width: 540px) {
  .about-legal-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .about-legal-row__label {
    color: #aaa;
    font-size: 12px;
  }
}

/* ── CTA box ── */
.about-cta-box {
  /* background: var(--color-primary, #6d28d9); */
  background: linear-gradient(135deg, #0d2035 0%, var(--brand-color) 55%, #1a4876 100%);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  color: #fff;
}

.about-cta-box__text {
  font-size: 1.15rem;
  margin-bottom: 24px;
  opacity: .9;
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {

  .about-values__grid,
  .about-awards-grid,
  .about-partners-grid,
  .about-logos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .about-licenses__grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-license-card--landscape {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .about-licenses__grid {
    grid-template-columns: 1fr;
  }

  .about-license-card--landscape {
    grid-column: span 1;
  }

  .about-legal-row {
    grid-template-columns: 1fr;
  }

  .about-awards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Видео о клинике ── */
.section--about-video {
  background: #f8f9fb;
}

.about-video-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.about-video {
  display: block;
  width: 100%;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.about-video__caption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* ═══════════════════════════════════════════════════════════════════════
   Страница «Фотогалерея» (page-gallery.php) — photo-gallery-grid
   ═══════════════════════════════════════════════════════════════════════ */

.section--gallery-intro {
  padding-bottom: 0;
}

.gallery-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted, #666);
}

/* ── Секция галереи ── */
.section--photo-gallery {
  background: #f4f6fb;
}

.section--photo-gallery+.section--photo-gallery {
  padding-top: 0;
}

/* ── Сетка фотографий ── */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Первое фото — акцентный (2×2) */
.photo-gallery-grid__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-gallery-grid__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: #dde3ee;
  text-decoration: none;
  cursor: zoom-in;
}

.photo-gallery-grid__item:first-child {
  aspect-ratio: unset;
}

.photo-gallery-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.photo-gallery-grid__item:hover .photo-gallery-grid__img {
  transform: scale(1.06);
}

/* Overlay при наведении */
.photo-gallery-grid__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 58, 95, 0);
  transition: background .3s ease;
  pointer-events: none;
}

.photo-gallery-grid__item:hover .photo-gallery-grid__overlay {
  background: rgba(31, 58, 95, .5);
}

.photo-gallery-grid__overlay svg {
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .3s;
}

.photo-gallery-grid__item:hover .photo-gallery-grid__overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Подпись снизу */
.photo-gallery-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.photo-gallery-grid__item:hover .photo-gallery-grid__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ── Адаптив ── */
@media (max-width: 1024px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-gallery-grid__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .photo-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .photo-gallery-grid__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 400px) {
  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }

  .photo-gallery-grid__item:first-child {
    grid-column: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Галерея-сетка (шорткод [gallery] и страница Фотогалерея) — .gallery-grid
   ═══════════════════════════════════════════════════════════════════════ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: var(--sp-md, 24px) 0;
}

/* Первое фото — акцент 2×2 */
.gallery-grid__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* Поддержка атрибута columns: [gallery columns="3"] */
.gallery-grid--cols-1 {
  grid-template-columns: 1fr;
}

.gallery-grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid--cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-grid--cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-grid__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: #dde3ee;
  text-decoration: none;
  cursor: zoom-in;
}

.gallery-grid__item:first-child {
  aspect-ratio: unset;
}

.gallery-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-grid__item:hover .gallery-grid__img {
  transform: scale(1.06);
}

/* Overlay с лупой */
.gallery-grid__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 58, 95, 0);
  transition: background .3s ease;
  pointer-events: none;
}

.gallery-grid__item:hover .gallery-grid__overlay {
  background: rgba(31, 58, 95, .5);
}

.gallery-grid__overlay svg {
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .3s;
}

.gallery-grid__item:hover .gallery-grid__overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Подпись */
.gallery-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.gallery-grid__item:hover .gallery-grid__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ── Адаптив ── */
@media (max-width: 1024px) {

  .gallery-grid,
  .gallery-grid--cols-4,
  .gallery-grid--cols-5,
  .gallery-grid--cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {

  .gallery-grid,
  .gallery-grid--cols-3,
  .gallery-grid--cols-4,
  .gallery-grid--cols-5,
  .gallery-grid--cols-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-grid__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid__item:first-child {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ── doctor rating badge — SVG icon sizing ─────────────────── */
.doctor-rating-badge__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--brand-color, #1B3B5C);
}

.doctor-rating-badge__icon svg {
  width: 16px;
  height: 16px;
}

.doctor-rating-badge__star {
  display: inline-flex;
  align-items: center;
  color: #f5a623;
}

.doctor-rating-badge__star svg {
  width: 13px;
  height: 13px;
}