/* ===== Базовые переменные ===== */
:root {
  --navy: #1f3a5f;
  --navy-dark: #152a46;
  --green: #1fa774;
  --green-dark: #178a5f;
  --text: #1c2430;
  --muted: #5d6878;
  --line: #e2e7ee;
  --bg: #ffffff;
  --tint: #f3f6fa;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(21, 42, 70, .08);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-dark); }
h1 { font-size: clamp(28px, 5vw, 46px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 780px; }
.section { padding: 64px 0; }
.section--tint { background: var(--tint); }
section[id], .quiz { scroll-margin-top: 76px; }
.section__title { text-align: center; margin-bottom: 32px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sample-note {
  text-align: center; margin: -20px 0 24px; font-size: 13px;
  color: #b06d00;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s, border-color .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--lg { min-height: 58px; padding: 16px 30px; font-size: 18px; }
.btn--small { min-height: 38px; padding: 8px 16px; font-size: 14px; background: var(--navy); color: #fff; }
.link-btn {
  background: none; border: 0; padding: 8px 0; margin-top: 12px;
  color: var(--muted); font: 14px var(--font); text-decoration: underline; cursor: pointer;
}
.link-btn:hover { color: var(--navy); }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header__row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; color: var(--navy-dark); }
.logo__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); display: grid; place-items: center; }
.logo__mark svg { width: 22px; height: 22px; fill: none; stroke: #34c38f; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.logo--light { color: #fff; }
.logo img { height: 48px; width: auto; display: block; }
.header__info { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.header__hours { font-size: 12px; color: var(--muted); }
.header__phone { font-weight: 700; text-decoration: none; color: var(--navy-dark); white-space: nowrap; }

/* Форма «оставить контакт» */
.lead-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.lf-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lf-ch { cursor: pointer; }
.lf-ch input { position: absolute; opacity: 0; pointer-events: none; }
.lf-ch span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 8px;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); font-weight: 600; font-size: 15px;
  transition: border-color .15s, background .15s, color .15s;
}
.lf-ch svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.lf-ch:hover span { border-color: #b7c4d6; }
.m-telegram { --m: #2aabee; } .m-max { --m: #6a5cff; } .m-whatsapp { --m: #25b85a; }
.lf-ch span svg { color: var(--m); }
.lf-ch input:checked + span { border-color: var(--m); background: var(--m); color: #fff; }
.lf-ch input:checked + span svg { color: #fff; }
.lf-ch input:focus-visible + span { outline: 3px solid rgba(31,167,116,.35); outline-offset: 2px; }
.lf-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.lf-field input {
  height: 52px; border: 2px solid var(--line); border-radius: 12px; padding: 0 14px; font: 17px var(--font); color: var(--text); background: #fff;
}
.lf-field input:focus, .lf-field textarea:focus { outline: none; border-color: var(--green); }
.lf-field textarea {
  min-height: 64px; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 16px/1.4 var(--font);
  color: var(--text); background: #fff; resize: vertical; width: 100%;
}
.lf-opt { color: #9aa4b2; }
.lead-form .check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.lead-form .check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--green); }
.lead-form .form__error { color: #c0392b; font-size: 14px; margin: 0; }
.btn--block { width: 100%; min-height: 54px; font-size: 17px; }
.lead-ok { text-align: center; padding: 8px 0; }
.lead-ok__icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 30px; font-weight: 700;
}
.lead-ok p { color: var(--muted); margin: 0; }
.final .lead-form, .final .lead-ok { max-width: 460px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 20px; }
.final .lead-ok h3 { color: var(--navy-dark); }

/* ===== Первый экран ===== */
.hero { padding: 48px 0 64px; background: linear-gradient(180deg, #eef3f9 0%, #fff 100%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 99px;
  background: #e3f5ee; color: var(--green-dark); font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
.hero__sub { font-size: 19px; color: var(--muted); }
.hero__list { list-style: none; padding: 0; margin: 0 0 28px; }
.hero__list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.hero__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__note { font-size: 14px; color: var(--muted); }
.hero__price { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.hero__price b { color: var(--navy-dark); }
.hero__media { position: relative; align-self: end; display: flex; justify-content: center; margin-bottom: -64px; min-height: 480px; }
.hero__circle {
  position: absolute; left: 50%; bottom: 0; width: 88%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: linear-gradient(160deg, #dfeaf6 0%, #e3f5ee 100%);
}
.hero__photo { position: relative; width: auto; max-width: 100%; height: 560px; object-fit: contain; object-position: bottom; }
.ph::after {
  content: attr(data-ph); position: absolute; inset: auto 10px 10px 10px;
  font-size: 12px; color: var(--muted); background: rgba(255,255,255,.85); padding: 4px 8px; border-radius: 6px;
}

/* ===== Квиз ===== */
.quiz {
  max-width: 760px; margin: 0 auto; background: #fff; border-radius: 20px;
  box-shadow: var(--shadow); padding: 32px;
}
.quiz__title { text-align: center; font-size: clamp(22px, 3vw, 28px); }
.quiz__progress { height: 8px; background: var(--tint); border-radius: 99px; overflow: hidden; margin: 16px 0 8px; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--green); transition: width .3s; }
.quiz__step { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.quiz__body { min-height: 300px; }
.quiz__q { font-size: 20px; font-weight: 700; color: var(--navy-dark); margin-bottom: 4px; }
.quiz__hint { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.quiz__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 56px;
  border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff;
  font: 16px var(--font); color: var(--text); text-align: left; transition: border-color .15s, background .15s;
}
.opt:hover { border-color: #b7c4d6; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__mark { flex: none; width: 22px; height: 22px; border: 2px solid #b7c4d6; border-radius: 50%; }
.opt--multi .opt__mark { border-radius: 6px; }
.opt.is-on { border-color: var(--green); background: #effaf5; }
.opt.is-on .opt__mark {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.opt:focus-within { outline: 3px solid rgba(31,167,116,.35); outline-offset: 2px; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz__result {
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px;
  background: #effaf5; border: 1px solid #bfe7d5;
}
.quiz__result h3 { margin-bottom: 6px; }
.quiz__result p { margin: 0; }
.quiz__code { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.quiz__code b { color: var(--navy-dark); letter-spacing: .05em; }
.quiz__done { text-align: center; }

/* ===== Карточки ===== */
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .case, .review, .person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: #e3f5ee; color: var(--green-dark);
}
.card__icon svg { width: 28px; height: 28px; }
.card p, .person p { color: var(--muted); margin: 0; font-size: 15px; }
.person { text-align: center; }
.person h3 { margin-bottom: 4px; }
.person__photo {
  width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: center top;
  border-radius: 12px; margin-bottom: 16px; background: linear-gradient(180deg, #eef3f9, #e3ebf4);
}
.person__exp { display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 99px; background: #e3f5ee; color: var(--green-dark); font-size: 13px; font-weight: 600; }
.case { display: flex; flex-direction: column; }
.case__label { font-size: 13px; color: var(--muted); }
.case p { flex: 1; }
.case__sum { display: block; font-size: 28px; font-weight: 800; color: var(--green-dark); }
.case p { margin: 4px 0 12px; }
.case__meta { font-size: 13px; color: var(--muted); }
.review { margin: 0; }
.review { display: flex; flex-direction: column; }
.review p { font-style: italic; flex: 1; }
.review footer { font-weight: 600; color: var(--navy-dark); }

/* Лента (дела, отзывы) */
.feed {
  position: relative; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  padding: 4px 16px 16px; margin: 0 -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.feed::-webkit-scrollbar { display: none; }
.feed:focus-visible { outline: 3px solid rgba(31,167,116,.35); outline-offset: 2px; }
.feed > * { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; margin: 0; }
.feed-nav { display: flex; justify-content: flex-end; gap: 8px; margin: -16px 0 16px; }
.feed-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 18px; cursor: pointer; box-shadow: var(--shadow); transition: opacity .15s, border-color .15s;
}
.feed-btn:hover:not(:disabled) { border-color: var(--navy); }
.feed-btn:disabled { opacity: .35; cursor: default; }

/* Плюсы и минусы */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.pc { border-radius: var(--radius); padding: 24px; background: #fff; border: 1px solid var(--line); }
.pc ul { margin: 0; padding-left: 20px; }
.pc li { margin-bottom: 8px; }
.pc--plus { border-top: 4px solid var(--green); }
.pc--minus { border-top: 4px solid #e0a030; }

/* Этапы */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: s; position: relative; padding: 56px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(s); position: absolute; top: 16px; left: 20px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.steps b { display: block; color: var(--navy-dark); margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Цены */
.price {
  max-width: 760px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow);
  padding: 32px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: center;
}
.price__main { display: flex; flex-direction: column; }
.price__label { color: var(--muted); }
.price__value { font-size: 34px; font-weight: 800; color: var(--navy-dark); }
.price__value--text { font-size: 22px; line-height: 1.25; margin: 4px 0 6px; }
.price__sub { color: var(--green-dark); font-weight: 600; }
.price__list { margin: 0; padding-left: 20px; }
.price .btn { grid-column: 1 / -1; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 600; position: relative; color: var(--navy-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Финальный блок */
.final {
  max-width: 680px; margin: 0 auto; text-align: center; padding: 40px 32px; border-radius: 20px;
  background: var(--navy); color: #fff;
}
.final h2 { color: #fff; }
.final p { color: #c9d6e8; }
.final .link-btn { color: #c9d6e8; }

/* Подвал */
.footer { background: var(--navy-dark); color: #c9d6e8; padding: 40px 0 100px; font-size: 14px; }
.footer a { color: #c9d6e8; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 24px; }
.footer__small { margin-top: 12px; color: #8fa3bf; font-size: 13px; }
.footer__req p { margin: 0 0 4px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }

/* Плавающая панель */
.sticky-bar { display: none; }

/* Модальные окна */
.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(15, 25, 40, .55);
  display: grid; place-items: center; padding: 16px;
}
.modal__box {
  position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 18px; padding: 28px 24px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); max-height: calc(100vh - 32px); overflow-y: auto;
}
.modal__box h3 { font-size: 22px; padding-right: 30px; }
.modal__close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none;
  font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer;
}

/* Форма */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.form input[type=text], .form input[type=tel] {
  height: 50px; border: 2px solid var(--line); border-radius: 10px; padding: 0 14px; font: 17px var(--font); color: var(--text);
}
.form input:focus { outline: none; border-color: var(--green); }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; }
.form .check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--green); }
.form__error { color: #c0392b; font-size: 14px; margin: 0; }

/* Cookie и уведомление */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; max-width: 560px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px;
  display: flex; gap: 12px; align-items: center; font-size: 13px;
}
.cookie p { margin: 0; }
.cookie__btns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.cookie .btn--ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 60;
  background: var(--navy-dark); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px;
  max-width: calc(100% - 32px); text-align: center;
}

/* Документы (политика, согласие) */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(24px, 4vw, 34px); }
.doc h2 { font-size: 20px; margin-top: 28px; }
.doc p, .doc li { color: #333d4b; }
.doc .muted { font-size: 14px; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
  /* планшет: текст и фото рядом, фото поменьше */
  .hero__grid { grid-template-columns: 1.25fr 1fr; gap: 20px; }
  .hero__media { min-height: 0; }
  .hero__photo { height: 440px; }
  .hero__cta .btn { width: 100%; }
  .cards--4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 { gap: 14px; }
  .person { padding: 14px; }
  .person h3 { font-size: 16px; }
  .person p { font-size: 14px; }
  .feed > * { flex-basis: calc((100% - 20px) / 2); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
/* Элементы только для телефона — на компьютере скрыты */
.header__call, .hero__online, .sticky-call { display: none; }

/* ============================================================
   ТЕЛЕФОН — отдельная компоновка, а не ужатая версия
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 15px; }
  h2 { font-size: 24px; }
  .section { padding: 40px 0; }
  .section__title { margin-bottom: 20px; text-align: left; }

  /* --- Шапка: логотип + круглая кнопка звонка --- */
  .header__row { min-height: 56px; }
  .header .logo img { height: 34px; }
  .header__info { display: none; }
  .header__call {
    display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border-radius: 50%;
    background: #e3f5ee; color: var(--green-dark);
  }
  .header__call svg { width: 20px; height: 20px; fill: currentColor; }

  /* --- Первый экран: всё главное в одном экране, без большого фото --- */
  .hero { padding: 20px 0 28px; background: linear-gradient(180deg, #eef3f9 0%, #f7fafc 100%); }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__media { display: none; }
  .badge { font-size: 12px; padding: 5px 10px; margin-bottom: 12px; }
  h1 { font-size: 29px; line-height: 1.15; margin-bottom: 10px; }
  .hero__sub { font-size: 16px; margin-bottom: 16px; }
  .hero__list { display: grid; gap: 8px; margin: 0 0 20px; }
  .hero__list li { margin: 0; padding: 10px 12px 10px 40px; background: #fff; border-radius: 12px; font-size: 14px; line-height: 1.35; box-shadow: 0 1px 0 var(--line); }
  .hero__list li::before { left: 12px; top: 50%; transform: translateY(-50%); }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero__cta .btn { width: 100%; min-height: 56px; font-size: 17px; }
  .hero__note { text-align: center; font-size: 13px; }
  .hero__price { text-align: center; margin-top: 6px; font-size: 14px; }
  .hero__online {
    display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 12px;
    background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  }
  .hero__online img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: #e3ebf4; flex: none; }
  .hero__online span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.35; }
  .hero__online b { color: var(--navy-dark); font-size: 15px; display: flex; align-items: center; gap: 6px; }
  .dot-online { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); display: inline-block; }

  /* --- Квиз: во всю ширину, крупные варианты --- */
  .section--tint:has(.quiz) { padding: 0; background: var(--tint); }
  .quiz { border-radius: 0; box-shadow: none; padding: 24px 16px 28px; margin: 0 -16px; background: var(--tint); }
  .quiz__title { font-size: 21px; text-align: left; }
  .quiz__progress { margin-top: 12px; background: #dde5ee; }
  .quiz__q { font-size: 18px; }
  .quiz__options { grid-template-columns: 1fr; gap: 8px; }
  .opt { min-height: 54px; padding: 12px 14px; font-size: 16px; }
  .quiz__body { min-height: 0; }
  .quiz__nav { margin-top: 16px; }
  .quiz__nav .btn { flex: 1; min-height: 52px; }
  .quiz__nav #quiz-back { flex: 0 0 auto; }
  .quiz__result { padding: 14px 16px; }

  /* --- С какими долгами: плитки 2×2 без длинных описаний --- */
  .cards--4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cards--4 .card { padding: 14px 12px; text-align: left; }
  .cards--4 .card__icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 10px; }
  .cards--4 .card__icon svg { width: 22px; height: 22px; }
  .cards--4 .card h3 { font-size: 14px; margin: 0; line-height: 1.3; }
  .cards--4 .card p { display: none; }

  /* --- Плюсы и честные минусы: компактные списки --- */
  .pros-cons { grid-template-columns: 1fr; gap: 12px; }
  .pc { padding: 16px; }
  .pc h3 { font-size: 16px; }
  .pc ul { list-style: none; padding: 0; }
  .pc li { position: relative; padding-left: 26px; font-size: 14px; margin-bottom: 8px; }
  .pc li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
  .pc--plus li::before { content: "✓"; color: var(--green); }
  .pc--minus li::before { content: "!"; color: #d08a1a; left: 6px; }
  .pros-cons + .muted { font-size: 13px; text-align: left; }

  /* --- Этапы: вертикальная линия-таймлайн --- */
  .steps { grid-template-columns: 1fr; gap: 0; position: relative; }
  .steps::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
  .steps li { border: 0; padding: 0 0 20px 48px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { top: 0; left: 0; z-index: 1; }
  .steps li:last-child::before { background: var(--green); }
  .steps b { font-size: 16px; margin-bottom: 2px; }
  .steps span { font-size: 14px; }

  /* --- Стоимость --- */
  .price { grid-template-columns: 1fr; gap: 14px; padding: 20px 16px; border-radius: 16px; }
  .price__value { font-size: 30px; }
  .price__value--text { font-size: 20px; }
  .price__list { font-size: 14px; }

  /* --- Юристы: фото слева, текст справа --- */
  .cards--3 { grid-template-columns: 1fr; gap: 10px; }
  .person { display: grid; grid-template-columns: 84px 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 12px; }
  .person__photo { grid-row: 1 / 4; margin: 0; border-radius: 12px; }
  .person h3 { margin: 0 0 2px; font-size: 15px; }
  .person p { font-size: 13px; }
  .person__exp { justify-self: start; margin-top: 6px; font-size: 12px; padding: 3px 10px; }

  /* --- Ленты дел и отзывов: листаются пальцем --- */
  .feed { gap: 10px; }
  .feed > * { flex-basis: 84%; }
  .feed-nav { display: none; }
  .case { padding: 16px; }
  .case__sum { font-size: 26px; }
  .review { padding: 16px; font-size: 14px; }

  /* --- Вопросы --- */
  .faq summary { padding: 15px 44px 15px 16px; font-size: 15px; }
  .faq details p { padding: 0 16px 15px; font-size: 14px; }

  /* --- Финальная форма во всю ширину --- */
  .final { border-radius: 0; margin: 0 -16px; padding: 28px 16px 32px; text-align: left; }
  .section:has(.final) { padding-bottom: 0; }
  .final h2 { font-size: 24px; }
  .final .lead-form, .final .lead-ok { padding: 16px; }
  .lf-ch span { flex-direction: column; gap: 2px; font-size: 13px; min-height: 58px; }

  /* --- Подвал --- */
  .footer { padding: 32px 0 96px; font-size: 13px; }
  .footer__grid { grid-template-columns: 1fr; gap: 18px; }
  .footer .logo img { height: 40px; }

  /* --- Нижняя панель: прячется, когда на экране тест или форма --- */
  .sticky-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(21,42,70,.08);
    transition: transform .25s ease;
  }
  .sticky-bar.is-hidden { transform: translateY(110%); }
  .sticky-bar .btn { flex: 1; min-height: 48px; padding: 6px 8px; font-size: 14px; white-space: nowrap; letter-spacing: -.01em; }
  .sticky-call {
    display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 12px;
    background: #e3f5ee; color: var(--green-dark);
  }
  .sticky-call svg { width: 22px; height: 22px; fill: currentColor; }

  /* --- Окна выезжают снизу, как в приложениях --- */
  .modal { align-items: end; padding: 0; }
  .modal__box {
    max-width: none; border-radius: 20px 20px 0 0; padding: 26px 16px calc(20px + env(safe-area-inset-bottom));
    max-height: 92vh; animation: sheet-up .25s ease;
  }
  .modal__box::before {
    content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 2px; background: #d5dbe3;
  }
  .modal__box h3 { font-size: 20px; }
  .cookie { left: 8px; right: 8px; bottom: 84px; max-width: none; flex-direction: column; align-items: stretch; }
  .cookie__btns { flex-direction: row; }
  .cookie__btns .btn { flex: 1; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal__box { animation: none; }
  .sticky-bar { transition: none; }
}
