/* ============================================================
   ЖК «Парк Культуры» — премиум-лендинг v3
   Тема: тёмный вечерний люкс, шампань-золото
   Типографика: Montserrat (строгий геометрический гротеск)
   Hero: шторы, открывающие вид на море при скролле
   ============================================================ */

:root {
  --bg: #14130f;
  --bg-deep: #100f0b;
  --surface: #1c1a14;
  --ivory: #f2ede2;
  --ivory-soft: #b9b1a0;
  --gold: #d0ad72;
  --gold-bright: #eccf98;
  --line: rgba(242, 237, 226, 0.13);
  --line-gold: rgba(208, 173, 114, 0.4);
  --radius: 2px;
  --font: "Montserrat", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

::selection { background: var(--gold); color: var(--bg-deep); }

/* ---------- Типографика ---------- */

.h2 {
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.7em;
  color: var(--ivory);
  text-wrap: balance;
  max-width: 22em;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5em;
}

.lead {
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ivory);
  max-width: 36em;
  margin: 0 0 1em;
}

.body {
  color: var(--ivory-soft);
  max-width: 42em;
  margin: 0 0 1em;
}

/* ---------- Кнопки и ссылки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 34px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out),
              border-color .3s var(--ease-out), transform .15s var(--ease-out),
              box-shadow .3s var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn--gold {
  background: var(--gold);
  color: #191408;
  border: 1px solid var(--gold);
}
.btn--gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: 0 12px 32px -12px rgba(208, 173, 114, 0.55);
}

.btn--line {
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
}
.btn--line:hover { color: var(--gold-bright); }

.btn--line-gold {
  border: 1px solid var(--line-gold);
  color: var(--gold);
  background: transparent;
}
.btn--line-gold:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn--big { padding: 21px 40px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-gold);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.link-arrow::after {
  content: "\2192";
  transition: transform .3s var(--ease-out);
}
.link-arrow:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Навигация ---------- */

.nav-sentinel { position: absolute; top: 0; height: 60px; width: 1px; }

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(16, 15, 11, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
  height: 84px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__logo {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.nav__logo em {
  font-style: normal;
  color: var(--gold);
  margin-right: 2px;
}

.nav__links { display: flex; gap: 22px; }
.nav__links a {
  color: rgba(242, 237, 226, 0.82);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  transition: color .25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover { color: var(--gold-bright); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__phone {
  color: var(--ivory);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color .25s;
}
.nav__phone:hover { color: var(--gold-bright); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ivory);
  transition: transform .3s var(--ease-out);
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ============================================================
   HERO: шторы
   Скролл двигает шторы в стороны и меняет контраст текста.
   Поддержка: CSS scroll-driven animations; фолбэк: автооткрытие.
   ============================================================ */

.hero__stage {
  height: 200vh;
  view-timeline: --heroTl block;
}

.hero__frame {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.12);
}

/* Шторы: тканевые складки из градиентов */
.hero__curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56%;
  z-index: 2;
  background:
    repeating-linear-gradient(90deg,
      #322b1f 0px, #191510 38px, #3a3225 78px, #1b1712 118px, #2e281c 156px),
    linear-gradient(180deg, #27221a, #14110d);
  background-blend-mode: overlay;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.hero__curtain--l { left: 0; transform-origin: left; }
.hero__curtain--r { right: 0; transform-origin: right; }
.hero__curtain--l::before,
.hero__curtain--r::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--line-gold) 20%, var(--line-gold) 80%, transparent);
  z-index: 1;
}
.hero__curtain--l::before { right: 0; }
.hero__curtain--r::before { left: 0; }
.hero__curtain--l::after,
.hero__curtain--r::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.55));
}
.hero__curtain--l::after { right: 0; }
.hero__curtain--r::after { left: 0; transform: scaleX(-1); }

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ivory);
}

/* Виньетка за текстом: проявляется, когда шторы открывают яркое фото */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 62% 58% at center 52%, rgba(13, 12, 9, 0.62), rgba(13, 12, 9, 0.34) 55%, transparent 78%);
}

.hero__eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 28px;
}

.hero__title {
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  color: inherit;
  text-wrap: balance;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.6;
  max-width: 34em;
  color: inherit;
  margin: 0 0 42px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Появление текста при загрузке */
.js [data-hero-item] {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 1.1s var(--ease-out) forwards;
  animation-delay: calc(0.3s + var(--i) * 0.15s);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Скролл-таймлайн: современные браузеры */
@supports (animation-timeline: view()) {
  .hero__curtain--l {
    animation: curtainL linear both;
    animation-timeline: --heroTl;
    animation-range: contain 5% contain 60%;
  }
  .hero__curtain--r {
    animation: curtainR linear both;
    animation-timeline: --heroTl;
    animation-range: contain 5% contain 60%;
  }
  .hero__view {
    animation: heroViewZoom linear both;
    animation-timeline: --heroTl;
    animation-range: contain 0% contain 75%;
  }
  .hero__vignette {
    animation: heroVignette linear both;
    animation-timeline: --heroTl;
    animation-range: contain 10% contain 55%;
  }
}
@keyframes curtainL { to { transform: translateX(-101%); } }
@keyframes curtainR { to { transform: translateX(101%); } }
@keyframes heroViewZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes heroVignette { to { opacity: 1; } }

/* Фолбэк: браузеры без scroll-driven animations — шторы открываются сами */
html.no-sdt .hero__stage { height: auto; }
html.no-sdt .hero__frame { position: relative; }
html.no-sdt .hero__curtain--l { animation: curtainL 2.4s var(--ease-out) 1.6s forwards; }
html.no-sdt .hero__curtain--r { animation: curtainR 2.4s var(--ease-out) 1.6s forwards; }
html.no-sdt .hero__view { animation: heroViewZoom 4s var(--ease-out) 1.6s forwards; }
html.no-sdt .hero__vignette { animation: heroVignette 2.4s var(--ease-out) 1.6s forwards; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Фото: шторка слева направо при появлении.
   Клип лежит на img, а не на figure: у обрезанной в ноль figure
   IntersectionObserver никогда не срабатывает — reveal-деадлок. */
.js .location__media img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-out);
}
.js .location__media.is-visible img {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__stage { height: auto !important; }
  .hero__frame { position: relative !important; }
  .hero__curtain { display: none !important; }
  .hero__view { transform: none !important; animation: none !important; }
  .hero__vignette { opacity: 1 !important; animation: none !important; }
  .js [data-hero-item] { animation: none; opacity: 1; transform: none; }
  .js [data-reveal] { transition: none; opacity: 1; transform: none; clip-path: none !important; }
  .js .location__media img { transition: none; clip-path: none !important; }
  .marquee__track { animation: none !important; }
  .band--safety.is-quaking .band__media { animation: none; }
}

/* ---------- Бегущая строка ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 22px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-gold);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- О проекте ---------- */

.about { padding: clamp(90px, 12vw, 170px) 0; }

.about__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.about__actions { margin-top: 34px; }

.about__media { margin: 0; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.about__media figcaption {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ivory-soft);
}

/* ---------- Авторы ---------- */

.authors {
  padding: clamp(90px, 12vw, 170px) 0;
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}

.authors__title { margin-bottom: clamp(44px, 6vw, 72px); }

.authors__list {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

.author {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.author__photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}
.author__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  pointer-events: none;
  transition: border-color .4s var(--ease-out);
}
.author:hover .author__photo::after { border-color: var(--line-gold); }
.author__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: transform .8s var(--ease-out);
}
.author:hover .author__photo img { transform: scale(1.04); }

.author__info h3 {
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.author__role {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.author__lead {
  margin: 0 0 14px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ivory);
  max-width: 40em;
}
.author__bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ivory-soft);
  max-width: 46em;
}

/* Реализованные проекты */
.projects {
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(208, 173, 114, 0.07), transparent 55%);
}
.projects__title {
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  margin: 0 0 24px;
}
.projects__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 32px;
}
.projects__list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--ivory-soft);
}
.projects__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 1.5px;
  background: var(--gold);
}

/* ---------- Full-bleed баннеры ---------- */

.band {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.band__media { position: absolute; inset: 0; }
.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 15, 11, 0.92) 0%, rgba(16, 15, 11, 0.52) 44%, rgba(16, 15, 11, 0.1) 72%, rgba(16, 15, 11, 0.3) 100%);
}
.band__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(48px, 7vw, 100px);
}
.band__label {
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 14px rgba(16, 15, 11, 0.9);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 18px;
}
.band .h2 { margin-bottom: 0.4em; }
.band .lead { margin: 0; color: rgba(242, 237, 226, 0.88); }

/* Параллакс фона баннеров в поддерживающих браузерах */
@supports (animation-timeline: view()) {
  .band__media img {
    height: 130%;
    animation: bandParallax linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
}
@keyframes bandParallax {
  from { transform: translateY(-12%); }
  to   { transform: translateY(0%); }
}

/* ---------- Сейсмо-сцена «Безопасность»: долгая тряска с медленным затуханием ---------- */

.band__alert {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ivory-soft);
  border-left: 2px solid var(--line-gold);
  padding-left: 14px;
  max-width: 34em;
  margin: 0 0 26px;
  text-shadow: 0 1px 12px rgba(16, 15, 11, 0.9);
}
.band--safety.is-quaking .band__media {
  animation: quakeShake 4.8s linear both;
}
@keyframes quakeShake {
  0%   { transform: translate(0, 0) scale(1.05); }
  4%   { transform: translate(-14px, 8px) rotate(-0.45deg) scale(1.05); }
  9%   { transform: translate(13px, -8px) rotate(0.4deg) scale(1.05); }
  15%  { transform: translate(-12px, 7px) rotate(-0.35deg) scale(1.05); }
  21%  { transform: translate(11px, -6px) rotate(0.3deg) scale(1.05); }
  28%  { transform: translate(-9px, 5px) rotate(-0.26deg) scale(1.05); }
  36%  { transform: translate(8px, -5px) rotate(0.22deg) scale(1.05); }
  44%  { transform: translate(-7px, 4px) rotate(-0.18deg) scale(1.04); }
  53%  { transform: translate(5px, -3px) rotate(0.14deg) scale(1.04); }
  62%  { transform: translate(-4px, 2px) rotate(-0.1deg) scale(1.03); }
  71%  { transform: translate(3px, -2px) rotate(0.07deg) scale(1.025); }
  80%  { transform: translate(-2px, 1px) rotate(-0.04deg) scale(1.018); }
  88%  { transform: translate(1.4px, -0.7px) rotate(0.02deg) scale(1.01); }
  95%  { transform: translate(-0.7px, 0.4px) scale(1.005); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ---------- Преимущества ---------- */

/* Скролл-сцена: срез сваи катится между остановками-преимуществами.
   Без .live (no-JS, reduced-motion) — статичная центрированная колонка. */
.featroll {
  position: relative;
  padding: clamp(80px, 10vw, 150px) 20px;
}
.featroll__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(44px, 6vw, 72px);
  counter-reset: fstop;
}
.featroll__head { text-align: center; max-width: 800px; }
.featroll__head .h2 { margin-bottom: 0; max-width: none; }

/* Башенный кран: стрела-ферма сверху, каретка, трос с крюком (только в live-режиме) */
.crane { display: none; }
.featroll.live .crane {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.crane__jib {
  position: absolute;
  left: 3vw;
  right: 3vw;
  top: 12vh;
  height: 14px;
  border-top: 2px solid var(--line-gold);
  border-bottom: 2px solid var(--line-gold);
  background: repeating-linear-gradient(-60deg, transparent 0 10px, rgba(208, 173, 114, 0.45) 10px 12px);
}
.crane__trolley {
  position: absolute;
  left: 50%;
  top: 12vh;
  will-change: transform;
}
.crane__cart {
  position: absolute;
  left: -14px;
  top: -4px;
  width: 28px;
  height: 20px;
  background: var(--gold);
  border-radius: 2px;
}
.crane__pend {
  position: absolute;
  left: 0;
  top: 16px;
  transform-origin: top center;
}
.crane__cable {
  position: absolute;
  left: -1.5px;
  top: 0;
  width: 3px;
  height: 50svh;
  background: rgba(208, 173, 114, 0.8);
  transform-origin: top center;
  transform: scaleY(0.1);
}
.crane__hookblock {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}
.crane__block {
  position: absolute;
  left: -8px;
  top: -2px;
  width: 16px;
  height: 12px;
  background: var(--gold);
  border-radius: 2px;
}
.crane__hook {
  position: absolute;
  left: -11px;
  top: 10px;
  width: 22px;
  height: 22px;
  border: 3px solid var(--gold);
  border-top-color: transparent;
  border-radius: 50%;
}

.fstop { max-width: 500px; text-align: center; counter-increment: fstop; }
.fstop::before {
  content: "0" counter(fstop);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  margin-bottom: 16px;
}
.fstop h3 {
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--ivory);
  text-wrap: balance;
}
.fstop p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ivory-soft);
}

/* Живой режим: sticky-сцена, свая катится, остановки сменяются */
.featroll.live { height: 320vh; padding: 0; }
.featroll.live .featroll__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: block;
}
.featroll.live .featroll__head {
  position: absolute;
  left: 50%;
  top: 18vh;
  transform: translateX(-50%);
  width: min(92vw, 860px);
  z-index: 2;
}
.featroll.live .fstop {
  position: absolute;
  top: var(--stopY, 50%);
  opacity: 0;
  pointer-events: none;
  max-width: min(440px, 40vw);
  z-index: 2;
}
.featroll.live .fstop.left { right: calc(50% + clamp(48px, 6vw, 96px)); left: auto; text-align: right; }
.featroll.live .fstop.right { left: calc(50% + clamp(48px, 6vw, 96px)); right: auto; text-align: left; }
/* Пройденные остановки: остаются на сцене, но приглушаются — акцент на активной */
.featroll.live .fstop h3,
.featroll.live .fstop::before { transition: color .5s var(--ease-out), opacity .5s var(--ease-out); }
.featroll.live .fstop p { transition: opacity .5s var(--ease-out); }
.featroll.live .fstop.is-passed h3 { color: var(--ivory-soft); }
.featroll.live .fstop.is-passed::before { opacity: 0.55; }
.featroll.live .fstop.is-passed p { opacity: 0; }
@media (max-width: 720px) {
  /* На мобиле кран выше, остановки по центру снизу */
  .featroll.live { height: 430vh; }
  .featroll.live .featroll__head { top: 13vh; }
  .crane__jib { top: 9vh; }
  .crane__trolley { top: 9vh; }
  .featroll.live .fstop,
  .featroll.live .fstop.left,
  .featroll.live .fstop.right {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 10vh;
    text-align: center;
    max-width: min(88vw, 480px);
    transform: translateX(-50%);
  }
}

/* ---------- Инфраструктура ---------- */

.infra {
  padding: clamp(90px, 12vw, 170px) 0;
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}

.infra__title { max-width: 24em; }

.stats__grid {
  list-style: none;
  margin: clamp(48px, 6vw, 72px) 0;
  padding: clamp(32px, 4vw, 48px) 0;
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.stats__grid li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 22px;
  border-left: 2px solid var(--line-gold);
  position: relative;
}
/* Бегущая по контуру золотая подсветка вокруг каждой цифры */
@property --statSweep {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.stats__grid li::after {
  content: "";
  position: absolute;
  inset: -14px -6px -14px -2px;
  border-radius: var(--radius);
  padding: 1px;
  background: conic-gradient(from var(--statSweep),
    rgba(236, 207, 152, 0.9) 0deg 26deg,
    rgba(236, 207, 152, 0) 60deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: statSweep 5s linear infinite;
  animation-delay: calc(var(--i, 0) * 1.25s);
}
@keyframes statSweep {
  to { --statSweep: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .stats__grid li::after { animation: none; opacity: 0; }
}

.stats__num {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.stats__num i {
  font-style: normal;
  font-weight: 600;
  font-size: 0.45em;
  margin-left: 0.3em;
  color: var(--gold);
}

.stats__label {
  font-size: 14px;
  color: var(--ivory-soft);
  max-width: 15em;
}

.infra__sub {
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin: 0 0 28px;
}

.infra__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.infra__cell {
  padding: clamp(24px, 2.8vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.infra__cell:hover {
  border-color: var(--line-gold);
  transform: translateY(-4px);
}
.infra__cell h4 {
  font-weight: 700;
  font-size: 16.5px;
  margin: 0 0 10px;
}
.infra__cell p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ivory-soft);
}

/* ---------- Расположение ---------- */

.location { padding: clamp(90px, 12vw, 170px) 0; }

.location__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.location__address {
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 24px;
  color: var(--ivory);
}

.location__media { margin: 0; }
.location__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
}

.location__master img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
/* Интерактивная карта: до инициализации (или без ключа) — генплан-фолбэк */
.location__map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
}
.location__map-fallback {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  border: none;
}
.location__map.is-live .location__map-fallback { display: none; }
.map-pin { text-align: center; transform: translate(-50%, calc(-100% + 8px)); }
.map-pin__label {
  display: inline-block;
  background: rgba(16, 15, 11, 0.9);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  color: var(--ivory);
  font: 700 12px/1 Montserrat, sans-serif;
  letter-spacing: 0.08em;
  padding: 9px 12px;
  white-space: nowrap;
}
.map-pin__dot {
  width: 14px;
  height: 14px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(208, 173, 114, 0.25);
}
.location__caption {
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ivory-soft);
}

/* ---------- Планировки ---------- */

.plans {
  padding: clamp(90px, 12vw, 170px) 0;
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}

.plans__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.plans__head .lead { margin-bottom: 0; }

.plans__nav { display: flex; gap: 12px; flex-shrink: 0; }

.plans__arrow {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  font-size: 20px;
  cursor: pointer;
  transition: border-color .3s var(--ease-out), color .3s, background-color .3s, transform .15s;
}
.plans__arrow:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(208, 173, 114, 0.08);
}
.plans__arrow:active { transform: scale(0.94); }

.plans__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: max(calc((100vw - var(--container)) / 2 + clamp(20px, 4vw, 56px)), 20px);
  padding-bottom: 8px;
  scrollbar-width: none;
}
.plans__track::-webkit-scrollbar { display: none; }

.plan-card {
  flex: 0 0 clamp(300px, 33vw, 430px);
  scroll-snap-align: start;
  background: #f5f2e9;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 64px -26px rgba(0, 0, 0, 0.6);
}

.plan-card__img {
  aspect-ratio: 4 / 3;
  padding: 20px 20px 0;
}
.plan-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.plan-card__meta {
  padding: 18px 26px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  row-gap: 4px;
  border-top: 1px solid rgba(25, 20, 8, 0.12);
}
.plan-card__meta h3 {
  margin: 0;
  font-weight: 700;
  font-size: 12.5px;
  color: #6d6450;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.plan-card__area {
  margin: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: #191408;
  font-variant-numeric: tabular-nums;
}
.plan-card__note {
  margin: 0;
  font-size: 13px;
  color: #6d6450;
}

.plans__foot {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.plans__foot .body { margin: 0; }

/* ---------- Новости ---------- */

.news { padding: clamp(90px, 12vw, 170px) 0; }

.news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.news__head .h2 { margin-bottom: 0; }

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news__card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ivory);
  transition: border-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.news__card:hover {
  border-color: var(--line-gold);
  transform: translateY(-5px);
}

.news__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.news__card h3 {
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.news__text {
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ivory-soft);
  flex-grow: 1;
}
.news__more {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.news__card:hover .news__more { color: var(--gold-bright); }

/* ---------- Контакты ---------- */

.contacts {
  padding: clamp(90px, 12vw, 170px) 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.contacts__address {
  font-style: normal;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--ivory-soft);
  margin-bottom: 26px;
}

.contacts__phone {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  letter-spacing: -0.01em;
  color: var(--gold-bright);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color .3s var(--ease-out);
}
.contacts__phone:hover { color: var(--gold); }

.contacts__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.contacts__actions .btn { width: 100%; }
.contacts__note {
  margin: 16px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--ivory-soft);
}
.contacts__actions .link-arrow { align-self: center; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer p {
  margin: 0;
  font-size: 13px;
  color: var(--ivory-soft);
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1120px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .nav.is-open {
    background: var(--bg-deep);
    border-bottom-color: var(--line);
  }
  .nav.is-open .nav__links {
    display: flex;
    position: fixed;
    top: 84px;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-deep);
    padding: 8px clamp(20px, 4vw, 56px) 32px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links > a {
    font-size: 15px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links > a::after { display: none; }

  .projects__list { grid-template-columns: 1fr 1fr; }
  .infra__grid { grid-template-columns: 1fr 1fr; }
  .news__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__phone { display: none; }

  .about__grid,
  .location__grid,
  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .author {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .author__photo { max-width: 320px; aspect-ratio: 1 / 1; }

  .projects__list { grid-template-columns: 1fr; }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .infra__grid { grid-template-columns: 1fr; }

  .band { min-height: 72vh; }

  .plans__head { flex-direction: column; align-items: flex-start; }
  .plan-card { flex-basis: 84vw; }
  .plans__foot { justify-content: center; text-align: center; }

  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ============================================================
   v4: акценты по блокам
   ============================================================ */

/* Паспарту: тонкая золотая рамка-инсет, проявляется с открытием штор */
.hero__passepartout {
  position: absolute;
  inset: clamp(14px, 2vw, 26px);
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(208, 173, 114, 0.55);
  opacity: 0;
}
@supports (animation-timeline: view()) {
  .hero__passepartout {
    animation: heroVignette linear both;
    animation-timeline: --heroTl;
    animation-range: contain 30% contain 60%;
  }
}
html.no-sdt .hero__passepartout { animation: heroVignette 1.8s var(--ease-out) 2.6s forwards; }
@media (prefers-reduced-motion: reduce) {
  .hero__passepartout { opacity: 1 !important; animation: none !important; }
}

/* Выделение в заголовках */
.h2 em { font-style: normal; color: var(--gold); }

/* Фото с золотой offset-рамкой */
.golden-frame { position: relative; }
.golden-frame::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  pointer-events: none;
  z-index: -1;
}

/* Активный пункт меню (scrollspy) */
.nav__links a.is-active { color: var(--gold-bright); }
.nav__links a.is-active::after { transform: scaleX(1); }

/* Авторы: чередование сторон + бейджи-регалии */
.author:nth-child(even) { grid-template-columns: 1fr minmax(220px, 340px); }
.author:nth-child(even) .author__photo { order: 2; }

.author__badges {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.author__badges li {
  padding: 8px 14px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  background: rgba(208, 173, 114, 0.06);
}

/* Диаграмма территории 30/70 */
.terra { margin: clamp(36px, 5vw, 56px) 0 0; }
.terra__bar {
  display: flex;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.terra__built,
.terra__green {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 20px;
  min-width: 0;
  white-space: nowrap;
}
.terra__built {
  flex: 0 0 30%;
  background: var(--surface);
  border-right: 1px solid var(--line-gold);
}
.terra__green {
  flex: 1;
  background: linear-gradient(90deg, rgba(208, 173, 114, 0.32), rgba(208, 173, 114, 0.14));
  position: relative;
  overflow: hidden;
}
/* Цикличный «отсвет заката» по полосе парка */
.terra__green::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(236, 207, 152, 0.24) 50%, transparent 68%);
  transform: translateX(-110%);
  animation: terraSheen 6s cubic-bezier(.4, 0, .2, 1) 2.2s infinite;
  pointer-events: none;
}
@keyframes terraSheen {
  0% { transform: translateX(-110%); }
  52% { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}
@media (prefers-reduced-motion: reduce) {
  .terra__green::after { animation: none; }
}
.terra__built b,
.terra__green b {
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.terra__built span,
.terra__green span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  overflow: hidden;
  text-overflow: ellipsis;
}
.js .terra .terra__built,
.js .terra .terra__green { flex-basis: 0%; transition: flex-basis 1.4s var(--ease-out) .2s; }
.js .terra.is-visible .terra__built { flex-basis: 30%; }
.js .terra.is-visible .terra__green { flex-basis: 70%; }
@media (prefers-reduced-motion: reduce) {
  .js .terra .terra__built { flex-basis: 30% !important; transition: none; }
  .js .terra .terra__green { flex-basis: 70% !important; transition: none; }
}

/* Прогресс карусели планировок */
.plans__progress {
  margin-top: 22px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.plans__progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0.166);
  transform-origin: left;
  transition: transform .2s linear;
}

/* Новости: стрелка-глиф */
.news__more::after {
  content: "\2197";
  margin-left: 8px;
  display: inline-block;
  transition: transform .3s var(--ease-out);
}
.news__card:hover .news__more::after { transform: translate(3px, -3px); }

/* Финальный типографический аккорд */
.giant {
  overflow: hidden;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: clamp(28px, 4vw, 56px) 0 0;
  line-height: 0.78;
}
.giant span {
  display: block;
  text-align: center;
  font-weight: 800;
  font-size: clamp(2.1rem, 10.5vw, 10rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(208, 173, 114, 0.28);
  transform: translateY(0.12em);
  user-select: none;
}

/* Плавающая кнопка WhatsApp (мобайл) */
.fab-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), background-color .25s;
}
.fab-wa:hover { background: var(--gold-bright); }
.fab-wa.is-shown { opacity: 1; transform: none; }
@media (max-width: 768px) {
  .fab-wa { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-wa { transition: none; }
}

/* Мобильные уточнения v4 */
@media (max-width: 768px) {
  .author:nth-child(even) { grid-template-columns: 1fr; }
  .author:nth-child(even) .author__photo { order: 0; }
  .golden-frame::after { inset: 10px -10px -10px 10px; }
  .terra__built span { display: none; }
  .terra__built { flex-basis: 30%; padding: 14px 12px; }
  .terra__green { padding: 14px 12px; }
  .terra__green span { font-size: 11px; }
  .giant span { -webkit-text-stroke-width: 0.7px; }
}

/* ============================================================
   v5: плеер, фото-карточки благоустройства, живые новости
   ============================================================ */

/* Видео-плеер в блоке «О проекте» (десктоп; на мобиле колонка из медиазапроса выше) */
@media (min-width: 769px) {
  .about__grid { grid-template-columns: 5fr 6fr; }
}

.about__player {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
}
.about__player > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.about__player:hover > img { transform: scale(1.04); }
.about__player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 15, 11, 0.72), rgba(16, 15, 11, 0.12) 45%, rgba(16, 15, 11, 0.15));
}

.about__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(208, 173, 114, 0.92);
  z-index: 2;
  transition: background-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.about__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #191408;
}
.about__play::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(208, 173, 114, 0.5);
  animation: playPulse 2.6s var(--ease-out) infinite;
}
.about__player:hover .about__play {
  background: var(--gold-bright);
  transform: translate(-50%, -50%) scale(1.06);
}
/* Проигрывание: постер уступает место YouTube-плееру */
.about__player.is-playing { aspect-ratio: 16 / 9; cursor: default; }
.about__player.is-playing::after,
.about__player.is-playing .about__play,
.about__player.is-playing .about__player-label,
.about__player.is-playing > img { display: none; }
.about__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@keyframes playPulse {
  0%   { transform: scale(0.92); opacity: 1; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .about__play::after { animation: none; opacity: 0.6; }
}

.about__player-label {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Фото-карточки благоустройства: премиальный дуотон */
.infra__cell--photo {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-deep);
}
.infra__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) brightness(0.42) contrast(1.05);
  transition: filter .5s var(--ease-out), transform .8s var(--ease-out);
}
.infra__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 15, 11, 0.92) 12%, rgba(16, 15, 11, 0.35) 55%, rgba(16, 15, 11, 0.18));
  transition: opacity .5s var(--ease-out);
}
.infra__cell--photo h4,
.infra__cell--photo p { position: relative; z-index: 1; }
.infra__cell--photo:hover .infra__bg {
  filter: grayscale(0.1) brightness(0.55) contrast(1.03);
  transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .infra__bg, .infra__cell--photo:hover .infra__bg { transform: none; transition: none; }
}

/* Живые новости из Telegram */
.news__img {
  width: calc(100% + 2 * clamp(26px, 3vw, 40px));
  margin: calc(-1 * clamp(26px, 3vw, 40px)) calc(-1 * clamp(26px, 3vw, 40px)) 22px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.88);
}
.news__date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-soft);
  margin: 0 0 12px;
}
.news__foot {
  margin-top: clamp(28px, 4vw, 44px);
  text-align: center;
}

/* ============================================================
   v6: мобильные фиксы и улучшения
   ============================================================ */

/* Телефон и WhatsApp в мобильном меню */
.nav__menu-cta { display: none; }
@media (max-width: 1120px) {
  .nav.is-open .nav__menu-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 28px;
  }
  /* специфичность выше, чем у .nav__links a */
  .nav__links .nav__menu-phone {
    color: var(--gold-bright);
    text-decoration: none;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.01em;
    padding: 4px 0;
    font-variant-numeric: tabular-nums;
  }
  .nav__links .nav__menu-cta .btn {
    align-self: stretch;
    padding: 18px 34px;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: #191408;
  }
  .nav__menu-cta a::after { display: none; }
}

/* Hero на мобиле: шторы приоткрыты, мёртвая зона короче */
@media (max-width: 768px) {
  .hero__stage { height: 160vh; }
  .hero__curtain { width: 44.5%; }
  .hero__vignette { opacity: 0.35; }
}

/* Тач-цели: расширенная зона нажатия без визуальных изменений */
@media (pointer: coarse) {
  .link-arrow { padding-top: 16px; }
  .contacts__phone { display: inline-block; padding-block: 6px; }
  .nav__logo { padding-block: 10px; }
}

/* Диаграмма 30/70: короткая подпись на мобиле */
@media (max-width: 768px) {
  .terra__tail { display: none; }
}

/* Подсказка свайпа у планировок */
.plans__swipe { display: none; }
@media (max-width: 768px) {
  .plans__swipe {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ivory-soft);
    transition: opacity 0.5s var(--ease-out);
  }
  .plans__swipe.is-gone { opacity: 0; }
}

/* Биографии авторов: свёрнуты на мобиле */
.author__more {
  display: none;
  margin-top: 4px;
  padding: 13px 0;
  background: none;
  border: 0;
  color: var(--gold);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.author__more::after {
  content: "\2193";
  margin-left: 8px;
}
@media (max-width: 768px) {
  .js .author__bio.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .js .author__bio.is-clamped + .author__more { display: inline-block; }
}

/* Узкие экраны (до 380px): шапка и кнопки не переполняются */
@media (max-width: 380px) {
  .nav__inner { gap: 14px; }
  .nav__logo { font-size: 14.5px; }
  .btn {
    padding: 16px 20px;
    letter-spacing: 0.09em;
    white-space: normal;
  }
  .btn--big { padding: 18px 22px; }
  .stats__grid { gap: 28px 14px; }
}
