/* ============================================================
   КЛУБНЫЙ ДОМ — luxury landing
   Палитра, типографика, секции, анимации
   ============================================================ */

/* Скрыто визуально, доступно для скринридеров и поисковых роботов —
   для единственного h1 на странице, когда дизайн не предусматривает
   отдельный видимый заголовок (напр. hero-слайдер главной). */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Палитра бренда Aurum Fort (см. последние страницы макета):
   золото #C09A50 ~10% · зелёный #4E6046 ~30% · крем #F6F1E7 ~60% · мягкий чёрный #34302A */
:root {
  --graphite: #34302a;
  --graphite-2: #3e3830;
  --ink: #34302a;
  --gold: #c09a50;
  --gold-2: #9a7a3c;
  --cream: #f6f1e7;
  --cream-2: #f6f5f4;
  /* исторические имена --navy/--navy-deep сохранены: на них завязаны 40+ правил.
     Заказчик (правки от 21.07.2026, п. 7 и далее) перевёл все заголовки на фирменный синий. */
  --navy: #1c4e89;
  --navy-deep: #34302a;
  --brand-green: #4e6046;
  --beige: #d2cdca;
  --grey: #8b8b8b;
  --grey-light: #e7e7e7;
  --white: #fff;

  --serif: "Tenor Sans", system-ui, sans-serif;
  --serif-soft: "Tenor Sans", system-ui, sans-serif;
  --sans: "Tenor Sans", system-ui, sans-serif;
  --body: "Montserrat", system-ui, sans-serif;
  --marble: #f3f0eb;
  --marble-bg: url("/assets/img/marble-bg.webp");

  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- ГРУЗИНСКАЯ ВЕРСИЯ (lang="ka") ----------
   Tenor Sans и Montserrat не содержат грузинских глифов, поэтому под
   грузинский подключена элегантная пара Noto Georgian: антиква с засечками
   (Noto Serif Georgian) в роли display/serif — вместо Tenor Sans — и
   гуманистический гротеск (Noto Sans Georgian) для основного текста —
   вместо Montserrat. Переключение языка ставит lang="ka" на <html>
   (js/i18n.js), и эти переопределения меняют только шрифтовые переменные,
   не трогая палитру, ритм и раскладку. Русский (lang="ru") — дефолт выше. */
html[lang="ka"] {
  --serif: "Noto Serif Georgian", "Tenor Sans", system-ui, serif;
  --serif-soft: "Noto Serif Georgian", "Tenor Sans", system-ui, serif;
  --sans: "Noto Serif Georgian", "Tenor Sans", system-ui, serif;
  --body: "Noto Sans Georgian", "Montserrat", system-ui, sans-serif;
}
/* В грузинском нет заглавных букв — uppercase не даёт эффекта, но широкий
   трекинг на дисплейных начертаниях делает буквы разреженными и рыхлыми.
   Поджимаем межбуквенный интервал у крупных грузинских заголовков. */
html[lang="ka"] .h2,
html[lang="ka"] .authors__title,
html[lang="ka"] .hero__slide-text,
html[lang="ka"] .arch-statement__title,
html[lang="ka"] .chapter-next__title {
  letter-spacing: 0.005em;
}
/* Мелкие грузинские лейблы с большим трекингом читаются тяжело — смягчаем. */
html[lang="ka"] .eyebrow,
html[lang="ka"] .ph__label,
html[lang="ka"] .master__role,
html[lang="ka"] .author__role,
html[lang="ka"] .overlay-menu__primary a i {
  letter-spacing: 0.14em;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x только на body в iOS Safari не удерживает страницу — дублируем на html */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--body);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* `overflow-x: hidden` makes the root a scroll container in modern engines
   and breaks descendants with position: sticky. `clip` keeps horizontal
   bleed contained without disabling the sticky building sequence. */
@supports (overflow: clip) {
  html,
  body { overflow-x: clip; }
}
p { font-family: var(--body); font-weight: 300; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--gold); color: #fff; }

/* ---------- TYPOGRAPHY HELPERS ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.eyebrow--light { color: var(--gold); }
.lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--grey);
  max-width: 56ch;
  margin-top: 1.4rem;
}
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* Страховка от горизонтального вылезания заголовков на узких экранах:
   uppercase + serif + длинное слово («ПРОСТРАНСТВО», «ИНФРАСТРУКТУРА») на
   ~375-390px может быть шире контейнера — без переноса браузер не сжимает
   слово и даёт горизонтальный скролл страницы. */
h1, h2, h3 { max-width: 100%; overflow-wrap: break-word; }
.section { padding: clamp(72px, 11vw, 160px) 0; position: relative; }
.section--dark { background: var(--graphite); color: var(--white); }
.section--dark .lead, .section--dark .grey { color: #9aa0a6; }
.section--cream { background: var(--cream); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 80px); }

/* ---------- ЗАГЛУШКА ПОД НЕДОСТАЮЩИЙ МАТЕРИАЛ ----------
   Ставится там, где по макету нужен рендер/фото/видео, которых заказчик ещё не передал.
   Заменить на <img>/<video>, когда материал придёт. Искать по строке data-placeholder. */
.ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: clamp(24px, 4vw, 48px);
  text-align: center;
  background: #ece5d6;
  border: 1px dashed rgba(52, 48, 42, 0.4);
  color: var(--ink);
}
.ph__text {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.5;
  font-size: clamp(0.92rem, 1.3vw, 1.12rem);
  max-width: 30ch;
  text-wrap: balance;
}
.ph__label {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.ph--wide { min-height: clamp(280px, 42vh, 460px); }
.ph--tall { min-height: clamp(360px, 60vh, 640px); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 16px 38px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.4s var(--ease);
  border: 1px solid transparent;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(175,140,94,0.35); }
.btn--outline { border-color: currentColor; color: var(--graphite); }
.btn--outline:hover { background: var(--graphite); color: #fff; }
.btn--full { width: 100%; text-align: center; }

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--graphite);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { text-align: center; }
.preloader__mark { font-family: var(--serif); color: var(--gold); font-size: 2.6rem; letter-spacing: 0.3em; margin-bottom: 22px; }
/* п. 42: знак крупнее и рядом словесная часть логотипа — заставка выглядела пустовато */
.preloader__wordmark {
  font-family: var(--serif);
  color: var(--gold);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-bottom: 26px;
  padding-left: 0.42em;
}
.preloader__bar { width: 220px; height: 1px; background: rgba(255,255,255,0.18); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.2s linear; }

/* ---------- ROTATE NOTICE ---------- */
.rotate-notice {
  position: fixed; inset: 0; z-index: 2500;
  background: var(--graphite); color: #fff;
  display: none; align-items: center; justify-content: center;
  text-align: center; padding: 40px;
}
.rotate-notice__icon { font-size: 3rem; color: var(--gold); margin-bottom: 20px; animation: spin 2.4s linear infinite; }
.rotate-notice p { letter-spacing: 0.1em; font-size: 0.95rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--gold); z-index: 1500; transition: width 0.1s linear;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px clamp(20px, 5vw, 64px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s;
  color: var(--graphite);
  background: #fff;
}
.header.is-scrolled { padding: 14px clamp(20px, 5vw, 64px); box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
.header__side { display: flex; align-items: center; gap: 22px; }
.header__side--left { justify-self: start; }
.header__side--right { justify-self: end; }
.header__logo { display: flex; align-items: center; gap: 12px; justify-self: center; }
/* В макете (стр. 1) вордмарк без иконки-здания слева */
.header__logo-crest { display: none; }
.header__logo-mark { font-family: var(--serif); color: var(--gold); font-size: 1.5rem; letter-spacing: 0.15em; }
.header__logo-text { font-size: 0.72rem; letter-spacing: 0.28em; font-weight: 600; white-space: nowrap; color: var(--graphite); }
.header__select {
  font-family: var(--body);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  opacity: 1; transition: color 0.3s, opacity 0.3s; white-space: nowrap; color: var(--navy);
}
.header__select:hover { color: var(--gold); opacity: 1; }
.header__phone {
  position: relative;
  font-size: 0.82rem; letter-spacing: 0.08em; font-weight: 600; white-space: nowrap; color: var(--graphite);
  padding-left: 22px;
}
/* Золотая точка-разделитель перед номером (макет, стр. 1) вместо рамки у кнопки */
.header__phone::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.header__callback {
  font-family: var(--body);
  font-size: 0.82rem; letter-spacing: 0.02em; font-weight: 400; text-transform: none;
  color: var(--graphite); background: none; border: 0; padding: 0; transition: color 0.3s var(--ease); white-space: nowrap;
}
.header__callback:hover { color: var(--gold); }

/* ---------- ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА RU / KA ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--body);
  font-size: 0.72rem; letter-spacing: 0.1em; font-weight: 600;
  white-space: nowrap;
}
.lang-switch__btn {
  background: none; border: 0; padding: 2px 1px;
  color: var(--grey); letter-spacing: inherit; font: inherit;
  transition: color 0.3s var(--ease); line-height: 1;
}
.lang-switch__btn:hover { color: var(--gold); }
.lang-switch__btn.is-active { color: var(--navy); }
.lang-switch__sep { color: var(--beige); pointer-events: none; }
/* Светлый вариант — на тёмном оверлей-меню */
.lang-switch--light .lang-switch__btn { color: rgba(255,255,255,0.55); }
.lang-switch--light .lang-switch__btn:hover { color: var(--gold); }
.lang-switch--light .lang-switch__btn.is-active { color: #fff; }
.lang-switch--light .lang-switch__sep { color: rgba(255,255,255,0.3); }

/* burger */
.burger { display: block; width: 30px; height: 18px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: 0.35s var(--ease); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 8px; }
.burger span:nth-child(3) { top: 16px; }

/* ---------- FULLSCREEN OVERLAY MENU ---------- */
.overlay-menu {
  position: fixed; inset: 0; z-index: 1050;
  background: var(--graphite); color: #fff;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
  overflow: hidden;
}
.overlay-menu.is-open { opacity: 1; visibility: visible; }
.overlay-menu__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px clamp(20px, 5vw, 64px);
}
.overlay-menu__bar .header__logo { justify-self: center; }
.overlay-menu__bar .header__side--right { justify-self: end; }
/* На тёмном фоне оверлея текст наследует белый вместо тёмных цветов светлой шапки */
.overlay-menu__bar .header__callback,
.overlay-menu__bar .header__phone { color: #fff; }
.overlay-menu__bar .header__callback:hover { color: var(--gold); }
.overlay-menu__close { justify-self: start; width: 26px; height: 26px; position: relative; }
.overlay-menu__close span { position: absolute; top: 12px; left: 0; width: 100%; height: 2px; background: #fff; transition: 0.3s; }
.overlay-menu__close span:nth-child(1) { transform: rotate(45deg); }
.overlay-menu__close span:nth-child(2) { transform: rotate(-45deg); }
.overlay-menu__close:hover span { background: var(--gold); }

.overlay-menu__inner {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; z-index: 2;
}
.overlay-menu__primary { display: flex; flex-direction: column; gap: clamp(10px, 1.6vw, 22px); }
.overlay-menu__primary a {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  line-height: 1.1; color: #fff; display: flex; align-items: baseline; gap: 18px;
  opacity: 0; transform: translateX(-30px); transition: color 0.35s var(--ease);
}
.overlay-menu.is-open .overlay-menu__primary a { animation: menuIn 0.7s var(--ease) forwards; }
.overlay-menu.is-open .overlay-menu__primary a:nth-child(1) { animation-delay: 0.12s; }
.overlay-menu.is-open .overlay-menu__primary a:nth-child(2) { animation-delay: 0.2s; }
.overlay-menu.is-open .overlay-menu__primary a:nth-child(3) { animation-delay: 0.28s; }
.overlay-menu.is-open .overlay-menu__primary a:nth-child(4) { animation-delay: 0.36s; }
@keyframes menuIn { to { opacity: 1; transform: none; } }
.overlay-menu__primary a i { font-family: var(--sans); font-style: normal; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--gold-2); font-weight: 600; }
.overlay-menu__primary a:hover { color: var(--gold); }
.overlay-menu__primary a.is-active { color: var(--gold); }

.overlay-menu__aside { align-self: center; }
.btn--outline-light { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn--outline-light:hover { background: var(--gold); border-color: var(--gold); }

.overlay-menu__secondary {
  display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center;
  padding-top: 30px; padding-bottom: clamp(30px, 5vw, 60px);
  border-top: 1px solid rgba(255,255,255,0.12); position: relative; z-index: 2;
}
.overlay-menu__secondary a { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.7); transition: color 0.3s; }
.overlay-menu__secondary a:hover, .overlay-menu__secondary a.is-active { color: var(--gold); }

.overlay-menu__watermark {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  width: clamp(360px, 46vw, 720px); color: rgba(175,140,94,0.07); z-index: 1; pointer-events: none;
}
.overlay-menu__watermark svg { width: 100%; height: auto; }

@media (max-width: 1200px) {
  .overlay-menu__inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 34px; }
  .overlay-menu__aside { align-self: flex-start; }
}

/* ============================================================
   CIRCLE ARROW BUTTON (reusable)
   ============================================================ */
.circle-btn {
  width: clamp(64px, 6vw, 92px); height: clamp(64px, 6vw, 92px); border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0; position: relative; overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.circle-btn::before { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scale(0); border-radius: 50%; transition: transform 0.45s var(--ease); z-index: 0; }
.circle-btn:hover { color: #fff; }
.circle-btn:hover::before { transform: scale(1); }
.circle-btn svg, .circle-btn span { position: relative; z-index: 1; }
.circle-btn--filled { background: var(--gold); color: #fff; }
.circle-btn--filled::before { background: var(--gold-2); }

/* ============================================================
   CHAPTER NEXT (end-of-page transition)
   ============================================================ */
.chapter-next {
  position: relative;
  min-height: clamp(520px, 78vh, 880px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #14181b;
}
.chapter-next .chapter-next__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.chapter-next .chapter-next__media.media-placeholder {
  position: absolute;
  inset: 0;
  background: #2a2e33;
}
.chapter-next .chapter-next__media img.parallax__img {
  position: absolute !important;
  top: -20% !important;
  left: 0 !important;
  width: 100% !important;
  height: 140% !important;
  max-width: none !important;
  object-fit: cover !important;
}
.chapter-next .chapter-next__media::after {
  content: none;
}
.chapter-next__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* в макете кадр светлый: затемнение ослаблено до уровня, достаточного для читаемости белого текста */
  background: linear-gradient(180deg, rgba(20,24,27,0.42), rgba(20,24,27,0.3));
}
.chapter-next__num {
  position: absolute;
  left: clamp(24px, 8vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(6rem, 16vw, 15rem);
  color: rgba(255, 255, 255, 0.22);
  font-weight: 300;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}
/* column-reverse: в макете круглая стрелка стоит ПОД заголовком главы */
.chapter-next__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 30px;
  padding: 60px 20px;
}
.chapter-next__text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.chapter-next__eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.chapter-next__title {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}
.chapter-next__arrow {
  border-color: #fff;
  color: #fff;
  animation: arrowPulseWhite 2.4s var(--ease) infinite;
}
.chapter-next__arrow:hover {
  border-color: var(--gold);
  color: #fff;
  animation: arrowPulseGold 2.4s var(--ease) infinite;
}
@keyframes arrowPulseWhite { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); } 50% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
@keyframes arrowPulseGold { 0%,100% { box-shadow: 0 0 0 0 rgba(175,140,94,0.5); } 50% { box-shadow: 0 0 0 14px rgba(175,140,94,0); } }

/* ============================================================
   MASTERS SLIDER
   ============================================================ */
.masters-slider { position: relative; }
.masters-track {
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 72px; scrollbar-width: none;
}
.masters-track::-webkit-scrollbar { display: none; }
.masters-track .master { flex: 0 0 clamp(320px, 45%, 550px); scroll-snap-align: center; }
.master__media { position: relative; aspect-ratio: 16/10; margin-bottom: 0; overflow: hidden; background: #ebe8e3; }
.master__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.master:hover .master__media img { transform: scale(1.05); }
.master__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,0.3); }

.master__cat {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  text-align: center;
  width: 90%;
}
.master__person { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -65px; position: relative; z-index: 3; }
.master__avatar { width: 130px; height: 130px; border-radius: 50%; overflow: hidden; background: transparent; }
.master__avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.master__name { font-family: var(--sans); font-weight: 400; font-size: 1.1rem; color: var(--navy-deep); margin: 20px 0 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.master__role { font-family: var(--sans); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: #7a8694; }
.masters-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 50px; gap: 24px; }
.masters-header .h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; text-transform: uppercase; color: var(--navy-deep); max-width: 500px; margin: 0; letter-spacing: 0.06em; }
.masters-header .lead { font-size: clamp(0.9rem, 1.2vw, 1.1rem); line-height: 1.5; text-transform: uppercase; color: var(--navy-deep); max-width: 400px; margin: 0; letter-spacing: 0.08em; }
/* --- Мраморная текстура (общий фон как на референсе) --- */
.marble-bg,
.home-service--marble,
.masters.section,
/* Тёплая греж-полоса, как в макете (стр. 14), вместо белого мрамора */
.home-count {
  background-color: var(--beige);
  background-image:
    linear-gradient(rgba(210, 205, 202, 0.55), rgba(210, 205, 202, 0.55)),
    var(--marble-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.masters.section {
  padding: clamp(56px, 7vw, 100px) 0;
}
.header__logo-brand {
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: #cba876;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}
.masters-arrow {
  position: absolute; top: 40%; right: -30px; transform: translateY(-50%);
  width: 70px; height: 70px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  background: #a48154; color: #fff; font-size: 1.4rem; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease), background 0.4s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.masters-arrow:hover { background: #8e6d44; transform: translateY(-50%) scale(1.05); }
.masters-arrow:active { transform: translateY(-50%) scale(0.96); }
.masters-arrow span { position: relative; display: block; }

/* --- АВТОРСКИЙ ПОЧЕРК (бюро + архитектор) --- */
/* п. 10: заголовок идёт отдельной строкой во всю ширину и ложится ровно в две строки */
.authors__head { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3vw, 34px); margin-bottom: clamp(40px, 6vw, 74px); text-align: center; }
.authors__title { font-family: var(--serif); font-weight: 400; text-transform: uppercase; color: var(--navy); font-size: clamp(1.7rem, 3.8vw, 3.4rem); line-height: 1.14; letter-spacing: 0.05em; text-wrap: balance; }
.authors__lead { font-family: var(--body); font-weight: 300; text-transform: uppercase; color: var(--navy-deep); font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.6; letter-spacing: 0.06em; max-width: 60ch; margin: 0 auto; }
.authors__people { display: flex; justify-content: center; gap: clamp(48px, 10vw, 150px); margin: 0 auto clamp(40px, 6vw, 70px); }
.author { display: flex; flex-direction: column; align-items: center; text-align: center; }
.author__avatar { width: clamp(140px, 18vw, 210px); height: clamp(140px, 18vw, 210px); border-radius: 50%; overflow: hidden; background: #ece8e1; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(52, 48, 42,0.15); }
.author__avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.author__avatar--logo { background: #ffffff !important; color: #1b2128 !important; }
.author__avatar-ph { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-2); font-size: clamp(0.85rem, 1.4vw, 1.15rem); line-height: 1.35; }
.author__name { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy-deep); font-size: clamp(1rem, 1.5vw, 1.3rem); margin: 22px 0 8px; }
.author__role { font-family: var(--body); font-weight: 400; text-transform: uppercase; letter-spacing: 0.16em; color: #7a8694; font-size: 0.72rem; }
.authors__philosophy { max-width: 80ch; margin: 0 auto; text-align: center; font-family: var(--body); font-weight: 300; text-transform: uppercase; color: var(--navy-deep); letter-spacing: 0.08em; line-height: 1.7; font-size: clamp(0.92rem, 1.3vw, 1.12rem); }
@media (max-width: 700px) {
  .authors__head { grid-template-columns: 1fr; gap: 18px; }
  .authors__people { gap: 40px; }
}

/* ============================================================
   HOME PAGE — главы в стиле Хамовников
   ============================================================ */
/* Parallax: фото внутри крупнее контейнера — без белых щелей при скролле */
.parallax { position: relative; overflow: hidden; }
.parallax__img {
  position: absolute; top: -25%; left: 0; width: 100%; height: 150%;
  max-width: none !important;
  object-fit: cover; will-change: transform; transform: translate3d(0,0,0);
}

/* Секции главной — без зазоров между блоками */
main > section { margin: 0; }
.home-feature,
.home-banner,
.home-views,
.home-district,
.home-service,
.home-count,
.masters.section {
  margin-top: -1px;
}

/* --- ГОТОВЫЙ КЛУБНЫЙ ДОМ / МЕСТО СИЛЫ --- */
.home-ready { background: #fff; padding: clamp(56px, 8vw, 120px) 0 0; text-align: center; }
.home-ready__title {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  color: var(--navy); font-size: clamp(1.9rem, 5vw, 4.1rem);
  line-height: 1.14; letter-spacing: 0.14em; margin: 0 auto clamp(34px, 5vw, 60px);
}

/* --- Фото-баннер: полный исходный рендер тянется вертикально без пустой alpha-зоны --- */
.home-feature {
  position: relative;
  width: 100%;
  height: 220vh; /* reduced scroll depth */
  background: #fff;
}
.home-feature__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.home-feature__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.home-feature__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* 250vh forced the cutout to render roughly 2.5x larger than the viewport,
     magnifying the source render's grain. 180vh keeps the full sticky travel
     while showing substantially more native detail. */
  height: 180vh;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
/* Белый, в одну строку, поверх фото (макет, стр. 8) */
.home-feature__title {
  position: absolute;
  right: clamp(20px, 6vw, 110px);
  bottom: clamp(28px, 6vw, 96px);
  z-index: 3;
  color: #fff;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  will-change: opacity, transform;
}
@media (max-width: 700px) {
  .home-feature__title { white-space: normal; font-size: clamp(1.7rem, 4.4vw, 3.8rem); }
}
@media (max-width: 700px) {
  .home-feature__title {
    right: 50%;
    transform: translateX(50%);
    bottom: 6vw;
    text-align: center;
  }
  /* Sticky-протяжка на 220vh — эффект для мыши. На телефоне это два экрана
     пролистывания почти пустого белого поля, а cover резал здание.
     Отключаем залипание и показываем кадр целиком одним экраном. */
  .home-feature { height: auto; }
  .home-feature__sticky { position: static; height: auto; }
  .home-feature__media { position: relative; inset: auto; height: auto; }
  .home-feature__img {
    position: relative;
    height: auto;
    width: 100%;
    object-fit: contain;
  }
  /* эффект появления отключён вместе со sticky (см. main.js) — показываем сразу.
     Кадр светлый, поэтому белую подпись переносим под фото и красим в синий. */
  .home-feature__title {
    opacity: 1;
    position: static;
    transform: none;
    color: var(--navy);
    text-shadow: none;
    display: block;
    margin: 18px auto 0;
    padding: 0 20px;
    right: auto;
    bottom: auto;
    text-align: center;
  }
  .home-feature__sticky { overflow: visible; }
}

/* --- ПРЕСТИЖ РАСПОЛОЖЕНИЯ (заголовок поверх тёмного фото) --- */
.home-banner { position: relative; height: clamp(440px, 86vh, 880px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.home-banner .parallax__img { filter: brightness(0.62); }
.home-banner__title {
  position: relative; z-index: 2; text-align: center; color: #fff;
  font-family: var(--sans); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: 1.04; letter-spacing: 0.08em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

/* --- ТИХИЙ ПРЕСТИЖНЫЙ РАЙОН (тёмно-зелёная панель) --- */
.home-district { background: #2a3327; color: #fff; padding: clamp(60px, 8vw, 120px) 0; }
.home-district__grid {
  display: grid;
  /* minmax(0, …) не даёт правой колонке (aspect-ratio-картинка) раздувать свой
     трек сверх доли 1.15fr — без этого текст слева сжимался до ~230px и не
     помещался до конца секции */
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: stretch;
}

.home-district__left {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 40px);
}

/* Small landscape image (yacht marina) — horizontal crop.
   круг 3: фото опущено под текст (было над заголовком) и прижато к низу колонки,
   чтобы его нижняя кромка совпадала с большим фото справа. */
.home-district__thumb-small {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d130a;
  margin-top: auto;
}

.home-district__title {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 1.85vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: 0.015em;
  margin-bottom: 28px;
  color: #fff;
  text-wrap: balance;
}
/* п. 8 + круг 2: текст был мелкий и нечитаемый — ещё крупнее, плотнее по весу
   и на полном контрасте (100% белый), чтобы читался с экрана без напряжения */
.home-district__text {
  font-family: var(--body);
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  line-height: 1.75;
  color: #fff;
  font-weight: 400;
  max-width: 54ch;
  text-wrap: pretty;
}

/* Right column: large image at natural proportions.
   круг 2: убран лишний верхний отступ (создавал пустую тёмную полосу под фото —
   заказчик читал её как «белый прямоугольник снизу»); фото тянется на всю высоту колонки. */
.home-district__right {
  display: flex;
  align-items: stretch;
  margin-top: clamp(20px, 3vw, 44px);
}
@media (max-width: 860px) {
  .home-district__right {
    margin-top: 0;
  }
}
.home-district__thumb-large {
  position: relative;
  width: 100%;
  min-height: 100%;
  aspect-ratio: 1800 / 1616;
  overflow: hidden;
  background: #0d130a;
}
.home-district__thumb-small img.parallax__img,
.home-district__thumb-large img.parallax__img {
  position: absolute !important;
  top: -10% !important;
  left: 0 !important;
  width: 100% !important;
  height: 120% !important;
  max-width: none !important;
  object-fit: cover !important;
}


/* --- ИЗ КВАРТИР ВИДЫ (полное изображение без искажений) --- */
.home-views {
  position: relative;
  height: clamp(480px, 85vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d130a;
}
.home-views__slider { position: absolute; inset: 0; z-index: 1; }
/* Кадр, который двигает параллакс. Запас по высоте 130% со сдвигом -15%
   даёт ход вверх-вниз без открытых краёв. */
.home-views__frame {
  position: absolute !important;
  top: -15% !important;
  left: 0 !important;
  width: 100% !important;
  height: 130% !important;
  max-width: none !important;
}
.home-views__frame .fade-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Точки вне съезжающего кадра — позиционируются от секции (базовый .fade-dots). */
.home-views__dots { bottom: clamp(22px, 3.5vh, 40px); }
.home-views__text {
  position: absolute;
  z-index: 2;
  color: #fff;
  max-width: 580px;
  /* нижняя граница clamp поднята: при невысоком вьюпорте первая строка уезжала под липкую шапку */
  top: clamp(110px, 14vh, 170px);
  right: clamp(20px, 6vw, 110px);
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 2.1rem);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: right;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

/* --- Сервисы: мраморный фон (оба блока одного цвета) --- */
.home-service { padding: clamp(56px, 7vw, 100px) 0; }
.home-service--marble + .home-service--marble { padding-top: clamp(24px, 3vw, 40px); }
/* круг 2, п. 4: фото крупнее — колонка с рендером расширена (было 1.25/0.75). */
.home-service__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.home-service__grid > * { min-width: 0; }
.home-service__grid--rev { grid-template-columns: 1fr 1.5fr; }
.home-service__grid--rev .home-service__media { order: 2; }
.home-service__media { height: auto; }
/* п. 11-12: рендеры показываем целиком, без обрезки по высоте */
.home-service--lobby .home-service__media,
.home-service--tech .home-service__media {
  aspect-ratio: auto; position: relative; overflow: hidden; background: #0d130a;
}
.home-service--lobby .home-service__media .parallax__img,
.home-service--tech .home-service__media .parallax__img {
  position: static; top: auto; height: auto; width: 100%; object-fit: contain; transform: none !important;
}
.home-service__media .parallax__img { object-position: center; }
.home-service__eyebrow {
  font-size: clamp(0.9rem, 1.4vw, 1.15rem); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 400; line-height: 1.5; margin-bottom: 22px; max-width: 46ch;
}
/* п. 11: выравнивание всей колонки по центру */
.home-service--lobby .home-service__grid > .reveal,
.home-service--tech .home-service__grid > .reveal { text-align: center; }
.home-service--lobby .home-service__eyebrow,
.home-service--tech .home-service__eyebrow { margin-left: auto; margin-right: auto; }
.home-service--lobby .acc__head,
.home-service--tech .acc__head { justify-content: center; text-align: center; }
.home-service--tech .acc__body p,
.home-service--lobby .acc__body p { text-align: center; }
.home-service__title {
  font-family: var(--sans); font-weight: 400; text-transform: uppercase; color: var(--navy);
  font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: 0.06em; margin-bottom: 40px;
  /* flex ломал переносы внутри заголовка — текст вылезал за контейнер */
  display: block;
  text-align: center;
  text-wrap: balance;
}
.home-service__chapter-num {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--gold);
  margin-right: 18px;
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  line-height: 0.8;
}
.home-list { border-top: 1px solid rgba(52, 48, 42,0.18); }
.home-list__row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 4px; border-bottom: 1px solid rgba(52, 48, 42,0.18); }
.home-list__name { flex: 0 0 auto; font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(0.95rem, 1.3vw, 1.15rem); color: var(--navy-deep); }
.home-list__note { flex: 0 1 auto; min-width: 0; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); text-align: right; }

/* --- Аккордеон в блоках сервиса (выпадающие списки) --- */
.home-acc { margin-top: 6px; }
/* круг 2, п. 4: заголовки выпадающего списка были тёмно-коричневые (почти чёрные) —
   переведены на фирменный синий, как заголовки секций (заказчик: «синие или золотые»). */
.home-acc .acc__head { font-family: var(--body); font-weight: 500; letter-spacing: 0.08em; color: var(--navy); font-size: clamp(1.05rem, 1.3vw, 1.25rem); }
.home-acc .acc__head .chev { font-size: 0.62rem; }
/* синий держится и при наведении, и в раскрытом состоянии (иначе уходил в тёмный) */
.home-acc .acc__head:hover,
.home-acc .acc__item.is-open .acc__head { color: var(--navy); }
.home-acc .acc__body p { font-family: var(--body); font-weight: 300; padding: 0 4px 22px; text-transform: none; letter-spacing: 0.01em; color: #6b727a; }

/* --- 36 — приватность (компактная полоса) --- */
.home-count {
  text-align: center;
  padding: clamp(80px, 10vw, 160px) 0;
}
.home-count__num {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--gold);
  font-size: clamp(6rem, 15vw, 14rem);
  line-height: 0.8;
  letter-spacing: 0.04em;
}
.home-count__subtitle {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.5vw, 2.1rem);
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-top: 12px;
  margin-bottom: 28px;
}
.home-count__text {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy-deep);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  line-height: 1.8;
  margin: 0 auto;
  max-width: 48ch;
}
.home-count__crest {
  color: var(--gold);
  margin-top: 44px;
  display: inline-flex;
}

@media (max-width: 860px) {
  .home-district__grid, .home-service__grid, .home-service__grid--rev { grid-template-columns: 1fr; }
  .home-service__grid--rev .home-service__media { order: 0; }
  .home-district__thumb { aspect-ratio: 4/3; }
  /* .home-list живёт только на /contacts (адрес, часы работы) — раньше значение
     скрывалось на мобиле совсем; вместо этого переносим строку на новую линию */
  .home-list__row { flex-wrap: wrap; }
  .home-list__note { flex-basis: 100%; text-align: left; margin-top: 4px; }
  .marble-bg,
  .home-service--marble,
  .masters.section,
  .home-count { background-attachment: scroll; }
}

/* ============================================================
   YANDEX MAP + POI PANEL
   ============================================================ */
.geo { position: relative; min-height: 660px; height: 72vh; max-height: 760px; overflow: hidden; }
.geo__map { position: absolute; inset: 0; background: linear-gradient(135deg, #e7e2d8, #d6cfc2); }
.geo__map > ymaps { width: 100% !important; height: 100% !important; }
/* ч/б карта как на референсе — только тайлы, панель и маркеры остаются цветными */
.geo--bw .geo__map [class*="ground-pane"] {
  filter: grayscale(1) saturate(0.08) contrast(1.14) brightness(1.06);
}
.geo__hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20,24,27,0.45); color: #fff; font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  letter-spacing: 0.02em; text-align: center; padding: 0 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); z-index: 2;
}
.geo__hint.is-on { opacity: 1; }

/* п. 16: подписи меток прямо на карте — какая точка чем является.
   Иконка узкая, поэтому подписи разрешено выходить за её границы. */
.geo__map [class*="placemark-overlay"],
.geo__map [class*="image-with-content"] { overflow: visible !important; }
.geo__pin-label {
  position: absolute;
  left: 15px;
  transform: translateX(-50%);
  top: 42px;
  white-space: nowrap;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy-deep);
  background: rgba(255,255,255,0.94);
  padding: 3px 9px;
  box-shadow: 0 2px 10px rgba(20,24,27,0.18);
  pointer-events: none;
}
.geo__pin-label--home {
  left: 19px;
  /* подпись дома над меткой, чтобы не спорить с соседними точками */
  top: -22px;
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 2px 12px rgba(20,24,27,0.24);
}
.geo__map-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 30px; color: var(--graphite); font-size: 0.85rem; letter-spacing: 0.04em;
}
.geo__map-fallback b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.geo__panel { position: absolute; top: 30px; right: 30px; width: 400px; max-height: calc(100% - 60px); background: #fff; padding: 0; display: flex; flex-direction: column; box-shadow: 0 28px 70px rgba(20,24,27,0.22); overflow: hidden; z-index: 3; }
.geo__tabs { display: flex; }
.geo__tab { flex: 1; padding: 22px 16px; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--grey); border-bottom: 2px solid var(--grey-light); transition: color 0.3s, border-color 0.3s; }
.geo__tab.is-active { color: var(--gold-2); border-bottom-color: var(--gold); }
.geo__cats { overflow-y: auto; flex: 1; }
.geo__cat { border-bottom: 1px solid var(--grey-light); }
.geo__cat-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--graphite); transition: color 0.3s; text-align: left; }
.geo__cat-head:hover { color: var(--gold-2); }
.geo__cat-head .chev { transition: transform 0.35s var(--ease); color: var(--gold-2); }
.geo__cat.is-open .geo__cat-head .chev { transform: rotate(180deg); }
.geo__cat-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.geo__cat.is-open .geo__cat-body { max-height: 400px; }
.geo__cat-body ul { padding: 0 26px 18px; }
.geo__cat-body li { position: relative; padding: 7px 0 7px 22px; font-size: 0.9rem; color: var(--grey); cursor: pointer; transition: color 0.2s; }
.geo__cat-body li::before { content: ""; position: absolute; left: 0; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.geo__cat-body li:hover { color: var(--graphite); }
.geo__cats[hidden], .geo__routes[hidden] { display: none; }
.geo__routes { overflow-y: auto; flex: 1; }
.geo__route { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 17px 26px; border-bottom: 1px solid var(--grey-light); text-align: left; transition: background 0.25s, color 0.25s; }
.geo__route:hover { background: var(--cream, #f6f2ea); }
.geo__route.is-active { background: var(--cream, #f6f2ea); }
.geo__route-name { position: relative; padding-left: 22px; font-size: 0.95rem; color: var(--graphite); }
.geo__route-name::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.geo__route.is-active .geo__route-name { color: var(--gold-2); }
.geo__route-time { flex: none; font-size: 0.8rem; letter-spacing: 0.03em; color: var(--grey); white-space: nowrap; }
.geo__address { padding: 22px 26px; border-top: 1px solid var(--grey-light); }
.geo__address .lbl { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.geo__address .val { font-size: 0.95rem; color: var(--graphite); }

@media (max-width: 900px) {
  .geo { position: static; height: auto; max-height: none; min-height: 0; overflow: visible; }
  .geo__map { position: relative; inset: auto; height: 420px; }
  .geo__panel { position: static; width: auto; max-height: none; box-shadow: none; }
  .geo__cats, .geo__routes { max-height: 360px; }
  .masters-track .master { flex-basis: 84%; }
  .masters-arrow { width: 56px; height: 56px; right: 6px; top: 34%; font-size: 1.2rem; }
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- MEDIA PLACEHOLDER ---------- */
.media-placeholder { position: relative; overflow: hidden; background: linear-gradient(135deg, #2a2e33, #3a3f45); }
.section--cream .media-placeholder, .section:not(.section--dark) .media-placeholder { background: linear-gradient(135deg, #e7e2d8, #d6cfc2); }
.media-placeholder::after {
  content: attr(data-media);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); text-align: center; padding: 20px;
  pointer-events: none; z-index: 0;
}
.section:not(.section--dark) .media-placeholder::after { color: rgba(60,50,40,0.5); }
.media-placeholder img, .media-placeholder video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.media-placeholder img:not([src]), .media-placeholder img[src=""] { opacity: 0; }
/* placeholder без img — растягивается в parallax-контейнерах */
.media-placeholder.parallax__img { position: absolute; top: -25%; left: 0; width: 100%; height: 150%; }
.parallax > .media-placeholder.parallax__img:only-child { position: absolute; inset: 0; top: -25%; height: 150%; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; padding: 0;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  /* короче, чем раньше (1.2s): при автопрокрутке два подписанных текстом слайда
     успевали наложиться друг на друга и стать нечитаемыми */
  transition: opacity 0.7s ease;
  /* п. 2 (круг 2): графитовая подложка под каждым слайдом. Без неё в фазе
     двойной прозрачности при кроссфейде просвечивал светлый фон секции —
     заказчик видел «белый квадрат» при листании. Теперь между кадрами только графит. */
  background-color: var(--graphite);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
/* п. 1: фото идут без затемнения — подложка под текст вшита в сами рендеры */
.hero__overlay { display: none; }

.hero__slide-caption {
  position: absolute;
  top: clamp(140px, 18vh, 200px);
  right: clamp(24px, 4vw, 64px);
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: clamp(6px, 1vw, 12px);
  text-align: right;
  /* п. 2 (круг 2): раньше подпись не имела ширины и тянулась влево до края
     вьюпорта — на слайдах «7–12% ГОДОВЫХ…» и «ХАММАМ…» текст вылезал за рамку.
     Ограничиваем ширину блока — строки переносятся внутри, ровно по правому краю. */
  max-width: min(52vw, 640px);
}
/* «33 РЕЗИДЕНЦИИ …» — цифра и текст в одну строку, по базовой линии (реф, п. 1) */
.hero__slide-caption--inline {
  flex-direction: row;
  align-items: baseline;
  gap: clamp(10px, 1.5vw, 22px);
  text-align: left;
}
.hero__slide-caption--stack {
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(6px, 1vw, 14px);
}
/* Первая строка-акцент («ГОТОВЫЙ», «ЗДОРОВЬЕ КАК СРЕДА») крупнее остального блока */
.hero__slide-text--lead { font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: 0.09em; }
/* круг 2: sub-текст чуть мельче и плотнее по строке — длинная подпись «ХАММАМ…»
   ложится ровным блоком без рваной лесенки и с запасом до правого края. */
.hero__slide-text--sub { font-size: clamp(1.15rem, 2vw, 1.7rem); line-height: 1.3; }

@media (max-width: 700px) {
  /* Подписи прижимались к самому краю, а «33» вылезало за левую границу.
     На узком экране ставим текст по центру с полями и уменьшаем кегль. */
  .hero__slide-caption {
    top: 86px;
    left: 20px;
    right: 20px;
    align-items: center;
    text-align: center;
  }
  .hero__slide-caption--inline,
  .hero__slide-caption--stack {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .hero__slide-number { font-size: clamp(3.4rem, 17vw, 5rem); }
  .hero__slide-text { font-size: clamp(1.1rem, 5vw, 1.6rem); letter-spacing: 0.05em; }
  .hero__slide-text--lead { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .hero__slide-text--sub { font-size: clamp(0.95rem, 4vw, 1.25rem); }
  /* фон кадрируем ближе к зданию, иначе на вертикальном экране видно только небо */
  .hero__slide { background-position: 62% center; }
  /* Слайд 1: contain сохранял весь горизонтальный рендер, но на высоком
     мобильном первом экране превращал большую часть кадра в графитовые поля.
     Cover сохраняет цельный первый экран, а смещение оставляет дом в центре
     вертикального кропа. */
  .hero__slide[data-bg^="/assets/img/п3.webp"] {
    background-size: cover;
    background-position: 58% center;
  }
  .hero__slider-nav { width: 190px; top: 62px !important; }
  /* подпись тонула в светлой части фото — добавляем читаемость */
  .hero__scroll {
    font-size: 0.72rem;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0,0,0,0.55);
    padding: 10px 14px;
  }
  .hero__scroll span { height: 28px; }
}
/* п. 1-5: Tenor Sans в один вес, крупнее, без обводок и «жирности» */
.hero__slide-number {
  font-family: var(--serif);
  font-size: clamp(5rem, 11.5vw, 10.5rem);
  font-weight: 400;
  line-height: 0.85;
  margin-bottom: 0;
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  -webkit-text-fill-color: #ffffff !important;
}
.hero__slide-text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.3vw, 2.9rem);
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.24;
  color: #ffffff !important;
  opacity: 1 !important;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  -webkit-text-fill-color: #ffffff !important;
}
.hero__stats {
  position: relative; z-index: 2; margin-top: auto; padding-top: clamp(40px, 7vw, 80px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.stat__num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--gold); line-height: 1; }
.stat__label { display: block; margin-top: 12px; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 0.66rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.7); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll span { width: 1px; height: 40px; background: var(--gold); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- HERO SLIDER NAV ---------- */
.hero__slider-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 250px;
  margin: 0 auto 40px auto;
}
.hero__slider-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 7px;
  right: 7px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  transform: translateY(-50%);
  z-index: 0;
}
.slider-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  cursor: pointer;
  z-index: 1;
}
.slider-dot-inner {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.4s ease, border-radius 0.4s ease;
}
.slider-dot.is-active .slider-dot-inner {
  transform: rotate(45deg) scale(1.4);
  border-radius: 0;
}
.slider-dot.is-active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: dotRipple 3.5s linear infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes dotRipple {
  0% { width: 6px; height: 6px; opacity: 0.8; }
  80% { opacity: 0.3; }
  100% { width: 44px; height: 44px; opacity: 0; }
}

/* ---------- INTRO ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.intro__media { aspect-ratio: 4/5; border-radius: 2px; }
.ticks { margin-top: 2rem; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; color: var(--graphite); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 1px; background: var(--gold); }

/* ---------- LOCATION ---------- */
.location__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-bottom: 50px; }
.location__media { aspect-ratio: 16/10; }
.location__map { aspect-ratio: 16/10; }
.location__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 40px; }
.point { display: flex; flex-direction: column; gap: 6px; }
.point__val { font-family: var(--serif); font-size: 2rem; color: var(--gold); }
.point span:last-child { font-size: 0.82rem; color: #9aa0a6; letter-spacing: 0.04em; }

/* ---------- MASTERS ---------- */
.masters__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
/* `.master__media` is already defined above in the masters-slider section */
.master__role { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); }
.master__name { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 8px 0 4px; }
.master__desc { color: var(--grey); font-size: 0.9rem; }

/* ---------- MEDIA BREAK ---------- */
.media-break { position: relative; height: clamp(420px, 70vh, 760px); display: flex; align-items: flex-end; color: #fff; }
.media-break__media { position: absolute; inset: 0; }
.media-break__media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 40%, rgba(20,24,27,0.85)); }
.media-break__caption { position: relative; z-index: 3; padding: clamp(30px, 6vw, 70px); max-width: 700px; }
.media-break__text { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.2; margin-top: 12px; }

/* ---------- HARMONY CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(0,0,0,0.08); }
.card { background: var(--cream); padding: clamp(28px, 3vw, 48px); transition: background 0.4s var(--ease), transform 0.4s var(--ease); }
.card:hover { background: #fff; transform: translateY(-4px); }
.card__no { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 16px 0 12px; }
.card p { color: var(--grey); font-size: 0.95rem; }

/* ---------- CARE ---------- */
.care__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.care__item { text-align: center; padding: 30px 16px; border: 1px solid rgba(255,255,255,0.1); transition: border-color 0.4s, transform 0.4s var(--ease); }
.care__item:hover { border-color: var(--gold); transform: translateY(-4px); }
.care__icon { font-size: 2.4rem; color: var(--gold); display: block; margin-bottom: 16px; }
.care__item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 10px; }
.care__item p { color: #9aa0a6; font-size: 0.88rem; }

/* ---------- PRIVACY ---------- */
.privacy { background: var(--graphite-2); color: #fff; text-align: center; }
.privacy__inner { display: flex; flex-direction: column; align-items: center; }
.privacy__num { font-family: var(--serif); font-size: clamp(6rem, 18vw, 16rem); line-height: 0.9; color: var(--gold); }
.privacy__text { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 2rem); max-width: 22ch; margin-top: 20px; }

/* ---------- RESIDENCES ---------- */
.residences__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.residence { background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.06); }
.residence__media { aspect-ratio: 16/11; }
.residence__body { padding: clamp(24px, 3vw, 40px); }
.residence__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin-bottom: 20px; }
.residence__params { display: grid; gap: 12px; margin-bottom: 26px; }
.residence__params li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--grey-light); padding-bottom: 10px; font-size: 0.92rem; }
.residence__params span { color: var(--grey); }
.residence__params b { font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item { aspect-ratio: 1; }

/* ---------- CONTACTS / FORM ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.contacts__lines { margin-top: 30px; display: grid; gap: 12px; }
.contacts__lines a, .contacts__lines span { color: #cfd3d6; letter-spacing: 0.04em; }
.contacts__lines a:hover { color: var(--gold); }
.form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); padding: clamp(28px, 4vw, 48px); }
.form__row { margin-bottom: 18px; }
.form input[type="text"], .form input[type="tel"], .form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 14px 2px; font-family: inherit; font-size: 0.95rem; transition: border-color 0.3s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,0.45); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 0.78rem; color: #9aa0a6; margin: 8px 0 24px; }
.form__agree input { margin-top: 3px; accent-color: var(--gold); }
.form__status { margin-top: 16px; font-size: 0.85rem; color: var(--gold); min-height: 1.2em; }

/* ---------- FOOTER (mockup: taupe / 3-col) ---------- */
.footer {
  position: relative;
  background: #5a4b42;
  color: rgba(255,255,255,0.88);
  padding: clamp(80px, 10vw, 130px) 0 clamp(44px, 5vw, 64px);
}
.footer__inner { position: relative; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding-top: 8px;
}
.footer__nav a {
  font-family: var(--body);
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  transition: color 0.3s;
  line-height: 1.45;
}
.footer__nav a:hover { color: var(--gold); }

.footer__center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: min(100%, 520px);
  justify-self: center;
}
.footer__crest {
  width: clamp(96px, 11vw, 128px);
  color: var(--gold);
  margin-bottom: 16px;
}
.footer__crest svg { width: 100%; height: auto; display: block; }
.footer__brandname {
  font-family: var(--serif);
  letter-spacing: 0.28em;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--gold);
  margin: 0 0 6px;
}
.footer__tagline {
  font-family: var(--body);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 32px;
  text-transform: lowercase;
}
.footer__phone {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.3s;
}
.footer__phone:hover { color: var(--gold); }
.footer__callback {
  margin-top: 28px;
  padding: 15px 42px;
  border: 1px solid rgba(255,255,255,0.9);
  background: transparent;
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.footer__callback:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  gap: clamp(48px, 6vw, 72px);
  text-align: right;
  padding-top: 4px;
}
.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s;
}
.footer__top-arrow {
  font-size: 1.15rem;
  line-height: 1;
  color: #fff;
}
.footer__top:hover,
.footer__top:hover .footer__top-arrow { color: var(--gold); }

.footer__office {
  text-align: right;
  max-width: 34ch;
}
.footer__office-label {
  font-family: var(--body);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255,255,255,0.92);
  margin: 0 0 12px;
}
.footer__office-addr {
  font-family: var(--body);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  margin: 0;
}

.footer__bottom {
  margin-top: clamp(64px, 9vw, 110px);
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer__legal {
  font-family: var(--body);
  font-size: clamp(0.7rem, 0.95vw, 0.78rem);
  font-weight: 300;
  max-width: 96ch;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin: 0;
}
.footer__copy {
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* ---------- MODAL (callback / заявка) ---------- */
.modal { position: fixed; inset: 0; z-index: 2200; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12,14,16,0.82); backdrop-filter: blur(6px); }
.modal__dialog {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: var(--graphite); color: #fff; padding: clamp(34px, 5vw, 56px) clamp(28px, 4vw, 48px);
  border: 1px solid rgba(175,140,94,0.4); text-align: center;
  transform: translateY(30px) scale(0.98); transition: transform 0.5s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 18px; right: 22px; font-size: 1.6rem; line-height: 1; color: rgba(255,255,255,0.6); transition: color 0.3s; }
.modal__close:hover { color: var(--gold); }
.modal__crest { width: 64px; color: var(--gold); margin: 0 auto 18px; }
.modal__crest svg { width: 100%; height: auto; display: block; }
.modal__eyebrow { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
.modal__title { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; margin-bottom: 8px; }
.modal__sub { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 28px; }
.form--modal { background: none; border: none; padding: 0; text-align: left; }

/* ---------- CHAPTER INDICATOR ---------- */
.chapter-indicator {
  position: fixed; left: 24px; bottom: 24px; z-index: 900;
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); writing-mode: vertical-rl; transform: rotate(180deg);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.chapter-indicator.is-visible { opacity: 0.85; }
.chapter-indicator.is-hidden-by-next { opacity: 0 !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .header__select, .header__phone { display: none; }
  .header__side { gap: 14px; }
  .header__callback { font-size: 0.7rem; }
  .overlay-menu__bar .header__phone { display: inline; }
  .overlay-menu__inner { flex-direction: column; align-items: flex-start; justify-content: center; }
  .overlay-menu__aside { align-self: flex-start; }

  /* Панель оверлея повторяет шапку: телефон рядом с «обратным звонком» не влезал
     в 390px и уезжал за правый край — на узких экранах оставляем только звонок. */
  .overlay-menu__bar .header__phone { display: none; }
  .overlay-menu__bar { padding-left: 20px; padding-right: 20px; }

  /* Зоны нажатия: бургер был 40×10, крестик меню 26×26 — меньше пальца.
     Габарит добираем прозрачным полем, видимые штрихи не меняются. */
  .header { padding: 12px 20px; }
  .header.is-scrolled { padding: 8px 20px; }
  .burger {
    width: 44px !important;
    height: 44px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .burger span { left: 7px !important; width: 30px !important; }
  .burger span:nth-child(1) { top: 18px !important; bottom: auto !important; }
  .burger span:nth-child(2) { top: 26px !important; bottom: auto !important; }
  .overlay-menu__close { width: 44px; height: 44px; }
  .overlay-menu__close span { top: 21px; left: 9px; width: 26px; }
  /* высоту добираем вертикальным паддингом: боковой выталкивал кнопку за край */
  .header__callback { padding: 13px 0; }
  /* логотип-ссылка была 37px по высоте */
  .header__logo { min-height: 44px; }

  /* Сетка 1fr auto 1fr: широкий логотип в центре распирал боковые колонки,
     и правая вместе с кнопкой звонка уезжала за экран. Разрешаем колонкам
     сжиматься и упираем правую в край. */
  .header { grid-template-columns: auto 1fr auto; gap: 10px; }
  .header__side { min-width: 0; }
  .header__side--right { justify-content: flex-end; }
  .header__logo { justify-self: center; min-width: 0; }
  .header__logo-text { font-size: 0.66rem; letter-spacing: 0.2em; }
}
@media (max-width: 980px) {
  .intro__grid, .contacts__grid, .location__grid, .residences__grid { grid-template-columns: 1fr; }
  .masters__grid, .cards { grid-template-columns: 1fr 1fr; }
  .care__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .location__points { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .masters__grid, .cards, .care__grid, .hero__stats, .gallery { grid-template-columns: 1fr; }
  .card { text-align: left; }
  .chapter-indicator { display: none; }
}

/* ============================================================
   МОБИЛЬНАЯ ЧИТАЕМОСТЬ И ЗОНЫ НАЖАТИЯ (≤700px)
   Служебные подписи стояли по 10-12px и на телефоне не читались;
   ссылки и кнопки были ниже 44px — пальцем в них попасть трудно.
   ============================================================ */
@media (max-width: 700px) {
  .eyebrow,
  .modal__eyebrow,
  .chapter-next__eyebrow,
  .author__role,
  .footer__tagline,
  .media-credit,
  .flats-quote__role,
  .slide-author__quote-role,
  .infra-parkstats__label,
  .flats-stats-row__lbl,
  .flats-pano__badge-label,
  .location-card__dist,
  .geo__route-time,
  .geo__address .lbl {
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }
  .btn {
    font-size: 0.86rem;
    padding: 16px 30px;
    letter-spacing: 0.12em;
  }
  /* пункты меню и ссылки футера — полноценная строка под палец */
  .overlay-menu__secondary a,
  .footer__nav a,
  .footer__col a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .modal__close { width: 44px; height: 44px; }
  /* галочка согласия в форме была 12.5px */
  .modal label span,
  .form__check span { font-size: 0.86rem; line-height: 1.5; }
  /* телефон в футере — основная точка контакта, был 29px высотой */
  .footer__phone {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .footer__legal { font-size: 0.82rem; line-height: 1.55; }
  .chev { font-size: 0.8rem; }

  /* Заголовки с крупным трекингом на узком экране выходили за контейнер
     (отбивка после последней буквы + длинные слова без переносов). */
  .location-banner__title,
  .infra-mgmt__title,
  .infra-mgmt__lead,
  .arch-statement__title,
  .flats-comfort__title {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .location-banner__title { letter-spacing: 0.08em; }
  .infra-mgmt__title { letter-spacing: 0.01em; }
  /* full-bleed кадр вылезал на пару пикселей из-за компенсирующих отрицательных полей */
  .arch-expand,
  .arch-expand__frame { overflow: hidden; max-width: 100%; }
  .arch-expand__media img { max-width: 100%; }
  /* адрес-ссылка на локации была 30px по высоте */
  .location-intro__address { min-height: 44px; }
  /* обёртка .reveal наследует ширину заголовка — ограничиваем и её */
  .infra-mgmt .arch-acc__grid > .reveal { max-width: 100%; min-width: 0; }
}

/* show rotate notice only on small landscape phones */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .rotate-notice { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   MULTI-PAGE COMPONENTS
   ============================================================ */

/* ---------- PAGE TRANSITION ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 1900;
  background: var(--graphite);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-100%); pointer-events: none;
}
.page-transition.is-active { transform: translateY(0); transition: transform 0.5s var(--ease); pointer-events: all; }
.page-transition.is-leaving { transform: translateY(100%); transition: transform 0.5s var(--ease); }
.page-transition__mark { font-family: var(--serif); color: var(--gold); font-size: 2.4rem; letter-spacing: 0.3em; opacity: 0; transition: opacity 0.3s; }
.page-transition.is-active .page-transition__mark { opacity: 1; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: flex-end;
  color: #fff; padding: 140px 0 70px; overflow: hidden;
}
.page-hero--short { min-height: 58vh; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media::after { color: rgba(255,255,255,0.3); }
.page-hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,24,27,0.55), rgba(20,24,27,0.4) 45%, rgba(20,24,27,0.9)); }
.page-hero__content { position: relative; z-index: 2; }
.page-hero__crumb { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 22px; }
.page-hero__crumb a { color: var(--gold); }
.page-hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.04; }
.page-hero__sub { margin-top: 20px; font-size: clamp(1rem, 1.5vw, 1.25rem); color: rgba(255,255,255,0.82); }

/* ---------- CTA ---------- */
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }

/* ---------- LIGHT POINTS ---------- */
.location__points--light { border-top-color: rgba(0,0,0,0.1); }
.location__points--light .point span:last-child { color: var(--grey); }

/* ---------- MAP ---------- */
.map-wrap { aspect-ratio: 21/9; margin-bottom: 40px; }
.map-section { height: clamp(360px, 50vh, 560px); }
.map-section__media { width: 100%; height: 100%; }

/* ---------- FLATS FILTER + GRID ---------- */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; padding-bottom: 36px; margin-bottom: 44px; border-bottom: 1px solid var(--grey-light); }
.filter__group { display: flex; align-items: center; gap: 14px; }
.filter__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.filter__chips { display: flex; gap: 8px; }
.chip { padding: 9px 18px; border: 1px solid var(--grey-light); font-size: 0.8rem; letter-spacing: 0.04em; transition: all 0.3s var(--ease); }
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.filter__count { margin-left: auto; font-size: 0.85rem; color: var(--grey); }
.filter__count span { color: var(--gold-2); font-weight: 600; }

.flats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.flat-card { background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,0.06); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.flat-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(0,0,0,0.12); }
.flat-card.is-hidden { display: none; }
.flat-card__media { aspect-ratio: 4/3; }
.flat-card__body { padding: 26px; }
.flat-card__tag { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); }
.flat-card__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 10px 0 18px; }
.flat-card__params { display: grid; gap: 8px; margin-bottom: 22px; }
.flat-card__params li { display: flex; justify-content: space-between; font-size: 0.88rem; border-bottom: 1px solid var(--grey-light); padding-bottom: 7px; }
.flat-card__params span { color: var(--grey); }

/* ---------- GALLERY TABS + MASONRY ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.tab { padding: 11px 24px; border: 1px solid var(--grey-light); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.3s var(--ease); }
.tab:hover { border-color: var(--gold); }
.tab.is-active { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.masonry { columns: 3; column-gap: 16px; }
.masonry__item { break-inside: avoid; margin-bottom: 16px; }
.masonry__item.is-hidden { display: none; }
.masonry__item .media-placeholder { width: 100%; min-height: 220px; position: relative; }
.masonry__item:nth-child(3n) .media-placeholder { aspect-ratio: 3/4; }
.masonry__item:nth-child(3n+1) .media-placeholder { aspect-ratio: 4/3; }
.masonry__item:nth-child(3n+2) .media-placeholder { aspect-ratio: 1; }
.play { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; background: rgba(0,0,0,0.25); }

/* ---------- TIMELINE (dynamics) ---------- */
.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 130px; top: 0; bottom: 0; width: 1px; background: var(--grey-light); }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 40px; position: relative; padding-bottom: 50px; }
.tl-item__date { text-align: right; }
.tl-item__date span { display: block; color: var(--gold-2); font-size: 0.8rem; letter-spacing: 0.1em; }
.tl-item__date b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.tl-item__media { grid-column: 2; aspect-ratio: 16/9; margin-bottom: 18px; position: relative; }
.tl-item__media::before { content: ""; position: absolute; left: -45px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); z-index: 4; }
.tl-item__text { grid-column: 2; }
.tl-item__text h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin-bottom: 8px; }
.tl-item__text p { color: var(--grey); }

/* ---------- NEWS ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.news-card { background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,0.05); transition: transform 0.4s var(--ease); }
.news-card:hover { transform: translateY(-5px); }
.news-card__media { aspect-ratio: 16/9; }
.news-card__body { padding: 30px; }
.news-card__date { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-2); }
.news-card__body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 12px 0 12px; }
.news-card__body p { color: var(--grey); margin-bottom: 18px; }
.news-card__more { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.news-card__more:hover { color: var(--gold); }

/* ---------- RESPONSIVE (multi-page) ---------- */
@media (max-width: 980px) {
  .flats-grid { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 2; }
  .news-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .tl-item__date { text-align: left; padding-left: 26px; }
  .tl-item__media, .tl-item__text { grid-column: 1; }
  .tl-item__media::before { left: -24px; }
  .filter { gap: 18px; }
  .filter__count { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .flats-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
}

/* ---------- FOOTER RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 44px;
    justify-items: center;
  }
  .footer__center {
    order: -1;
    width: 100%;
    max-width: 100%;
  }
  .footer__phone {
    font-size: clamp(1.35rem, 6.5vw, 1.9rem);
  }
  .footer__nav { align-items: center; }
  .footer__right {
    align-items: center;
    justify-self: center;
    gap: 28px;
  }
  .footer__office {
    text-align: center;
    max-width: none;
  }
}

/* ---------- PAGE HERO (flats / contacts) ---------- */
.location-hero {
  background: var(--white);
  padding: 160px 0 clamp(20px, 3vw, 40px);
}
.location-hero__container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.location-hero__left { flex: 1; min-width: 0; }
.location-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.05;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}
.location-hero__right {
  flex: 0 0 160px;
  display: none;
}
.location-hero__watermark { display: none; }

/* ---------- NEW LOCATION PAGE LAYOUT ---------- */
.location-hero-new {
  background: var(--white);
  padding: 160px 0 60px;
}
.location-hero-new__container {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 4vw, 50px);
}
.location-hero-new__num {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6.5vw, 6.2rem);
  color: var(--gold);
  border-bottom: 3.5px solid var(--gold);
  line-height: 0.95;
  font-weight: 400;
}
.location-hero-new__title {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1;
}

/* --- Aerial video (click-to-load YouTube embed) --- */
.location-aerial { background: var(--white); padding: clamp(50px, 7vw, 100px) 0; }
.location-aerial__title {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(1.7rem, 3.8vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: 0.1em;
  text-align: center;
  margin: 0 0 clamp(28px, 4vw, 52px);
}
.location-aerial__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #ebe8e3;
  cursor: pointer;
}
.location-aerial__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.location-aerial__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.location-aerial__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  border: none;
  border-radius: 50%;
  background: rgba(20, 24, 27, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.location-aerial__play svg { width: 38%; height: 38%; margin-left: 4%; }
.location-aerial__frame:hover .location-aerial__play { background: var(--navy); transform: scale(1.06); }
.location-aerial__frame.is-playing .location-aerial__poster,
.location-aerial__frame.is-playing .location-aerial__play { display: none; }

/* --- Banner overlays and text for Gonio fortress banner --- */
.location-banner {
  position: relative;
  height: clamp(400px, 60vh, 750px);
  overflow: hidden;
  width: 100%;
}
.location-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 2;
  pointer-events: none;
}
.location-banner__num {
  position: absolute;
  left: clamp(24px, 6vw, 100px);
  top: clamp(24px, 6vw, 80px);
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: #ffffff;
  border-bottom: 3px solid #ffffff;
  line-height: 0.95;
  z-index: 3;
}
.location-banner__title {
  position: absolute;
  left: 50%;
  bottom: clamp(30px, 6vw, 80px);
  transform: translateX(-50%);
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  font-size: clamp(4.8rem, 13vw, 12.4rem);
  letter-spacing: 0.16em;
  z-index: 3;
  line-height: 1;
  text-align: center;
}

/* --- Card large numbers and subtitle --- */
.location-card__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  margin-bottom: 18px;
  line-height: 1;
}
.location-card__dist {
  font-size: 0.82em;
  opacity: 0.8;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0.04em;
}




.location-panorama {
  position: relative;
  width: 100%;
  z-index: 1;
  /* высота от фото целиком: море внизу не режется, метка не съезжает */
  aspect-ratio: 2400 / 1705;
}
.location-panorama__img {
  display: block;
  width: 100%;
  height: auto;
}
.location-panorama__media {
  position: relative;
  width: 100%;
  height: 100%;
}
.location-panorama__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.location-panorama__watermark {
  position: absolute;
  top: 40px;
  left: clamp(20px, 5vw, 64px);
  width: 100px;
  height: auto;
  color: var(--white);
  opacity: 0.45;
  z-index: 2;
}
.location-panorama__watermark svg {
  width: 100%;
  height: auto;
}
.location-panorama__pin {
  /* left/top указывают ровно на точку: контейнер размером с саму точку,
     подпись позиционируется абсолютно и якорь не смещает */
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* Стрелка растёт вверх от точки привязки, подпись сидит над её хвостом.
   Остриё приходится ровно на left/top контейнера — туда, куда указываем. */
.location-panorama__pin-arrow {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform: translateX(-50%);
  width: clamp(16px, 1.6vw, 22px);
  height: clamp(46px, 4.6vw, 64px);
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
  animation: pin-nudge 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes pin-nudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
/* Метка стоит на 85% ширины кадра: подпись, центрированная по стрелке,
   упиралась в правый край и обрезалась на узких экранах — поэтому она
   выровнена по правому краю и уходит влево от стрелки. */
.location-panorama__pin-label {
  position: absolute;
  right: -6px;
  bottom: calc(50% + clamp(46px, 4.6vw, 64px) + 8px);
  font-family: var(--serif);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(28,78,137,0.85);
  padding: 6px 14px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
@media (prefers-reduced-motion: reduce) {
  .location-panorama__pin-arrow { animation: none; }
}

.location-intro {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: clamp(60px, 9vw, 130px) 0;
  margin-top: clamp(36px, 6vw, 72px);
}
.location-intro .container {
  max-width: 960px;
}
.location-intro__title {
  font-family: var(--serif);
  font-weight: 400;
  /* п. 15: заголовок растянут и переведён на фирменный синий */
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  line-height: 1.3;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 auto clamp(40px, 6vw, 80px);
  max-width: 52ch;
  text-align: center;
  text-wrap: balance;
}
.location-intro__columns {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: flex-start;
}
.location-intro__address {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--navy);
  font-weight: 500;
  padding-bottom: 6px;
  transition: opacity 0.3s;
}
.location-intro__address--gold {
  color: var(--gold);
  font-weight: 500;
}
.location-intro__address:hover {
  opacity: 0.8;
}
.location-intro__pin-icon {
  display: inline-flex;
  width: 1.15em;
  color: var(--gold);
}
.location-intro__pin-icon svg { width: 100%; height: auto; display: block; }
/* п. 15: описание крупнее и плотнее по весу — было мелким и бледным */
.location-intro__paragraph {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.68;
  color: var(--navy-deep);
  font-weight: 400;
  max-width: 56ch;
  text-wrap: pretty;
}

.location-banner {
  width: 100%;
  height: 100vh;
  position: relative;
}
.location-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 27, 0.2);
  z-index: 2;
  pointer-events: none;
}
.location-banner::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 16%;
  background: linear-gradient(to bottom, rgba(210, 205, 202, 0) 0%, rgba(210, 205, 202, 1) 100%);
  z-index: 3;
  pointer-events: none;
}
@media (max-width: 767px) {
  .location-banner {
    height: 330px;
  }
}

/* --- GONIO title on panorama → intro seam --- */
.location-gonio-wrap {
  position: relative;
  z-index: 5;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.location-gonio-title {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -72%);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.2rem, 11vw, 9.5rem);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 6px 60px rgba(20,24,27,0.55);
}

.location-outro-banner {
  background: var(--beige);
  padding: clamp(100px, 13vw, 180px) 0 clamp(60px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.location-outro-banner__container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 2;
}
.location-outro-banner__header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.location-outro-map {
  position: absolute;
  top: -5%;
  left: 0;
  mix-blend-mode: screen;
  width: 600px;
  height: 480px;
  pointer-events: none;
  z-index: 1;
}
.location-outro-banner__text {
  margin: 0 auto;
  width: 82%;
  max-width: 900px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.9vw, 1.55rem);
  line-height: 1.45;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* --- Location Slider (transform-based infinite) --- */
.location-slider-wrap {
  width: 100%;
  position: relative;
  z-index: 2;
  margin-top: clamp(20px, 4vw, 50px);
  overflow: hidden;
}
.location-slider {
  position: relative;
}
.location-track {
  display: flex;
  gap: 32px;
  will-change: transform;
}
.location-track.is-animated {
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.location-card {
  flex: 0 0 clamp(280px, 34vw, 480px);
}
.location-card__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #ebe8e3;
}
.location-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.location-card:hover .location-card__media img {
  transform: scale(1.05);
}
.location-card__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-deep);
  line-height: 1.4;
  margin-top: 16px;
  text-align: center;
}
.location-card__dist {
  font-weight: 400;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  letter-spacing: 0.08em;
  color: #3f3a33;
  margin-top: 4px;
  display: block;
}
.location-arrow {
  position: absolute;
  top: 36%;
  right: 24px;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  background: var(--gold);
  color: var(--white);
  font-size: 1.3rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease), background 0.4s, border-color 0.4s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.location-arrow:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  transform: translateY(-50%) scale(1.05);
}
.location-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

@media (max-width: 900px) {
  .location-card {
    flex-basis: 78%;
  }
  .location-arrow {
    right: 10px;
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
}

@media (max-width: 760px) {
  .location-hero__container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .location-hero__watermark {
    display: none;
  }
  .location-intro__columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .location-outro-banner__header {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }
  .location-outro-banner__text {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
  .location-outro-map {
    width: 286px;
    height: 240px;
  }
}

/* --- OUTRO BOTTOM TEXT --- */
.location-outro-banner__footer {
  text-align: center;
  margin-top: clamp(60px, 8vw, 110px);
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.location-outro-banner__footer-text {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: none;
  /* п. 18: текст крупнее и синим */
  color: var(--navy);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 24px;
}
.location-outro-banner__crest {
  margin-top: 24px;
  display: inline-flex;
  opacity: 0.35;
}
@media (max-width: 768px) {
  br.desktop-only {
    display: none;
  }
}

/* --- NEXT CHAPTER BLOCK --- */
.next-chapter {
  position: relative;
  width: 100%;
  height: clamp(520px, 72vh, 760px);
  overflow: hidden;
}
.next-chapter__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: var(--white);
}
.next-chapter__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 1.6s var(--ease);
}
.next-chapter__link:hover .next-chapter__bg {
  transform: scale(1.04);
}
.next-chapter__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 27, 0.45);
  z-index: 1;
}
.next-chapter__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px 24px;
}
.next-chapter__label {
  font-family: var(--serif);
  font-size: clamp(0.72rem, 1.1vw, 0.88rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.next-chapter__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0;
}
.next-chapter__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  margin-top: 32px;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
  cursor: pointer;
}
.next-chapter__link:hover .next-chapter__btn {
  background: var(--gold);
  transform: scale(1.08);
}
.next-chapter__btn-arrow {
  font-size: 1.3rem;
  color: var(--gold);
  transition: color 0.4s, transform 0.4s var(--ease);
  display: inline-block;
}
.next-chapter__link:hover .next-chapter__btn-arrow {
  color: var(--white);
  transform: translateX(3px);
}

@media (max-width: 760px) {
  .next-chapter {
    height: 420px;
  }
  .next-chapter__title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }
  .next-chapter__btn {
    width: 52px;
    height: 52px;
    margin-top: 24px;
  }
}

/* ============================================================
   ARCHITECTURE PAGE
   ============================================================ */

/* --- Expanding hero media: framed -> full-bleed on scroll («по рельсам») --- */
.arch-expand { background: var(--white); }
.arch-expand__frame {
  --expand: 0;
  padding: 0 calc((1 - var(--expand)) * clamp(16px, 6vw, 120px));
}
.arch-expand__media {
  position: relative;
  height: clamp(420px, 84vh, 900px);
  overflow: hidden;
  background: #ebe8e3;
  border-radius: calc((1 - var(--expand)) * 4px);
}
.arch-expand__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arch-expand--wide .arch-expand__media {
  height: auto;
  aspect-ratio: 2.56 / 1;
  max-height: min(68vh, 720px);
}
.arch-expand--wide .arch-expand__media img {
  object-position: center center;
}
.arch-expand--static .arch-expand__frame {
  --expand: 1;
  padding: 0;
}
.arch-expand--static .arch-expand__media {
  border-radius: 0;
}

/* --- Fade slider (crossfade + dots) --- */
.fade-slider { position: absolute; inset: 0; z-index: 1; }
.fade-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.fade-slide.is-active { opacity: 1; }
.fade-slide img { width: 100%; height: 100%; object-fit: cover; }
.fade-slide .media-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.fade-dots {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between;
  width: clamp(190px, 26vw, 290px); z-index: 4;
}
.fade-dots::before {
  content: ""; position: absolute; top: 50%; left: 7px; right: 7px; height: 1px;
  background: rgba(255,255,255,0.45); transform: translateY(-50%); z-index: 0;
}

/* --- Lead statement under hero --- */
.arch-lead { padding: clamp(48px, 7vw, 110px) 0; }
.arch-lead__text {
  font-family: var(--sans); font-weight: 400; text-transform: uppercase;
  color: var(--navy); font-size: clamp(1.25rem, 2.6vw, 2.2rem); line-height: 1.4;
  letter-spacing: 0.03em; max-width: 30ch;
}

/* --- Quote with portrait + author --- */
.arch-quote { padding: clamp(36px, 5vw, 80px) 0; }
.arch-quote__grid { display: grid; grid-template-columns: 130px 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; max-width: 880px; margin-left: auto; }
.arch-quote--left .arch-quote__grid { margin-left: 0; margin-right: auto; }
.arch-quote__avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: #ddd6cc; }
.arch-quote__avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.arch-quote__text { font-family: var(--sans); text-transform: uppercase; color: var(--navy); font-size: clamp(0.95rem, 1.5vw, 1.25rem); line-height: 1.5; letter-spacing: 0.02em; }
.arch-quote__author { margin-top: 18px; font-size: 0.85rem; line-height: 1.5; color: var(--grey); }
.arch-quote__author b { display: block; color: var(--navy); font-weight: 400; }

/* --- Bio text columns --- */
.arch-text { padding: 0 0 clamp(48px, 7vw, 100px); }
.arch-text__cols { columns: 2; column-gap: clamp(30px, 5vw, 70px); color: var(--grey); line-height: 1.8; font-size: 1.02rem; max-width: 1000px; }
.arch-text__cols p { margin-bottom: 1.2em; break-inside: avoid; }

/* --- Big centered statement title --- */
.arch-statement { text-align: center; padding: clamp(64px, 9vw, 150px) 0; }
.arch-statement__title { font-family: var(--serif); font-weight: 400; text-transform: uppercase; color: var(--navy); font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.06; letter-spacing: 0.04em; }

/* --- Full-bleed parallax banner --- */
.arch-banner { position: relative; height: clamp(440px, 90vh, 920px); overflow: hidden; }

/* --- Split: title + text + media --- */
.arch-split { padding: clamp(48px, 7vw, 110px) 0; }
.arch-split__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.arch-split__grid > * { min-width: 0; }
.arch-split--rev .arch-split__media { order: 2; }
.arch-split__title { font-family: var(--serif); font-weight: 400; text-transform: uppercase; color: var(--navy); font-size: clamp(1.55rem, 2.9vw, 2.5rem); line-height: 1.15; margin-bottom: 26px; text-wrap: balance; max-width: 100%; overflow-wrap: break-word; }
.arch-split__text { color: var(--grey); line-height: 1.8; }
.arch-split__text p { margin-bottom: 1.1em; }
.arch-split__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #ebe8e3;
  width: 100%;
  max-width: 100%;
}
.arch-split__media > img:not(.parallax__img) { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch-split__media.parallax .parallax__img { top: -15%; height: 130%; }

/* --- Number banner (e.g. 8 метров) --- */
.arch-numbanner { position: relative; height: clamp(480px, 90vh, 920px); display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; color: #fff; }
.arch-numbanner .parallax__img,
.arch-numbanner .media-placeholder.parallax__img { filter: brightness(0.82); }
.arch-numbanner__inner { position: relative; z-index: 2; }
.arch-numbanner__num { font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 14vw, 11rem); line-height: 0.9; text-shadow: 0 4px 40px rgba(0,0,0,0.45); }
.arch-numbanner__label { margin-top: 12px; font-size: clamp(0.78rem, 1.3vw, 1rem); letter-spacing: 0.2em; text-transform: uppercase; }

/* --- Trio gallery with captions --- */
.arch-trio { padding: clamp(48px, 7vw, 110px) 0; }
.arch-trio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 34px); }
.arch-trio__media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #ebe8e3; }
.arch-trio__cap { margin-top: 16px; text-align: center; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }

/* --- Image + accordion --- */
.arch-acc {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 120px);
  background: var(--cream);
}
/* п. 25 + круг 2: фото ещё крупнее — колонка с рендером расширена (было 1.15fr). */
.arch-acc__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}
.arch-acc__media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ebe8e3;
  min-height: clamp(420px, 52vw, 640px);
}
.arch-acc__media--square {
  aspect-ratio: 1724 / 1600;
  min-height: 0;
}
.arch-acc__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.arch-acc__panel {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto;
  width: 100%;
}
.arch-acc .acc__item {
  border: 0;
  padding: 4px 0;
}
.arch-acc .acc__item + .acc__item {
  margin-top: 2px;
}
.arch-acc .acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 10px 14px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(52, 48, 42, 0.78);
  font-size: clamp(0.92rem, 1.3vw, 1.12rem);
  line-height: 1.35;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: color 0.35s var(--ease);
}
.arch-acc .acc__head-label {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.arch-acc .acc__head-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.4s var(--ease);
}
.arch-acc .acc__head:hover {
  color: var(--ink);
}
.arch-acc .acc__head:focus,
.arch-acc .acc__head:focus-visible { outline: none; }
.arch-acc .acc__item.is-open .acc__head {
  color: var(--navy);
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
}
.arch-acc .acc__item.is-open .acc__head-label::after {
  width: 100%;
}
.arch-acc .acc__head .chev { display: none; }
.arch-acc .acc__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
}
.arch-acc .acc__item.is-open .acc__body {
  max-height: var(--acc-open-h, 720px);
  opacity: 1;
}
.arch-acc .acc__body p {
  padding: 18px 12px 22px;
  margin: 0 auto;
  max-width: 38ch;
  color: #2a2a2a;
  line-height: 1.75;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  font-weight: 400;
  text-align: center;
}

/* shared accordion defaults (other pages) */
.acc__item { border-top: 1px solid rgba(52, 48, 42,0.2); }
.acc__item:last-child { border-bottom: 1px solid rgba(52, 48, 42,0.2); }
/* п. 11: заголовки списков крупнее, раскрытый пункт остаётся тёмным (не уходит в золото) */
.acc__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; text-align: left; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); font-size: clamp(1.3rem, 2vw, 1.7rem); background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; outline: none; transition: color 0.3s var(--ease); }
.acc__head:hover { color: var(--navy-deep); }
.acc__head:focus, .acc__head:focus-visible { outline: none; }
.acc__item:focus-within { outline: none; }
.acc__head .chev { color: var(--gold); transition: transform 0.35s var(--ease); }
.acc__item.is-open .acc__head { color: var(--navy-deep); }
.acc__item.is-open .acc__head .chev { transform: rotate(180deg); }
.acc__body { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.acc__item.is-open .acc__body { max-height: var(--acc-open-h, 600px); }
.acc__body p { padding: 0 4px 24px; color: var(--navy-deep); line-height: 1.7; font-size: clamp(1.02rem, 1.35vw, 1.2rem); font-weight: 500; }

@media (max-width: 860px) {
  .arch-split__grid, .arch-acc__grid { grid-template-columns: 1fr; }
  .arch-acc__panel { max-width: none; }
  .arch-split--rev .arch-split__media { order: 0; }
  .arch-text__cols { columns: 1; }
  .arch-trio__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .arch-quote__grid { grid-template-columns: 84px 1fr; gap: 18px; }
  .arch-quote__avatar { width: 84px; height: 84px; }
}

/* ============================================================
   INFRASTRUCTURE PAGE
   ============================================================ */
/* --- Big gold stat (e.g. 24/7) --- */
/* круг 2, п. 30: заголовок был жирный (--sans 600) и выбивался. Переведён на тонкое
   serif-начертание 400, как остальные заголовки секций — «тонкий как везде». */
.infra-lead {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  color: var(--navy);
  line-height: 1.3;
  text-transform: uppercase;
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 42ch;
  letter-spacing: 0.02em;
}
/* п. 27: блок «24/7» — фото не режется, текст по центру колонки */
/* круг 2, п. 30: фото крупнее — колонка с рендером лобби расширена (было 1fr/1.2fr). */
.infra-247__grid { align-items: center; grid-template-columns: 1.3fr 1fr; }
.infra-247__media { aspect-ratio: auto; min-height: auto; height: auto; }
.infra-247__media img { width: 100%; height: auto; object-fit: contain; }
.infra-247__content { text-align: center; }
.infra-247__num {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  color: var(--gold);
  margin-bottom: clamp(15px, 3vw, 25px);
  line-height: 1;
  font-weight: 400;
}
.infra-247__text {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.7;
  color: var(--navy-deep);
  font-weight: 400;
  text-wrap: pretty;
}

.infra-mgmt__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.15;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 18px;
}
/* Подзаголовок «УК берёт на себя:» (макет, стр. 43) */
.infra-mgmt__subtitle {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  margin: 0 0 18px;
}
/* п. 30: весь блок УК выровнен по центру, как в референсе */
.infra-mgmt .arch-acc__grid > .reveal { text-align: center; }
.infra-mgmt .acc__head { justify-content: center; text-align: center; }
.infra-mgmt .acc__body p { text-align: center; }
.infra-mgmt__lead { text-wrap: pretty; }
/* Подпись-кредит над изображением («Рендер входная группа» и т.п.) */
.media-credit--right { text-align: right; }
.media-credit {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-deep);
  opacity: 0.72;
  margin-bottom: 12px;
}
.infra-mgmt__lead {
  color: #1a1a1a;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 46ch;
}
.infra-mgmt .acc__body p {
  color: #1a1a1a;
  font-weight: 500;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}
.infra-mgmt .arch-acc__grid {
  align-items: stretch;
  gap: clamp(28px, 4.5vw, 56px);
}
.infra-mgmt__media {
  aspect-ratio: auto;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}
.infra-mgmt__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
@media (max-width: 860px) {
  .infra-mgmt__media {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}
.infra-stat { font-family: var(--serif); font-weight: 400; color: var(--gold); font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; margin-bottom: 24px; }

/* --- Feature: media + numbered accordion (image swaps on open) --- */
.infra-feature { padding: clamp(48px, 7vw, 110px) 0; }
/* В макете фото — узкая колонка слева, аккордеон занимает бо́льшую часть ширины,
   чтобы заголовки пунктов ложились в одну строку */
/* круг 2, п. 32: фото было высотой только с первый пункт (align-items:start) —
   теперь колонка растягивается на всю высоту списка, и фото идёт вровень со всеми пунктами. */
.infra-feature__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: stretch; }
.infra-feature__media { position: relative; min-height: clamp(420px, 52vw, 640px); height: 100%; overflow: hidden; background: #ebe8e3; }
.infra-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s var(--ease); }

/* п. 29: нумерация убрана, заголовки пунктов по центру, верхняя линия первого пункта снята */
.acc__label { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex: 1; text-align: center; }
.infra-feature__grid .acc__item:first-child { border-top: none; }

/* п. 31: блок паркинга выровнен по центру, как в референсе */
.infra-parking__content { text-align: center; }
.infra-parking__text { text-wrap: pretty; }
.infra-parking .arch-split__title { text-align: center; }
.infra-parking .infra-parkstats { justify-content: center; }

/* --- Parking block --- */
.infra-parking__grid {
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  gap: clamp(24px, 4vw, 48px);
}
.infra-parking__media {
  aspect-ratio: 1 / 1;
  min-height: 0;
}
.infra-parking__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.infra-parking__content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}
.infra-parking__text {
  color: #1a1a1a;
}
.infra-parking__text p {
  font-weight: 500;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 0;
}
.infra-parkstats {
  display: flex;
  gap: clamp(30px, 5vw, 60px);
  margin: auto 0 0;
  padding-top: clamp(48px, 7vw, 90px);
}
.infra-parkstats__num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--gold); line-height: 1; }
.infra-parkstats__label { display: block; margin-top: 8px; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--gold-2); }

@media (max-width: 860px) {
  .infra-parking__grid { grid-template-columns: 1fr; }
  .infra-parking__media { min-height: 0; aspect-ratio: 4/3; }
  .infra-parkstats { margin-top: clamp(36px, 6vw, 56px); padding-top: 0; }
}

@media (max-width: 860px) {
  .infra-feature__grid { grid-template-columns: 1fr; }
  .infra-feature__media { min-height: 0; aspect-ratio: 4/3; }
}

/* ============================================================
   FLATS PAGE (Ваша квартира)
   ============================================================ */
.flats-crest { width: 150px; height: 180px; background: var(--gold); opacity: 0.16;
  -webkit-mask: url(/assets/img/logo-crest.svg) center/contain no-repeat;
          mask: url(/assets/img/logo-crest.svg) center/contain no-repeat; }

.flats-expand .arch-expand__media {
  aspect-ratio: 2560 / 1423;
  max-height: min(78vh, 820px);
}
.flats-expand .arch-expand__media img {
  filter: none;
  object-fit: cover;
  object-position: center center;
}
.flats-privacy__grid {
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  gap: clamp(24px, 4vw, 48px);
}
/* п. 34: фото не режем — показываем в оригинальных пропорциях */
.flats-privacy__media {
  aspect-ratio: auto;
  min-height: 0;
}
.flats-privacy__media > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.flats-privacy__content {
  min-width: 0;
}
.flats-privacy__text {
  color: #1a1a1a;
  text-wrap: pretty;
}

/* п. 36-38: текстовые колонки выровнены по центру и вертикально по оси фото */
.flats-ceilings__grid,
.flats-water__grid,
.flats-air__grid,
.flats-height__grid { align-items: center; }
.flats-ceilings__content,
.flats-water__content,
.flats-air__content,
.flats-height__content { text-align: center; }
.flats-ceilings__content .arch-split__title,
.flats-water__content .arch-split__title,
.flats-air__content .arch-split__title,
.flats-height__content .arch-split__title { text-align: center; }
.flats-ceilings__text,
.flats-water__text,
.flats-air__text,
.flats-height__text { text-wrap: pretty; }
.flats-ceilings__stats { justify-content: center; }
.flats-privacy__text p {
  font-weight: 500;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.7;
  color: #1a1a1a;
}
.flats-stats-row { display: flex; gap: clamp(28px, 5vw, 56px); margin-bottom: 28px; flex-wrap: wrap; }
.flats-stats-row__num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--gold); line-height: 1; }
.flats-stats-row__lbl { display: block; margin-top: 6px; font-size: 0.95rem; letter-spacing: 0.1em; color: var(--gold-2); }

@media (max-width: 860px) {
  .flats-privacy__grid { grid-template-columns: 1fr; }
  .flats-privacy__media { min-height: 0; aspect-ratio: 4/3; }
}

.flats-privacy .arch-split {
  padding-bottom: clamp(28px, 4vw, 48px);
}
.flats-views-title {
  padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px);
}
.flats-comfort-title {
  padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 48px);
}
.flats-penthouses-title {
  padding: clamp(28px, 4vw, 52px) 0 clamp(24px, 3.5vw, 40px);
}
.flats-air .arch-split {
  padding-bottom: clamp(20px, 3vw, 36px);
}
.flats-height .arch-split {
  padding-top: clamp(24px, 3.5vw, 40px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.flats-height__grid {
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.flats-height__media {
  aspect-ratio: 3616 / 2976;
  min-height: 0;
}
.flats-height__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.flats-height__content {
  text-align: center;
  max-width: 34ch;
  margin: 0 auto;
}
.flats-height__content .arch-split__title {
  text-align: center;
}
.flats-height__text p {
  font-weight: 500;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 0;
  text-align: center;
}
@media (max-width: 860px) {
  .flats-height__grid { grid-template-columns: 1fr; }
  .flats-height__media { aspect-ratio: 4/3; }
}
/* п. 40: бежевые поля сверху и снизу уменьшены, фото сдвинуто влево, цитата растянута */
.flats-quote {
  background: var(--cream);
  padding: clamp(34px, 5vw, 64px) 0;
}
.flats-quote__inner {
  display: grid;
  grid-template-columns: clamp(160px, 20vw, 220px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  justify-items: start;
}
.flats-quote__avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #ebe8e3;
  box-shadow: 0 0 0 1px rgba(175, 140, 94, 0.35), 0 0 0 10px rgba(255, 255, 255, 0.45);
}
.flats-quote__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
}
.flats-quote__body {
  position: relative;
  margin: 0;
  padding: 0 0 0 clamp(8px, 1.5vw, 20px);
  border-left: 1px solid rgba(175, 140, 94, 0.55);
  padding-left: clamp(22px, 3vw, 36px);
}
.flats-quote__text {
  margin: 0 0 clamp(22px, 3vw, 32px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-transform: none;
  max-width: 52em;
  text-wrap: pretty;
}
.flats-quote__text::before {
  content: "«";
  color: var(--gold);
  margin-right: 0.08em;
}
.flats-quote__text::after {
  content: "»";
  color: var(--gold);
  margin-left: 0.08em;
}
.flats-quote__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.flats-quote__name {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.flats-quote__role {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
}

@media (max-width: 860px) {
  .flats-quote__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    max-width: 520px;
  }
  .flats-quote__avatar {
    width: clamp(140px, 42vw, 180px);
  }
  .flats-quote__body {
    border-left: 0;
    border-top: 1px solid rgba(175, 140, 94, 0.45);
    padding: clamp(22px, 4vw, 28px) 0 0;
  }
  .flats-quote__meta {
    align-items: center;
  }
}
.flats-ceilings .arch-split {
  padding-bottom: clamp(24px, 3.5vw, 40px);
}
.flats-water .arch-split {
  padding-top: clamp(24px, 3.5vw, 40px);
}
.flats-water__grid {
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
.flats-water__media {
  aspect-ratio: 1948 / 1892;
  min-height: 0;
}
.flats-water__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: none;
}
.flats-water__text {
  color: #1a1a1a;
}
.flats-water__text p {
  font-weight: 500;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.7;
  color: #1a1a1a;
}

@media (max-width: 860px) {
  .flats-water__grid { grid-template-columns: 1fr; }
  .flats-water__media { min-height: 0; aspect-ratio: 1 / 1; }
}

.flats-air .arch-split {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
.flats-air__grid {
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.flats-air__media {
  aspect-ratio: 1608 / 1524;
  min-height: 0;
}
.flats-air__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: none;
}
.flats-air__content {
  text-align: center;
  max-width: 36ch;
  margin: 0 auto;
}
/* Шапка экрана «Комфорт в деталях» над сплитом «Чистая вода» (макет, стр. 51) */
.flats-comfort__title {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-align: center;
  /* круг 2, п. 33: сверху не было отступа — заголовок жался к фото над ним.
     Отступ сверху приравнен к нижнему, пространство стало симметричным. */
  margin: clamp(30px, 5vw, 60px) 0 clamp(30px, 5vw, 60px);
  text-wrap: balance;
}
.flats-air__content .arch-split__title {
  text-align: center;
}
.flats-air__text {
  color: #1a1a1a;
}
.flats-air__text p {
  font-weight: 500;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 0;
  text-align: center;
}

@media (max-width: 860px) {
  .flats-air__grid { grid-template-columns: 1fr; }
  .flats-air__media { min-height: 0; aspect-ratio: 1 / 1; }
}
.flats-ceilings__grid {
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
.flats-ceilings__media {
  aspect-ratio: 2888 / 2188;
  min-height: 0;
}
.flats-ceilings__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: none;
}
.flats-ceilings__content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.flats-ceilings__text {
  color: #1a1a1a;
}
.flats-ceilings__text p {
  font-weight: 500;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 0;
}
.flats-ceilings__stats {
  margin: auto 0 0;
  padding-top: clamp(36px, 5vw, 64px);
}

@media (max-width: 860px) {
  .flats-ceilings__grid { grid-template-columns: 1fr; }
  .flats-ceilings__media { min-height: 0; aspect-ratio: 4/3; }
  .flats-ceilings__stats { margin-top: clamp(28px, 5vw, 40px); padding-top: 0; }
}

.flats-views { padding: clamp(48px, 7vw, 110px) 0; }
.flats-views__eyebrow { text-align: center; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.flats-views__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(4px, 0.6vw, 8px) clamp(30px, 5vw, 70px); }
.flats-view { display: flex; align-items: baseline; gap: 16px; padding: 22px 4px; border-top: 1px solid rgba(52, 48, 42,0.18); }
.flats-view__no { font-family: var(--serif); color: var(--gold); font-size: 1.4rem; line-height: 1; min-width: 1.1em; }
.flats-view__name { font-size: 1.02rem; line-height: 1.35; color: var(--navy); }

/* Panorama banner with 360° badge */
.flats-pano {
  position: relative; height: clamp(520px, 92vh, 960px); overflow: hidden; color: #fff;
}
/* п. 35: было слишком темно по сравнению с ТЗ — затемнение почти снято */
.flats-pano .parallax__img, .flats-pano .media-placeholder { filter: brightness(0.95); }
/* Заголовок поверх панорамы (макет, стр. 48) */
/* Без transform: класс .reveal анимирует transform через GSAP и перебил бы центрирование */
.flats-pano__title {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(60px, 12vh, 130px);
  z-index: 3;
  margin: 0;
  padding: 0 clamp(20px, 5vw, 64px);
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
/* п. 35: кружок 360° стоит ровно под заголовком, по той же оси */
.flats-pano__badge {
  position: absolute; left: 50%; top: clamp(230px, 38vh, 400px); transform: translateX(-50%);
  z-index: 3; text-align: center; pointer-events: none;
}
.flats-pano__badge-ring {
  width: clamp(110px, 14vw, 160px); height: clamp(110px, 14vw, 160px);
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  margin: 0 auto 0;
}
.flats-pano__badge-num { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.flats-pano__badge-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: lowercase; opacity: 0.9; margin-top: 4px; }
.flats-pano__mark {
  position: absolute; left: 50%; bottom: clamp(24px, 5vw, 60px); transform: translateX(-50%);
  font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 16vw, 11rem);
  line-height: 1; opacity: 0.22; letter-spacing: 0.08em; pointer-events: none; z-index: 2;
}

/* Scroll-driven icon overlay on split photos */
.flats-media { position: relative; }
.flats-scroll-icon {
  --spread: 0px;
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 3;
}
.flats-scroll-icon__ring {
  position: absolute; width: clamp(72px, 10vw, 110px); height: clamp(72px, 10vw, 110px);
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.75);
}
.flats-scroll-icon__arrow {
  position: absolute; left: 50%; width: 2px; height: clamp(18px, 3vw, 28px);
  background: rgba(255,255,255,0.9); transform-origin: center;
}
.flats-scroll-icon__arrow--up {
  top: 50%; margin-top: calc(-1 * clamp(18px, 3vw, 28px) - var(--spread));
  transform: translate(-50%, -100%);
}
.flats-scroll-icon__arrow--up::before,
.flats-scroll-icon__arrow--down::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
}
.flats-scroll-icon__arrow--up::before {
  top: -3px; border-bottom: 7px solid rgba(255,255,255,0.9);
}
.flats-scroll-icon__arrow--down {
  top: 50%; margin-top: var(--spread);
  transform: translate(-50%, 0);
}
.flats-scroll-icon__arrow--down::before {
  bottom: -3px; border-top: 7px solid rgba(255,255,255,0.9);
}
.flats-scroll-icon--drop .flats-scroll-icon__ring::after {
  content: ""; width: 18px; height: 24px; border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; display: block;
}
.flats-scroll-icon--air .flats-scroll-icon__ring::after {
  content: ""; width: 22px; height: 22px; border: 1.5px solid rgba(255,255,255,0.85);
  transform: rotate(45deg); display: block;
}

.flats-duo { padding: clamp(30px, 5vw, 70px) 0 clamp(48px, 7vw, 110px); }
.flats-duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.5vw, 34px); }
.flats-duo__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #ebe8e3; }
.flats-duo__media.media-placeholder { min-height: 100%; }
.flats-duo__media img { width: 100%; height: 100%; object-fit: cover; }
.flats-duo__cap { margin-top: 16px; text-align: center; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }

.arch-expand__media.parallax { overflow: hidden; }

@media (max-width: 900px) { .flats-views__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .flats-views__grid, .flats-duo__grid { grid-template-columns: 1fr; }
}

/* ============ CONTACTS ============ */
.contacts-phone {
  display: inline-block; font-family: var(--serif);
  /* п. 41: переменной --soft-black в проекте нет — цвет не применялся; ставим фирменный синий */
  font-size: clamp(1.9rem, 4vw, 3rem); color: var(--navy);
  line-height: 1; margin: 6px 0 0; transition: color 0.3s;
}
.contacts-phone:hover { color: var(--gold); }
.contacts-map {
  position: relative; width: 100%; aspect-ratio: 4/5; min-height: 380px;
  overflow: hidden; background: #ebe8e3; border-radius: 2px;
}
.contacts-map iframe { width: 100%; height: 100%; }
@media (max-width: 820px) {
  .contacts-map { aspect-ratio: 3/2; min-height: 300px; }
}

/* ============ RESTYLED SLIDES ============ */
.slide-section {
  background-color: var(--cream);
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.slide-section.slide-hero {
  background-color: #fff;
  padding: clamp(36px, 5vw, 72px) 0 clamp(10px, 2vw, 30px);
}
.slide-section.slide-hero--plain {
  background: transparent;
  background-image: none;
  overflow: visible;
  padding: clamp(140px, 16vw, 180px) 0 clamp(20px, 3vw, 36px);
}
.slide-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 4px;
  display: inline-block;
  line-height: 1;
}

/* Slide 1 - Hero. В макете заголовок прижат влево, справа бледный водяной знак */
.slide-hero__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: 0;
  min-width: 0;
}
.slide-hero__header > * { min-width: 0; }
.slide-hero--plain .slide-hero__header {
  justify-content: flex-start;
}
.slide-hero__title {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  /* letter-spacing добавляет отбивку после последней буквы: на 390px строка
     «ИНФРАСТРУКТУРА» вылезала на 5px и давала горизонтальный скролл страницы */
  max-width: 100%;
  overflow-wrap: break-word;
}
.slide-hero__watermark {
  flex: 0 0 auto;
  width: clamp(70px, 9vw, 120px);
  color: var(--gold);
  opacity: 0.28;
  pointer-events: none;
}
@media (max-width: 700px) {
  .slide-hero__watermark { display: none; }
}
.slide-hero__watermark svg {
  width: 100%;
  height: auto;
}
.slide-hero__media {
  position: relative;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: #ebe8e3;
  width: 100%;
}
.slide-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-hero__num-overlay {
  position: absolute;
  top: clamp(20px, 4vw, 50px);
  right: clamp(20px, 5vw, 64px);
  z-index: 5;
}
.slide-hero__num-overlay .slide-num {
  color: #fff;
  border-color: #fff;
}

/* Slide 2 - Author */
.slide-author__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.slide-author__title {
  font-family: var(--serif);
  /* п. 20: заголовок синим */
  color: var(--navy);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.15;
  font-weight: 400;
  text-wrap: balance;
}
/* Аватар + цитата архитектора (макет, стр. 28) */
.slide-author__quote {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  max-width: 620px;
}
.slide-author__quote-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 26px 40px;
  text-align: center;
  background: #ece5d6;
  /* п. 20: пришла реальная цитата — пунктир заглушки убран */
  border: none;
  color: var(--ink);
}
/* Декоративные кавычки как в макете (стр. 28) */
.slide-author__quote-body::before,
.slide-author__quote-body::after {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
}
.slide-author__quote-body::before { content: "\201C"; top: 2px; left: 10px; }
.slide-author__quote-body::after { content: "\201D"; bottom: -6px; right: 10px; }
.slide-author__quote-text {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--navy-deep);
  margin: 0;
  text-wrap: pretty;
}
.slide-author__quote-meta { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; }
.slide-author__quote-name {
  font-family: var(--serif); font-style: normal; font-size: 0.98rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
}
.slide-author__quote-role {
  font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-2);
}
.slide-author__avatar {
  width: clamp(90px, 10vw, 130px);
  height: clamp(90px, 10vw, 130px);
  border-radius: 50%;
  border: 1px solid rgba(20,24,27,0.15);
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}
.slide-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}
.slide-author__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.slide-author__media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: #ebe8e3;
}
.slide-author__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-author__num-overlay {
  position: absolute;
  top: clamp(20px, 4vw, 40px);
  left: clamp(20px, 4vw, 40px);
  z-index: 5;
}
.slide-author__num-overlay .slide-num {
  color: #fff;
  border-color: #fff;
}
/* круг 2, п. 22: текст крупнее и растянут по колонке — заполняет отведённое поле
   справа от фото, а не жмётся узким столбиком по центру. */
.slide-author__text-block {
  text-align: center;
  font-family: var(--body);
  font-size: clamp(1.3rem, 1.75vw, 1.62rem);
  line-height: 1.72;
  color: var(--navy-deep);
}
.slide-author__text-block p {
  margin-bottom: 0.15em;
  font-weight: 400;
}

/* Slide 3 - Geometry */
/* круг 2, п. 22: под заголовком была плоская кремовая (почти белая) полоса —
   «ни к селу ни к городу». Заливаем секцию тем же мраморным градиентом, что и
   соседний блок автора, чтобы заголовок жил на мраморе, а не на белой плашке. */
.slide-geometry {
  background-color: var(--beige);
  background-image:
    linear-gradient(rgba(210, 205, 202, 0.55), rgba(210, 205, 202, 0.55)),
    var(--marble-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.slide-geometry__header {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: clamp(30px, 5vw, 56px);
}
.slide-geometry__title {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.02em;
}
/* Full-bleed: в макете рендер идёт полосой во всю ширину экрана */
.slide-geometry__media {
  position: relative;
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: #ebe8e3;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.slide-geometry__media img:not(.parallax__img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-geometry__media.parallax .parallax__img {
  top: -20%;
  height: 140%;
  object-position: center top;
}

/* Slide 4 - Deconstructivism */
.slide-deconstruct__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: stretch;
}
/* п. 22: основной текст крупнее и по центру, как в референсе */
.slide-deconstruct__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  color: var(--navy-deep);
  line-height: 1.8;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-family: var(--body);
  font-weight: 400;
  text-align: center;
  text-wrap: pretty;
}
.slide-deconstruct__right {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 44px);
}
.slide-deconstruct__title-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
/* круг 2, п. 23: заголовок отцентрован над фото (был прижат влево) */
.slide-deconstruct__title {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.32;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  flex: 1;
}
.slide-deconstruct__num-wrap {
  flex-shrink: 0;
}
.slide-deconstruct__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #ebe8e3;
}
.slide-deconstruct__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide 5 - Constructive */
.slide-constructive__header {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: clamp(30px, 5vw, 56px);
}
.slide-constructive__num-wrap {
  flex-shrink: 0;
}
.slide-constructive__title {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.08;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
}
/* Full-bleed scrollable photo */
.slide-constructive__media {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 100vh;
  min-height: 560px;
  max-height: 960px;
  overflow: hidden;
  background: #ebe8e3;
}
.slide-constructive__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Stack */
@media (max-width: 860px) {
  .slide-author__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .slide-author__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .slide-author__media {
    aspect-ratio: 16 / 13;
  }
  .slide-deconstruct__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .slide-deconstruct__right {
    order: -1;
  }
  .slide-deconstruct__media {
    aspect-ratio: 16 / 10;
  }
}

/* Slide 6 - Logic */
.slide-logic__header {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.slide-logic__title {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 20px;
  /* nowrap убран: на узких экранах заголовок вылезал за контейнер */
  text-wrap: balance;
}
/* п. 24: широкое фото с дрона вместо трёх колонок-заглушек */
/* круг 2: фото должно вставать вплотную к низу слайда — убираем нижний паддинг
   секции и растягиваем кадр во всю ширину экрана до самого края. */
.slide-logic { padding-bottom: 0; }
.slide-logic__wide {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  background: #ebe8e3;
}
.slide-logic__wide img { width: 100%; height: auto; display: block; }
/* п. 24: текст был мелкий — растянут и укрупнён */
.slide-logic__text {
  font-family: var(--body);
  font-size: clamp(1.12rem, 1.55vw, 1.35rem);
  line-height: 1.7;
  color: var(--navy-deep);
  font-weight: 400;
  text-wrap: pretty;
}
.slide-logic__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(20px, 3.2vw, 40px);
}
.slide-logic__media {
  position: relative;
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  background: #ebe8e3;
}
.slide-logic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide 6 Responsive */
@media (max-width: 860px) {
  .slide-logic__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .slide-logic__media {
    aspect-ratio: 16 / 11;
  }
}

/* Slide - Engineering fullwidth break image */
.slide-eng-break {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  max-height: 900px;
  background: #ebe8e3;
}
.slide-eng-break .parallax__img {
  top: -20%;
  height: 140%;
  object-position: center center;
}
.slide-eng-break__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--navy);
  opacity: 0.18;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
}

/* ============ MASTERPLAN SECTION ============ */
.infra-masterplan {
  padding: clamp(40px, 6vw, 90px) 0;
  background-color: var(--cream);
  border-bottom: 1px solid rgba(164, 129, 84, 0.15);
}
.infra-masterplan__head {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.infra-masterplan__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  color: var(--navy);
  margin-top: 8px;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.infra-masterplan__frame {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(20, 24, 27, 0.18);
  border: 1px solid rgba(192, 154, 80, 0.3);
  background: var(--navy);
  max-width: 1560px;
  margin: 0 auto;
  padding: 0;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 700px) {
  /* карта на превью была мельче контейнера — расширяем блок почти
     до края экрана, чтобы подписи и здание читались крупнее без тапа */
  .infra-masterplan .container { padding: 0 12px; }
  .infra-masterplan__frame { border-radius: 10px; }
}
.infra-masterplan__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.infra-masterplan__frame:hover .infra-masterplan__img {
  transform: scale(1.02);
}
.infra-masterplan__badge {
  position: absolute;
  bottom: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  background: rgba(20, 24, 27, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: clamp(0.75rem, 1vw, 0.88rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(192, 154, 80, 0.35);
  pointer-events: none;
  font-weight: 500;
}

/* план территории напечатан широким пейзажным кадром с мелкими подписями —
   на телефоне при 100%-ширине текст выносок становится нечитаемым,
   поэтому по тапу открываем полноэкранный оверлей с пинч-зумом */
.masterplan-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 14, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
  touch-action: pinch-zoom;
}
.masterplan-overlay[hidden] { display: none; }
.masterplan-overlay__img {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: auto;
  border-radius: 8px;
}
.masterplan-overlay__close {
  position: fixed;
  top: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(20, 24, 27, 0.7);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ============ LENIS SMOOTH SCROLL STYLES ============ */
html.lenis, html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

/* GSAP Pinning spacer helper */
.pin-spacer {
  background: var(--white) !important;
}
