/*
 * МЕДФОРМАТ — исправления адаптивной верстки
 *
 * Исправляет:
 * 1. Наложение мобильного меню и перекрытие панели действий (.mobilebar).
 * 2. Блокировку прокрутки страницы под меню и свободный тач-скролл внутри меню.
 * 3. Переполнение и тесноту десктопной шапки (чистый брейкпоинт 992 px).
 * 4. Автозум в iOS Safari при фокусе в поля ввода (font-size 16px).
 * 5. Поведение на компактных экранах (320–360 px) и устройствах с safe-area.
 */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body.body--locked {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.body--locked .mobilebar {
  display: none !important;
}

.mobilebar {
  transition: transform 0.28s ease;
  will-change: transform;
}

.mobilebar.mobilebar--hidden {
  transform: translateY(calc(100% + env(safe-area-inset-bottom) + 20px));
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo__mark {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--c-primary);
  transition: color 0.2s ease;
}

.logo:hover .logo__mark {
  color: var(--c-primary-dark);
}

.footer .logo__mark {
  color: var(--c-accent);
}

.footer .logo:hover .logo__mark {
  color: #ffffff;
}

.logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.logo__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
  line-height: 1.1;
}

.logo__sub {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: normal;
  text-transform: none !important;
  white-space: nowrap;
  line-height: 1.1;
}

/* Мобильная шапка (< 992 px) */
@media (max-width: 991.98px) {
  .header {
    transition: box-shadow 0.25s ease, transform 0.28s ease;
    will-change: transform;
  }

  .header.header--hidden {
    transform: translateY(-100%);
  }

  .burger {
    display: grid;
    flex: 0 0 48px;
  }

  .header__phone,
  .header__cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100dvh - 70px);
    min-height: 0;
    padding: 20px 24px calc(28px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;

    display: none;
    flex-direction: column;
    gap: 4px;

    background: #fff;
    box-shadow: 0 18px 32px rgba(18, 38, 63, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
    z-index: 90;
  }

  .nav.nav--open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 8px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--c-line);
  }

  .nav__extra {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
  }

  .nav__extra a {
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border-bottom: 0;
  }

  .nav__extra .btn--primary {
    background: var(--c-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(14, 90, 167, 0.28);
  }

  .nav__extra .btn--primary .ic {
    color: #ffffff !important;
    stroke: #ffffff !important;
  }

  .nav__extra .btn--primary:hover,
  .nav__extra .btn--primary:active {
    background: var(--c-primary-dark) !important;
    color: #ffffff !important;
  }

  .nav__extra .btn--ghost {
    background: #ffffff !important;
    color: var(--c-primary) !important;
    border: 1.5px solid var(--c-line) !important;
  }

  .nav__extra .btn--ghost:hover,
  .nav__extra .btn--ghost:active {
    border-color: var(--c-primary) !important;
    color: var(--c-primary-dark) !important;
  }
}

/* Десктопная шапка (>= 992 px) */
@media (min-width: 992px) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.8vw, 26px);
  }

  .burger {
    display: none;
  }

  .header__phone,
  .header__cta {
    display: inline-flex;
  }

  .nav__extra {
    display: none;
  }
}

/* Поля формы: предотвращение нежелательного зума на iPhone */
.field input,
.field textarea {
  font-size: 16px;
}

/* Компактный бейдж на узких мобильных экранах */
@media (max-width: 480px) {
  .hero__badge {
    border-radius: var(--r-sm);
    line-height: 1.35;
    padding: 8px 12px;
    white-space: normal;
  }
}

.hero__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  list-style: none;
  padding: 0;
  margin-left: 0;
}

/* Единая форма кнопок мессенджеров (скругление 14px как у основных кнопок) */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  transition: transform .18s, filter .18s, box-shadow .18s;
  white-space: nowrap;
}

.chip:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.chip--tg {
  background: var(--c-tg);
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.28);
}

.chip--max {
  background: linear-gradient(135deg, #7a5cf5, #3b82f6);
  box-shadow: 0 8px 20px rgba(90, 92, 240, 0.28);
}

/* На мобильных экранах кнопки первого экрана выстраиваются аккуратно */
@media (max-width: 640px) {
  .hero__cta,
  .hero__messengers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .hero__cta .btn,
  .hero__messengers .chip {
    width: 100%;
    margin: 0;
  }
}

/* Оборудование и кабинет врача: адаптивная высота на десктопе под высоту контент-блока */
.equipment__img,
.doctors__img {
  margin: 0;
}

.equipment__img img,
.doctors__img img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

@media (min-width: 1024px) {
  .equipment__inner,
  .doctors__inner {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: clamp(32px, 3.5vw, 52px);
  }

  .equipment__img,
  .doctors__img {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .equipment__img img {
    height: 100%;
    min-height: 360px;
    max-height: 480px;
    aspect-ratio: auto;
    object-position: center;
  }

  .doctors__img img {
    height: 100%;
    min-height: 380px;
    max-height: 520px;
    aspect-ratio: auto;
    object-position: 45% center;
  }
}

@media (max-width: 640px) {
  .equipment__img img,
  .doctors__img img {
    aspect-ratio: 3 / 2;
    max-height: 240px;
    height: auto;
  }
}

.contact-card {
  overflow: hidden;
}

/* Уменьшение движения */
@media (prefers-reduced-motion: reduce) {
  .nav {
    transition: none;
  }
}

/* ============ ВАРИАНТ Б: ЕДИНЫЙ МЕДИА-БЛОК В КОНТАКТАХ ============ */
@media (min-width: 992px) {
  .contacts__grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 28px;
  }

  .contact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }



  .contact-card--form .form__grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
    margin-top: 18px;
  }

  .contact-card--form button[type="submit"] {
    margin-top: auto;
  }
}

.contact-info__top {
  display: flex;
  flex-direction: column;
}

.contact-phone-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-phone-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.contact-address-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-address-link:hover {
  color: var(--c-primary);
  text-decoration: underline;
}

.contact-line__content {
  flex: 1;
}

.contact-line__action {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
  border-radius: 10px;
  gap: 7px;
  display: inline-flex;
}

.btn--sm .ic {
  width: 16px;
  height: 16px;
}

/* Фотография входа и ориентир проезда */
.contact-photo {
  margin: 20px 0 0;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 38, 63, 0.05);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
}

.contact-photo:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

.contact-photo__wrap {
  position: relative;
  overflow: hidden;
  display: block;
}

.contact-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: 300px;
  object-fit: cover;
  object-position: center 52%;
  display: block;
  transition: transform 0.3s ease;
}

.contact-photo:hover img {
  transform: scale(1.02);
}

.contact-photo__zoom-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(18, 38, 63, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transition: background 0.2s, transform 0.2s;
}

.contact-photo__zoom-badge .ic {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.contact-photo:hover .contact-photo__zoom-badge {
  background: rgba(14, 90, 167, 0.92);
  transform: scale(1.04);
}

.contact-photo figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-muted);
  padding: 9px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--c-line);
  line-height: 1.35;
  flex-shrink: 0;
}

.contact-photo figcaption .ic {
  width: 15px;
  height: 15px;
  color: var(--c-teal);
  flex-shrink: 0;
}

/* ============ LIGHTBOX МОДАЛЬНОЕ ОКНО ============ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 28, 48, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-modal__container {
  position: relative;
  z-index: 2;
  max-width: min(94vw, 1060px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.lightbox-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-modal__close:hover {
  background: #fff;
  color: var(--c-ink);
  transform: scale(1.08);
}

.lightbox-modal__content {
  background: #0d1c30;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1024px;
}

.lightbox-modal__content img {
  width: 100%;
  max-height: calc(85vh - 70px);
  object-fit: contain;
  display: block;
  background: #000;
}

.lightbox-modal__caption {
  margin: 0;
  padding: 12px 18px;
  font-size: 13.5px;
  color: #dce8f7;
  background: #12263f;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .lightbox-modal {
    padding: 8px;
  }
  .lightbox-modal__close {
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

@media (max-width: 991.98px) {
  .contact-photo {
    width: 100%;
    margin: 22px 0 0;
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(18, 38, 63, 0.05);
  }

  .contact-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    max-height: 320px;
    object-fit: cover;
    object-position: center 52%;
    display: block;
  }

  .contact-photo figcaption {
    padding: 10px 14px;
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  .contacts__grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 28px;
  }

  .contact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .contact-photo {
    margin-top: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-md);
  }

  .contact-photo__wrap {
    flex: 1;
    display: flex;
    min-height: 240px;
    position: relative;
    overflow: hidden;
  }

  .contact-photo img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    max-height: 320px;
    object-fit: cover;
    object-position: center 52%;
  }

  .contact-card--form .form__grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
    margin-top: 18px;
  }

  .contact-card--form button[type="submit"] {
    margin-top: auto;
  }
}



/* ============ БЛОК ОТЗЫВОВ И РЕЙТИНГА (СИММЕТРИЧНЫЕ ОТСТУПЫ) ============ */
.doctors {
  padding-bottom: clamp(36px, 5vw, 64px);
}

#reviews {
  padding-block: clamp(36px, 5vw, 64px);
}

.faq {
  padding-top: clamp(36px, 5vw, 64px);
}

.reviews__card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: 0 4px 20px rgba(18, 38, 63, 0.05);
}

.reviews__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.reviews__title {
  font-size: clamp(1.25rem, 2vw + 0.4rem, 1.65rem);
  font-weight: 800;
  margin: 0;
  color: var(--c-ink);
}

.reviews__stars-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reviews__stars {
  display: flex;
  gap: 3px;
  margin: 0;
}

.reviews__stars .ic {
  width: 19px;
  height: 19px;
  color: #f5b300;
}

.reviews__score {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--c-ink);
  background: #fff8e6;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 2px 8px;
  line-height: 1.2;
}

.reviews__src {
  font-size: 14px;
  color: var(--c-muted);
  margin: 0;
}

.reviews__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 680px) {
  .reviews__card {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .reviews__actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-top: 6px;
  }
  .reviews__actions .btn {
    width: 100%;
    margin: 0;
  }
}

/* Кнопки мессенджеров с единым скруглением как у кнопки Позвонить */
.btn--tg {
  background: var(--c-tg);
  color: #fff;
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.28);
}
.btn--tg:hover {
  background: #1a8ec4;
  transform: translateY(-2px);
}

.btn--max {
  background: linear-gradient(135deg, #7a5cf5, #3b82f6);
  color: #fff;
  box-shadow: 0 8px 20px rgba(90, 92, 240, 0.28);
}
.btn--max:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .referral__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .referral__actions .btn {
    width: 100%;
    margin: 0;
  }
}

/* ============ БЕЗОПАСНЫЙ ПОКАЗ БЛОКОВ (.reveal) ============ */
.reveal--visible {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============ БЛОК РАЗРАБОТЧИКА В ФУТЕРЕ (DCW) ============ */
.footer__bottom {
  margin-top: 28px;
  border-top: 1px solid #22364e;
  padding-top: 20px;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer__copy {
  color: #8fa5c2;
  font-size: 13px;
  line-height: 1.4;
}

.footer__developer {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8fa5c2 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
  line-height: 1;
}

.footer__developer:hover {
  color: #ffffff !important;
}

.footer__developer-label {
  letter-spacing: 0.01em;
}

.footer__developer-logo {
  display: inline-block;
  height: 22px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  vertical-align: middle;
}

.footer__developer:hover .footer__developer-logo {
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============ ШАГИ С ИКОНКАМИ И БЕЙДЖАМИ ============ */
.steps-section {
  padding-block: clamp(52px, 7vw, 84px);
}

.step {
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 26px 22px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.04);
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.08);
}

.step::before {
  display: none !important;
}

.step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--c-soft);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.step__icon .ic {
  width: 22px;
  height: 22px;
  color: var(--c-primary);
}

.step__badge {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: var(--c-primary);
  background: rgba(14, 90, 167, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.step h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.3;
  margin-bottom: 8px;
}

.step p {
  color: var(--c-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* ============ БЛОК «ЕСТЬ НАПРАВЛЕНИЕ» (НА БЕЛОМ ФОНЕ) ============ */
.referral-section {
  background: #ffffff;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding-block: clamp(52px, 7vw, 84px);
}

.referral-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .referral-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(36px, 4vw, 56px);
  }
}

.referral__title {
  font-size: clamp(1.6rem, 2.8vw + .5rem, 2.2rem);
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 14px;
}

.referral__lead {
  color: var(--c-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 58ch;
}

.referral__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 640px) {
  .referral__actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .referral__actions .btn {
    width: 100%;
    margin: 0;
  }
}

.referral__note-white {
  font-size: 13.5px;
  color: var(--c-muted);
  margin-top: 20px;
  line-height: 1.5;
  border-left: 3px solid var(--c-primary);
  padding-left: 12px;
}

.referral__img-wrap {
  margin: 0;
}

.referral__img {
  border-radius: var(--r-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(18, 38, 63, 0.10);
  display: block;
}

/* ============ БЛОК «ТОМОГРАФ VATECH» (НА МЯГКОМ ФОНЕ) ============ */
.equipment-section {
  padding-block: clamp(52px, 7vw, 84px);
}

.equipment__inner {
  display: grid;
  gap: 30px;
}

@media (min-width: 1024px) {
  .equipment__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(32px, 4vw, 54px);
  }
}

.equipment__img {
  margin: 0;
}

.equipment__img img {
  border-radius: var(--r-lg);
  box-shadow: 0 14px 36px rgba(18, 38, 63, 0.10);
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-soft);
  color: var(--c-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.section-tag .ic {
  width: 16px;
  height: 16px;
  color: var(--c-primary);
}

/* ============ СЕКЦИЯ ДЛЯ ВРАЧЕЙ (НА БЕЛОМ ФОНЕ) ============ */
.doctors {
  background: #ffffff;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

/* ============ БЛОК КАНАЛОВ СВЯЗИ В КОНТАКТАХ ============ */
.contacts-channels {
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.5vw, 36px);
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(18, 38, 63, 0.04);
}

.contacts-channels__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(20px, 3vw, 26px);
}

.contacts-channels__title {
  font-size: clamp(1.25rem, 2vw + .5rem, 1.6rem);
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 8px;
  line-height: 1.25;
}

.contacts-channels__lead {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.5;
  margin: 0;
}

.contacts-channels__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contacts-channels__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.channel-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-primary);
  box-shadow: 0 8px 22px rgba(18, 38, 63, 0.06);
}

.channel-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--c-line);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(18, 38, 63, 0.04);
  flex: none;
}

.channel-card__icon .ic {
  width: 22px;
  height: 22px;
  color: var(--c-primary);
}

.channel-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.channel-card__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  margin-bottom: 6px;
}

.channel-card__val {
  font-family: var(--font-head);
  font-size: 17.5px;
  font-weight: 800;
  color: var(--c-ink);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.3;
}

.channel-card__val:hover {
  color: var(--c-primary);
}

.channel-card__val--mail {
  font-size: 15.5px;
  word-break: break-all;
}

.channel-card__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.channel-card__buttons .chip {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.channel-card__buttons .chip .ic {
  width: 18px;
  height: 18px;
  flex: none;
}

.channel-card__sub {
  font-size: 12.5px;
  color: var(--c-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Выравнивание левой карточки контактов с формой онлайн-записи */
@media (min-width: 992px) {
  .contacts__grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch !important;
    gap: 28px;
  }

  .contact-card--info {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  .contact-card--info .contact-info__top {
    flex: 0 0 auto;
  }

  .contact-card--info .contact-photo {
    flex: 1 1 auto !important;
    margin-top: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 280px;
  }

  .contact-card--info .contact-photo__wrap {
    flex: 1 1 auto !important;
    min-height: 240px;
    display: flex;
  }

  .contact-card--info .contact-photo img {
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
  }
}

/* ============ НАДЁЖНОСТЬ КНОПКИ ЗАПИСИ НА IPHONE / МОБИЛЬНЫХ ============ */
#submitBtn {
  position: relative;
  z-index: 5;
  cursor: pointer;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  width: 100%;
}

#submitBtn * {
  pointer-events: none;
}

@media (max-width: 767.98px) {
  #contacts {
    padding-bottom: calc(52px + 84px + env(safe-area-inset-bottom)) !important;
  }

  .contact-card--form {
    padding-bottom: 28px !important;
  }

  #submitBtn {
    min-height: 52px;
    font-size: 16px;
  }
}

/* ============ ОБНОВЛЕННЫЙ 4-КОЛОНОЧНЫЙ ФУТЕР (КАК НА МЕДФОРМАТ.РФ) ============ */
@media (min-width: 992px) {
  .footer__grid {
    grid-template-columns: 1.35fr 1fr 1.25fr 1fr !important;
    gap: clamp(24px, 3vw, 36px) !important;
    align-items: flex-start;
  }
}

@media (min-width: 641px) and (max-width: 991.98px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px 24px !important;
  }
}

.footer h4 {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer a {
  color: #aebdd2;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer a:hover {
  color: #ffffff;
}

.footer__copy {
  color: #8fa5c2;
  font-size: 12.5px;
  line-height: 1.6;
  max-width: 820px;
}

/* ============ СТИЛИ СТРАНИЦ ДОКУМЕНТОВ И УГОЛКА ПОТРЕБИТЕЛЯ ============ */
.page-legal {
  background: var(--c-bg);
  min-height: 100vh;
}

.page-legal .header {
  background: #ffffff;
  border-bottom: 1px solid var(--c-line);
}

.content__shell {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
}

.content__hero {
  margin-bottom: clamp(24px, 4vw, 36px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  margin-bottom: 18px;
  padding: 7px 16px;
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(18, 38, 63, 0.04);
  transition: background 0.18s, color 0.18s, transform 0.18s;
}

.back-link:hover {
  background: var(--c-primary);
  color: #ffffff;
  border-color: var(--c-primary);
  transform: translateX(-3px);
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  margin-bottom: 8px;
}

.content__hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw + .5rem, 2.6rem);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.2;
  margin-bottom: 12px;
}

.content__hero p.lead {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 780px;
}

/* Карточки ключевых фактов */
.consumer-facts {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}

@media (min-width: 640px) {
  .consumer-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .consumer-facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.consumer-facts > div {
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(18, 38, 63, 0.04);
}

.consumer-facts span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}

.consumer-facts strong {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.3;
}

.consumer-facts small {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.5;
}

.consumer-facts a {
  color: var(--c-primary);
  text-decoration: none;
}

.consumer-facts a:hover {
  text-decoration: underline;
}

/* Блок лицензии */
.license-card {
  background: #ffffff;
  border: 2px solid var(--c-primary);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.5vw, 36px);
  margin: 32px 0 40px;
  box-shadow: 0 10px 32px rgba(14, 90, 167, 0.09);
  position: relative;
  overflow: hidden;
}

.license-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}

.license-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
}

.license-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e5f7ee;
  color: #177a4c;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
}

.license-card__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.license-card__title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw + .5rem, 1.6rem);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.3;
  margin: 0;
}

.license-card__meta {
  color: var(--c-muted);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

.license-card__services {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .license-card__services {
    grid-template-columns: 1fr 1fr;
  }
}

.license-services-box {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 20px;
}

.license-services-box h4 {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 12px;
  line-height: 1.35;
}

.license-services-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.license-services-box li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--c-ink);
  line-height: 1.45;
}

.license-services-box li .ic {
  width: 17px;
  height: 17px;
  color: var(--c-primary);
  flex: none;
  margin-top: 2px;
}

/* Сетки карточек и документов */
.legal-card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin: 24px 0 40px;
}

@media (min-width: 768px) {
  .legal-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.04);
}

.legal-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-primary);
  background: var(--c-soft);
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.legal-card h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: 10px;
  line-height: 1.35;
}

.legal-card p {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px;
}

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

/* Таблица реквизитов */
.company-requisites {
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 8px 24px;
  margin: 24px 0 40px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.04);
}

.company-requisites > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}

.company-requisites > div:last-child {
  border-bottom: none;
}

@media (min-width: 640px) {
  .company-requisites > div {
    grid-template-columns: 240px 1fr;
    gap: 16px;
    align-items: baseline;
  }
}

.company-requisites dt {
  font-weight: 600;
  color: var(--c-muted);
  font-size: 14px;
}

.company-requisites dd {
  margin: 0;
  color: var(--c-ink);
  font-weight: 600;
  font-size: 15px;
  overflow-wrap: anywhere;
}

/* Официальные надзорные органы */
.official-links {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin: 24px 0 40px;
}

@media (min-width: 768px) {
  .official-links {
    grid-template-columns: 1fr 1fr;
  }
}

.official-link-card {
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(18, 38, 63, 0.04);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.official-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.08);
  border-color: var(--c-primary);
}

.official-link-card strong {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.35;
}

.official-link-card span {
  font-size: 13.5px;
  color: var(--c-muted);
  line-height: 1.5;
}

/* Контент текстовых документов (privacy, terms, consent) */
.legal-article {
  background: #ffffff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 4px 20px rgba(18, 38, 63, 0.04);
  color: var(--c-ink);
  line-height: 1.7;
  font-size: 15px;
}

.legal-article h2 {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw + .3rem, 1.5rem);
  font-weight: 800;
  color: var(--c-ink);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article p {
  color: #334458;
  margin-bottom: 16px;
}

.legal-article ul, .legal-article ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: #334458;
}

.legal-article li {
  margin-bottom: 8px;
}

/* ============ АНИМАЦИИ И МОУШН-ГРАФИКА ДЛЯ 3D-ДИАГНОСТИКИ ============ */

/* 1. Эффект лазерного 3D-сканирования КЛКТ на главном фото */
.hero__media {
  position: relative;
  margin: 0;
}

.hero__media-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0d1c30;
}

.hero__media-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: var(--r-lg);
}

@media (min-width: 1024px) {
  .hero__media-wrap img {
    aspect-ratio: 5/5.4;
  }
}

.hero__scan-laser {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.hero__scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(18, 165, 184, 0.4) 15%,
    #12a5b8 50%,
    rgba(18, 165, 184, 0.4) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 14px 2px rgba(18, 165, 184, 0.9),
    0 0 28px 6px rgba(18, 165, 184, 0.45);
  animation: ctScanMove 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: top, opacity;
}

.hero__scan-cone {
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(18, 165, 184, 0.18) 0%, transparent 100%);
  animation: ctScanCone 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: top, opacity;
}

@keyframes ctScanMove {
  0% {
    top: 0%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  44% {
    opacity: 1;
  }
  50% {
    top: 100%;
    opacity: 0;
  }
  52% {
    top: 100%;
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  94% {
    opacity: 1;
  }
  100% {
    top: 0%;
    opacity: 0;
  }
}

@keyframes ctScanCone {
  0% {
    top: -60px;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  44% {
    opacity: 1;
  }
  50% {
    top: calc(100% - 60px);
    opacity: 0;
  }
  52% {
    top: calc(100% - 60px);
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  94% {
    opacity: 1;
  }
  100% {
    top: -60px;
    opacity: 0;
  }
}

/* HUD-бейдж активного сканирования */
.hero__scan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(13, 28, 48, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.hero__scan-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12a5b8;
  box-shadow: 0 0 10px #12a5b8;
  animation: scanDotPulse 1.6s ease-in-out infinite;
  flex: none;
}

@keyframes scanDotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px #12a5b8;
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
    box-shadow: 0 0 4px #12a5b8;
  }
}

/* 2. Плавная невесомая левитация плашки ~15 минут */
.hero__float {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(227, 234, 243, 0.85);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 12px 32px rgba(18, 38, 63, 0.12);
  z-index: 3;
  animation: heroFloatBob 4.2s ease-in-out infinite;
  will-change: transform;
}

@keyframes heroFloatBob {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 12px 32px rgba(18, 38, 63, 0.12);
  }
  50% {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(18, 38, 63, 0.18);
  }
}

/* 3. Живой радарный пульс статуса «Сейчас открыто» */
.status--open {
  position: relative;
  font-weight: 700 !important;
}

.status--open::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17a56a !important;
  box-shadow: 0 0 0 0 rgba(23, 165, 106, 0.7);
  animation: radarPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes radarPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 165, 106, 0.75);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(23, 165, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(23, 165, 106, 0);
  }
}

/* 4. Анимация сектора сканирования в логотипе при наведении */
.logo:hover .logo__mark path {
  transform-origin: 22px 22px;
  animation: logoRadarSpin 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes logoRadarSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 5. Эффект перелива (shimmer) на карточке «Хит» (Две челюсти) */
.price-card--hit::before {
  display: none !important;
}

.price-card--hit {
  position: relative !important;
  border-color: #0e5aa7 !important;
  box-shadow: 0 8px 24px rgba(14, 90, 167, 0.12) !important;
  animation: hitCardPulse 3.8s ease-in-out infinite !important;
}

@keyframes hitCardPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(14, 90, 167, 0.10);
    border-color: #0e5aa7;
  }
  50% {
    box-shadow: 0 12px 32px rgba(23, 123, 214, 0.28);
    border-color: #177bd6;
  }
}

.badge-hit {
  position: absolute !important;
  top: -12px !important;
  left: 20px !important;
  background: linear-gradient(135deg, #0e5aa7, #1976d2) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 4px 14px !important;
  font-family: var(--font-head) !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 14px rgba(14, 90, 167, 0.4) !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2 !important;
}

.badge-hit::after {
  content: "" !important;
  position: absolute !important;
  top: -50% !important;
  left: -90% !important;
  width: 55% !important;
  height: 200% !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%
  ) !important;
  transform: rotate(25deg) !important;
  animation: badgeGleam 3.2s ease-in-out infinite !important;
  pointer-events: none !important;
}

@keyframes badgeGleam {
  0%, 15% {
    left: -90%;
  }
  45%, 100% {
    left: 140%;
  }
}

/* 6. Каскадное появление карточек (Staggered Reveal) */
.price-grid.reveal,
.steps-grid.reveal,
.benefits.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.price-grid:not(.reveal--visible) .price-card,
.steps-grid:not(.reveal--visible) .step,
.benefits:not(.reveal--visible) li {
  opacity: 0 !important;
  transform: translateY(32px) !important;
}

.price-grid .price-card,
.steps-grid .step,
.benefits li {
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}

.price-grid.reveal--visible .price-card,
.steps-grid.reveal--visible .step,
.benefits.reveal--visible li {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.price-grid.reveal--visible .price-card:nth-child(1) { transition-delay: 0.05s !important; }
.price-grid.reveal--visible .price-card:nth-child(2) { transition-delay: 0.18s !important; }
.price-grid.reveal--visible .price-card:nth-child(3) { transition-delay: 0.31s !important; }
.price-grid.reveal--visible .price-card:nth-child(4) { transition-delay: 0.44s !important; }

.steps-grid.reveal--visible .step:nth-child(1) { transition-delay: 0.05s !important; }
.steps-grid.reveal--visible .step:nth-child(2) { transition-delay: 0.18s !important; }
.steps-grid.reveal--visible .step:nth-child(3) { transition-delay: 0.31s !important; }
.steps-grid.reveal--visible .step:nth-child(4) { transition-delay: 0.44s !important; }

.benefits.reveal--visible li:nth-child(1) { transition-delay: 0.05s !important; }
.benefits.reveal--visible li:nth-child(2) { transition-delay: 0.16s !important; }
.benefits.reveal--visible li:nth-child(3) { transition-delay: 0.27s !important; }
.benefits.reveal--visible li:nth-child(4) { transition-delay: 0.38s !important; }

/* 7. Одинаковый размер кнопок Telegram и MAX (в карточке контактов и в футере) */
.channel-card__buttons,
.footer__messengers-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 130px)) !important;
  gap: 10px !important;
  width: 100% !important;
}

.channel-card__buttons {
  max-width: 270px !important;
  margin: 0 auto !important;
}

.footer__messengers-row {
  max-width: 270px !important;
  margin-top: 10px !important;
}

.channel-card__buttons .chip,
.footer__messengers-row .chip {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 10px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  text-align: center !important;
}

.channel-card__buttons .chip .ic,
.footer__messengers-row .chip .ic {
  width: 18px !important;
  height: 18px !important;
  flex: none !important;
}

/* Микро-отклик карточек шагов */
.step {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(18, 38, 63, 0.09);
  border-color: #cbdbee;
}

.step .step__icon {
  transition: transform 0.25s ease, background 0.25s ease;
}

.step:hover .step__icon {
  transform: scale(1.08) rotate(3deg);
  background: #d8e8fa;
}

/* 8. Мягкий световой блик на главных кнопках */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.btn--primary:hover::after {
  left: 140%;
}

/* 9. Адаптивность и поддержка режима пониженного движения */
@media (prefers-reduced-motion: reduce) {
  .hero__scan-line,
  .hero__scan-cone,
  .hero__scan-badge,
  .hero__scan-dot,
  .hero__float,
  .status--open::before,
  .badge-hit::after,
  .price-card--hit,
  .logo:hover .logo__mark path,
  .btn--primary::after,
  .price-grid.reveal--visible .price-card,
  .steps-grid.reveal--visible .step,
  .benefits.reveal--visible li {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}







