/* ФЦБ Щёлково — стили сайта.
   Mobile-first: базовые правила для телефона, ниже — 768 px (планшет) и 1100 px (компьютер).
   Цвета и размеры — переменные в :root, взяты из макета в стиле сети ФЦБ. */

/* Шрифт Manrope подключается в base.html, только когда файлы лежат в static/fonts (см. README). */

/* ── Переменные ──────────────────────────────────────────────────────────── */
:root {
  --green: #61AC53;
  --green-btn: #3A8434;
  --green-deep: #2C6B28;
  --lime: #99C455;
  --tint: #EFF4E1;
  --tint-2: #EAF4DA;
  --green-muted: #A8D0A0;
  --ring: #CFE4C3;
  --yellow: #F5BF5A;
  --ink: #221F20;
  --muted: #5E6166;
  --bg: #F3F4F6;
  --white: #FFFFFF;
  --line: #E3E5E8;
  --field: #D7DADF;
  --field-strong: #7E8288;   /* рамка полей ввода: не меньше 3:1 к белому и серому фону */
  --placeholder: #6B6E74;    /* подсказка в поле: 5:1 к белому */
  --red: #CF3C33;            /* рамка поля с ошибкой */
  --red-text: #B42F27;       /* текст ошибки: 6:1 к белому, 5,6:1 к серому */

  --radius-xl: 24px;
  --radius-l: 18px;
  --radius-m: 14px;
  --gutter: 8px;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sphere: radial-gradient(circle at 32% 28%, #F4FBEA 0%, #A8D0A0 22%, #61AC53 56%, #2C6B28 100%);
  --sphere-light: radial-gradient(circle at 32% 28%, #FFFFFF 0%, #CFE4C3 30%, #8FC285 70%, #61AC53 100%);
  --sphere-deep: radial-gradient(circle at 32% 28%, #D8F0C8 0%, #61AC53 48%, #2C6B28 100%);
  --gold: radial-gradient(circle at 35% 30%, #FFF0C4 0%, #F5BF5A 45%, #D9972F 100%);
}
@media (min-width: 768px) {
  :root { --radius-xl: 32px; --radius-l: 20px; --gutter: 16px; }
}

/* ── Основа ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-btn); }
a:hover { color: var(--green-deep); }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green-btn); outline-offset: 3px; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h2 { font-size: 28px; }
h3 { font-size: 17px; }
.lead-text { color: var(--muted); }
.small-warning { font-size: 14px; line-height: 1.55; color: var(--ink); background: #FFF4DC; border: 1px solid #E6C56D; border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.form-note { font-size: 13px; color: var(--muted); }

@media (min-width: 768px) {
  h2 { font-size: 40px; }
  h3 { font-size: 20px; }
  .lead-text { font-size: 18px; }
  .small-warning { font-size: 15px; padding: 14px 18px; }
}
@media (min-width: 1100px) {
  h2 { font-size: 46px; line-height: 1.1; }
  .lead-text { font-size: 19px; }
}

/* ── Каркас страницы ─────────────────────────────────────────────────────── */
.site-header, .page, .footer-inner {
  max-width: 1392px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.page { display: flex; flex-direction: column; gap: var(--gutter); overflow-x: clip; }
.panel { background: var(--white); border-radius: var(--radius-xl); padding: 24px 18px; }
.panel--tint { background: var(--tint); }
.section { padding: 32px 10px 16px; }
@media (min-width: 768px) {
  .panel { padding: 48px 40px; }
  .section { padding: 72px 24px 48px; }
}
@media (min-width: 1100px) {
  .panel { padding: 64px; }
  .section { padding: 88px 48px 64px; }
}

/* Заголовок секции со словом-подложкой (как на сайте сети, только на компьютере) */
.section-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.section-head--stack { flex-direction: column; align-items: flex-start; }
.section-head h2, .section-head p { position: relative; }
.section-note { color: var(--muted); font-size: 15px; }
.watermark { display: none; }
@media (min-width: 768px) {
  .section-head { margin-bottom: 32px; }
  .section-note { font-size: 18px; }
}
@media (min-width: 1100px) {
  .watermark {
    display: block; position: absolute; left: -10px; top: -58px;
    font-size: 132px; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
    color: #E9EBEE; text-transform: uppercase; white-space: nowrap; pointer-events: none;
  }
  .section-head--wm h2, .section-head--wm.section-head--stack p { padding-left: 96px; }
}

/* ── Кнопки ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: var(--radius-m);
  font-size: 17px; font-weight: 800; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .75; cursor: progress; }
.btn--primary { background: var(--green-btn); color: #fff; }
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #EFB247; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #F7F8F9; color: var(--ink); }
.btn--soft { background: var(--bg); color: var(--ink); font-weight: 700; }
.btn--soft:hover { background: #E8EAED; color: var(--ink); }
.btn--outline { background: #fff; border: 1.5px solid var(--green-btn); color: var(--green-deep); }
.btn--outline:hover { background: var(--tint-2); color: var(--green-deep); }
.btn--block { width: 100%; }
@media (max-width: 767px) {
  .btn { padding: 0 18px; font-size: 16px; }
}
.btn--lg { min-height: 58px; font-size: 18px; }
.btn--stack { flex-direction: column; gap: 0; min-height: 52px; padding: 6px 22px; }
.btn--stack span { font-size: 15px; }
.btn--stack small { font-size: 13px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Поля форм ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; }
.field input {
  width: 100%; height: 54px; padding: 0 16px;
  background: #fff; border: 1px solid var(--field-strong); border-radius: var(--radius-m);
  font-size: 17px; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
/* Фокус: рамка 2 px (1 px + тень) и мягкий ореол */
.field input:focus { outline: none; border-color: var(--green-btn); box-shadow: 0 0 0 1px var(--green-btn), 0 0 0 5px rgba(58, 132, 52, .22); }
.field input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--red), 0 0 0 5px rgba(207, 60, 51, .18); }
.field-error { color: var(--red-text); font-size: 13px; font-weight: 600; line-height: 1.4; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--green-btn); }
/* Ссылка на Политику — отдельной строкой под галочкой (не часть согласия), зона нажатия 44 px */
.consent-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.consent-doc { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 -6px 30px; font-size: 13px; font-weight: 600; line-height: 1.3; }
@media (min-width: 768px) and (hover: hover) and (pointer: fine) { .consent-doc { min-height: 30px; margin-bottom: 0; } } /* с мышью строка плотнее */
.lead-form a { color: var(--green-deep); }
.form-alert a { color: inherit; font-weight: 800; white-space: nowrap; }
.form-alert { background: #FBECEB; color: #8E2A24; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.form-alert ul { margin-top: 4px; padding-left: 18px; list-style: disc; font-weight: 500; }
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0; outline: none; }
.success-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--sphere-deep); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 22px -10px rgba(44, 107, 40, .6); }
.success-badge .icon { stroke-width: 3; }
.success-title { font-size: 22px; font-weight: 800; }

/* Радио-кнопки в виде плашек */
.chip, .option, .seg label { position: relative; }
.chip input, .option input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span, .option span, .seg span { cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip input:focus-visible + span, .option input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--green-btn); outline-offset: 2px; }

/* ── Шапка ───────────────────────────────────────────────────────────────── */
.site-header { display: flex; gap: 12px; align-items: stretch; padding-top: 8px; padding-bottom: 8px; }
.pill { background: #fff; border-radius: 18px; padding: 8px; display: flex; align-items: center; gap: 8px; }
.pill--main { flex: 1 1 auto; min-width: 0; }
.pill--contacts, .pill--cta { display: none; }
.logo { display: flex; align-items: center; justify-content: center; height: 44px; min-width: 92px; flex: 0 0 auto; text-decoration: none; }
.logo img { height: 100%; width: auto; display: block; }
.footer-logo { align-self: flex-start; width: auto; height: 56px; }
.logo-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 44px; padding: 0 10px; border: 1.5px dashed #9BCA92; border-radius: 12px;
  color: var(--green-deep); font-size: 11px; font-weight: 700; line-height: 1.15;
}
.logo-placeholder--dark { height: 60px; width: 180px; border-color: var(--lime); color: var(--lime); font-size: 13px; }
.place { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.place-city { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 800; }
.place-city .icon { color: var(--green-btn); }
.place-time { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 12px;
  background: var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn--tint { background: var(--tint-2); color: var(--green-deep); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--tint-2); color: var(--green-deep); display: flex; align-items: center; justify-content: center; }
.round-btn:hover { background: var(--ring); color: var(--green-deep); }
.messengers { display: flex; gap: 6px; }
.header-phone {
  display: flex; flex-direction: column; justify-content: center; min-height: 44px;
  font-size: 20px; font-weight: 800; line-height: 1.15; color: var(--green-btn); text-decoration: none; white-space: nowrap;
}
.header-phone small { font-size: 12px; font-weight: 600; color: var(--muted); }

/* Узкие телефоны (360 px): график должен помещаться целиком */
@media (max-width: 389px) {
  .pill--main { gap: 6px; }
  .place--mobile .place-time { font-size: 11.5px; }
}

.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--tint-2); color: var(--green-deep); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 260px;
  background: #fff; border-radius: 18px; padding: 8px; display: flex; flex-direction: column;
  box-shadow: 0 24px 48px -16px rgba(34, 31, 32, .3);
}
.menu-panel a { padding: 12px 14px; border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.menu-panel a:hover { background: var(--bg); }

@media (min-width: 768px) {
  .site-header { padding-top: 16px; padding-bottom: 12px; }
  .pill { border-radius: 20px; padding: 10px; }
  .pill--main { flex: 0 0 auto; }
  .pill--main .place--mobile, .call-mobile { display: none; }
  .menu-panel { left: 0; right: auto; }
  .logo { min-width: 132px; height: 48px; }
  .logo-placeholder { height: 48px; padding: 0 16px; font-size: 12px; }
  .pill--contacts { display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 18px; flex: 1 1 auto; min-width: 0; justify-content: space-between; }
  .pill--contacts .place { flex: 0 1 auto; }
  /* Кнопка «Подходит ли вам банкротство?» видна с планшета, подпись рядом — с 1280 px */
  .pill--cta { display: flex; flex: 0 0 auto; gap: 10px; }
  .pill-note { display: none; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  /* На планшете в шапке тесно: город, график и мессенджеры есть в контактах и подвале */
  .pill--contacts .place, .pill--contacts .messengers { display: none; }
  .pill--contacts { padding-left: 16px; }
  .btn--stack { padding: 6px 16px; }
  .btn--stack span { font-size: 14px; }
  .btn--stack small { font-size: 12px; }
}
@media (min-width: 1100px) {
  .pill--contacts .place, .header-phone { flex: 0 0 auto; }
}
/* Подпись у кнопки — с 1360 px: при трёх мессенджерах в шапке на 1280 ей не хватает места */
@media (min-width: 1360px) {
  .pill--contacts { flex: 0 0 auto; }
  /* Подпись сжимается в две строки, если не хватает места; город, график и номер — нет */
  .pill--cta { margin-left: auto; flex: 0 1 auto; min-width: 0; }
  .pill--cta .btn { flex: 0 0 auto; }
  .pill-note { flex: 0 1 auto; min-width: 0; background: var(--bg); border-radius: 14px; padding: 6px 18px; min-height: 52px; display: flex; align-items: center; font-size: 15px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
}

/* ── Первый экран ────────────────────────────────────────────────────────── */
/* overflow: clip не создаёт прокрутку внутри блока (hidden — для старых Safari) */
.hero { display: grid; grid-template-areas: "head" "visual" "body"; gap: 16px; overflow: hidden; overflow: clip; }
.hero-head { grid-area: head; display: flex; flex-direction: column; gap: 16px; }
.hero-body { grid-area: body; display: flex; flex-direction: column; gap: 16px; }
.chip-note { align-self: flex-start; background: var(--bg); border-radius: 10px; padding: 6px 10px; font-size: 12px; line-height: 1.4; color: var(--muted); max-width: 26em; }
.hero-title { font-size: 34px; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; }
.hero-intro { font-size: 17px; font-weight: 700; line-height: 1.4; }
.checks { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.check-badge { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; border-radius: 50%; background: var(--tint-2); color: var(--green-btn); display: flex; align-items: center; justify-content: center; }
.check-badge .icon { stroke-width: 2.8; }
.lead-form--short { background: var(--bg); border-radius: 20px; padding: 16px; }
.lead-form--short .form-body { display: flex; flex-direction: column; gap: 12px; }
.short-row { display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 768px) {
  .hero-title { font-size: 48px; }
  .hero-intro { font-size: 19px; }
  .checks li { font-size: 17px; }
  .lead-form--short { border-radius: 24px; padding: 20px; }
  .short-row { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .short-row .field { flex: 1 1 220px; }
  .short-row .field + .field { flex-grow: 1.15; } /* номер длиннее имени */
  .short-submit { align-self: flex-start; }
}
@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    grid-template-areas: "head visual" "body visual";
    grid-template-rows: auto 1fr;
    column-gap: 48px; row-gap: 24px; padding: 56px 64px;
  }
  .hero-head { gap: 24px; }
  .chip-note { font-size: 14px; padding: 8px 14px; border-radius: 12px; }
  .hero-title { font-size: 62px; line-height: 1.02; }
  .hero-intro { font-size: 21px; }
  .checks li { font-size: 18px; }
  .check-badge { width: 24px; height: 24px; }
  .hero-visual { align-self: center; }
}

/* Объёмная иллюстрация: портрет, орбиты, шары, монета */
.hero-visual {
  grid-area: visual; position: relative; margin: 0; perspective: 900px;
  --hv-h: 320px; --cy: 160px; --oa: 310px; --ob: 260px; --pt: 220px;
  height: var(--hv-h);
}
@media (min-width: 768px) {
  .hero-visual { --hv-h: 440px; --cy: 220px; --oa: 440px; --ob: 370px; --pt: 300px; }
}
@media (min-width: 1100px) {
  .hero-visual { --hv-h: 580px; --cy: 290px; --oa: 580px; --ob: 480px; --pt: 380px; perspective: 1100px; }
}
.hero-shadow {
  position: absolute; left: 50%; top: calc(var(--cy) + var(--pt) / 2 + 10px);
  width: calc(var(--pt) * .9); height: 44px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(44, 107, 40, .24), rgba(44, 107, 40, 0));
}
.orbit {
  position: absolute; left: 50%; top: var(--cy);
  width: var(--oa); height: var(--oa); margin: calc(var(--oa) / -2) 0 0 calc(var(--oa) / -2);
  transform: rotateX(70deg) rotateZ(-16deg); pointer-events: none;
}
.orbit--b { width: var(--ob); height: var(--ob); margin: calc(var(--ob) / -2) 0 0 calc(var(--ob) / -2); transform: rotateX(76deg) rotateZ(34deg); }
.orbit--front { clip-path: inset(50% 0 0 0); z-index: 2; }
.orbit-ring { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--ring); border-top-color: var(--green); border-right-color: var(--green); }
.orbit--b .orbit-ring { border: 1.5px solid #E3EEDC; border-bottom-color: var(--green-muted); border-left-color: var(--green-muted); }
.orbit-dot { position: absolute; left: 50%; top: -9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--green-btn); }
.orbit--b .orbit-dot { top: auto; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: var(--green); }
.portrait {
  position: absolute; left: 50%; top: var(--cy); z-index: 1;
  width: var(--pt); height: var(--pt); margin: calc(var(--pt) / -2) 0 0 calc(var(--pt) / -2);
  border-radius: 50%; overflow: hidden; background: #2A2C31;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7.5px var(--ring), 0 34px 56px -28px rgba(34, 31, 32, .55);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.portrait-gloss { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 28% 16%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 46%); }
.sphere { position: absolute; z-index: 3; border-radius: 50%; background: var(--sphere); box-shadow: 0 14px 22px -10px rgba(44, 107, 40, .55); pointer-events: none; }
.sphere--light { background: var(--sphere-light); box-shadow: none; }
.sphere--1 { left: 0; top: 20%; width: 38px; height: 38px; }
.sphere--2 { right: 8px; top: 67%; width: 22px; height: 22px; }
.sphere--3 { left: 13%; top: 80%; width: 12px; height: 12px; }
.sphere--4 { right: 26%; top: 5%; width: 12px; height: 12px; }
.coin-wrap { position: absolute; right: -4px; top: 4px; z-index: 4; perspective: 600px; display: block; border-radius: 50%; color: var(--ink); text-decoration: none; }
.coin-wrap:hover { color: var(--ink); }
.coin-wrap:focus-visible { outline-offset: 6px; }
.coin {
  width: 92px; height: 92px; border-radius: 50%; color: var(--ink); line-height: 1.1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #FFE9B5 0%, #F5BF5A 46%, #E2A23F 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35), inset 0 -6px 10px rgba(160, 100, 20, .22), 0 6px 0 #C98E2A, 0 16px 26px -10px rgba(150, 95, 20, .6);
}
.coin strong { font-size: 23px; font-weight: 800; }
.coin > span { font-size: 10px; font-weight: 800; }
.coin small { margin-top: 3px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .6); font-size: 9.5px; font-weight: 800; }
/* Звёздочка сноски у цифры акции (монета и заголовки акций) */
.promo-mark { font-size: .5em; line-height: 1; vertical-align: top; margin-left: .04em; }
.person {
  position: absolute; left: 0; bottom: 6px; z-index: 4; display: flex; gap: 10px; align-items: center;
  background: #fff; border-radius: 14px; padding: 8px 12px; line-height: 1.3;
  box-shadow: 0 14px 28px -12px rgba(34, 31, 32, .3);
}
.person-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.person b { display: block; font-size: 14px; font-weight: 800; }
.person small { display: block; font-size: 12px; color: var(--muted); }
@media (min-width: 1100px) {
  .sphere--1 { left: 4px; top: 118px; width: 58px; height: 58px; }
  .sphere--2 { right: 18px; top: 392px; width: 32px; height: 32px; }
  .sphere--3 { left: 76px; top: 470px; width: 18px; height: 18px; }
  .sphere--4 { right: 120px; top: 60px; width: 14px; height: 14px; }
  .coin-wrap { right: -6px; top: 30px; perspective: 700px; }
  .coin { width: 136px; height: 136px; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .35), inset 0 -8px 14px rgba(160, 100, 20, .22), 0 8px 0 #C98E2A, 0 24px 36px -14px rgba(150, 95, 20, .6); }
  .coin strong { font-size: 34px; }
  .coin > span { font-size: 13px; }
  .coin small { margin-top: 5px; padding: 2px 10px; font-size: 12px; }
  .person { bottom: 34px; border-radius: 18px; padding: 14px 18px; gap: 12px; }
  .person b { font-size: 16px; }
  .person small { font-size: 14px; }
}

/* ── Цифры сети ──────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding: 20px 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 28px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-value.is-accent { color: var(--green-btn); }
.stat-label { font-size: 13px; line-height: 1.4; color: var(--muted); }
.stats-note { grid-column: 1 / -1; font-size: 12px; line-height: 1.4; color: var(--muted); }
@media (min-width: 768px) {
  .stats { padding: 28px 40px; gap: 24px 32px; }
  .stat-value { font-size: 38px; }
}
@media (min-width: 1100px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; padding: 32px 48px; border-radius: 24px; }
  .stat + .stat { border-left: 1px solid var(--line); padding-left: 40px; }
  .stat-value { font-size: 44px; line-height: 1; }
  .stat-label { font-size: 15px; }
  .stats-note { font-size: 13px; margin-top: -8px; }
}

/* ── Объёмные плитки иконок и карточки ───────────────────────────────────── */
.tile {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; color: var(--green-btn);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #F4FAEC 0%, #DCEFC9 100%);
  box-shadow: inset 0 -3px 0 rgba(58, 132, 52, .16), inset 0 2px 0 rgba(255, 255, 255, .9), 0 9px 14px -8px rgba(58, 132, 52, .5);
}
.tile--lg { width: 48px; height: 48px; border-radius: 14px; }
.card { background: #fff; border-radius: var(--radius-l); padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.card h3 { font-size: 17px; line-height: 1.3; }
.card p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.adv-grid { display: grid; gap: 8px; }
@media (min-width: 768px) {
  .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card { flex-direction: column; padding: 28px; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 16px; margin-top: 8px; }
  .tile { width: 48px; height: 48px; border-radius: 14px; }
  .tile--lg { width: 60px; height: 60px; border-radius: 16px; transform: perspective(300px) rotateX(10deg); box-shadow: inset 0 -4px 0 rgba(58, 132, 52, .16), inset 0 2px 0 rgba(255, 255, 255, .9), 0 12px 20px -10px rgba(58, 132, 52, .55); }
  .tile--lg .icon { width: 28px; height: 28px; }
}
@media (min-width: 1100px) {
  .adv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── МФЦ и тест ──────────────────────────────────────────────────────────── */
.mfc { display: flex; flex-direction: column; gap: 28px; }
.mfc h2 { color: var(--green-deep); }
.mfc-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.chips-static { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-static li { background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--green-deep); }
.mfc-text .btn { align-self: stretch; }
.note-lock { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #44513A; }
.note-lock .icon { color: var(--green-btn); }

.quiz-stack { position: relative; perspective: 1300px; padding: 12px 16px 20px 0; }
.stack-card { position: absolute; border-radius: 24px; transform: rotateY(-6deg) rotateX(3deg); }
.stack-card--back { top: 34px; right: 0; bottom: 0; left: 22px; background: var(--ring); }
.stack-card--mid { top: 22px; right: 8px; bottom: 10px; left: 10px; background: #E3EEDC; }
.badge-sphere {
  position: absolute; z-index: 2; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  background: var(--sphere-deep); box-shadow: 0 16px 24px -10px rgba(44, 107, 40, .6);
}
.badge-sphere .icon { stroke-width: 3; }
.badge-sphere--quiz { right: -2px; top: -22px; width: 52px; height: 52px; }
/* Сама карточка с полями до 1100 px не поворачивается — наклонены только подложки. */
.quiz {
  position: relative; background: #fff; border-radius: 24px; padding: 20px;
  transform-origin: 60% 50%;
  box-shadow: 0 34px 60px -30px rgba(44, 107, 40, .5);
}
.quiz .form-body { display: flex; flex-direction: column; gap: 16px; }
.quiz-top { display: flex; justify-content: space-between; gap: 12px; padding-right: 30px; font-size: 14px; color: var(--muted); }
.quiz-count { font-weight: 700; color: var(--ink); }
.progress { height: 6px; border-radius: 999px; background: var(--tint-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); transform: scaleX(.25); transform-origin: 0 50%; transition: transform .4s ease; }
.no-js .progress, .no-js .quiz-count, .no-js .quiz-nav { display: none; }
.quiz-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.quiz-step legend { padding: 0; margin-bottom: 10px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.quiz-text { color: var(--muted); font-size: 15px; }
.js .quiz-step:not(.is-active) { display: none; }
.quiz-step:focus { outline: none; } /* фокус на шаг ставит скрипт — для экранного диктора */
.options { display: flex; flex-direction: column; gap: 10px; }
.option span { display: flex; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--field); background: #fff; font-weight: 600; }
.option span:hover { border-color: var(--green-muted); }
.option input:checked + span { border: 1.5px solid var(--green-btn); background: var(--tint-2); font-weight: 800; }
.quiz-nav { display: flex; gap: 10px; align-items: center; }
.quiz-next { flex: 1 1 auto; }
.quiz-back { min-height: 52px; padding: 0 18px; border: 0; border-radius: var(--radius-m); background: var(--bg); color: var(--green-deep); font-weight: 700; cursor: pointer; }
.quiz-back:hover { background: #E8EAED; }
.quiz-warning { margin-top: 14px; }

@media (min-width: 768px) {
  .mfc-text .btn { align-self: flex-start; }
  .chips-static li { padding: 8px 16px; font-size: 15px; }
  .mfc-lead { font-size: 19px; max-width: 32em; }
  .note-lock { font-size: 14px; }
}
@media (min-width: 1100px) {
  .mfc { flex-direction: row; align-items: center; gap: 48px; }
  .mfc-text { flex: 1 1 520px; gap: 20px; min-width: 0; }
  .quiz-stack { flex: 0 1 480px; min-width: 0; padding: 12px 28px 28px 0; }
  .stack-card, .quiz { transform: rotateY(-8deg) rotateX(4deg); }
  .stack-card--back { top: 40px; left: 28px; }
  .stack-card--mid { top: 26px; right: 14px; bottom: 14px; left: 14px; }
  .badge-sphere--quiz { right: -6px; top: -30px; width: 68px; height: 68px; }
  .quiz-top { padding-right: 34px; }
  .quiz { padding: 28px; }
}

/* ── Что останется с вами ────────────────────────────────────────────────── */
.property { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.property-head { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.property-shield { display: none; }
.property-cols { display: flex; flex-direction: column; gap: 12px; }
.keeps { display: flex; flex-direction: column; gap: 8px; }
.keeps li { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 16px; font-size: 15px; }
.sold { background: var(--bg); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sold ul { display: flex; flex-direction: column; gap: 6px; color: #44474C; font-size: 15px; }
.sold li { display: flex; gap: 10px; }
.sold li::before { content: "–"; color: #8A8D93; font-weight: 800; }
.sold-note { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (min-width: 768px) {
  .property { gap: 32px; }
  .keeps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .keeps li { padding: 14px; border-radius: 18px; font-size: 16px; }
  .sold { border-radius: 24px; padding: 28px; }
  .sold ul, .sold-note { font-size: 16px; }
}
@media (min-width: 1100px) {
  .property-cols { flex-direction: row; gap: 24px; }
  .keeps { flex: 2 1 560px; }
  .sold { flex: 1 1 320px; }
  .property-shield { display: block; position: absolute; z-index: -1; right: 80px; top: 36px; }
}

/* ── Этапы ───────────────────────────────────────────────────────────────── */
.steps-list { display: flex; flex-direction: column; gap: 8px; counter-reset: none; }
.step { position: relative; background: #fff; border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.step:nth-child(even) { margin-left: 16px; }
.step h3 { font-size: 16px; line-height: 1.3; }
.step p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.step-num {
  width: 52px; flex: 0 0 auto; font-size: 40px; font-weight: 800; line-height: 1; color: #B9DBB1;
  text-shadow: 1px 1px 0 #A3CF99, 2px 2px 0 #96C78B, 3px 3px 0 #89BF7E, 4px 4px 0 #7DB772, 8px 10px 14px rgba(44, 107, 40, .22);
}
.step--final { border: 1.5px solid var(--green); }
.step--final .step-num { color: #6DB65F; text-shadow: 1px 1px 0 #5BA04E, 2px 2px 0 #4F9443, 3px 3px 0 #44883A, 4px 4px 0 #3A7C31, 8px 10px 14px rgba(44, 107, 40, .3); }
.badge-sphere--step { display: none; }
@media (min-width: 768px) {
  .step { padding: 20px 24px; border-radius: 20px; }
  .step h3 { font-size: 19px; }
  .step p { font-size: 15px; }
}
@media (min-width: 1100px) {
  .steps-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .step { flex-direction: column; align-items: flex-start; min-height: 300px; padding: 24px; border-radius: 24px; }
  .step:nth-child(even) { margin-left: 0; margin-top: 72px; }
  .step-num {
    width: auto; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 92px; line-height: .82;
    text-shadow: -1px -1px 0 #A3CF99, -2px -2px 0 #96C78B, -3px -3px 0 #89BF7E, -4px -4px 0 #7DB772, -5px -5px 0 #71AF66, -10px -14px 20px rgba(44, 107, 40, .25);
  }
  .step--final .step-num { text-shadow: -1px -1px 0 #5BA04E, -2px -2px 0 #4F9443, -3px -3px 0 #44883A, -4px -4px 0 #3A7C31, -5px -5px 0 #2F7028, -10px -14px 20px rgba(44, 107, 40, .35); }
  .badge-sphere--step { display: flex; right: -14px; top: -20px; width: 56px; height: 56px; }
}

/* ── Акции ───────────────────────────────────────────────────────────────── */
.promo { display: flex; flex-direction: column; gap: 16px; }
.promo-cards { display: flex; flex-direction: column; gap: 8px; }
.promo-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: 24px 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.promo-card--yellow { background: var(--yellow); }
.promo-card--tint { background: var(--tint); }
.promo-label { font-size: 13px; font-weight: 700; }
.promo-card--tint .promo-label, .promo-card--tint .promo-value { color: var(--green-deep); }
.promo-title { display: flex; flex-direction: column; gap: 10px; }
.promo-value { display: block; font-size: 64px; font-weight: 800; line-height: .95; letter-spacing: -0.02em; white-space: nowrap; }
.promo-card--yellow .promo-value { text-shadow: 0 1px 0 #E2A23F, 0 2px 0 #D99A37, 0 3px 0 #D0912F, 0 10px 14px rgba(150, 95, 20, .35); }
.promo-card--tint .promo-value { font-size: 52px; }
.promo-card h3 { font-size: 19px; line-height: 1.3; }
.promo-text { font-size: 15px; color: #44513A; max-width: 34em; }
.promo-card .btn { align-self: stretch; }
.footnote { font-size: 12px; line-height: 1.5; max-width: 60em; }
.promo-card--tint .footnote { color: #44513A; }
.promo-rules { margin: -6px 0 -10px; }
.promo-rules a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--green-deep); }
.deco-percent { position: absolute; z-index: -1; right: 6px; top: 4px; }
.deco-percent span {
  display: block; transform: rotate(-12deg); font-size: 120px; font-weight: 800; line-height: 1; color: #FFDB8F;
  text-shadow: 2px 2px 0 #F0B957, 4px 4px 0 #E8AE4A, 6px 6px 0 #E0A33E, 8px 8px 0 #D79833, 16px 20px 26px rgba(150, 95, 20, .35);
}
.deco-sphere { position: absolute; z-index: -1; right: 40px; bottom: 48px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #FFF3D1 0%, #F5BF5A 50%, #C98E2A 100%); box-shadow: 0 10px 16px -6px rgba(150, 95, 20, .5); }
.deco-coin { position: absolute; z-index: -1; perspective: 500px; }
.deco-coin span {
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  font-weight: 800; color: #9A6A1A; background: var(--gold);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35), 0 5px 0 #B98226, 0 14px 20px -8px rgba(120, 80, 20, .5);
}
.deco-coin--1 { right: 14px; top: 14px; }
.deco-coin--1 span { width: 52px; height: 52px; font-size: 24px; transform: rotateX(24deg) rotateY(-26deg); }
.deco-coin--2 { right: 20px; top: 76px; }
.deco-coin--2 span { width: 34px; height: 34px; font-size: 15px; transform: rotateX(30deg) rotateY(28deg); }
.deco-coin--3 { display: none; }
@media (min-width: 768px) {
  .promo { gap: 32px; }
  .promo-card { padding: 40px; border-radius: 28px; gap: 14px; }
  .promo-title { gap: 14px; }
  .promo-card .btn { align-self: flex-start; }
  .promo-label { font-size: 15px; }
  .promo-card h3 { font-size: 24px; }
  .promo-text { font-size: 17px; }
  .footnote { font-size: 13px; }
  .promo-rules { margin: -14px 0 -18px; }
}
@media (min-width: 1100px) {
  .promo-cards { flex-direction: row; gap: 16px; }
  .promo-card { flex: 1 1 440px; min-width: 0; }
  .promo-value { font-size: 104px; }
  .promo-card--yellow .promo-value { text-shadow: 0 1px 0 #E2A23F, 0 2px 0 #D99A37, 0 3px 0 #D0912F, 0 4px 0 #C78828, 0 12px 18px rgba(150, 95, 20, .35); }
  .promo-card--tint .promo-value { font-size: 88px; }
  .deco-percent { right: 34px; top: 18px; }
  .deco-percent span { font-size: 190px; text-shadow: 2px 2px 0 #F0B957, 4px 4px 0 #E8AE4A, 6px 6px 0 #E0A33E, 8px 8px 0 #D79833, 10px 10px 0 #CE8D29, 22px 28px 34px rgba(150, 95, 20, .35); }
  .deco-coin--1 { right: 26px; top: 22px; }
  .deco-coin--1 span { width: 76px; height: 76px; font-size: 34px; }
  .deco-coin--2 { right: 30px; top: 118px; }
  .deco-coin--2 span { width: 50px; height: 50px; font-size: 22px; }
  .deco-coin--3 { display: block; right: 116px; top: 16px; }
  .deco-coin--3 span { width: 36px; height: 36px; font-size: 16px; transform: rotateX(40deg) rotateY(-10deg); }
}

/* ── Дела сети ───────────────────────────────────────────────────────────── */
.cases-grid { display: grid; gap: 8px; }
.case { background: #fff; border-radius: 18px; padding: 16px; display: flex; gap: 16px; align-items: flex-start; }
.case dl { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.case dt { color: var(--muted); }
.case dd { margin: 0; font-weight: 700; }
.case-sum { font-size: 20px; font-weight: 800 !important; }
.docs { position: relative; width: 68px; height: 90px; flex: 0 0 auto; perspective: 400px; }
.doc { position: absolute; inset: 0; border-radius: 6px; }
.doc--back { background: #DCEBD2; transform: rotateY(-24deg) rotateZ(-9deg) translate(-5px, 4px); }
.doc--mid { background: #F1F6EC; border: 1px solid #DCE6D3; transform: rotateY(-24deg) rotateZ(-3deg); }
.doc--front {
  background: #fff; border: 1px solid var(--line); padding: 9px 8px; display: flex; flex-direction: column; gap: 5px;
  transform: rotateY(-24deg) rotateZ(4deg) translate(3px, -2px); box-shadow: 0 12px 18px -10px rgba(34, 31, 32, .35);
}
.doc--front i { display: block; height: 2px; background: var(--line); border-radius: 2px; }
.doc--front i:first-child { height: 3px; width: 60%; align-self: center; background: var(--field); }
.doc--front i:nth-child(4) { width: 80%; }
.doc-check { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--sphere-deep); color: #fff; display: flex; align-items: center; justify-content: center; }
.doc-check .icon { stroke-width: 3.2; width: 12px; height: 12px; }
.ratings { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; }
.ratings-label { width: 100%; font-size: 13px; font-weight: 700; color: var(--muted); }
.rating { background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 13px; }
.rating b { font-weight: 800; }
.ratings .btn { width: 100%; margin-top: 8px; }
/* Подпись к оценкам: на телефоне — под ними, с 768 px — строкой под всем рядом */
.ratings-note { width: 100%; font-size: 12px; line-height: 1.4; color: var(--muted); }
@media (min-width: 768px) {
  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .case { padding: 20px; border-radius: 20px; gap: 20px; }
  .case dl { font-size: 15px; }
  .case-sum { font-size: 22px; }
  .docs { width: 100px; height: 132px; perspective: 520px; }
  .doc { border-radius: 8px; }
  .doc--front { padding: 14px 11px; gap: 6px; }
  .doc--front i { height: 3px; }
  .doc--front i:first-child { height: 4px; }
  .doc-check { width: 28px; height: 28px; right: 8px; bottom: 8px; }
  .doc-check .icon { width: 16px; height: 16px; }
  .ratings { gap: 12px; margin-top: 32px; }
  .ratings-label { width: auto; margin-right: 8px; font-size: 15px; }
  .rating { padding: 10px 18px; font-size: 15px; }
  .ratings .btn { width: auto; margin: 0 0 0 auto; }
  .ratings-note { order: 1; font-size: 13px; }
}
@media (min-width: 1100px) {
  .cases-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Вопросы ─────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 24px; }
.faq-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 14px 0; font-size: 16px; font-weight: 800; line-height: 1.35; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--green-btn); stroke-width: 2; transition: transform .25s; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding-bottom: 16px; font-size: 15px; color: #44474C; max-width: 46em; }
.faq-aside { background: var(--tint); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.faq-aside h3 { font-size: 22px; line-height: 1.25; }
.faq-aside p { color: #44513A; }
.avatar { position: relative; width: 120px; height: 120px; }
.avatar-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--green-muted); }
.avatar-ring span { position: absolute; left: 50%; top: -7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--green-btn); }
.avatar-photo { position: absolute; inset: 14px; border-radius: 50%; overflow: hidden; background: #2A2C31; box-shadow: 0 0 0 5px #fff, 0 18px 28px -12px rgba(44, 107, 40, .5); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transform: scale(1.6); transform-origin: 52% 22%; }
@media (min-width: 768px) {
  .faq-item summary { padding: 20px 0; font-size: 19px; }
  .faq-item p { padding-bottom: 22px; }
  .faq-item p { font-size: 17px; }
  .faq-aside { border-radius: 28px; padding: 32px; }
  .faq-aside h3 { font-size: 24px; }
}
@media (min-width: 1100px) {
  .faq { flex-direction: row; gap: 48px; align-items: flex-start; }
  .faq-main { flex: 2 1 560px; gap: 24px; }
  .faq-aside { flex: 1 1 340px; min-width: 0; }
  .avatar { width: 136px; height: 136px; }
  .avatar-photo { inset: 16px; }
}
@media (min-width: 1280px) {
  /* «Написать в Telegram» и «Позвонить» — в один ряд, как в макете */
  .faq-aside .actions { flex-wrap: nowrap; align-self: stretch; }
  .faq-aside .actions .btn { flex: 1 1 auto; padding: 0 16px; font-size: 16px; white-space: nowrap; }
}

/* ── Анкета ──────────────────────────────────────────────────────────────── */
.anketa { display: flex; flex-direction: column; gap: 20px; }
.anketa-intro { display: flex; flex-direction: column; gap: 12px; }
.anketa-steps { display: none; }
.lead-form--full .form-body { display: flex; flex-direction: column; gap: 18px; }
.grid-2 { display: grid; gap: 12px; }
.group { border: 0; margin: 0; padding: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.chip span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--field); background: #fff; font-size: 14px; font-weight: 600; }
.chip span:hover { border-color: var(--green-muted); }
.chip input:checked + span { border: 1.5px solid var(--green-btn); background: var(--tint-2); font-weight: 800; }
.yesno-list { display: flex; flex-direction: column; gap: 6px; }
.yesno { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg); border-radius: 12px; padding: 6px 6px 6px 14px; font-size: 14px; font-weight: 600; }
.seg { display: flex; gap: 4px; flex: 0 0 auto; }
.seg span { display: flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; }
.seg input:checked + span { background: var(--green-btn); color: #fff; }
.age-row { display: grid; gap: 14px; }
.lead-form--full > .small-warning { margin-top: 16px; }
@media (min-width: 768px) {
  .anketa-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
  .anketa-steps li { display: flex; gap: 14px; align-items: flex-start; }
  .num { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; background: var(--tint-2); color: var(--green-deep); font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .lead-form--full { background: var(--bg); border-radius: 28px; padding: 32px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip span { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; }
  .yesno-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .yesno { background: #fff; border-radius: 14px; padding: 8px 8px 8px 16px; font-size: 15px; }
  .seg span { background: var(--bg); }
  .age-row { grid-template-columns: 140px minmax(0, 1fr); align-items: end; }
}
@media (min-width: 1100px) {
  .anketa { flex-direction: row; gap: 56px; align-items: flex-start; }
  .anketa-intro { flex: 1 1 380px; gap: 20px; min-width: 0; }
  .lead-form--full { flex: 1.4 1 520px; min-width: 0; }
}

/* ── Контакты и карта ────────────────────────────────────────────────────── */
.contacts { display: flex; flex-direction: column; gap: 20px; }
.contacts-info { display: flex; flex-direction: column; gap: 18px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list > li { display: flex; gap: 14px; align-items: flex-start; }
.contact-label { font-size: 13px; color: var(--muted); }
.contact-value { font-weight: 700; }
.contact-note { font-size: 13px; color: var(--muted); }
/* Номер — крупной ссылкой с зоной нажатия не меньше 44 px */
.contact-phone {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 22px; font-weight: 800; color: var(--green-btn); white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: rgba(58, 132, 52, .35);
}
.contact-phone:hover { color: var(--green-deep); text-decoration-color: currentColor; }
/* Номер внутри строки: зона нажатия 44 px за счёт отступов, строка при этом не раздвигается */
.contact-hotline { padding: 12px 0; font-weight: 700; white-space: nowrap; }
.map { position: relative; overflow: hidden; min-height: 240px; border-radius: 18px; background: #DDE8D4; perspective: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.map-plane {
  position: absolute; left: -30%; right: -30%; top: -70%; bottom: -40%;
  transform: rotateX(56deg); transform-origin: 50% 55%;
  background-color: #E8EEE3;
  background-image: linear-gradient(#D3DFCA 1px, transparent 1px), linear-gradient(90deg, #D3DFCA 1px, transparent 1px);
  background-size: 44px 44px;
}
.map::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%; z-index: 1; pointer-events: none; background: linear-gradient(#DDE8D4 25%, rgba(221, 232, 212, 0)); }
.map-plane i { position: absolute; display: block; }
.road { background: #fff; }
.road--h { left: 0; right: 0; top: 34%; height: 18px; }
.road--v { top: 0; bottom: 0; left: 41%; width: 14px; }
.road--d { top: 0; bottom: 0; left: 62%; width: 10px; background: #F6F8F4; transform: rotate(18deg); }
.park { left: 52%; top: 14%; width: 22%; height: 16%; background: var(--ring); border-radius: 14px; }
.block { left: 22%; top: 46%; width: 16%; height: 12%; background: var(--bg); border-radius: 8px; box-shadow: 0 -10px 0 var(--line); }
.map-marker { position: relative; z-index: 2; display: flex; justify-content: center; }
.map-pulse { position: absolute; left: 50%; bottom: -16px; width: 92px; height: 34px; margin-left: -46px; border-radius: 50%; border: 3px solid var(--green); opacity: 0; }
.map-pin { position: relative; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: var(--green-btn); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 9px rgba(97, 172, 83, .25); }
.map-btn { position: relative; z-index: 2; }
.map-msg { position: relative; z-index: 2; background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; text-align: center; margin: 0 16px; }
.map-frame { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
@media (min-width: 768px) {
  .contact-value { font-size: 18px; }
  .contact-note { font-size: 15px; }
  .contact-phone { font-size: 26px; }
  .map { min-height: 340px; border-radius: 24px; }
  .map-pin { width: 64px; height: 64px; box-shadow: 0 0 0 10px rgba(97, 172, 83, .25); }
}
@media (min-width: 1100px) {
  .contacts { flex-direction: row; gap: 48px; align-items: stretch; }
  .contacts-info { flex: 1 1 420px; gap: 24px; min-width: 0; }
  .map { flex: 1.3 1 480px; min-height: 380px; perspective: 900px; }
  .map-plane { background-size: 56px 56px; }
  .map-pulse { width: 116px; height: 42px; margin-left: -58px; bottom: -20px; }
}

/* ── Простые страницы ────────────────────────────────────────────────────── */
.simple-page { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-height: 50vh; }
.simple-page h1 { font-size: 30px; }
@media (min-width: 768px) { .simple-page h1 { font-size: 44px; } }

/* Юридические страницы */
.legal { gap: 14px; max-width: 900px; margin: 0 auto; width: 100%; }
.legal h2 { font-size: 20px; margin-top: 10px; }
.legal p, .legal li { color: #3B3E43; }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-draft { background: #FFF4DC; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; }
.legal-note { border-left: 4px solid var(--yellow); background: #FFFAEE; border-radius: 0 12px 12px 0; padding: 10px 14px; font-size: 14px; }
@media (min-width: 768px) { .legal h2 { font-size: 24px; } }

/* ── Подвал ──────────────────────────────────────────────────────────────── */
.site-footer { margin-top: var(--gutter); background: var(--ink); color: #D9D6CF; padding: 32px 0 calc(100px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-direction: column; gap: 20px; padding-left: 20px; padding-right: 20px; }
.footer-top { display: flex; flex-direction: column; gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-muted { font-size: 14px; color: #A9A69E; }
.footer-title { font-weight: 800; color: #fff; }
.footer-nav { gap: 0; }
.footer-title { margin-bottom: 4px; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; color: #D9D6CF; text-decoration: none; }
@media (min-width: 768px) and (hover: hover) and (pointer: fine) { .footer-nav a { min-height: 34px; } } /* с мышью список плотнее */
.footer-nav a:hover { color: #fff; }
.footer-phone { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; }
.footer-hotline { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; color: var(--lime); font-size: 14px; text-decoration: none; }
.footer-hotline:hover { color: #B9DA80; }
.socials { display: flex; gap: 8px; margin-top: 6px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; background: #34302F; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; text-decoration: none; }
.socials a:hover { background: #45403E; color: #fff; }
.disclaimer { background: #2F2F24; border-radius: 14px; padding: 14px; font-size: 12px; line-height: 1.55; color: #E9E6DA; }
.footer-bottom { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #3A3635; padding-top: 16px; font-size: 12px; color: #A9A69E; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-links a, .footer-links .link-btn { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom a { color: #D9D6CF; }
@media (min-width: 768px) {
  .site-footer { padding: 56px 0 32px; }
  .footer-inner { gap: 28px; padding-left: 32px; padding-right: 32px; }
  .footer-top { flex-direction: row; flex-wrap: wrap; gap: 40px 64px; }
  .footer-col { flex: 1 1 220px; }
  .footer-phone { font-size: 26px; }
  .footer-hotline { font-size: 15px; }
  .disclaimer { border-radius: 16px; padding: 18px 22px; font-size: 14px; }
  .footer-bottom { flex-direction: row; flex-wrap: wrap; justify-content: space-between; font-size: 13px; padding-top: 20px; }
}
@media (min-width: 1100px) {
  .footer-inner { padding-left: 64px; padding-right: 64px; }
}

/* ── Нижняя панель на телефоне ───────────────────────────────────────────── */
.mobile-bar {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; gap: 4px; padding: 6px;
  background: #fff; border-radius: 20px; box-shadow: 0 -4px 24px rgba(34, 31, 32, .14);
}
.mobile-bar a { flex: 1 1 0; min-width: 0; min-height: 56px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 700; }
.mobile-bar a .icon { color: var(--green-btn); }
.mobile-bar a.is-primary { background: var(--green-btn); color: #fff; font-weight: 800; }
.mobile-bar a.is-primary .icon { color: #fff; }
/* Когда мессенджеров нет — два широких пункта, иконка слева от подписи */
.mobile-bar--2 a { flex-direction: row; gap: 8px; font-size: 15px; }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ── Баннер cookie ───────────────────────────────────────────────────────── */
/* На телефоне стоит над нижней панелью (она 68 px + отступ 8 px), на компьютере — в углу. */
.cookie {
  position: fixed; left: 8px; right: 8px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(34, 31, 32, .22);
  animation: fcbRise .5s cubic-bezier(.2, .7, .2, 1) both;
}
.cookie-text { font-size: 14px; line-height: 1.5; }
.cookie-text a { font-weight: 700; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { flex: 1 1 0; min-height: 52px; padding: 0 12px; font-size: 15px; }
.link-btn { border: 0; background: none; padding: 0; color: #D9D6CF; text-decoration: underline; cursor: pointer; font-size: inherit; }
.link-btn:hover { color: #fff; }
.no-js .link-btn[data-cookie-settings] { display: none; }
@media (min-width: 768px) {
  .cookie { left: auto; right: 24px; bottom: 24px; width: 440px; padding: 20px; }
}

/* ── Анимации ────────────────────────────────────────────────────────────── */
@keyframes fcbSpin { to { transform: rotate(360deg); } }
@keyframes fcbFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
@keyframes fcbWobble { 0%, 100% { transform: rotateY(-24deg) rotateX(8deg); } 50% { transform: rotateY(24deg) rotateX(-6deg); } }
@keyframes fcbPulse { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes fcbRise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
/* Блик шириной 45% кнопки: −135% … 290% своей ширины = от −60% до 130% ширины кнопки */
@keyframes fcbSheen { 0% { transform: translateX(-135%); } 55%, 100% { transform: translateX(290%); } }

.spin { animation: fcbSpin 26s linear infinite; }
.spin-rev { animation: fcbSpin 38s linear infinite reverse; }
.float { animation: fcbFloat 6s ease-in-out infinite; }
.float-slow { animation: fcbFloat 8s ease-in-out -3s infinite; }
.float-fast { animation: fcbFloat 4.5s ease-in-out -1s infinite; }
.wobble { animation: fcbWobble 7s ease-in-out infinite; transform-style: preserve-3d; }
.pulse { animation: fcbPulse 2.6s ease-out infinite; }
.pulse-2 { animation: fcbPulse 2.6s ease-out 1.3s infinite; }
.js .rise { animation: fcbRise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.sheen { position: relative; overflow: hidden; isolation: isolate; }
.sheen::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; z-index: -1; pointer-events: none;
  transform: translateX(-135%);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .4), rgba(255, 255, 255, 0));
  animation: fcbSheen 5s ease-in-out infinite;
}
@media (hover: hover) and (pointer: fine) {
  .tilt { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
  .tilt:hover { transform: perspective(900px) rotateX(5deg) rotateY(-7deg) translateY(-6px); box-shadow: 0 28px 44px -24px rgba(44, 107, 40, .45); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
