/* Лендинг «Лечение зубов в Хэйхэ». Спокойный медицинский стиль:
   светлый фон, глубокий синий текст, бирюзовый акцент. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-tint: #f4f8f9;
  --ink: #0f2a44;
  --ink-soft: #3f566c;
  --muted: #5b6f82;
  --line: #dbe6ea;
  --accent: #0e7c7b;
  --accent-strong: #0a6463;
  --accent-soft: #d6efee;
  --accent-ink: #ffffff;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --shadow-sm: 0 1px 2px rgba(15, 42, 68, .06), 0 1px 3px rgba(15, 42, 68, .06);
  --shadow-md: 0 8px 24px rgba(15, 42, 68, .08);
  --shadow-lg: 0 24px 48px rgba(15, 42, 68, .12);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 72px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(14, 124, 123, .25); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.logo__mark .icon { width: 22px; height: 22px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-tint); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.header__phone .icon { color: var(--accent); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Общие секции */
.section { padding: 96px 0; }
.section--tint { background: var(--surface-tint); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__lead { color: var(--ink-soft); font-size: 1.1rem; }
.eyebrow { display: inline-block; margin: 0 0 12px; color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.note { margin-top: 24px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft); font-size: .95rem; }
.section:not(.section--tint) .note { background: var(--surface-tint); }
.note--small { font-size: .9rem; color: var(--muted); }
.optional { color: var(--muted); font-weight: 500; font-size: .85em; }

/* Место под фото: пока картинки нет, виден аккуратный фон с подписью */
.photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(135deg, var(--accent-soft), var(--surface-tint));
}
.photo::after {
  content: attr(data-label);
  position: absolute; inset: 14px 16px auto 16px;
  color: var(--muted); font-size: .8rem; font-weight: 600;
}
.photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* 1. Первый экран */
.hero { padding: 56px 0 88px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 0; list-style: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: var(--accent); }
.hero__visual { position: relative; }
.photo--hero { aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-lg); }
.hero__card {
  position: absolute; left: -32px; bottom: 32px; z-index: 2;
  padding: 18px 22px; min-width: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__card-title { margin: 0 0 10px; font-weight: 800; font-size: .95rem; }
.mini-route { position: relative; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-soft); }
.mini-route li { position: relative; display: flex; align-items: center; gap: 12px; padding: 5px 0; }
.mini-route li:not(:last-child)::after { content: ''; position: absolute; left: 5px; top: 22px; width: 2px; height: 14px; background: var(--line); }
.mini-route__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); flex-shrink: 0; }
.mini-route__dot--accent { background: var(--accent); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 2. Задачи */
.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.task {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px; align-items: start;
  padding: 22px; text-align: left; cursor: pointer;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.task:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.task__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.task__icon .icon { width: 24px; height: 24px; }
.task__title { font-weight: 700; font-size: 1.05rem; }
.task__text { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.task--muted .task__icon { background: var(--surface-tint); color: var(--ink-soft); }

/* 3. Сопровождение */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { box-shadow: var(--shadow-sm); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.service:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.photo--service { aspect-ratio: 16 / 10; border-radius: 0; }
.service__body { position: relative; padding: 32px 24px 24px; }
.service__icon { position: absolute; top: -24px; left: 24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-md); }
.service__icon .icon { width: 22px; height: 22px; }
.service p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* 4. Этапы и карта */
.route-map { box-shadow: var(--shadow-sm); margin: -8px 0 40px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.route-map__svg { width: 100%; height: auto; display: block; }
.route-map__river { fill: none; stroke: var(--accent-soft); stroke-width: 26; stroke-linecap: round; }
.route-map__river-label { fill: var(--accent); font-size: 13px; font-weight: 700; font-style: italic; }
.route-map__line { fill: none; stroke: var(--accent); stroke-width: 3; }
.route-map__line--dash { stroke-dasharray: 8 8; animation: dash 1.2s linear infinite; }
.route-map__node { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.route-map__node--accent { fill: var(--accent); }
.route-map__label { fill: var(--ink); font-size: 16px; font-weight: 800; }
.route-map__sub { fill: var(--muted); font-size: 13px; font-weight: 600; }
.route-map__plane { color: var(--accent); }
.route-map__plane use { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.route-map__plane-bg { fill: var(--surface); }
/* Самолёт покачивается, как в полёте: смещение по осям и лёгкий крен */
.route-map__plane-sway { animation: plane-fly 4.5s ease-in-out infinite; }
@keyframes plane-fly {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(3px, -3px) rotate(-4deg); }
  50% { transform: translate(0, 2px) rotate(2deg); }
  75% { transform: translate(-3px, -2px) rotate(-2deg); }
}
@keyframes dash { to { stroke-dashoffset: -16; } }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { box-shadow: var(--shadow-sm); display: flex; gap: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step:last-child { grid-column: 1 / -1; }
.step__num { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.step h3 { margin-bottom: .3em; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* 5. Цены и бюджет */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-group { box-shadow: var(--shadow-sm); padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.price-group h3 { margin-bottom: 16px; }
.price-list { margin: 0; }
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--line); }
.price-list > div:first-child { border-top: 0; padding-top: 0; }
.price-list dt { color: var(--ink-soft); font-size: .95rem; }
.price-list dd { margin: 0; font-weight: 800; white-space: nowrap; text-align: right; }
.price-list dd span { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }

.budget { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; margin-top: 56px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.budget__intro h3 { font-size: 1.5rem; }
.budget__intro p { color: var(--ink-soft); }
.budget__list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.budget__list li { display: flex; gap: 16px; }
.budget__num { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .9rem; }
.budget__list p { margin: 2px 0 0; color: var(--muted); font-size: .94rem; }

/* 6-7. Двухколоночные блоки */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse > :first-child { order: 0; }
.checklist { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 3; }
.checklist--compact { gap: 8px; margin: 20px 0; }
.checklist-title { margin: 20px 0 -8px; font-weight: 700; }

.estimate { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: rotate(1deg); }
.estimate__head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.estimate__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.estimate__title { margin: 0; font-weight: 800; }
.estimate__meta { margin: 0; color: var(--muted); font-size: .85rem; }
.estimate__table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: .93rem; }
.estimate__table th { padding: 8px 0; text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.estimate__table td { padding: 10px 0; border-top: 1px dashed var(--line); }
.estimate__table th:not(:first-child), .estimate__table td:not(:first-child) { text-align: right; white-space: nowrap; padding-left: 12px; }
.estimate__table td:last-child { font-weight: 700; }
.estimate__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.estimate__badge { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

.photo--clinic, .photo--team { aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }

/* 8. Гарантии */
.guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guarantee { box-shadow: var(--shadow-sm); padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.guarantee__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.guarantee__icon .icon { width: 26px; height: 26px; }
.guarantee p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.help { margin-top: 24px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface-tint); border: 1px solid var(--line); }
.help p { margin: 0; color: var(--ink-soft); }

/* 10. Вопросы */
.faq { display: grid; gap: 12px; }
.faq details { box-shadow: var(--shadow-sm); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-soft); }

/* 11. Форма */
.lead-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.lead-wrap__info p { color: var(--ink-soft); }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; transition: border-color .2s, color .2s; }
button.contact { font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.contact:hover { border-color: var(--accent); color: var(--accent); }
.contact .icon { color: var(--accent); }

.lead-form { display: grid; gap: 18px; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { padding: 0; font-weight: 700; font-size: .92rem; }
.field legend { margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .is-invalid { border-color: var(--danger); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .95rem; transition: all .2s; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.consent input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.consent.is-invalid { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: .93rem; }
.btn__spinner { display: none; width: 20px; height: 20px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.field-flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 6px var(--accent-soft); } }

/* Подвал */
.footer { padding: 64px 0 32px; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer__text { margin-top: 16px; max-width: 320px; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__col a { color: var(--ink); text-decoration: none; }
.footer__col a:hover { color: var(--accent); }
.footer__title { margin: 0 0 4px; color: var(--ink); font-weight: 800; }
.footer__warning { margin: 28px 0 8px; color: var(--ink); font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.35rem); text-transform: uppercase; letter-spacing: .02em; }
.footer__legal { margin: 0; font-size: .85rem; }

/* Нижняя панель на телефоне */
.mobile-bar { display: none; }

/* Появление блоков при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Адаптив */
@media (max-width: 1100px) {
  .nav a { padding: 8px 9px; font-size: .9rem; }
  .header__phone span { display: none; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 20px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 8px; font-size: 1.05rem; border-radius: 10px; }
  .header__actions { margin-left: auto; }
  .nav-toggle { display: grid; }
  .hero__grid, .split, .lead-wrap, .budget { grid-template-columns: 1fr; }
  .hero__grid { gap: 40px; }
  .hero__visual { max-width: 560px; }
  .photo--hero { aspect-ratio: 4 / 3; }
  .hero__card { left: 16px; bottom: -24px; }
  .tasks, .services, .prices, .guarantees { grid-template-columns: repeat(2, 1fr); }
  .split, .lead-wrap { gap: 40px; }
  .estimate { transform: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .header__cta { display: none; }
  .hero { padding: 32px 0 64px; }
  .hero__actions .btn { width: 100%; padding: 0 16px; }
  .hero__actions .btn .icon { display: none; }
  .hero__card { position: relative; left: auto; bottom: auto; margin: -40px 16px 0; min-width: 0; }
  .tasks, .services, .prices, .guarantees, .steps { grid-template-columns: 1fr; }
  .step:last-child { grid-column: auto; }
  .route-map { display: none; }
  .budget, .lead-form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .price-group { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 42, 68, .08);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .8rem; }
  .mobile-bar a .icon { width: 22px; height: 22px; }
  .mobile-bar__cta { background: var(--accent); color: var(--accent-ink) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Простые страницы: спасибо и документы */
.page-simple { padding-bottom: 0; }
.thanks { display: grid; place-items: center; min-height: 100vh; padding: 40px 16px; }
.thanks__card { width: 100%; max-width: 620px; padding: 48px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.thanks__card p { color: var(--ink-soft); }
.thanks__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.thanks__icon .icon { width: 32px; height: 32px; stroke-width: 3; }
.thanks__id { font-size: 1.1rem; }
.thanks__id strong { color: var(--ink); letter-spacing: .03em; }
.thanks__next { margin: 0 0 28px; padding-left: 20px; color: var(--ink-soft); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.doc { max-width: 820px; margin: 0 auto; padding: 48px 16px 80px; }
.doc h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.doc h2 { font-size: 1.25rem; margin-top: 2em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc__back { display: inline-block; margin-bottom: 24px; font-weight: 700; }
.doc__draft { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-weight: 600; }
@media (max-width: 640px) { .thanks__card { padding: 32px 22px; } }
