/* SL Real Estate — Midnight design system (утверждён 19.08.2026) */

:root {
  --onyx: #131008;
  --onyx2: #1B1710;
  --shade: #0B0906;
  --ivory: #EFE8D8;
  --cream: #F3EEE3;
  --ink: #171410;
  --muted: #9A9180;
  --brass: #C9A25E;
  --brass-deep: #A07A38;
  /* Каналы для прозрачных вариантов: rgb(var(--ivory-rgb) / .25) вместо
     магического rgba(239,232,216,.25), рассыпанного по всему файлу. */
  --ivory-rgb: 239 232 216;
  --ink-rgb: 23 20 16;
  --brass-rgb: 201 162 94;
  --shade-rgb: 11 9 6;
  --line: rgba(239, 232, 216, 0.12);
  --line-strong: rgba(239, 232, 216, 0.22);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r-xl: 2.2rem;
  --r-in: calc(2.2rem - 0.5rem);
  --maxw: 1440px;
  /* Шкала отступов (4pt): единственный источник ритма */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: clamp(5rem, 9vw, 8.5rem);
  --btn-h: 3rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background:
    radial-gradient(56% 40% at 82% 4%, rgb(var(--brass-rgb) / 0.07) 0%, transparent 62%),
    linear-gradient(180deg, #161209 0%, #131008 50%, #131008 100%);
  color: var(--ivory);
  font-family: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brass); color: var(--onyx); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.serif { font-family: "Fraunces", Georgia, serif; }
h1, h2, h3, .h1, .h2, .h3 { font-family: "Fraunces", Georgia, serif; font-weight: 300; line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance; }
/* Нижняя граница поднята с 2.6rem: на телефоне заголовок давал контраст к тексту
   всего 2.36x при норме 4.2x — название проекта почти сливалось с абзацем,
   а именно с мобильных идёт рекламный трафик. */
h1, .h1 { font-size: clamp(4.5rem, 6vw, 5.2rem); }
h2, .h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3, .h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 400; }
.lede { color: rgb(var(--ivory-rgb) / 0.65); font-size: 1.1rem; line-height: 1.6; max-width: 52ch; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.tg {
  background: linear-gradient(115deg, var(--brass) 0%, #EFDDB4 50%, var(--brass) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgb(var(--brass-rgb) / 0.5); border-radius: 999px;
  color: var(--brass); padding: 0.35rem 1rem;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.24em; font-weight: 500;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 768px) { .wrap { padding-left: 3rem; padding-right: 3rem; } }
.section { padding-top: var(--s9); padding-bottom: var(--s9); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s6); margin-bottom: var(--s7); }
.section-head p { max-width: 40ch; color: var(--muted); font-size: 0.95rem; }

/* Разметка секций: линейка сверху, заголовок слева, метка раздела справа */
.rule-head { border-top: 1px solid var(--line); padding-top: var(--s5); margin-bottom: var(--s7);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s4) var(--s6); }
.rule-head .meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rule-head p { flex-basis: 100%; max-width: 46ch; color: var(--muted); font-size: 0.95rem; margin-top: var(--s3); }
.flash .rule-head { border-top-color: rgb(var(--ink-rgb) / 0.14); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 0.95rem; font-weight: 500;
  min-height: var(--btn-h);
  padding: 0.4rem 0.4rem 0.4rem 1.75rem;
  transition: all 0.5s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .arr {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.5s var(--ease); flex: none;
}
.btn:hover .arr { transform: translate(2px, -1px) scale(1.05); }
.btn-brass {
  background: linear-gradient(135deg, #D6AF6B 0%, var(--brass) 45%, var(--brass-deep) 100%);
  color: var(--ink); font-weight: 600;
  box-shadow: 0 24px 70px -18px rgb(var(--brass-rgb) / 0.55);
}
.btn-brass:hover { background: linear-gradient(135deg, #E2BC78 0%, #D2AC66 45%, #AD8640 100%); }
.btn-brass .arr { background: rgb(var(--ink-rgb) / 0.15); }
.btn-ivory { background: var(--ivory); color: var(--ink); font-weight: 600; }
.btn-ivory:hover { background: #fff; }
.btn-ivory .arr { background: rgb(var(--ink-rgb) / 0.1); }
.btn-ghost {
  border: 1px solid rgb(var(--ivory-rgb) / 0.25); color: rgb(var(--ivory-rgb) / 0.85);
  padding: 0.4rem 1.75rem; background: rgba(19,16,8,0.3); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgb(var(--ivory-rgb) / 0.6); color: var(--ivory); }
.btn-line {
  border: 1px solid var(--line-strong); color: var(--ivory); background: transparent;
}
.btn-line:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-line .arr { background: rgb(var(--ivory-rgb) / 0.1); }
.btn-line:hover .arr { background: rgb(var(--ink-rgb) / 0.1); }

/* Чипы и бейджи */
.chip {
  display: inline-block; border-radius: 999px; padding: 0.35rem 1rem; font-size: 11px;
  border: 1px solid rgb(var(--ivory-rgb) / 0.2); color: rgb(var(--ivory-rgb) / 0.8); white-space: nowrap;
}
.chip-solid { background: rgb(var(--ivory-rgb) / 0.9); color: var(--ink); border: 0; font-weight: 600; backdrop-filter: blur(4px); }
.chip-dark { background: rgb(var(--shade-rgb) / 0.6); color: var(--ivory); border: 1px solid rgb(var(--ivory-rgb) / 0.15); backdrop-filter: blur(4px); }
/* Чипы лежат поверх рендера застройщика, а он бывает светлым: полупрозрачное
   золото по золоту на нём пропадало вместе с районом и сроком сдачи.
   Тёмная подложка + размытие держат контраст на любом кадре. */
.chip-brass {
  background: rgb(var(--shade-rgb) / 0.55);
  color: var(--brass);
  border: 1px solid rgb(var(--brass-rgb) / 0.55);
  font-weight: 500;
  backdrop-filter: blur(6px);
}

/* Карточки (double-bezel) */
.bez {
  border-radius: var(--r-xl);
  background: rgb(var(--ivory-rgb) / 0.04);
  border: 1px solid var(--line);
  padding: 0.5rem;
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease), border-color 0.7s var(--ease);
}
.bez:hover { border-color: rgb(var(--brass-rgb) / 0.5); transform: translateY(-6px); box-shadow: 0 60px 100px -50px rgba(0,0,0,0.8); }
.bez-static:hover { transform: none; box-shadow: none; }
.bez-media { position: relative; border-radius: var(--r-in); overflow: hidden; }
.bez-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.bez:hover .bez-media img { transform: scale(1.045); }
.bez-media .ovl { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--shade-rgb) / 0.15) 0%, transparent 35%, rgb(var(--shade-rgb) / 0.55) 100%); }
.bez-media .tags { position: absolute; top: 1.1rem; left: 1.1rem; right: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bez-body { padding: var(--s5) var(--s5) var(--s4); }
/* Карточка проекта: фиксированная геометрия — сетка ровная при любом тексте */
.pcard { display: flex; flex-direction: column; height: 100%; }
.pcard .bez-media { aspect-ratio: 16 / 10; height: auto !important; }
.pcard .bez-body { display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: var(--s1); margin-top: auto; }
.pcard .bez-body .h3 { line-height: 1.15; }
.pcard .sub { font-size: 13px; color: var(--muted); min-height: 2.6em; }
.panel {
  border-radius: var(--r-xl); background: rgb(var(--ivory-rgb) / 0.04);
  border: 1px solid var(--line); padding: 2.25rem;
}
@media (min-width: 768px) { .panel { padding: 3rem; } }

/* Сетки */
.grid { display: grid; gap: 1.5rem; }
/* minmax(0,1fr), а не 1fr: у трека 1fr минимум равен min-content содержимого,
   поэтому таблица юнитов (min-width: 540px) раздувала колонку до 542px и
   срезала 200px страницы на телефоне без возможности прокрутки. */
.g2 { grid-template-columns: minmax(0, 1fr); }
.g3 { grid-template-columns: minmax(0, 1fr); }
.g12 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c12 { grid-column: span 12; }
}

/* Нав */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; pointer-events: none; }
.nav {
  pointer-events: auto; margin: 1.25rem 1rem 0; display: flex; align-items: center; gap: 0.25rem;
  border-radius: 999px; background: rgba(19,16,8,0.5); backdrop-filter: blur(24px);
  border: 1px solid var(--line); padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  transition: background 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.nav.scrolled { background: rgba(19,16,8,0.88); box-shadow: 0 18px 60px -16px rgba(0,0,0,0.7); }
.nav-logo { font-family: "Fraunces", Georgia, serif; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; margin-right: 1rem; white-space: nowrap; }
.nav-logo em { font-weight: 400; }
.nav-links { display: none; align-items: center; gap: 0.25rem; font-size: 13px; color: var(--muted); }
.nav-links a { padding: 0.4rem 0.8rem; border-radius: 999px; transition: all 0.5s var(--ease); white-space: nowrap; }
.nav-links a:hover { background: rgb(var(--ivory-rgb) / 0.06); color: var(--ivory); }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav .btn { margin-left: 0.75rem; font-size: 13px; padding: 0.4rem 0.4rem 0.4rem 1.25rem; }
.nav .btn .arr { width: 1.75rem; height: 1.75rem; }
.nav-burger { display: flex; margin-left: 0.5rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line-strong); background: none; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-burger span { display: block; width: 16px; height: 1px; background: var(--ivory); transition: transform 0.5s var(--ease); }
@media (min-width: 900px) { .nav-burger { display: none; } }
.mobile-menu {
  position: fixed; inset: 0; z-index: 35; background: rgb(var(--shade-rgb) / 0.92); backdrop-filter: blur(28px);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: "Fraunces", Georgia, serif; font-size: 1.8rem; opacity: 0; transform: translateY(20px); animation: mmIn 0.6s var(--ease) forwards; }
@keyframes mmIn { to { opacity: 1; transform: none; } }

/* Хлебные крошки */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 12px; color: rgb(var(--ivory-rgb) / .75); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--brass); }
.crumbs .sep { opacity: 0.5; }

/* Hero страниц: единая рамка — крошки, h1 ≤16ch, лид ≤52ch, линейка снизу с меткой */
.page-hero { padding-top: clamp(8.5rem, 14vh, 11.5rem); padding-bottom: 0; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: var(--s5); }
.hero-rule { display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  border-bottom: 1px solid var(--line); padding-bottom: var(--s5); margin-top: var(--s6); }
.hero-rule .meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); font-variant-numeric: tabular-nums; }

/* Маркиза */
.marquee-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(27,23,16,0.8); padding: 1.1rem 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { display: flex; white-space: nowrap; animation: marq 34s linear infinite; }
.marquee > div { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; }
.marquee .mi { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1.2rem; color: rgb(var(--ivory-rgb) / 0.6); }
.marquee .mu { font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); }
.marquee .dot { color: var(--brass); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Статы: каждая колонка размечена линейкой сверху, цифры на одной базовой линии */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6) var(--s6); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid var(--line); padding-top: var(--s4); }
.flash .stat { border-top-color: rgb(var(--ink-rgb) / 0.14); }
.stat .num { font-family: "Fraunces", Georgia, serif; font-size: clamp(2.2rem, 3.6vw, 2.9rem);
  line-height: 1.05; min-height: 1.05em; display: flex; align-items: baseline; gap: 0.1em;
  font-variant-numeric: tabular-nums; }
.stat .cap { margin-top: var(--s3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); line-height: 1.55; max-width: 22ch; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0; font-family: "Fraunces", Georgia, serif; font-size: 1.15rem;
  transition: color 0.4s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brass); transition: transform 0.4s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brass); }
.faq .a { padding: 0 0 1.5rem; color: rgb(var(--ivory-rgb) / 0.65); max-width: 68ch; }

/* Таблицы */
.tbl-wrap { overflow-x: auto; border-radius: 1.25rem; border: 1px solid var(--line); }
table.tbl { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 0.9rem; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); background: rgba(27,23,16,0.6); white-space: nowrap; }
.tbl td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }

/* Формы */
.field {
  background: transparent; border: 0; border-bottom: 1px solid rgb(var(--ivory-rgb) / 0.25);
  padding: 0.9rem 0.15rem; font-size: 16px; width: 100%; outline: none; color: var(--ivory);
  transition: border-color 0.5s var(--ease); border-radius: 0; font-family: inherit;
}
.field::placeholder { color: rgba(154,145,128,0.7); }
.field:focus { border-color: var(--brass); }

/* Фокус был только у поля формы — клавиатурой сайт пройти было нельзя. */
:where(a, button, [role="button"], input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}
select.field { appearance: none; cursor: pointer; }
select.field option { background: var(--onyx2); color: var(--ivory); }
label.lbl, .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); display: block; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span {
  display: inline-block; padding: 0.6rem 1.35rem; border-radius: 999px;
  border: 1px solid rgb(var(--ivory-rgb) / 0.2); font-size: 14px; cursor: pointer; user-select: none; color: var(--ivory);
  transition: all 0.5s var(--ease);
}
.radio-pill input:checked + span { background: var(--ivory); color: var(--onyx); border-color: var(--ivory); }
.radio-pill:hover span { border-color: rgb(var(--ivory-rgb) / 0.5); }

/* Плавающая WA */
.float-wa {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 50;
  display: flex; align-items: center; gap: 0.7rem;
  border-radius: 999px; padding: 0.75rem 1.25rem 0.75rem 1rem;
  background: linear-gradient(135deg, #D6AF6B 0%, var(--brass) 45%, var(--brass-deep) 100%);
  color: var(--ink); font-size: 13px; font-weight: 600;
  box-shadow: 0 24px 70px -16px rgb(var(--brass-rgb) / 0.55);
  transition: all 0.5s var(--ease);
}
/* На первом экране плавающая кнопка перекрывала то кнопку героя, то ссылку
   на застройщика. Показываем её только после того, как герой ушёл вверх:
   пока он на виду, у него есть собственные CTA. */
.float-wa { opacity: 0; pointer-events: none; transform: translateY(10px); }
.float-wa.on { opacity: 1; pointer-events: auto; transform: none; }
.float-wa:hover { padding-right: 1.5rem; }
.float-wa:active { transform: scale(0.97); }
@media (min-width: 768px) { .float-wa { bottom: 2rem; right: 2rem; } }
/* На телефоне плавающая кнопка накрывала соседний CTA и цифры сдачи.
   Делаем её компактнее и оставляем запас внизу страницы, чтобы последний
   экран не читался из-под неё. */
@media (max-width: 767px) {
  .float-wa { bottom: 0.75rem; right: 0.75rem; padding: 0.6rem 1rem 0.6rem 0.85rem; font-size: 12px; }
  body { padding-bottom: 3.5rem; }
}
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #2E9E5B; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: #2E9E5B; animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 70% { transform: scale(2.6); opacity: 0; } 100% { opacity: 0; } }

/* Появление */
.reveal { opacity: 0; transform: translateY(56px); filter: blur(9px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.hero-seq { opacity: 0; transform: translateY(40px); filter: blur(8px); animation: heroIn 1.1s var(--ease) forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }
.kenburns img { animation: kb 22s var(--ease) infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.parallax { will-change: transform; }

/* Галерея планировок: мелкие тумбы + полноэкранный просмотрщик */
.fpg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
@media (min-width: 768px) { .fpg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fpg-item { position: relative; border: 1px solid var(--line); border-radius: 0.9rem;
  overflow: hidden; background: #FDFCF9; cursor: pointer; padding: 0; display: block;
  aspect-ratio: 4 / 3; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.fpg-item:hover { border-color: var(--brass); transform: translateY(-2px); }
.fpg-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fpg-item span { position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(19,16,8,0.75)); color: #fff;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1.1rem 0.5rem 0.4rem; text-align: center; pointer-events: none; }

.lb { position: fixed; inset: 0; z-index: 90; background: rgb(var(--shade-rgb) / 0.94);
  backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 0.75rem;
  background: #FDFCF9; box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9); }
.lb-cap { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  background: rgb(var(--ivory-rgb) / 0.12); border: 1px solid rgb(var(--ivory-rgb) / 0.2);
  color: var(--ivory); border-radius: 999px; padding: 0.45rem 1.2rem; font-size: 12.5px;
  letter-spacing: 0.06em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; z-index: 2; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 1px solid rgb(var(--ivory-rgb) / 0.25); background: rgba(19,16,8,0.6); color: var(--ivory);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; transition: all 0.4s var(--ease); }
.lb-btn:hover { background: var(--ivory); color: var(--ink); }
.lb-close { top: 1.1rem; right: 1.1rem; }
.lb-prev { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) {
  .lb-prev, .lb-next { top: auto; bottom: 4.6rem; transform: none; }
  .lb-prev { left: 18%; } .lb-next { right: 18%; }
  .lb img { max-height: 72vh; }
}

/* Косые лучи света (порт 21st elegant-dark-pattern: латунь вместо циана) */
.streaks { position: relative; overflow: hidden; }
.streaks > * { position: relative; z-index: 1; }
.streaks::before, .streaks::after {
  content: ""; position: absolute; inset: -20% -10%; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgb(var(--brass-rgb) / 0.55) 0%, rgb(var(--brass-rgb) / 0) 72%);
  transform: skewX(40deg);
}
.streaks::before {
  opacity: 0.11;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 16%, transparent 33%, #000 52%, rgba(0,0,0,0.14) 65%, #000 79%, transparent 96%);
  mask: linear-gradient(90deg, transparent 0%, #000 16%, transparent 33%, #000 52%, rgba(0,0,0,0.14) 65%, #000 79%, transparent 96%);
}
.streaks::after {
  opacity: 0.07;
  -webkit-mask: linear-gradient(90deg, transparent 8%, #000 24%, rgba(0,0,0,0.5) 40%, transparent 50%, #000 62%, rgba(0,0,0,0.3) 74%, #000 86%, transparent 97%);
  mask: linear-gradient(90deg, transparent 8%, #000 24%, rgba(0,0,0,0.5) 40%, transparent 50%, #000 62%, rgba(0,0,0,0.3) 74%, #000 86%, transparent 97%);
}
.dots { position: relative; }
.dots::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.14; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgb(var(--ivory-rgb) / 0.5) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 100%);
  mask: radial-gradient(80% 70% at 50% 30%, #000 0%, transparent 100%);
}

/* Светлая секция-вспышка */
.flash { background:
  radial-gradient(48% 44% at 84% 16%, rgb(var(--brass-rgb) / 0.18) 0%, transparent 70%),
  linear-gradient(180deg, #F6F1E6 0%, #F3EEE3 100%);
  color: var(--ink); }
.flash .lede, .flash .muted, .flash p { color: rgb(var(--ink-rgb) / 0.72); }
.flash .panel { background: rgba(255,255,255,0.6); border-color: rgb(var(--ink-rgb) / 0.1); }
.flash .num-brass { color: var(--brass-deep); }

/* Футер */
footer { border-top: 1px solid var(--line); padding-top: 4rem; overflow: hidden; position: relative; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; padding-bottom: 3.5rem; }
.foot-legal { font-size: 12.5px; color: var(--muted); max-width: 62ch; line-height: 1.6; margin-top: 0.75rem; }
.foot-links { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.foot-links a:hover { color: var(--ivory); }
.foot-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.foot-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--brass); margin-bottom: 1rem; font-weight: 500; }
.giant { user-select: none; pointer-events: none; margin-bottom: -4vw; opacity: 0.05;
  font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 21vw; line-height: 0.8;
  text-align: center; white-space: nowrap; letter-spacing: -0.02em; }

/* Курсор */
#cursor { position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ivory); mix-blend-mode: difference; pointer-events: none; z-index: 100;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.3s; opacity: 0; }
#cursor.big { width: 52px; height: 52px; }
@media (hover: none), (max-width: 767px) { #cursor { display: none; } }

/* Прочее */
.prose { max-width: 68ch; }
.prose p { margin: 1rem 0; color: rgb(var(--ivory-rgb) / 0.75); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.25rem; color: rgb(var(--ivory-rgb) / 0.75); }
.prose li { margin: 0.4rem 0; }
.prose strong { color: var(--ivory); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; } .mt-8 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-6 { margin-bottom: 3rem; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .gap-2 { gap: 1rem; } .gap-1 { gap: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-seq { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
  .kenburns img, .marquee { animation: none !important; }
  .parallax { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Полоса согласия ──
   Спрашивается один раз. Внизу, поверх контента, но не перекрывает CTA:
   уезжает сразу после ответа. Цвета — из токенов, как всё остальное. */
.consent-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: min(100% - 2rem, 62rem);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: rgb(var(--shade-rgb) / 0.92);
  backdrop-filter: blur(14px);
  color: var(--ivory);
  font-size: 13px;
  line-height: 1.45;
  transform: translate(-50%, 130%);
  transition: transform 0.5s var(--ease);
}
.consent-bar.on { transform: translate(-50%, 0); }
.consent-bar span { flex: 1 1 22rem; }
.consent-bar .btn { flex: 0 0 auto; height: 2.4rem; padding-inline: 1rem; font-size: 12px; }

@media (max-width: 767px) {
  .consent-bar { bottom: 0.6rem; padding: 0.8rem 0.9rem; font-size: 12px; }
  .consent-bar .btn { flex: 1 1 auto; }
}

/* ── Фактура ──
   Тёмная тема без зерна выглядит как плоская заливка: на страницах районов
   и застройщиков гейт показывал фактуру 1 из 6. Слой очень слабый — работает,
   пока его не замечают, и не мешает читать текст поверх рендеров. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media print { body::after { display: none; } }

/* Кадры от разных застройщиков сводим в один тон — иначе подборка выглядит
   сборной солянкой, даже когда каждый рендер хорош сам по себе. */
:where(img):not([src*=".svg"]):not([class*="logo"]) { filter: saturate(0.95) contrast(1.03); }

/* Первая карточка района занимает обе колонки: подборка перестаёт выглядеть
   ровной выгрузкой и читается как шорт-лист с главным предложением. */
@media (min-width: 768px) {
  .area-grid > .area-lead { grid-column: 1 / -1; }
  .area-grid > .area-lead .bez-media { height: 380px; }
}

/* ── Длинный текст: гиды и журнал ──
   Статья приходит из markdown одним куском и без этих правил читается простынёй.
   Приёмы печатные: первый абзац крупнее, врезка с золотой линией, таблица
   в рамке с маской по краям, чтобы широкие данные не обрывались резко. */
.prose > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgb(var(--ivory-rgb) / 0.92);
}
.prose h2 {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.prose h2::before {
  content: "";
  display: block;
  width: 2.2rem;
  height: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--brass), transparent);
}
.prose blockquote {
  margin: 2rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--brass);
  background: linear-gradient(90deg, rgb(var(--brass-rgb) / 0.08), transparent 70%);
  font-style: italic;
  color: rgb(var(--ivory-rgb) / 0.9);
}
/* Таблица в статье шире телефона по своей природе. Делаем её отдельной
   областью прокрутки: иначе она растягивает страницу и контент уходит
   за край без возможности его прочитать. */
.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 1.8rem 0;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, #000 94%, transparent);
}
@media (min-width: 768px) {
  .prose table { display: table; white-space: normal; }
}
.prose table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
}
.prose table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose ul li::marker { color: var(--brass); }
.prose a { border-bottom: 1px solid rgb(var(--brass-rgb) / 0.45); }
.prose a:hover { border-bottom-color: var(--brass); color: var(--brass); }

/* Мягкая виньетка по краям экрана: тёмная тема без неё выглядит равномерной
   заливкой, а с ней взгляд собирается к центру. Слой не перехватывает клики
   и не влияет на текст. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
  background: radial-gradient(135% 110% at 50% 40%, transparent 58%, rgb(0 0 0 / 0.22));
}

/* Номер разрешения Trakheesi выделяем в общей юридической строке: по правилам
   Дубая он должен читаться, а не теряться в мелком тексте подвала. */
.foot-legal .permit { color: var(--ivory); white-space: nowrap; }

/* Строка согласия под формой. Чекбокс не преднажат: согласие должно быть
   действием посетителя, иначе его нельзя предъявить как доказанное. */
.consent-line {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent-line input { margin-top: 0.15rem; accent-color: var(--brass); flex: 0 0 auto; }
.consent-line a { color: var(--ivory); border-bottom: 1px solid rgb(var(--brass-rgb) / 0.5); }
