/* ==========================================================================
   Первая линия — агентство инвестиционной недвижимости, Анапа
   Дизайн-система по мотивам whitewill.ru, палитра из логотипа агентства
   ========================================================================== */

/* шрифты — свой хостинг (кириллица + латиница), без передачи данных в Google */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* фон и поверхности — глубокий индиго логотипа */
  --bg: #0e0b1e;
  --bg-2: #130f28;
  --card: #1a1534;
  --card-2: #221c42;
  --line: rgba(201, 174, 106, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);

  /* акценты логотипа */
  --gold: #c9ae6a;
  --gold-hi: #eadc8c;
  --gold-lo: #8c7249;
  --gold-grad: linear-gradient(180deg, #eadc8c 0%, #c4a965 50%, #8c7249 100%);
  --gold-grad-h: linear-gradient(90deg, #eadc8c 0%, #c4a965 45%, #9c8052 100%);
  --coral: #e6456a;
  --coral-soft: #e8a090;
  --indigo: #3a2c80;
  --violet: #5b5ba8;
  --plum: #401e5c;

  /* светлая контрастная секция */
  --cream: #f3eee4;
  --cream-2: #e9e1d2;
  --ink: #0e0b1e;
  --ink-muted: rgba(14, 11, 30, 0.66);

  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.46);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura PT", "Century Gothic", system-ui, -apple-system, sans-serif;

  --container: 1300px;
  --gutter: 16px;
  --radius: 3px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- типографика ---------- */
.h-display,
.h2,
.h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.04;
}
.h-display { font-size: clamp(38px, 6.2vw, 88px); font-weight: 300; }
.h2 { font-size: clamp(32px, 4.6vw, 58px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; }
.h-display .indent { display: block; padding-left: 0.9em; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--muted); font-weight: 300; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }
.src { font-size: 12px; color: var(--faint); line-height: 1.45; }
.src a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,.25); }
.src a:hover { color: var(--gold); }
.fill {
  /* незаполненные данные — видно сразу, легко найти поиском по [ЗАПОЛНИТЬ] */
  display: inline;
  background: rgba(230, 69, 106, 0.14);
  color: #ff9fb4;
  border-radius: 2px;
  padding: 0 4px;
  font-size: 0.92em;
}

/* ---------- кнопки ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 28px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-grad-h); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(201, 174, 106, 0.6); }
.btn--gold:hover { box-shadow: 0 14px 40px -10px rgba(234, 220, 140, 0.7); filter: brightness(1.06); }
.btn--ghost { border: 1px solid rgba(201, 174, 106, 0.55); color: var(--gold-hi); }
.btn--ghost:hover { background: rgba(201, 174, 106, 0.1); border-color: var(--gold); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: #fff; }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--indigo); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid rgba(201,174,106,.4); padding-bottom: 3px;
}
.link-arrow:hover { color: var(--gold-hi); border-color: var(--gold-hi); }
@media (max-width: 480px) { .btn { white-space: normal; padding: 0 20px; } }

/* ---------- секции ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--alt { background: var(--bg-2); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--cream .muted, .section--cream .lead { color: var(--ink-muted); }
.section--cream .eyebrow { color: var(--gold-lo); }
.section--cream .src { color: rgba(14,11,30,.5); }
.section-head {
  display: grid;
  gap: 20px 60px;
  margin-bottom: clamp(36px, 5vw, 64px);
  align-items: end;
}
.section-head .eyebrow { margin-bottom: 18px; }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1.15fr 1fr; }
  .section-head--stack { grid-template-columns: 1fr; max-width: 900px; }
}
.divider { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background 0.35s var(--ease), height 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  --header-h: 68px;
  background: rgba(14, 11, 30, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-soft);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo { flex: none; }
.header__logo img { height: 40px; width: auto; }
.header.is-scrolled .header__logo img { height: 34px; }
.nav { display: none; gap: 30px; margin-left: auto; }
.nav a { font-size: 14px; color: rgba(255,255,255,.86); letter-spacing: 0.02em; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--gold); transition: right .3s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after { right: 0; }
.header__right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header__social { display: none; gap: 12px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  transition: border-color .25s, background .25s;
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn:hover { border-color: var(--gold); background: rgba(201,174,106,.12); }
.header__phone { display: none; text-align: right; line-height: 1.2; }
.header__phone a { font-size: 17px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.header__phone span { display: block; font-size: 11px; color: var(--faint); margin-top: 3px; }
.header__cta { display: none; }
.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 1.5px; background: #fff; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (min-width: 640px) { .header__phone { display: block; } }
@media (min-width: 1180px) {
  .nav { display: flex; }
  .header__right { margin-left: 28px; }
  .header__social { display: flex; }
  .burger { display: none; }
}
@media (min-width: 1360px) { .header__cta { display: inline-flex; } }
@media (max-width: 400px) { .header__logo img { height: 32px; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(14, 11, 30, 0.98);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a { font-family: var(--serif); font-size: 30px; text-transform: uppercase; letter-spacing: .03em; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 16px; }
.mobile-menu__foot .phone { font-size: 22px; font-weight: 500; }

/* ---------- первый экран ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) 0 0;
  isolation: isolate;
  overflow: hidden;
}
.hero__wall {
  position: absolute; left: 0; right: 0; top: 0; height: min(72vh, 680px); z-index: -2;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 2px;
}
.hero__wall img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 12%;
  filter: saturate(0.6) contrast(1.05) brightness(0.78);
}
.hero__wall img:nth-child(n+5) { display: none; }
@media (min-width: 640px) { .hero__wall img:nth-child(n+5) { display: block; } .hero__wall img:nth-child(n+7) { display: none; } }
@media (min-width: 1024px) { .hero__wall img:nth-child(n+7) { display: block; } }
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: min(72vh, 680px); z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,11,30,.78) 0%, rgba(14,11,30,.1) 20%, rgba(14,11,30,.15) 45%, rgba(14,11,30,.85) 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(58,44,128,.45), rgba(58,44,128,.1) 45%, rgba(230,69,106,.14));
}
.hero { min-height: auto; padding-top: calc(min(72vh, 680px) - 250px); }
@media (max-width: 959px) { .hero { padding-top: calc(min(42vh, 380px) - 60px); } .hero__wall, .hero::before { height: min(42vh, 380px); } }
.hero__caption { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 14px); font-size: 11px; color: var(--faint); }
.hero__content { display: grid; gap: 28px; padding-bottom: 28px; }
.hero__title { max-width: none; }
.hero__aside { display: grid; gap: 24px; align-content: end; }
.hero__aside .lead { color: rgba(255,255,255,.88); max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__seal {
  position: absolute; left: calc(var(--gutter) - 6px); top: -110px;
  width: 128px; height: 128px; display: none;
}
.hero__seal svg { width: 100%; height: 100%; animation: spin 38s linear infinite; }
.hero__seal-core { position: absolute; inset: 0; display: grid; place-items: center; }
.hero__seal-core img { width: 46px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__seal svg { animation: none; } }
@media (min-width: 960px) {
  .hero__content { grid-template-columns: 1.25fr 1fr; align-items: end; gap: 60px; position: relative; padding-bottom: 40px; }
  .hero__seal { display: block; }
}

.trust {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-soft);
  margin-top: 8px;
}
.trust__item { padding: 20px 16px 22px 0; display: grid; gap: 6px; }
.trust__item + .trust__item { padding-left: 16px; border-left: 1px solid var(--line-soft); }
.trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
.trust__item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
.trust__num { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1; color: var(--gold-hi); }
.trust__txt { font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (min-width: 960px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
  .trust__item { padding: 26px 24px 30px; }
  .trust__item:first-child { padding-left: 0; }
  .trust__item:nth-child(3) { padding-left: 24px; border-left: 1px solid var(--line-soft); }
  .trust__item:nth-child(n+3) { border-top: 0; }
}

/* ---------- панель быстрого подбора (аналог поиска whitewill) ---------- */
.quickbar {
  display: grid; gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 8px 0 0;
}
.quickbar__field { background: #fff; color: var(--ink); position: relative; }
.quickbar__field label { position: absolute; left: 18px; top: 9px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(14,11,30,.5); pointer-events: none; }
.quickbar select {
  width: 100%; height: 60px; border: 0; background: transparent; appearance: none; -webkit-appearance: none;
  padding: 20px 40px 4px 18px; font-size: 15px; color: var(--ink); cursor: pointer;
}
.quickbar__field::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--gold-lo); border-bottom: 1.5px solid var(--gold-lo); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.quickbar .btn { border-radius: 0; min-height: 60px; }
@media (min-width: 900px) { .quickbar { grid-template-columns: 1fr 1fr 1fr 220px; } }

/* ---------- плитки сегментов ---------- */
.tiles { display: grid; gap: 12px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(6, 1fr); } .tile { grid-column: span 2; } .tile--wide { grid-column: span 3; } }
.tile {
  position: relative; min-height: 220px;
  background: var(--card); border: 1px solid var(--line-soft);
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  overflow: hidden; text-align: left; width: 100%;
  transition: border-color .3s, transform .4s var(--ease);
}
.tile::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,91,168,.35), transparent 70%);
  transition: transform .5s var(--ease);
}
.tile:hover { border-color: var(--line); }
.tile:hover::after { transform: scale(1.3); }
.tile__num { font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.tile__title { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); text-transform: uppercase; line-height: 1.1; letter-spacing: .02em; position: relative; z-index: 1; }
.tile__text { font-size: 14px; color: var(--muted); position: relative; z-index: 1; }
.tile__more { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); position: relative; z-index: 1; display: inline-flex; gap: 8px; align-items: center; }
.tile[aria-expanded="true"] { border-color: var(--gold); }

.strategy {
  margin-top: 12px; background: linear-gradient(135deg, rgba(58,44,128,.45), rgba(26,21,52,1));
  border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px);
  display: grid; gap: 24px;
}
.strategy[hidden] { display: none; }
.strategy__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .strategy { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.strategy dl { display: grid; gap: 14px; }
.strategy dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.strategy dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- лид-магнит: закрытый портфель ---------- */
.portfolio { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .portfolio { grid-template-columns: 1fr 1.05fr; gap: 80px; } }
.portfolio__list { display: grid; gap: 14px; margin: 28px 0 32px; }
.portfolio__list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--muted); }
.portfolio__list li::before { content: ""; width: 20px; height: 1px; background: var(--gold); margin-top: 12px; }
.portfolio__list b { color: #fff; font-weight: 500; }

.book-stage { position: relative; min-height: 440px; perspective: 1600px; display: grid; place-items: center; }
.book-stage__cards { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; opacity: .9; }
.book-stage__cards > div {
  background: var(--card); border: 1px solid var(--line-soft); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
}
.book-stage__cards > div::before { content: ""; position: absolute; inset: 0 0 45% 0; background: linear-gradient(135deg, #2a2352, #3b2e6e 55%, #6b3a63); }
.book-stage__cards span { display: block; height: 8px; background: rgba(255,255,255,.2); margin-top: 8px; border-radius: 4px; filter: blur(2px); position: relative; }
.book-stage__cards span:nth-child(2) { width: 60%; }
.book-stage__cards span.g { background: rgba(201,174,106,.55); width: 40%; }
.book-stage__cards { filter: blur(3px); }
.book-stage__lock { position: absolute; top: 14px; right: 14px; z-index: 3; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--coral); color: #fff; padding: 6px 10px; border-radius: 2px; }
.book {
  position: relative; z-index: 2;
  width: min(300px, 70vw); aspect-ratio: 210 / 297;
  transform: rotateY(-22deg) rotateX(8deg) rotateZ(-6deg);
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.6));
}
.book-stage:hover .book { transform: rotateY(-10deg) rotateX(4deg) rotateZ(-3deg); }
.book__cover {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(230,69,106,.35), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(91,91,168,.55), transparent 60%),
    linear-gradient(160deg, #211a45, #0e0b1e 70%);
  border: 1px solid rgba(201,174,106,.45);
  padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between;
}
.book__cover::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201,174,106,.25); pointer-events: none; }
.book__spine { position: absolute; top: 0; bottom: 0; left: 0; width: 18px; transform: rotateY(90deg) translateZ(-9px) translateX(-9px); background: #0a0817; }
.book__logo { width: 44px; }
.book__title { font-family: var(--serif); text-transform: uppercase; font-size: 30px; line-height: 1; letter-spacing: .03em; }
.book__sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.book__meta { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; border-top: 1px solid rgba(201,174,106,.3); padding-top: 10px; }

/* ---------- формы ---------- */
.form { display: grid; gap: 12px; }
.form--row { }
@media (min-width: 720px) { .form--row { grid-template-columns: 1fr 1fr; } .form--row .form__full { grid-column: 1 / -1; } }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; height: 58px; padding: 22px 16px 6px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.16);
  transition: border-color .2s, background .2s;
  font-size: 16px;
}
.field textarea { height: auto; min-height: 100px; resize: vertical; }
.field label { position: absolute; left: 16px; top: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); pointer-events: none; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.06); }
.field.is-invalid input { border-color: var(--coral); }
.section--cream .field input, .popup--light .field input { background: #fff; border-color: rgba(14,11,30,.14); color: var(--ink); }
.section--cream .field label, .popup--light .field label { color: rgba(14,11,30,.5); }
.messengers { display: grid; gap: 8px; }
.messengers__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.messengers__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 40px;
  border: 1px solid rgba(255,255,255,.18); font-size: 14px; cursor: pointer; transition: all .2s;
}
.chip input:checked + span { border-color: var(--gold); background: rgba(201,174,106,.16); color: var(--gold-hi); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.section--cream .chip span, .popup--light .chip span { border-color: rgba(14,11,30,.18); }
.section--cream .chip input:checked + span, .popup--light .chip input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.section--cream .messengers__label { color: rgba(14,11,30,.5); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 12px; line-height: 1.45; color: var(--faint); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); }
.consent a { text-decoration: underline; }
.consent.is-invalid { color: #ff9fb4; }
.section--cream .consent { color: rgba(14,11,30,.6); }
.form__error { display: none; font-size: 13px; color: #ff9fb4; }
.form__error.is-visible { display: block; }
.form__note { font-size: 12px; color: var(--faint); }

/* ---------- калькулятор-квиз ---------- */
.quiz {
  background: #fff; color: var(--ink);
  border-radius: 4px; box-shadow: 0 40px 80px -40px rgba(14,11,30,.45);
  overflow: hidden;
}
.quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 4vw, 44px); border-bottom: 1px solid rgba(14,11,30,.08); }
.quiz__step-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lo); white-space: nowrap; }
.quiz__progress { flex: 1; height: 3px; background: rgba(14,11,30,.08); border-radius: 3px; overflow: hidden; max-width: 420px; }
.quiz__progress i { display: block; height: 100%; width: 0; background: var(--gold-grad-h); transition: width .45s var(--ease); }
.quiz__body { padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 44px); min-height: 380px; }
.quiz__q { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 8px; }
.quiz__hint { color: var(--ink-muted); margin-bottom: 28px; font-size: 15px; }
.quiz__opts { display: grid; gap: 10px; }
@media (min-width: 720px) { .quiz__opts { grid-template-columns: repeat(2, 1fr); } }
.opt {
  text-align: left; width: 100%;
  border: 1px solid rgba(14,11,30,.14); border-radius: 4px; padding: 18px 20px;
  display: grid; grid-template-columns: 1fr 22px; gap: 4px 12px; align-items: center;
  transition: border-color .2s, background .2s, transform .2s;
  background: #fff; color: var(--ink);
}
.opt:hover { border-color: var(--gold); background: #fdfbf6; }
.opt b { font-weight: 500; font-size: 17px; }
.opt small { grid-column: 1; color: var(--ink-muted); font-size: 13px; line-height: 1.4; }
.opt::after { content: ""; grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(14,11,30,.25); transition: all .2s; }
.opt.is-active { border-color: var(--ink); background: #f7f3ea; }
.opt.is-active::after { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 40%, transparent 45%); }
.range { display: grid; gap: 16px; max-width: 640px; }
.range__value { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.range__value small { font-family: var(--sans); font-size: 16px; color: var(--ink-muted); margin-left: 6px; }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; }
.range input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--gold) var(--p, 20%), rgba(14,11,30,.12) var(--p, 20%)); border-radius: 4px; }
.range input[type="range"]::-moz-range-track { height: 4px; background: rgba(14,11,30,.12); border-radius: 4px; }
.range input[type="range"]::-moz-range-progress { height: 4px; background: var(--gold); }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); border: 4px solid var(--cream); box-shadow: 0 0 0 1px var(--ink); margin-top: -12px; cursor: grab; }
.range input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--cream); cursor: grab; }
.range__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }
.range__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.range__presets button { height: 34px; padding: 0 14px; border-radius: 30px; border: 1px solid rgba(14,11,30,.16); font-size: 13px; }
.range__presets button:hover { border-color: var(--ink); }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px clamp(20px, 4vw, 44px); border-top: 1px solid rgba(14,11,30,.08); background: #faf8f3; }
.quiz__back { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); display: inline-flex; gap: 8px; align-items: center; }
.quiz__back:hover { color: var(--ink); }

/* результат */
.result { display: grid; gap: 28px; }
.result__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: baseline; }
.result__strategy { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lo); }
.result__kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(14,11,30,.1); border: 1px solid rgba(14,11,30,.1); }
@media (min-width: 900px) { .result__kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: #fff; padding: 18px; display: grid; gap: 6px; align-content: start; }
.kpi__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.kpi__value { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.05; }
.kpi__sub { font-size: 12px; color: var(--ink-muted); }
.kpi--accent { background: var(--ink); color: var(--cream); }
.kpi--accent .kpi__label, .kpi--accent .kpi__sub { color: rgba(243,238,228,.65); }
.chart { background: #faf8f3; border: 1px solid rgba(14,11,30,.08); padding: 18px 16px 12px; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink-muted); margin-bottom: 10px; }
.chart__legend i { display: inline-block; width: 18px; height: 3px; border-radius: 3px; vertical-align: middle; margin-right: 8px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__verdict { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.result__warn { background: rgba(230,69,106,.08); border-left: 3px solid var(--coral); padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.result__disclaimer { font-size: 12px; color: var(--ink-muted); line-height: 1.5; }
.result__cta { background: var(--ink); color: var(--cream); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; border-radius: 4px; }
.result__cta .h3 { color: #fff; }
.result__cta .muted { color: rgba(243,238,228,.7); }

/* ---------- цифры рынка ---------- */
.stats { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--bg); padding: 30px 26px; display: grid; gap: 10px; align-content: start; }
.section--alt .stat { background: var(--bg-2); }
.stat__num { font-family: var(--serif); font-size: clamp(40px, 4.5vw, 60px); line-height: 1; }
.stat__num small { font-size: .45em; margin-left: 4px; }
.stat__txt { color: var(--muted); font-size: 15px; }
.stat--minus .stat__num { color: var(--coral-soft); }
.callout {
  margin-top: 40px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px;
  border: 1px solid var(--line); background: linear-gradient(120deg, rgba(58,44,128,.35), transparent 60%);
}
@media (min-width: 900px) { .callout { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- воронка отбора ---------- */
.funnel { display: grid; gap: 12px; }
.funnel__step {
  display: grid; gap: 10px 32px; padding: 26px clamp(20px, 3vw, 36px);
  background: var(--card); border: 1px solid var(--line-soft); position: relative;
}
@media (min-width: 900px) {
  .funnel__step { grid-template-columns: 180px 1fr 1.4fr; align-items: center; }
  .funnel__step:nth-child(2) { margin: 0 4%; }
  .funnel__step:nth-child(3) { margin: 0 8%; }
  .funnel__step:nth-child(4) { margin: 0 12%; border-color: var(--gold); background: linear-gradient(120deg, rgba(201,174,106,.14), var(--card)); }
}
.funnel__num { font-family: var(--serif); font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--gold-hi); }
.funnel__title { font-family: var(--serif); font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.funnel__text { color: var(--muted); font-size: 15px; }

/* ---------- объекты (асимметрия как «Лучшие предложения») ---------- */
.objects { display: grid; gap: 12px; }
@media (min-width: 1024px) {
  .objects { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; }
  .obj--wide { grid-column: span 2; }
  .obj--arch { grid-row: span 2; }
}
.obj { position: relative; background: var(--card); border: 1px solid var(--line-soft); display: flex; flex-direction: column; overflow: hidden; }
.obj__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.obj--wide .obj__media { aspect-ratio: 16 / 8; }
.obj--arch { background: transparent; border: 0; }
.obj--arch .obj__media { aspect-ratio: auto; flex: 1; min-height: 380px; border-radius: 999px 999px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.obj--arch .obj__body { background: var(--card); border: 1px solid var(--line-soft); border-top: 0; }
.obj__badge { position: absolute; left: 14px; top: 14px; z-index: 2; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: rgba(14,11,30,.8); border: 1px solid var(--line); color: var(--gold-hi); padding: 6px 10px; }
.obj__body { padding: 22px 22px 24px; display: grid; gap: 14px; }
.obj__kind { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.obj__name { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); text-transform: uppercase; line-height: 1.05; letter-spacing: .03em; }
.obj__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; font-size: 14px; }
.obj__facts dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.obj__facts dd { margin: 2px 0 0; }
.obj__risk { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 12px; }
.obj__risk b { color: var(--coral-soft); font-weight: 500; }
.obj--locked .obj__body > *:not(.obj__unlock) { filter: blur(5px); user-select: none; pointer-events: none; }
.obj--locked { min-height: 320px; }
.obj__unlock { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 14px; text-align: center; padding: 24px; background: linear-gradient(180deg, rgba(14,11,30,.2), rgba(14,11,30,.85)); }
.obj__unlock p { font-family: var(--serif); font-size: 26px; text-transform: uppercase; line-height: 1.1; }

/* плейсхолдер фото — заменить на реальные снимки */
.ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 80% 10%, rgba(230,69,106,.28), transparent 60%),
    radial-gradient(90% 70% at 10% 100%, rgba(91,91,168,.5), transparent 65%),
    linear-gradient(170deg, #2b2358 0%, #1a1534 60%, #120e26 100%);
  display: grid; place-items: center; overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 18%; height: 38%;
  background: repeating-linear-gradient(180deg, rgba(234,220,140,.12) 0 1px, transparent 1px 14px);
  transform: perspective(400px) rotateX(55deg);
}
.ph::after {
  content: attr(data-label); position: relative; z-index: 1;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55);
  border: 1px dashed rgba(255,255,255,.25); padding: 8px 12px; text-align: center; max-width: 80%;
}
.ph--light { background: linear-gradient(170deg, #e9e1d2, #d9cfbd); }
.ph--light::after { color: rgba(14,11,30,.5); border-color: rgba(14,11,30,.25); }
.ph--light::before { background: repeating-linear-gradient(180deg, rgba(14,11,30,.08) 0 1px, transparent 1px 14px); }

/* ---------- доход апарт-отеля ---------- */
.flow { display: grid; gap: 12px; counter-reset: flow; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow__step { background: var(--card); border: 1px solid var(--line-soft); padding: 26px 22px; display: grid; gap: 12px; align-content: start; position: relative; }
.flow__step::before { counter-increment: flow; content: "0" counter(flow); font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.flow__title { font-family: var(--serif); font-size: 23px; text-transform: uppercase; line-height: 1.1; }
.flow__text { font-size: 14px; color: var(--muted); }
.season { margin-top: 28px; display: grid; gap: 24px; padding: clamp(22px, 3vw, 36px); background: var(--card); border: 1px solid var(--line-soft); }
@media (min-width: 900px) { .season { grid-template-columns: 1fr 1.3fr; align-items: center; } }
.season__bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 160px; }
.season__bars div { background: linear-gradient(180deg, var(--violet), var(--indigo)); border-radius: 2px 2px 0 0; position: relative; min-height: 4px; }
.season__bars div.hi { background: var(--gold-grad); }
.season__bars span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--faint); }

/* ---------- чек-листы безопасности / удалённой сделки ---------- */
.checks { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 720px) { .checks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .checks--3 { grid-template-columns: repeat(3, 1fr); } }
.check { background: var(--bg); padding: 28px 26px; display: grid; gap: 12px; align-content: start; }
.section--alt .check { background: var(--bg-2); }
.check__icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); }
.check__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.check__title { font-family: var(--serif); font-size: 23px; text-transform: uppercase; line-height: 1.1; }
.check__text { font-size: 15px; color: var(--muted); }

.steps { display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 8px; }
.steps li { position: relative; padding: 0 0 32px 32px; display: grid; gap: 6px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--gold); }
.steps b { font-family: var(--serif); font-size: 22px; font-weight: 400; text-transform: uppercase; line-height: 1.15; }
.steps span { color: var(--muted); font-size: 15px; }
.split { display: grid; gap: 48px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } .split--sticky > :first-child { position: sticky; top: 110px; } }

/* ---------- кейсы (слайдер как отзывы whitewill) ---------- */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 86%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.slider__track::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .slider__track { grid-auto-columns: calc((100% - 12px) / 2); } }
@media (min-width: 1100px) { .slider__track { grid-auto-columns: calc((100% - 24px) / 3); } }
.slider__nav { display: flex; gap: 10px; }
.slider__nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: all .2s; }
.slider__nav button:hover { border-color: var(--gold); color: var(--gold); }
.case { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line-soft); padding: 26px; display: grid; gap: 18px; align-content: start; }
.case__who { display: flex; align-items: center; gap: 14px; }
.case__ava { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--plum)); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; color: var(--gold-hi); flex: none; }
.case__name { font-weight: 500; }
.case__city { font-size: 13px; color: var(--faint); }
.case__rows { display: grid; gap: 12px; }
.case__row { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.case__row dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding-top: 2px; }
.case__row dd { margin: 0; color: var(--muted); }

/* ---------- команда ---------- */
.lead-person { display: grid; gap: 32px; align-items: end; background: radial-gradient(70% 90% at 75% 40%, rgba(91,91,168,.28), transparent 70%); }
@media (min-width: 1024px) { .lead-person { grid-template-columns: 1fr 1fr; gap: 60px; } }
.lead-person__photo { position: relative; aspect-ratio: 4 / 5; max-height: 640px; overflow: hidden; }
.lead-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.lead-person__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,11,30,.9)); }
.lead-person__cap { position: absolute; right: 20px; bottom: 20px; z-index: 1; text-align: right; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.lead-person__cap span { display: block; color: var(--faint); font-size: 11px; margin-top: 4px; letter-spacing: .08em; }
.quote { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; font-style: italic; font-weight: 300; }
.quote::before { content: "«"; color: var(--gold); }
.quote::after { content: "»"; color: var(--gold); }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 56px; }
@media (min-width: 720px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(4, 1fr); } }
.member { display: grid; gap: 12px; }
.member__photo { aspect-ratio: 3 / 4; overflow: hidden; background: var(--card); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform .8s var(--ease), filter .5s; filter: saturate(.85); }
.member:hover .member__photo img { transform: scale(1.04); filter: saturate(1); }
.member__name { font-family: var(--serif); font-size: 21px; text-transform: uppercase; line-height: 1.1; letter-spacing: .02em; }
.member__role { font-size: 13px; color: var(--faint); margin-top: -6px; }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; text-transform: uppercase; letter-spacing: .02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-hi); }
.faq__a { padding: 0 0 26px; color: var(--muted); max-width: 860px; display: grid; gap: 12px; }

/* ---------- финал и контакты ---------- */
.final { position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 20%, rgba(230,69,106,.18), transparent 60%), radial-gradient(60% 80% at 10% 90%, rgba(91,91,168,.35), transparent 60%); pointer-events: none; }
.final__grid { position: relative; display: grid; gap: 48px; }
@media (min-width: 1024px) { .final__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }
.contacts { display: grid; gap: 24px; }
@media (min-width: 900px) { .contacts { grid-template-columns: 1fr 1.6fr; align-items: stretch; } }
.contacts__list { display: grid; gap: 22px; align-content: start; }
.contacts__list dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.contacts__list dd { margin: 0; font-size: 18px; }
.contacts__phone { font-size: clamp(26px, 3vw, 36px) !important; font-family: var(--serif); }
.map { position: relative; min-height: 360px; border: 1px solid var(--line-soft); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) hue-rotate(200deg) contrast(.9); }

/* ---------- футер ---------- */
.footer { background: #0a0817; border-top: 1px solid var(--line-soft); padding: 64px 0 32px; font-size: 14px; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.2fr repeat(2, 1fr) 1.3fr; } }
.footer__logo img { height: 44px; width: auto; }
.footer h4, .footer__h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 500; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: var(--gold-hi); }
.footer__phone { font-size: 30px; font-weight: 500; color: var(--gold-hi); display: block; margin-bottom: 14px; letter-spacing: .01em; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: grid; gap: 14px; font-size: 12px; color: var(--faint); line-height: 1.55; }
@media (min-width: 900px) { .footer__legal { grid-template-columns: 1fr 1.6fr; gap: 40px; } }
.footer__legal a { text-decoration: underline; }

/* ---------- попапы ---------- */
.popup {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  background: rgba(8, 6, 18, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.popup.is-open { opacity: 1; visibility: visible; }
.popup__box {
  position: relative; width: 100%; max-width: 920px; max-height: calc(100svh - 32px); overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line);
  display: grid; transform: translateY(16px); transition: transform .4s var(--ease);
}
.popup.is-open .popup__box { transform: none; }
@media (min-width: 820px) { .popup__box--split { grid-template-columns: 0.9fr 1.1fr; } }
.popup__visual { position: relative; min-height: 200px; display: grid; place-items: center; padding: 32px; background: radial-gradient(80% 80% at 30% 30%, rgba(91,91,168,.45), transparent 70%), var(--card); }
.popup__visual .book { width: 180px; }
@media (max-width: 819px) { .popup__visual { display: none; } }
.popup__content { padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; align-content: start; }
.popup__close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.popup__close:hover { color: #fff; background: rgba(255,255,255,.08); }
.popup__box--small { max-width: 520px; }

/* ---------- закреплённая мобильная кнопка ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14,11,30,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-soft);
  display: flex; gap: 8px; align-items: center;
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; --h: 48px; padding: 0 12px; font-size: 12px; }
.sticky-cta .icon-btn { width: 48px; height: 48px; flex: none; }
@media (min-width: 1024px) {
  .sticky-cta { left: auto; right: 24px; bottom: 24px; border: 1px solid var(--line); border-radius: 4px; padding: 8px; }
  .sticky-cta .btn { flex: none; padding: 0 22px; }
}
body.has-sticky { padding-bottom: 72px; }
@media (min-width: 1024px) { body.has-sticky { padding-bottom: 0; } }

/* ---------- страница благодарности / политики ---------- */
.page { padding: calc(var(--header-h) + 60px) 0 100px; min-height: 80vh; }
.page .prose { max-width: 820px; display: grid; gap: 16px; color: var(--muted); }
.page .prose h2 { color: #fff; font-family: var(--serif); text-transform: uppercase; font-weight: 400; font-size: 26px; margin-top: 18px; letter-spacing: .02em; }
.page .prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.thanks { display: grid; gap: 28px; max-width: 760px; }
.thanks__steps { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.thanks__steps li { background: var(--bg); padding: 22px; display: grid; grid-template-columns: 56px 1fr; gap: 14px; }
.thanks__steps b { font-family: var(--serif); font-size: 32px; color: var(--gold-hi); font-weight: 400; line-height: 1; }

/* ---------- появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Блоки прототипа (этап 8)
   ========================================================================== */

/* шапка */
.header__tagline { display: none; font-size: 10px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); border-left: 1px solid var(--line-soft); padding-left: 16px; margin-left: -8px; }
@media (min-width: 1440px) { .header__tagline { display: block; } }
.header__mob { display: inline-grid; }
@media (min-width: 640px) { .header__mob[data-phone-icon] { display: none; } }
@media (min-width: 1180px) { .header__mob { display: none; } }
.header__cta { display: none; }
@media (min-width: 1280px) { .header__cta { display: inline-flex; } }
.nav { gap: 24px; }
@media (max-width: 1320px) { .nav a { font-size: 13px; } .nav { gap: 18px; } }

.hero__note { font-size: 12px; color: var(--faint); margin: 14px 0 26px; }
.trust__item .src { margin-top: 2px; }
.quickbar { margin-top: 18px; }

/* сегменты */
.figures { display: grid; gap: 16px; }
.figures li { padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.figures b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--gold-hi); line-height: 1.05; margin-bottom: 4px; }
.figures .src { display: inline; }
.strategy__risk { margin: 18px 0 24px; padding: 14px 16px; border-left: 2px solid var(--coral); background: rgba(230,69,106,.08); font-size: 15px; color: var(--muted); }
.strategy__risk b { color: #fff; font-weight: 500; }
.remote-line { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); }

/* квиз — старт, загрузка, бюджет */
.quiz__start { max-width: 640px; }
.quiz__loading { display: flex; align-items: center; gap: 14px; min-height: 300px; justify-content: center; font-family: var(--serif); font-size: 26px; text-transform: uppercase; letter-spacing: .03em; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(14,11,30,.15); border-top-color: var(--gold-lo); animation: spin .8s linear infinite; }
.range__value { display: flex; align-items: baseline; gap: 6px; }
.range__input { width: 3.2ch; min-width: 80px; border: 0; border-bottom: 1px solid rgba(14,11,30,.2); background: transparent; font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--ink); padding: 0; }
.range__input:focus { outline: none; border-color: var(--gold-lo); }
.range__hint { font-size: 15px; color: var(--ink); }
.range__down { font-size: 14px; color: var(--gold-lo); font-weight: 500; min-height: 1em; }
.quiz .src a { color: var(--ink-muted); }

/* квиз — результат */
.link-inline { color: var(--gold-lo); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.section:not(.section--cream) .link-inline, .popup .link-inline { color: var(--gold); }
.link-inline:hover { color: var(--ink); }
.popup .link-inline:hover { color: var(--gold-hi); }
.result__params { font-size: 15px; color: var(--ink-muted); margin-top: 6px; }
.verdict { padding: 20px 22px; border-radius: 4px; display: grid; gap: 8px; border: 1px solid; }
.verdict__chip { justify-self: start; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 30px; }
.verdict p { font-size: 16px; line-height: 1.5; }
.verdict__bad { font-size: 14px !important; color: var(--ink-muted); }
.verdict--win { background: #f6f1e2; border-color: rgba(140,114,73,.35); }
.verdict--win .verdict__chip { background: var(--gold-grad-h); color: var(--ink); }
.verdict--even { background: #f4f3f7; border-color: rgba(58,44,128,.2); }
.verdict--even .verdict__chip { background: var(--indigo); color: #fff; }
.verdict--lose { background: #fcf0f2; border-color: rgba(230,69,106,.3); }
.verdict--lose .verdict__chip { background: var(--coral); color: #fff; }
.result__warns { display: grid; gap: 8px; }
.result__warns li { padding: 12px 14px 12px 40px; position: relative; background: #faf8f3; border: 1px solid rgba(14,11,30,.08); font-size: 14px; line-height: 1.5; }
.result__warns li::before { content: "!"; position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.result__warns a { color: var(--ink-muted); text-decoration: underline; font-size: 12px; }
@media (min-width: 900px) { .result__kpis { grid-template-columns: repeat(4, 1fr); } .result__kpis--2 { grid-template-columns: repeat(2, 1fr); } }
.kpi__value { font-size: clamp(24px, 2.4vw, 34px); }
.caps { display: grid; gap: 10px; }
.cap { display: grid; gap: 4px 20px; padding: 16px 18px; background: #fff; border: 1px solid rgba(14,11,30,.1); font-size: 15px; }
@media (min-width: 900px) { .cap { grid-template-columns: 170px 1.6fr 1fr auto; align-items: baseline; } }
.cap__t { white-space: nowrap; }
.cap__t { font-family: var(--serif); font-size: 22px; text-transform: uppercase; }
.cap__obj em { font-style: normal; color: var(--ink-muted); }
.cap__dep { color: var(--indigo); }
.cap__diff { font-weight: 500; white-space: nowrap; }
.cap__diff.is-plus { color: #6f5a34; }
.cap__diff.is-minus { color: #c42d52; }
.chart__title { font-family: var(--serif); font-size: 22px; text-transform: uppercase; margin-bottom: 8px; }
.result__equiv, .result__alt { font-size: 15px; line-height: 1.55; }
.result__equiv .src { color: var(--ink-muted); }
.assume summary { cursor: pointer; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.assume summary::-webkit-details-marker { display: none; }
.assume summary::after { content: "+"; font-size: 16px; }
.assume[open] summary::after { content: "−"; }
.assume__wrap { margin-top: 16px; overflow-x: auto; }
.assume table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
.assume th, .assume td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(14,11,30,.1); vertical-align: top; }
.assume th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
.assume td:nth-child(3) { font-weight: 500; }
.assume td a { color: var(--ink-muted); text-decoration: underline; }
.assume p { margin-top: 12px; font-size: 13px; color: var(--ink-muted); }
.result__cta .eyebrow { color: var(--gold); }
.result__more { font-size: 14px; color: rgba(243,238,228,.7); }
.result__more .link-inline { color: var(--gold); }
.result__cta .form__note { color: rgba(243,238,228,.55); }

/* заголовок формы */
.form-title { font-family: var(--serif); font-size: 26px; text-transform: uppercase; letter-spacing: .03em; margin: 8px 0 16px; line-height: 1.1; }
.form-card { background: #fff; color: var(--ink); padding: clamp(24px, 3vw, 40px); border-radius: 4px; box-shadow: 0 40px 80px -40px rgba(14,11,30,.35); align-self: start; }
.form-card .field input { background: #fff; border-color: rgba(14,11,30,.16); color: var(--ink); }
.form-card .field label, .form-card .messengers__label { color: rgba(14,11,30,.5); }
.form-card .chip span { border-color: rgba(14,11,30,.18); }
.form-card .chip input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.form-card .consent { color: rgba(14,11,30,.6); }
.form-card .form__note { color: rgba(14,11,30,.5); }
.form-card--dark { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.form-card--dark .field input { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.16); color: #fff; }
.form-card--dark .field label, .form-card--dark .messengers__label { color: var(--faint); }
.form-card--dark .chip span { border-color: rgba(255,255,255,.18); }
.form-card--dark .chip input:checked + span { background: rgba(201,174,106,.16); color: var(--gold-hi); border-color: var(--gold); }
.form-card--dark .consent, .form-card--dark .form__note { color: var(--faint); }

/* портфель — размытые карточки */
.book-stage__cards > div { gap: 6px; justify-content: flex-end; }
.book-stage__cards small { position: relative; font-size: 10px; color: rgba(255,255,255,.7); letter-spacing: .02em; }
.book-stage__cards { filter: blur(1.5px); }
.book-stage__lock { top: auto; bottom: 14px; right: 50%; transform: translateX(50%); white-space: nowrap; }
.book--sm { width: 170px; transform: rotateY(-18deg) rotateZ(-4deg); }
.book--sm .book__title { font-size: 20px; }
.book--sm .book__cover { padding: 18px 16px; }
.book--sm .book__logo { width: 32px; }

/* за и против */
.proscons { display: grid; gap: 28px; }
@media (min-width: 1024px) { .proscons { grid-template-columns: 1fr 1fr; gap: 40px; } }
.proscons__col { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); align-content: start; }
.proscons__head { background: var(--bg-2); padding: 16px 26px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.proscons__head--pro { color: var(--gold); }
.proscons__head--con { color: var(--coral-soft); }
.proscons .stat { padding: 24px 26px; gap: 8px; }
.proscons .stat__num { font-size: clamp(32px, 3.4vw, 46px); }
.proscons .stat__txt b { color: #fff; font-weight: 500; }
.assume-list { display: grid; gap: 8px; margin-top: 16px; }
.assume-list li { padding-left: 26px; position: relative; color: #fff; }
.assume-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 1px; background: var(--gold); }

/* отбор */
.otbor { display: grid; gap: 28px; }
@media (min-width: 1100px) { .otbor { grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; } }
.otbor__side { display: grid; gap: 16px; }
.funnel__step { grid-template-columns: 44px 1fr auto !important; margin: 0 !important; gap: 16px 20px !important; align-items: center; }
@media (min-width: 900px) {
  .funnel__step:nth-child(2) { margin-left: 1.5% !important; margin-right: 1.5% !important; }
  .funnel__step:nth-child(3) { margin-left: 3% !important; margin-right: 3% !important; }
  .funnel__step:nth-child(4) { margin-left: 4.5% !important; margin-right: 4.5% !important; }
  .funnel__step:nth-child(5) { margin-left: 6% !important; margin-right: 6% !important; }
  .funnel__step:nth-child(6) { margin-left: 7.5% !important; margin-right: 7.5% !important; }
  .funnel__step:nth-child(4) { border-color: var(--line-soft); background: var(--card); }
}
.funnel__num { font-size: 36px !important; }
.funnel__title { font-size: 21px; }
.funnel__text { font-size: 14px; margin-top: 4px; }
.funnel__count { font-family: var(--serif); font-size: 24px; color: var(--gold-hi); text-align: right; }
.funnel__step--final { border-color: var(--gold) !important; background: linear-gradient(120deg, rgba(201,174,106,.16), var(--card)) !important; }
.card-note { background: var(--card); border: 1px solid var(--line-soft); padding: 26px; display: grid; gap: 12px; }
.card-note--coral { border-color: rgba(230,69,106,.35); }
.card-note__title { font-family: var(--serif); font-size: 23px; text-transform: uppercase; line-height: 1.1; letter-spacing: .02em; }
.dash-list { display: grid; gap: 8px; }
.dash-list li { padding-left: 22px; position: relative; color: var(--muted); font-size: 15px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 1px; background: var(--gold); }
.card-note--coral .dash-list li::before { background: var(--coral); }

/* объекты */
.obj__body--split { display: grid; gap: 24px; }
@media (min-width: 900px) { .obj__body--split { grid-template-columns: 1fr 1.15fr; gap: 32px; } }
.obj--wide .obj__media { aspect-ratio: 16 / 6; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.calc-table caption { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding-bottom: 8px; }
.calc-table td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--muted); }
.calc-table td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; color: #fff; }
.calc-table tr.is-total td { color: var(--gold-hi); font-weight: 500; border-bottom: 0; }
.calc-table--light td { color: var(--muted); }
.calc-table--light td:last-child { white-space: normal; min-width: 120px; }
.obj__vs { font-size: 14px; color: var(--muted); }
.obj__vs b { color: #fff; font-weight: 500; }
.obj__checked { font-size: 13px; color: var(--gold); }
.obj__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.obj--row { min-height: 200px; }
@media (min-width: 1024px) { .obj--row { grid-column: 1 / -1; } }
.obj__ghosts { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px; filter: blur(4px); }
.obj__ghosts span { background: linear-gradient(170deg, #2b2358, #1a1534); border: 1px solid var(--line-soft); }
@media (max-width: 719px) { .obj__ghosts { grid-template-columns: 1fr; } .obj__ghosts span:nth-child(n+2) { display: none; } }

/* доход */
.flow--5 { counter-reset: flow; }
@media (min-width: 900px) { .flow--5 { grid-template-columns: repeat(5, 1fr); } }
.flow__step .src { margin-top: auto; }
.flow__step--you { border-color: var(--gold); background: linear-gradient(160deg, rgba(201,174,106,.18), var(--card)); }
.income-grid { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 1024px) { .income-grid { grid-template-columns: 1fr 1.2fr; } }
.season { margin-top: 0; grid-template-columns: 1fr !important; align-content: start; }
.season__bars { margin-bottom: 26px; }
.example { background: var(--card); border: 1px solid var(--line-soft); padding: clamp(22px, 3vw, 32px); }
.uk { margin-top: 56px; display: grid; gap: 32px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(58,44,128,.35), transparent 70%); }
@media (min-width: 1024px) { .uk { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.h2--sm { font-size: clamp(28px, 3.2vw, 42px); }
.uk__btns, .land__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.uk__list { counter-reset: uk; display: grid; gap: 0; }
@media (min-width: 720px) { .uk__list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.uk__list li { counter-increment: uk; position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line-soft); font-size: 15px; color: var(--muted); }
.uk__list li::before { content: counter(uk, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--serif); color: var(--gold); font-size: 18px; }

/* безопасность */
.checks--4 { }
@media (min-width: 1100px) { .checks--4 { grid-template-columns: repeat(4, 1fr); } }
.tick-list { display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.check__num { font-family: var(--serif); font-size: 18px; color: var(--gold); letter-spacing: .1em; }
.land { margin-top: 56px; display: grid; gap: 32px; padding: clamp(24px, 4vw, 48px); background: var(--bg); border: 1px solid var(--line-soft); }
@media (min-width: 1024px) { .land { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.num-list { counter-reset: nl; display: grid; }
.num-list li { counter-increment: nl; position: relative; padding: 13px 0 13px 44px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 15px; }
.num-list li::before { content: counter(nl); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; color: var(--gold); }

/* второе мнение */
.assumptions { display: grid; gap: 0; margin-top: 28px; counter-reset: as; }
.assumptions li { counter-increment: as; padding: 12px 0 12px 40px; border-bottom: 1px solid rgba(14,11,30,.1); position: relative; color: var(--ink-muted); }
.assumptions li::before { content: counter(as); position: absolute; left: 0; top: 11px; font-family: var(--serif); font-size: 20px; color: var(--gold-lo); }
.assumptions b { color: var(--ink); font-weight: 500; }

/* кейсы */
.slider__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }

/* команда */
.member__exp { font-size: 12px; color: var(--gold); margin-top: -4px; }
@media (max-width: 719px) {
  .team { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .team::-webkit-scrollbar { display: none; }
  .member { scroll-snap-align: start; }
}

/* финал */
.final__list { display: grid; gap: 10px; margin-top: 26px; }
.final__list li { padding-left: 26px; position: relative; }
.final__list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 1px; background: var(--gold); }
.contacts { margin-top: clamp(56px, 8vw, 96px); }
.map .ph { position: absolute; inset: 0; }

/* закреплённая кнопка */
.sticky-cta .btn { justify-content: flex-start; gap: 12px; text-align: left; }
.sticky-cta__book { width: 24px; height: 32px; flex: none; background: linear-gradient(160deg, #211a45, #0e0b1e); border: 1px solid rgba(14,11,30,.4); box-shadow: 2px 2px 0 rgba(14,11,30,.25); }
.sticky-cta__txt { display: grid; line-height: 1.15; }
.sticky-cta__txt small { font-size: 10px; letter-spacing: .02em; text-transform: none; font-weight: 400; opacity: .75; margin-top: 3px; }
.sticky-cta__txt .fill { background: rgba(14,11,30,.12); color: inherit; }
.sticky-cta .btn { --h: 56px; }
.sticky-cta .icon-btn { width: 56px; height: 56px; }

/* попап — нижний лист на телефоне */
@media (max-width: 819px) {
  .popup { place-items: end center; padding: 0; }
  .popup__box { max-height: 92svh; border-radius: 14px 14px 0 0; transform: translateY(100%); border-left: 0; border-right: 0; border-bottom: 0; }
  .popup.is-open .popup__box { transform: none; }
  .popup__box::before { content: ""; position: sticky; top: 8px; display: block; width: 44px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); margin: 8px auto 0; z-index: 3; }
  .popup__content { padding-top: 18px; }
}
.popup .form-title { display: none; }
.popup .link-inline { justify-self: start; font-size: 13px; }

/* выравнивание src в статистике */
.stat .src { margin-top: 2px; }
.stat a.src:hover { color: var(--gold); }

/* правки шапки и печати */
.nav a { white-space: nowrap; }
@media (min-width: 1440px) { .header__tagline { display: none; } }
@media (min-width: 1680px) { .header__tagline { display: block; } }
@media (min-width: 1180px) and (max-width: 1379px) { .header__phone span { display: none; } .header__inner { gap: 20px; } .header__right { margin-left: 20px; gap: 12px; } }
@media (min-width: 1180px) and (max-width: 1279px) { .nav a:nth-child(3) { display: none; } }
.hero__seal { left: auto; right: 0; top: -150px; width: 118px; height: 118px; }
.hero__seal { display: none !important; }

/* тёмная форма внутри светлой секции (результат квиза) */
.result__cta .field input { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); color: #fff; }
.result__cta .field label, .result__cta .messengers__label { color: rgba(243,238,228,.55); }
.result__cta .chip span { border-color: rgba(255,255,255,.22); color: var(--cream); }
.result__cta .chip input:checked + span { background: rgba(201,174,106,.18); color: var(--gold-hi); border-color: var(--gold); }
.result__cta .consent { color: rgba(243,238,228,.6); }
.result__cta .consent a { color: var(--cream); }
.result__cta .form__error { color: #ff9fb4; }
.field.is-invalid input { border-color: var(--coral) !important; }

/* благодарность: копия расчёта и печать */
.thanks__calc { background: var(--card); border: 1px solid var(--line); padding: 24px; display: grid; gap: 12px; }
.thanks__calc pre { white-space: pre-wrap; font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
@media print {
  body { background: #fff; color: #000; }
  .header, .footer, .hero__ctas, .sticky-cta { display: none !important; }
  .page { padding: 0; }
  .thanks__calc { border-color: #999; background: #fff; }
  .thanks__calc pre, .lead, .thanks__steps span { color: #000 !important; }
  .thanks__steps li { background: #fff; }
}

/* мобильные правки: ширина 360–420 */
.otbor > *, .split > *, .portfolio > *, .final__grid > *, .contacts > *, .proscons > *, .income-grid > *, .uk > *, .land > * { min-width: 0; }
.fill { overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .header__inner { gap: 10px; }
  .header__logo img { height: 30px; }
  .header__right { gap: 8px; }
  .header__mob { width: 38px; height: 38px; }
  .funnel__step { grid-template-columns: 34px 1fr !important; }
  .funnel__count { grid-column: 2; text-align: left; font-size: 18px; }
  .funnel__num { font-size: 28px !important; }
  .h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .quiz__q { font-size: 24px; }
  .obj__facts { grid-template-columns: 1fr 1fr; }
  .calc-table td:last-child { white-space: normal; }
  .case__row { grid-template-columns: 1fr; gap: 4px; }
  .cap { font-size: 14px; }
  .result__kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 14px; }
  .kpi__value { font-size: 22px; }
  .trust__item { padding-right: 10px; }
}
.eyebrow { display: inline-block; line-height: 1.6; }
.eyebrow::before { display: inline-block; vertical-align: middle; margin: -2px 10px 0 0; }
.eyebrow .fill { font-size: 1em; }

/* объекты: фото и галерея */
.obj__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.obj__img.is-contain { object-fit: contain; background: #0a0817; }
.obj__viz { position: absolute; right: 12px; top: 14px; z-index: 2; font-size: 10px; letter-spacing: .08em; color: rgba(255,255,255,.75); background: rgba(14,11,30,.55); padding: 4px 8px; }
.obj__thumbs { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; }
.obj__thumbs button { width: 52px; height: 36px; border: 1px solid rgba(255,255,255,.35); overflow: hidden; opacity: .75; transition: opacity .2s, border-color .2s; }
.obj__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.obj__thumbs button.is-active, .obj__thumbs button:hover { opacity: 1; border-color: var(--gold); }
.obj--arch .obj__thumbs { left: 50%; transform: translateX(-50%); }
.obj--arch .obj__media { min-height: 420px; }
.obj__note { margin-top: 18px; padding: 14px 16px; border-left: 2px solid var(--gold); background: rgba(201,174,106,.08); font-size: 14px; color: var(--muted); line-height: 1.55; }
.obj .src { margin-top: 4px; }
@media (min-width: 1024px) { .obj--row { grid-column: span 2; } }
@media (max-width: 639px) { .obj__thumbs button { width: 42px; height: 30px; } .obj--arch .obj__media { min-height: 300px; } }
@media (max-width: 899px) {
  .obj--wide .obj__media { aspect-ratio: 16 / 10; }
  .obj__viz { top: auto; bottom: 12px; right: 12px; }
  .obj__badge { right: 12px; left: 12px; width: max-content; max-width: calc(100% - 24px); }
}
.obj--arch .obj__badge { left: 50% !important; right: auto !important; transform: translateX(-50%); top: 22%; white-space: nowrap; }
@media (max-width: 899px) { .obj__viz { display: none; } }

/* телефон: фиксированный отступ первого экрана (во встроенных браузерах мессенджеров vh считается иначе) */
@media (max-width: 959px) {
  .hero { padding-top: 250px !important; }
  .hero__wall, .hero::before { height: 330px !important; }
}

/* ==========================================================================
   Правки читаемости и ритма (v12)
   ========================================================================== */
:root {
  --bg-2: #181331;
  --card: #1f1940;
  --card-2: #272050;
  --line-soft: rgba(255, 255, 255, 0.11);
  --muted: rgba(255, 255, 255, 0.82);
  --faint: rgba(255, 255, 255, 0.62);
}

/* заголовки с засечками — плотнее */
.h-display, .h2, .h3, .tile__title, .check__title, .obj__name, .flow__title, .funnel__title,
.card-note__title, .faq summary, .member__name, .form-title, .quiz__q, .cap__t, .chart__title,
.trust__num, .stat__num, .figures b, .steps b { font-weight: 500; }
.h-display { font-weight: 500; letter-spacing: 0.02em; }

/* текст — крупнее и светлее */
@media (min-width: 1024px) { body { font-size: 17px; } }
.lead { font-weight: 400; }
.src { font-size: 13px; }
.trust__txt, .tile__text, .check__text, .flow__text, .funnel__text, .stat__txt { font-size: 15px; }
.eyebrow { letter-spacing: 0.1em; font-size: 12.5px; font-weight: 500; }

/* ритм: разделитель между соседними тёмными секциями */
.section:not(.section--cream) + .section:not(.section--cream) { border-top: 1px solid var(--line-soft); }
.tile, .check, .card-note, .obj, .case, .flow__step, .funnel__step { border-color: rgba(255,255,255,.12); }

/* светлые секции: карточки и списки */
.section--cream .proscons__col, .section--cream .checks { background: rgba(14,11,30,.1); border-color: rgba(14,11,30,.1); }
.section--cream .proscons__head { background: var(--cream-2); }
.section--cream .proscons__head--pro { color: var(--gold-lo); }
.section--cream .proscons__head--con { color: #b8284b; }
.section--cream .stat, .section--cream .check { background: #fff; }
.section--cream .stat__num { color: var(--ink); }
.section--cream .stat--minus .stat__num { color: #b8284b; }
.section--cream .stat__txt, .section--cream .check__text, .section--cream .tick-list li,
.section--cream .num-list li, .section--cream .dash-list li { color: rgba(14,11,30,.78); }
.section--cream .stat__txt b { color: var(--ink); }
.section--cream .callout { background: #fff; border-color: rgba(140,114,73,.35); }
.section--cream .assume-list li { color: var(--ink); }
.section--cream .check__icon { border-color: rgba(140,114,73,.45); color: var(--gold-lo); }
.section--cream .check__num { color: var(--gold-lo); }
.section--cream .tick-list li::before { border-color: var(--gold-lo); }
.section--cream .land { background: #fff; border-color: rgba(14,11,30,.1); }
.section--cream .num-list li { border-color: rgba(14,11,30,.1); }
.section--cream .num-list li::before { border-color: rgba(140,114,73,.45); color: var(--gold-lo); }
.section--cream .btn--ghost { color: var(--ink); border-color: rgba(14,11,30,.35); }
.section--cream .btn--ghost:hover { background: rgba(14,11,30,.05); border-color: var(--ink); }
.section--cream .src, .section--cream .src a { color: rgba(14,11,30,.62); }
.section--cream .link-arrow { color: var(--gold-lo); border-color: rgba(140,114,73,.45); }
.section--cream .muted, .section--cream .lead { color: rgba(14,11,30,.72); }

/* телефон: заголовок без «лесенки», аккуратнее надзаголовок */
@media (max-width: 639px) {
  .h-display { font-size: clamp(34px, 10vw, 44px); }
  .h-display .indent { padding-left: 0; }
  .eyebrow { font-size: 11px; letter-spacing: 0.08em; }
  body { font-size: 16px; }
}

/* ==========================================================================
   Телефон: крупнее шрифты (v13)
   ========================================================================== */
@media (max-width: 639px) {
  body { font-size: 17px; line-height: 1.6; }
  .lead { font-size: 18px; line-height: 1.55; }
  .muted, .small { font-size: 16px; }
  .eyebrow { font-size: 12px; }
  .src { font-size: 14px; }
  .h2 { font-size: clamp(32px, 9.4vw, 42px); }
  .h3 { font-size: 26px; }
  .h-display { font-size: clamp(38px, 11vw, 48px); }

  /* первый экран */
  .hero__aside .lead { font-size: 18px; }
  .trust__num { font-size: 32px; }
  .trust__txt { font-size: 16px; }
  .hero__note { font-size: 14px; }
  .quickbar select { font-size: 17px; }

  /* «С чего начать» */
  .tile { min-height: 0; padding: 26px 22px; }
  .tile__title { font-size: 28px; }
  .tile__text { font-size: 17px; }
  .tile__more { font-size: 13px; }
  .figures li { font-size: 17px; }
  .figures b { font-size: 34px; }
  .strategy__risk { font-size: 16px; }
  .remote-line { font-size: 16px; }

  /* карточки и списки */
  .check__title, .flow__title, .funnel__title, .card-note__title { font-size: 25px; }
  .check__text, .flow__text, .funnel__text, .stat__txt,
  .tick-list li, .num-list li, .dash-list li, .uk__list li, .assumptions li,
  .portfolio__list li, .final__list li, .steps span { font-size: 16px; }
  .stat__num { font-size: 42px; }
  .steps b { font-size: 24px; }
  .obj__name { font-size: 30px; }
  .obj__facts, .obj__vs, .obj__risk, .obj__note, .calc-table { font-size: 15px; }
  .obj__facts dt, .obj__kind, .calc-table caption { font-size: 12px; }
  .case__row { font-size: 16px; }
  .member__name { font-size: 22px; }
  .member__role, .member__exp { font-size: 14px; }
  .quote { font-size: 26px; }

  /* FAQ */
  .faq summary { font-size: 22px; }
  .faq__a { font-size: 16px; }

  /* квиз и формы */
  .quiz__q { font-size: 26px; }
  .quiz__hint { font-size: 16px; }
  .opt b { font-size: 18px; }
  .opt small { font-size: 15px; }
  .kpi__label { font-size: 12px; }
  .kpi__sub { font-size: 13px; }
  .verdict p { font-size: 16px; }
  .result__warns li, .cap, .result__equiv, .result__alt { font-size: 15px; }
  .field label, .messengers__label { font-size: 12px; }
  .chip span { font-size: 15px; height: 42px; }
  .consent { font-size: 13px; }
  .form__note { font-size: 13px; }
  .btn { font-size: 14px; }

  /* подвал */
  .footer { font-size: 16px; }
  .footer__legal { font-size: 13px; }
}
@media (max-width: 959px) { .hero__caption { display: none; } }

/* ==========================================================================
   Телефон: только главное (v15). На компьютере всё как было.
   ========================================================================== */
.m-only { display: none; }
@media (max-width: 639px) {
  .m-only { display: inline; }
  .d-only, .m-hide { display: none !important; }
  /* источники мелким шрифтом, повторы и декор */
  .src, .trust__item .src, .figures .src, .stat .src, .flow__step .src, .caps .src { display: none !important; }
  .member__exp, .obj__checked, .funnel__text, .footer__grid > div:nth-child(2) { display: none; }
  .book-stage { min-height: 300px; }
  .book { width: min(220px, 60vw); }
  /* длинные чек-листы — по 3 главных пункта */
  #bezopasnost .tick-list li:nth-child(n+4) { display: none; }
  /* 10 вопросов к УК — первые 5 */
  .uk__list li:nth-child(n+6) { display: none; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
}
@media (max-width: 639px) {
  .quiz.is-start .quiz__top, .quiz.is-start .quiz__start .quiz__q, .quiz.is-start .quiz__start > .quiz__hint:first-of-type { display: none; }
  .quiz.is-start .quiz__body { min-height: 0; padding-top: 24px; padding-bottom: 24px; }
  .quiz.is-start .btn { width: 100%; }
}

/* v17: звёздочка у оффера и сноска */
.hero__star { font-size: .45em; vertical-align: super; margin-left: 2px; color: var(--gold); }
.hero__note { font-size: 13px; color: var(--faint); max-width: 900px; line-height: 1.5; }
.hero__note a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 639px) { .hero__note { font-size: 12px; margin: 12px 0 18px; } }
