/* ============ PrimPark · Townhouses on the Volga ============ */

:root {
  --bg: #f5f1ea;
  --bg-2: #ebe6dc;
  --bg-card: #ffffff;
  --bg-dark: #0e1814;
  --ink: #14201a;
  --ink-2: #3d4a42;
  --muted: #7a8278;
  --line: #d9d2c2;
  --line-2: #e8e2d2;
  --accent: #1f4d3a;
  --accent-2: #2a6a52;
  --accent-soft: rgba(31,77,58,0.08);
  --gold: #b89968;
  --warn: #c25a3a;
  --success: #4d9b6a;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,32,26,.05), 0 2px 8px rgba(20,32,26,.04);
  --shadow-md: 0 6px 24px rgba(20,32,26,.08);
  --shadow-lg: 0 18px 48px rgba(20,32,26,.14);

  --container: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100vw; }
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
img, video { max-width: 100%; height: auto; }

/* ---------- MOTION: subtle scroll-reveal + image fade-in ---------- */
.pp-fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.pp-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .pp-fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Image fade-in on load (avoids "popping") */
img.pp-img-fade {
  opacity: 0;
  transition: opacity 0.45s ease;
}
img.pp-img-fade.is-loaded { opacity: 1; }

/* Counter mono-width to avoid jitter while animating */
[data-count] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
input, textarea, select { font: inherit; }

/* ---------- Typography ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7;
}
.lead {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
.italic { font-style: italic; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section { padding: clamp(64px, 8vw, 120px) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 72px);
  align-items: end;
}
.section-head.center { display: block; text-align: center; }
.section-head.center .lead { margin: 16px auto 0; }

/* ---------- Sticky top bar ---------- */
.tickbar {
  background: var(--bg-dark);
  color: #f4f0e8;
  font-size: 13px;
  padding: 10px 0;
  text-align: center;
  position: relative; z-index: 60;
  letter-spacing: 0.01em;
}
.tickbar strong { color: var(--gold); font-weight: 600; }
.tickbar .dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--success);
  margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 0 0 var(--success);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(77,155,106,.6); }
  100% { box-shadow: 0 0 0 10px rgba(77,155,106,0); }
}

/* ---------- Nav (как в villas: прозрачный над hero → матовый при скролле) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(245, 241, 234, 0);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.nav.is-scrolled {
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); transition: color .35s ease; }
.nav:not(.is-scrolled) .brand,
.nav:not(.is-scrolled) .nav-phone { color: #f5f1ea; }
.nav:not(.is-scrolled) .brand-mark { background: rgba(245,241,234,0.16); color: #f5f1ea; }
.brand-mark {
  width: 42px; height: 42px;
  background: var(--accent);
  color: #f5f1ea;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background .35s ease, color .35s ease;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
  transition: color .35s ease;
}
.nav:not(.is-scrolled) .brand-sub { color: rgba(245,241,234,0.65); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-size: 15px; font-weight: 600; transition: color .35s ease; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600;
  transition: all .2s ease;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .25s ease; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--accent); color: #f5f1ea;
}
.btn-primary:hover { background: var(--accent-2); }
.btn-gold {
  background: var(--gold); color: var(--bg-dark);
}
.btn-gold:hover { background: #c9a878; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-ghost-light {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 18px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- HERO (v3 · centered, как в villas.html) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(135deg, #2a2f35 0%, #1a2026 100%);
}
.hero-media-photo {
  background-image: url('PrimPark_images/grey/aerial_complex.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(14,24,20,0.78) 0%, rgba(14,24,20,0.55) 45%, rgba(14,24,20,0.35) 100%),
    linear-gradient(180deg, rgba(14,24,20,0.3) 0%, rgba(14,24,20,0.15) 45%, rgba(14,24,20,0.65) 100%);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(140px, 18vh, 220px) var(--pad-x) clamp(96px, 12vh, 140px);
  z-index: 1;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6.4vw, 110px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  margin: 0 auto;
  text-wrap: balance;
  max-width: 18ch;
  text-align: center;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  margin: 36px auto 40px;
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  text-align: center;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0 auto 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-meta li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-cta {
  display: flex;
  margin: 0 auto;
  width: fit-content;
}

.hero-fine {
  margin: 18px auto 0;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.01em;
  text-align: center;
}

/* ----- Адаптив ----- */
@media (max-width: 900px) {
  .hero-inner { padding: clamp(110px, 14vh, 160px) var(--pad-x) 80px; }
  .hero-meta { gap: 12px 22px; font-size: 11px; letter-spacing: 0.14em; }
  .hero-sub { margin: 28px auto 32px; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-cta { width: 100%; justify-content: center; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.18em; }
  .hero-title { font-size: clamp(28px, 8vw, 40px); max-width: 14ch; line-height: 1.1; }
  .hero-sub { font-size: 14px; max-width: 36ch; }
  .hero-meta { font-size: 10px; gap: 10px 18px; }
}

/* ---------- Facts strip ---------- */
.facts {
  background: var(--bg-dark);
  color: #f5f1ea;
  padding: 32px 0;
}
.facts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 64px;
  max-width: 1000px;
  margin: 0 auto;
}
.fact {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-align: left;
}
.fact .v {
  color: rgba(245,241,234,0.65);
  margin-top: 0;
}
.fact .k {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}
.fact .v {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  line-height: 1.3;
}

/* ---------- Location ---------- */
.location { background: var(--bg); }
.location-stage {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #cad9bb;
  border: 1px solid var(--line);
}
.location-map { width: 100%; height: 100%; }

/* Location proof grid (фото-доказательства видов на Волгу) */
.location-proof {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
  margin: 40px 0 0;
}
.loc-proof {
  position: relative;
  border-radius: var(--r-lg, 18px);
  overflow: hidden;
  margin: 0;
  background: var(--bg-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.loc-proof-zoom { cursor: zoom-in; }
.loc-proof-zoom:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.loc-proof-zoom-hint {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(20, 32, 26, 0.75);
  color: #f5f1ea;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.loc-proof-zoom:hover .loc-proof-zoom-hint { opacity: 1; }
@media (hover: none) {
  .loc-proof-zoom-hint { opacity: 0.85; }
}
.loc-proof:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(20, 32, 26, 0.12);
}
.loc-proof img,
.loc-proof video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.loc-proof:hover img,
.loc-proof:hover video { transform: scale(1.04); }
.loc-proof video { background: #000; }
.loc-proof-lg { grid-column: span 3; grid-row: span 2; }
.loc-proof-md { grid-column: span 3; }
.loc-proof-sm { grid-column: span 2; }
.loc-proof figcaption {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  background: rgba(20, 32, 26, 0.82);
  color: #f5f1ea;
  padding: 12px 16px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.loc-proof-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.loc-proof-sub {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: rgba(245, 241, 234, 0.7);
  text-transform: uppercase;
}

/* Location times — компактная полоса под фото */
.location-times {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.loc-time {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md, 12px);
}
.loc-time-ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.loc-time-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
.loc-time-val small {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.loc-time-place {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .location-proof { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
  .loc-proof-lg { grid-column: span 4; grid-row: span 2; }
  .loc-proof-md { grid-column: span 2; }
  .loc-proof-sm { grid-column: span 2; }
  .location-times { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .location-proof { grid-template-columns: 1fr; grid-auto-rows: 200px; gap: 12px; }
  .loc-proof-lg, .loc-proof-md, .loc-proof-sm { grid-column: span 1; grid-row: span 1; }
  .loc-proof-lg { grid-row: span 2; }
  .location-times { grid-template-columns: 1fr; }
}


/* Inline photo inside location-stage (replaces map when pill clicked) */
.location-stage-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: location-fade-in 0.3s ease;
}
@keyframes location-fade-in {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}
.location-stage-cap {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(20, 32, 26, 0.78);
  color: #f5f1ea;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: calc(100% - 32px);
}
.location-stage-back {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 241, 234, 0.92);
  color: var(--ink);
  border: 1px solid rgba(20, 32, 26, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.location-stage-back:hover {
  background: #fff;
  transform: translateY(-1px);
}
.timeline-pill-clickable.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f5f1ea;
}
.timeline-pill-clickable.is-active .ico,
.timeline-pill-clickable.is-active strong {
  color: #f5f1ea;
}
.timeline-pill-clickable.is-active .pill-zoom-hint {
  background: rgba(245, 241, 234, 0.18);
  border-color: rgba(245, 241, 234, 0.4);
  color: #f5f1ea;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer;
  transition: transform .2s;
  z-index: 2;
}
.map-pin:hover { transform: translate(-50%, -100%) translateY(-3px); }
.map-pin .label {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.map-pin.us .label {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.map-pin .dot {
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
  border: 2px solid #fff;
  margin-top: 4px;
  box-shadow: var(--shadow-sm);
}
.map-pin.us .dot {
  background: var(--accent);
  width: 18px; height: 18px;
}
.map-pin.us .dot::before {
  content: ''; position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ping 2s ease-out infinite;
  opacity: 0.6;
}
@keyframes ping {
  0% { transform: translate(-50%,-50%) scale(0.6); opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; }
}

.timeline-pills {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}
.timeline-pill {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
}
.timeline-pill .ico { color: var(--accent); }
.timeline-pill strong { font-weight: 700; }

.timeline-pill-clickable {
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.timeline-pill-clickable:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 77, 58, 0.12);
}
.timeline-pill-clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pill-zoom-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  margin-left: auto;
  white-space: nowrap;
}

/* ---------- Pillars (4 столпа) ---------- */
.pillars { background: var(--bg-2); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pillar {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line-2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-ico {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 10px;
}
.pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-dark); color: #f5f1ea; }
.gallery .eyebrow { color: var(--gold); }
.gallery .lead { color: rgba(255,255,255,0.7); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 160px;
  gap: 12px;
}
.gtile {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: #2a3530;
  cursor: pointer;
  transition: transform .25s ease;
}
.gtile:hover { transform: scale(1.01); }
.gtile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gtile-zoom {
  font: inherit;
  color: inherit;
  border: none;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: block;
  text-align: left;
  width: 100%;
}
.gtile-zoom:disabled { cursor: default; }
.gtile-zoom:hover img { transform: scale(1.06); }
.gtile-zoom:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.gtile-zoom-hint {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(20, 32, 26, 0.75);
  color: #f5f1ea;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gtile-zoom:hover .gtile-zoom-hint,
.gtile-zoom:focus-visible .gtile-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox navigation arrows (used by Gallery) */
.plan-zoom-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: #f5f1ea;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 201;
}
.plan-zoom-nav:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.05);
}
.plan-zoom-nav.prev { left: clamp(16px, 3vw, 32px); }
.plan-zoom-nav.next { right: clamp(16px, 3vw, 32px); }
@media (max-width: 640px) {
  .plan-zoom-nav { width: 40px; height: 40px; }
  .plan-zoom-nav.prev { left: 8px; }
  .plan-zoom-nav.next { right: 8px; }
}
.gtile .gcap {
  position: absolute; left: 16px; bottom: 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
  z-index: 2;
}
.gtile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.gtile.placeholder {
  background:
    repeating-linear-gradient(135deg, #1c2a23 0 14px, #243029 14px 28px);
}
.gtile.placeholder .gcap {
  top: 50%; left: 50%; bottom: auto;
  transform: translate(-50%,-50%);
  text-shadow: none;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.4);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px dashed rgba(255,255,255,0.25);
  text-align: center;
}
.gtile.tall { grid-row: span 2; }
.gtile.wide { grid-column: span 6; }
.gtile.med { grid-column: span 4; }
.gtile.sm { grid-column: span 3; }
.gtile.lg { grid-column: span 8; grid-row: span 2; }

/* ---------- Plans ---------- */
.plans { background: var(--bg); }
.plans-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.plans-tab {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.plans-tab:hover { border-color: var(--accent); color: var(--accent); }
.plans-tab.is-active {
  background: var(--accent); color: #f5f1ea;
  border-color: var(--accent);
}
.plans-tab .small {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 8px;
  font-weight: 500;
}

.plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line-2);
}
/* ---------- House types overview (вверху Plans) ---------- */
.house-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: clamp(32px, 4vw, 48px) 0 clamp(32px, 4vw, 48px);
}
.ht-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md, 14px);
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
  position: relative;
}
.ht-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 18px 36px rgba(20,32,26,0.10);
}
.ht-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 18px 36px rgba(31,77,58,0.16);
}
.ht-card.is-active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 18px; height: 18px;
  background: var(--bg-card);
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}
.ht-card-accent {
  background: var(--ink);
  color: #f5f1ea;
  border-color: var(--ink);
}
.ht-card-accent:hover { border-color: var(--gold, #b89968); }
.ht-card-accent.is-active {
  border-color: var(--gold, #b89968);
  box-shadow: 0 0 0 2px var(--gold, #b89968), 0 18px 36px rgba(184,153,104,0.22);
}
.ht-card-accent.is-active::after {
  background: var(--ink);
  border-right-color: var(--gold, #b89968);
  border-bottom-color: var(--gold, #b89968);
}
.ht-cta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.ht-card-accent .ht-cta { color: var(--gold, #b89968); }
.ht-card.is-active .ht-cta { color: var(--accent); }

.ht-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 999px;
  font-weight: 600;
}
.ht-card-accent .ht-badge {
  background: rgba(184,153,104,0.18);
  color: var(--gold, #b89968);
}

.ht-area {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ht-card-accent .ht-area { color: #f5f1ea; }
.ht-area strong {
  font-weight: 500;
}
.ht-area small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ht-card-accent .ht-area small { color: rgba(245,241,234,0.55); }

.ht-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 2px;
}
.ht-card-accent .ht-meta {
  color: rgba(245,241,234,0.7);
  border-top-color: rgba(245,241,234,0.12);
}
.ht-meta span:last-child { font-weight: 700; color: var(--ink); }
.ht-card-accent .ht-meta span:last-child { color: #f5f1ea; }

.ht-price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: -2px;
}
.ht-card-accent .ht-price {
  color: var(--gold, #b89968);
  border-top-color: rgba(245,241,234,0.12);
}
.ht-price strong { font-weight: 500; }

@media (max-width: 1100px) {
  .house-types { grid-template-columns: 1fr; }
}

.plan-card {
  position: relative;
  scroll-margin-top: 100px;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.plan-card.is-highlight {
  box-shadow: 0 0 0 3px var(--accent), 0 24px 60px rgba(31, 77, 58, 0.18);
  border-radius: 16px;
}
.plan-lot-badge {
  position: absolute;
  top: -14px; left: clamp(16px, 4vw, 32px);
  background: var(--accent);
  color: #f5f1ea;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(31, 77, 58, 0.3);
  animation: plan-badge-pop 0.3s ease;
}
@keyframes plan-badge-pop {
  from { transform: translateY(-8px) scale(0.94); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.plan-image-photo {
  aspect-ratio: 4/3;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: block;
  padding: 0;
  width: 100%;
  position: relative;
}
.plan-image-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  transition: transform 0.35s ease;
}
.plan-image-zoom {
  border: 1px solid var(--line);
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.plan-image-zoom:hover img {
  transform: scale(1.04);
}
.plan-image-hint {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 32, 26, 0.86);
  color: #f5f1ea;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.plan-image-zoom:hover .plan-image-hint,
.plan-image-zoom:focus-visible .plan-image-hint {
  opacity: 1;
}

/* Lightbox */
.plan-zoom-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 32, 26, 0.94);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  cursor: zoom-out;
  animation: plan-fade-in 0.2s ease;
  /* Свайп влево/вправо должен идти в JS, вертикальная прокрутка — браузеру */
  touch-action: pan-y;
  -webkit-touch-callout: none;
}
.plan-zoom-overlay img { -webkit-user-drag: none; user-select: none; }
.plan-zoom-overlay video { max-width: 100%; max-height: calc(100vh - 140px); background: #000; border-radius: 8px; }
@keyframes plan-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.plan-zoom-inner {
  position: relative;
  max-width: min(1400px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: auto;
}
.plan-zoom-inner img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  background: #fff;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.plan-zoom-label {
  color: rgba(245,241,234,0.85);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

/* Zoom stage (Plans floor-plan only) — scrollable + scalable */
.plan-zoom-overlay-stage {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: clamp(72px, 9vh, 96px) clamp(16px, 4vw, 48px) clamp(24px, 4vh, 48px) !important;
}
.plan-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(20, 32, 26, 0.75);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: auto;
}
.plan-zoom-ctrl {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #f5f1ea;
  font-size: 22px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
  padding: 0;
}
.plan-zoom-ctrl:hover:not(:disabled) {
  background: rgba(255,255,255,0.15);
}
.plan-zoom-ctrl:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.plan-zoom-ctrl-reset {
  width: auto;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-left: 4px;
  border-left: 1px solid rgba(255,255,255,0.12);
  border-radius: 0 999px 999px 0;
}
.plan-zoom-pct {
  min-width: 56px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245,241,234,0.9);
  user-select: none;
}
.plan-zoom-stage {
  width: 100%;
  max-width: min(1400px, 100%);
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  cursor: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-zoom-stage.is-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}
.plan-zoom-stage img {
  display: block;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.plan-zoom-close {
  position: fixed;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f5f1ea;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 201;
}
.plan-zoom-close:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.05);
}
.floor-switch {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.floor-switch-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.floor-switch-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.floor-switch-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  font-weight: 700;
}
.plan-image {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, #eae5d8 0 14px, #f0ece1 14px 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  display: grid; place-items: center;
}
.plan-image .ph {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  background: var(--bg); padding: 6px 12px; border-radius: 4px;
  border: 1px dashed var(--line);
}
.plan-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.plan-meta .k {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 6px;
}
.plan-meta .v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.plan-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}
.plan-feature .check {
  width: 18px; height: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* Шахматка наличия */
.chessboard {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.chess-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.chess-head h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0;
}
.chess-legend { display: flex; gap: 18px; font-size: 13px; flex-wrap: wrap; }
.chess-legend-item { display: flex; align-items: center; gap: 8px; }
.chess-legend-sw {
  width: 14px; height: 14px; border-radius: 4px;
}
.chess-legend-sw.free { background: var(--accent); }
.chess-legend-sw.hold { background: var(--gold); }
.chess-legend-sw.sold { background: #c5beae; }
.chess-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 10px;
}
.chess-cell {
  aspect-ratio: 1/1;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  transition: transform .15s ease;
}
.chess-cell:hover { transform: scale(1.05); }
.chess-cell.free { background: var(--accent); color: #f5f1ea; }
.chess-cell.hold { background: var(--gold); color: var(--bg-dark); }
.chess-cell.sold { background: #c5beae; color: rgba(20,32,26,0.4); }
.chess-cell .lbl {
  position: absolute; bottom: 4px; right: 6px;
  font-size: 9px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

/* ---------- Quality (Качество) ---------- */
.quality { background: var(--bg-2); }
.quality-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.quality-diagram {
  position: relative;
  aspect-ratio: 5/4;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 20px;
}
.quality-diagram-photo {
  padding: 0;
  background: #fff;
}
.quality-diagram-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.quality-grid-nophoto { grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; }
.quality-spec-wide li { padding: 20px 0; }
.quality-spec { list-style: none; padding: 0; margin: 0; }
.quality-spec li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.quality-spec li:last-child { border-bottom: none; }
.quality-spec .num {
  width: 32px; height: 32px;
  background: var(--accent);
  color: #f5f1ea;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px;
  font-weight: 600;
}
.quality-spec .t { font-weight: 600; margin-bottom: 4px; }
.quality-spec .d { font-size: 14px; color: var(--ink-2); }

/* Compare table */
.compare-table {
  margin-top: 40px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
}
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.compare-table th {
  background: var(--bg-2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.compare-table td:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--accent); font-weight: 700; }
.compare-table .no { color: var(--muted); opacity: 0.5; }
.compare-table .col-us { background: rgba(31,77,58,0.04); }

/* ---------- Price-fact (от и до сводка) ---------- */
.price-fact {
  margin: clamp(28px, 4vw, 48px) 0 clamp(32px, 4vw, 48px);
  padding: clamp(28px, 4vw, 44px);
  background: var(--ink);
  color: #f5f1ea;
  border-radius: var(--r-lg, 18px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.price-fact::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(184,153,104,0.18), transparent 65%);
  pointer-events: none;
}
.price-fact-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #b89968);
  margin-bottom: 12px;
}
.price-fact-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(28px, 4vw, 40px);
  color: #f5f1ea;
}
.price-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: left;
}
.price-fact-item {
  padding: 0 clamp(16px, 2.5vw, 28px);
  position: relative;
}
.price-fact-item + .price-fact-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(245,241,234,0.18), transparent);
}
.pf-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.55);
  margin-bottom: 10px;
}
.pf-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1;
  color: #f5f1ea;
  letter-spacing: -0.025em;
}
.pf-value strong {
  font-weight: 500;
  color: var(--gold, #b89968);
}
.pf-value small {
  font-family: var(--font-body);
  font-size: 0.42em;
  font-weight: 600;
  color: rgba(245,241,234,0.85);
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.pf-sub {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(245,241,234,0.62);
}

@media (max-width: 760px) {
  .price-fact-grid { grid-template-columns: 1fr; gap: 24px; }
  .price-fact-item { padding: 0; }
  .price-fact-item + .price-fact-item {
    padding-top: 24px;
    border-top: 1px solid rgba(245,241,234,0.12);
  }
  .price-fact-item + .price-fact-item::before { display: none; }
  .pf-value { font-size: 32px; }
}

/* ---------- Mortgage: lot select ---------- */
.mort-lot-select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f5f1ea;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 38px 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f1ea' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.mort-lot-select:hover {
  border-color: var(--gold, #b89968);
  background-color: rgba(255,255,255,0.08);
}
.mort-lot-select:focus {
  outline: none;
  border-color: var(--gold, #b89968);
}
.mort-lot-select option {
  background: #14201a;
  color: #f5f1ea;
}

/* ---------- Availability (Цена → таблица лотов) ---------- */
.availability {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px);
  padding: clamp(24px, 3vw, 36px);
}
.availability-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.availability-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  margin: 12px 0 0;
  letter-spacing: -0.01em;
}
.availability-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.availability-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ldot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ldot.free { background: #1f4d3a; }
.ldot.hold { background: #c2823a; }
.ldot.sold { background: #999; }

.availability-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.availability-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.availability-table th,
.availability-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.availability-table th {
  background: var(--bg-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.availability-table tr:last-child td { border-bottom: none; }
.availability-table .row-hold { background: rgba(194,130,58,0.04); }
.availability-table .row-sold { color: var(--muted); }
.availability-table .row-sold td:not(:last-child) { opacity: 0.5; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.status-free { background: rgba(31,77,58,0.10); color: #1f4d3a; }
.status-hold { background: rgba(194,130,58,0.12); color: #b3742a; }
.status-sold { background: rgba(120,120,120,0.12); color: #5c5c5c; }

.availability-foot {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.availability-foot p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .availability { padding: 20px 16px; }
  .availability-head { gap: 12px; margin-bottom: 16px; }
  .availability-legend { font-size: 11px; gap: 10px; }
  .availability-table table { font-size: 12px; min-width: 540px; }
  .availability-table th, .availability-table td { padding: 10px 8px; }
  .availability-table th { font-size: 9px; letter-spacing: 0.06em; }
  .status-pill { font-size: 10px; padding: 3px 8px; }
}

/* ---------- Infrastructure ---------- */
.infra { background: var(--bg); }

/* Hero photo для блока инфраструктуры — аэрофото комплекса с тегами */
.infra-hero {
  position: relative;
  margin: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 40px);
  aspect-ratio: 21/9;
  overflow: hidden;
  border-radius: var(--r-lg, 18px);
  background: var(--bg-card);
}
.infra-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.infra-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,32,26,0) 35%, rgba(20,32,26,0.7) 100%);
}
.infra-hero-tags {
  position: absolute;
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 28px);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 1;
}
.infra-hero-img {
  animation: infra-fade 0.45s ease;
}
@keyframes infra-fade {
  from { opacity: 0; transform: scale(1.015); }
  to   { opacity: 1; transform: scale(1); }
}
.infra-tag {
  background: rgba(245, 241, 234, 0.92);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.infra-tag:hover {
  background: #fff;
  transform: translateY(-1px);
}
.infra-tag.is-active {
  background: var(--accent);
  color: #f5f1ea;
  border-color: var(--accent);
}
.infra-tag.is-active:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.infra-card {
  grid-column: span 2;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex; flex-direction: column;
}
.infra-card .amenity-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.infra-card .t { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.infra-card .d { font-size: 13px; color: var(--muted); }

.infra-note {
  margin-top: 32px;
  padding: 24px;
  background: var(--accent);
  color: #f5f1ea;
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: 20px;
  font-size: 16px;
  flex-wrap: wrap;
}
.infra-note .num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}

/* ---------- Price ---------- */
.price { background: var(--bg-2); }
.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.price-grid-single { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; }
.price-progress {
  background: var(--bg-card);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.price-bar {
  height: 12px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin: 16px 0 12px;
}
.price-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 33%;
  border-radius: var(--r-pill);
}
.price-trackers {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.price-stages {
  display: flex; gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.price-stage {
  flex: 1;
  padding: 16px;
  border-radius: var(--r-md);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg);
  min-width: 100px;
}
.price-stage.now {
  background: var(--accent);
  color: #f5f1ea;
  border-color: var(--accent);
}
.price-stage.sold { opacity: 0.5; text-decoration: line-through; }
.price-stage .small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.8;
}

/* ---------- Mortgage calculator ---------- */
.mortgage { background: var(--bg-dark); color: #f5f1ea; }
.mortgage .eyebrow { color: var(--gold); }
.mortgage .lead { color: rgba(255,255,255,0.75); }
.mortgage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.mort-calc {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
}
.mort-field { margin-bottom: 28px; }
.mort-field-label {
  display: flex; justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.mort-field-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
}
.mort-slider {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}
.mort-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 1px var(--gold);
}
.mort-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg-dark);
}
.mort-programs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}
.mort-prog {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
}
.mort-prog:hover { background: rgba(255,255,255,0.08); }
.mort-prog.active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}
.mort-prog .rate {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.mort-prog.active .rate { color: var(--bg-dark); }

.mort-result {
  background: var(--gold);
  color: var(--bg-dark);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
  position: sticky; top: 100px;
}
.mort-result h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 24px;
  font-weight: 500;
}
.mort-result-row {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(14,24,20,0.15);
  font-size: 14px;
}
.mort-result-row:last-of-type { border-bottom: none; }
.mort-result-monthly {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--bg-dark);
  text-align: center;
}
.mort-result-monthly .lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(14,24,20,0.7);
  margin-bottom: 8px;
}
.mort-result-monthly .val {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
}
.mort-result-monthly .val small {
  font-size: 0.4em;
  font-weight: 400;
}

/* ---------- Personas ---------- */
.personas { background: var(--bg); }
.personas-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
  aspect-ratio: 21/9;
  background: var(--bg-card);
}
.personas-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.personas-photo-cap {
  position: absolute;
  left: 24px; bottom: 20px;
  background: rgba(20, 32, 26, 0.78);
  color: #f5f1ea;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Mortgage premium headline */
.mortgage-headline {
  font-size: clamp(36px, 5.5vw, 84px) !important;
  letter-spacing: -0.025em;
  line-height: 0.96;
}
.mortgage-headline em.italic {
  font-style: italic;
  font-weight: 400;
}

/* Video in lightbox */
.plan-zoom-video {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  background: #000;
  border-radius: 8px;
  display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.persona {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 36px);
  border: 1px solid var(--line-2);
  display: flex; flex-direction: column;
}
.persona-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.persona-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.persona h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.1;
}
.persona p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 20px;
  line-height: 1.55;
}
.persona-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  padding-top: 20px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq-list { max-width: 920px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.faq-q .icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 16px;
  transition: transform .25s ease, background .25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-q .icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  visibility: hidden;
  transition: max-height .35s ease, padding .35s ease, visibility 0s linear .35s;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 800px;
  padding: 0 0 28px;
  visibility: visible;
  transition: max-height .35s ease, padding .35s ease, visibility 0s linear 0s;
}

/* ---------- Process ---------- */
.process { background: var(--bg); }

/* Process hero — фото с оверлеем «14 дней» */
.process-hero {
  position: relative;
  margin-top: clamp(32px, 4vw, 56px);
  border-radius: var(--r-lg, 18px);
  overflow: hidden;
  aspect-ratio: 21/8;
  background: var(--bg-card);
}
.process-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.process-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,32,26,0.78) 0%, rgba(20,32,26,0.55) 38%, rgba(20,32,26,0.15) 70%, rgba(20,32,26,0) 100%);
}
.process-hero-overlay {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  color: #f5f1ea;
  max-width: 460px;
  z-index: 1;
}
.process-hero-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.7);
  margin-bottom: 12px;
}
.process-hero-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--gold, #b89968);
}
.process-hero-num small {
  font-family: var(--font-body);
  font-size: 0.22em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.85);
  margin-left: 14px;
  vertical-align: super;
}
.process-hero-sub {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  color: rgba(245,241,234,0.85);
  margin-top: 14px;
  max-width: 36ch;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(36px, 5vw, 64px);
  position: relative;
}
.process-step {
  position: relative;
}
.process-step .num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
}
.process-step h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.process-step p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
.process-step::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 100%;
  width: 24px;
  height: 1px;
  background: var(--line);
}
.process-step:last-child::before { display: none; }

.process-note {
  margin-top: 56px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--accent);
}

/* ---------- Developer ---------- */
.developer { background: var(--bg-2); }
.dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.dev-photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, #d8d2c2 0 14px, #ddd7c8 14px 28px);
  position: relative;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.dev-photo .ph {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  background: var(--bg); padding: 6px 12px; border-radius: 4px;
  border: 1px dashed var(--line);
}
.dev-bureau {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.dev-bureau .item {
  padding: 18px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.dev-bureau .item .k {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.dev-bureau .item .v {
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
}
.docs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.doc {
  aspect-ratio: 1/1.3;
  border-radius: var(--r-sm);
  background:
    repeating-linear-gradient(135deg, #eee8d8 0 8px, #f3edde 8px 16px);
  position: relative;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .2s;
  display: grid; place-items: end center;
  padding: 10px;
}
.doc:hover { transform: translateY(-2px); }
.doc .lbl {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--muted);
}

/* ---------- Final CTA ---------- */
.final {
  background: var(--accent);
  color: #f5f1ea;
  padding: clamp(64px, 8vw, 120px) 0;
}
.final .eyebrow { color: var(--gold); }
.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
}
.final h2 { color: #f5f1ea; }
.final .lead { color: rgba(245,241,234,0.85); }
.final-form {
  background: var(--bg);
  color: var(--ink);
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--r-lg);
}
.final-form h3 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 500;
}
.final-form .small {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.field { margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}
.field .agree {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.field .agree a { text-decoration: underline; }

.contact-info {
  display: flex; gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(245,241,234,0.15);
  flex-wrap: wrap;
  font-size: 14px;
}
.contact-info .k {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,241,234,0.6); margin-bottom: 4px;
}
.contact-info .v { font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(245,241,234,0.7);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer h4 {
  color: var(--gold);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li, .footer a {
  display: block;
  font-size: 14px;
  color: rgba(245,241,234,0.7);
  margin-bottom: 8px;
  line-height: 1.5;
}
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand-sub { color: rgba(245,241,234,0.5); }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(245,241,234,0.7);
  max-width: 32ch;
  margin-bottom: 16px;
}
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(245,241,234,0.1);
  font-size: 12px;
  color: rgba(245,241,234,0.5);
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.5;
}
.footer-legal > div:nth-child(2),
.footer-legal > div:nth-child(3) {
  color: rgba(245,241,234,0.6);
}
.footer-offer {
  white-space: nowrap;
}

/* ---------- Floating CTA ---------- */
.float-cta {
  position: fixed; right: 24px; bottom: 24px;
  z-index: 40;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.float-cta .pill {
  background: var(--accent);
  color: #f5f1ea;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .2s ease;
}
.float-cta .pill:hover { transform: translateY(-2px); }
.float-cta .pill.gold {
  background: var(--gold);
  color: var(--bg-dark);
}
.float-cta .icon-btn {
  width: 52px; height: 52px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease;
}
.float-cta .icon-btn:hover { transform: translateY(-2px); }
.float-cta .icon-btn.tg { background: #229ed9; }

/* ---------- Modal / popup ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(13,22,18,0.6);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  animation: fade .3s ease;
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--bg);
  max-width: 560px;
  width: 100%;
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 44px);
  position: relative;
  animation: rise .35s ease;
  max-height: 90vh; overflow-y: auto;
}

/* Contact-method selector inside lead form */
.contact-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
}
.contact-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.contact-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent) !important;
  box-shadow: inset 0 0 0 1px var(--accent);
  font-weight: 700;
}
.contact-pill.is-active::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 2px;
}
.contact-pill svg {
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .contact-pills { grid-template-columns: repeat(2, 1fr); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal .close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid; place-items: center;
}
.modal h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.1;
}
.modal-subtitle {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.modal-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .infra-card { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .price-grid, .mortgage-grid, .quality-grid, .final-grid, .dev-grid, .plan-card, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .personas-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step::before { display: none; }
  .gallery-grid { grid-auto-rows: 130px; }
  .gtile.lg { grid-column: span 12; grid-row: span 2; }
  .gtile.wide { grid-column: span 12; }
  .gtile.med, .gtile.sm { grid-column: span 6; }
  .mort-result { position: static; }
  .hero-urgency { display: none; }
}
/* ---------- Theme variants (via Tweaks) ---------- */
@media (max-width: 1100px) {
  .process-hero { aspect-ratio: 16/9; }
  .process-hero-overlay { max-width: 380px; }
}
@media (max-width: 640px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-card { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; }
  .plan-meta { grid-template-columns: 1fr; }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .infra-hero { aspect-ratio: 16/10; }
  .infra-tag { font-size: 11px; padding: 6px 10px; }
  .process-hero { aspect-ratio: 4/5; }
  .process-hero::after {
    background: linear-gradient(180deg, rgba(20,32,26,0) 0%, rgba(20,32,26,0.55) 50%, rgba(20,32,26,0.88) 100%);
  }
  .process-hero-overlay {
    top: auto; bottom: 24px; left: 20px; right: 20px;
    transform: none;
  }
  .process-hero-num { font-size: 64px; }
  .nav-phone-block { display: none; }

  /* Mobile: containers stay inside viewport */
  .container { padding-left: 16px; padding-right: 16px; }

  /* Buttons never overflow */
  .btn, .btn-lg {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-ctas .btn { width: 100%; }

  /* Hero trust row wraps cleanly */
  .hero-trust { flex-wrap: wrap; gap: 8px 14px; }
  .hero-trust-item { font-size: 11px; }

  /* Tickbar — better mobile sizing */
  .tickbar {
    font-size: 11px;
    padding: 6px 12px;
    line-height: 1.4;
    text-align: center;
  }

  /* Mortgage calculator — fit ~one screen */
  .mortgage-headline { font-size: 30px !important; }
  .mort-calc, .mort-result { padding: 20px 18px; }
  .mort-calc h3 { display: none; }
  .mort-field { margin-bottom: 16px; }
  .mort-field-label { font-size: 13px; }
  .mort-field-value { font-size: 14px; }
  .mort-programs { gap: 6px; }
  .mort-prog { padding: 8px 10px; font-size: 12px; }
  .mort-result-monthly { padding: 14px 16px; }
  .mort-result-monthly .val { font-size: 36px; }
  .mort-result-row { padding: 8px 0; font-size: 13px; }

  /* Personas photo compact */
  .personas-photo { aspect-ratio: 16/9; margin: 28px 0 40px; }
  .personas-photo-cap { left: 12px; bottom: 12px; font-size: 10px; padding: 6px 10px; }

  /* Modal — full width */
  .modal { padding: 24px 18px; max-height: 88vh; }
  .modal h2 { font-size: 22px; }

  /* Contact methods — 2x2 already, fine */
  .contact-pill { font-size: 12px; padding: 9px 4px; }

  /* Plan card: chess removed, plan-image goes full width */
  .plan-image-photo { width: 100%; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 36px; }
  .display-lg, .mortgage-headline { font-size: 26px !important; }
}

body[data-palette="forest"] { --accent: #1f4d3a; --accent-2: #2a6a52; --accent-soft: rgba(31,77,58,0.08); --gold: #b89968; }
body[data-palette="ink"]    { --accent: #1a2a23; --accent-2: #2d3d34; --accent-soft: rgba(26,42,35,0.08); --gold: #b89968; }
body[data-palette="bronze"] { --accent: #7a5a32; --accent-2: #9c764a; --accent-soft: rgba(122,90,50,0.08); --gold: #c9a368; }
body[data-palette="navy"]   { --accent: #1f3a5e; --accent-2: #2e527e; --accent-soft: rgba(31,58,94,0.08); --gold: #c4a06a; }

/* ---------- Construction / Открытая стройка ---------- */
.construction {
  background: var(--bg-2, #ebe6dc);
  position: relative;
}
.construction-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  font-weight: 600;
}
.cn-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cn-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.cn-dot.done { background: #1f4d3a; box-shadow: 0 0 0 3px rgba(31,77,58,0.18); }
.cn-dot.soon { background: #c2823a; box-shadow: 0 0 0 3px rgba(194,130,58,0.18); }
.cn-dot.plan { background: #5c5c5c; box-shadow: 0 0 0 3px rgba(92,92,92,0.18); }

.construction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cn-card {
  background: var(--bg, #f5f1ea);
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cn-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 32, 26, 0.08);
}
.cn-photo {
  position: relative;
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, #d8d2c2 0 14px, #e0dac8 14px 28px);
  overflow: hidden;
}
.cn-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cn-photo-btn {
  border: none;
  padding: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  display: block;
  text-align: left;
}
.cn-photo-btn:disabled { cursor: default; }
.cn-photo-btn:hover img { transform: scale(1.06); }
.cn-photo-btn:focus-visible {
  outline: 2px solid var(--gold, #b89968);
  outline-offset: 3px;
}
.cn-zoom-hint {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(20, 32, 26, 0.78);
  color: #f5f1ea;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cn-photo-btn:hover .cn-zoom-hint,
.cn-photo-btn:focus-visible .cn-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}
.cn-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.cn-date {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(20, 32, 26, 0.78);
  color: rgba(245,241,234,0.95);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cn-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.cn-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}
.cn-card.cn-done { border-color: rgba(31,77,58,0.25); }
.cn-card.cn-soon { border-color: rgba(194,130,58,0.30); }
.cn-card.cn-plan { border-color: rgba(92,92,92,0.20); }
.cn-card.cn-done .cn-status { color: #1f4d3a; }
.cn-card.cn-soon .cn-status { color: #b3742a; }
.cn-card.cn-plan .cn-status { color: var(--muted); }
.cn-label {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 500;
}
.construction-cta {
  margin-top: 56px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--ink);
  color: #f5f1ea;
  border-radius: var(--r-lg, 18px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cn-cta-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.15;
}
.cn-cta-sub {
  font-size: 15px;
  color: rgba(245,241,234,0.7);
  margin: 0;
  max-width: 56ch;
}

@media (max-width: 1100px) {
  .construction-grid { grid-template-columns: repeat(2, 1fr); }
  .construction-cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .construction-grid { grid-template-columns: 1fr; gap: 14px; }
  .construction-legend { font-size: 12px; gap: 14px; margin: 18px 0 24px; }
  .cn-card-body { padding: 14px 16px 18px; }
  .cn-label { font-size: 14px; }
  .construction-cta { margin-top: 36px; }
}

/* ---------- Yandex Map Modal ---------- */
.ymap-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 32, 26, 0.78);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  cursor: zoom-out;
  animation: plan-fade-in 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ymap-frame {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: min(86vh, 760px);
  background: #f5f1ea;
  border-radius: var(--r-lg, 18px);
  overflow: hidden;
  cursor: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}
.ymap-head {
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.ymap-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.ymap-addr {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 500;
  max-width: 56ch;
}
.ymap-iframe {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
  background: #e8e5dc;
}
.ymap-close {
  position: fixed;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(245, 241, 234, 0.92);
  border: 1px solid rgba(20,32,26,0.08);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 251;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ymap-close:hover {
  background: #fff;
  transform: scale(1.05);
}
@media (max-width: 640px) {
  .ymap-frame { height: 90vh; }
  .ymap-head { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .ymap-addr { font-size: 14px; }
}

/* ========================================================
   MOBILE STICKY CTA BAR (внизу экрана)
   ======================================================== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(245, 241, 234, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(20, 32, 26, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  gap: 10px;
  transform: translateY(120%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-phone {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #f5f1ea;
  display: grid; place-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.mobile-cta-phone:active { transform: scale(0.95); }
.mobile-cta-btn {
  flex: 1;
  justify-content: center;
  padding: 13px 18px !important;
  font-size: 14px !important;
}

/* Покажем только на мобильных */
@media (max-width: 760px) {
  .mobile-cta-bar { display: flex; align-items: center; }
  /* Чтобы не перекрывало контент: запас снизу на странице */
  body { padding-bottom: 76px; }
}

/* ========================================================
   NAV MOBILE (упрощённый — без бургера и drawer)
   ======================================================== */
@media (max-width: 640px) {
  .brand { gap: 10px; min-width: 0; }
  .brand-text { min-width: 0; overflow: hidden; }
  .brand-name { font-size: 18px; white-space: nowrap; }
  .brand-sub { font-size: 10px; letter-spacing: 0.12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { width: 38px; height: 38px; font-size: 20px; }
  .nav-actions { gap: 10px; flex-shrink: 0; }
  .nav-cta { display: none !important; }
  .nav-phone { font-size: 14px; }
  .nav-inner { gap: 8px; height: 64px; }
}
@media (max-width: 380px) {
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .brand-sub { display: none; }
}

/* ========================================================
   FINAL RESPONSIVE POLISH
   ======================================================== */

/* Tablet 768-1099 — между мобильным и десктопом */
@media (max-width: 1099px) and (min-width: 768px) {
  .hero { min-height: clamp(560px, 75vh, 720px); }
  .hero-title { font-size: clamp(48px, 6.5vw, 78px); }
  .mortgage-grid { gap: 24px; }
  .mort-calc, .mort-result { padding: 28px; }
  .gallery-grid { grid-auto-rows: 160px; }
  .construction-grid { grid-template-columns: repeat(3, 1fr); }
  .location-proof { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .loc-proof-lg { grid-column: span 4; }
  .loc-proof-md { grid-column: span 2; }
  .loc-proof-sm { grid-column: span 2; }
  .location-times { grid-template-columns: repeat(3, 1fr); }
  .infra-grid { grid-template-columns: repeat(4, 1fr); }
  .infra-card { grid-column: span 1; }
  .personas-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}

/* Дополнительная полировка для смартфонов ≤640 */
@media (max-width: 640px) {
  :root { --container: 100%; }
  .nav { padding: 10px 0; }
  .brand-mark { width: 36px; height: 36px; font-size: 18px; }
  .brand-name { font-size: 15px; }
  .brand-sub { display: none; }
  .nav-actions .btn-primary { padding: 10px 14px; font-size: 13px; }
  .nav-actions .arrow { display: none; }

  .hero-urgency { display: none; }
  .hero-title { font-size: clamp(34px, 9vw, 44px); line-height: 1; }
  .hero-sub { font-size: 15px; }
  .hero-badge { font-size: 11px; padding: 6px 12px; }
  .hero-content { padding-top: 80px; padding-bottom: 32px; }

  section { padding-top: clamp(48px, 9vw, 72px); padding-bottom: clamp(48px, 9vw, 72px); }
  .display-lg { font-size: clamp(28px, 7vw, 36px); line-height: 1.05; }
  .lead { font-size: 15px; }

  .plan-meta { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .plans-tabs { flex-direction: column; }
  .plans-tab { width: 100%; }

  .construction-cta { padding: 24px 18px; gap: 18px; }
  .cn-cta-title { font-size: 20px; }
  .cn-cta-sub { font-size: 14px; }

  /* iOS не зумит при фокусе если input >=16px */
  .modal input, .modal select, .modal textarea,
  .final-form input, .final-form select, .final-form textarea { font-size: 16px; }

  .plan-zoom-overlay { padding: 0 !important; cursor: zoom-out; }
  .plan-zoom-inner {
    max-width: 100vw !important;
    max-height: 100dvh !important;
    width: 100vw;
    height: 100dvh;
    padding: 56px 6px 56px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .plan-zoom-inner img,
  .plan-zoom-video {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
  }
  .plan-zoom-nav { width: 40px; height: 40px; }
  .plan-zoom-nav.prev { left: 6px; }
  .plan-zoom-nav.next { right: 6px; }
  .plan-zoom-close { width: 40px; height: 40px; top: 12px; right: 12px; }
  .plan-zoom-label {
    position: absolute;
    bottom: 14px; left: 60px; right: 60px;
    font-size: 10px;
    padding: 6px 12px;
    background: rgba(20, 32, 26, 0.7);
    color: #f5f1ea;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
  }
  .ymap-close { width: 36px; height: 36px; top: 10px; right: 10px; }

  .compare-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }
  .compare-table::after {
    content: '←   прокрутка   →';
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
    padding: 8px 0 12px;
    opacity: 0.55;
  }
  .compare-table table {
    font-size: 12px;
    min-width: 480px;
  }
  .compare-table th, .compare-table td {
    padding: 10px 8px;
    white-space: normal;
  }
  .compare-table th { font-size: 10px; letter-spacing: 0.06em; }
  .compare-table th:first-child,
  .compare-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-card);
    box-shadow: 2px 0 6px -2px rgba(20,32,26,0.08);
    z-index: 1;
    min-width: 110px;
  }
  .compare-table th:first-child { background: var(--bg-2); }
  .compare-table .col-us { background: rgba(31,77,58,0.06); }

  .footer-grid { gap: 28px; }
  .footer-legal > div { line-height: 1.5; }
  .footer-offer { font-size: 11px; }

  .process-step .num { font-size: 48px; }

  .faq-q { font-size: 15px; padding: 18px 16px; }
  .faq-a { font-size: 14px; padding: 0 16px 18px; }

  .persona { padding: 24px 20px; }
  .persona h3 { font-size: 22px; }

  .final-grid { gap: 28px; }
  .final-form { padding: 24px 20px; }
  .contact-info { gap: 18px; }
  .contact-info .k { font-size: 11px; }
  .contact-info .v { font-size: 14px; line-height: 1.5; }

  .btn { max-width: 100%; }
}

/* Очень узкие телефоны ≤380 */
@media (max-width: 380px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .hero-title { font-size: 30px; }
  .display-lg { font-size: 24px; }
  .modal { padding: 20px 14px; }
  .modal h2 { font-size: 18px; }
  .compare-table table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px 6px; }
  .mort-result-monthly .val { font-size: 32px; }
  .process-step .num { font-size: 38px; }
  .display-lg, .mortgage-headline { letter-spacing: -0.01em; }
  .mortgage-headline { font-size: 26px !important; }
}

/* Landscape phones — hero не должен лезть выше */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100vh; }
  .hero-content { padding-top: 80px; padding-bottom: 24px; }
  .hero-title { font-size: 36px; }
  .hero-urgency { display: none; }
}

/* Печать */
@media print {
  .nav, .float-cta, .modal-backdrop, .plan-zoom-overlay, .ymap-overlay { display: none !important; }
  body { background: white !important; }
}

body[data-display="cormorant"] { --font-display: "Cormorant Garamond", "Times New Roman", serif; }
body[data-display="playfair"]  { --font-display: "Playfair Display", "Times New Roman", serif; }
body[data-display="dmserif"]   { --font-display: "DM Serif Display", "Times New Roman", serif; }

