/* =========================================================
   Сайтово · общая база демо-лендингов
   Палитру и шрифты каждый лендинг задаёт своими переменными.
   ========================================================= */

:root {
  --bg: #ffffff;
  --surface: #f5f5f4;
  --surface-2: #ececea;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, .1);
  --accent: #2d6cdf;
  --accent-hover: #1f56b8;
  --accent-ink: #ffffff;
  --accent-2: #f2b33d;
  --dark: #151515;
  --dark-ink: #f4f4f4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .16);
  --font-head: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --header-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- layout ---------- */
main, .site-footer { overflow-x: clip; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--dark-ink); }
.section--tight { padding: 64px 0; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.section-head--center .eyebrow::before { display: none; }
.h1 { font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -.02em; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.01em; }
.h3 { font-size: clamp(19px, 1.8vw, 22px); }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); margin-top: 16px; }
.section--dark .lead, .section--dark .muted { color: rgba(255, 255, 255, .7); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent); --btn-ink: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px;
  border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px var(--accent); background: var(--accent-hover); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-ink: #111; }
.btn--light:hover { background: #fff; box-shadow: 0 12px 28px -8px rgba(0,0,0,.4); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: #fff; color: #111; border-color: #fff; box-shadow: none; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.btn--lg { min-height: 60px; padding: 18px 36px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -.01em; flex-shrink: 0; }
.logo__mark { width: 36px; height: 36px; flex-shrink: 0; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 600; opacity: .8; transition: opacity .2s, color .2s; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--accent); transition: right .25s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { right: 0; }
.header-contacts { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; white-space: nowrap; }
.header-phone > span { display: flex; flex-direction: column; line-height: 1.2; }
.header-phone small { font-weight: 500; font-size: 12px; color: var(--muted); }
.header-phone__icon { display: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; flex-shrink: 0; }
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger::before { top: 15px; } .burger span { top: 21px; } .burger::after { top: 27px; }
.nav-open .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span { opacity: 0; }
.nav-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- cards ---------- */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }

.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ph, linear-gradient(135deg, var(--surface-2), var(--surface))); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.media:hover img, .card:hover .media img { transform: scale(1.06); }
.img-failed { visibility: hidden; }

.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }

/* ---------- price list ---------- */
.price-list { display: grid; gap: 2px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.price-row__name { flex: 1; }
.price-row__name small { display: block; color: var(--muted); font-size: 14px; }
.price-row__val { font-weight: 800; white-space: nowrap; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--font-head); font-size: 44px; font-weight: 800; line-height: 1;
  color: var(--accent);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }
.section--dark .step p { color: rgba(255,255,255,.65); }

/* ---------- reviews ---------- */
.review { display: flex; flex-direction: column; gap: 18px; }
.review__stars { color: var(--accent-2); letter-spacing: 3px; font-size: 18px; }
.review__text { color: var(--text) !important; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 800; color: var(--accent-ink); background: var(--accent); font-family: var(--font-head);
}
.review__author b { display: block; line-height: 1.3; }
.review__author small { color: var(--muted); }
.demo-note { font-size: 13px; color: var(--muted); margin-top: 24px; text-align: center; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; }
.input, .form input:not([type=checkbox]):not([type=radio]):not([type=range]), .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 110px; resize: vertical; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form .is-invalid { border-color: #e5484d !important; box-shadow: 0 0 0 4px rgba(229, 72, 77, .15) !important; }
.form-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.form-note a { text-decoration: underline; }
/* галочка согласия на обработку ПД (обязательная, изначально не отмечена) */
.consent { display: flex; gap: 10px; align-items: flex-start; flex-basis: 100%; grid-column: 1 / -1; width: 100%; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: left; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent a { color: inherit; text-decoration: underline; }
.consent input.is-invalid { outline: 2px solid #e5484d; outline-offset: 2px; box-shadow: none !important; }
.form-success {
  display: grid; justify-items: center; text-align: center; gap: 10px; padding: 28px 12px;
  animation: pop .5s var(--ease);
}
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.form-success__icon svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 22px; }
.form-success p { color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* chips: радио/чекбоксы в виде пилюль */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; transition: all .2s; background: var(--bg);
}
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* range */
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--accent) var(--fill, 50%), var(--surface-2) var(--fill, 50%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); cursor: grab; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); cursor: grab; }

/* ---------- tabs ---------- */
.tabs__list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tabs__btn {
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--surface); color: var(--text); transition: background .25s, color .25s, transform .25s;
}
.tabs__btn:hover { transform: translateY(-2px); }
.tabs__btn.is-active { background: var(--accent); color: var(--accent-ink); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: box-shadow .3s, border-color .3s; }
.faq-item.is-open { box-shadow: var(--shadow); border-color: transparent; }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; font-weight: 700; font-size: 17px; font-family: var(--font-head);
}
.faq-q::after {
  content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); font-size: 22px; font-weight: 400; transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq-item.is-open .faq-q::after { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a > div { padding: 0 24px 22px; color: var(--muted); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 14, .6); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto;
  background: var(--bg); color: var(--text); border-radius: calc(var(--radius) + 4px); padding: 36px 32px 32px; box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.97); transition: transform .35s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); font-size: 22px; line-height: 1; transition: transform .25s, background .25s; }
.modal__close:hover { transform: rotate(90deg); background: var(--surface-2); }
.modal__title { font-size: 24px; margin-bottom: 6px; padding-right: 30px; }
.modal__sub { color: var(--muted); margin-bottom: 20px; }
body.modal-open { overflow: hidden; }

/* ---------- before / after ---------- */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; --pos: 50%; user-select: none; background: var(--surface-2); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; box-shadow: 0 0 12px rgba(0,0,0,.3); }
.ba__handle { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); color: #222; font-weight: 800; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba__label { position: absolute; top: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
.ba__label--before { left: 16px; } .ba__label--after { right: 16px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(8, 8, 10, .92); display: grid; place-items: center; padding: 60px 64px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__caption { color: #fff; text-align: center; margin-top: 14px; font-size: 15px; opacity: .85; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; display: grid; place-items: center; transition: background .2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 12px; top: 50%; margin-top: -24px; }

/* ---------- map stub ---------- */
.map-stub {
  position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden;
  background-color: #e8e6df;
  background-image:
    linear-gradient(30deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
    linear-gradient(-60deg, transparent 48%, #fff 48%, #fff 52%, transparent 52%),
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.7) 49%, rgba(255,255,255,.7) 51%, transparent 51%),
    radial-gradient(circle at 75% 25%, #cfe3c4 0 60px, transparent 61px),
    radial-gradient(circle at 20% 80%, #c9dcef 0 80px, transparent 81px);
  background-size: 240px 240px, 300px 300px, 120px 120px, 100% 100%, 100% 100%;
}
.map-stub__pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 8px; }
.map-stub__pin svg { width: 44px; height: 44px; color: var(--accent); filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); animation: bob 2.4s ease-in-out infinite; }
.map-stub__label { background: #fff; color: #222; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.15); white-space: nowrap; }
.map-stub__note { position: absolute; left: 12px; bottom: 12px; font-size: 12px; background: rgba(255,255,255,.85); color: #555; padding: 4px 10px; border-radius: 6px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.contacts-list { display: grid; gap: 18px; }
.contacts-list li { display: flex; gap: 14px; align-items: flex-start; }
.contacts-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.contacts-list b { display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 48px 0 32px; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer .logo { color: #fff; }
.site-footer a:hover { color: #fff; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 600;
  transition: background .2s, transform .2s;
}
.demo-badge:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.demo-badge b { color: var(--accent-2); }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- adaptive ---------- */
@media (max-width: 1180px) {
  .header-contacts .btn { display: none; }
}
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .nav { gap: 18px; }
  .header-phone small { display: none; }
}
@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .section { padding: 72px 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .burger { display: block; }
  .header-contacts .btn { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; gap: 0; padding: 16px 20px 32px; margin: 0;
    background: var(--bg); overflow-y: auto;
    opacity: 0; transform: translateY(-12px); visibility: hidden; pointer-events: none;
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
  }
  .nav a { font-size: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav a::after { display: none; }
  .nav .nav__cta { display: flex !important; margin-top: 24px; border: 0; font-size: 17px; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .header-contacts { margin-left: auto; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .header-phone { font-size: 15px; }
  .btn--lg { min-height: 56px; padding: 16px 26px; font-size: 16px; }
  .modal__dialog { padding: 30px 20px 22px; }
  .lightbox { padding: 60px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; margin: 0; }
  .lightbox__prev { left: calc(50% - 60px); } .lightbox__next { right: calc(50% - 60px); }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .faq-q { padding: 18px; font-size: 16px; }
  .faq-a > div { padding: 0 18px 18px; }
}
@media (max-width: 480px) {
  .header-phone > span { display: none; }
  .header-phone__icon { display: block; }
  .site-header .container { gap: 12px; }
}
.nav .nav__cta { display: none; }
