:root {
  --ink: #1b1c1f;
  --ink-2: #2a2c31;
  --graphite: #3b3e44;
  --stone: #d9c3a1;
  --stone-2: #ecdfca;
  --gold: #b88a4f;
  --gold-2: #cfa36a;
  --paper: #f5f2ec;
  --paper-2: #ebe6dd;
  --muted: #6d6a64;
  --line: rgba(27, 28, 31, 0.1);
  --radius: 18px;
  --shadow: 0 30px 80px -30px rgba(20, 18, 14, 0.35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
p { margin: 0; }
.wrap { width: min(1320px, 100% - 2 * clamp(16px, 4vw, 48px)); margin-inline: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, color .3s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 12px 30px -12px rgba(184, 138, 79, .8); }
.btn-gold:hover { background: #a67a42; }
.btn-gold:disabled { opacity: .7; cursor: progress; }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.35); }
.btn-glass:hover { background: rgba(255,255,255,.26); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: inline-grid; place-items: center; cursor: pointer; flex: none;
  transition: background .2s, border-color .2s, opacity .2s;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--paper); border-color: rgba(0,0,0,.2); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.sm svg { width: 17px; height: 17px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- шапка ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(16px, 4vw, 48px);
  color: #fff;
  transition: background .35s, color .35s, box-shadow .35s, height .35s;
}
.nav.solid { background: rgba(245, 242, 236, .86); color: var(--ink); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--line); --nav-h: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-word { font-weight: 200; font-size: 30px; letter-spacing: .14em; line-height: 1; }
.logo-sub { font-size: 8.5px; font-weight: 700; letter-spacing: .16em; line-height: 1.25; opacity: .9; }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 34px); font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; padding: 6px 0; opacity: .88; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-phone { font-weight: 600; font-size: 14px; white-space: nowrap; }
.lang { display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; }
.lang button { border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; letter-spacing: .06em; }
.lang button.on { color: var(--ink); background: #fff; }
.nav.solid .lang button.on { color: #fff; background: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.nav.open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; color: #fff;
  display: grid; grid-template-rows: 1fr auto; perspective: 1200px;
  background: #22252a;
}
.hero-media { position: absolute; inset: 0; transform-style: preserve-3d; }
.hero-img {
  position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; object-position: 62% 40%;
  transform: scale(1.12); will-change: transform; animation: heroIn 1.8s var(--ease) both;
}
@keyframes heroIn { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, .78) 0%, rgba(16, 17, 20, .45) 38%, rgba(16, 17, 20, 0) 64%),
    linear-gradient(0deg, rgba(16, 17, 20, .7) 0%, rgba(16, 17, 20, 0) 34%),
    linear-gradient(180deg, rgba(16, 17, 20, .45) 0%, rgba(16, 17, 20, 0) 18%);
}
.hero-inner {
  position: relative; z-index: 2; align-self: center;
  width: min(1320px, 100% - 2 * clamp(16px, 4vw, 48px)); margin: 0 auto;
  padding-top: calc(var(--nav-h) + 40px);
  will-change: transform;
}
.hero-inner > * { max-width: 640px; animation: up 1s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: .1s; }
.hero-inner > :nth-child(3) { animation-delay: .2s; }
.hero-inner > :nth-child(4) { animation-delay: .3s; }
@keyframes up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #f0b45f; box-shadow: 0 0 0 0 rgba(240,180,95,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(240,180,95,0); } 100% { box-shadow: 0 0 0 0 rgba(240,180,95,0); } }
.hero h1 { font-size: clamp(40px, 6.2vw, 88px); font-weight: 200; margin: 26px 0 22px; max-width: 820px; }
.hero .lead { font-size: clamp(16px, 1.35vw, 19px); color: rgba(255,255,255,.82); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-stats {
  position: relative; z-index: 2;
  width: min(1320px, 100% - 2 * clamp(16px, 4vw, 48px)); margin: 0 auto 40px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid rgba(255,255,255,.25);
}
.hero-stats div { padding: 22px 20px 0 0; animation: up 1s .45s var(--ease) both; }
.hero-stats b { display: block; font-size: clamp(28px, 3vw, 44px); font-weight: 200; letter-spacing: -.02em; line-height: 1; }
.hero-stats span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.7); }
.scroll-cue { position: absolute; right: clamp(16px, 4vw, 48px); bottom: 40px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; color: rgba(255,255,255,.75); }
.scroll-cue i { width: 1px; height: 56px; background: linear-gradient(rgba(255,255,255,.8), transparent); animation: cue 2.2s infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- выбор этажа ---------- */
.floors { padding: clamp(80px, 10vw, 140px) 0 0; background: linear-gradient(180deg, var(--paper) 0%, #e9eef2 40%, #dfe6ec 100%); }
.floors-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.floors-hint { display: flex; align-items: center; gap: 12px; max-width: 420px; color: var(--muted); font-size: 15px; }
.floors-hint svg { flex: none; color: var(--gold); }
.floors-stage { position: relative; height: min(88vh, 900px); min-height: 560px; margin-top: 20px; }
.scene {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, #f4f6f7 0%, #dfe6ec 55%, #e8e4dc 100%);
  background-size: cover; background-position: center;
}
.scene canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.scene canvas:active { cursor: grabbing; }
.scene-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 14px; transition: opacity .6s; pointer-events: none; }
.scene-loading i { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(0,0,0,.1); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.scene-loading.gone { opacity: 0; }
.view-toggle {
  position: absolute; left: clamp(16px, 4vw, 48px); bottom: 24px; z-index: 3; display: flex; padding: 4px; gap: 2px;
  background: rgba(255,255,255,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 999px; box-shadow: 0 12px 30px -14px rgba(0,0,0,.35);
}
.view-toggle[hidden] { display: none; }
.view-toggle button {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; cursor: pointer;
  padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink); transition: background .2s, color .2s;
}
.view-toggle button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.view-toggle button.on { background: var(--ink-2); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.floor-list {
  position: absolute; z-index: 3; right: clamp(16px, 4vw, 48px); top: 50%; transform: translateY(-50%);
  width: 300px; max-height: calc(100% - 40px); overflow: auto;
  display: flex; flex-direction: column; gap: 4px; padding: 10px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.8); border-radius: 22px; box-shadow: var(--shadow);
}
.fl-item {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 9px 12px 9px 9px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; text-align: left;
  transition: background .2s, color .2s;
}
.fl-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); font-size: 17px; font-weight: 600; transition: background .2s, color .2s; }
.fl-info b { display: block; font-size: 14px; font-weight: 600; }
.fl-info small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.fl-area { font-size: 15px; font-weight: 600; white-space: nowrap; }
.fl-area small { font-weight: 500; color: var(--muted); }
.fl-item:hover, .fl-item.hover { background: var(--ink-2); color: #fff; }
.fl-item:hover small, .fl-item.hover small { color: rgba(255,255,255,.65); }
.fl-item:hover .fl-num, .fl-item.hover .fl-num { background: var(--gold); color: #fff; }

.floor-tip {
  position: absolute; z-index: 4; pointer-events: none;
  transform: translate(18px, -50%);
  background: var(--ink-2); color: #fff; border-radius: 14px; padding: 12px 16px; min-width: 190px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.45);
  display: grid; gap: 2px; font-size: 13px;
}
.floor-tip[hidden] { display: none; }
.floor-tip b { font-size: 16px; font-weight: 600; }
.floor-tip span { color: rgba(255,255,255,.72); }
.floor-tip em { font-style: normal; color: var(--gold-2); font-weight: 600; margin-top: 6px; }
.floor-tip::before { content: ""; position: absolute; left: -6px; top: 50%; width: 12px; height: 12px; background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }

/* ---------- программа раннего арендатора ---------- */
.hero-early {
  display: inline-flex; gap: 6px; margin-top: 18px; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #fff; background: rgba(184,138,79,.35); border: 1px solid rgba(207,163,106,.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s;
}
.hero-early:hover { background: rgba(184,138,79,.6); }
.early { background: var(--ink); color: #fff; padding: clamp(90px, 10vw, 140px) 0; }
.early .kicker { color: var(--gold-2); }
.early-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: end; }
.early-head p { color: rgba(255,255,255,.72); font-size: 17px; }
.early-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.plan {
  position: relative; display: grid; gap: 10px; align-content: start; padding: 30px 28px 28px; border-radius: 22px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: transform .4s var(--ease), opacity .9s var(--ease);
}
.plan:hover { transform: translateY(-4px); }
.plan-best { background: linear-gradient(160deg, rgba(184,138,79,.32), rgba(184,138,79,.08)); border-color: rgba(207,163,106,.6); }
.plan-tag { position: absolute; top: 18px; right: 18px; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: #fff; padding: 5px 10px; border-radius: 999px; }
.plan-pre { font-size: 15px; color: rgba(255,255,255,.75); font-weight: 500; }
.plan-disc { font-size: clamp(64px, 7vw, 96px); font-weight: 200; letter-spacing: -.04em; line-height: 1; color: var(--stone); }
.plan-eq { font-size: 14.5px; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.early-terms { list-style: none; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.early-terms li { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.early-terms b { font-size: 18px; font-weight: 600; }
.early-terms span { color: rgba(255,255,255,.65); font-size: 14.5px; }
.early-note { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.5); }
.early-sub { margin-top: clamp(64px, 8vw, 104px); max-width: 720px; }
.early-sub h3 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; }
.early-sub p { margin-top: 14px; color: rgba(255,255,255,.7); font-size: 16.5px; }
.early-guards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.guard { padding: 26px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.g-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(207,163,106,.16); color: var(--gold-2); margin-bottom: 18px; }
.g-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.guard h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.guard p { color: rgba(255,255,255,.66); font-size: 14.5px; }
.founders {
  margin: clamp(64px, 8vw, 104px) 0 0; padding: clamp(28px, 4vw, 56px); border-radius: 26px;
  background: linear-gradient(135deg, rgba(184,138,79,.22), rgba(255,255,255,.03)); border: 1px solid rgba(207,163,106,.35);
  position: relative; overflow: hidden;
}
.founders::before { content: "“"; position: absolute; top: -40px; left: 24px; font-size: 220px; font-weight: 200; color: rgba(207,163,106,.2); line-height: 1; }
.founders blockquote { margin: 0; position: relative; display: grid; gap: 18px; max-width: 900px; }
.founders blockquote p { font-size: clamp(18px, 1.7vw, 23px); font-weight: 300; line-height: 1.55; color: #fff; }
.founders figcaption { margin-top: 26px; display: grid; gap: 2px; position: relative; }
.founders figcaption b { font-weight: 600; color: var(--gold-2); }
.founders figcaption span { color: rgba(255,255,255,.55); font-size: 14px; }
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-size: 17px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; color: var(--gold-2); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: rgba(255,255,255,.7); font-size: 15.5px; max-width: 820px; }
.early-cta { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.15); }
.early-cta p { flex: 1 1 360px; font-size: 19px; font-weight: 300; color: rgba(255,255,255,.85); }
.early-phone { font-size: 20px; font-weight: 600; color: #fff; }
@media (max-width: 980px) {
  .early-guards { grid-template-columns: 1fr 1fr; }
  .early-head { grid-template-columns: 1fr; }
  .early-plans { grid-template-columns: 1fr; }
  .early-terms { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) { .early-terms, .early-guards { grid-template-columns: 1fr; } }

/* ---------- о проекте ---------- */
.about { padding: clamp(90px, 11vw, 160px) 0; }
.about-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: end; }
.about-top p { color: var(--muted); font-size: 17px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vw, 80px); }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; min-height: 420px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-photo:hover img { transform: scale(1.04); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, opacity .9s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.f-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--stone-2); color: #8a6534; margin-bottom: 18px; }
.f-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- инфраструктура ---------- */
.amenities { padding: 0 0 clamp(90px, 11vw, 160px); }
.amen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 5vw, 60px); }
.amen { background: var(--ink-2); color: #fff; border-radius: var(--radius); padding: 28px; display: grid; align-content: start; gap: 6px; transition: transform .4s var(--ease), opacity .9s var(--ease); }
.amen:hover { transform: translateY(-4px); }
.amen .f-ico { background: rgba(255,255,255,.08); color: var(--gold-2); margin-bottom: 14px; }
.amen-v { font-size: clamp(34px, 3.4vw, 48px); font-weight: 200; letter-spacing: -.02em; line-height: 1; color: var(--stone); }
.amen h3 { font-size: 19px; font-weight: 600; margin-top: 8px; }
.amen p { color: rgba(255,255,255,.66); font-size: 14.5px; }
.amen-grid .amen:nth-child(3n+2) { transition-delay: .08s; }
.amen-grid .amen:nth-child(3n) { transition-delay: .16s; }

.loc-near { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.loc-near li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; font-size: 14.5px; }
.loc-near b { font-weight: 600; white-space: nowrap; }
.near-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--stone-2); color: #8a6534; display: grid; place-items: center; }
.near-ico svg, .map-poi i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.map-poi {
  position: absolute; z-index: 1; pointer-events: none; left: calc(68% + var(--dx)); top: calc(50% + var(--dy));
  display: flex; align-items: center; gap: 6px; transform: translate(-14px, -50%);
}
.map-poi i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; box-shadow: 0 6px 14px -4px rgba(0,0,0,.4); }
.poi-metro i { background: #1f6fd1; }
.poi-station i { background: #2a2c31; }
.map-poi span { background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }

/* ---------- галерея ---------- */
.gallery { padding: clamp(90px, 10vw, 140px) 0; background: var(--ink); color: #fff; }
.gallery .kicker { color: var(--gold-2); }
.gallery-grid {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(140px, 17vw, 240px); gap: 12px;
}
.g-item { border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #2b2d31; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-0 { grid-column: span 7; grid-row: span 2; }
.g-1 { grid-column: span 5; }
.g-2 { grid-column: span 5; }
.g-3 { grid-column: span 4; grid-row: span 2; }
.g-4 { grid-column: span 4; }
.g-5 { grid-column: span 4; grid-row: span 2; }
.g-6 { grid-column: span 4; }

/* ---------- сроки ---------- */
.timeline { padding: clamp(90px, 10vw, 140px) 0; }
.steps { list-style: none; padding: 0; margin: clamp(36px, 5vw, 60px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.steps li { position: relative; padding: 40px 24px 0 0; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 1px solid #b9b3a8; }
.steps li.done::before { background: var(--ink-2); border-color: var(--ink-2); }
.steps li.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(184,138,79,.2); }
.steps .y { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.steps b { display: block; font-size: 24px; font-weight: 400; margin: 8px 0 6px; letter-spacing: -.01em; }
.steps p { color: var(--muted); font-size: 14.5px; max-width: 250px; }
.steps em { display: inline-block; margin-top: 12px; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--gold); padding: 4px 10px; border-radius: 999px; }

/* ---------- карта ---------- */
.location { position: relative; min-height: 560px; display: grid; }
.map { position: absolute; inset: 0; background: var(--paper-2); overflow: hidden; }
/* iframe шире блока: центр карты (здание) оказывается справа от карточки адреса */
.map iframe { width: 136%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.02); pointer-events: none; }
.map-pin { position: absolute; left: 68%; top: 50%; z-index: 1; pointer-events: none; display: grid; justify-items: center; transform: translate(-50%, calc(-100% + 8px)); }
.pin-label {
  display: grid; text-align: center; padding: 10px 16px; border-radius: 14px; background: var(--ink-2); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); position: relative; margin-bottom: 12px;
}
.pin-label b { font-size: 20px; font-weight: 300; letter-spacing: .16em; }
.pin-label::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(184,138,79,.6); animation: pinPulse 2s infinite; }
@keyframes pinPulse { 70% { box-shadow: 0 0 0 18px rgba(184,138,79,0); } 100% { box-shadow: 0 0 0 0 rgba(184,138,79,0); } }
.map-link { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.chip-dark { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.chip-dark:hover { background: var(--ink); }
.loc-card {
  position: relative; z-index: 2; align-self: center; margin-left: max(clamp(16px, 4vw, 48px), calc((100% - 1320px) / 2));
  width: min(440px, calc(100% - 32px)); background: #fff; border-radius: 22px; padding: 36px; box-shadow: var(--shadow);
}
.loc-card h2 { font-size: clamp(30px, 3vw, 42px); }
.loc-addr { margin: 18px 0 14px; color: var(--muted); font-size: 16px; }
.loc-phone { font-size: 22px; font-weight: 600; }
.loc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chip:hover { background: var(--paper); }

/* ---------- финальная заявка ---------- */
.final { position: relative; overflow: hidden; color: #fff; padding: clamp(90px, 10vw, 150px) 0; background: var(--ink); }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,24,.92), rgba(20,21,24,.55)); }
.final-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(30px, 6vw, 90px); align-items: center; }
.final-copy p { color: rgba(255,255,255,.75); font-size: 17px; margin-top: 22px; max-width: 520px; }
.card { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }

/* ---------- форма ---------- */
.lead-form { position: relative; }
.form-head h3 { font-size: 26px; font-weight: 400; }
.form-head p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 16px; }
.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--paper); border: 1px solid transparent; border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, background .2s; resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236d6a64' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; text-overflow: ellipsis; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background-color: #fff; }
.field input.invalid { border-color: #c4553d; background: #fdf3f0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #b4442d; font-size: 13.5px; margin-bottom: 12px; font-weight: 600; }
.form-consent { color: #9a958d; font-size: 11.5px; margin-top: 12px; text-align: center; }
.lead-form.sent > :not(.form-ok) { display: none; }
.form-ok { min-height: 320px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 30px 10px; animation: up .5s var(--ease); }
.form-ok[hidden], .form-error[hidden] { display: none; }
.form-ok h3 { font-size: 26px; font-weight: 400; }
.form-ok p { color: var(--muted); }
.ok-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--stone-2); color: #8a6534; display: grid; place-items: center; }
.ok-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 16, 18, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal-panel {
  position: relative; width: min(1380px, 100%); max-height: calc(100svh - 40px); overflow: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 26px; box-shadow: 0 40px 120px -20px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(24px) scale(.985); transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.modal.show .modal-backdrop { opacity: 1; }
.modal.show .modal-panel { opacity: 1; transform: none; }
.modal-small .modal-panel { width: min(560px, 100%); padding: clamp(24px, 3vw, 36px); background: #fff; }
.modal-x { position: absolute; top: 16px; right: 16px; z-index: 3; }

.fm-head {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 18px 22px; background: rgba(245,242,236,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.fm-title { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.fm-num { width: 54px; height: 54px; border-radius: 16px; background: var(--ink-2); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 300; }
.fm-title h3 { font-size: 26px; font-weight: 400; }
.fm-kind { font-size: 13.5px; color: var(--muted); }
.fm-stats { display: flex; gap: 28px; margin: 0; }
.fm-stats dt { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fm-stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; white-space: nowrap; }
.fm-nav { display: flex; gap: 8px; }
.fm-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; padding: 22px; align-items: start; }
.fm-form { background: #fff; border-radius: 20px; padding: 26px; position: sticky; top: 100px; }

.plan-view {
  position: relative; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  aspect-ratio: 1000 / 348; touch-action: none; cursor: default; user-select: none; -webkit-user-select: none;
}
.plan-view.zoomed { cursor: grab; }
.plan-view.zoomed:active { cursor: grabbing; }
.plan-inner { position: absolute; left: 50%; top: 50%; width: 100%; transform: translate(-50%, -50%); transform-origin: center; transition: transform .12s ease-out; }
.plan-inner img { width: 100%; height: auto; pointer-events: none; }
.plan-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.unit { fill: rgba(184, 138, 79, 0); stroke: rgba(184, 138, 79, 0); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .2s, stroke .2s; }
.unit:hover, .unit.hover { fill: rgba(184, 138, 79, .3); stroke: rgba(184, 138, 79, .95); }
.unit.selected { fill: rgba(42, 44, 49, .28); stroke: var(--ink-2); stroke-width: 2.5; }
.plan-tip {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 14px));
  background: var(--ink-2); color: #fff; border-radius: 12px; padding: 9px 14px; font-size: 13px; text-align: center; white-space: nowrap;
  display: grid;
}
.plan-tip[hidden] { display: none; }
.plan-tip b { font-weight: 600; }
.plan-tip span { color: var(--gold-2); font-weight: 600; font-size: 15px; }
.plan-tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.plan-hint { font-size: 12.5px; color: var(--muted); margin: 10px 4px 0; }
.plan-hint[hidden] { display: none; }
/* вкладки «Планировка / Интерьер 3D» и мебель на плане 1 этажа */
.fm-tabs { display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.fm-tabs[hidden] { display: none; }
.fm-tabs button, .int-views button {
  border: 0; background: none; cursor: pointer; padding: 8px 16px; border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); transition: background .2s, color .2s;
}
.fm-tabs button.on, .int-views button.on { background: var(--ink-2); color: #fff; }
.interior-view { position: relative; overflow: hidden; border-radius: 18px; background: #e9e5de; border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.interior-view[hidden] { display: none; }
.interior-view canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.interior-view canvas:active { cursor: grabbing; }
.int-views {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 2px; padding: 4px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px;
  box-shadow: 0 10px 26px -14px rgba(0,0,0,.4);
}
.int-views button { padding: 7px 13px; font-size: 12.5px; }
.int-loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; pointer-events: none; }
.int-loading i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(0,0,0,.1); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.int-loading.gone { display: none; }
.fit-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 12px 4px 0; font-size: 13.5px; color: var(--muted); }
.fit-note[hidden] { display: none; }
.fit-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap; }
.fit-toggle input { accent-color: var(--ink-2); width: 16px; height: 16px; }
.fitout { pointer-events: none; transition: opacity .3s; }
#planSvg.no-fit .fitout { opacity: 0; }
.f-chair { fill: #8a5a3b; opacity: .8; }
.f-table { fill: #fff; stroke: #5b4a3a; stroke-width: .8; }
.f-counter { fill: #6b4a33; opacity: .9; }
.f-back { fill: #2b2622; opacity: .8; }
.f-bench { fill: #2f4a3d; opacity: .8; }
.f-green { fill: #6f8d4c; opacity: .85; }
.f-glass { fill: #d9e8ee; stroke: #2a2c31; stroke-width: .6; }
.f-kitchen { fill: #c9ccd0; stroke: #7d8186; stroke-width: .6; }
.f-wall { stroke: #2a2c31; stroke-width: 4; }
.f-label {
  font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-anchor: middle; dominant-baseline: middle;
  fill: var(--ink-2); paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 3px;
}
.units { margin-top: 22px; }
.units h4 { font-size: 20px; font-weight: 500; }
.units-hint { font-size: 13.5px; color: var(--muted); margin: 4px 0 14px; }
.unit-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.unit-row {
  width: 100%; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left;
  transition: border-color .2s, background .2s, color .2s;
}
.unit-row:hover, .unit-row.hover { border-color: var(--gold); }
.unit-row.selected { border-color: var(--ink-2); background: var(--ink-2); color: #fff; }
.u-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--stone); }
.u-dot.u-open { background: var(--gold); }
.u-dot.u-food { background: #8aa1b5; }
.u-dot.u-coffee { background: #7a5236; }
.u-dot.u-terrace { background: #7f9a5d; }
.u-dot.u-storage { background: #a29d94; }
.u-name { font-size: 14px; font-weight: 600; }
.u-area { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---------- лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(12,12,14,.94); display: grid; place-items: center; padding: 60px 70px; opacity: 0; transition: opacity .3s; }
.lightbox.show { opacity: 1; }
.lightbox img { max-width: 100%; max-height: calc(100svh - 120px); border-radius: 12px; object-fit: contain; }
.lightbox .icon-btn { position: absolute; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.2); }
.lb-x { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- подвал ---------- */
.footer { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 40px 0; color: var(--muted); font-size: 13.5px; }
.logo-dark { color: var(--ink); }
.foot-note { text-align: right; }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(2n) { transition-delay: .08s; }
.steps .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3) { transition-delay: .2s; }
.steps .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .nav-phone { display: none; }
  .fm-body { grid-template-columns: 1fr; }
  .fm-form { position: static; }
}
@media (max-width: 980px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); color: var(--ink); padding: 8px 16px 20px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav.open { background: var(--paper); color: var(--ink); }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open .lang button.on { color: #fff; background: var(--ink); }
  .burger { display: block; }
  .nav-right .btn { display: none; }
  .about-top, .about-grid, .final-inner { grid-template-columns: 1fr; }
  .about-photo { min-height: 0; aspect-ratio: 4/3; }
  .about-grid > *, .final-inner > * { min-width: 0; }
  .floors-stage { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .scene { position: relative; height: 62svh; min-height: 400px; }
  .floor-list { position: relative; right: auto; top: auto; transform: none; width: auto; max-height: none; margin: -40px 16px 0; }
  .fl-info small { max-width: none; }
  .view-toggle { left: 16px; top: 16px; bottom: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .gallery-grid .g-item { grid-column: span 1; grid-row: span 1; }
  .gallery-grid .g-0 { grid-column: span 2; }
  .fm-stats { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .footer { grid-template-columns: 1fr; text-align: left; }
  .foot-note { text-align: left; }
  .location { min-height: 0; grid-template-rows: 540px auto; }
  .map { position: relative; }
  .map iframe { width: 100%; }
  .map-pin { left: 50%; }
  .map-poi { left: calc(50% + var(--dx)); }
  .amen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc-card { margin: -60px 16px 40px; width: auto; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .logo-word { font-size: 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 6px; margin-bottom: 28px; }
  .hero-stats div { padding-top: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(16,17,20,.85) 0%, rgba(16,17,20,.4) 55%, rgba(16,17,20,.55) 100%); }
  .hero-img { object-position: 68% 40%; }
  .features { grid-template-columns: 1fr; }
  .amen-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; }
  .modal-panel { border-radius: 0; max-height: 100svh; height: 100svh; }
  .modal-small .modal-panel { height: auto; border-radius: 22px 22px 0 0; align-self: end; }
  .fm-head { padding: 12px 14px; gap: 12px; }
  .fm-num { width: 44px; height: 44px; font-size: 20px; }
  .fm-title h3 { font-size: 21px; }
  .fm-stats dd { font-size: 15px; }
  .fm-body { padding: 14px; }
  .fm-form { padding: 20px; }
  .steps { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 10px; }
  .floor-tip { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
