/* ============================================================
   «Улыбочку!» — фирменный стиль клиники (как saycheese.clinic):
   шрифт Muller, шоколад + беж + лайм
   ============================================================ */
@font-face { font-family: 'Muller'; src: url('https://static.tildacdn.com/tild3431-6262-4865-a663-383532356562/MullerUltraLight.woff') format('woff'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Muller'; src: url('https://static.tildacdn.com/tild3235-6534-4831-a131-323663613361/MullerLight.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Muller'; src: url('https://static.tildacdn.com/tild6363-6561-4137-b138-636431343931/MullerRegular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Muller'; src: url('https://static.tildacdn.com/tild3532-6235-4039-b934-316566316538/MullerMedium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Muller'; src: url('https://static.tildacdn.com/tild3832-6331-4565-b562-373534616464/MullerExtraBold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Muller'; src: url('https://static.tildacdn.com/tild3235-3462-4162-b131-326638663563/MullerBold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #4f3830;          /* шоколад — основной текст */
  --ink-soft: #72564d;     /* мягкий шоколад */
  --choc-dark: #472714;    /* тёмный шоколад */
  --lime: #b9f4cf;         /* мятный акцент (пастель) */
  --lime-dark: #8ee6b4;
  --beige: #d7c7b7;        /* бежевый (кнопки сайта) */
  --beige-deep: #c7b499;
  --beige-soft: #efe9df;
  --bg: #fbfbf9;           /* фон сайта */
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(79, 56, 48, .09);
  --shadow-lg: 0 20px 60px rgba(79, 56, 48, .16);
  --font: 'Muller', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container--narrow { width: min(860px, 92%); }

h1, h2 { font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(28px, 4.4vw, 50px); line-height: 1.1; }
h2 { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.15; }
.h2--light { color: #fff; }
h1 .hl, h2 .hl { color: var(--ink); background: linear-gradient(0deg, var(--lime) 32%, transparent 32%); white-space: nowrap; }

.kicker {
  display: inline-block; background: var(--lime); color: var(--ink);
  font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 10px;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em;
}

.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tint { background: var(--beige-soft); }
.section--dark { background: linear-gradient(135deg, #472714, #5a3826); }
/* CTA-блок: шоколадный фон, акцентные кнопки */
.section__sub { color: var(--ink-soft); font-size: 18px; margin: 12px 0 34px; max-width: 720px; }
.section__text { color: var(--ink-soft); font-size: 17px; margin: 14px 0 26px; }
.section__wideimg { border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 40px; width: 100%; object-fit: cover; max-height: 440px; }

/* ---------- Кнопки (как на saycheese.clinic) ---------- */
.btn {
  font-family: var(--font); font-weight: 700; font-size: 14px; border: 0; cursor: pointer;
  padding: 16px 32px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
  transition: transform .15s, background-color .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; justify-content: center;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: 30%; width: 45px; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.5), rgba(255,255,255,.05));
  transform: skewX(-45deg) translateX(-140px); animation: btnflash 3s linear infinite;
}
@keyframes btnflash { 30% { transform: skewX(-45deg) translateX(240px); } 100% { transform: skewX(-45deg) translateX(240px); } }
.btn:active { transform: scale(.97); }
.btn--accent { background: linear-gradient(135deg, var(--lime), var(--lime-dark)); color: #1c4730; box-shadow: 0 8px 26px rgba(120, 220, 160, .55); }
.btn--accent:hover { background: linear-gradient(135deg, #f4fff9, #dcf9e8); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(120, 220, 160, .42); }
.btn--dark { background: var(--choc-dark); color: #fff; }
.btn--dark:hover { background: var(--ink); }
.btn--ghost { background: #fff; color: var(--ink); border: 2px solid var(--beige); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--big { font-size: 16px; padding: 20px 44px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(79, 56, 48, .08);
}
.header__in { display: flex; align-items: center; gap: 22px; padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__img { height: 46px; width: auto; border-radius: 6px; }
.logo__name { font-weight: 700; font-size: 21px; color: var(--ink); }
.logo__tag { font-size: 11px; color: var(--ink-soft); font-weight: 500; max-width: 130px; line-height: 1.25; text-transform: uppercase; letter-spacing: .04em; }
.header__meta { margin-left: auto; text-align: right; font-size: 13px; color: var(--ink-soft); display: none; }
@media (min-width: 900px) { .header__meta { display: block; } }
.header__phone { font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; white-space: nowrap; margin-left: auto; }
.header__phone:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
@media (min-width: 900px) { .header__phone { margin-left: 0; } }
@media (max-width: 719px) {
  .header__in { gap: 12px; }
  .logo__tag { display: none; }                 /* слоган прячем — есть mobilebar */
  .header__cta { display: none; }               /* кнопка «Записаться» живёт в нижней панели */
  .header__phone { font-size: 16px; }
  .logo__img { height: 38px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.hero__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 720px) and (max-width: 959px) {
  /* На планшете (~795px) колонки друг под другом, форма/видео не пересекаются */
  .hero__media { max-width: 540px; margin: 0 auto; width: 100%; }
}
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero__badge {
  display: inline-block; background: var(--beige-soft); color: var(--ink-soft);
  font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 10px; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: .05em;
}
.hero__sub { font-size: 18px; color: var(--ink-soft); margin: 18px 0 22px; max-width: 560px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  background: #fff; border: 1.5px solid var(--beige); color: var(--ink);
  padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip::before { content: "✓"; font-weight: 800; display: inline-block; background: var(--lime); border-radius: 4px; padding: 0 5px; font-size: 12px; }
.hero__media { position: relative; }
.hero__media img { border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/3.2; }
.hero__floating {
  position: absolute; left: -14px; bottom: 24px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px;
}
.hero__form { background: #fff; padding: 24px; border-radius: 16px; box-shadow: var(--shadow); max-width: 600px; }
.hero__social { margin-top: 18px; }

/* ---------- Формы ---------- */
.leadform__title { font-weight: 700; font-size: 18px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .02em; }
.leadform__row { display: grid; gap: 10px; }
@media (min-width: 640px) { .leadform__row { grid-template-columns: 1fr 1fr auto; } }
.leadform input[type="text"], .leadform input[type="tel"] {
  font-family: var(--font); font-size: 16px; padding: 15px 18px; border-radius: 10px;
  border: 2px solid var(--beige); width: 100%; background: #fff; color: var(--ink);
}
.leadform input:focus { outline: 0; border-color: var(--ink); }
.leadform__policy { display: flex; gap: 8px; font-size: 12px; color: var(--ink-soft); margin-top: 12px; align-items: flex-start; }
.leadform__policy a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.leadform--card { background: #fff; padding: 30px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.leadform--card input { margin-bottom: 12px; }

/* ---------- Полоса доверия ---------- */
.trust { background: var(--white); border-block: 1px solid rgba(79, 56, 48, .08); }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.trust__item { padding: 26px 18px; text-align: center; }
.trust__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 6px 16px rgba(120, 220, 160, .35), inset 0 0 0 2px rgba(79, 56, 48, .06);
  margin-bottom: 10px;
}
.trust__icon svg { width: 27px; height: 27px; }
.trust__big { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--ink); text-transform: uppercase; }
.trust__small { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Цифровой блок ---------- */
.digital__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .digital__grid { grid-template-columns: 1fr 1.1fr; } }
.digital__media img { border-radius: 16px; box-shadow: var(--shadow-lg); }
.digital__points { display: grid; gap: 14px; }
@media (min-width: 640px) { .digital__points { grid-template-columns: 1fr 1fr; } }
.dpoint { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-left: 5px solid var(--lime); }
.dpoint b { display: block; margin-bottom: 4px; text-transform: uppercase; font-size: 15px; }
.dpoint span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Услуги ---------- */
.services__grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }
.scard {
  background: #fff; border-radius: 16px; padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative; border: 2px solid transparent; transition: .2s;
}
.scard:hover { transform: translateY(-4px); border-color: var(--beige); }
.scard--hit { border-color: var(--lime); box-shadow: 0 14px 40px rgba(120, 220, 160, .3); }
.scard__badge {
  position: absolute; top: -12px; right: 16px; background: var(--lime); color: var(--ink);
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 8px; text-transform: uppercase; letter-spacing: .05em;
}
.scard__name { font-weight: 700; font-size: 17px; min-height: 52px; text-transform: uppercase; letter-spacing: .01em; }
.scard__prices { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.scard__price { font-size: 26px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.scard__old { color: #bcae9e; text-decoration: line-through; font-size: 15px; }
.scard__note { font-size: 13px; color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.scard__note::before { content: "🎁 "; }
.scard__feat { list-style: none; font-size: 14px; color: var(--ink-soft); flex: 1; margin-bottom: 16px; }
.scard__feat li { padding: 4px 0 4px 22px; position: relative; }
.scard__feat li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--ink); background: var(--lime); border-radius: 4px; padding: 0 4px; font-size: 11px; top: 7px; }
.services__actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Квиз ---------- */
.quiz__box { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: clamp(26px, 4vw, 50px); }
.quiz__progress { height: 10px; background: var(--beige-soft); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.quiz__bar { height: 100%; width: 0; background: var(--lime); transition: width .4s; border-radius: 99px; }
.quiz__q { font-size: 22px; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; }
.quiz__opts { display: grid; gap: 12px; }
@media (min-width: 640px) { .quiz__opts { grid-template-columns: 1fr 1fr; } }
.quiz__opt {
  text-align: left; background: var(--bg); border: 2px solid var(--beige); border-radius: 10px;
  padding: 16px 20px; font-family: var(--font); font-size: 16px; font-weight: 500; cursor: pointer; transition: .15s; color: var(--ink);
}
.quiz__opt:hover { border-color: var(--ink); background: var(--lime); }
.quiz__stepnum { font-size: 13px; color: var(--ink-soft); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Врачи ---------- */
.doctors__grid { display: grid; gap: 20px; margin-top: 34px; grid-template-columns: 1fr; }
@media (min-width: 1040px) { .doctors__grid { grid-template-columns: 1fr 1fr; } }
.dcard {
  background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  transition: .2s; display: flex; flex-direction: column;
}
.dcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (min-width: 720px) { .dcard { flex-direction: row; } }
.dcard__media { flex: 0 0 auto; position: relative; }
@media (min-width: 720px) { .dcard__media { width: 235px; } }
.dcard__photo { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: top center; background: var(--beige-soft); display: block; }
.dcard__avatar {
  min-height: 260px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--beige-soft), var(--beige));
  font-size: 58px; font-weight: 700; color: var(--ink);
}
.dcard__body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.dcard__name { font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--choc); }
.dcard__role { color: var(--ink-soft); font-weight: 500; font-size: 14px; margin: 5px 0 9px; }
.dcard__exp { font-size: 13px; font-weight: 700; margin-bottom: 12px; display: inline-block; background: var(--lime); padding: 4px 12px; border-radius: 8px; align-self: flex-start; }
.dcard__specstitle { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.dcard__tags { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 5px; white-space: normal; }
.dcard__tags li { display: flex; gap: 8px; }
.dcard__tags li::before { content: "✓"; color: var(--ink); background: var(--lime); border-radius: 5px; width: 17px; height: 17px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; margin-top: 1px; }
.dcard__cta { margin-top: auto; align-self: flex-start; }

/* ---------- Преимущества ---------- */
.adv__grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 30px; }
@media (min-width: 640px) { .adv__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .adv__grid { grid-template-columns: repeat(3, 1fr); } }
.adv {
  background: #fff; border-radius: 16px; padding: 26px; box-shadow: var(--shadow);
  transition: .2s; border-top: 5px solid transparent;
}
.adv:hover { transform: translateY(-4px); border-top-color: var(--lime); }
.adv__icon { font-size: 34px; margin-bottom: 12px; }
.adv b { font-size: 17px; display: block; margin-bottom: 6px; text-transform: uppercase; }
.adv p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Гарантии ---------- */
.guarantees__grid { display: grid; gap: 20px; margin-top: 34px; }
@media (min-width: 700px) { .guarantees__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .guarantees__grid { grid-template-columns: repeat(3, 1fr); } }
.gcard {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px; padding: 30px 26px; color: #f3ece5; text-align: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .25s ease, border-color .25s ease;
}
.gcard:hover { transform: translateY(-4px); border-color: rgba(185, 244, 207, .5); }
.gcard__icon {
  width: 72px; height: 72px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; border-radius: 22px;
  background: linear-gradient(135deg, var(--lime), var(--lime-dark));
  box-shadow: 0 8px 20px rgba(142, 230, 180, .3);
}
.gcard b { font-size: 16.5px; display: block; margin-bottom: 8px; color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.gcard p { font-size: 15.5px; color: #e8d9cb; line-height: 1.5; margin: 0; }

/* ---------- Этапы ---------- */
.steps { display: grid; gap: 0; margin-top: 30px; counter-reset: step; }
.step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px dashed var(--beige-deep); }
.step:last-child { border-bottom: 0; }
.step__num {
  counter-increment: step; min-width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: var(--lime); font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.step__num::before { content: counter(step); }
.step b { font-size: 17px; display: block; margin-bottom: 4px; text-transform: uppercase; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Галерея ---------- */
.gallery__grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 10px; }
@media (min-width: 860px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.gallery__grid img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; aspect-ratio: 1/1.05; transition: .25s; }
.gallery__grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }

/* ---------- Отзывы ---------- */
.reviews__cards { display: grid; gap: 18px; margin-bottom: 34px; }
@media (min-width: 800px) { .reviews__cards { grid-template-columns: repeat(3, 1fr); } }
.rcard { background: #fff; border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.rcard__stars { color: #f5b301; letter-spacing: 3px; margin-bottom: 10px; }
.rcard p { font-size: 15px; color: var(--ink-soft); }
.rcard b { display: block; margin-top: 14px; color: var(--ink); text-transform: uppercase; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--beige); }
.faq__q {
  width: 100%; background: none; border: 0; font-family: var(--font); text-align: left;
  font-size: 18px; font-weight: 700; padding: 20px 44px 20px 0; cursor: pointer; position: relative; color: var(--ink);
  text-transform: uppercase;
}
.faq__q::after {
  content: "+"; position: absolute; right: 4px; top: 17px; font-size: 26px; color: var(--ink);
  background: var(--lime); width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: transform .25s;
}
.faq.open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--ink-soft); }
.faq.open .faq__a { max-height: 400px; }

/* ---------- CTA / Контакты (лаймовая секция) ---------- */
.cta__sub { color: var(--ink); font-size: 18px; margin: 12px 0 24px; font-weight: 500; }
.cta__contacts a, .cta__contacts div { color: var(--ink); }
.cta__phone { font-size: 30px; font-weight: 700; text-decoration: none; display: block; }
.cta__phone--small { font-size: 20px; opacity: .85; }
.cta__phone:hover { text-decoration: underline; }
#footerEmail { display: inline-block; margin-top: 10px; font-weight: 600; }
#footerAddress { margin-top: 12px; font-weight: 600; }
.cta__messengers { display: flex; gap: 10px; margin-top: 16px; }
.messenger {
  background: var(--choc-dark); color: #fff !important;
  padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: .2s;
  text-transform: uppercase; font-size: 13px; letter-spacing: .05em;
}
.messenger:hover { background: var(--ink); }
.cta__map { margin-top: 24px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }

/* ---------- Футер ---------- */
.footer { background: var(--choc-dark); color: #cbb9aa; padding: 34px 0 90px; font-size: 14px; }
.footer__lic { margin-top: 6px; }
.footer__policy a, .footer__policy { color: #fff; }

/* ---------- Мобильная панель ---------- */
.mobilebar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: flex; gap: 10px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); padding: 10px 14px;
  box-shadow: 0 -6px 24px rgba(79, 56, 48, .12);
}
.mobilebar .btn { flex: 1; padding: 13px; font-size: 13px; }
@media (min-width: 900px) { .mobilebar { display: none; } .footer { padding-bottom: 34px; } }

/* ---------- Модалки ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(71, 39, 20, .5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal.open { display: flex; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal__card {
  background: #fff; border-radius: 20px; padding: 34px; width: min(560px, 100%);
  position: relative; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto;
  animation: pop .3s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(.85) translateY(30px); opacity: 0; } }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px;
  border: 0; background: var(--beige-soft); cursor: pointer; font-size: 15px; color: var(--ink); z-index: 5;
}
.modal__title { font-size: 22px; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; }
.modal__text { color: var(--ink-soft); margin-bottom: 18px; white-space: pre-wrap; }
.modal__text--scroll { max-height: 60vh; overflow-y: auto; white-space: pre-wrap; font-size: 14px; }

/* ---------- Колесо фортуны ---------- */
.wheelmodal__card { width: min(600px, 100%); text-align: center; overflow-x: hidden; }
.wheel__wrap { position: relative; width: min(440px, 86vw); margin: 10px auto 20px; }
#wheelCanvas { width: 100%; height: auto; transition: transform 5.5s cubic-bezier(.12, .8, .06, 1); }
.wheel__pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-top: 30px solid var(--ink); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25));
}
.wheel__hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; background: #fff; border-radius: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2); border: 4px solid var(--lime);
}
.wheel__prize {
  background: var(--lime); color: var(--ink); font-weight: 700; font-size: 20px;
  border-radius: 12px; padding: 18px; margin-bottom: 22px; text-transform: uppercase;
}
.wheel__hint { font-size: 12px; color: var(--ink-soft); margin-top: 12px; }
.wheelfab {
  position: fixed; right: 18px; bottom: 90px; z-index: 70; width: 78px; height: 78px; border-radius: 50%;
  border: 0; background: var(--lime); color: var(--ink); cursor: pointer;
  font-size: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(120, 220, 160, .55), 0 0 0 3px rgba(79, 56, 48, .1); animation: fabPulse 2.4s infinite;
}
.wheelfab span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
@keyframes fabPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (min-width: 900px) { .wheelfab { bottom: 24px; } }

/* ---------- Hero video ---------- */
.hero__media video {
  border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%;
  object-fit: cover; aspect-ratio: 4/3.2; background: var(--beige-soft);
}

/* ---------- Карточка главврача в hero (над видео, в потоке) ---------- */
.hero__media { position: relative; }
.hero__chief {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 2px solid var(--beige); border-radius: 18px;
  padding: 16px 22px 16px 16px; box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}
.hero__chief img {
  width: 108px; height: 128px; border-radius: 14px; object-fit: cover;
  object-position: top center; flex: 0 0 auto; border: 3px solid var(--lime);
  box-shadow: 0 8px 18px rgba(71, 39, 20, .22);
}
.hero__chief-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; padding-bottom: 2px; }
.hero__chief-badge {
  display: inline-block; align-self: flex-start; background: var(--lime); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 8px; margin-bottom: 6px;
}
.hero__chief-text b { font-size: 17px; color: var(--choc); }
.hero__chief-text span { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.hero__chief-text em { font-size: 13px; font-style: normal; color: var(--ink); font-weight: 700; margin-top: 4px; }
@media (max-width: 640px) {
  .hero__chief { padding: 12px 14px; gap: 12px; }
  .hero__chief img { width: 74px; height: 88px; border-width: 2px; }
  .hero__chief-text b { font-size: 13px; }
  .hero__chief-text span, .hero__chief-text em { font-size: 11px; }
}

/* ---------- Технология (method) ---------- */
.method__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .method__grid { grid-template-columns: 1.15fr .85fr; } }
.method__media img { border-radius: 16px; box-shadow: var(--shadow-lg); }
.method__list { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 640px) { .method__list { grid-template-columns: 1fr 1fr; } }
.mpoint { display: flex; gap: 10px; padding: 12px 14px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; }
.mpoint::before { content: "✓"; font-weight: 800; background: var(--lime); border-radius: 5px; padding: 0 6px; height: 20px; line-height: 20px; flex: 0 0 auto; }
.mpoint b { font-size: 14px; }
.mpoint span { color: var(--ink-soft); font-size: 13px; display: block; }

/* ---------- Показания ---------- */
.ind__grid { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 800px) { .ind__grid { grid-template-columns: repeat(3, 1fr); } }
.icard { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.icard:hover { transform: translateY(-4px); }
.icard img { width: 100%; aspect-ratio: 4/2.7; object-fit: cover; }
.icard__body { padding: 18px 20px; }
.icard__body b { text-transform: uppercase; display: block; margin-bottom: 5px; }
.icard__body p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Тарифы с фото ---------- */
.scard__img { width: 100%; margin: 0 0 16px; aspect-ratio: 16/10.5; object-fit: cover; object-position: 50% 68%; border-radius: 12px; display: block; }
@media (min-width: 1040px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Видео ---------- */
.videos__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .videos__grid { grid-template-columns: 1fr 1fr; } }
.vcard { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px; }
.vcard video { width: 100%; border-radius: 12px; background: #000; display: block; }
.vcard b { display: block; padding: 12px 6px 4px; text-transform: uppercase; font-size: 15px; }

/* ---------- До / после ---------- */
.ba__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .ba__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .ba__grid { grid-template-columns: repeat(3, 1fr); } }
.bacard { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.bacard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: .3s; }
.bacard:hover img { transform: scale(1.04); }
.bacard__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px;
  background: linear-gradient(transparent, rgba(71, 39, 20, .85)); color: #fff;
  font-size: 14px; font-weight: 600;
}
.bacard__tag {
  position: absolute; top: 12px; left: 12px; background: var(--lime); color: var(--ink);
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 8px; text-transform: uppercase; letter-spacing: .05em;
}

/* ---------- Форма «Бюджет» ---------- */
.budget__box { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: clamp(28px, 4vw, 46px); border-top: 6px solid var(--lime); }
.leadform__row--budget { grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.leadform input[name="comment"] { font-family: var(--font); font-size: 15px; padding: 14px 18px; border-radius: 10px; border: 2px solid var(--beige); width: 100%; margin-bottom: 10px; }
.dropzone {
  display: block; margin: 4px 0 14px; padding: 20px; border: 2px dashed var(--beige-deep);
  border-radius: 12px; text-align: center; color: var(--ink-soft); font-weight: 600; cursor: pointer; transition: .2s;
  background: var(--bg);
}
.dropzone:hover { border-color: var(--ink); background: var(--beige-soft); }
.dropzone.hasfile { border-style: solid; border-color: var(--ink); background: var(--lime); color: var(--ink); }

/* ---------- Лисичка (маскот) ---------- */
.fox {
  position: fixed; bottom: 118px; right: 26px; z-index: 55;
  width: 118px; display: none;
  pointer-events: none;
}
@media (min-width: 721px) { .fox { display: block; } }
@media (min-width: 721px) and (max-width: 899px) {
  .fox { bottom: 186px; }             /* выше плавающей кнопки «Приз!» и мобильной панели */
  .fox__bubble { width: 220px; }
}
.fox__body {
  position: relative; pointer-events: auto; cursor: pointer;
  filter: drop-shadow(0 14px 22px rgba(71, 39, 20, .28));
  transition: transform .15s ease-out;
  animation: fox-float 4.2s ease-in-out infinite;
  transform-origin: 50% 92%;
}
@keyframes fox-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
.fox__body img { width: 100%; display: block; user-select: none; }
.fox__body:hover { animation-play-state: paused; scale: 1.04; }
.fox.fox--wave .fox__body { animation: fox-wave 1.1s ease-in-out; }
@keyframes fox-wave {
  0%, 100% { rotate: 0deg; }
  18% { rotate: -7deg; }
  40% { rotate: 5deg; }
  62% { rotate: -4deg; }
  82% { rotate: 3deg; }
}
.fox.fox--bounce .fox__body { animation: fox-bounce .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fox-bounce {
  0% { transform: scale(1, 1); }
  35% { transform: scale(1.08, .92); }
  70% { transform: scale(.95, 1.06); }
  100% { transform: scale(1, 1); }
}

/* Зрачки следят за курсором: полупрозрачный поверх спрайта */
.fox__eyes { display: none; }
/* моргание — мягко сжимаем саму картинку: глаза опущены, никаких кругов на щеках */
.fox.fox--blink .fox__body img { animation: fox-blink .22s linear; transform-origin: 50% 30%; }
@keyframes fox-blink { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.1); } }

/* Облачко — как политика/согласие */
.fox__bubble {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: 250px;
  background: #fff; border: 2px solid var(--beige); border-radius: 14px 14px 14px 4px;
  padding: 14px 34px 14px 16px; box-shadow: var(--shadow-lg);
  font-size: 14px; line-height: 1.45; color: var(--ink);
  opacity: 0; transform: translateY(8px) scale(.94); transform-origin: bottom right;
  transition: .22s ease; pointer-events: none;
}
.fox__bubble.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fox__bubble b { display: block; color: var(--choc); }

/* Чат лисёнка */
.fox__bubble--chat { width: 295px; }
.fox__log { max-height: 210px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; }
.fox__msg {
  padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--beige-soft);
  font-size: 13.5px; line-height: 1.4;
  animation: fox-msg .25s ease;
}
@keyframes fox-msg { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.fox__msg--user {
  align-self: flex-end; background: var(--lime); border-radius: 12px 12px 4px 12px;
  font-weight: 600;
}
.fox__chat { display: flex; gap: 7px; margin-top: 9px; }
.fox__chat[hidden] { display: none; }
.fox__input {
  flex: 1; min-width: 0; font-family: var(--font); font-size: 14px; padding: 9px 12px;
  border: 2px solid var(--beige); border-radius: 10px; outline: none;
}
.fox__input:focus { border-color: var(--ink); }
.fox__send {
  flex: 0 0 auto; width: 38px; border: 0; border-radius: 10px; background: var(--lime);
  font-size: 15px; cursor: pointer; transition: .15s;
}
.fox__send:hover { transform: scale(1.08); }
.fox__bubble-close {
  position: absolute; top: 7px; right: 9px; border: 0; background: none;
  color: var(--ink-soft); font-size: 13px; cursor: pointer; padding: 2px 5px;
}
.fox__bubble button:not(.fox__bubble-close) { margin-top: 10px; font-size: 13px; padding: 9px 14px; }

/* ---------- Консультация экспертов ---------- */
.consult { background: linear-gradient(135deg, var(--beige-soft), #fff 60%); }
.consult__grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 960px) { .consult__grid { grid-template-columns: 1.25fr .75fr; } }
.consult__list-title { font-weight: 700; margin-top: 6px; }
.consult__list { display: grid; gap: 10px; margin-top: 14px; }
.consult__item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px;
}
.consult__item::before {
  content: "✓"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px;
  background: var(--lime); font-weight: 800; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero__quizcta { margin: -10px 0 16px; }

/* ---------- Квиз-модалка ---------- */
.quizmodal__card { max-width: 620px; }
.modal__title { padding-right: 44px; }
.quiz__progress--modal { margin-top: 6px; }
.quizmodal__card .quiz__opts { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .quizmodal__card .quiz__opts { grid-template-columns: 1fr; } }

/* ---------- Тост ---------- */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--choc-dark); color: #fff; padding: 16px 26px; border-radius: 12px; z-index: 200;
  font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .3s;
  max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Фото доверия «врач + пациент» ---------- */
.trustphoto { background: #fff; padding: clamp(26px, 4vw, 44px) 0; }
.trustphoto__inner {
  display: grid; gap: 22px; align-items: center;
  max-width: 1000px; margin: 0 auto; padding: 0 16px;
}
@media (min-width: 720px) { .trustphoto__inner { grid-template-columns: 1.15fr .85fr; } }
@media (max-width: 719px) { .trustphoto__text { order: -1; } }
.trustphoto__img { border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 16/10; }
.trustphoto__text h3 { font-size: clamp(20px, 3vw, 28px); text-transform: none; letter-spacing: 0; line-height: 1.2; margin: 0 0 10px; }
.trustphoto__text p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ---------- Профосмотры 0 ₽ ---------- */
.follow { padding: clamp(36px, 5vw, 60px) 0; }
.follow__kicker {
  display: inline-block; background: var(--lime); color: var(--ink); font-weight: 700;
  padding: 7px 16px; border-radius: 99px; font-size: 13px; margin-bottom: 18px;
}
.follow h2 { font-size: clamp(26px, 4vw, 40px); text-transform: none; letter-spacing: 0; margin: 0 0 26px; }
.follow__grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .follow__grid { grid-template-columns: 1fr auto; align-items: center; } }
.follow__items { display: grid; gap: 11px; }
.follow__item {
  display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px;
}
.follow__item::before {
  content: "✓"; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px;
  background: var(--lime); font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; margin-top: -1px;
}
.follow__price { text-align: center; }
.follow__card {
  display: inline-block; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 16px 25px; font-size: 15px; font-weight: 700; color: var(--ink);
  margin-bottom: 12px;
}
.follow__pricebox {
  background: linear-gradient(135deg, #472714, #5a3826); color: #fff;
  border-radius: 14px; padding: 18px 27px; display: inline-block; box-shadow: var(--shadow-lg);
}
.follow__pricebox s { font-size: 16px; color: rgba(255,255,255,.65); }
.follow__now { font-size: clamp(30px, 3.5vw, 40px); font-weight: 800; }

/* ---------- Преимущества — дерево «На нас равняются» ---------- */
.advtree { text-align: center; }
.advtree__label {
  display: inline-block; background: var(--lime); color: #4f3830; font-weight: 700;
  padding: 8px 18px; border-radius: 99px; font-size: 14px; margin-bottom: 18px;
}
.advtree h2.h2--light { font-size: clamp(26px, 4vw, 40px); margin: 0 auto 36px; max-width: 860px; text-transform: none; line-height: 1.18; }
.advtree__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .advtree__grid { grid-template-columns: repeat(3, 1fr); } }
.advtree__card {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 24px 22px;
  text-align: left; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px;
}
.advtree__icon {
  width: 68px; height: 68px; border-radius: 20px;
  background: linear-gradient(135deg, var(--lime), var(--lime-dark));
  display: inline-flex; align-items: center; justify-content: center; font-size: 34px; flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(142, 230, 180, .35);
}
.advtree__label-card { font-weight: 800; font-size: 13.5px; text-transform: uppercase; letter-spacing: .03em; color: #4f3830; }
.advtree__card-title { font-weight: 700; font-size: 17px; line-height: 1.32; }
.advtree__card-text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.advtree__ba { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; }
.advtree__ba img { width: 100%; border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.advtree__ba-label { font-size: 12px; color: var(--ink-soft); margin-top: 4px; font-weight: 600; }
.advtree__ba-label span { color: var(--ink); font-weight: 800; }
.advtree__gifts {
  margin: 30px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px;
}
.advtree__gifts-title { width: 100%; font-weight: 700; margin-bottom: 6px; color: #fff; font-size: 16px; }
.advtree__gift {
  background: linear-gradient(135deg, var(--lime), var(--lime-dark)); color: #4f3830; border-radius: 999px;
  padding: 13px 24px; font-size: 15px; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28); white-space: nowrap;
}
.advtree__cta { margin-top: 26px; }

/* ---------- Гарантии — оставляем карточную сетку ---------- */
.guarantee__grid-fix { /* nothing — reusing existing */ }

/* ---------- Врачи+пациенты фото ---------- */
.doctors__photos { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 34px; }
@media (min-width: 760px) { .doctors__photos { grid-template-columns: 1fr 1fr; } }
.doctors__photos img {
  width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; object-fit: cover;
}

/* ---------- CTA — шоколадный фон (тот же к chocolat, что и заголовки) ---------- */
.section--accent { background: #472714 !important; color: #fff; }
.section--accent h2, .section--accent .cta__sub { color: #fff; }
.section--accent .cta__phone { color: rgba(255,255,255,.95); }
.section--accent .cta__phone--small { color: rgba(255,255,255,.7); }
.section--accent .cta__phone:hover { color: #fff; }
.section--accent a, .section--accent a:visited { color: rgba(255,255,255,.92); }
.section--accent .cta__contacts a { color: rgba(255,255,255,.92); }
.section--accent #footerAddress { color: rgba(255,255,255,.78); }
.section--accent .messenger { background: rgba(255,255,255,.14); color: #fff; }
.section--accent #mapWidget, .section--accent #mapWidget iframe { filter: grayscale(.5) contrast(.9); border-radius: 14px; }
.section--accent #mapWidget { background: rgba(255,255,255,.14); padding: 18px; border-radius: 16px; min-height: 220px; }
.section--accent .leadform--card { box-shadow: 0 18px 48px rgba(0,0,0,.35); }
/* текст согласия внутри белой карточки — тёмный */
.section--accent .leadform__policy { color: var(--ink-soft); }
.section--accent .leadform__policy a { color: var(--ink); text-decoration-color: var(--lime-dark); }

/* ==================== КУКИ-ПЛАШКА ==================== */
.cookie {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px)); z-index: 85;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; gap: 14px; align-items: center;
  border: 1px solid var(--beige);
  transition: opacity .3s, transform .3s;
}
.cookie.hide { opacity: 0; transform: translateX(-50%) translateY(20px); pointer-events: none; }
.cookie__text { font-size: 13px; line-height: 1.45; color: var(--ink-soft); flex: 1; }
.cookie__accept {
  flex: 0 0 auto; background: var(--lime); color: #4f3830; border: 0; border-radius: 10px;
  padding: 10px 20px; font-weight: 700; cursor: pointer; transition: .2s;
}
.cookie__accept:hover { transform: scale(1.04); }
@media (min-width: 900px) { .cookie { bottom: 24px; } }


/* ============ ФОТО-ФОН СЕКЦИЙ (по образцу блока «О клинике») ============ */
.clinicbg { position: relative; isolation: isolate; background: url('/uploads/clinic-bg.jpg') center / cover no-repeat !important; }
.clinicbg::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(33,42,37,.78), rgba(33,42,37,.72)); }
@media (min-width: 900px) { .clinicbg { background-attachment: fixed; } }

.consult.clinicbg h2, .consult.clinicbg .consult__list-title, .consult.clinicbg .consult__item { color: #fff; }
.consult.clinicbg h2 { text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.consult.clinicbg .consult__item { text-shadow: 0 1px 8px rgba(0,0,0,.35); }

/* ---------- Блок «О клинике» ---------- */
.about { color: #fff; }
.about__title { color: #f5dcb1; text-transform: uppercase; font-weight: 800; letter-spacing: .02em; font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 18px; }
.about__lead { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; color: #eef2ee; max-width: 800px; margin: 0 0 44px; }
.about__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(280px, 430px) 1fr; gap: 60px; } }
.about__media img { width: 100%; display: block; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.about__script { font-family: 'Marck Script', 'Caveat', 'Segoe Script', cursive; color: #f7bd59; font-size: clamp(21px, 2vw, 26px); line-height: 1.4; margin: 16px 0 0 4px; padding-left: 14px; border-left: 3px solid #f7bd59; text-decoration: underline; text-decoration-color: rgba(247,189,89,.55); text-underline-offset: 5px; max-width: 430px; }
.about__quote { font-size: clamp(17px, 1.75vw, 21px); font-style: italic; line-height: 1.62; color: #fff; margin: 0 0 32px; }
.about__cta { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; border-radius: 999px; padding: 17px 32px; font-family: var(--font); font-size: 17px; font-weight: 700; color: #1c4730; background: linear-gradient(135deg, #b9f4cf, #8ee6b4); box-shadow: 0 10px 34px rgba(120,220,160,.55); transition: transform .2s, box-shadow .2s; }
.about__cta:hover { transform: translateY(-2px); background: linear-gradient(135deg, #f4fff9, #dcf9e8); box-shadow: 0 14px 40px rgba(120, 220, 160, .4); }
.about__cta-ico { font-size: 18px; }

/* ---------- Фикс формы в модалках (квиз: поля налезали друг на друга) ---------- */
@media (min-width: 640px) { .modal .leadform__row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.modal .leadform__row .btn { grid-column: 1 / -1; width: 100%; }
@media (max-width: 639px) { .modal__card { padding: 24px 18px; } }

/* ---------- Лис: маска телефона влезает целиком ---------- */
.fox__bubble--chat { width: min(335px, calc(100vw - 30px)); }
.fox__input { font-size: 13px; padding: 9px 10px; }

/* ============ Правки 2: z-index правовых попапов, мягкие заголовки, крупнее мелкий текст ============ */

/* Политика/согласие — всегда ПОВЕРХ любых форм (колесо, квиз, заявка) */
#modal-policy, #modal-consent { z-index: 140; }
#modal-policy .modal__card, #modal-consent .modal__card { border: 3px solid var(--lime); }

/* Мягкий шрифт заголовков */
h1, h2, .h2--light, .about__title, .modal__title, .quiz__q, .quiz__title,
.dcard__name, .scard__name, .follow__now, .advtree__card-title {
  font-family: 'Manrope', 'Muller', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

/* Мелкий текст — крупнее */
.leadform__policy { font-size: 15px; line-height: 1.45; gap: 10px; align-items: center; }
.leadform__policy input[type="checkbox"] { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--lime-dark); cursor: pointer; margin: 0; }
.modal__text--scroll { font-size: 15.5px; }
.quiz__stepnum { font-size: 14px; }
.trust__small { font-size: 15px; }
.dpoint span { font-size: 15px; }
.scard__feat { font-size: 15px; }
.scard__note { font-size: 14px; }
.dcard__role { font-size: 15px; }
.dcard__exp, .dcard__specstitle { font-size: 14px; }
.dcard__tags { font-size: 15px; }
.mpoint { font-size: 15px; }
.mpoint b { font-size: 15.5px; }
.mpoint span { font-size: 14px; }
.icard__body p { font-size: 15.5px; }
.rcard b { font-size: 15px; }
.wheel__hint { font-size: 14px; }
.footer { font-size: 15px; }
.header__meta { font-size: 14px; }
.advtree__label-card { font-size: 14.5px; }
.advtree__card-text { font-size: 16px; }
.advtree__ba-label { font-size: 14px; }
.cookie__text { font-size: 14.5px; }
.logo__tag { font-size: 12px; }
.hero__chief-text b { font-size: 14px; }
.hero__chief-text span, .hero__chief-text em { font-size: 13px; }
.fox__msg { font-size: 14.5px; }
.fox__input { font-size: 14px; }
.fox__bubble--chat { width: min(350px, calc(100vw - 30px)); }
.fox__bubble button:not(.fox__bubble-close) { font-size: 14px; }
.fox__bubble-close { font-size: 14px; }

/* ============ Секция «Этапы» — копия образца: беж, серые «шары», мягкий шрифт, мятная CTA ============ */
.stages { background: #d7d0c3; }
.stages h2 {
  text-align: center; text-transform: none; color: #4a3b32;
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: 0;
}
.stages__sub {
  text-align: center; color: #6d5f55; font-size: clamp(16px, 1.6vw, 20px);
  margin: 16px auto 56px; max-width: 780px;
}
.stages .steps { display: grid; gap: 48px 64px; margin-top: 0; grid-template-columns: 1fr; }
@media (min-width: 720px) { .stages .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stages .steps { grid-template-columns: repeat(3, 1fr); } }
.stages .step { display: flex; align-items: flex-start; gap: 18px; padding: 0; border: 0; }
.stages .step__num {
  counter-increment: step; flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%;
  font-weight: 700; font-size: 22px; color: rgba(255,255,255,.95);
  background: radial-gradient(circle at 34% 28%, #f5f5f7, #b2b3b6 42%, #7c7e82 74%, #63666a 100%);
  box-shadow: inset 0 -6px 14px rgba(0,0,0,.18), inset 0 5px 10px rgba(255,255,255,.5), 0 8px 18px rgba(74,59,50,.22);
  display: flex; align-items: center; justify-content: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.stages .step b {
  font-family: 'Manrope', 'Muller', sans-serif; text-transform: none; letter-spacing: 0;
  font-size: 19px; font-weight: 600; color: #4a3b32; display: block; margin: 8px 0 10px;
}
.stages .step p { color: #5f554e; font-size: 15px; line-height: 1.55; margin: 0; }
.stages__cta {
  margin-top: 56px; display: inline-flex; align-items: center; gap: 10px;
  border: 0; cursor: pointer; border-radius: 999px; padding: 18px 36px;
  font-family: 'Manrope', 'Muller', sans-serif; font-size: 19px; font-weight: 700; color: #1c4730;
  background: linear-gradient(135deg, #b9f4cf, #8ee6b4);
  box-shadow: 0 12px 38px rgba(120, 220, 160, .55); transition: transform .2s, box-shadow .2s, background .2s;
}
.stages__cta:hover { transform: translateY(-2px); background: linear-gradient(135deg, #f4fff9, #dcf9e8); box-shadow: 0 16px 44px rgba(120, 220, 160, .42); }
.stages__cta-ico { font-size: 19px; }

/* ============ Телефон в формах помещается полностью ============ */
@media (min-width: 640px) {
  /* hero: имя+телефон в ряд, кнопка — на всю ширину (номер влезает целиком) */
  .hero__form .leadform__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .hero__form .leadform__row .btn { grid-column: 1 / -1; width: 100%; }
  /* общий гард: телефон мин. 190px, чтобы маска +7 (___) ___-__-__ не резалась */
  .leadform__row { grid-template-columns: minmax(140px, 1fr) minmax(190px, 1.2fr) auto; }
  .modal .leadform__row, .hero__form .leadform__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .leadform__row--budget { grid-template-columns: minmax(140px, 1fr) minmax(190px, 1.2fr); }
}
@media (max-width: 639px) { .leadform__row--budget { grid-template-columns: 1fr; } }
.leadform input[type="tel"], .leadform input[type="text"] { min-width: 0; }

/* ============ Карточки врачей — вертикальные: фото сверху БЕЗ обрезки, описание под ним ============ */
.dcard { flex-direction: column !important; }
.dcard__media { width: 100% !important; padding: 14px 14px 0; background: #fff; }
.dcard__photo {
  width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1;
  object-fit: contain; object-position: center bottom;
  background: #f4f1ea;
  border-radius: 14px;
}
@media (min-width: 1040px) { .doctors__grid { grid-template-columns: repeat(2, minmax(320px, 430px)); justify-content: center; } }
@media (min-width: 720px) and (max-width: 1039px) { .doctors__grid { grid-template-columns: repeat(2, 1fr); } }
.dcard__body { padding: 22px 26px 26px; }
.dcard__name { text-transform: none; letter-spacing: 0; font-size: 20px; }

/* ============ ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ: кнопка в шапке + панель параметров ============ */
.header__a11y {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #eafff3, #b9f4cf);
  box-shadow: 0 6px 18px rgba(120, 220, 160, .45);
  display: none; align-items: center; justify-content: center; margin-left: 14px; transition: .2s;
}
.header__a11y svg { width: 24px; height: 24px; fill: #1c4730; display: block; }
.header__a11y:hover { transform: scale(1.07); }
.header__a11y .a11y-ic--glasses { display: none; }
body.bvi-on .header__a11y { background: #16181d; }
body.bvi-on .header__a11y svg { fill: #fff; }
body.bvi-on .header__a11y .a11y-ic--eye { display: none; }
body.bvi-on .header__a11y .a11y-ic--glasses { display: block; }
@media (min-width: 900px) { .header__a11y { display: inline-flex; margin-left: 18px; } }
@media (max-width: 899px) { .header__a11y { display: inline-flex; width: 42px; height: 42px; margin-left: 10px; } }

/* Панель параметров */
.bvi {
  position: fixed; top: 84px; right: 18px; z-index: 200; width: min(350px, calc(100vw - 24px));
  background: #fff !important; color: #16181d !important; border-radius: 18px; padding: 20px 18px 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.3) !important; display: none; max-height: 82vh; overflow-y: auto;
  font-family: var(--font) !important;
}
.bvi.open { display: block; animation: fadeIn .2s; }
.bvi * { color: #16181d !important; box-shadow: none !important; text-shadow: none !important; }
.bvi__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bvi__top b { font-size: 17px; font-weight: 800; }
.bvi__close { border: 0; background: none !important; font-size: 26px; cursor: pointer; line-height: 1; padding: 2px 6px; }
.bvi__row { margin: 14px 0 10px; }
.bvi__row > span { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.bvi__opts { display: flex; gap: 9px; flex-wrap: wrap; }
.bvi__opt {
  min-width: 46px; height: 46px; border-radius: 50%; border: 2px solid #c9ccd4 !important; background: #fff !important;
  cursor: pointer; font-weight: 700; font-size: 15px; padding: 0 10px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.bvi__opts--text .bvi__opt { width: auto; height: 40px; border-radius: 999px; font-size: 13.5px; }
.bvi__opt.on { outline: 3px solid #5b5ee1; outline-offset: 2px; }
.bvi__off {
  width: 100%; margin-top: 16px; border: 0; cursor: pointer; border-radius: 14px; padding: 16px;
  background: #16181d !important; color: #fff !important; font-size: 15px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}
.bvi__off span, .bvi__off { color: #fff !important; }

/* Режим включён: схема цветов */
body.bvi-on.bvi-scheme-white { --bvi-bg: #ffffff; --bvi-fg: #000000; }
body.bvi-on.bvi-scheme-black { --bvi-bg: #000000; --bvi-fg: #ffffff; }
body.bvi-on.bvi-scheme-beige { --bvi-bg: #f7f4e9; --bvi-fg: #4d4b43; }
body.bvi-on.bvi-scheme-blue  { --bvi-bg: #9dd1ff; --bvi-fg: #063462; }
body.bvi-on.bvi-scheme-navy  { --bvi-bg: #063462; --bvi-fg: #ffffff; }
body.bvi-on.bvi-scheme-green { --bvi-bg: #3b2716; --bvi-fg: #a9dd44; }
body.bvi-on:not(#bviPanel) { background: var(--bvi-bg) !important; color: var(--bvi-fg) !important; }
body.bvi-on * { background-color: var(--bvi-bg) !important; background-image: none !important; color: var(--bvi-fg) !important; border-color: var(--bvi-fg) !important; box-shadow: none !important; text-shadow: none !important; }
body.bvi-on a, body.bvi-on button { outline-color: var(--bvi-fg) !important; }
body.bvi-on a { text-decoration: underline !important; }
body.bvi-on input, body.bvi-on .btn, body.bvi-on button { border: 2px solid var(--bvi-fg) !important; }
body.bvi-on .clinicbg::before, body.bvi-on .fox { display: none !important; }
body.bvi-on .wheel__canvas, body.bvi-on img { background-color: transparent !important; }

/* Изображения */
body.bvi-img-gray img, body.bvi-img-gray video { filter: grayscale(1) !important; }
body.bvi-img-off img, body.bvi-img-off video { visibility: hidden !important; }

/* Размер шрифта (масштаб) */
body.bvi-fs-2 { zoom: 1.14; }
body.bvi-fs-3 { zoom: 1.3; }
body.bvi-fs-4 { zoom: 1.46; }

/* Шрифт / интервал / высота строки */
body.bvi-font-sans * { font-family: Arial, Helvetica, sans-serif !important; }
body.bvi-font-serif * { font-family: Georgia, 'Times New Roman', serif !important; }
body.bvi-ls-mid * { letter-spacing: .06em !important; }
body.bvi-ls-big * { letter-spacing: .14em !important; }
body.bvi-lh-mid * { line-height: 1.75 !important; }
body.bvi-lh-big * { line-height: 2.05 !important; }

/* Элементы, которым масштаб/zoom не мешает фикс-позиционированию */
body.bvi-on .header { position: sticky; }

/* ============ Колесо: бейджи призовой стоимости ============ */
.wheel__bonus { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 4px 0 18px; }
.wheel__bonus-item {
  display: inline-flex; align-items: center; gap: 7px; background: #f4f1ea; border: 2px solid var(--beige);
  border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.wheel__bonus-item s { color: #b0635a; font-weight: 500; }
.wheel__bonus-item b {
  background: linear-gradient(135deg, #eafff3, var(--lime)); border-radius: 999px; padding: 3px 10px;
  font-weight: 800; color: #1c4730;
}
.wheelmodal__card { max-width: 640px; }

/* ============ Яндекс Сплит — 1:1 со старого сайта ============ */
.split { position: relative; background: url('/uploads/split-bg.jpg') center / cover no-repeat; isolation: isolate; }
.split::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(250, 247, 240, .72); backdrop-filter: blur(2px); }
.split__row { display: grid; gap: 30px; align-items: center; position: relative; }
@media (min-width: 960px) { .split__row { grid-template-columns: 1.5fr .85fr; gap: 46px; } }
.split__card {
  background: rgba(243, 238, 228, .92); border-radius: 26px; padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 18px 50px rgba(79, 56, 48, .18);
}
.split__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.split__head b { font-family: 'Manrope', var(--font); font-size: clamp(19px, 2vw, 26px); font-weight: 700; line-height: 1.32; color: #3c322c; flex: 1 1 300px; }
.split__logo { height: 44px; width: auto; flex: 0 0 auto; }
.split__list { margin: 20px 0 24px; padding-left: 20px; display: grid; gap: 10px; }
.split__list li { font-size: clamp(15.5px, 1.35vw, 17.5px); line-height: 1.5; color: #4a4038; }
.split__list li::marker { font-size: 1.2em; }
.split__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.split__btn {
  font-family: 'Manrope', var(--font); font-weight: 700; font-size: 15.5px; text-transform: uppercase; letter-spacing: .04em;
  border-radius: 14px; padding: 16px 26px; cursor: pointer; border: 2px solid #16181d;
  display: inline-flex; align-items: center; gap: 12px; transition: transform .15s, box-shadow .2s;
}
.split__btn--white { background: #fff; color: #16181d; }
.split__btn--white:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22, 24, 27, .18); }
.split__btn--dark { background: #16181d; color: #fff; border-color: #16181d; }
.split__btn--dark:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22, 24, 27, .35); }
.split__photo img { width: 100%; max-height: 480px; object-fit: cover; object-position: center 18%; border-radius: 24px; box-shadow: 0 18px 50px rgba(79, 56, 48, .22); }
.split__script {
  font-family: 'Marck Script', 'Caveat', cursive; color: #4a3b32; text-align: center;
  font-size: clamp(26px, 3.4vw, 42px); line-height: 1.35; margin-top: clamp(28px, 4vw, 44px); position: relative;
}
@media (max-width: 959px) { .split__photo { order: -1; } .split__photo img { max-height: 380px; } }

/* ============ Заголовки форм: аккуратные переносы по центру ============ */
.leadform__title, .modal__title, .quiz__q, #quizTitle, #quizSubtitle, #ctaTitle, #ctaSubtitle, #budgetTitle {
  white-space: pre-line; text-align: center;
}
.leadform__policy { white-space: normal; }

/* ---------- Кнопки-темы в чате Дина ---------- */
.fox__chips { background: none !important; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 2px; }
.fox__chip {
  border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font-family: var(--font); font-size: 13px; font-weight: 600; padding: 7px 13px; cursor: pointer;
  transition: .15s;
}
.fox__chip:hover { background: var(--lime); border-color: var(--lime-dark); transform: translateY(-1px); }

/* ---------- Тёмно-коричневые секции с фото клиники на фоне ---------- */
.section--photo-dark { position: relative; isolation: isolate; background: url('/uploads/clinic-bg.jpg') center 30% / cover no-repeat; }
.section--photo-dark::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(56, 30, 13, .92), rgba(38, 20, 8, .96));
}
.section--photo-dark .section__sub { color: #e8d9cb; }
@media (max-width: 660px) { .advtree__gift { white-space: normal; } }

/* BVI: у фото-секций убираем фото и вуаль */
body.bvi-on .section--photo-dark { background-image: none !important; }
body.bvi-on .section--photo-dark::before { display: none !important; }
