/* РостовДома — production-лендинг. Токены и визуал — Stage 2A (design_stage2a/design-system/ростовдома/MASTER.md).
   Mobile-first. Брейкпоинты: 375 (база) · 560 · 768 · 1024 · 1440.
   Никакого glassmorphism/backdrop-blur — прямой запрет MASTER.md. */

/* ============ Шрифты (self-host, сабсет: латиница + кириллица) ============ */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-var-subset.ttf') format('truetype-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PT Sans';
  src: url('../fonts/ptsans-regular-subset.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PT Sans';
  src: url('../fonts/ptsans-bold-subset.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============ Токены ============ */
:root {
  /* @contrast-tokens: цвета ниже проверяет qa/qa_site.py */
  --c-fg: #2E2924;          /* графит — основной текст */
  --c-muted: #6B6055;       /* вторичный текст */
  --c-bg: #FAF6EE;          /* крем — фон */
  --c-surface: #FFFFFF;     /* карточки */
  --c-primary: #C1673A;     /* терракота — только крупное и декор */
  --c-clay: #9C4E28;        /* глина — кнопки, мелкий текст на светлом */
  --c-sand: #D9C6A5;        /* песок — подложки, цифры на графите */
  --c-water: #1E6E72;       /* вода — ссылки, фокус */
  --c-error: #B3402C;
  --c-border: #E4D6BE;
  --c-on-dark: #F2EADB;     /* текст на графите */
  --c-on-dark-muted: #CFC5B8;

  --space-sm: 8px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --sh-sm: 0 1px 2px rgba(46, 41, 36, .06);
  --sh-md: 0 4px 10px rgba(46, 41, 36, .10);
  --sh-lg: 0 12px 24px rgba(46, 41, 36, .12);
  --sh-xl: 0 20px 40px rgba(46, 41, 36, .16);

  --pad-x: 16px;
  --sect-y: 56px;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Атрибут hidden должен побеждать любой display у классов (.btn и т.п.),
   иначе скрытые шаги и кнопки квиза остаются на экране. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'PT Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-fg);
  background: var(--c-bg);
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, .num, .btn, .kicker, .eyebrow, .nav a, .logo {
  font-family: 'Manrope', system-ui, sans-serif;
}
h1, h2, h3 { margin: 0; letter-spacing: -.01em; line-height: 1.12; }
p { margin: 0; }

a { color: var(--c-water); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--c-water);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.tnum { font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--c-fg); color: var(--c-on-dark);
  padding: 12px 20px; text-decoration: none; font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad-x); }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 26px;
  border: 2px solid transparent; border-radius: var(--r-sm);
  font-size: 16px; font-weight: 700; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--c-clay); color: var(--c-bg); }
.btn-primary:hover { background: #82401F; }
.btn-ghost { background: transparent; color: var(--c-fg); border-color: var(--c-fg); }
.btn-ghost:hover { background: var(--c-fg); color: var(--c-bg); }
.btn-dark { background: var(--c-fg); color: var(--c-on-dark); }
.btn-dark:hover { background: #1C1815; }
.btn-light-outline { background: transparent; color: var(--c-bg); border-color: var(--c-bg); }
.btn-light-outline:hover { background: var(--c-bg); color: var(--c-fg); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .65; cursor: progress; }
.btn-wide { width: 100%; }

/* ============ Шапка ============ */
.header {
  position: static;               /* на мобильном НЕ липкая (UX-бриф §fixed) */
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.header-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--c-fg); line-height: 1.1; }
.logo b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.logo span { font-size: 11px; color: var(--c-muted); font-family: 'PT Sans', sans-serif; letter-spacing: .02em; }
.header-spacer { flex: 1 1 auto; }
.nav { display: none; }
.header-tel {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  font-weight: 700; font-size: 16px; color: var(--c-clay); text-decoration: none;
  font-family: 'Manrope', sans-serif;
}
.header-tel svg { width: 18px; height: 18px; }
.header-tel .tel-text { display: none; }
.header .btn { display: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 86svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--c-fg);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(30, 26, 22, .94) 0%, rgba(30, 26, 22, .80) 34%, rgba(30, 26, 22, .30) 66%, rgba(30, 26, 22, .10) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 40px 0 44px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; letter-spacing: 0;
  color: var(--c-sand); margin-bottom: 12px;
}
/* H1 несёт и «смелую» строку, и поисковый интент с географией — это один заголовок */
.hero h1 { font-weight: 800; color: #FFFDF8; margin-bottom: 14px; }
.h1-lead { display: block; font-size: clamp(30px, 8.5vw, 62px); line-height: 1.08; }
.h1-intent {
  display: block; margin-top: 12px; max-width: 34ch;
  font-family: 'PT Sans', system-ui, sans-serif; font-weight: 400;
  font-size: clamp(16px, 4vw, 21px); line-height: 1.35; letter-spacing: 0;
  color: #EDE4D4;
}
.hero-sub { font-size: clamp(16px, 4.2vw, 20px); color: #EDE4D4; max-width: 46ch; margin-bottom: 22px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; }
.hero-note { margin-top: 14px; font-size: 14px; color: #DCD1BE; max-width: 52ch; }

/* ============ Секции ============ */
.sect { padding: var(--sect-y) 0; }
.sect-surface { background: var(--c-surface); }
.sect-dark { background: var(--c-fg); color: var(--c-on-dark); }
.sect-sand { background: linear-gradient(180deg, #F3EADA 0%, var(--c-bg) 100%); }

.head { max-width: none; margin-bottom: var(--space-lg); }
.head h2 { font-size: clamp(25px, 6.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; max-width: 28ch; text-wrap: balance; margin-bottom: 12px; }
.head p { color: var(--c-muted); font-size: 17px; max-width: 58ch; }
.sect-dark .head h2 { color: var(--c-on-dark); }
.sect-dark .head p { color: var(--c-on-dark-muted); }

.grid { display: grid; gap: 16px; }
.grid-obj { grid-template-columns: 1fr; }
.grid-4, .grid-svc { grid-template-columns: 1fr; }
.grid-thumbs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
/* Последний кадр серии («готово») не остаётся один в ряду: на телефоне занимает всю ширину, на планшете ряды 3 + 2 */
@media (max-width: 559px) {
  .grid-thumbs .step:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-thumbs .step:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
}
@media (min-width: 560px) and (max-width: 1023px) {
  .grid-thumbs { grid-template-columns: repeat(6, 1fr); }
  .grid-thumbs .step { grid-column: span 2; }
  .grid-thumbs .step:last-child:nth-child(3n+2),
  .grid-thumbs .step:nth-last-child(2):nth-child(3n+1) { grid-column: span 3; }
}

/* ---- Реальные объекты ---- */
.obj {
  position: relative; display: flex; margin: 0; border-radius: var(--r-md); overflow: hidden;
  background: var(--c-fg);
}
.obj img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.obj::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(30, 26, 22, .88) 0%, rgba(30, 26, 22, .35) 38%, transparent 62%);
}
.obj figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2;
  color: #FFFDF8; font-size: 14px; line-height: 1.35; font-weight: 700;
  font-family: 'Manrope', sans-serif;
}

/* ---- Проверяемые факты ---- */
.trust-item { border-top: 2px solid rgba(217, 198, 165, .35); padding-top: 14px; }
.trust-num { font-size: clamp(34px, 9vw, 48px); font-weight: 800; color: var(--c-sand); line-height: 1; }
.trust-label { margin-top: 8px; color: var(--c-on-dark-muted); font-size: 15px; }
.note-line { margin-top: var(--space-lg); font-size: 16px; color: var(--c-on-dark); font-weight: 700; }

/* ---- Что строим ---- */
.svc {
  display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  overflow: hidden; text-decoration: none; color: var(--c-fg);
  transition: border-color 200ms ease;
}
.svc:hover { border-color: var(--c-clay); }
.svc:hover .svc-arrow { text-decoration: underline; text-underline-offset: 3px; }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-body { padding: 14px 16px 18px; }
.svc h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 4px; }
.svc p { font-size: 14px; color: var(--c-muted); }
.svc-arrow { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--c-water); font-family: 'Manrope', sans-serif; }

/* ---- Цены ---- */
.price {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md);
  padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.price:first-child { background: var(--c-fg); border-color: var(--c-fg); color: var(--c-on-dark); }
.price:first-child .price-from, .price:first-child .price-unit { color: var(--c-on-dark-muted); }
.price:first-child .price-num { color: var(--c-sand); }
.price h3 { font-size: 17px; font-weight: 700; }
.price-val { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.price-from { font-size: 15px; color: var(--c-muted); }
.price-num { font-family: 'Manrope', sans-serif; font-size: clamp(26px, 6vw, 32px); font-weight: 800; color: var(--c-clay); }
.price-unit { font-size: 15px; color: var(--c-muted); font-weight: 700; }
.price-foot { margin-top: var(--space-md); max-width: 62ch; }
.price-foot p { color: var(--c-muted); font-size: 15px; margin-bottom: 8px; }
.price-foot .btn { margin-top: 12px; }

/* ---- Дом + двор ---- */
.feature-grid { display: grid; gap: 24px; }
.feature-grid img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-xl); }
.feature-text h2 { font-size: clamp(25px, 6.4vw, 36px); font-weight: 800; margin-bottom: 14px; }
.feature-text p { color: var(--c-muted); margin-bottom: 20px; }

/* ---- Кейсы ---- */
.case + .case { margin-top: var(--space-xl); }
.case h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.case > p { font-size: 15px; color: var(--c-muted); margin-bottom: 16px; }
.step figure, .step { margin: 0; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); box-shadow: var(--sh-sm); }
.step-cap { display: flex; gap: 8px; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--c-muted); }
.step-n {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-clay); color: #FFFDF8;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 12px;
  display: grid; place-items: center;
}

/* ---- Как проходит работа ---- */
.stepcard { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--c-border); }
.stepcard .num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--c-sand); color: #4A2F18;
  font-weight: 800; font-size: 15px; display: grid; place-items: center;
}
.stepcard h3 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.stepcard p { font-size: 15px; color: var(--c-muted); }

/* ---- Квиз ---- */
.quiz-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 20px; max-width: 700px;
}
.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.quiz-progress-text { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: var(--c-muted); }
.quiz-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--c-border); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; background: var(--c-primary); transition: width 250ms ease; }
.quiz-step { border: 0; margin: 0; padding: 0; }
.quiz-step legend { padding: 0; margin: 14px 0 4px; font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 800; }
.quiz-hint { font-size: 14px; color: var(--c-muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 48px; padding: 12px 18px;
  background: var(--c-bg); border: 2px solid var(--c-border); border-radius: var(--r-sm);
  font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; color: var(--c-fg);
  cursor: pointer; text-align: left;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.chip:hover { border-color: var(--c-sand); }
.chip[aria-pressed='true'] { border-color: var(--c-clay); background: #F6E9DD; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field input[type='text'], .field input[type='tel'] {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--c-surface); color: var(--c-fg);
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  font-family: 'PT Sans', sans-serif; font-size: 16px;
  transition: border-color 200ms ease;
}
.field input:focus { border-color: var(--c-water); }
.field input[aria-invalid='true'] { border-color: var(--c-error); }
.field-err { display: none; margin-top: 6px; font-size: 14px; color: var(--c-error); font-weight: 700; }
.field-err.on { display: block; }
.subq { margin-bottom: 18px; }
.subq > span { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 15px; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--c-clay); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quiz-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.quiz-msg { margin-top: 14px; font-size: 15px; font-weight: 700; }
.quiz-msg.err { color: var(--c-error); }
.quiz-nojs { margin-top: 16px; font-size: 15px; color: var(--c-muted); }

/* ---- Команда ---- */
.team-grid { grid-template-columns: repeat(2, 1fr); }
.team figure { margin: 0; }
.team img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.team figcaption { margin-top: 8px; font-size: 13px; color: var(--c-muted); line-height: 1.4; }

/* ---- География ---- */
.geo { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 20px; }
.geo h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.geo p { font-size: 15px; color: var(--c-muted); }
.geo-note { margin-top: var(--space-md); color: var(--c-muted); font-size: 15px; max-width: 62ch; }

/* ---- Контакты ---- */
.tel-big {
  display: inline-block; margin: 6px 0 10px;
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(28px, 8vw, 44px); letter-spacing: -.01em;
  color: var(--c-clay); text-decoration: none;
}
.tel-big:hover { text-decoration: underline; }
.contacts-note { color: var(--c-muted); font-size: 15px; max-width: 58ch; margin-top: 10px; }
.contacts-grid { display: grid; gap: 24px; }

/* ---- Финальный CTA ---- */
/* Фон — Глина, а не Терракота: на терракоте обычный текст даёт 3.5:1 (FACTS §4).
   Терракота остаётся верхней акцентной полосой. */
.final { background: var(--c-clay); border-top: 6px solid var(--c-primary); text-align: center; }
.final h2 { font-size: clamp(26px, 7vw, 40px); font-weight: 800; color: #FFFDF8; margin-bottom: 10px; }
.final p { color: #FBEFE4; margin-bottom: 22px; }
.final .btn { width: 100%; max-width: 340px; }

/* ---- Подвал ---- */
.footer { background: var(--c-fg); color: var(--c-on-dark-muted); padding: 36px 0 32px; font-size: 14px; }
.footer b { display: block; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; color: var(--c-on-dark); margin-bottom: 6px; }
.footer a { color: var(--c-sand); }
.footer-row { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links .footer-legal { font-size: 12px; align-self: center; }

/* ---- Мобильная нижняя панель ---- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(250, 246, 238, .98);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 14px rgba(46, 41, 36, .10);
  transform: translateY(110%);
  transition: transform 220ms ease;
}
.bar.show { transform: translateY(0); }
.bar .btn { flex: 1; min-height: 50px; padding: 12px 10px; font-size: 15px; }

/* ---- Страницы policy/thanks ---- */
.doc { padding: var(--sect-y) 0; }
.doc-body { max-width: 74ch; }
.doc-body h1 { font-size: clamp(26px, 6.4vw, 38px); font-weight: 800; margin-bottom: 16px; }
.doc-body h2 { font-size: 20px; font-weight: 800; margin: 28px 0 8px; }
.doc-body p, .doc-body li { color: var(--c-fg); margin-bottom: 10px; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 0 0 10px; }
/* display:inline (а не inline-block) — иначе точка после маркера
   переносится на отдельную строку. */
.todo {
  background: #FDF1D8; border: 1px dashed var(--c-clay);
  color: #6B3A16; border-radius: var(--r-sm); padding: 1px 7px; font-weight: 700; font-size: 15px;
}
.thanks-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 28px 22px; max-width: 620px;
}
.thanks-id {
  display: inline-block; margin: 4px 0 18px; padding: 8px 14px;
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--r-sm);
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .02em;
}
.thanks-label { font-size: 14px; color: var(--c-muted); font-weight: 700; }

/* ---- Перелинковка направлений ---- */
.svc-links { margin-top: 18px; font-size: 15px; color: var(--c-muted); line-height: 1.9; }
.svc-links a { font-weight: 700; }

/* ---- Частые вопросы ---- */
.faq { display: grid; }
.faq-item { border-top: 1px solid var(--c-border); padding: 18px 0; }
.faq-item h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.faq-item p { font-size: 16px; color: var(--c-muted); max-width: 68ch; }

/* ---- Хлебные крошки ---- */
.crumbs { font-size: 14px; color: var(--c-muted); margin-bottom: 16px; }
.crumbs a { font-weight: 700; }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* ---- Страница 404 ---- */
.err-code {
  font-family: 'Manrope', sans-serif; font-weight: 800; line-height: 1;
  font-size: clamp(56px, 16vw, 120px); color: var(--c-primary); margin-bottom: 10px;
}
.err-links { list-style: none; padding-left: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.err-links a { font-weight: 700; }

/* ---- Посадочная страница направления ---- */
.page-head { padding-bottom: 28px; }
.page-lead { font-size: 18px; color: var(--c-muted); max-width: 62ch; margin-bottom: 14px; }
.page-price { margin-bottom: 8px; }
.page-geo { font-size: 15px; color: var(--c-muted); margin-bottom: 20px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-sect { margin-bottom: 26px; }
.page-sect h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.page-sect p { max-width: 70ch; }

.footer-note { margin-top: 10px; }
.thanks-back { margin-top: 22px; }

/* ============ 560px ============ */
@media (min-width: 560px) {
  .grid-obj { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .grid-svc { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { flex: 0 1 auto; }
  .quiz-nav { flex-direction: row; }
  .quiz-nav .btn { flex: 1 1 auto; }
  .final .btn { width: auto; }
}

/* ============ 768px ============ */
@media (min-width: 768px) {
  :root { --pad-x: 32px; --sect-y: 76px; }
  body { font-size: 18px; padding-bottom: 0; }
  .bar { display: none !important; }
  .header-tel .tel-text { display: inline; }
  .quiz-card { padding: 28px 30px; }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-row { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .stepcard { padding: 20px 0; }
}

/* ============ 1024px ============ */
@media (min-width: 1024px) {
  :root { --pad-x: 40px; --sect-y: 88px; }
  .header { position: sticky; top: 0; z-index: 30; }
  .header-in { min-height: 76px; gap: 20px; }
  .nav { display: flex; gap: 22px; }
  .nav a { font-size: 15px; font-weight: 700; color: var(--c-fg); text-decoration: none; }
  .nav a:hover { color: var(--c-clay); }
  .header .btn { display: inline-flex; min-height: 44px; padding: 10px 20px; font-size: 15px; }
  .hero { min-height: 90vh; }
  .hero-content { padding: 60px 0 72px; }
  .grid { gap: 20px; }
  .grid-obj { grid-template-columns: repeat(3, 1fr); }
  .grid-obj .obj:first-child { grid-column: span 2; grid-row: span 2; }
  .grid-obj .obj:first-child img { aspect-ratio: auto; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-svc { grid-template-columns: repeat(6, 1fr); }
  .grid-svc .svc { grid-column: span 2; }
  .grid-svc .svc:nth-child(-n+2) { grid-column: span 3; }
  .grid-svc .svc:nth-child(-n+2) img { aspect-ratio: 16 / 10; }
  .grid-svc .svc:nth-child(-n+2) h3 { font-size: 22px; }
  .grid-thumbs { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .feature-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
  .process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .quiz-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
  .quiz-wrap .head { margin-bottom: 0; }
  .geo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .faq { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
  .contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
}

/* ============ 1440px ============ */
@media (min-width: 1440px) {
  :root { --pad-x: 48px; }
  .h1-lead { font-size: 64px; }
}

/* ============ Анимации (гасятся по prefers-reduced-motion) ============ */
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: kenburns 20s ease-out forwards; }
  .hero-content > * { animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-content > *:nth-child(2) { animation-delay: .06s; }
  .hero-content > *:nth-child(3) { animation-delay: .12s; }
  .hero-content > *:nth-child(4) { animation-delay: .18s; }
}
@keyframes kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bar { transition: none; }
}
