/* Палитра и токены живут в styles-theme.css (три темы, переключение в шапке).
   Здесь только псевдонимы для обратной совместимости. */
:root {
  --forest: var(--dark);
  --forest-deep: var(--dark);
  --moss: var(--accent-deep);
  --gold: var(--accent);
  --mist: var(--paper-2);
  --sand: var(--paper-2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* Якоря учитывают фиксированную шапку */
section[id],
main[id],
#map,
#projects,
#about,
#benefits,
#finance,
#infra,
#lead,
#quiz,
#trust,
#team,
#top {
  scroll-margin-top: 88px;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button, input, select { font: inherit; }

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 16px;
}
.kicker.light { color: rgb(var(--on-dark-rgb) / 0.62); }

/* Заголовки секций подчиняются выбранной теме */
.hero-brand,
.story-copy h2,
.promise-head h2,
.projects-intro h2,
.map-intro h2,
.finance-inner h2,
.infra-head h2,
.finale-copy h2,
.trust-head h2,
.team-head h2,
.quiz-teaser h2 {
  text-transform: var(--head-case);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
}

/* Акцентное слово внутри заголовка */
.hl { color: var(--accent); }

/* ---- CURTAIN (кинематографичный интро) ---- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--forest-deep);
  transition: transform 1.15s cubic-bezier(0.76, 0, 0.24, 1);
}
.curtain-left { left: 0; }
.curtain-right { right: 0; }
.curtain-mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease 0.15s;
}
.curtain-logo {
  width: min(220px, 46vw);
  height: auto;
  display: block;
}
.curtain.is-open .curtain-left { transform: translateX(-100%); }
.curtain.is-open .curtain-right { transform: translateX(100%); }
.curtain.is-open .curtain-mark { opacity: 0; transition-delay: 0s; }

/* ---- MIST / CLOUDS (screen-blend, drift) ---- */
.mist-layer {
  position: absolute;
  inset: -10% -30%;
  z-index: 1;
  background-image: url("./assets/effects/clouds-screen.webp");
  background-repeat: repeat-x;
  background-size: auto 120%;
  background-position: 0 20%;
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
  will-change: background-position;
}
.mist-slow { animation: mistDriftSlow 90s linear infinite; opacity: 0.32; }
.mist-fast {
  animation: mistDriftFast 55s linear infinite reverse;
  opacity: 0.22;
  background-position: 30% 55%;
  background-size: auto 150%;
}
@keyframes mistDriftSlow {
  from { background-position: 0 20%; }
  to { background-position: 2400px 20%; }
}
@keyframes mistDriftFast {
  from { background-position: 0 55%; }
  to { background-position: 2400px 55%; }
}
@media (prefers-reduced-motion: reduce) {
  .mist-layer { animation: none; }
}

/* ---- TOP ---- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px;
  color: var(--on-dark);
  mix-blend-mode: normal;
  transition: background 0.35s, color 0.35s, backdrop-filter 0.35s;
}
.top.is-solid {
  background: rgb(var(--dark-rgb) / 0.88);
  backdrop-filter: blur(16px);
  color: var(--on-dark);
}
.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  overflow: visible;
}
.logo img {
  display: block;
  height: clamp(22px, 3.2vw, 32px);
  width: auto;
  max-width: none;
  object-fit: contain;
}
/* Пункты меню участвуют в общем ряду шапки — без «дыры» посередине */
.nav {
  display: contents;
}
.nav a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav a:hover { opacity: 1; }
.phone {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.top-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.top-cta {
  padding: 9px 12px;
  border: 1px solid rgb(var(--on-dark-rgb) / 0.35);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.top .theme-switch--bar {
  flex-shrink: 0;
}
.top-cta--solid {
  background: var(--accent-deep);
  border-color: transparent;
  color: #fff;
}
.top-cta-mobile {
  display: none;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  gap: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
}
.nav-toggle span:last-child { width: 14px; }

/* ---- MEDIA SHIFT (parallax внутри overflow:hidden) ---- */
.media-shift {
  position: absolute;
  inset: -8%;
  will-change: transform;
}
.media-shift img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--on-dark);
  background: var(--dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg .media-shift img {
  transform: scale(1.06);
  animation: heroDrift 18s ease-in-out infinite alternate;
  filter: var(--hero-filter);
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgb(var(--veil-rgb) / var(--veil-side)) 0%,
      rgb(var(--veil-rgb) / 0.12) 62%,
      rgb(var(--veil-rgb) / 0.2) 100%
    ),
    linear-gradient(
      180deg,
      rgb(var(--veil-rgb) / var(--veil-top)) 0%,
      rgb(var(--veil-rgb) / 0.06) 38%,
      rgb(var(--veil-rgb) / var(--veil-bottom)) 100%
    );
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 40px 72px;
  max-width: 980px;
  animation: riseIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-eye {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 18px;
}
.hero-brand {
  font-family: var(--display);
  font-size: clamp(48px, 8.4vw, 92px);
  line-height: 0.95;
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
  text-transform: var(--head-case);
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero-line {
  max-width: 42ch;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  color: rgb(var(--on-dark-rgb) / 0.92);
  margin-bottom: 20px;
  text-shadow: 0 1px 12px rgb(var(--veil-rgb) / 0.45);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.hero-actions-secondary {
  display: contents;
}
.hero-actions .hero-cta-primary {
  min-height: 56px;
  padding: 0 28px;
  font-size: 13px;
}

/* Оффер в первом экране: главные условия сразу, без скролла */
.hero-offer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 22px;
}
.hero-offer li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--btn-radius);
  border: 1px solid rgb(var(--on-dark-rgb) / 0.26);
  background: rgb(var(--veil-rgb) / 0.32);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--on-dark-rgb) / 0.95);
}
.hero-offer li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Счётчик свободных участков — компактная цветная плашка */
.hero-scarcity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
  padding: 7px 14px;
  border-radius: var(--btn-radius);
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.hero-scarcity::before {
  display: none;
}
.hero-scarcity-text {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.hero-scarcity-text b {
  font-weight: 800;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  width: 24px;
  height: 38px;
  border: 1px solid rgb(var(--on-dark-rgb) / 0.35);
  border-radius: 999px;
  transform: translateX(-50%);
}
.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--on-dark);
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s,
    box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }

/* Главная кнопка действия — единственный яркий элемент в блоке */
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-accent:hover {
  box-shadow: 0 14px 38px color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn-light {
  background: var(--on-dark);
  color: var(--dark);
}
.btn-line {
  background: transparent;
  border-color: rgb(var(--on-dark-rgb) / 0.45);
  color: var(--on-dark);
}
.btn-dark {
  background: var(--forest);
  color: var(--on-dark);
  width: 100%;
}

/* ---- STORY SCENES ---- */
.story-scene {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--on-dark);
  overflow: hidden;
  background: var(--dark);
}
.story-scene + .story-scene { margin-top: 0; }
.story-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--dark);
}
.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgb(var(--veil-rgb) / 0.78), rgb(var(--veil-rgb) / 0.2) 60%, rgb(var(--veil-rgb) / 0.45));
  z-index: 1;
  pointer-events: none;
}
.story-copy {
  position: relative;
  z-index: 2;
  padding: 0 40px 72px;
  max-width: 720px;
}
.story-copy h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  white-space: pre-line;
}
.story-copy p {
  max-width: 38ch;
  font-size: 17px;
  color: rgb(var(--on-dark-rgb) / 0.88);
}

/* ---- PROMISE ---- */
.promise {
  position: relative;
  isolation: isolate;
  padding: 110px 40px 40px;
  background: var(--paper);
}
.promise-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.promise-head h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
  font-weight: 600;
}
.promise-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgb(var(--ink-rgb) / 0.12);
}
.promise-item {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.12);
  align-items: baseline;
}
.promise-item .n {
  font-family: var(--display);
  font-size: 28px;
  color: var(--moss);
}
.promise-item h3 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
}
.promise-item p {
  color: rgb(var(--ink-rgb) / 0.68);
  font-size: 15px;
}

/* ---- MAP ---- */
.map-scene {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 100px 40px 80px;
  background: var(--dark);
  color: var(--on-dark);
  position: relative;
}
.map-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.map-intro h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  margin-bottom: 18px;
}
.map-lead {
  color: rgb(var(--on-dark-rgb) / 0.68);
  max-width: 42ch;
  margin-bottom: 0;
}
.map-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.map-stats .stat {
  padding: 16px 0;
  border-top: 1px solid rgb(var(--on-dark-rgb) / 0.18);
}
.map-stats b {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
}
.map-stats span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}
.map-board {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
#genplan-host,
.genplan-root {
  border-radius: var(--photo-radius);
  border: var(--photo-border);
  overflow: hidden;
}
.map-board-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.map-board-bar .filters { margin-bottom: 0; }
.map-3d-cta {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 18px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.chip {
  border: 1px solid rgb(var(--on-dark-rgb) / 0.18);
  background: transparent;
  color: rgb(var(--on-dark-rgb) / 0.7);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.chip.active {
  background: var(--on-dark);
  color: var(--dark-2);
  border-color: var(--on-dark);
}
.map-note {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 16px;
}

/* Genplan */
.genplan {
  outline: none;
}
.genplan-stage {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  background: var(--dark-2);
}
.genplan-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2400 / 900;
  cursor: crosshair;
}
.gp-plot {
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.gp-plot .gp-hit {
  transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}
.gp-plot:hover .gp-hit,
.gp-plot.is-selected .gp-hit {
  fill: rgb(var(--on-dark-rgb) / 0.22);
  stroke: var(--on-dark);
  stroke-width: 4;
}
.gp-plot.is-selected .gp-hit {
  fill: rgb(var(--accent-rgb) / 0.38);
  stroke: var(--accent);
}
.gp-num {
  fill: rgb(var(--on-dark-rgb) / 0.92);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.gp-plot[data-status="sold"] .gp-num {
  fill: rgb(var(--on-dark-rgb) / 0.55);
}
.genplan-hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--on-dark-rgb) / 0.72);
  background: rgb(var(--veil-rgb) / 0.45);
  padding: 6px 10px;
  border-radius: 6px;
  pointer-events: none;
}
.genplan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-top: 14px;
  font-size: 12px;
  color: rgb(var(--on-dark-rgb) / 0.72);
}
.genplan-legend .lg {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: -1px;
}
.genplan-legend .lg.free { background: var(--free); }
.genplan-legend .lg.reserved { background: var(--reserved); }
.genplan-legend .lg.sold { background: var(--sold); }
.genplan-legend-note {
  margin-left: auto;
  opacity: 0.45;
  font-size: 11px;
}

.plots-fallback {
  margin-top: 20px;
  border-top: 1px solid rgb(var(--on-dark-rgb) / 0.12);
  padding-top: 12px;
}
.plots-fallback summary {
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 12px;
}
.plots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  max-height: 40vh;
  overflow: auto;
  padding-right: 4px;
}
.plot {
  border: 1px solid rgb(var(--on-dark-rgb) / 0.14);
  background: rgb(var(--on-dark-rgb) / 0.04);
  color: inherit;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.plot:hover,
.plot.active {
  background: rgb(var(--on-dark-rgb) / 0.1);
  border-color: rgb(var(--accent-rgb) / 0.65);
  transform: translateY(-2px);
}
.plot .n {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}
.plot .meta {
  margin-top: 8px;
  font-size: 11px;
  opacity: 0.62;
}
.plot .badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plot .badge.free { color: color-mix(in srgb, var(--free) 62%, var(--on-dark)); }
.plot .badge.reserved { color: color-mix(in srgb, var(--reserved) 62%, var(--on-dark)); }
.plot .badge.sold { color: color-mix(in srgb, var(--sold) 62%, var(--on-dark)); }
.plot .price {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.plot-sheet {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(360px, calc(100vw - 32px));
  z-index: 60;
  padding: 24px;
  border-radius: 22px;
  background: rgb(var(--on-dark-rgb) / 0.96);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  animation: riseIn 0.4s ease both;
}
.plot-sheet[hidden] { display: none; }
.plot-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgb(var(--ink-rgb) / 0.08);
  font-size: 22px;
  cursor: pointer;
}
.plot-sheet h3 {
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
}
.plot-sheet-note {
  font-size: 12px;
  opacity: 0.55;
  margin-bottom: 14px;
}
.plot-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.plot-meta div {
  padding: 12px;
  border-radius: 12px;
  background: rgb(var(--ink-rgb) / 0.06);
}
.plot-meta .full { grid-column: 1 / -1; }
.plot-meta dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 4px;
}
.plot-meta dd {
  font-weight: 650;
  font-size: 14px;
}

/* ---- FINANCE ---- */
.finance {
  position: relative;
  min-height: 70svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--on-dark);
  margin-bottom: -2px;
}
.finance-bg {
  position: absolute;
  inset: 0;
}
.finance-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.finance-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(8, 14, 12, 0.72) 0%,
      rgba(8, 14, 12, 0.38) 46%,
      rgba(8, 14, 12, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(10, 20, 15, 0.28) 36%,
      rgba(8, 14, 12, 0.88) 100%
    );
}
.finance-inner {
  position: relative;
  z-index: 4;
  padding: 80px 40px 72px;
  display: grid;
  gap: 24px;
}
.finance-inner h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 16px;
  max-width: none;
  line-height: 0.96;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}
.finance-intro {
  margin: 0;
  padding: 0;
  max-width: none;
  background: none;
}
.finance-intro h2 {
  margin-bottom: 12px;
}
.finance-lead {
  max-width: 46ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}
.finance-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border-top: 0;
  padding-top: 0;
}
.finance-item {
  background: rgba(20, 30, 25, 0.72);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 16px;
  padding: 20px;
}
.finance-item h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}
.finance-item p {
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}
.finance-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 168px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--paper) 100%);
}
.section-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  width: 100%;
  z-index: 3;
  pointer-events: none;
  color: var(--paper);
  line-height: 0;
  font-size: 0;
}
.section-wave::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: currentColor;
}
.section-wave svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.section-wave--lg {
  height: 92px;
}
/* ---- INFRA ---- */
.infra {
  background: var(--paper);
  padding: 28px 0 40px;
  overflow: visible;
}
.infra-head {
  position: relative;
  z-index: 3;
  padding: 0 40px 36px;
}
.infra-head h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 68px);
}
.infra-strips {
  display: grid;
  gap: 10px;
}
.infra-strip {
  position: relative;
  min-height: 42svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--on-dark);
}
.infra-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--dark);
}
.infra-strip .media-shift img {
  transform: scale(1.04);
  transition: transform 1.2s ease;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.infra-strip:hover .media-shift img { transform: scale(1.08); }
.infra-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(var(--veil-rgb) / 0.82) 0%, rgb(var(--veil-rgb) / 0.45) 42%, rgb(var(--veil-rgb) / 0.18) 100%),
    linear-gradient(180deg, rgb(var(--veil-rgb) / 0.18) 0%, transparent 40%, rgb(var(--veil-rgb) / 0.35) 100%);
  z-index: 1;
  pointer-events: none;
}
.infra-strip > div:not(.infra-media) {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
  max-width: 520px;
}
.infra-strip h3 {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgb(var(--veil-rgb) / 0.45);
}
.infra-strip p {
  color: rgb(var(--on-dark-rgb) / 0.9);
  text-shadow: 0 1px 10px rgb(var(--veil-rgb) / 0.4);
}
.infra-strip--right {
  justify-items: end;
  text-align: right;
}
.infra-strip--right::after {
  background:
    linear-gradient(270deg, rgb(var(--veil-rgb) / 0.82) 0%, rgb(var(--veil-rgb) / 0.45) 42%, rgb(var(--veil-rgb) / 0.18) 100%),
    linear-gradient(180deg, rgb(var(--veil-rgb) / 0.18) 0%, transparent 40%, rgb(var(--veil-rgb) / 0.35) 100%);
}
.infra-strip--focus-bottom .media-shift img {
  object-position: center 82%;
}

/* ---- FINALE ---- */
.finale {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--dark);
}
.finale-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.finale-bg .media-shift img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  filter: saturate(0.92) brightness(0.88);
}
.finale-bg .mist-layer {
  z-index: 1;
  opacity: 0.34;
}
.finale-bg .mist-fast {
  opacity: 0.2;
}
.finale-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgb(var(--veil-rgb) / 0.82) 0%, rgb(var(--veil-rgb) / 0.48) 46%, rgb(var(--veil-rgb) / 0.28) 100%),
    linear-gradient(180deg, rgb(var(--veil-rgb) / 0.22) 0%, transparent 40%, rgb(var(--veil-rgb) / 0.38) 100%);
}
.finale-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 100px 40px;
  max-width: 1200px;
}
.finale-copy h2 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.96;
  margin-bottom: 16px;
}
.finale-copy p:last-child {
  color: rgb(var(--on-dark-rgb) / 0.78);
  max-width: 34ch;
}
.finale-form {
  display: grid;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
}
.finale-form label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.finale-form input,
.finale-form select {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, #fff);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 14px;
  font-weight: 600;
}
.finale-form input::placeholder {
  color: rgb(var(--accent-ink) / 0.55);
}
.finale-form input:focus,
.finale-form select:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.finale-form option { color: var(--accent-ink); background: var(--accent); }
.finale-form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: rgb(var(--on-dark-rgb) / 0.7);
}
.finale-form .check input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}
.form-ok { color: color-mix(in srgb, var(--free) 55%, var(--on-dark)); font-size: 13px; }
.finale-submit,
html[data-theme='forest'] .finale-submit,
html[data-theme='light'] .finale-submit,
html[data-theme='bright'] .finale-submit {
  background: #fff;
  color: #10231a;
  border-color: #fff;
}

/* ---- FOOTER ---- */
.footer {
  display: grid;
  gap: 16px;
  padding: 48px 40px 12px;
  background: var(--dark);
  color: var(--on-dark);
  font-size: 14px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px 40px;
  align-items: start;
}
.footer-brand {
  display: grid;
  gap: 16px;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding-top: 4px;
}
.footer-logo {
  display: block;
  height: clamp(32px, 3.4vw, 40px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.footer-info {
  display: grid;
  gap: 8px;
  justify-items: start;
  line-height: 1.45;
}
.footer-address {
  margin: 0;
  white-space: pre-line;
}
.footer-org {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 36ch;
}
.footer-ids {
  margin: 0;
  opacity: 0.78;
  font-size: 13px;
}
.footer-mail {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-mail:hover { opacity: 0.85; }
.footer-tel {
  margin-top: 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: inherit;
  line-height: 1.15;
}
.footer-cta {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  align-content: start;
  padding-top: 4px;
}
.footer-cta h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-cta p {
  margin: 0;
  opacity: 0.78;
  font-size: 15px;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 16px 32px;
  border-radius: 999px;
  background: #2f5d42;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow:
    0 0 12px rgb(86 168 120 / 0.75),
    0 0 28px rgb(47 93 66 / 0.7),
    0 0 48px rgb(86 168 120 / 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: footerGlowPulse 2.6s ease-in-out infinite;
}
.footer-cta-btn:hover {
  background: #3a7352;
  filter: none;
  transform: translateY(-1px);
  box-shadow:
    0 0 16px rgb(86 168 120 / 0.9),
    0 0 36px rgb(47 93 66 / 0.85),
    0 0 60px rgb(86 168 120 / 0.45);
}
.footer-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-socials a {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2f5d42;
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow:
    0 0 10px rgb(86 168 120 / 0.55),
    0 0 22px rgb(47 93 66 / 0.45);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-socials a:hover {
  background: #3a7352;
  transform: translateY(-1px);
  box-shadow:
    0 0 14px rgb(86 168 120 / 0.8),
    0 0 28px rgb(47 93 66 / 0.65);
}
.footer-socials a.footer-social--max img,
.footer-socials a.footer-social--vk img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}
.footer-socials svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}
.footer-disclaimer {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  opacity: 0.55;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  justify-self: center;
}

@keyframes footerGlowPulse {
  0%, 100% {
    box-shadow:
      0 0 12px rgb(86 168 120 / 0.75),
      0 0 28px rgb(47 93 66 / 0.7),
      0 0 48px rgb(86 168 120 / 0.35);
  }
  50% {
    box-shadow:
      0 0 18px rgb(86 168 120 / 0.95),
      0 0 40px rgb(47 93 66 / 0.85),
      0 0 64px rgb(86 168 120 / 0.5);
  }
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDot {
  0%, 100% { opacity: 0.2; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 14px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Кинематографичный wipe-reveal для полноширинных медиа */
.wipe {
  clip-path: inset(0 42% 0 0);
  transition: clip-path 1.25s cubic-bezier(0.76, 0, 0.24, 1);
}
.wipe.is-open {
  clip-path: inset(0 0 0 0);
}
@media (prefers-reduced-motion: reduce) {
  .wipe { clip-path: none; transition: none; }
}

@media (max-width: 960px) {
  .top {
    padding: 12px 14px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    gap: 10px;
    flex-wrap: nowrap;
    min-height: 56px;
  }
  .logo { min-width: 0; flex-shrink: 1; }
  .logo img {
    height: clamp(18px, 5vw, 26px);
    max-width: min(42vw, 160px);
  }
  .nav, .phone { display: none; }
  .top:has(.nav.open) {
    z-index: 80;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: calc(56px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: rgb(var(--dark-rgb) / 0.96);
    border-radius: 16px;
    z-index: 60;
    pointer-events: auto;
  }
  .nav.open a {
    pointer-events: auto;
    position: relative;
    z-index: 1;
  }
  .top-cta-group {
    order: 3;
    margin-left: auto;
    gap: 6px;
  }
  .top-cta {
    padding: 8px 10px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }
  .top-cta--solid {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    order: 4;
    margin-left: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 61;
  }
  .nav.open .top-cta-mobile {
    display: block;
    padding: 12px 0 4px;
    border-top: 1px solid rgb(var(--on-dark-rgb) / 0.15);
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 1;
  }
  /* Контент героя высокий — при align-end «глаз» уезжал под фиксированную шапку */
  .hero {
    align-items: start;
    box-sizing: border-box;
    padding-top: calc(68px + env(safe-area-inset-top, 0px));
  }
  .hero-inner {
    padding: 12px 18px max(88px, calc(80px + env(safe-area-inset-bottom, 0px)));
    max-width: 100%;
  }
  .hero-eye {
    margin-top: 4px;
    margin-bottom: 14px;
  }
  .hero-brand {
    font-size: clamp(40px, 12vw, 64px);
  }
  .hero-line {
    font-size: 15px;
    max-width: none;
    line-height: 1.4;
  }
  .hero-offer {
    gap: 6px;
  }
  .hero-offer li {
    font-size: 12px;
    padding: 6px 10px 6px 10px;
  }
  .story-copy,
  .promise,
  .map-scene,
  .finance-inner,
  .infra-head,
  .infra-strip > div:not(.infra-media),
  .finale-grid,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .story-copy {
    padding-bottom: 56px;
    max-width: 100%;
  }
  .story-copy h2,
  .map-intro h2,
  .finance-inner h2,
  .infra-head h2,
  .finale-copy h2 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .promise-head h2 {
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    font-size: clamp(28px, 8.2vw, 40px);
  }
  .map-scene,
  .map-intro,
  .finale-grid,
  .finance-row,
  .promise-item,
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-info,
  .footer-brand,
  .footer-cta {
    justify-items: center;
    text-align: center;
  }
  .footer-brand {
    order: -1;
  }
  .footer-org {
    max-width: none;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-disclaimer {
    text-align: center;
    justify-self: stretch;
    white-space: normal;
  }
  .promise-item {
    grid-template-columns: 48px 1fr;
    gap: 8px 12px;
  }
  .promise-item p {
    grid-column: 2;
  }
  .promise-item .n { font-size: 22px; }
  .promise-item h3 { font-size: 22px; }
  .map-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .map-stats b { font-size: 22px; }
  .map-board-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .map-3d-cta { width: 100%; }
  .gp-num { font-size: 28px; }
  .genplan-legend-note { margin-left: 0; width: 100%; }
  .plots-grid { max-height: none; }
  .plot-sheet {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
  .finale-form { padding: 0; }
  .mist-layer { opacity: 0.22 !important; }
  .curtain-logo { width: min(180px, 52vw); }
}

@media (max-width: 767px) {
  .hero-inner {
    padding: 12px 16px max(96px, calc(88px + env(safe-area-inset-bottom, 0px)));
  }
  .hero-eye {
    margin-bottom: 10px;
  }
  .hero-brand {
    margin-bottom: 12px;
  }
  .hero-line {
    margin-bottom: 18px;
  }
  .hero-offer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 22px;
  }
  .hero-offer li {
    flex: 0 1 calc(50% - 4px);
    width: calc(50% - 4px);
    box-sizing: border-box;
    justify-content: flex-start;
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid rgb(var(--on-dark-rgb) / 0.28);
    background: rgb(var(--on-dark-rgb) / 0.08);
    backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 500;
  }
  .hero-offer li:last-child {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .hero-actions .hero-cta-primary {
    width: 100%;
    min-height: 52px;
    font-size: 12px;
    border-radius: 999px;
  }
  .hero-actions-secondary {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }
  .hero-actions-secondary .btn {
    flex: 1 1 0;
    width: auto;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 10px;
    letter-spacing: 0.06em;
    background: transparent;
    border-color: rgb(var(--on-dark-rgb) / 0.4);
  }
  .hero-scarcity {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-top: 18px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgb(var(--on-dark-rgb) / 0.26);
    background: rgb(var(--on-dark-rgb) / 0.08);
    color: rgb(var(--on-dark-rgb) / 0.88);
    font-weight: 500;
  }
  .hero-scarcity-text {
    font-size: 11px;
    font-weight: 500;
  }
  .hero-scarcity-text b {
    font-weight: 700;
    color: var(--on-dark);
  }
  .hero-scroll {
    display: none;
  }
  .finance {
    min-height: auto;
    align-items: stretch;
  }
  .finance-bg img {
    object-position: center 36%;
  }
  .finance-inner {
    padding: 28px 16px 56px;
    gap: 20px;
  }
  .section-wave--lg {
    height: 68px;
  }
  .infra {
    padding-top: 16px;
  }
  .infra-head {
    padding-bottom: 24px;
  }
  .finance-veil {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(10, 20, 15, 0.55) 36%,
      rgba(10, 20, 15, 0.88) 68%,
      rgba(8, 14, 12, 0.94) 100%
    );
  }
  .finance-intro {
    padding: 18px 16px 20px;
    border-radius: 16px;
    background: rgba(8, 14, 12, 0.88);
  }
  .finance-inner h2,
  .finance-intro h2 {
    white-space: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 10px;
    text-shadow: none;
  }
  .finance-lead {
    font-size: 14px;
    max-width: none;
    text-shadow: none;
  }
  .finance-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .finance-item {
    padding: 16px;
    border-radius: 14px;
  }
  .finance-item h3 {
    font-size: 18px;
  }
  .finance-item p {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .mist-layer { display: none; }
  .map-stats {
    grid-template-columns: 1fr;
  }
  .hero-eye {
    letter-spacing: 0.16em;
    font-size: 11px;
  }
}
