/* ============================================================
   ЖК «Парк Культуры» — премиум-лендинг 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: 260vh;
  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; }

/* Фото: шторка слева направо при появлении */
.js .about__media,
.js .location__media {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-out), opacity .9s var(--ease-out);
}
.js .about__media.is-visible,
.js .location__media.is-visible {
  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; }
  .marquee__track { animation: none !important; }
}

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

.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.32) 44%, rgba(16, 15, 11, 0.08) 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;
  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%); }
}

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

.features { padding: clamp(80px, 10vw, 150px) 0; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.features__cell {
  padding: clamp(30px, 3.6vw, 52px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background-color .4s var(--ease-out);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.features__cell:hover { background: var(--surface); }
.features__cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.features__cell:hover::before { transform: scaleX(1); }

.features__cell h3 {
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.features__cell p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ivory-soft);
}

.features__cell--img { padding: 0; min-height: 300px; }
.features__cell--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.features__cell--img:hover img { transform: scale(1.05); }

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

.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);
}

.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__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; }

  .features__grid { grid-template-columns: 1fr 1fr; }
  .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;
  }

  .features__grid { grid-template-columns: 1fr; }
  .features__cell { min-height: 0; }
  .features__cell--img { min-height: 260px; }

  .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%; }
}
