/* Вселенск — ритуальный агент. v2: белая основа, фото-карточки, графитовые и бронзовые акценты */

:root {
  --bg: #ffffff;
  --stone: #f3f2ef;
  --stone-2: #e9e7e2;
  --line: #e4e2dd;
  --ink: #141518;
  --ink-2: #55575e;
  --ink-3: #85878d;

  --dark: #17181b;
  --dark-2: #222327;
  --dark-3: #2c2d32;
  --dark-line: rgba(255, 255, 255, .12);
  --on-dark: #f3f1ec;
  --on-dark-2: #a9aaaf;

  --sand: #cfb68f;        /* бронза логотипа, светлая */
  --sand-hi: #dcc6a3;
  --bronze: #7a6446;      /* бронза для текста на белом */
  --blue: #3a4b8c;        /* синий логотипа (#283888), смягчённый: цифры, номера, иконки */
  --blue-hi: #5a6cae;
  --blue-soft: #eef1f8;   /* светло-синий фон: вопросы, кружки иконок */
  --blue-line: #d9dfee;

  --ff-display: 'Geologica', 'Golos Text', 'Helvetica Neue', Arial, sans-serif;
  --ff-text: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;

  --shell: 1360px;
  --pad: 12px;            /* поля страницы вокруг панелей */
  --in: 20px;             /* внутренние поля панелей */
  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 16px;
  --gap: 72px;            /* расстояние между секциями */
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 640px) { :root { --pad: 20px; --in: 36px; --r-xl: 28px; --gap: 96px; } }
@media (min-width: 1100px) { :root { --pad: 24px; --in: 56px; --r-xl: 32px; --r-lg: 24px; --gap: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--ff-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
::selection { background: var(--sand); color: var(--ink); }
html { scrollbar-color: #c9c7c2 var(--bg); }
input { caret-color: var(--bronze); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
p, h1, h2, h3, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
b { font-weight: 600; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 6px; }
/* обводка только для клавиатуры: после клика мышью или пальцем (Safari, iOS) её нет */
:focus:not(:focus-visible) { outline: none; }
/* iOS/Safari: без системного оформления полей и кнопок (внутренняя тень, градиент) */
input, button, textarea, select { -webkit-appearance: none; appearance: none; border-radius: 0; }
input[type="radio"], input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; }
a, button, summary { -webkit-tap-highlight-color: transparent; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nw, .tel { white-space: nowrap; }
.tel { font-variant-numeric: tabular-nums lining-nums; text-decoration: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.shell { width: 100%; max-width: calc(var(--shell) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
section.shell + section.shell { margin-top: var(--gap); }

/* ---------- Типографика ---------- */
.h2 {
  font: 400 clamp(2rem, 1.35rem + 2.6vw, 3.5rem)/1.04 var(--ff-display);
  letter-spacing: -.03em; text-wrap: balance;
}
.h2--sm { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); }
.lead { margin-top: 18px; color: var(--ink-2); max-width: 56ch; line-height: 1.55; text-wrap: pretty; }
.sec-head { margin-bottom: 40px; }
.sec-head--center { text-align: center; }
.sec-head--center .h2, .sec-head--center .lead { margin-left: auto; margin-right: auto; }
.sec-head--center .h2 { max-width: 20ch; }
@media (min-width: 900px) { .sec-head { margin-bottom: 56px; } }
.fine { margin-top: 12px; font-size: .8125rem; line-height: 1.45; color: var(--ink-3); }
.fine a { color: var(--ink-2); }
.fine--dark { color: var(--on-dark-2); }
.fine--dark a { color: var(--on-dark); }

/* ---------- Кнопки-«таблетки» ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 56px; padding: 6px 6px 6px 24px;
  border: 1px solid transparent; border-radius: 999px; background: transparent; color: inherit;
  font: 500 1rem/1.15 var(--ff-text); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pill:active { transform: scale(.985); }
.pill:not(:has(.pill__ico)) { padding: 0 26px; justify-content: center; }
.pill__ico {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14);
  transition: transform .35s var(--ease);
}
.pill__ico svg { width: 20px; height: 20px; }
.pill:hover .pill__ico { transform: rotate(-12deg) scale(1.04); }
.pill__ico--sand { background: var(--sand); color: var(--ink); }
.pill__ico--ink { background: var(--ink); color: var(--sand-hi); }
.pill__txt { display: grid; text-align: left; gap: 2px; }
.pill__sub { font-weight: 400; font-size: .875rem; opacity: .72; font-variant-numeric: tabular-nums; }
.pill--lg { min-height: 64px; padding-left: 28px; font-size: 1.0625rem; }
.pill--lg .pill__ico { width: 52px; height: 52px; }
.pill--sm { min-height: 48px; padding-left: 20px; font-size: .9375rem; }
.pill--sm .pill__ico { width: 36px; height: 36px; }
.pill--sm .pill__ico svg { width: 17px; height: 17px; }
.pill--ink { background: var(--ink); color: #fff; }
.pill--ink:hover { background: #2a2b30; }
.pill--white { background: #fff; color: var(--ink); }
.pill--white:hover { background: var(--stone); }
.pill--sand { background: var(--sand); color: var(--ink); }
.pill--sand:hover { background: var(--sand-hi); }
.pill--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pill--glass:hover { background: rgba(255, 255, 255, .2); }
.pill--outline-light { color: var(--on-dark); border-color: rgba(255, 255, 255, .26); }
.pill--outline-light:hover { border-color: rgba(255, 255, 255, .5); }
.pill--outline-light .pill__ico { background: rgba(255, 255, 255, .1); }
.pill--outline { color: var(--ink); border-color: var(--line); background: #fff; }
.pill--outline:hover { border-color: #cfccc5; }
.pill--outline .pill__ico { background: var(--stone); }
.pill[disabled] { opacity: .6; cursor: progress; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: .875rem; line-height: 1.2;
}
.chip--glass { background: rgba(20, 21, 24, .32); color: #fff; border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.chip__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 0 rgba(207, 182, 143, .6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(207, 182, 143, .55); } 70% { box-shadow: 0 0 0 9px rgba(207, 182, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(207, 182, 143, 0); } }

/* ---------- Панели ---------- */
.panel { border-radius: var(--r-xl); padding: calc(var(--in) + 8px) var(--in); }
.panel--dark { background: var(--dark); color: var(--on-dark); }
.panel--stone { background: var(--stone); }
@media (min-width: 1100px) { .panel { padding: 72px var(--in); } }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s var(--ease); }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; flex: none; }
.brand__mark { height: 40px; width: auto; }
.brand__word { height: 30px; width: auto; }
.nav { display: none; gap: 2px; padding: 5px; background: var(--stone); border-radius: 999px; }
.nav a { padding: 10px 18px; border-radius: 999px; font-size: .9375rem; line-height: 1.2; text-decoration: none; color: var(--ink-2); white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease); }
.nav a:hover { background: #fff; color: var(--blue); }
.top__call { display: flex; align-items: center; gap: 24px; flex: none; }
.top__tel { display: none; line-height: 1.2; }
.top__tel-n { display: block; font-weight: 600; font-size: 1.125rem; letter-spacing: -.005em; }
.top__tel-k { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .8125rem; color: var(--ink-3); }
.top__tel-k .chip__dot { width: 7px; height: 7px; }
@media (max-width: 380px) { .brand__word { height: 25px; } .brand__mark { height: 34px; } }
@media (min-width: 760px) { .top__tel { display: block; } }
@media (min-width: 1180px) { .top__in { min-height: 84px; } .brand__mark { height: 48px; } .brand__word { height: 36px; } }
@media (min-width: 1280px) {
  /* логотип — меню — телефон и кнопка, одинаковые промежутки между ними */
  .top__in { justify-content: space-between; gap: 32px; }
  .nav { display: flex; }
}
@media (min-width: 1280px) and (max-width: 1439px) { .nav a { padding: 10px 14px; font-size: .875rem; } .top__call { gap: 18px; } }

/* ---------- Первый экран ---------- */
.hero { padding-top: 4px; }
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl); background: #0f1012; color: #fff;
  display: grid;
}
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 85% 0%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__img img { animation: settle 1.8s var(--ease) both; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__title { margin-top: 22px; font: 400 clamp(2.2rem, 1rem + 3.4vw, 3.75rem)/1.04 var(--ff-display); letter-spacing: -.035em; text-wrap: balance; }
.hero__lead { margin-top: 22px; color: rgba(255, 255, 255, .8); max-width: 54ch; text-wrap: pretty; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__note { margin-top: 16px; font-size: .875rem; color: rgba(255, 255, 255, .62); }
.hero__side { padding: 0 var(--in) 28px; }
.hero__side .badge { display: none; }

/* телефон и планшет (включая iPad в горизонтали): фото сверху, текст под ним — иначе текст наезжает на лицо агента */
@media (max-width: 899px), (max-width: 1179px) and (min-height: 600px) {
  .hero__img { bottom: auto; height: 66%; }
  .hero__img img { object-position: 80% 0%; }
  .hero__shade { background: linear-gradient(180deg, rgba(10, 11, 13, 0) 0%, rgba(10, 11, 13, 0) 30%, rgba(10, 11, 13, .55) 46%, #0f1012 66%); }
  .hero__body { padding: 330px var(--in) 28px; }
  .after { max-width: 520px; }
}
@media (max-width: 559px) {
  .hero__img { height: 460px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hero__img img { object-position: 50% 0%; }
  .hero__shade { background: linear-gradient(180deg, rgba(10, 11, 13, 0) 0, rgba(10, 11, 13, 0) 200px, rgba(10, 11, 13, .6) 320px, #0f1012 460px); }
  .hero__body { padding-top: 300px; }
  .hero__cta .pill { width: 100%; }
}

/* десктоп: текст слева, справа кружок (по верху текста) и карточка (по низу текста); вся группа по центру карточки, отступы сверху и снизу равные */
@media (min-width: 1180px), (min-width: 900px) and (max-height: 599px) {
  .hero__card { align-content: center; padding: 88px var(--in); }
  .hero__shade { background: linear-gradient(90deg, rgba(10, 11, 13, .92) 0%, rgba(10, 11, 13, .72) 38%, rgba(10, 11, 13, .1) 68%), linear-gradient(180deg, rgba(10, 11, 13, 0) 55%, rgba(10, 11, 13, .55) 100%); }
  .hero__body { max-width: min(700px, 64%); }
  .hero__side { display: none; padding: 0; }
  /* заголовок растёт с шириной: на 1180–1366 не доходит до лица, с ~1490 — максимум 60px */
  .hero__title { margin-top: 36px; line-height: 1.08; font-size: clamp(2.2rem, .4rem + 3.6vw, 3.75rem); }
  .hero__lead { margin-top: 32px; line-height: 1.65; }
  .hero__cta { margin-top: 48px; gap: 12px; }
  .hero__note { margin-top: 24px; }
}
@media (min-width: 1180px) {
  .hero__body { max-width: 700px; }
  /* кружок — справа на уровне статуса, полоса шагов — справа на уровне строки под кнопками */
  .hero__side { display: flex; position: absolute; inset: 88px var(--in); flex-direction: column; justify-content: space-between; align-items: flex-end; pointer-events: none; }
  .hero__side > * { pointer-events: auto; }
  .hero__side .badge { display: grid; }
}

.after {
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.after__title { font: 500 .9375rem/1.3 var(--ff-text); color: var(--sand-hi); margin-bottom: 10px; }
.after__list { display: grid; gap: 0; }
.after__list li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9375rem; line-height: 1.35; color: rgba(255, 255, 255, .82); }
.after__t { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
@media (min-width: 1180px) {
  .after { width: min(680px, 52%); padding: 16px 8px; }
  .after__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .after__list { grid-template-columns: repeat(4, 1fr); }
  .after__list li { display: block; padding: 0 14px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; line-height: 1.35; }
  .after__list li:first-child { border-left: 0; }
  .after__t { display: block; margin-bottom: 4px; color: var(--sand-hi); font-size: .8125rem; }
}

.badge {
  position: relative; flex: none;
  width: 124px; height: 124px; border-radius: 50%;
  place-items: center;
  background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease);
}
.badge:hover { transform: scale(1.04); }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; font: 500 10.5px/1 var(--ff-text); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .badge__ring { animation: spin 24s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }
.badge__ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--sand-hi); }
.badge__ico svg { width: 22px; height: 22px; }

/* модальное окно «Перезвоните мне» */
.modal { padding: 0; border: 0; background: transparent; color: var(--ink); width: min(520px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: visible; }
.modal::backdrop { background: rgba(14, 15, 18, .56); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__card { position: relative; margin: 0; padding: 32px 24px 24px; border-radius: var(--r-xl); background: #fff; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
@media (min-width: 520px) { .modal__card { padding: 40px 36px 32px; } }
.modal__x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--stone); display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease); }
.modal__x:hover { background: var(--stone-2); }
.modal__x svg { width: 20px; height: 20px; transform: rotate(45deg); }
.modal__title { margin-top: 4px; padding-right: 52px; font: 400 clamp(1.6rem, 1.3rem + 1vw, 2rem)/1.1 var(--ff-display); letter-spacing: -.025em; }
.modal__lead { margin-top: 12px; color: var(--ink-2); line-height: 1.5; }
.modal .chips { margin: 22px 0 14px; }
.modal .callback__row { display: grid; gap: 10px; }
/* скрытые части форм (после отправки) не должны проявляться из-за display: grid/flex */
.modal [hidden], .cost [hidden], .callnow [hidden] { display: none !important; }
.modal .callback__row { grid-template-columns: 1fr; }
.modal .callback__row .pill { width: 100%; }
.modal .field { min-height: 60px; font-size: 1.125rem; }
.modal__or { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; color: var(--ink-3); font-size: .875rem; }
.modal__or::before, .modal__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.modal__call {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 12px; border-radius: 999px;
  background: var(--stone); color: var(--ink); text-decoration: none;
  transition: background-color .25s var(--ease);
}
.modal__call:hover { background: var(--stone-2); }
.modal__call-ico { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sand); }
.modal__call-ico svg { width: 22px; height: 22px; }
.modal__call-txt { display: grid; gap: 2px; margin-right: auto; }
.modal__call-txt span { font-size: .875rem; color: var(--ink-2); line-height: 1.3; }
.modal__call-txt b { font: 600 1.375rem/1.15 var(--ff-text); letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.modal__call-go { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; transition: transform .35s var(--ease); }
.modal__call-go svg { width: 20px; height: 20px; }
.modal__call:hover .modal__call-go { transform: rotate(-12deg); }
@media (max-width: 380px) { .modal__call-go { display: none; } .modal__call-txt b { font-size: 1.2rem; } }
.modal__fine { margin-top: 14px; }
.modal .modal__done { margin-top: 20px; padding: 0; background: none; border-radius: 0; display: grid; gap: 10px; justify-items: start; line-height: 1.5; }
.modal__done .tel { font-weight: 600; text-decoration: underline; text-decoration-color: var(--sand); }
.modal__done .pill { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] .modal__card { animation: rise .35s var(--ease) both; }
  .modal[open]::backdrop { animation: fade .3s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.callback__row { display: grid; gap: 10px; }

.field {
  width: 100%; min-height: 56px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink);
  font: 500 1.0625rem/1 var(--ff-text); font-variant-numeric: tabular-nums;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field::placeholder { color: #9a9ca1; }
.field:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(207, 182, 143, .3); }
.field[aria-invalid="true"] { border-color: #c2414f; }
.field--dark { background: var(--dark-2); border-color: var(--dark-line); color: var(--on-dark); caret-color: var(--sand); }
.field--dark::placeholder { color: #7d7e83; }
.field--dark:focus { border-color: var(--sand); box-shadow: 0 0 0 4px rgba(207, 182, 143, .18); }
.done { margin-top: 10px; padding: 14px 18px; border-radius: var(--r-md); background: #fff; }
.done--dark { background: var(--dark-2); color: var(--on-dark); }
.ferr { margin-top: 8px; font-size: .875rem; color: #b3263a; }
.panel--dark .ferr { color: #f0a0ad; }
.ferr a { color: inherit; }

/* ---------- Цифры ---------- */
section.facts { margin-top: 40px; }
.facts__list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.facts__list li { display: grid; gap: 6px; align-content: start; }
.facts__list b { font: 300 clamp(2.4rem, 1.8rem + 2.4vw, 4rem)/1 var(--ff-display); color: var(--blue); letter-spacing: -.04em; font-variant-numeric: lining-nums; white-space: nowrap; }
.facts__list small { font-size: .38em; letter-spacing: 0; margin-left: .3em; color: var(--ink-3); font-weight: 400; }
.facts__list span { color: var(--ink-2); font-size: .9375rem; line-height: 1.4; max-width: 22ch; }
@media (min-width: 900px) {
  section.facts { margin-top: 64px; }
  .facts__list { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .facts__list li { padding: 0 clamp(12px, 2.2vw, 32px); border-left: 1px solid var(--line); text-align: center; justify-items: center; }
  /* цифра с подписью всегда в одну строку: размер растёт вместе с колонкой */
  .facts__list b { font-size: clamp(2.5rem, .9rem + 2.9vw, 4rem); }
  .facts__list li:first-child { border-left: 0; }
}

/* ---------- Что сделает агент ---------- */
.plan__in { display: grid; gap: 28px; }
.plan__photo { margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.plan__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.plan__list li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.plan__list li:last-child { border-bottom: 1px solid var(--line); }
.plan__n { font: 300 2.25rem/1 var(--ff-display); letter-spacing: -.03em; color: var(--blue); font-variant-numeric: tabular-nums; }
.plan__when { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--stone); font-size: .8125rem; color: var(--ink-2); }
.plan__title { margin-top: 12px; font: 400 clamp(1.3rem, 1.15rem + .6vw, 1.6rem)/1.15 var(--ff-display); letter-spacing: -.02em; }
.plan__text { margin-top: 8px; color: var(--ink-2); line-height: 1.55; max-width: 54ch; }
@media (min-width: 1000px) {
  .plan__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .plan__side { position: sticky; top: 112px; }
  .plan__photo { aspect-ratio: 6 / 5; width: 100%; }
  .plan__list li { grid-template-columns: 72px 1fr; padding: 28px 0; }
  .plan__list li:first-child { padding-top: 0; border-top: 0; }
  .plan__n { font-size: 2.75rem; }
}

/* тёмная полоса-итог под блоком */
.strip { margin-top: 16px; padding: 24px; border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); display: grid; gap: 14px; align-items: center; }
.strip__k { font-size: .9375rem; color: var(--sand); }
.strip__t { font: 400 clamp(1.15rem, 1rem + .5vw, 1.4rem)/1.3 var(--ff-display); letter-spacing: -.01em; max-width: 52ch; }
.strip .pill { justify-self: start; }
@media (min-width: 1000px) { .strip { grid-template-columns: 220px minmax(0, 1fr) auto; gap: 32px; padding: 30px 40px; } }
@media (max-width: 519px) { .strip .pill { width: 100%; } }

/* ---------- Акцентная форма ---------- */
.callnow__card { display: grid; overflow: hidden; border-radius: var(--r-xl); background: var(--dark); color: var(--on-dark); }
.callnow__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.callnow__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.callnow__body { padding: calc(var(--in) + 8px) var(--in); display: grid; justify-items: start; align-content: center; }
.chip--dark { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark-2); }
.callnow__body .h2 { margin-top: 22px; max-width: 16ch; }
.callnow__lead { margin-top: 18px; color: var(--on-dark-2); max-width: 50ch; line-height: 1.6; }
.callnow__num { margin-top: 28px; font: 300 min(clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem), 9.2vw)/1 var(--ff-display); letter-spacing: -.03em; color: #fff; }
.callnow__btn { margin-top: 22px; }
.callnow__form { margin-top: 32px; width: 100%; max-width: 560px; }
.callnow__or { margin-bottom: 14px; font-size: .9375rem; color: var(--on-dark-2); }
.callnow__form .callback__row { grid-template-columns: 1fr; }
@media (min-width: 560px) { .callnow__form .callback__row { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 519px) { .callnow__btn { width: 100%; } }
@media (min-width: 900px) {
  .callnow__card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .callnow__photo { aspect-ratio: auto; min-height: 100%; }
  .callnow__body { padding: 64px 56px; }
}

/* ---------- Где это случилось ---------- */
.now__head { display: grid; gap: 20px; margin-bottom: 36px; }
.now__aside { display: grid; gap: 18px; justify-items: start; color: var(--on-dark-2); max-width: 46ch; }
@media (min-width: 900px) { .now__head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 48px; } }

.sit { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--in) * -1); padding: 4px var(--in) 8px; scrollbar-width: none; }
.sit::-webkit-scrollbar { display: none; }
.sit__card {
  position: relative; flex: 0 0 72%; scroll-snap-align: start; scroll-margin-left: var(--in);
  aspect-ratio: 3 / 4; overflow: hidden; isolation: isolate;
  border: 0; border-radius: var(--r-lg); padding: 18px; cursor: pointer; text-align: left;
  background: var(--dark-3); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; align-items: start;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.sit__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s var(--ease); filter: saturate(.75) brightness(.85); }
.sit__card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .34) 30%, rgba(0, 0, 0, 0) 54%, rgba(0, 0, 0, .1) 72%, rgba(0, 0, 0, .5) 100%); }
/* тонкий контур поверх фото, чтобы края карточки не сливались с тёмным фоном */
.sit__card::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); pointer-events: none; }
.sit__card[aria-selected="true"]::before { box-shadow: none; }
.sit__card:hover img { transform: scale(1.04); }
.sit__num { justify-self: end; grid-row: 1; grid-column: 1; font-size: .875rem; opacity: .8; font-variant-numeric: tabular-nums; }
.sit__name { grid-row: 1; grid-column: 1; max-width: 12ch; padding-right: 32px; font: 400 clamp(1.4rem, 1.15rem + .9vw, 1.85rem)/1.08 var(--ff-display); letter-spacing: -.02em; }
.sit__go { grid-row: 3; justify-self: end; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); transition: transform .35s var(--ease), background-color .25s; }
.sit__go svg { width: 20px; height: 20px; }
.sit__card[aria-selected="true"] { box-shadow: 0 0 0 2px var(--dark), 0 0 0 4px var(--sand); }
.sit__card[aria-selected="true"] .sit__go { background: var(--sand); transform: rotate(90deg); }
.sit__card[aria-selected="true"] img { filter: none; }
@media (min-width: 640px) { .sit__card { flex-basis: 40%; } }
@media (min-width: 1000px) {
  .sit { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .sit__card { aspect-ratio: 4 / 5; padding: 22px; }
}

.memo { margin-top: 20px; padding: 24px 20px; border-radius: var(--r-lg); background: #fff; color: var(--ink); }
@media (min-width: 640px) { .memo { padding: 36px 40px; } }
/* телефон: памятка шире за счёт полей тёмной панели, кружки меньше — текстовая колонка не зажата */
@media (max-width: 639px) {
  .memo { margin-left: -12px; margin-right: -12px; padding: 22px 18px; }
  .memo__steps li { padding-left: 44px; }
  .memo__steps li::before { width: 30px; height: 30px; top: 13px; font-size: .875rem; }
}
@media (min-width: 1000px) { .memo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 56px; } .memo__panel { grid-column: 1; grid-row: 1; } .memo__cta { grid-column: 2; grid-row: 1; align-self: start; } }
.memo__title { font: 400 clamp(1.4rem, 1.15rem + 1vw, 2rem)/1.15 var(--ff-display); letter-spacing: -.02em; text-wrap: balance; max-width: 26ch; }
.memo__steps { counter-reset: s; margin-top: 18px; }
.memo__steps li { counter-increment: s; position: relative; padding: 14px 0 14px 52px; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; }
.memo__steps li:first-child { border-top: 0; }
.memo__steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--stone); color: var(--ink); font: 500 .9375rem/1 var(--ff-text); }
.memo__steps b { color: var(--ink); }
.memo__steps li.is-first::before { background: var(--sand); }
.memo__steps .tel { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: .2em; }
.memo__warn { margin-top: 8px; padding: 14px 18px; border-radius: var(--r-md); background: #f5efe5; color: var(--ink); font-size: .9375rem; line-height: 1.5; }
.memo__cta { margin-top: 24px; display: grid; gap: 12px; justify-items: start; }
.memo__cta p { color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 1000px) { .memo__cta { margin-top: 0; padding: 24px; border-radius: var(--r-md); background: var(--stone); } }
@media (max-width: 519px) { .memo__cta .pill { width: 100%; } }
.js .memo__panel[hidden] { display: none; }
html:not(.js) .memo__panel[hidden] { display: block; margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) { .js .memo__panel { animation: rise .45s var(--ease) both; } }

/* ---------- Комплекс прощания: шаги по порядку ---------- */
.steps__head { display: grid; gap: 4px; margin-bottom: 40px; }
.steps__head .lead { margin-top: 14px; }
@media (min-width: 1000px) {
  .steps__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: end; margin-bottom: 64px; }
  .steps__head .lead { margin-top: 0; }
}

/* телефон: шаги сверху вниз с вертикальной линией */
.flow { display: grid; }
.flow__step { position: relative; padding: 0 0 32px 64px; }
.flow__step::before { content: ''; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 1px; background: var(--line); }
.flow__step:last-child { padding-bottom: 0; }
.flow__step:last-child::before { display: none; }
.flow__n {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  font: 500 1.0625rem/1 var(--ff-display); font-variant-numeric: tabular-nums;
}
.flow__when { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--stone); font-size: .8125rem; color: var(--ink-2); }
.flow__title { margin-top: 12px; font: 400 clamp(1.3rem, 1.15rem + .5vw, 1.5rem)/1.15 var(--ff-display); letter-spacing: -.02em; }
.flow__text { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }

/* десктоп: шесть шагов в одну линию, соединены чертой */
@media (min-width: 1000px) {
  .flow { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
  .flow__step { padding: 68px 0 0; }
  .flow__step::before { left: 56px; right: -24px; top: 22px; bottom: auto; width: auto; height: 1px; }
  .flow__step:last-child { padding-bottom: 0; }
}

/* анимация: линия «перетекает» от шага к шагу, текущий шаг выделен песочным */
.flow__step::after {
  content: ''; position: absolute; left: 20.5px; top: 48px; bottom: 4px; width: 2px;
  background: var(--ink); transform: scaleY(0); transform-origin: top;
  transition: transform .7s cubic-bezier(.45, 0, .25, 1);
}
.flow__step:last-child::after { display: none; }
.flow__n { transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease); }
.flow__when { transition: background-color .45s var(--ease), color .45s var(--ease); }
.flow__title, .flow__text { transition: opacity .5s var(--ease), color .45s var(--ease); }
.flow.is-anim .flow__step:not(.is-done) .flow__n { background: #fff; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.flow.is-anim .flow__step:not(.is-done) .flow__title,
.flow.is-anim .flow__step:not(.is-done) .flow__text { opacity: .38; }
.flow.is-anim .flow__step.is-line::after { transform: none; }
.flow__step.is-current .flow__n { background: var(--sand); color: var(--ink); box-shadow: 0 0 0 7px rgba(207, 182, 143, .28); transform: scale(1.06); }
.flow__step.is-current .flow__when { background: #f1e8da; color: var(--bronze); }
@media (min-width: 1000px) {
  .flow__step::after { left: 56px; right: -24px; top: 21.5px; bottom: auto; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
}

.flow__photos { display: grid; gap: 12px; margin-top: 48px; }
.flow__photos .place { aspect-ratio: 16 / 10; }
@media (min-width: 640px) { .flow__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .flow__photos .place { aspect-ratio: 4 / 3; } }
@media (min-width: 1000px) { .flow__photos { margin-top: 64px; } }

/* ---------- Бюро ---------- */
.buro__grid { display: grid; gap: 12px; }
.place { position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3; isolation: isolate; color: #fff; }
.place img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.place:hover img { transform: scale(1.03); }
.place::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .45) 100%); }
.place__chip { position: absolute; top: 16px; left: 16px; }
/* фасад бюро: в кадре и здание, и машина у входа */
/* фасад бюро: фото целиком сверху, подпись полосой под ним — чтобы ничего не закрывало машину */
.buro .place--wide { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--dark); }
.buro .place--wide::after { display: none; }
.buro .place--wide img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 1606 / 979; object-position: 0% 50%; }
.buro .place--wide .place__cap {
  position: relative; left: auto; right: auto; bottom: auto;
  border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 16px 20px 18px;
}
@media (min-width: 1000px) {
  .buro .place--wide img { flex: 1 1 0; min-height: 0; height: auto; aspect-ratio: auto; }
  .buro .place--wide .place__cap { padding: 18px 24px 20px; }
}
.place__cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(20, 21, 24, .38); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: grid; gap: 4px;
}
.place__cap b { font: 500 1.25rem/1.2 var(--ff-display); letter-spacing: -.01em; }
.place__cap span { font-size: .875rem; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.buro__facts { margin: 0; display: grid; align-content: center; }
.buro__facts li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--stone-2); }
.buro__facts li:first-child { border-top: 0; padding-top: 0; }
.buro__facts li:last-child { padding-bottom: 0; }
.buro__facts b { font: 500 1.25rem/1.2 var(--ff-display); letter-spacing: -.01em; }
.buro__facts span { color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 1000px) { .buro__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; } .place--wide { aspect-ratio: auto; min-height: 480px; } }

.services { margin-top: 16px; }
.svc { display: grid; gap: 12px; }
.svc__item { padding: 24px; border-radius: var(--r-lg); background: #fff; text-align: center; display: grid; justify-items: center; gap: 8px; }
.svc__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink); margin-bottom: 6px; }
.svc__ico svg { width: 24px; height: 24px; }
.svc__item h3 { font: 500 1.1875rem/1.2 var(--ff-display); letter-spacing: -.01em; }
.svc__item p { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; max-width: 30ch; }
.svc__item--dark { background: var(--dark); color: var(--on-dark); }
.svc__item--dark p { color: var(--on-dark-2); }
@media (min-width: 640px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .svc { grid-template-columns: repeat(3, 1fr); gap: 16px; } .svc__item { padding: 36px 28px; } }
.center-cta { margin-top: 36px; display: flex; justify-content: center; }

/* ---------- Стоимость ---------- */
.cost { display: grid; gap: 12px; }
@media (min-width: 1000px) { .cost { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; } }
.cost__form { margin: 0; display: grid; align-content: start; }
.cost__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink); margin-bottom: 22px; }
.cost__ico svg { width: 24px; height: 24px; }
.cost__lead { margin-top: 14px; color: var(--on-dark-2); max-width: 46ch; }
.cost__row { display: grid; gap: 10px; }
@media (min-width: 640px) { .cost__row { grid-template-columns: minmax(0, 1fr) auto; } }
.chips { border: 0; padding: 0; margin: 26px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: .875rem; color: var(--on-dark-2); }
.chips legend span { opacity: .7; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips label span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--dark-line); font-size: .9375rem; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.chips input:checked + span { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.chips--light legend { color: var(--ink-2); }
.chips--light label span { border-color: var(--line); color: var(--ink); }
.chips--light label span:hover { border-color: #cfccc5; }

.promise { margin: 0; display: grid; align-content: center; gap: 0; }
.promise li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--stone-2); }
.promise li:first-child { border-top: 0; padding-top: 0; }
.promise li:last-child { padding-bottom: 0; }
.promise__ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); }
.promise__ico svg { width: 22px; height: 22px; }
.promise b { display: block; font: 500 1.125rem/1.25 var(--ff-display); letter-spacing: -.01em; }
.promise div span { display: block; margin-top: 4px; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }

/* ---------- Чёрные агенты ---------- */
.warn__in { display: grid; gap: 32px; background: #f5efe5; }
.warn__ico { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink); margin-bottom: 22px; }
.warn__ico svg { width: 24px; height: 24px; }
.warn__ico::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--sand); opacity: 0; }
.warn__head .h2 { max-width: 16ch; }
.warn__lead { margin-top: 18px; color: var(--ink-2); max-width: 52ch; }
.rules li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; gap: 16px; padding: 22px 0; align-items: center; }
.rules li::before, .rules li:last-child::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: #e2d7c5; transform-origin: left; }
.rules li::before { top: 0; }
.rules li:last-child::after { bottom: 0; }
.rules__n { font: 300 1.75rem/1 var(--ff-display); color: var(--blue); font-variant-numeric: tabular-nums; }
.rules p { font: 400 clamp(1.15rem, 1rem + .6vw, 1.5rem)/1.35 var(--ff-display); letter-spacing: -.01em; }
.rules__ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.rules__ico svg { width: 20px; height: 20px; }
.rules li:hover .rules__ico { background: var(--blue); color: #fff; transform: rotate(-8deg); }
.warn__in > .pill { justify-self: start; white-space: normal; text-align: left; }
@media (max-width: 639px) {
  .rules li { grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "n ico" "p p"; row-gap: 10px; padding: 20px 0; }
  .rules__n { grid-area: n; font-size: 1.375rem; }
  .rules__ico { grid-area: ico; width: 40px; height: 40px; }
  .rules p { grid-area: p; }
}
@media (min-width: 1000px) {
  /* кнопка — в левой колонке под текстом, пункты справа по центру высоты */
  .warn__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; column-gap: 72px; row-gap: 40px; }
  .warn__head { grid-column: 1; grid-row: 1; }
  .warn__in > .pill { grid-column: 1; grid-row: 2; align-self: start; }
  .rules { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
/* Анимация: линии прочерчиваются, пункты появляются по очереди, иконки дорисовываются; значок щита мягко «дышит» */
@media (prefers-reduced-motion: no-preference) {
  .warn.is-anim .rules li::before, .warn.is-anim .rules li:last-child::after { transform: scaleX(0); transition: transform .9s var(--ease); }
  .warn.is-anim .rules__n, .warn.is-anim .rules p { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .warn.is-anim .rules__ico { opacity: 0; transform: scale(.6); transition: opacity .6s var(--ease), transform .6s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }
  .warn.is-anim .rules__ico use { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.2s var(--ease); }
  .warn.is-in .rules li::before, .warn.is-in .rules li:last-child::after { transform: none; }
  .warn.is-in .rules__n, .warn.is-in .rules p, .warn.is-in .rules__ico { opacity: 1; transform: none; }
  .warn.is-in .rules__ico use { stroke-dashoffset: 0; }
  .warn.is-in .rules li:nth-child(1) > *, .warn.is-in .rules li:nth-child(1)::before { transition-delay: .1s; }
  .warn.is-in .rules li:nth-child(2) > *, .warn.is-in .rules li:nth-child(2)::before { transition-delay: .35s; }
  .warn.is-in .rules li:nth-child(3) > *, .warn.is-in .rules li:nth-child(3)::before { transition-delay: .6s; }
  .warn.is-in .rules li:last-child::after { transition-delay: .85s; }
  .warn.is-in .rules li:nth-child(1) .rules__ico use { transition-delay: .4s; }
  .warn.is-in .rules li:nth-child(2) .rules__ico use { transition-delay: .65s; }
  .warn.is-in .rules li:nth-child(3) .rules__ico use { transition-delay: .9s; }
  .warn.is-in .rules li:hover .rules__ico { transform: rotate(-8deg); transition-delay: 0s; }
  .warn__ico::after { animation: warnring 3.2s ease-out infinite; }
}

/* ---------- Вопросы ---------- */
.faq { display: grid; gap: 32px; }
.faq__side .pill { margin-top: 28px; }
@media (min-width: 1000px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; } .faq__side { position: sticky; top: 120px; } }
.qa { display: grid; gap: 8px; }
.qa__item { border-radius: var(--r-md); background: var(--blue-soft); transition: background-color .25s var(--ease); }
.qa__item[open] { background: #e3e8f4; }
.qa__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 18px 18px 24px; font: 500 1.0625rem/1.35 var(--ff-text); }
.qa__item summary::-webkit-details-marker { display: none; }
.qa__ico { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); transition: transform .35s var(--ease), background-color .25s; }
.qa__ico svg { width: 20px; height: 20px; }
.qa__item[open] .qa__ico { transform: rotate(45deg); background: var(--blue); color: #fff; }
.qa__item p { padding: 0 64px 22px 24px; color: var(--ink-2); line-height: 1.55; max-width: 64ch; }

/* ---------- Финал ---------- */
.close__card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--dark); color: var(--on-dark); padding: calc(var(--in) + 8px) var(--in) 0; }
.close__top { display: grid; gap: 40px; }
@media (min-width: 1000px) { .close__card { padding-top: 72px; } .close__top { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; } }
.close__call { display: grid; justify-items: start; align-content: start; gap: 18px; }
.close__call .h2 { max-width: 18ch; }
.close__num { font: 300 min(clamp(2.2rem, 1.6rem + 2.6vw, 3.8rem), 9.2vw)/1 var(--ff-display); letter-spacing: -.03em; color: #fff; }
.close__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
@media (max-width: 519px) { .close__btns .pill { width: 100%; } }
.contacts li { padding: 16px 0; border-top: 1px solid var(--dark-line); }
.contacts li:last-child { border-bottom: 1px solid var(--dark-line); }
.contacts__k { color: var(--on-dark-2); font-size: .875rem; }
.contacts__v { display: inline-block; margin-top: 4px; font-weight: 500; font-size: 1.125rem; color: #fff; text-decoration: none; }
a.contacts__v:hover { text-decoration: underline; text-decoration-color: var(--sand); }
.contacts__s { margin-top: 4px; color: var(--on-dark-2); font-size: .875rem; }
.contacts__s a { color: var(--on-dark); }
/* карта с адресом бюро */
.close__map { position: relative; margin-top: 48px; border-radius: var(--r-lg); overflow: hidden; background: #2a2b2f; display: grid; }
.close__mapcanvas { position: relative; z-index: 0; width: 100%; height: 300px; background: #e9e7e2; }
.close__mapcanvas .leaflet-tile-pane { filter: grayscale(.35) contrast(.97); }
.close__map:not(.is-live) .close__mapcanvas { pointer-events: none; }
.close__map:not(.is-live) { cursor: pointer; }
.close__maphint { z-index: 2; position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: rgba(20, 21, 24, .72); color: #fff; font-size: .8125rem; opacity: 0; transition: opacity .25s var(--ease); pointer-events: none; }
.close__map:not(.is-live):hover .close__maphint { opacity: 1; }
.close__mapcard { background: #fff; color: var(--ink); padding: 20px 22px; display: grid; gap: 4px; }
.close__mapk { font-size: .875rem; color: var(--ink-3); }
.close__mapv { font: 500 1.25rem/1.25 var(--ff-display); letter-spacing: -.01em; }
.close__maps { color: var(--ink-2); font-size: .9375rem; }
.close__mapbtns { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
@media (min-width: 760px) {
  .close__map { display: block; }
  .close__mapcanvas { height: 440px; }
  .close__mapcard { position: absolute; z-index: 2; left: 20px; top: 20px; max-width: 380px; border-radius: var(--r-md); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45); }
}
@media (min-width: 1000px) { .close__map { margin-top: 64px; } }

.close__legal {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin: 56px calc(var(--in) * -1) 0; padding: 24px var(--in) 26px;
  border-top: 1px solid var(--dark-line);
  font-size: .8125rem; color: var(--on-dark-2);
}
.close__brand { display: flex; align-items: center; gap: 6px; margin-right: auto; text-decoration: none; }
.close__brand img:first-of-type { height: 40px; width: auto; }
.close__brand img:last-of-type { height: 30px; width: auto; }
@media (min-width: 1000px) { .close__legal { margin-top: 72px; } }
.close__legal a { color: var(--on-dark); }

/* ---------- Плавающая кнопка звонка: всегда на экране ---------- */
.fab {
  position: fixed; z-index: 60;
  right: calc(36px + env(safe-area-inset-right)); bottom: calc(36px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px;
  color: var(--ink); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.fab__btn {
  position: relative; flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand); color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 18px 36px -12px rgba(0, 0, 0, .55);
  transition: transform .35s var(--ease), background-color .25s var(--ease);
}
.fab__btn svg { position: relative; z-index: 1; width: 28px; height: 28px; transform-origin: 50% 50%; }
.fab__btn::before, .fab__btn::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  opacity: 0; pointer-events: none; will-change: transform, opacity;
}
.fab__btn::before { border: 3px solid var(--sand); }
.fab__btn::after { background: var(--sand); }
.fab:hover .fab__btn { transform: scale(1.06); background: var(--sand-hi); }
.fab:active .fab__btn { transform: scale(.97); }
.fab__label {
  display: grid; gap: 2px;
  padding: 10px 18px 11px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45);
  white-space: nowrap;
  opacity: 0; transform: translateX(14px) scale(.96); transform-origin: right center;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.fab.is-open .fab__label, .fab:hover .fab__label, .fab:focus-visible .fab__label { opacity: 1; transform: none; pointer-events: auto; }
.fab__k { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--ink-2); }
.fab__k .chip__dot { width: 7px; height: 7px; }
.fab__n { font: 600 1.0625rem/1.2 var(--ff-text); letter-spacing: -.005em; font-variant-numeric: tabular-nums; }
.fab:focus-visible { outline: none; }
.fab:focus-visible .fab__btn { outline: 2px solid var(--ink); outline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .fab__btn::before { animation: fabring 1.8s ease-out infinite; }
  .fab__btn::after { animation: fabglow 1.8s ease-out .9s infinite; }
  .fab__btn svg { animation: fabcall 3.2s ease-in-out infinite; }
}
/* мерцание: кольцо расходится, за ним волна света, трубка «звонит»; только transform и opacity — без перерисовки страницы */
@keyframes warnring { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes fabring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes fabglow { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes fabcall {
  0%, 62%, 100% { transform: rotate(0); }
  66% { transform: rotate(-16deg); } 70% { transform: rotate(16deg); }
  74% { transform: rotate(-12deg); } 78% { transform: rotate(12deg); }
  82% { transform: rotate(-6deg); } 86% { transform: rotate(0); }
}
@media (max-width: 559px) {
  .fab { right: calc(24px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); gap: 10px; }
  .fab__btn { width: 60px; height: 60px; }
  .fab__label { padding: 9px 14px 10px; }
  .fab__n { font-size: 1rem; }
}
/* подвал без пустоты снизу; строка реквизитов по краям контента — плавающая кнопка прячется, когда подвал на экране */
.close { margin-bottom: var(--pad); }
.fab { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.fab.is-away { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* самые узкие телефоны (320): «30–60 минут» в заголовке не распирает карточку */
@media (max-width: 359px) { .hero__title { font-size: 2rem; } }
/* шапка на самых узких телефонах (320) — кнопка не вылезает за край */
@media (max-width: 349px) {
  .top__in { gap: 10px; }
  .top__call .pill--sm { padding-left: 14px; font-size: .875rem; gap: 8px; }
}
@media (max-height: 500px) and (max-width: 899px) {
  .fab { right: calc(24px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); }
  .fab__btn { width: 52px; height: 52px; }
  .top__in { min-height: 56px; }
  .hero__body { padding-top: 72px; }
  .hero__title { font-size: 2rem; }
}

/* карта: шрифт подписей и атрибуция в стиле сайта */
.close__mapcanvas .leaflet-control-attribution { font: 11px/1.4 var(--ff-text); background: rgba(255, 255, 255, .85); }
.close__mapcanvas .leaflet-bar a { width: 36px; height: 36px; line-height: 34px; color: var(--ink); }
.close__mapcanvas .leaflet-bar { border: 0; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); border-radius: 12px; overflow: hidden; }

/* метка бюро на карте 2ГИС */
.mappin { background: none; border: 0; }
.mappin span { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(207, 182, 143, .55), 0 8px 18px -6px rgba(0, 0, 0, .5); }
.mappin span::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--sand); }

/* ---------- Служебные страницы: политика, согласие, 404 ---------- */
.doc-top .top__in { min-height: 64px; }
.doc-back { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--ink-2); text-decoration: none; }
.doc-back:hover { color: var(--blue); }
.doc-back svg { width: 18px; height: 18px; transform: rotate(-135deg); }
.doc { padding-top: 32px; padding-bottom: var(--gap); }
.doc__in { max-width: 820px; }
.doc h1 { font: 400 clamp(1.9rem, 1.4rem + 2vw, 3rem)/1.1 var(--ff-display); letter-spacing: -.03em; text-wrap: balance; }
.doc__meta { margin-top: 14px; color: var(--ink-3); font-size: .9375rem; }
.doc h2 { margin-top: 44px; font: 500 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.25 var(--ff-display); letter-spacing: -.01em; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.65; }
.doc p { margin-top: 14px; }
.doc ul, .doc ol { margin-top: 12px; padding-left: 1.3em; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin-top: 6px; padding-left: 4px; }
.doc li::marker { color: var(--blue); }
.doc a { color: var(--blue); }
.doc__card { margin-top: 24px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--blue-soft); }
.doc__card p { margin-top: 4px; color: var(--ink); }
.doc__card p:first-child { margin-top: 0; }
.doc-foot { padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-3); }
.doc-foot__in { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.doc-foot a { color: var(--ink-2); }

.nf { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: grid; place-items: center; padding-top: 40px; padding-bottom: 60px; text-align: center; }
.nf__code { font: 300 clamp(5rem, 3rem + 10vw, 10rem)/1 var(--ff-display); letter-spacing: -.05em; color: var(--blue); }
.nf h1 { margin-top: 12px; font: 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1.15 var(--ff-display); letter-spacing: -.02em; }
.nf p { margin: 14px auto 0; max-width: 46ch; color: var(--ink-2); }
.nf__btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Уведомление о cookie ---------- */
.cookie { position: fixed; z-index: 70; left: calc(12px + env(safe-area-inset-left)); bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 440px; width: calc(100% - 24px); display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 18px 50px -18px rgba(20, 21, 24, .35), 0 0 0 1px var(--line); font-size: .875rem; line-height: 1.45; }
.cookie[hidden] { display: none; }
.cookie p { flex: 1; color: var(--ink-2); }
.cookie a { color: var(--blue); }
.cookie__ok { flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; cursor: pointer; }
.cookie__ok:hover { background: #2a2b30; }
/* телефон: справа место под плавающую кнопку звонка */
@media (max-width: 639px) { .cookie { width: auto; right: calc(96px + env(safe-area-inset-right)); padding: 12px 12px 12px 14px; gap: 10px; } .cookie__ok { padding: 0 14px; } }
@media (min-width: 640px) { .cookie { left: calc(24px + env(safe-area-inset-left)); bottom: calc(24px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: no-preference) { .cookie:not([hidden]) { animation: rise .45s var(--ease) both; } }

/* ---------- Окно при уходе с сайта ---------- */
.modal--exit { width: min(1040px, calc(100vw - 24px)); }
.exit { padding: 0; display: grid; overflow-x: hidden; }
.exit__photo { height: 210px; overflow: hidden; }
.exit__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 12%; }
.exit__body { padding: 22px 22px 22px; }
.exit__chip { background: var(--blue-soft); color: var(--blue); }
.exit .modal__title { margin-top: 14px; }
.exit__list { margin-top: 16px; display: grid; gap: 8px; }
.exit__list li { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--ink); }
.exit__list svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: var(--sand); color: var(--ink); }
.exit .callback__row { margin-top: 20px; }
.exit .modal__call { margin-top: 10px; }
.exit .modal__x { background: rgba(255, 255, 255, .9); }
@media (min-width: 760px) {
  .exit { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); }
  .exit__photo { height: auto; }
  .exit__body { padding: 36px 36px 30px; }
}
@media (max-height: 700px) and (max-width: 759px) { .exit__photo { display: none; } }

/* ® у логотипа — небольшой, у правого верхнего края надписи */
.brand, .close__brand { position: relative; }
.brand__r { align-self: flex-start; margin-left: -2px; margin-top: 2px; font: 500 9px/1 var(--ff-text); color: var(--blue); }
.close__brand .brand__r { color: var(--on-dark-2); }
@media (min-width: 1180px) { .brand__r { font-size: 10px; } }

/* подвал: логотип слева; справа документы и строка реквизитов */
.close__docs { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.close__docs a { color: var(--on-dark); }
.close__req { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--on-dark-2); font-size: .8125rem; }
@media (max-width: 999px) { .close__legal { flex-direction: column; align-items: flex-start; } }
@media (min-width: 1000px) {
  .close__legal { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 40px; row-gap: 8px; align-items: center; }
  .close__brand { grid-row: 1 / span 2; margin-right: 0; }
  .close__docs, .close__req { justify-content: flex-end; text-align: right; }
}

/* фокус при открытии окна ставится на заголовок — без обводки (иначе Safari обводит крестик) */
.modal__title[tabindex="-1"]:focus { outline: none; }

/* логотип в подвале — как в шапке */
@media (min-width: 1180px) { .close__brand img:first-of-type { height: 48px; } .close__brand img:last-of-type { height: 36px; } .close__brand .brand__r { font-size: 10px; } }
