/* ============================================================
   Лендинг «Комплексные программы лечения позвоночника»
   Цветовая гамма — правьте токены в :root, весь сайт перекрасится.
   ============================================================ */
:root {
  --c-bg:        #f5fcff;   /* светлый бело-голубой фон */
  --c-surface:   #ffffff;
  --c-tint:      #e7f6fd;   /* лёгкая голубая подложка секций */
  --c-dark:      #003851;   /* глубокий тёмно-синий — тёмные секции, заголовки */
  --c-dark-2:    #0a4a66;
  --c-primary:   #1189bb;   /* основной синий — кнопки, акценты */
  --c-primary-h: #0d6d96;
  --c-accent:    #fcb316;   /* светло-голубой акцент */
  --c-text:      #12303f;
  --c-muted:     #587683;
  --c-line:      #d9e8ef;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 10px 40px rgba(0, 56, 81, .10);
  --font:        'Manrope', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: clip;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-h); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

/* ── Типографика секций ─────────────────────────────── */
.section { padding: 72px 0; }
.section--tint { background: var(--c-tint); }
.section--dark { background: var(--c-dark); color: #eef8fd; }
.section--dark .section__subtitle { color: #a9cddd; }
.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: inherit;
  margin-bottom: 18px;
}
.section__title em { font-style: normal; color: var(--c-primary); }
.section--dark .section__title em { color: var(--c-accent); }
.section__subtitle { max-width: 720px; color: var(--c-muted); margin-bottom: 36px; font-size: 18px; }
.section__head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(17, 137, 187, .1);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--c-accent); background: rgba(252, 179, 22, .12); }

/* ── Кнопки, поля, формы ────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 16px; font-weight: 700;
  border: 2px solid transparent;
  border-radius: 100px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
  text-align: center;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-h); color: #fff; }
.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--ghost { background: transparent; color: inherit; border-color: var(--c-line); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 17px 32px; font-size: 17px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.input {
  width: 100%;
  font-family: var(--font); font-size: 16px;
  border: 1.6px solid #c6dbe8;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #f3f9fc;
  color: var(--c-text);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input::placeholder { color: #9db4c0; }
.input:focus {
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(17, 137, 187, .12);
}

.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form--inline { flex-direction: row; flex-wrap: wrap; align-items: center; }
.lead-form--inline .input { flex: 1 1 240px; width: auto; }
.form-note { font-size: 14px; color: var(--c-muted); text-align: center; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--c-muted); }
.agree input { margin-top: 3px; accent-color: var(--c-primary); }
.agree--light { color: #a9cddd; margin-top: 12px; }

/* ── Шапка ──────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 252, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner { display: flex; align-items: center; gap: 28px; padding: 12px 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--c-dark); flex-shrink: 0; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--c-primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
}
.logo__text b { display: block; font-size: 17px; line-height: 1.1; }
.logo__text small { color: var(--c-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.logo--light { color: #fff; }
.logo--light .logo__text small { color: #a9cddd; }

.nav { display: flex; gap: 20px; margin: 0 auto; }
.nav__link { color: var(--c-text); font-weight: 600; font-size: 15px; }
.nav__link:hover { color: var(--c-primary); }

.header__contacts { display: flex; align-items: center; gap: 16px; }
.header__phone { font-weight: 800; color: var(--c-dark); font-size: 16px; }
.header__hours { display: block; font-size: 12px; color: var(--c-muted); }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--c-dark); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 32px 0 0; }
.hero__inner { display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: start; }
.hero__title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; line-height: 1.12; color: var(--c-dark); margin-bottom: 24px; }
.hero__title span { display: block; }
.hero__title span:nth-child(2) { color: var(--c-primary); }
.hero__bullets { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.hero__bullets li { padding-left: 34px; position: relative; font-size: 17px; }
.hero__bullets li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(17, 137, 187, .12); color: var(--c-primary);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}
.hero__form-card {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.hero__offer {
  background: rgba(252, 179, 22, .14);
  border: 1.5px dashed var(--c-accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 16px;
}
.hero__offer b { color: #8a6510; }
.hero__img-wrap { margin-top: 48px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero__img-wrap img { width: 100%; }

/* ── Статистика ─────────────────────────────────────── */
.stats { background: var(--c-dark); color: #fff; padding: 40px 0; margin-top: 56px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats__value { font-size: 38px; font-weight: 800; color: var(--c-accent); line-height: 1.1; }
.stats__label { color: #a9cddd; font-size: 15px; margin-top: 6px; }

/* ── «Что лечим» ────────────────────────────────────── */
.cards-grid { display: grid; gap: 18px; }
.cards-grid--5 { grid-template-columns: repeat(5, 1fr); }
.tcard {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: box-shadow .2s, transform .2s;
}
.tcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tcard__icon { width: 46px; height: 46px; margin-bottom: 14px; }
.tcard h3 { font-size: 16px; color: var(--c-dark); margin-bottom: 8px; }
.tcard p { font-size: 13.5px; color: var(--c-muted); }

/* ── Квиз ───────────────────────────────────────────── */
.quiz__box {
  background: var(--c-dark-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 860px;
}
.quiz__progress { font-size: 13px; color: var(--c-accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.quiz__question { font-size: 24px; font-weight: 800; margin-bottom: 22px; }
.quiz__options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
.quiz__option {
  font-family: var(--font); font-size: 15px; font-weight: 600;
  text-align: left;
  color: #eef8fd;
  background: rgba(255, 255, 255, .05);
  border: 1.5px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.quiz__option:hover { border-color: var(--c-accent); }
.quiz__option.is-active { border-color: var(--c-accent); background: rgba(252, 179, 22, .16); }
.quiz__nav { display: flex; gap: 12px; justify-content: flex-end; }
.quiz__step--final p { color: #a9cddd; margin-bottom: 18px; }

/* ── «Почему боль возвращается» ─────────────────────── */
.why__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.why__lead { font-size: 19px; font-weight: 700; color: var(--c-dark); margin-bottom: 16px; }
.why__problems { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.why__problems li { padding-left: 32px; position: relative; color: var(--c-muted); }
.why__problems li::before {
  content: "✕";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(196, 74, 74, .12); color: #c44a4a;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
}
.why__solution-lead { font-weight: 700; color: var(--c-dark); margin-bottom: 12px; }
.why__solution {
  background: var(--c-tint);
  border-left: 4px solid var(--c-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
}
.why__img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── Метод ──────────────────────────────────────────── */
.method__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.method__col { background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.method__col img { width: 100%; }
.method__col h3 { font-size: 21px; color: var(--c-dark); padding: 20px 24px 8px; }
.method__col p { padding: 0 24px 24px; color: var(--c-muted); font-size: 15.5px; }
.method__steps-title { font-size: 26px; font-weight: 800; color: var(--c-dark); margin-bottom: 26px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px 20px; }
.steps__no { font-size: 15px; font-weight: 800; color: var(--c-accent); margin-bottom: 10px; }
.steps__item h4 { font-size: 17px; color: var(--c-dark); margin-bottom: 8px; }
.steps__item p { font-size: 14px; color: var(--c-muted); }

/* ── Программы ──────────────────────────────────────── */
.programs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pcard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--c-surface);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.pcard--featured { border-color: var(--c-primary); box-shadow: var(--shadow); }
.pcard__badge {
  position: absolute; top: -14px; left: 24px;
  background: var(--c-accent); color: #003851;
  font-size: 13px; font-weight: 800;
  border-radius: 100px; padding: 5px 14px;
}
.pcard h3 { font-size: 22px; color: var(--c-dark); margin-bottom: 6px; }
.pcard__for { font-size: 14px; color: var(--c-muted); margin-bottom: 16px; min-height: 42px; }
.pcard__list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; flex: 1; }
.pcard__list li { padding-left: 26px; position: relative; font-size: 15px; }
.pcard__list li::before { content: "✓"; position: absolute; left: 0; color: var(--c-primary); font-weight: 800; }
.pcard__price { font-size: 27px; font-weight: 800; color: var(--c-dark); margin-bottom: 16px; }
.programs__note { margin-top: 22px; color: var(--c-muted); font-size: 15px; max-width: 720px; }

/* ── Истории ────────────────────────────────────────── */
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ccard { background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ccard img { width: 100%; }
.ccard__body { padding: 20px 22px 24px; }
.ccard h3 { font-size: 18px; color: var(--c-dark); }
.ccard__dx { font-size: 13.5px; font-weight: 700; color: var(--c-primary); margin: 4px 0 12px; }
.ccard__body p:last-child { font-size: 14.5px; color: var(--c-muted); }

/* ── Отзывы (слайдер) ───────────────────────────────── */
.slider {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.rcard {
  flex: 0 0 420px;
  scroll-snap-align: start;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.rcard__img { width: 100%; }
.rcard__body { padding: 20px 22px; }
.rcard__body p { font-size: 15px; color: var(--c-muted); margin-bottom: 12px; }
.rcard__body b { color: var(--c-dark); }
.slider__controls { display: flex; gap: 10px; }
.slider__btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--c-line);
  background: var(--c-surface);
  font-size: 18px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.slider__btn:hover { border-color: var(--c-primary); }
.slider__hint { margin-top: 10px; font-size: 14px; color: var(--c-muted); }

/* ── Доверие / лицензии ─────────────────────────────── */
.trust__lic-title { font-size: 22px; font-weight: 800; margin: 36px 0 20px; }
.trust__licenses { display: flex; gap: 20px; flex-wrap: wrap; }
.trust__licenses img { width: 220px; border-radius: var(--radius-sm); }

/* ── Финальный CTA ──────────────────────────────────── */
.final-cta { background: var(--c-tint); }
.final-cta__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
/* Компактная форма: поле телефона не растягивается на всю колонку */
.final-cta__inner .lead-form--inline { max-width: 440px; }
.final-cta__inner .lead-form--inline .input { padding: 13px 16px; }
.final-cta__inner .lead-form--inline .btn { padding-top: 13px; padding-bottom: 13px; }

/* ── Футер ──────────────────────────────────────────── */
.footer { background: var(--c-dark); color: #bfdcea; padding: 56px 0 28px; }
.footer a { color: #bfdcea; }
.footer a:hover { color: var(--c-accent); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 36px; }
.footer__col h4 { color: #fff; margin-bottom: 12px; font-size: 16px; }
.footer__col p { font-size: 14.5px; margin-bottom: 7px; }
.footer__note { margin-top: 14px; font-size: 14.5px; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px; font-size: 14px;
}
.footer__disclaimer { margin-top: 14px; font-size: 13px; color: #7fa2b2; }

/* ── Попапы ─────────────────────────────────────────── */
.popup { position: fixed; inset: 0; z-index: 100; display: none; }
.popup.is-open { display: block; }
.popup__overlay { position: absolute; inset: 0; background: rgba(0, 56, 81, .6); }
.popup__window {
  position: relative;
  max-width: 420px;
  margin: 10vh auto 0;
  background: var(--c-surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.popup__window h3 { font-size: 22px; color: var(--c-dark); margin-bottom: 8px; }
.popup__window > p { color: var(--c-muted); font-size: 15px; margin-bottom: 18px; }
.popup__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: 0;
  font-size: 28px; color: var(--c-muted); cursor: pointer;
}
.popup__window--success { text-align: center; }
.popup__check {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(17, 137, 187, .12); color: var(--c-primary);
  display: grid; place-items: center;
  font-size: 30px; font-weight: 800;
}

/* ── Cookie-баннер, флеши ───────────────────────────── */
.cookiebar {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  max-width: 420px;
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex; gap: 14px; align-items: center;
}
.cookiebar p { font-size: 13.5px; color: var(--c-muted); }
.flashes { position: fixed; top: 80px; right: 20px; z-index: 110; display: flex; flex-direction: column; gap: 10px; }
.flash { background: var(--c-surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 14px 18px; font-size: 15px; }
.flash--success { border-left: 4px solid var(--c-primary); }
.flash--error { border-left: 4px solid #c44a4a; }

/* ── Юридические страницы ───────────────────────────── */
.legal-page h1 { font-size: clamp(26px, 3.6vw, 36px); color: var(--c-dark); margin-bottom: 26px; }
.legal-page h2 { font-size: 21px; color: var(--c-dark); margin: 26px 0 10px; }
.legal-page p, .legal-page li { color: var(--c-text); font-size: 16px; margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; }

/* ── Адаптив ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .header__contacts .btn { display: none; }
  .burger { display: block; margin-left: auto; }
  .header__contacts { margin-left: auto; }
  .nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    padding: 18px 20px;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .hero { padding-top: 16px; }
  .hero__inner, .why__grid, .method__cols, .final-cta__inner { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .programs__grid, .cases__grid { grid-template-columns: 1fr; }
  .quiz__options { grid-template-columns: 1fr; }
  .quiz__box { padding: 24px 18px; }
  .rcard { flex-basis: 85%; }
  .header__phone-box { display: none; }
  .lead-form--inline { flex-direction: column; align-items: stretch; }
  .lead-form--inline .input { width: 100%; flex: 0 0 auto; }
}

/* ── Доработки: логотип, акция, методы, плавающая кнопка ── */
.logo__img { height: 46px; width: auto; max-width: none; flex-shrink: 0; display: block; }
.footer__logo { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: 6px; }

/* Кнопка «Заказать звонок» в шапке — янтарная, заметная */
.btn--accent { background: var(--c-accent); color: #3a2c05; }
.btn--accent:hover { background: #e5a213; color: #3a2c05; }

/* Пульс главных кнопок — привлекают внимание, но не раздражают */
.lead-form .btn--primary, .btn--accent, .fab {
  animation: btn-pulse 2.6s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 179, 22, .45); }
  55%      { box-shadow: 0 0 0 12px rgba(252, 179, 22, 0); }
}
.btn:hover { transform: translateY(-1px); }

/* Блок акции: подарок, градиент, блик */
.hero__offer {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  overflow: hidden;
  background: linear-gradient(100deg, #fff7e4, #ffe9b8);
  border: 1.5px solid var(--c-accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.hero__offer-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(252, 179, 22, .35);
  animation: gift-bounce 2.2s ease-in-out infinite;
}
@keyframes gift-bounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  12% { transform: translateY(-4px) rotate(-8deg); }
  24% { transform: translateY(0) rotate(6deg); }
  36% { transform: translateY(-2px) rotate(0); }
}
.hero__offer-text b { display: block; color: #8a6510; font-size: 17px; }
.hero__offer-text span { font-size: 14px; color: #6f6242; }
.hero__offer-shine {
  position: absolute; top: -60%; left: -80%;
  width: 50%; height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: rotate(12deg);
  animation: offer-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes offer-shine {
  0% { left: -80%; }
  45%, 100% { left: 130%; }
}

/* Карточки «Что лечим» с фото-превью */
.tcard { padding: 0; overflow: hidden; }
.tcard__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tcard__body { padding: 14px 16px 18px; }

/* Аппаратные методы */
.mextra__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mcard { background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mcard__body { padding: 18px 20px 22px; }
.mcard h3 { font-size: 17px; color: var(--c-dark); margin-bottom: 8px; }
.mcard p { font-size: 14px; color: var(--c-muted); }

/* Квиз: подсказка автоперехода */
.quiz__autohint { font-size: 13.5px; color: #a9cddd; align-self: center; }

/* Плавающая кнопка «Остались вопросы?» */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  background: var(--c-primary); color: #fff;
  border: 0; border-radius: 100px;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 56, 81, .35);
  transition: background .2s, transform .15s;
}
.fab:hover { background: var(--c-primary-h); transform: translateY(-2px); }
.fab__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #7ef29b;
  box-shadow: 0 0 0 0 rgba(126, 242, 155, .6);
  animation: fab-dot 1.8s ease-out infinite;
}
@keyframes fab-dot {
  0% { box-shadow: 0 0 0 0 rgba(126, 242, 155, .6); }
  70% { box-shadow: 0 0 0 9px rgba(126, 242, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 242, 155, 0); }
}

/* Предупреждение о противопоказаниях — заметная полоса */
.disclaimer {
  background: #fff3cd;
  color: #6b5310;
  border-top: 3px solid var(--c-accent);
  margin-top: 28px;
  padding: 14px 0;
  font-size: 14px; font-weight: 700;
  letter-spacing: .03em;
  text-align: center;
}

@media (max-width: 1024px) { .mextra__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .mextra__grid { grid-template-columns: 1fr; }
  .fab { right: 12px; bottom: 12px; padding: 12px 18px; font-size: 14px; }
  .cookiebar { left: 12px; right: 12px; bottom: 74px; max-width: none; }
  .logo__img { height: 38px; }
}

/* ── Фиксы и новые блоки (кукис, футер-лого, лицензия текстом, как добраться) ── */
.cookiebar[hidden] { display: none; }   /* фикс: display:flex перебивал hidden */

.footer__logo {
  filter: none;   /* лого цветное (голубой/янтарный) — видно на тёмном без подложки */
  background: none;
  padding: 0;
  height: 46px;
  width: auto;
}

.trust__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center;
}
.trust__photo { margin: 0; }
.trust__photo img {
  width: 100%; height: 340px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.trust__photo figcaption { font-size: 13.5px; color: #a9cddd; margin-top: 10px; }
.trust__body .section__subtitle { text-align: left; margin: 0 0 20px; }

.trust__license-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.trust__license-card p { color: #d5e5ee; font-size: 15.5px; line-height: 1.6; flex: 1 1 420px; }
.trust__license-card b { color: #fff; }

.dir__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
.dir__photo { margin: 0; }
.dir__photo img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.dir__photo figcaption { font-size: 13.5px; color: var(--c-muted); margin-top: 8px; }
.dir__map-frame { position: relative; }
.dir__map-live { width: 100%; height: 320px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.dir__map-scheme img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow); background: #e9f5fb; }
.dir__map-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.dir__map-switch {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--c-primary); font-size: 14px; font-weight: 600;
  border-bottom: 1px dashed var(--c-primary); line-height: 1.3;
}
.dir__map-switch:hover { color: var(--c-primary-h); border-bottom-color: var(--c-primary-h); }
.dir__map-note { margin-top: 10px; font-size: 13.5px; color: var(--c-muted); line-height: 1.5; }
.dir__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dir__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px 20px; }
.dir__item h4 { color: var(--c-dark); font-size: 16px; margin-bottom: 6px; }
.dir__item p { font-size: 14px; color: var(--c-muted); }
.dir__note { margin-top: 18px; font-size: 15px; color: var(--c-muted); }
.dir__note a { font-weight: 700; }

.ccard.is-hidden { display: none; }
.cases__more { text-align: center; margin-top: 26px; }

@media (max-width: 768px) {
  .dir__grid, .dir__items { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; gap: 22px; }
  .trust__photo img { height: 240px; }
  .trust__license-card { padding: 18px; }
}

/* ── Отзывы: аватар рядом с именем ── */
.rcard__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rcard__ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rcard__head b { color: var(--c-dark); font-size: 16px; }

/* ── Мобильные: все блоки в один столбец во всю ширину, без бокового скролла ── */
@media (max-width: 600px) {
  .stats__grid,
  .cards-grid--5,
  .steps,
  .footer__grid,
  .dir__grid,
  .dir__items,
  .trust__grid,
  .mextra__grid,
  .quiz__options { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
