:root {
  --paper: #f6f2ec;
  --paper-2: #efe9e0;
  --card: #fffdf9;
  --ink: #23262b;
  --ink-2: #4c5058;
  --ink-3: #8a8d93;
  --line: rgb(35 38 43 / 0.1);
  --graphite: #1f2226;
  --graphite-2: #2a2e33;
  --bronze: #a9834f;
  --bronze-2: #c4a274;
  --bronze-soft: rgb(169 131 79 / 0.12);
  --good: #3f7d5a;
  --bad: #b4473a;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --h1: clamp(2.2rem, 1.2rem + 4.2vw, 4.4rem);
  --h2: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem);
  --space: clamp(3.5rem, 2.5rem + 4.5vw, 7rem);
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 8px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 50; background: rgb(246 242 236 / 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--graphite); color: var(--bronze-2); font: 600 18px/1 var(--font-display); }
.brand__name { font: 600 21px/1 var(--font-display); letter-spacing: -0.02em; }
.brand__tag { font-size: 12px; color: var(--ink-3); }
.nav { display: flex; gap: 26px; font-size: 14.5px; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.top__right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.lang button { min-width: 36px; height: 30px; border: 0; border-radius: 999px; background: none; font-size: 12.5px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.lang button[aria-pressed='true'] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.08); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 14px; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s; }
.btn:active { transform: scale(0.98); }
.btn--bronze { background: var(--bronze); color: #fff; box-shadow: 0 10px 24px -12px rgb(169 131 79 / 0.8); }
.btn--bronze:hover { background: #96733f; }
.btn--dark { background: var(--graphite); color: var(--paper); }
.btn--dark:hover { background: #000; }
.btn--line { box-shadow: 0 0 0 1.5px var(--line) inset; background: transparent; }
.btn--line:hover { background: var(--paper-2); }
.btn--line-light { background: rgb(255 255 255 / 0.1); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 17px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* общее */
.section { padding: var(--space) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--graphite); color: var(--paper); }
.eyebrow { margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); }
.h2 { font: 500 var(--h2)/1.08 var(--font-display); letter-spacing: -0.02em; max-width: 22ch; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.muted { color: var(--ink-2); }
.fine { margin-top: 22px; font-size: 13.5px; color: var(--ink-3); max-width: 46rem; }
.head-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: 1.4rem; }
.head-split .h2 { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: start; }
.split .h2 { margin-bottom: 1rem; }
.split .btn { margin-top: 26px; }

/* первый экран */
.hero { padding: clamp(2rem, 1rem + 4vw, 4.5rem) 0 var(--space); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
h1 { font: 500 var(--h1)/1.04 var(--font-display); letter-spacing: -0.025em; }
h1 em { font-style: italic; color: var(--bronze); }
.lead { margin-top: 20px; font-size: clamp(1.03rem, 1rem + 0.25vw, 1.16rem); color: var(--ink-2); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 13.5px; color: var(--ink-2); }
.hero__proof li::before { content: '✓ '; color: var(--good); font-weight: 800; }
.hero__visual { position: relative; }
.hero__visual img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 26px; box-shadow: 0 40px 80px -40px rgb(31 34 38 / 0.55); }
.hero__chip { position: absolute; left: -14px; bottom: 22px; padding: 12px 16px; border-radius: 14px; background: var(--card); font-size: 14px; font-weight: 700; box-shadow: 0 18px 40px -18px rgb(31 34 38 / 0.45); }

/* цели */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.goal { position: relative; display: grid; gap: 10px; align-content: start; min-height: 190px; padding: 26px; border: 0; border-radius: var(--radius); background: var(--card); text-align: left; cursor: pointer; box-shadow: 0 0 0 1px var(--line) inset; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.goal:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--bronze) inset, 0 20px 40px -24px rgb(31 34 38 / 0.4); }
.goal__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bronze-soft); color: var(--bronze); font-size: 22px; }
.goal__title { font: 500 1.35rem/1.15 var(--font-display); }
.goal__text { color: var(--ink-2); font-size: 14.5px; }
.goal__go { position: absolute; right: 22px; top: 24px; color: var(--bronze); font-size: 20px; }

/* каталог */
.demo-note { display: inline-block; margin-bottom: 18px; padding: 8px 12px; border-radius: 10px; background: var(--bronze-soft); color: #7a5c33; font-size: 13px; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { min-height: 38px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 0 0 1px var(--line) inset; }
.chip.is-on { background: var(--graphite); color: var(--paper); box-shadow: none; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; }
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.card__status { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgb(255 253 249 / 0.92); font-size: 12px; font-weight: 700; }
.card__cmp { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgb(31 34 38 / 0.78); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.card__cmp input { accent-color: var(--bronze); margin: 0; }
.card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 18px 20px 20px; }
.card__title { font: 500 1.3rem/1.15 var(--font-display); }
.card__dev { font-size: 13px; color: var(--ink-3); }
.card__price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.card__price strong { font-size: 1.25rem; font-weight: 800; }
.card__price span { font-size: 13px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13.5px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0 0 4px; font-weight: 600; }
.card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.card__actions .btn { min-height: 44px; padding: 0 12px; font-size: 14px; border-radius: 11px; }
.card__similar { grid-column: 1 / -1; padding: 6px 0 0; border: 0; background: none; color: var(--bronze); font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; }

/* преимущества */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why li { display: grid; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; }
.why b { font-size: 16.5px; }
.why span { color: var(--ink-2); font-size: 14.5px; }

/* шаги */
.section--dark .h2 { color: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; margin-bottom: 34px; }
.steps li { counter-increment: s; padding: 20px 18px 22px; border-top: 1px solid rgb(255 255 255 / 0.2); color: rgb(246 242 236 / 0.85); font-size: 15px; }
.steps li::before { content: counter(s); display: block; margin-bottom: 16px; font: 500 2.4rem/1 var(--font-display); color: var(--bronze-2); }

/* из-за границы */
.ticks { display: grid; gap: 14px; }
.ticks li { display: grid; gap: 4px; padding: 18px 20px 18px 54px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bronze-soft); color: var(--bronze); font-size: 13px; font-weight: 800; }
.ticks span { color: var(--ink-2); font-size: 14.5px; }

/* инвесторам */
.soon { display: grid; gap: 10px; }
.soon li { padding: 14px 18px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; font-weight: 600; }
.soon[data-soon] li:not(.soon__note)::after { content: ' · ' attr(data-soon); color: var(--ink-3); font-weight: 500; }
.soon__note { background: none !important; box-shadow: none !important; color: var(--ink-3); font-weight: 500 !important; font-size: 14px; }

/* финал */
.final__box { display: grid; justify-items: center; gap: 18px; padding: clamp(2.4rem, 5vw, 4rem) clamp(1.2rem, 4vw, 3rem); border-radius: 28px; background: var(--graphite); color: var(--paper); text-align: center; }
.final__box .h2 { margin: 0; max-width: 26ch; color: var(--paper); }
.final__box .muted { color: rgb(246 242 236 / 0.6); font-size: 14px; }

.foot { padding: 36px 0 110px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.dock { display: none; }

/* сравнение */
.compare-bar { position: fixed; left: 50%; bottom: 18px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--graphite); color: #fff; transform: translateX(-50%); box-shadow: 0 20px 40px -16px rgb(0 0 0 / 0.5); font-weight: 700; font-size: 14px; }
.compare-bar[hidden] { display: none; }

/* модальные окна */
dialog { max-width: none; max-height: none; padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgb(20 22 25 / 0.55); backdrop-filter: blur(3px); }
.sheet { width: min(860px, 100% - 24px); max-height: 88vh; border-radius: 22px; background: var(--card); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sheet__head h2 { font: 500 1.4rem/1.1 var(--font-display); }
.sheet__body { padding: 22px; overflow: auto; }
.x { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--paper-2); font-size: 22px; line-height: 1; cursor: pointer; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp th { width: 26%; color: var(--ink-3); font-weight: 600; }
.cmp thead td { font: 500 1.1rem/1.2 var(--font-display); }
.detail img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 16px; margin-bottom: 18px; }
.detail .facts { font-size: 15px; margin-bottom: 20px; }
.detail .btn { width: 100%; }

/* квиз */
.quiz { width: min(620px, 100% - 24px); max-height: 92vh; border-radius: 24px; background: var(--card); overflow: hidden; }
.quiz[open] { display: flex; flex-direction: column; }
.quiz__top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.quiz__back { min-height: 40px; padding: 0 10px; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.quiz__back[disabled] { visibility: hidden; }
.quiz__bar { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--bronze); transition: width 0.35s var(--ease); }
.quiz__body { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px; overflow: auto; }
.quiz__step { font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); }
.quiz__q { font: 500 clamp(1.45rem, 1.1rem + 1.4vw, 1.9rem)/1.15 var(--font-display); }
.quiz__fields { display: grid; gap: 8px; }
.quiz__sub { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts--one { grid-template-columns: 1fr; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; border-radius: 14px; background: var(--paper); font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 0 0 1px var(--line) inset; transition: background-color 0.15s, box-shadow 0.15s; }
.opt:hover span { box-shadow: 0 0 0 1.5px var(--bronze-2) inset; }
.opt input:checked + span { background: var(--bronze-soft); box-shadow: 0 0 0 2px var(--bronze) inset; }
.opt input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); font: 500 16px/1.4 var(--font-body); color: var(--ink); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--bronze); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quiz__err { color: var(--bad); font-size: 14px; font-weight: 600; }
.quiz__err:empty { display: none; }
.quiz__nav { position: sticky; bottom: 0; padding-top: 6px; background: var(--card); }
.quiz__nav .btn { width: 100%; }
.quiz__hint { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.quiz__done { display: grid; justify-items: center; gap: 12px; padding: 44px 26px 34px; text-align: center; }
.quiz__done h2 { font: 500 2rem/1.1 var(--font-display); }
.quiz__done p { color: var(--ink-2); max-width: 26rem; }
.quiz__ok { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bronze); color: #fff; font-size: 30px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media (max-width: 1000px) {
  .nav { display: none; }
  .cards, .why { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero__grid, .split, .head-split { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__visual img { aspect-ratio: 16 / 11; }
  .hero__chip { left: 10px; bottom: 10px; font-size: 13px; }
  .goals, .cards, .why { grid-template-columns: 1fr; }
  .goal { min-height: 0; padding: 20px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 14px 0; }
  .steps li::before { margin: 0; font-size: 1.8rem; }
  .top__cta, .brand__tag { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .opts { grid-template-columns: 1fr; }
  .dock { position: fixed; inset: auto 0 0; z-index: 60; display: block; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgb(246 242 236 / 0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform 0.3s var(--ease); }
  .dock .btn { width: 100%; }
  .dock.is-hidden { transform: translateY(110%); }
  .compare-bar { bottom: 84px; }
  .quiz, .sheet { width: 100%; max-height: 100%; height: 100%; border-radius: 0; margin: 0; }
}
/* в карточке — только главное; застройщик и район уже под названием */
.facts--short > div:nth-child(1), .facts--short > div:nth-child(2), .facts--short > div:nth-child(6), .facts--short > div:nth-child(8), .facts--short > div:nth-child(9) { display: none; }

[hidden] { display: none !important; }
