/* =============================================================================
   ГЛАВНАЯ: ЛЕНДИНГ ДЛЯ СОБСТВЕННИКОВ. Также правовые страницы, 404 и статьи.
   Система та же, что на /media/ (бумага, Literata, Inter, форма 8-20), но зелёный
   КОНТИС здесь работает в полную силу: это страница компании и её дела.
   ============================================================================= */
:root {
  --green: #113120;
  --green-deep: #0c2317;
  --green-tint: #f2f4ee;
  --cream-line: #f1ead9;
  --gap: clamp(52px, 7vw, 88px);
}
@media (max-width: 640px) {
  :root { --pad-x: 24px; --card-pad: 22px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-body)/var(--t-body-lh) var(--sans);
  letter-spacing: var(--t-body-ls); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: var(--t-h2-lh); }
h3 { font-size: var(--t-h4); line-height: 1.3; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.rent :focus-visible { outline-color: var(--cream-line); }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--measure); margin-inline: auto;
  padding-inline: max(var(--pad-x), env(safe-area-inset-left)) max(var(--pad-x), env(safe-area-inset-right));
}
.block { padding-block: 0 var(--gap); }
.block__lead { color: var(--ink-2); margin-top: 12px; max-width: 34em; }
.ember { color: var(--ember); }
.nb { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; border: 0; border-radius: var(--r-btn);
  font: 500 15px/1.2 var(--sans); letter-spacing: -0.01em; text-decoration: none;
  padding: 12px 18px; min-height: 44px; cursor: pointer; transition: background .18s ease;
}
.btn:hover { background: var(--green-deep); }
.btn--lg { font-size: 16px; padding: 15px 24px; min-height: 52px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--cream { background: var(--cream-line); color: var(--green-deep); }
.btn--cream:hover { background: #fff; }
.more {
  font-weight: 500; font-size: 15px; text-decoration: none; color: var(--green);
  display: inline-block; padding-block: 11px; border-bottom: 1px solid transparent;
}
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--paper); }
.top__in { display: flex; align-items: center; gap: var(--s-4); padding-block: 12px; }
.top__mark { font: 500 20px/1.2 var(--serif); letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.top__links { display: flex; gap: var(--s-4); }
.top__links a { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding-block: 10px; }
.top__links a:hover { color: var(--ink); }
.top__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; padding-block: 10px; }
.top__phone img { width: 18px; height: 18px; flex: none; }
.top__phone:hover { color: var(--green); }

/* ---------- первый экран: квиз сразу под заголовком ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 52px); padding-block: clamp(10px, 1.6vw, 22px) var(--gap);
}
.hero h1 { font-size: clamp(32px, 2.2vw + 22px, 50px); line-height: 1.08; }
.hero__photo { margin: 0; position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-warm); }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.hero__photo figcaption {
  position: absolute; inset: auto 0 0; padding: 48px 20px 16px; color: #fff; font: 500 19px/1.25 var(--serif);
  background: linear-gradient(180deg, rgba(8, 14, 10, 0) 0%, rgba(8, 14, 10, .72) 100%);
}
.hero__photo figcaption span { font: 400 14px/1.4 var(--sans); opacity: .9; letter-spacing: -0.01em; }

/* ---------- квиз ---------- */
.quiz {
  margin-top: var(--s-4); background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; min-height: 272px;
}
.quiz__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.quiz__count { font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.quiz__bar { flex: 1; height: 4px; border-radius: var(--r-pill); background: var(--paper-warm); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; background: var(--green); border-radius: var(--r-pill); transition: width .25s ease; }
.quiz__q { font: 500 clamp(21px, .8vw + 16px, 26px)/1.25 var(--serif); letter-spacing: -0.02em; margin-bottom: 14px; outline: none; overflow-wrap: anywhere; }
.quiz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  min-height: 58px; padding: 12px 16px; background: var(--card); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 12px; font: 500 16px/1.25 var(--sans); letter-spacing: -0.01em;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.opt::after { content: "→"; color: var(--ink-3); flex: none; transition: color .15s ease, transform .15s ease; }
.opt:hover { border-color: var(--green); background: var(--green-tint); }
.opt:hover::after { color: var(--green); transform: translateX(2px); }
.opt[aria-pressed="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }

.quiz__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 16px/1.3 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid var(--ink-3); border-radius: var(--r-input);
}
.field input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field__error { display: block; font-size: 13px; line-height: 1.35; color: #b3261e; margin-top: 4px; min-height: 0; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--green); }
.consent__note { font-size: 13px; line-height: 1.4; color: var(--ink-2); margin: 6px 0 0 30px; }
.quiz__send { width: 100%; margin-top: 14px; }
.quiz__send:disabled { opacity: .65; cursor: progress; }
.quiz__result p:not(.quiz__q) { color: var(--ink-2); max-width: 36em; }
.quiz__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quiz__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.quiz.is-finished .quiz__note { display: none; }
.quiz__note { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; color: var(--ink-2); text-wrap: balance; }
.quiz__note img { width: 36px; height: 36px; border-radius: var(--r-pill); flex: none; }
.quiz__back { background: none; border: 0; padding: 10px 0 10px 10px; font: 500 14px var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.quiz__back:hover { color: var(--ink); }
.quiz__noscript { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* ---------- типы объектов ---------- */
#obekty h2 { margin-bottom: 0; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-5); }
.type { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--card-pad); display: flex; flex-direction: column; gap: 10px; }
.type img { border-radius: var(--r-media); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 6px; }
.type p { font-size: 16px; color: var(--ink-2); }
.type .more { margin-top: auto; }

/* ---------- сдача: единственный большой зелёный блок ---------- */
.rent {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-6); align-items: center;
  background: var(--green); color: var(--cream-line); border-radius: var(--r-card); padding: clamp(26px, 4vw, 52px);
  background-image: radial-gradient(90% 130% at 80% 50%, #1b4630 0%, rgba(27, 70, 48, 0) 70%);
}
.rent h2 { font-size: clamp(26px, 2vw + 18px, 40px); color: #fff; }
.rent p { margin-top: 12px; max-width: 34em; opacity: .9; }
.rent .btn { margin-top: var(--s-4); }
.rent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); }
.rent__more { margin-top: var(--s-4); padding-block: 12px; color: #fff; font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.rent__more:hover { border-bottom-color: #fff; }

/* ---------- страницы услуг ---------- */
.hero__lead { margin-top: 14px; font-size: clamp(17px, .4vw + 15px, 19px); color: var(--ink-2); max-width: 34em; }
.hero .crumbs { margin-bottom: 12px; }
/* Шаги работы: этапы в ряд, соединённые линией (на планшете по три, на телефоне столбиком) */
.svc-steps {
  list-style: none; counter-reset: svc; margin: var(--s-5) 0 0; padding: clamp(26px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px;
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow);
}
.svc-steps li { counter-increment: svc; position: relative; padding-right: 14px; }
.svc-steps li::before {
  content: counter(svc); position: relative; z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font: 500 18px/1 var(--serif);
}
.svc-steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 52px; right: 8px; height: 1px; background: var(--rule); }
.svc-steps h3 { margin-top: 16px; font-size: clamp(17px, .45vw + 14px, 20px); line-height: 1.25; }
/* Что проверяю в документах: заголовок слева, список с галочками справа */
.svc-check {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-6); align-items: start;
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: clamp(24px, 3.4vw, 44px);
}
.svc-check h2 { font-size: clamp(26px, 1.2vw + 19px, 36px); line-height: 1.15; }
.svc-check ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.svc-check li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.45; }
.svc-check li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green);
}
.svc-check li::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.svc-more { margin-top: var(--s-5); font-size: 16px; color: var(--ink-2); }
.svc-more a { color: var(--green); font-weight: 500; }
.rent__logo { width: min(100%, 340px); justify-self: end; opacity: .95; }

/* ---------- кто ведёт ---------- */
.who { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.who__photo { border-radius: var(--r-card); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.who h2 { font-size: clamp(24px, 1vw + 18px, 32px); line-height: 1.25; }
.who__years { display: block; font-size: clamp(44px, 3vw + 24px, 68px); line-height: 1.05; letter-spacing: -0.03em; color: var(--green); margin-bottom: 12px; }
.who .block__lead { margin-top: 16px; }
.who .btn { margin-top: var(--s-4); }
/* Блок с кадром из ролика на странице «Коммерция»: широкая картинка вместо портрета */
.who--video { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.who--video .who__photo { aspect-ratio: 16 / 10; }

/* ---------- вопросы: отдельные карточки на своей полосе, как на prodvigator24.ru ---------- */
.faq { background: var(--paper-warm); border-top: var(--hairline); padding-block: var(--gap); margin-bottom: var(--gap); }
.faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin-top: var(--s-5); }
.faq__item { background: var(--card); border: var(--hairline); border-radius: var(--r-card); transition: border-color .18s ease; }
.faq__item[open] { border-color: var(--ink-3); }
@media (hover: hover) { .faq__item:hover { border-color: var(--ink-3); } }
.faq__item summary {
  display: block; position: relative; cursor: pointer; list-style: none;
  padding: 16px 48px 16px 20px; border-radius: calc(var(--r-card) - 1px); font-weight: 500; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: -2px; }
/* Галочка не зависит от flex: на summary его поддержка в старых Safari ненадёжна */
.faq__item summary::after {
  content: ""; position: absolute; top: 50%; right: 22px; width: 9px; height: 9px; margin-top: -5px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq__item > div { border-top: var(--hairline); padding: 15px 20px 20px; font-size: 16px; color: var(--ink-2); }
.faq__item p { max-width: 42em; }

/* ---------- контакты и подвал ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: clamp(24px, 3.4vw, 44px); }
.contact .btn { margin-top: var(--s-4); }
/* Контакты: телефон крупно, мессенджеры и площадки кнопками с иконками */
.contact__phone {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding-block: 4px;
  font: 500 clamp(22px, 1vw + 17px, 28px)/1.2 var(--serif); letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
}
.contact__phone img { width: 24px; height: 24px; flex: none; }
.contact__phone:hover { color: var(--green); }
.contact__sub { margin-top: var(--s-4); font-size: 14px; color: var(--ink-2); }
.cbtns { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cbtn {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px;
  border: var(--hairline); border-radius: 14px; background: var(--card); text-decoration: none;
  font-weight: 500; line-height: 1.25; transition: border-color .18s ease, box-shadow .18s ease;
}
.cbtn img { width: 28px; height: 28px; flex: none; }
.cbtn span { min-width: 0; }
.cbtn small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-2); }
@media (hover: hover) { .cbtn:hover { border-color: var(--ink-3); box-shadow: var(--shadow); } }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--s-5); padding-block: 0 var(--s-6); font-size: 14px; color: var(--ink-2); }
.foot img { width: 128px; margin-right: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); }
.foot a { text-decoration: none; padding-block: 6px; display: inline-block; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot p { width: 100%; font-size: 13px; color: var(--ink-2); }

/* ---------- кнопка на телефоне и cookie ---------- */
.stick {
  position: fixed; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  background: var(--green); color: #fff; font: 500 16px var(--sans); text-decoration: none;
  border-radius: var(--r-btn); box-shadow: 0 6px 24px rgba(12, 35, 23, .28);
}
.cookie {
  position: fixed; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  max-width: 640px; margin-inline: auto; display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: var(--r-input); box-shadow: var(--shadow); padding: 12px 14px; font-size: 14px; line-height: 1.4;
}
.cookie__btns { display: flex; gap: 8px; flex: none; }
.cookie button { flex: 1; min-height: 40px; padding: 8px 14px; border: 0; border-radius: var(--r-btn); background: var(--green); color: #fff; font: 500 14px var(--sans); cursor: pointer; }

/* ---------- документы, статьи, 404 ---------- */
.doc {
  max-width: 760px; margin-inline: auto;
  padding: var(--s-4) max(var(--pad-x), env(safe-area-inset-right)) var(--gap) max(var(--pad-x), env(safe-area-inset-left));
}
.doc h1 { font-size: var(--t-h2); line-height: 1.15; margin-bottom: var(--s-4); }
.doc h2 { font-size: var(--t-h3); line-height: 1.25; margin: var(--s-6) 0 var(--s-2); }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc .fill { background: #fff3cd; padding: 0 4px; border-radius: 4px; }
.doc .meta { color: var(--ink-2); font-size: 14px; margin-bottom: var(--s-4); }
.doc figure { margin: var(--s-5) 0; }
.doc figure img { border-radius: var(--r-media); width: 100%; }
.doc figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.doc h3 { font-size: var(--t-h4); line-height: 1.3; margin: var(--s-5) 0 var(--s-2); }
.doc .toc { background: var(--paper-warm); border-radius: var(--r-card); padding: 16px 20px 6px; margin: var(--s-4) 0; }
.doc .toc p { font-weight: 500; margin-bottom: 8px; }
.doc .toc ol { padding-left: 20px; }
.doc .table-wrap { overflow-x: auto; margin: 0 0 14px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; line-height: 1.4; }
.doc th, .doc td { border: var(--hairline); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper-warm); font-weight: 500; }
.doc td:first-child { font-weight: 500; }
.doc .faq__list { margin-top: var(--s-3); }
.doc .faq__item p { margin: 0; }
/* На телефоне таблица-сравнение превращается в карточки: третья колонка не прячется за прокруткой. */
@media (max-width: 640px) {
  .doc .table-wrap--cards { overflow: visible; }
  .doc .table-wrap--cards table { min-width: 0; }
  .doc .table-wrap--cards thead { display: none; }
  .doc .table-wrap--cards tr { display: block; border: var(--hairline); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--card); }
  .doc .table-wrap--cards td { display: block; border: 0; padding: 0; }
  .doc .table-wrap--cards td + td { margin-top: 8px; }
  .doc .table-wrap--cards td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; color: var(--ink-2); }
}
.doc__cta { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: var(--card-pad); margin-top: var(--s-6); }
.doc__cta h2 { margin-top: 0; }
.doc__list { list-style: none; padding: 0; }
.doc__list li { border-top: var(--hairline); padding-block: 14px; margin: 0; }
.doc__list a { font: 500 var(--t-h4)/1.3 var(--serif); letter-spacing: -0.02em; text-decoration: none; }
.doc__list a:hover { color: var(--green); }
.doc__list p { color: var(--ink-2); margin: 6px 0 0; font-size: 16px; }
.doc__aside { color: var(--ink-2); font-size: 15px; margin-top: var(--s-5); }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: var(--s-3); }
.crumbs a { color: var(--ink-2); }

/* ---------- адаптив ---------- */
@media (max-width: 940px) {
  .top__links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__photo { display: none; }
  .who { grid-template-columns: 200px 1fr; align-items: start; }
  .who--video { grid-template-columns: 1fr; gap: var(--s-4); }
  .contact { grid-template-columns: 1fr; gap: var(--s-5); }
  .rent { grid-template-columns: 1fr; gap: var(--s-4); }
  .rent__logo { display: none; }
  .svc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-check { grid-template-columns: 1fr; gap: var(--s-4); }
  .svc-steps li:nth-child(3n)::after { display: none; }
}
@media (min-width: 941px) { .stick { display: none !important; } }

@media (max-width: 640px) {
  .top__in { padding-block: 10px; gap: 10px; }
  .top__phone { flex: none; width: 40px; height: 40px; justify-content: center; padding: 0; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1px var(--ink); }
  .top__phone span { display: none; }
  .svc-steps { grid-template-columns: 1fr; row-gap: 0; padding: 22px; }
  .svc-steps li { display: flex; align-items: center; gap: 14px; padding: 0 0 18px; }
  .svc-steps li:last-child { padding-bottom: 0; }
  .svc-steps li::before { flex: none; width: 40px; height: 40px; font-size: 17px; }
  .svc-steps li:nth-child(3n)::after, .svc-steps li:not(:last-child)::after { display: block; top: 40px; bottom: 0; left: 20px; right: auto; width: 1px; height: auto; }
  .svc-steps h3 { margin-top: 0; }
  .cbtns { grid-template-columns: 1fr; gap: 8px; }
  .cbtn { min-height: 56px; }
  .top__mark { font-size: 18px; }
  .btn--ghost { min-height: 40px; padding: 8px 14px; }
  .quiz { margin-top: var(--s-3); min-height: 0; padding: 18px; }
  .quiz__opts { grid-template-columns: 1fr; gap: 8px; }
  .opt { min-height: 52px; }
  .quiz__fields { grid-template-columns: 1fr; }

  /* типы объектов едут вбок внутри себя, следующая карточка выглядывает */
  .rail {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad-x);
    margin-inline: calc(var(--pad-x) * -1); padding: 2px var(--pad-x) 20px; margin-bottom: -20px;
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }

  .rent { padding: 24px 22px; }
  .rent .btn { width: 100%; }

  /* аватар и «Более 16 лет» в один ряд, остальной текст на всю ширину. 158 = поля + аватар + отступ */
  .who { display: block; }
  .who--video .who__photo { margin-bottom: var(--s-4); }
  .who__pic { display: block; float: left; width: 96px; margin-right: 14px; }
  .who__photo { aspect-ratio: 1; border-radius: var(--r-media); }
  .who h2 { font-size: clamp(19px, 6vw, 23px); line-height: 1.28; }
  .who__years { display: flex; align-items: center; min-height: 96px; font-size: clamp(26px, calc((100vw - 158px) / 6.2), 40px); }
  .who .block__lead { clear: both; padding-top: 14px; margin-top: 0; font-size: 16px; line-height: 1.45; }
  .who .btn { width: 100%; min-height: 52px; padding: 15px 24px; }

  .faq__item summary { padding: 14px 46px 14px 18px; font-size: 16px; }
  .faq__item > div { padding: 14px 18px 18px; font-size: 15px; }
  .contact .btn { width: 100%; }
  .foot img { width: 110px; margin-right: 0; }
  .foot { padding-bottom: 88px; }
  .cookie { flex-direction: column; align-items: stretch; }
}
@media (max-width: 380px) {
  /* длинная заметка не помещается рядом с «Назад»: кнопка уходит на свою строку */
  .quiz__foot { flex-wrap: wrap; row-gap: 0; }
  .quiz__note { flex: 1 1 100%; }
  .quiz__back { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Режим высокой контрастности Windows убирает тени: рамки у кнопок с иконками остаются видны */
@media (forced-colors: active) {
  .top__phone, .cbtn { border: 1px solid ButtonText; }
}
