/* ============================================================
   Sapphire Residences — Landing v2
   Tokens from the Sapphire Residences Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Prata&family=Unbounded:wght@300;400;500&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --stone-50:  #FBF9F5;
  --stone-100: #F6F1E9;
  --stone-200: #EFE8DB;
  --stone-300: #E4D9C7;
  --stone-400: #D3C4AC;
  --stone-500: #B8A588;
  --stone-600: #8C7A62;

  --ink-900: #211E1A;
  --ink-800: #2B2823;
  --ink-700: #3D392F;
  --ink-500: #5B554A;
  --ink-400: #7A7364;

  --gold-700: #8A6E42;
  --gold-600: #A8895C;
  --gold-500: #BE9E6B;
  --gold-400: #D2B98C;
  --gold-200: #EBDCC2;

  --white: #FFFFFF;

  --bg-page:        var(--stone-100);
  --bg-paper:       var(--stone-50);
  --surface-card:   var(--stone-50);
  --surface-ink:    var(--ink-900);

  --text-primary:   var(--ink-800);
  --text-heading:   var(--ink-700);
  --text-secondary: var(--ink-500);
  --text-muted:     var(--ink-400);
  --text-on-ink:    var(--stone-100);
  --text-accent:    var(--gold-700);

  --hairline:       var(--gold-500);
  --border-soft:    var(--stone-400);
  --border-hairline: rgba(190,158,107,0.55);

  --font-display: 'Prata', 'Times New Roman', serif;
  --font-sans:    'Manrope', -apple-system, 'Segoe UI', sans-serif;
  --font-label:   'Unbounded', 'Manrope', sans-serif;

  --tracking-wide: 0.12em;
  --tracking-wider: 0.24em;
  --tracking-widest: 0.36em;

  --radius-xs: 2px;

  --shadow-sm: 0 2px 8px rgba(43,40,35,0.06);
  --shadow-md: 0 8px 28px rgba(43,40,35,0.08);
  --shadow-lg: 0 20px 60px rgba(43,40,35,0.12);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-normal: 320ms;
  --dur-slow: 560ms;

  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 104px 0; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--hairline);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--text-heading); line-height: 1.14; }
h1 { font-size: clamp(38px, 5vw, 68px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 20px; }
h1 em, h2 em { font-style: normal; font-weight: 400; color: var(--text-accent); }

/* Unbounded for labels, buttons and micro-typography */
.eyebrow, .btn, .nav-links a, .lang-switch button, .stat-l, .plan-rooms,
.plan-link, .modal-tabs button, .term-cond, .doc-label, .doc-open,
.feature-link, .life-card figcaption, .calc-row-head label, .calc-stage button,
.hero-scroll, .infra-item .v, .docs-verify a {
  font-family: var(--font-label);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.stat-v, .term-val, .doc-num, .plan-area, .calc-res .calc-res-v, .calc-row-head .calc-val, .modal-title {
  font-family: var(--font-display);
  font-weight: 400;
}

.section-sub {
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 56px;
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 17px 38px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
  text-align: center;
}
.btn-primary { background: var(--surface-ink); color: var(--text-on-ink); }
.btn-primary:hover { background: var(--gold-700); }
.btn-gold { background: var(--gold-600); color: var(--ink-900); }
.btn-gold:hover { background: var(--gold-400); }
.btn-ghost { background: transparent; color: var(--text-heading); border-color: var(--border-soft); }
.btn-ghost:hover { border-color: var(--hairline); color: var(--text-accent); }
.btn-ghost-light { background: transparent; color: var(--stone-100); border-color: rgba(246,241,233,0.5); }
.btn-ghost-light:hover { border-color: var(--gold-400); color: var(--gold-400); }

/* ---------- Gold hairline frame ---------- */
.framed { position: relative; overflow: hidden; }
.framed::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--hairline);
  pointer-events: none;
  z-index: 2;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--dur-normal) var(--ease-out), border-color var(--dur-normal) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 241, 233, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 24px;
}
.nav-logo { flex: none; }
.nav-logo img { height: 26px; width: auto; max-width: none; transition: opacity var(--dur-normal); }
.nav-logo .logo-dark { display: none; }
.site-header.scrolled .logo-dark { display: block; }
.site-header.scrolled .logo-light { display: none; }

.nav-links { display: flex; gap: 26px; flex-wrap: nowrap; }
.nav-links a {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(246,241,233,0.85);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-normal) var(--ease-out), border-color var(--dur-normal) var(--ease-out);
}
.nav-links a:hover { color: var(--gold-400); }
.nav-links a.active { color: var(--gold-400); border-bottom-color: var(--gold-400); }
.site-header.scrolled .nav-links a { color: var(--text-secondary); }
.site-header.scrolled .nav-links a:hover,
.site-header.scrolled .nav-links a.active { color: var(--text-accent); }
.site-header.scrolled .nav-links a.active { border-bottom-color: var(--gold-500); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.lang-switch {
  display: flex;
  border: 1px solid rgba(246,241,233,0.4);
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: border-color var(--dur-normal);
}
.site-header.scrolled .lang-switch { border-color: var(--border-soft); }
.lang-switch button {
  padding: 8px 13px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  background: transparent;
  color: rgba(246,241,233,0.7);
  border: none;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
}
.site-header.scrolled .lang-switch button { color: var(--text-muted); }
.lang-switch button.active { background: var(--gold-600); color: var(--ink-900); }
.site-header.scrolled .lang-switch button.active { background: var(--surface-ink); color: var(--text-on-ink); }

.nav .btn { padding: 13px 26px; }
.nav .btn-nav { background: var(--gold-600); color: var(--ink-900); }
.nav .btn-nav:hover { background: var(--gold-400); }
.site-header.scrolled .btn-nav { background: var(--surface-ink); color: var(--text-on-ink); }
.site-header.scrolled .btn-nav:hover { background: var(--gold-700); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--stone-100);
  margin: 5px 0;
  transition: background var(--dur-normal);
}
.site-header.scrolled .burger span { background: var(--ink-800); }

/* ---------- Hero pinned (dombulychev-style) ---------- */
.hero-pin {
  height: 260vh;
  padding: 0;
  position: relative;
  background: var(--surface-ink);
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, #2f3337 0%, #3e4248 55%); /* цвет верха неба: шов при сдвиге кадра не виден */
}
.hp-sky { display: none; }
/* Слои в родных пропорциях (2600×2121): cover на десктопе, скрипт только сдвигает кадр через transform. */
.hp-bg, .hp-building {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform-origin: 50% 50%;
  will-change: transform;
}
.hp-bg {
  filter: brightness(0.55) saturate(0.9);
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%);
}
.hp-inner {
  position: absolute;
  top: 13vh;
  left: 0; right: 0;
  z-index: 2;
  text-align: center;
  padding: 0 12px;
  will-change: transform;
}
.hp-eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 3vh;
}
.hp-title {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--stone-50);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 40px rgba(33,30,26,0.5);
  animation: hpTitleIn 1.4s var(--ease-out) both;
}
/* Стартовая анимация — только на обёртке, чтобы не спорить с transform слоёв, которым управляет скрипт. */
.hp-building { z-index: 3; }
.hp-building, .hp-bg { animation: hpRise 1.6s var(--ease-out) both; }
@keyframes hpRise {
  from { opacity: 0; translate: 0 5vh; }
  40% { opacity: 1; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .hp-building, .hp-bg, .hp-title, .hp-side { animation: none; } }
.hp-side {
  position: absolute;
  top: 52vh;
  z-index: 4;
  display: flex;
  gap: 12px;
  align-items: baseline;
  max-width: 220px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-100);
  line-height: 1.6;
  animation: hpTitleIn 1.4s 0.5s var(--ease-out) both;
}
.hp-side--l { left: 4vw; }
.hp-side--r { right: 4vw; text-align: right; flex-direction: row-reverse; }
.hero-pin .hero-scroll { right: auto; left: 50%; transform: translateX(-50%); bottom: 24px; writing-mode: horizontal-tb; flex-direction: row; z-index: 5; }
.hero-pin .hero-scroll::after { width: 56px; height: 1px; background: linear-gradient(90deg, var(--gold-500), transparent); }
@keyframes hpTitleIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes hpBuildingIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 900px) {
  .hero-pin { height: 180vh; }
  .hp-side { display: none; }
  .hp-inner { top: 16vh; }
}
/* Телефон: фото в родных пропорциях, прижато к низу, шире экрана; сверху — небо-градиент. */
@media (max-width: 640px) {
  .hero-pin { height: 100vh; height: 100svh; } /* на телефоне кадр не едет — без «мёртвой» прокрутки */
  .hp-sky {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #2f3337 0%, #3e4248 60%, #474b52 100%);
  }
  .hp-bg, .hp-building {
    inset: auto;
    left: 50%;
    bottom: 0;
    width: 185vw;
    max-width: none;
    height: auto;
    object-fit: contain;
    transform: translateX(-50%);
  }
  .hp-bg {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
  }
  .hp-inner { top: 12vh; }
}

/* ---------- Hero (cinematic) ---------- */
.hero-cine {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-cine .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}
.hero-cine .hero-bg.active { opacity: 1; }
.hero-thumbs {
  position: absolute;
  right: 48px;
  bottom: 40px;
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-thumbs button {
  width: 76px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(246,241,233,0.35);
  background: none;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity var(--dur-normal) var(--ease-out), border-color var(--dur-normal) var(--ease-out);
  overflow: hidden;
}
.hero-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumbs button:hover { opacity: 0.85; }
.hero-thumbs button.active { opacity: 1; border-color: var(--gold-500); }
.hero-cine::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(33,30,26,0.62) 0%,
    rgba(33,30,26,0.38) 34%,
    rgba(33,30,26,0.44) 55%,
    rgba(33,30,26,0.88) 100%);
}
.hero-cine::after {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(190,158,107,0.6);
  pointer-events: none;
  z-index: 3;
}
.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 0 0 96px;
}
.hero-content .eyebrow { color: var(--gold-400); }
.hero-content .eyebrow::before { background: var(--gold-400); }
.hero-content h1 { color: var(--stone-50); max-width: 900px; margin-bottom: 24px; }
.hero-content h1 em { color: var(--gold-400); }
.hero-content .lead {
  font-size: 18px;
  color: rgba(246,241,233,0.82);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  right: 48px;
  bottom: 96px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(246,241,233,0.65);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, var(--gold-500), transparent);
  animation: scrollPulse 2.4s var(--ease-out) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------- Stats band ---------- */
.stats-band { padding: 0; background: var(--bg-page); }
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 56px 24px;
  text-align: center;
  border-right: 1px solid var(--border-hairline);
}
.stat-cell:last-child { border-right: none; }
.stat-v {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-heading);
}
.stat-v span { color: var(--text-accent); }
.stat-l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ---------- About ---------- */
.about { background: var(--bg-paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-media img { width: 100%; height: 580px; object-fit: cover; }
.about-text p { color: var(--text-secondary); margin-bottom: 20px; }
.about-points { margin-top: 36px; display: grid; gap: 18px; }
.about-points li { display: flex; gap: 16px; align-items: baseline; }
.diamond {
  flex: none;
  width: 7px; height: 7px;
  background: var(--gold-500);
  transform: rotate(45deg) translateY(-1px);
}

/* ---------- Feature rows (editorial) ---------- */
.g-item { cursor: pointer; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter var(--dur-slow) var(--ease-out);
}
.g-item:hover img { filter: brightness(0.92) sepia(0.08); }

.feature {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.feature:last-child { border-bottom: none; }
.feature--rev .feature-media { order: 2; }
.feature--rev .feature-text { order: 1; }
.feature-media img { height: 460px; }
.feature-text h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: 16px;
}
.feature-text p { color: var(--text-secondary); margin-bottom: 28px; }
.feature-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-accent);
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 4px;
  transition: color var(--dur-normal);
}
.feature-link:hover { color: var(--gold-600); }

/* ---------- Logo marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 44px 0;
  background: var(--bg-paper);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marqueeMove 36s linear infinite;
}
.mq-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}
.mq-item .mq-name {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  color: var(--text-heading);
  letter-spacing: 0.06em;
}
.mq-item .mq-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  color: var(--text-accent);
}
.mq-d {
  flex: none;
  width: 8px; height: 8px;
  background: var(--gold-500);
  transform: rotate(45deg);
}
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Amenities ---------- */
.amenities { background: var(--surface-ink); }
.amenities h2 { color: var(--text-on-ink); }
.amenities h2 em { color: var(--gold-400); }
.amenities .section-sub { color: rgba(246,241,233,0.6); }
.amenities .eyebrow { color: var(--gold-400); }
.amenities .eyebrow::before { background: var(--gold-400); }
.amen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 72px;
}
.amen-item {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(190,158,107,0.22);
  color: var(--stone-100);
}
.amen-item svg {
  flex: none;
  width: 26px; height: 26px;
  stroke: var(--gold-500);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
}
.life-grid { grid-template-columns: repeat(2, 1fr); }
.life-card { margin: 0; }
.life-card--wide { grid-column: span 2; }
.life-card--wide img { height: 540px; }
.life-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: filter var(--dur-slow) var(--ease-out);
}
.life-card:hover img { filter: brightness(0.94) sepia(0.06); }
.life-card figcaption {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold-400);
  text-align: center;
}
.life-note {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: rgba(246,241,233,0.35);
}

/* ---------- Exclusive for residents ---------- */
.exclusive { background: var(--surface-ink); border-top: 1px solid rgba(190,158,107,0.22); }
.exclusive .eyebrow { color: var(--gold-400); }
.exclusive .eyebrow::before { background: var(--gold-400); }
.exclusive h2 { color: var(--text-on-ink); }
.exclusive h2 em { color: var(--gold-400); }
.exclusive .section-sub { color: rgba(246,241,233,0.6); }
.excl-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid rgba(190,158,107,0.18);
}
.excl-row:last-of-type { border-bottom: none; }
.excl-row--rev .excl-info { order: 2; }
.excl-row--rev .excl-media { order: 1; }
.excl-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-500);
  margin-bottom: 18px;
}
.excl-num::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(190,158,107,0.4);
  margin-top: 12px;
}
.excl-info h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  color: var(--text-on-ink);
  margin-bottom: 16px;
}
.excl-info p { color: rgba(246,241,233,0.6); max-width: 380px; }
.excl-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xs);
}
.exclusive .life-note { margin-top: 40px; }
@media (max-width: 900px) {
  .excl-row, .excl-row--rev { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .excl-row--rev .excl-info { order: 1; }
  .excl-row--rev .excl-media { order: 2; }
  .excl-media img { height: 300px; }
}

/* ---------- Plans ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.plan-card {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 20px 20px 28px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow var(--dur-normal) var(--ease-out), border-color var(--dur-normal) var(--ease-out), transform var(--dur-normal) var(--ease-out);
}
.plan-card:hover { box-shadow: var(--shadow-md); border-color: var(--hairline); transform: translateY(-4px); }
.plan-card img {
  width: 100%; height: 240px;
  object-fit: contain;
  background: var(--white);
  margin-bottom: 20px;
}
.plan-area {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1;
}
.plan-area sup { font-size: 16px; }
.plan-rooms {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 10px;
}
.plan-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-accent);
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 3px;
}
.plans-foot {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
/* ---------- Building tabs ---------- */
.bld-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-hairline);
  margin-bottom: 48px;
}
.bld-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px 32px;
  background: var(--surface-card);
  border: none;
  border-right: 1px solid var(--border-hairline);
  cursor: pointer;
  text-align: left;
  transition: background var(--dur-normal) var(--ease-out);
}
.bld-tab:last-child { border-right: none; }
.bld-tab-n {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text-heading);
  line-height: 1.1;
}
.bld-tab-s {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bld-tab:hover { background: var(--stone-200); }
.bld-tab.active { background: var(--surface-ink); }
.bld-tab.active .bld-tab-n { color: var(--stone-50); }
.bld-tab.active .bld-tab-s { color: var(--gold-400); }
.bld-head { margin-bottom: 36px; }
.bld-head h3 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 10px; }
.bld-head p { color: var(--text-secondary); max-width: 640px; }
.plan-bld {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 10px;
}
.blk-legend {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.blk-legend b { font-weight: 600; color: var(--text-heading); }
.blk-legend i { font-style: normal; color: var(--text-muted); }
.cmp.cmp--b2 { aspect-ratio: 3520 / 1602; }
.floor-b2 { background: var(--white); border: 1px solid var(--border-hairline); }
.floor-b2 img { width: 100%; height: auto; }
.modal-bld {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  .bld-tab { padding: 18px 16px; }
  .bld-tab-n { font-size: 22px; }
  .bld-tab-s { font-size: 9px; }
  .blk-legend { flex-direction: column; gap: 6px; }
}

.floor3d { margin-top: 72px; }
.floor3d-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.floor3d-head h3 { font-size: clamp(22px, 2.4vw, 30px); }
.floor3d-head p { color: var(--text-secondary); font-size: 15px; max-width: 480px; }
.floor3d img { width: 100%; background: var(--white); }

/* ---------- Documents ---------- */
.docs { background: var(--bg-paper); }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.doc-card {
  display: block;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 44px 48px;
  transition: border-color var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out), transform var(--dur-normal) var(--ease-out);
}
a.doc-card:hover { border-color: var(--hairline); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.doc-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-accent);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
}
.doc-open svg {
  width: 12px; height: 12px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.doc-card:hover .doc-open { color: var(--gold-600); }
.doc-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 14px;
}
.doc-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 14px;
}
.doc-desc { color: var(--text-secondary); font-size: 15px; }
.docs-verify {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.docs-verify a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-accent);
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 4px;
  transition: color var(--dur-normal);
}
.docs-verify a:hover { color: var(--gold-600); }

/* ---------- Location ---------- */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.loc-address {
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--text-heading);
  margin-bottom: 12px;
}
.loc-note { color: var(--text-secondary); margin-bottom: 40px; }
.infra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.infra-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 15px;
}
.infra-item .k { color: var(--text-secondary); }
.infra-item .v { font-weight: 600; color: var(--text-heading); white-space: nowrap; }
.loc-media img { width: 100%; height: 420px; object-fit: cover; }

/* ---------- Terms ---------- */
.terms { background: var(--bg-paper); }
.terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.term-card {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 48px;
}
.term-val {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 12px;
}
.term-val em { font-style: italic; color: var(--text-accent); }
.term-cond {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 16px;
}
.term-desc { color: var(--text-secondary); }
.terms-note { display: flex; gap: 16px; align-items: baseline; color: var(--text-secondary); font-size: 15px; }

/* ---------- Installment calculator ---------- */
.calc {
  margin-top: 56px;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
}
.calc-label {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text-heading);
  margin-bottom: 32px;
}
.calc-row { margin-bottom: 32px; }
.calc-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.calc-row-head label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.calc-row-head .calc-val {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-heading);
}
.calc input[type="range"] {
  width: 100%;
  accent-color: var(--gold-600);
  height: 4px;
  cursor: pointer;
}
.calc-stage {
  display: flex;
  gap: 2px;
  margin-bottom: 36px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.calc-stage button {
  flex: 1;
  padding: 13px 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out);
}
.calc-stage button.active { background: var(--surface-ink); color: var(--text-on-ink); }
.calc-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  border-left: 1px solid var(--border-hairline);
  padding-left: 64px;
}
.calc-res .calc-res-v {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text-heading);
}
.calc-res--main .calc-res-v { color: var(--text-accent); font-size: 52px; }
.calc-res .calc-res-l {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}
.calc-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-hairline);
  padding-top: 20px;
}

/* ---------- Contact ---------- */
.contact { background: var(--surface-ink); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.contact .eyebrow { color: var(--gold-400); }
.contact .eyebrow::before { background: var(--gold-400); }
.contact h2 { color: var(--text-on-ink); }
.contact h2 em { color: var(--gold-400); }
.contact-text p { color: rgba(246,241,233,0.65); max-width: 460px; }

.form { display: grid; gap: 16px; }
.form input, .form textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--stone-100);
  background: rgba(251,249,245,0.06);
  border: 1px solid rgba(190,158,107,0.35);
  border-radius: var(--radius-xs);
  transition: border-color var(--dur-normal) var(--ease-out);
}
.form input::placeholder, .form textarea::placeholder { color: rgba(246,241,233,0.4); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold-500); }
.form-note { font-size: 12px; color: rgba(246,241,233,0.4); }
.form-success {
  display: none;
  padding: 16px 20px;
  border: 1px solid var(--gold-500);
  color: var(--gold-400);
  font-size: 14px;
  text-align: center;
}

/* ---------- Footer ---------- */
footer {
  background: var(--surface-ink);
  border-top: 1px solid rgba(190,158,107,0.25);
  padding: 56px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}
.footer-grid img { height: 44px; width: auto; }
.footer-mid { text-align: center; }
.footer-right { text-align: right; }
footer p { font-size: 13px; color: rgba(246,241,233,0.45); }
footer a { border-bottom: 1px solid rgba(190,158,107,0.35); padding-bottom: 2px; transition: color var(--dur-normal); }
footer a:hover { color: var(--gold-400); }

/* ---------- Plan modal ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(33,30,26,0.72);
  padding: 40px 20px;
  overflow-y: auto;
}
.modal.open { display: flex; align-items: flex-start; justify-content: center; }
.modal-box {
  background: var(--bg-paper);
  border-radius: var(--radius-xs);
  max-width: 900px;
  width: 100%;
  padding: 48px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  font-family: var(--font-sans);
}
.modal-close:hover { color: var(--text-accent); }
.modal-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 8px;
}
.modal-tabs { display: flex; justify-content: center; gap: 2px; margin: 20px 0 28px; }
.modal-tabs button {
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  cursor: pointer;
}
.modal-tabs button.active { background: var(--surface-ink); border-color: var(--surface-ink); color: var(--text-on-ink); }
.modal-img { background: var(--white); }
.modal-img img { width: 100%; max-height: 70vh; object-fit: contain; }

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(33,30,26,0.94);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
}
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(246,241,233,0.3);
  color: var(--stone-100);
  width: 52px; height: 52px;
  font-size: 22px;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: all var(--dur-normal);
  font-family: var(--font-sans);
}
.lb-btn:hover { border-color: var(--gold-400); color: var(--gold-400); }
.lb-prev { left: 32px; }
.lb-next { right: 32px; }
.lb-close {
  position: absolute;
  top: 28px; right: 32px;
  background: none;
  border: none;
  color: var(--stone-100);
  font-size: 34px;
  cursor: pointer;
  font-family: var(--font-sans);
  line-height: 1;
}
.lb-close:hover { color: var(--gold-400); }
.lb-count {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(246,241,233,0.6);
  font-size: 12px;
  letter-spacing: var(--tracking-wider);
}

/* ---------- Render gallery ---------- */
.rgallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
}
.rg-wide { grid-column: span 2; }
.rg-tall { grid-row: span 2; }

/* ---------- Video ---------- */
.video-section { background: var(--surface-ink); }
.video-section .eyebrow { color: var(--gold-400); }
.video-section .eyebrow::before { background: var(--gold-400); }
.video-section h2 { color: var(--text-on-ink); }
.video-section h2 em { color: var(--gold-400); }
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Map ---------- */
.map-wrap {
  margin-top: 40px;
  height: 420px;
  border: 1px solid var(--border-hairline);
  position: relative;
  z-index: 0;
}
.map-wrap #map { width: 100%; height: 100%; background: var(--stone-200); }
.map-wrap .leaflet-tile-pane { filter: sepia(0.25) saturate(0.8) brightness(1.02); }
.map-home i {
  display: block;
  width: 26px; height: 26px;
  background: var(--gold-600);
  border: 3px solid var(--stone-50);
  transform: rotate(45deg);
  box-shadow: 0 0 0 8px rgba(168,137,92,0.25), 0 4px 14px rgba(0,0,0,0.3);
}
.map-ring-label span, .map-poi span {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 3px 8px;
  background: rgba(251,249,245,0.92);
  color: var(--text-accent);
  border: 1px solid var(--border-hairline);
}
.map-ring-label, .map-poi { text-align: center; }
.map-poi span { color: var(--ink-700); }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}
.map-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.ml-d { width: 10px; height: 10px; background: var(--gold-600); transform: rotate(45deg); display: inline-block; }
.ml-r { width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed var(--gold-600); display: inline-block; }
.map-open {
  margin-left: auto;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-accent);
  border-bottom: 1px solid var(--border-hairline);
}
@media (max-width: 640px) { .map-wrap { height: 340px; } .map-open { margin-left: 0; } }

/* ---------- Amenity icon box ---------- */
.amen-ico {
  flex: none;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stone-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.amen-ico svg { width: 26px; height: 26px; }
.amen-ico img { width: 100%; height: 100%; object-fit: cover; }
.amen-item { align-items: center; }

/* Media tiles without the gold inset frame (kept on hero band only) */
.life-card.framed::after,
.feature-media.framed::after,
.about-media.framed::after,
.loc-media.framed::after,
.map-wrap.framed::after,
.video-wrap.framed::after,
.g-item.framed::after,
.floor3d .framed::after,
.hero-media.framed::after { display: none; }

/* ---------- 2D / 3D comparison slider ---------- */
.cmp {
  position: relative;
  aspect-ratio: 2.67 / 1;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background: var(--white);
  user-select: none;
  touch-action: none;
}
.cmp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.cmp .cmp-top { clip-path: inset(0 0 0 50%); }
.cmp-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold-500);
  transform: translateX(-1px);
  pointer-events: none;
}
.cmp-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 18px;
  height: 18px;
  background: var(--gold-500);
  border: 3px solid var(--stone-50);
}
.cmp-tag {
  position: absolute;
  bottom: 16px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 7px 14px;
  background: rgba(33,30,26,0.75);
  color: var(--stone-100);
  border-radius: var(--radius-xs);
  pointer-events: none;
}
.cmp-tag--l { left: 16px; }
.cmp-tag--r { right: 16px; }

/* ---------- Wide plan modal ---------- */
.modal-box--plan { max-width: 1080px; }
.modal-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.modal-grid .modal-img { min-height: 420px; display: flex; align-items: center; }
.modal-side .modal-title { text-align: left; }
.modal-rooms { margin: 24px 0 28px; }
.modal-rooms .infra-item { font-size: 14px; padding: 11px 0; }
.modal-cta { width: 100%; }
@media (max-width: 860px) {
  .modal-grid { grid-template-columns: 1fr; gap: 28px; }
  .modal-side .modal-title { text-align: center; }
}

/* ---------- Flats catalog page ---------- */
.flats-page .site-header { position: sticky; }
.flats-hero { padding: 72px 0 40px; }
.filters-band {
  position: sticky;
  top: 88px;
  z-index: 50;
  background: rgba(251,249,245,0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}
.filter-group label {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.filter-group label b { color: var(--text-accent); }
.chip-row { display: flex; gap: 2px; border: 1px solid var(--border-soft); border-radius: var(--radius-xs); overflow: hidden; }
.chip-row button {
  padding: 9px 16px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.chip-row button.active { background: var(--surface-ink); color: var(--text-on-ink); }
.filter-grow { min-width: 200px; }
.range-pair { display: grid; gap: 6px; }
.range-pair input[type="range"] { width: 100%; accent-color: var(--gold-600); }
.filter-count {
  margin-left: auto;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: 8px;
}
.filter-count span:first-child { color: var(--text-accent); font-size: 15px; }
.flats-list { padding: 56px 0 96px; }
.flats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.flat-card {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: box-shadow var(--dur-normal) var(--ease-out), border-color var(--dur-normal) var(--ease-out), transform var(--dur-normal) var(--ease-out);
}
.flat-card:hover { box-shadow: var(--shadow-md); border-color: var(--hairline); transform: translateY(-3px); }
.flat-card > img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: var(--white);
  padding: 12px;
}
.flat-info { padding: 20px 22px 26px; }
.flat-area { font-family: var(--font-display); font-size: 26px; color: var(--text-heading); }
.flat-area sup { font-size: 14px; }
.flat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.flat-tags span {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 10px;
}
.flat-status {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 16px;
}
.flat-cta { display: block; text-align: center; padding: 13px 10px; }
.flats-empty { text-align: center; color: var(--text-muted); padding: 64px 0; }
.flats-more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text-muted);
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-xs);
  min-height: 200px;
}
@media (max-width: 1024px) { .flats-grid { grid-template-columns: repeat(2, 1fr); } .filters-band { position: static; } }
@media (max-width: 640px) { .flats-grid { grid-template-columns: 1fr; } .filters { gap: 20px; } .filter-count { margin-left: 0; } }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid, .loc-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 88px;
    left: 0; right: 0;
    background: var(--bg-page);
    padding: 32px 24px;
    border-bottom: 1px solid var(--border-hairline);
    gap: 20px;
  }
  .nav-links.open a { color: var(--text-secondary) !important; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell { border-bottom: 1px solid var(--border-hairline); }
  .stat-cell:nth-child(3), .stat-cell:nth-child(4) { border-bottom: none; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero-content { padding-bottom: 72px; }
  .hero-scroll { display: none; }
  .hero-cine::after, .duplex::after { inset: 12px; }
  .duplex { padding: 120px 0; }
  .plans-grid, .amen-grid, .infra-grid, .terms-grid, .life-grid { grid-template-columns: 1fr; }
  .rgallery-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .rg-wide { grid-column: span 1; }
  .rg-tall { grid-row: span 1; }
  .life-card--wide { grid-column: span 1; }
  .life-card--wide img, .life-card img { height: 300px; }
  .calc { grid-template-columns: 1fr; padding: 32px 24px; gap: 40px; }
  .calc-results { border-left: none; padding-left: 0; border-top: 1px solid var(--border-hairline); padding-top: 32px; }
  .feature, .feature--rev { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .feature--rev .feature-media { order: 1; }
  .feature--rev .feature-text { order: 2; }
  .feature-media img { height: 300px; }
  .hero-thumbs { right: 12px; left: 12px; bottom: 16px; justify-content: center; }
  .hero-thumbs button { width: 52px; height: 36px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .g-item.g-wide { grid-column: span 1; }
  .g-item.g-tall { grid-row: span 1; }
  .nav .btn-nav { display: none; }
  .term-card { padding: 32px; }
  .doc-card { padding: 32px; }
  .modal-box { padding: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .stat-v { font-size: 42px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
}
