/* =========================================================
   MORI THE VALLEY — лендинг (этап 1: десктоп 1280–1920)
   Структура: токены → база → утилиты/компоненты → секции
   ========================================================= */

/* ---------- 1. Токены ---------- */
:root {
  --olive: #294463;
  --olive-dark: #233A54;
  --olive-deep: #142A44;
  --footer: #436893;
  --ivory: #F2EDE3;
  --ivory-card: #F9F6EF;
  --ivory-soft: #E9E3D5;
  --ink: #192B3F;
  --ink-title: #1F354E;
  --muted: #3E5876;
  /* В дизайне #48678B — на светлом фоне даёт 4.2:1; затемнён до AA (≥4.5:1) */
  --muted-2: #415F82;
  /* Акценты — только зелёные, как в блоке «Планировки и участки»:
     --olive — тёмно-зелёный (на светлом фоне), --sage — светло-зелёный (на тёмном фоне и фото) */
  --sage: #92B6DF;
  --night: #09111B;
  --cream: #F7F3EA;
  --sand: #EFE7D6;

  --font-head: 'Onest', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius-card: 24px;
  --radius-card-sm: 20px;
  --radius-pill: 999px;

  --container: 1312px;
  --gutter: clamp(20px, 4vw, 64px);
  --wide: 1792px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 100px;
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
picture > img { width: 100%; height: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
:where(ul[role="list"]) { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
dialog { color: inherit; }

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--bold { stroke-width: 2; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 6px;
}
.plans :focus-visible, .portfolio :focus-visible, .faq :focus-visible,
.ask :focus-visible, .amenities :focus-visible {
  outline-color: var(--olive);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--sage);
  color: var(--night);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Утилиты и компоненты ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow--sage { color: var(--sage); }
.eyebrow--light { color: var(--ivory); opacity: .9; letter-spacing: .3em; }

.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-head--wide { gap: 20px; max-width: 760px; }

.h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--ink-title);
}
.h2--light { color: #F7F1E3; }
/* Два уровня заголовков секций:
   1) обычный — один размер для всех секций (58px на десктопе, 34px на телефоне; на низких экранах чуть меньше, чтобы блоки влезали);
   2) финальный .h2--display — только «Часто задаваемые вопросы» и «У вас остались вопросы?» */
:root { --h2-section: clamp(34px, min(4vw, 6.6vh), 58px); }
.h2--lg, .h2--xl { font-size: var(--h2-section); line-height: 1.04; letter-spacing: -.035em; }
.h2--display { font-size: clamp(40px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.04em; }

/* Двухтонный заголовок: <strong> — плотный тёмный, <span> — тонкий зелёный */
.title-duo strong { font-weight: 500; color: var(--ink-title); }
.title-duo span { font-weight: 300; color: var(--footer); }

.text { font-size: 17px; line-height: 1.65; color: var(--muted); }
.text--lg { font-size: 18px; line-height: 1.6; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, filter .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 60px; padding: 0 30px; gap: 12px; }
.btn--xl { min-height: 62px; font-size: 17px; gap: 12px; }
.btn--block { width: 100%; }

.btn--glass {
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--sand);
  border-color: rgba(239, 231, 214, .5);
  background: rgba(8, 18, 29, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--glass:hover { filter: brightness(1.15); color: #fff; }

.btn--outline { color: var(--olive); border-color: rgba(41, 68, 99, .4); background: transparent; }
.btn--outline:hover { background: var(--olive); color: #fff; }

.btn--olive { background: var(--olive); color: var(--cream); }
.btn--olive:hover { background: var(--ink); }

.btn--deep { background: var(--olive-deep); color: var(--cream); }
.btn--deep:hover { filter: brightness(1.15); }

.btn--white { background: #fff; color: var(--night); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.btn--white:hover { background: var(--olive); color: var(--cream); }

.btn--light { background: var(--ivory); color: #09121D; font-weight: 500; }
.btn--sage { background: var(--sage); color: #09121D; font-weight: 500; }
.btn--light:hover, .btn--sage:hover { filter: brightness(1.06); }

/* Стекло */
.glass {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Файл (иконка + подпись) */
.file { display: flex; align-items: center; gap: 14px; }
.file--boxed {
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #EFE9DC;
  border: 1px solid rgba(41, 68, 99, .1);
}
.file__icon {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #E8E1D2;
  color: var(--olive);
  display: flex; align-items: center; justify-content: center;
}
.file__icon--sm { width: 48px; height: 48px; border-radius: 12px; background: #E3DAC6; }
.file__body { display: flex; flex-direction: column; gap: 3px; }
.file__name { font-family: var(--font-head); font-size: 16px; color: var(--ink); }
.file__meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-2); }

/* Появление при скролле */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal="line"] { transform: scaleX(0); transition-duration: 1.4s; }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Общие модалки (native <dialog>) */
dialog {
  padding: 0;
  border: 0;
  max-width: none;
  max-height: none;
}
dialog::backdrop { background: rgba(4, 8, 13, .92); }
dialog[open] { animation: fade-in .35s ease both; }

.modal, .lightbox {
  width: 100%;
  height: 100%;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[open], .lightbox[open] { display: flex; }

.modal__close {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  width: 52px; height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(4, 8, 13, .4);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s;
}
.modal__close:hover { background: rgba(255, 255, 255, .12); }

.modal__frame {
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0E1B29;
}
.modal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.modal__placeholder {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, .25);
  border-radius: 16px;
  color: rgba(255, 255, 255, .7);
  font-family: var(--font-head);
  font-size: 18px;
  text-align: center;
}

.lightbox__img {
  width: auto; height: auto;
  max-width: min(1400px, 100%);
  max-height: calc(100vh - 120px);
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}

/* ---------- Ключевые кадры ---------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { 0% { transform: scale(1.04) translate(0, 0); } 100% { transform: scale(1.14) translate(-2%, -1.5%); } }
@keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: .6; } }
@keyframes slow-zoom { 0% { transform: scale(1.02); } 100% { transform: scale(1.12); } }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }
/* Пульсирующие «волны» от кнопки (как кольца у кнопки видео): две волны со сдвигом */
@keyframes btn-wave { 0% { box-shadow: 0 0 0 0 rgba(41, 68, 99, .15); } 100% { box-shadow: 0 0 0 18px rgba(41, 68, 99, 0); } }
.btn--pulse { position: relative; }
.btn--pulse::before, .btn--pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  animation: btn-wave 2.2s ease-out infinite;
}
.btn--pulse::after { animation-delay: 1.1s; }
@keyframes pulse-map { 0% { transform: translate(-50%, -50%) scale(1); opacity: .55; } 100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes card-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes header-in { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes intro-zoom { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes curtain { from { opacity: 1; } to { opacity: 0; } }
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes word-in { from { opacity: 0; transform: translateY(.55em) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes badge-in { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   4. Секции
   ========================================================= */

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50; /* выше поднятой сцены (41); во время заливки — ниже фигуры (см. .is-morphing) */
  color: var(--sand);
  transition: background-color .35s ease, backdrop-filter .35s ease;
  animation: header-in 1.1s var(--ease) .5s both;
}
.header__inner {
  max-width: var(--wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--gutter);
  transition: padding .35s var(--ease);
}
.header.is-scrolled {
  background: rgba(9, 17, 27, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header.is-scrolled .header__inner { padding-block: 14px; }
/* Пока идёт переход к «О проекте» (сцена закреплена) — шапки нет: логотип и меню уходят,
   кнопка «Узнать цену» гаснет (JS), фон шапки убран, чтобы не лёг полосой на зелёный экран */
.header.is-morphing { z-index: 40; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
/* прозрачность --intro-fade задаёт js/hero.js по прокрутке — шапка уходит плавно, вместе с заголовком */
.header__logo, .header__nav, .header__burger, .header .lang { transition: opacity .45s ease, translate .45s ease; }
.header.is-morphing .header__logo, .header.is-morphing .header__nav, .header.is-morphing .header__burger, .header.is-morphing .lang {
  opacity: var(--intro-fade, 1);
  translate: 0 calc((1 - var(--intro-fade, 1)) * -14px);
  transition: none; /* во время заливки следуем за прокруткой без задержки */
}
.header__cta { transition: opacity .45s ease, background-color .25s, transform .25s var(--ease); }
.header__logo img { width: 150px; height: auto; }
.header__nav { display: flex; gap: 36px; font-size: 14px; font-weight: 500; }
.header__nav a { transition: color .2s, text-shadow .3s; }
/* над фото первого экрана затемнения сверху нет — меню читается за счёт мягкой тени под буквами */
.header:not(.is-scrolled) .header__nav a { text-shadow: 0 1px 10px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .45); }
.header__nav a:hover { color: #fff; }
.header__actions { display: flex; align-items: center; gap: 20px; }
/* Переключатель языка: EN | RU */
.lang { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .22); }
.lang__link { padding: 6px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: rgba(255, 255, 255, .75); transition: background-color .2s, color .2s; }
.lang__link:hover { color: #fff; }
.lang__link[aria-current="page"] { background: rgba(255, 255, 255, .16); color: #fff; }
.header:not(.is-scrolled) .lang__link { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.lang--menu { display: none; }
/* кнопки «Показать номер» выглядят как ссылки */
button.footer__phone, button.mobile-menu__phone { padding: 0; border: 0; background: none; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.header__cta { min-height: 44px; padding: 0 22px; font-family: var(--font-body); font-size: 14px; font-weight: 600; }
.header__cta.btn--olive:hover { background: var(--olive-dark); }

/* ---------- 01 Hero ---------- */
.hero {
  position: relative;
  min-height: max(760px, 100vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #08121D;
  color: var(--sand);
}
.hero__bg { position: absolute; inset: -10% 0 0; overflow: hidden; will-change: transform; } /* запас сверху под параллакс */
.hero__bg picture { height: 100%; animation: intro-zoom 2.6s cubic-bezier(.16, 1, .3, 1) both; }
.hero__curtain {
  position: absolute; inset: 0;
  background: var(--night);
  pointer-events: none;
  animation: curtain 1.6s ease .1s both;
}
.hero__img {
  object-fit: cover;
  object-position: 40% 50%;
  transform-origin: 40% 55%;
  animation: kenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}
.hero__shade { position: absolute; inset: 0; pointer-events: none; }
/* Затемнение только снизу вверх: фото сверху и посередине чистое, под заголовком и фактами — плавный градиент */
.hero__shade--v {
  background: linear-gradient(0deg,
    rgba(6, 13, 20, .62) 0%, rgba(6, 13, 20, .4) 18%, rgba(6, 13, 20, .14) 36%,
    rgba(6, 13, 20, 0) 50%);
}
.hero__glow {
  position: absolute;
  top: 8%; right: 18%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 240, .28) 0%, rgba(255, 252, 240, 0) 65%); /* без mix-blend-mode — дешевле в отрисовке */
  animation: glow 7s ease-in-out infinite;
  will-change: opacity;
  pointer-events: none;
}

/* Фигура перехода. Сначала лежит в .intro-morph-layer — поверх всего, в т.ч. шапки (слой fixed);
   когда меню погасло, js/hero.js переносит её в сцену (под текст «О проекте»). Форму и размер задаёт JS */
.intro-morph-layer { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.intro-morph {
  position: absolute;
  z-index: 4; /* в сцене: над первым экраном (3), под «О проекте» (5) */
  left: 0; top: 0;
  width: 0; height: 0;
  background: var(--olive);
  transform-origin: 50% 50%;
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 48px;
  padding: calc(var(--header-h) + 160px) var(--gutter) 48px;
  will-change: transform, opacity; /* двигается при прокрутке */
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero__lead { animation: rise 1.1s var(--ease) 1.5s both; }

/* Заголовок: слова выезжают по очереди (разбивку делает js/hero.js) */
html.js .hero__title:not(.is-split) { animation: fade-in .6s 2.4s both; } /* страховка, если JS не отработал */
.hero__word {
  display: inline-block;
  animation: word-in 1s var(--ease) calc(.9s + var(--i, 0) * 45ms) both;
}
.hero__title {
  max-width: 1294px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(34px, 3.9vw, 58px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #FFFFFF;
}
.hero__lead-accent { font-weight: 600; color: inherit; } /* тот же цвет, что у подзаголовка, без белого */
/* Заголовок: «MORI THE VALLEY:» — плотный, остальной текст тонкий; всё светлое */
.hero__title { font-weight: 300; }
.hero__accent { font-weight: 500; color: #FFFFFF; }
.hero__lead { max-width: 720px; font-size: 18px; line-height: 1.6; color: #EDE6D6; text-shadow: 0 1px 10px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .4); }

/* Плашка фактов — в стиле карточки «Актуальный прайс-лист»: бежевая подложка, иконки в скруглённых квадратах */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
  padding: 26px clamp(22px, 3vw, 40px);
  border-radius: 20px;
  background: #EFE9DC;                            /* как у карточки «Актуальный прайс-лист» */
  border: 1px solid rgba(41, 68, 99, .1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  animation: rise 1.3s var(--ease) 1.7s both;
}
.hero__fact { display: flex; align-items: center; gap: 16px; animation: rise 1s var(--ease) both; }
.hero__fact:nth-child(1) { animation-delay: 2s; }
.hero__fact:nth-child(2) { animation-delay: 2.12s; }
.hero__fact:nth-child(3) { animation-delay: 2.24s; }
.hero__fact-icon {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #E3DAC6;                            /* как подложка иконки у прайс-листа */
  display: flex; align-items: center; justify-content: center;
  color: var(--olive);
}
.hero__fact-icon svg { width: 24px; height: 24px; }
.hero__fact-body { display: flex; flex-direction: column; gap: 4px; }
.hero__fact-body strong { font-family: var(--font-head); font-size: 17px; font-weight: 400; color: var(--ink); }
.hero__fact-body span { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted-2); }
/* зелёная точка перед подписью — как у «Формат PDF · 13 МБ» */
.hero__fact-body span::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgba(44, 94, 152, .45); }

/* ---------- 02 О проекте ---------- */
.about {
  min-height: 800px;
  padding: 120px 24px;
  background: var(--olive);
  color: #fff;
  font-family: var(--font-head);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.about__eyebrow { font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.about__logo { margin-top: 48px; line-height: 0; }
.about__logo img { width: min(600px, 84vw); height: auto; }
.about__line { display: block; width: 64px; height: 1px; margin-top: 88px; background: rgba(255,255,255,.45); transform-origin: center; }
.about__text {
  margin-top: 40px;
  max-width: 520px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.about__text strong { font-weight: 500; }

/* ---------- Сцена «первый экран → О проекте» (только с JS) ---------- */
html.js .intro {
  position: relative;
  height: calc(100vh + var(--intro-scroll, 140vh)); /* длина прокрутки, пока сцена закреплена; уточняет JS */
}
html.js .intro__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}
html.js .intro .hero { height: 100%; min-height: 0; }
/* когда шапка уже погасла, сцена поднимается над ней — фигура и «О проекте» оказываются поверх всего */
html.js .intro.is-raised .intro__stage { z-index: 41; }
html.js .intro .hero__content { padding-top: calc(var(--header-h) + 40px); }

html.js .intro .about {
  position: absolute;
  inset: 0;
  z-index: 5;
  min-height: 0;
  padding: var(--header-h) 24px 40px;
  background: transparent; /* фон даёт разросшийся круг */
  pointer-events: none;
}
html.js .intro .about.is-in { pointer-events: auto; }
html.js .intro .about.is-filled { background: var(--olive); } /* экран залит — фон даёт сам блок */

/* Появление «Проект MORI THE VALLEY» — запускается, когда круг закрыл экран */
html.js .intro .about > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .18s ease, transform .18s ease; /* уходит быстро — не мелькает при прокрутке назад */
}
html.js .intro .about__logo { transform: translateY(24px) scale(.92); }
html.js .intro .about__line { transform: scaleX(0); }
html.js .intro .about.is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--d, 0s);
}

/* ---------- 03 Галерея ---------- */
.gallery { padding-block: 100px 120px; background: var(--ivory); color: var(--olive); }

.gallery__strip {
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.gallery__strip::-webkit-scrollbar { display: none; }
.gallery__strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
/* Заголовок галереи — только на телефоне */
.gallery__head { display: none; }
@media (max-width: 960px) { .gallery__head { display: flex; margin-bottom: 28px; } }
.gallery__strip.is-dragging .gallery__tile { pointer-events: none; }
.gallery__track {
  display: flex;
  gap: 10px;
  width: max-content;
  height: 560px;
  padding-inline: var(--edge);
}
.gallery__stack { flex: none; width: 440px; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; }
.gallery__tile {
  position: relative;
  flex: 1;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #192B3F;
  scroll-snap-align: start;
  isolation: isolate;
}
.gallery__tile--xl { flex: none; width: 760px; }
.gallery__tile--lg { flex: none; width: 640px; }
.gallery__tile picture { position: absolute; inset: 0; }
.gallery__tile img { object-fit: cover; transition: transform .9s var(--ease); }
.gallery__tile:hover img { transform: scale(1.05); }
.gallery__tile:focus-visible { outline-offset: -4px; outline-color: var(--sage); border-radius: 22px; }
/* Метки на фото — в стиле чипсов блока «Инфраструктура комплекса»: светлое стекло с тонкой обводкой */
.gallery__tag {
  position: absolute;
  left: 18px; bottom: 18px;
  display: inline-flex; gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
}
.gallery__tag--sm { left: 16px; bottom: 16px; }
.gallery__tag span { opacity: .7; }

/* Полноэкранная лента */
.feed {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #09121D;
  color: var(--ivory);
  font-family: var(--font-head);
}
.feed::backdrop { background: #09121D; }
.feed__bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  background: rgba(9, 18, 29, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.feed__back {
  width: 48px; height: 48px; padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(242, 237, 227, .25);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s;
}
.feed__back:hover { background: rgba(242, 237, 227, .1); }
.feed__title { font-size: 15px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.feed__spacer { width: 48px; }
.feed__body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px clamp(0px, 2vw, 24px) 40px;
  display: flex; flex-direction: column; gap: 56px;
}
.feed__section { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 100px; }
.feed__heading { padding-inline: clamp(16px, 2vw, 0px); font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; }
.feed__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.feed__photo { aspect-ratio: 4 / 3; }
.feed__photo--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.feed__photo img { object-fit: cover; }
.feed__cta {
  position: sticky; bottom: 0;
  display: flex; justify-content: center; gap: 12px;
  padding: 16px clamp(16px, 4vw, 48px) 24px;
  background: linear-gradient(0deg, rgba(9, 18, 29, .95) 40%, rgba(9, 18, 29, 0));
}
.feed__cta .btn { max-width: 380px; min-height: 56px; gap: 10px; }

/* ---------- 04 Расположение (ровно один экран) ---------- */
.location {
  height: 100vh;
  min-height: 680px;
  max-height: 1200px;
  padding: calc(72px + clamp(12px, 3vh, 40px)) var(--gutter) clamp(20px, 4vh, 48px); /* сверху — место под закреплённую шапку */
  background: var(--night);
  color: var(--ivory);
  overflow: hidden; /* контур острова выходит за viewBox — обрезаем по секции */
}
.location__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
}
.location__info { display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 26px); }
.location__title { font-size: var(--h2-section); line-height: 1.04; }
.location__lead { font-size: 17px; line-height: 1.6; color: #BDB8A8; }
.location__list { display: flex; flex-direction: column; border-top: 1px solid rgba(242, 237, 227, .12); }
.location__item {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  min-height: clamp(44px, 5.8vh, 56px);
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(242, 237, 227, .12);
  border-left: 2px solid transparent;
  background: transparent;
  color: #BDB8A8;
  text-align: left;
  transition: background-color .25s, border-color .25s, color .25s;
}
.location__item:hover { background: rgba(242, 237, 227, .06); }
.location__item[aria-pressed="true"] { border-left-color: var(--sage); background: rgba(146, 182, 223, .08); color: #F7F1E3; }
.location__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgba(242, 237, 227, .35); transition: background-color .25s; }
.location__item[aria-pressed="true"] .location__dot { background: var(--sage); }
.location__name { flex: 1; font-size: 16px; }
.location__time { font-family: var(--font-head); font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
.location__address { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.55; color: #9A9585; }
.location__address .icon { margin-top: 2px; color: var(--sage); }

.location__mapcol {
  position: relative;
  height: 100%;
  min-width: 0;
  display: flex; align-items: center; justify-content: center;
}

/* Карта вписывается в высоту экрана, ширина — по пропорции острова */
.map { position: relative; height: 100%; max-width: 100%; aspect-ratio: 595 / 840; }
.map-cards { display: none; } /* карусель — только на телефоне */
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__overlay { overflow: hidden; will-change: transform; }
.map__land { fill: #152538; }
/* пунктирные кольца вокруг MORI — белые, хорошо заметные, к краю чуть бледнее */
.map__rings circle { fill: none; stroke-width: 1.4; stroke-dasharray: 4 6; stroke-linecap: round; }
.map__rings circle:nth-child(1) { stroke: rgba(255, 255, 255, .6); }
.map__rings circle:nth-child(2) { stroke: rgba(255, 255, 255, .45); }
.map__rings circle:nth-child(3) { stroke: rgba(255, 255, 255, .32); }
.map__route {
  stroke: var(--sage);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity .3s ease;
  animation: dash 1.6s linear infinite;
}
.map__route.is-visible { opacity: 1; }

.map__pin {
  position: absolute;
  width: 12px; height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(9, 17, 27, .9);
  background: #C9BFA6;
  transform: translate(-50%, -50%);
  transition: transform .3s ease, width .3s, height .3s, background-color .3s, box-shadow .3s;
}
.map__pin::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; } /* увеличенная зона клика */
.map__pin:hover { transform: translate(-50%, -50%) scale(1.25); }
.map__pin[aria-pressed="true"] {
  width: 18px; height: 18px;
  border-color: var(--night);
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(146, 182, 223, .25);
}
.map__label {
  position: absolute;
  transform: translate(-50%, -150%);
  padding: 4px 9px;
  border-radius: 6px;
  color: rgba(242, 237, 227, .65);
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transition: color .3s, background-color .3s;
}
.map__label.is-active { background: rgba(9, 17, 27, .85); color: #F7F1E3; font-size: 13px; }
.map__label--left { transform: translate(calc(-100% - 10px), -50%); }
.map__label--right { transform: translate(10px, -50%); }
.map__label--below { transform: translate(-50%, 50%); }

.map__mori-pulse, .map__mori-dot, .map__mori-label { position: absolute; left: 40%; top: 52.38%; }
.map__mori-pulse {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sage);
  animation: pulse-map 2.4s ease-out infinite;
}
.map__mori-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sage);
  border: 4px solid var(--night);
  box-shadow: 0 0 0 1px var(--sage);
  transform: translate(-50%, -50%);
}
.map__mori-label {
  left: calc(40% + 20px);
  transform: translateY(-50%);
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--sage);
  color: var(--night);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  white-space: nowrap;
  pointer-events: none;
}

/* Карточка места — JS ставит её рядом с выбранной точкой */
.place-card {
  position: absolute;
  z-index: 6;
  left: 0; top: 0;
  width: 280px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(247, 243, 234, .98);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  transform-origin: var(--origin, left center);
}
.place-card.is-animating { animation: card-pop .45s var(--ease) both; }
.place-card[hidden] { display: none; }
.place-card__close {
  position: absolute;
  z-index: 2;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(9, 17, 27, .55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s;
}
.place-card__close:hover { background: rgba(9, 17, 27, .85); }
.place-card__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #294463, #142A44); }
.place-card__photo { width: 100%; height: 100%; object-fit: cover; }
.place-card__photo[hidden] { display: none; }
.place-card__nophoto {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(247, 243, 234, .8);
}
.place-card__nophoto[hidden] { display: none; }
.place-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.place-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.place-card__cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
}
.place-card__cat::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
.place-card__time {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--olive);
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 13px;
  white-space: nowrap;
}
.place-card__name { font-family: var(--font-head); font-weight: 400; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; color: #101F31; }
.place-card__desc { font-size: 14px; line-height: 1.5; color: #354E6B; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.place-card__foot {
  display: flex; align-items: center; gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(25, 43, 63, .12);
  font-size: 13px;
  color: var(--muted-2);
}

/* ---------- 05 Видео ---------- */
.video {
  position: relative;
  height: 820px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.video__bg { position: absolute; inset: 0; overflow: hidden; }
.video__bg picture { height: 100%; } /* иначе на высоком экране телефона фото не тянется на всю секцию */
.video__img {
  object-fit: cover;
  object-position: 50% 45%;
  transform-origin: 60% 40%;
  animation: slow-zoom 22s ease-in-out infinite alternate;
}
.video__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(6, 12, 18, .45) 0%, rgba(6, 12, 18, 0) 62%),
    rgba(6, 12, 18, .42);
}
.video__content {
  position: relative; z-index: 2;
  height: 100%;
  padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  text-align: center;
}
.video__title {
  max-width: 900px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: var(--h2-section);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.video__title strong { font-weight: 500; } /* «Смотрите» — плотно, остальное тонко */
.video__lead { max-width: 560px; font-size: 18px; line-height: 1.6; color: #FFFFFF; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.video__play-wrap { position: relative; width: 104px; height: 104px; margin-top: 24px; }
.video__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  animation: ring 2.2s ease-out infinite;
}
.video__ring--late { animation-delay: 1.1s; }
.video__play {
  position: absolute; inset: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--night);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  transition: transform .3s ease, background-color .3s ease;
}
.video__play svg { margin-left: 4px; }
.video__play:hover { transform: scale(1.08); background: var(--sage); }
.video__credit { position: absolute; z-index: 2; right: 20px; bottom: 16px; font-size: 11px; color: rgba(255,255,255,.8); }

/* ---------- 06 Портфолио (помещается в один экран) ---------- */
.portfolio {
  --pf-pad: clamp(40px, 7vh, 88px);
  padding-block: var(--pf-pad);
  background: var(--ivory);
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 24px;
}
/* высота карточек: не больше экрана за вычетом шапки и отступов секции */
.portfolio__card, .portfolio__media { height: min(600px, calc(100vh - 72px - 2 * var(--pf-pad))); min-height: 440px; }
.portfolio__card {
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--radius-card);
  background: var(--ivory-card);
  border: 1px solid rgba(41, 68, 99, .1);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 32px;
}
.portfolio__top { display: flex; flex-direction: column; gap: 24px; }


/* Файл + кнопка «Скачать» — как «Актуальный прайс-лист» в блоке планировок */
.portfolio__bottom { display: flex; flex-direction: column; gap: 16px; }

.portfolio__media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #3B6BA2;
  isolation: isolate;
}
.portfolio__media picture { position: absolute; inset: 0; }
.portfolio__img { object-fit: cover; object-position: 50% 45%; animation: slow-zoom 18s ease-in-out infinite alternate; }

/* ---------- 07 Инфраструктура комплекса ---------- */
.amenities { padding-block: 110px; background: var(--ivory); }
.amenities .container { display: flex; flex-direction: column; gap: 48px; }
.amenities__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.amenities__lead { max-width: 360px; font-size: 16px; }
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 380px);
  gap: 16px;
}
.amenity {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--slot, var(--olive-dark));
  color: var(--cream);
  isolation: isolate;
}
.amenity--big { grid-row: span 2; }
.amenity__media {
  position: absolute; inset: 0;
  background: var(--slot, var(--olive-dark));
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 28px 32px;
  transition: transform 1.2s var(--ease);
}
.amenity__media:has(.amenity__img) { padding: 0; }
.amenity__media picture { position: absolute; inset: 0; }
.amenity__img { width: 100%; height: 100%; object-fit: cover; }
.amenity__placeholder { font-family: var(--font-head); font-size: 15px; letter-spacing: .1em; color: rgba(242, 237, 227, .8); }
.amenity::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(9, 17, 27, .92) 0%, rgba(9, 17, 27, .6) 38%, rgba(9, 17, 27, .12) 70%, rgba(9, 17, 27, 0) 100%);
  pointer-events: none;
}
.amenity--big::after { background: linear-gradient(0deg, rgba(9, 17, 27, .92) 0%, rgba(9, 17, 27, .6) 30%, rgba(9, 17, 27, .12) 60%, rgba(9, 17, 27, 0) 100%); }
.amenity:hover .amenity__media { transform: scale(1.06); }
.amenity__body {
  position: absolute; z-index: 1;
  left: 0; right: 0; bottom: 0;
  padding: clamp(22px, 2.6vw, 34px);
  display: flex; flex-direction: column; gap: 14px;
}
.amenity--big .amenity__body { padding: clamp(24px, 3vw, 40px); gap: 16px; }
.amenity__title { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -.03em; }
.amenity--big .amenity__title { font-size: clamp(32px, 3.4vw, 48px); }
.amenity__chips { display: flex; flex-wrap: wrap; gap: 8px; transition: transform .5s ease; }
.amenity:hover .amenity__chips { transform: translateY(-4px); }
.amenity__chips li {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px;
}
.amenity--big .amenity__chips li { padding: 9px 14px; }

/* ---------- 08 Планировки ---------- */
.plans { padding-block: clamp(64px, 9vh, 110px); background: var(--ivory); }
.plans__inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.plans__card {
  flex: 1 1 380px;
  max-width: 460px;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-card);
  background: var(--ivory-card);
  border: 1px solid rgba(41, 68, 99, .12);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 28px;
}
.plans__top { display: flex; flex-direction: column; gap: 22px; }
.plans__top .h2 { font-size: var(--h2-section); line-height: 1.04; letter-spacing: -.035em; }
.plans__bottom { display: flex; flex-direction: column; gap: 16px; }
.plans__live, .file__live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #2C5E98; animation: blink 1.8s ease-in-out infinite; }

.plans__grid {
  flex: 999 1 560px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.plan { position: relative; overflow: hidden; isolation: isolate; }
.plan__open { display: block; width: 100%; padding: 0; border: 0; background: none; overflow: hidden; cursor: zoom-in; }
.plan__open img { object-fit: cover; transition: transform 1s var(--ease); }
.plan:hover .plan__open img { transform: scale(1.04); }
.plan__open:focus-visible { outline-offset: -4px; }

.plan--master { grid-column: span 2; min-height: clamp(220px, 36vh, 360px); border-radius: var(--radius-card); background: #1A2837; }
.plan--master .plan__open { position: absolute; inset: 0; height: 100%; }
.plan--master picture { height: 100%; }
.plan__tags { position: absolute; left: 20px; top: 20px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
/* Плашка на генплане — в стиле плашек инфраструктуры (стекло с размытием) */
.plan__tag {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-size: 14px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.plan--floor {
  border-radius: var(--radius-card-sm);
  background: var(--ivory-card);
  border: 1px solid rgba(41, 68, 99, .12);
  display: flex; flex-direction: column;
}
.plan__open--floor { height: clamp(150px, 24vh, 240px); background: #3A3A38; } /* высоты от экрана — блок помещается целиком на ноутбуке */
.plan__open--floor picture { height: 100%; }
/* на странице планировки чёрно-белые (песочный фон слайдов спорит с палитрой сайта), в лайтбоксе — цветные */
.plan__open--floor img { filter: grayscale(1) brightness(.92) contrast(1.05); }
.plan__caption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px;
  color: var(--ink);
}
.plan__caption span:first-child { font-family: var(--font-head); font-size: 20px; color: var(--muted-2); } /* «1 этаж» — серым, не перетягивает внимание */
.plan__caption span:last-child { font-size: 15px; color: var(--muted-2); }

/* ---------- 09 Слайдер ---------- */
.slider {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--night);
  touch-action: pan-y;
  user-select: none;
}
.slider__track {
  display: flex;
  width: 100%; height: 100%;
  transition: transform .9s cubic-bezier(.65, 0, .25, 1);
  will-change: transform;
}
.slider__track.is-instant { transition: none; }
.slider.is-dragging .slider__track { transition: none; cursor: grabbing; }
.slider__slide { flex: none; width: 100%; height: 100%; }
.slider__slide picture { height: 100%; } /* фото заполняет слайд целиком на любой высоте */
.slider__slide img { object-fit: cover; -webkit-user-drag: none; }

.slider__arrow {
  position: absolute; z-index: 3;
  top: 50%;
  width: 60px; height: 60px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%);
  transition: background-color .25s;
}
.slider__arrow:hover { background: rgba(255, 255, 255, .3); }
.slider__arrow--prev { left: clamp(16px, 3vw, 40px); }
.slider__arrow--next { right: clamp(16px, 3vw, 40px); }

.slider__bars {
  position: absolute; z-index: 3;
  left: 50%; bottom: 32px;
  width: min(320px, 70%);
  display: flex; gap: 8px;
  transform: translateX(-50%);
}
.slider__bar {
  flex: 1;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex; align-items: center;
}
.slider__fill {
  position: relative;
  display: block;
  width: 100%; height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
}
.slider__fill::after {
  content: '';
  position: absolute; inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
}
.slider__bar.is-active .slider__fill::after { animation: bar-fill 6s linear both; }
.slider.is-paused .slider__bar.is-active .slider__fill::after { animation-play-state: paused; }
.slider.is-static .slider__bar.is-active .slider__fill::after { animation: none; transform: none; }

/* ---------- 10 FAQ ---------- */
.faq { padding: 110px var(--gutter); background: var(--ivory); }
.faq__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(48px, 6vw, 80px);
}
.faq__title { text-align: center; }
.faq__list { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(41, 68, 99, .08);
  overflow: hidden;
}
.faq__h { font: inherit; }
.faq__q {
  width: 100%;
  min-height: 84px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 20px 20px 20px 28px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-family: var(--font-head);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.35;
  transition: background-color .25s;
}
.faq__q:hover { background: #FBF9F4; }
.faq__q:focus-visible { outline-offset: -3px; border-radius: 18px; }
.faq__icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #EFEADF;
  color: var(--olive);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s ease, background-color .25s, color .25s;
}
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--olive); color: var(--cream); }
.faq__a { padding: 0 84px 26px 28px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.faq__a:not([hidden]) { animation: drop-in .35s ease both; }

/* ---------- 11 Остались вопросы ---------- */
.ask { padding: 40px 0 110px; background: var(--ivory); }
.ask__card {
  padding: clamp(48px, 7vw, 110px) clamp(24px, 4vw, 64px);
  border-radius: 28px;
  background: var(--ivory-soft);
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
  text-align: center;
}
.ask .h2--display { line-height: 1; }
.ask__soft { color: #4671A2; }
.ask__lead { max-width: 520px; }
.ask__phone {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: .01em;
  color: var(--ink);
  transition: color .2s;
}
.ask__phone:hover { color: var(--olive); }
.ask__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.ask__actions .btn--outline { padding-inline: 26px; border-color: rgba(41, 68, 99, .35); }

/* ---------- 12 Подвал ---------- */
.footer {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
  background: var(--footer);
  color: #fff;
}
.footer :focus-visible { outline-color: #fff; }
.footer__mark { opacity: .09; } /* логотип целиком, вместе со строкой THE VALLEY — без обрезки по высоте */
.footer__mark img { display: block; width: 100%; height: auto; }
.footer__row {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 32px;
}
.footer__logo img { width: 150px; height: auto; }
.footer__nav {
  display: flex; flex-wrap: wrap;
  gap: clamp(20px, 3vw, 44px);
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer__nav a, .footer__phone, .footer__privacy { transition: opacity .2s; }
.footer__nav a:hover, .footer__phone:hover, .footer__privacy:hover { opacity: .75; }
.footer__btn { padding-inline: 34px; letter-spacing: .04em; }
.footer__bottom {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  line-height: 1.6;
}
.footer__legal { max-width: 820px; }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer__phone { font-family: var(--font-head); font-size: 16px; }
.footer__privacy { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Производительность ---------- */
/* Бесконечные анимации вне экрана ставим на паузу (класс ставит js/perf.js) */
.is-offscreen, .is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
/* Первый экран закрыт кругом — Ken Burns и блик больше не видны */
.hero.is-covered .hero__img, .hero.is-covered .hero__glow { animation-play-state: paused; }
/* Скрытый при закрытом круге контент первого экрана не участвует в отрисовке */
.hero.is-covered .hero__content, .hero.is-covered .hero__bg { visibility: hidden; }

/* =========================================================
   6. Планшеты и мобильные
   ========================================================= */

/* Тексты для мыши / для пальца */
.when-touch { display: none; }
@media (hover: none) {
  .when-hover { display: none; }
  .when-touch { display: inline; }
}

/* Бургер и мобильное меню: по умолчанию скрыты */
.header__burger { display: none; }
.mobile-menu[hidden] { display: none; }
html.is-menu-locked { overflow: hidden; }

/* ---------- ≤ 1100: планшеты ---------- */
@media (max-width: 1100px) {
  .location__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plans__card { max-width: none; }
}

/* ---------- ≤ 960: шапка с бургером, секции в одну колонку ---------- */
@media (max-width: 960px) {
  :root { --header-h: 72px; }

  /* Шапка */
  .header__inner { padding: 14px var(--gutter); }
  .header__logo img { width: 116px; }
  .header__nav { display: none; }
  .header__actions { gap: 10px; }
  .header__cta { min-height: 40px; padding: 0 16px; font-size: 13px; }
  .header__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(239, 231, 214, .45);
    border-radius: 50%;
    background: rgba(8, 18, 29, .3);
  }
  .header__burger span {
    display: block; height: 1.5px; border-radius: 2px; background: currentColor;
    transition: transform .3s var(--ease);
  }
  .header.is-menu-open .header__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .header.is-menu-open .header__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  /* backdrop-filter сделал бы шапку «рамкой» для fixed-меню — при открытом меню отключаем */
  .header.is-menu-open { background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 39; /* под шапкой (40), над страницей */
    padding: calc(var(--header-h) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--night);
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    overflow-y: auto;
    animation: fade-in .3s ease both;
  }
  .mobile-menu__nav { display: flex; flex-direction: column; }
  .mobile-menu__nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(242, 237, 227, .12);
    font-family: var(--font-head);
    font-size: 28px;
    letter-spacing: -.02em;
    color: var(--cream);
  }
  .mobile-menu__foot { display: flex; flex-direction: column; gap: 16px; }
  .header .lang { display: none; } /* на телефоне язык переключается в меню */
  .lang--menu { display: flex; align-self: flex-start; margin-bottom: 8px; border-color: rgba(242, 237, 227, .25); }
  .lang--menu .lang__link { padding: 9px 16px; font-size: 14px; letter-spacing: .02em; }
  .mobile-menu__phone { font-family: var(--font-head); font-size: 22px; color: var(--cream); }

  /* Первый экран */
  html.js .intro__stage { height: 100vh; height: 100svh; min-height: 560px; }
  html.js .intro { height: calc(100svh + var(--intro-scroll, 140vh)); }
  html.js .intro .hero__content { padding-top: calc(var(--header-h) + 120px); }
  .hero__content { gap: 24px; padding-bottom: 24px; }
  .hero__text { gap: 14px; }
  .hero__title { font-size: clamp(26px, 7.2vw, 44px); line-height: 1.1; }
  /* на телефоне текст выше — градиент поднимается выше */
  .hero__shade--v {
    background: linear-gradient(0deg,
      rgba(6, 13, 20, .72) 0%, rgba(6, 13, 20, .5) 28%, rgba(6, 13, 20, .18) 48%,
      rgba(6, 13, 20, 0) 62%);
  }
  .hero__lead { font-size: 15px; }
  .hero__glow { width: 320px; height: 320px; }
  .hero__facts {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
  }
  .hero__fact { gap: 14px; }
  .hero__fact-icon { width: 42px; height: 42px; border-radius: 12px; }
  .hero__fact-icon svg { width: 20px; height: 20px; }
  .hero__fact-body { gap: 1px; }
  .hero__fact-body strong { font-size: 15px; }
  .hero__fact-body span { font-size: 13px; }

  /* О проекте */
  .about { min-height: 0; padding: 96px 20px; }
  html.js .intro .about { padding: var(--header-h) 20px 24px; }
  .about__eyebrow { font-size: 14px; }
  .about__logo { margin-top: 32px; }
  .about__line { margin-top: 48px; }
  .about__text { margin-top: 28px; font-size: 14px; line-height: 1.7; }

  /* Галерея */
  .gallery { padding-block: 56px 64px; }
  .gallery__track { height: 380px; gap: 8px; }
  .gallery__tile--xl { width: min(82vw, 520px); }
  .gallery__tile--lg { width: min(74vw, 440px); }
  .gallery__stack { width: min(62vw, 300px); gap: 8px; }
  .gallery__tile, .gallery__tile:focus-visible { border-radius: 16px; }
  .gallery__tag { left: 12px; bottom: 12px; padding: 7px 11px; font-size: 13px; }
  .feed__body { gap: 36px; }
  .feed__cta { flex-direction: column; align-items: center; }
  .feed__cta .btn { width: 100%; }

  /* Карта: колонкой, высота по содержимому */
  .location { height: auto; min-height: 0; max-height: none; padding: 72px var(--gutter) 56px; }
  .location__inner { display: flex; flex-direction: column; align-items: stretch; height: auto; gap: 32px; }
  .location__lead { font-size: 15px; }
  .location__item { min-height: 52px; }
  .location__mapcol { height: auto; flex-direction: column; align-items: center; }
  .map { width: 100%; max-width: 460px; height: auto; }
  .location .map__svg { overflow: hidden; } /* северная часть острова не налезает на список */
  /* карточка места — под картой, во всю ширину */
  .place-card {
    position: relative;
    left: auto !important; top: auto !important;
    width: 100%;
    max-width: 460px;
    margin-top: 16px;
  }
  .place-card__media { aspect-ratio: 16 / 8; }

  /* Телефон — как в Long Term Rentals: без списка и всплывающей карточки; под картой карусель карточек,
     низ карты уходит в затемнение, карточки чуть заходят на карту. Активная карточка рисует путь на карте */
  .location__list, .location .place-card, .location__lead { display: none !important; } /* подсказка «Листайте карточки…» на телефоне лишняя */
  .location__inner { gap: 20px; }
  .map::after {
    content: ''; position: absolute; left: -40px; right: -40px; bottom: 0; height: 34%; pointer-events: none; z-index: 2;
    background: linear-gradient(180deg, rgba(9, 17, 27, 0) 0%, rgba(9, 17, 27, .8) 55%, var(--night) 100%);
  }
  .location__mapcol { width: 100%; }
  .map-cards {
    --card-w: min(320px, 84vw);
    display: block; position: relative; z-index: 5;
    width: calc(100% + 2 * var(--gutter)); margin: -96px calc(-1 * var(--gutter)) 0;
  }
  .map-cards__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 var(--gutter) 10px; }
  .map-cards__hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(242, 237, 227, .7); }
  .map-cards__arrows { display: flex; gap: 8px; }
  .map-cards__arrow {
    display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 50%;
    border: 1px solid rgba(242, 237, 227, .35); background: rgba(9, 17, 27, .6); color: var(--ivory); cursor: pointer;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-tap-highlight-color: transparent;
  }
  .map-cards__arrow:active { background: rgba(242, 237, 227, .15); }
  .map-cards__track {
    display: flex; gap: 10px; margin: 0; padding: 0 calc((100% - var(--card-w)) / 2) 4px; list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .map-cards__track::-webkit-scrollbar { display: none; }
  .map-card {
    flex: none; width: var(--card-w); scroll-snap-align: center;
    display: flex; gap: 12px; padding: 12px; border-radius: 18px;
    background: var(--ivory-card, #F7F3EA); color: #101F31; box-shadow: 0 -6px 30px rgba(0, 0, 0, .35);
    position: relative; transform: scale(.96); transition: transform .3s ease; cursor: pointer;
  }
  /* соседние карточки приглушены вуалью */
  .map-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: var(--night); opacity: .45; transition: opacity .3s ease;
  }
  .map-card[aria-current="true"] { transform: none; }
  .map-card[aria-current="true"]::after { opacity: 0; }
  .map-card__photo { flex: none; width: 88px; height: 104px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #294463, #142A44); }
  .map-card__photo img { width: 100%; height: 100%; object-fit: cover; }
  .map-card__body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
  .map-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .map-card__cat { min-width: 0; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--footer); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .map-card__num { flex: none; font-size: 11px; color: #6685A8; }
  .map-card__name { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: 18px; line-height: 1.15; color: #101F31; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .map-card__desc { margin: 0; font-size: 12.5px; line-height: 1.45; color: #354E6B; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  /* подписи «слева» на узком экране обрезаются краем — ставим их над точкой */
  .location .map__label--left { transform: translate(-50%, -150%); }
  .map__label.is-active { z-index: 3; }
  .map-card__time { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; background: #EBE5D7; font-size: 12px; color: #223953; white-space: nowrap; }

  /* Видео */
  .video { height: 100vh; height: 100svh; min-height: 520px; max-height: 760px; }
  .video__lead { font-size: 16px; }
  .video__play-wrap { width: 88px; height: 88px; margin-top: 12px; }

  /* Портфолио */
  .portfolio { --pf-pad: 56px; }
  .portfolio__card, .portfolio__media { height: auto; min-height: 0; }
  .portfolio__card { gap: 32px; }
  .portfolio__media { aspect-ratio: 4 / 3; }
  @media (max-width: 600px) { .portfolio__media { aspect-ratio: 16 / 10; } } /* на телефоне фото ниже — блок помещается в экран */

  /* Инфраструктура */
  .amenities { padding-block: 64px; }
  .amenities .container { gap: 32px; }
  .amenities__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* на мобильных карточки — горизонтальная лента со свайпом; следующая карточка выглядывает справа */
  .amenities__grid {
    display: flex; gap: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .amenities__grid::-webkit-scrollbar { display: none; }
  .amenity, .amenity--big { flex: 0 0 86%; min-height: 460px; scroll-snap-align: start; }
  /* карточки справа за краем экрана не попадают в зону появления — показываем их сразу */
  html.js .amenities__grid [data-reveal] { opacity: 1; transform: none; }

  /* Планировки */
  .plans { padding-block: 64px; }
  .plans__inner { flex-direction: column; }
  .plans__card, .plans__grid { flex: none; width: 100%; }
  .plan--master { min-height: 240px; }

  /* Слайдер */
  .slider { height: 70vh; height: 70svh; min-height: 420px; }
  .slider__arrow { width: 44px; height: 44px; }
  .slider__bars { bottom: 20px; }

  /* FAQ */
  .faq { padding-block: 64px; }
  .faq__q { min-height: 68px; padding: 16px 14px 16px 20px; gap: 14px; font-size: 16px; }
  .faq__icon { width: 40px; height: 40px; }
  .faq__a { padding: 0 20px 22px; font-size: 15px; }

  /* Остались вопросы */
  .ask { padding: 16px 0 64px; }
  .ask__card { border-radius: 22px; gap: 20px; }
  .ask__lead { font-size: 16px; }
  .ask__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 420px; }

  /* Подвал */
  .footer { padding: 48px 0 32px; }
  .footer__row { margin-top: 32px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__nav { gap: 12px 20px; font-size: 13px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- ≤ 600: телефоны ---------- */
@media (max-width: 600px) {
  .header__cta .icon { display: none; }
  .hero__content { padding-bottom: 16px; gap: 20px; }
  .hero__facts { gap: 10px; padding: 14px 16px; }
  .hero__fact-icon { width: 38px; height: 38px; border-radius: 10px; }
  .hero__fact-body strong { font-size: 14px; }
  .hero__fact-body span { font-size: 12.5px; }
  .btn--lg { min-height: 54px; padding: 0 22px; }
  .portfolio__card { padding: 24px 20px; }
  .plans__card { padding: 24px 20px; }
  /* генплан во всю ширину, под ним два этажа рядом — всё в одном экране телефона */
  .plans__lead { font-size: 14px; line-height: 1.5; }
  .plans__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .plan--master { grid-column: span 2; min-height: 150px; }
  .plan__open--floor { height: 96px; }
  /* карточка с кнопкой компактнее: блок целиком помещается в экран телефона с панелями Safari */
  .plans__card { padding: 22px 20px; gap: 18px; }
  .plans__top { gap: 12px; }
  .plans__bottom { gap: 10px; }
  .plans .file--boxed { padding: 12px 14px; }
  .plans__bottom .btn--xl { min-height: 52px; padding-block: 14px; }
  .plan__caption { padding: 10px 12px; gap: 6px; flex-wrap: wrap; }
  .plan__caption span:first-child { font-size: 15px; }
  .plan__caption span:last-child { font-size: 12px; }
  .file--boxed { padding: 14px 16px; }
  .file__name { font-size: 15px; }
  .amenity__body { padding: 20px; }
  .amenity, .amenity--big { flex-basis: 88%; min-height: 420px; }
  .amenity__chips li { font-size: 13px; padding: 7px 11px; }
}

/* =========================================================
   5. Уменьшенное движение
   ========================================================= */
/* html.force-motion (?motion=on в адресе) отменяет эти правила — для просмотра анимаций */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html:not(.force-motion) :is(.hero__img, .video__img, .portfolio__img) { animation: none !important; transform: none !important; }
  html:not(.force-motion) :is(.hero__glow, .video__ring, .map__mori-pulse, .plans__live, .file__live, .map__route) { animation: none !important; }
  html.js:not(.force-motion) [data-reveal] { opacity: 1; transform: none; }
  html:not(.force-motion) .hero__curtain { display: none; }
  /* без анимации круга «О проекте» просто перекрывает первый экран своим фоном */
  html.js:not(.force-motion) .intro .about { background: var(--olive); visibility: hidden; }
  html.js:not(.force-motion) .intro .about.is-in { visibility: visible; }
}

/* ---------- Китайская версия: системные шрифты с иероглифами, без отрицательного трекинга ---------- */
html:lang(zh-CN) body, html:lang(zh-CN) :is(h1, h2, h3, .btn, .eyebrow, .hero__title, .h2, .video__title, .amenity__title, .place-card__name, .map-card__name) {
  font-family: "Onest", "Manrope", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
html:lang(zh-CN) :is(h1, h2, h3, .hero__title, .h2, .video__title, .amenity__title) { letter-spacing: 0; }
html:lang(zh-CN) :is(.hero__title, .h2, .video__title) { line-height: 1.25; }
html:lang(zh-CN) .eyebrow { letter-spacing: .12em; }


/* ---------- Плашка согласия на cookie ---------- */
.cookie {
  position: fixed; z-index: 70; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 560px; margin-inline: auto;
  display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px;
  border-radius: 18px; background: var(--ivory-card); color: var(--ink);
  border: 1px solid rgba(41, 68, 99, .14); box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
  animation: fade-in .4s ease both;
}
.cookie__text { flex: 1; font-size: 13px; line-height: 1.45; color: var(--muted-2); }
.cookie__btns { display: flex; gap: 8px; flex: none; }
.cookie__btn { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn--outline-dark { border-color: rgba(41, 68, 99, .3); color: var(--ink); background: transparent; }
.btn--outline-dark:hover { border-color: var(--olive); }
.footer__cookie { padding: 0; border: 0; background: none; font-size: 13px; opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .cookie__btns .btn { flex: 1; }
}

/* ===================== BRISA PATONG ===================== */
/* Текстовый логотип: BRISA + PATONG BY SANSIRI (вместо картинок MORI) */
.brand { display: inline-flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 300; font-size: 26px; letter-spacing: .3em; margin-right: -.3em; }
.brand__sub { margin-top: 5px; font-family: var(--font-body); font-weight: 600; font-size: 7.5px; letter-spacing: .32em; margin-right: -.32em; opacity: .85; }
.header__logo.brand { color: #fff; }
.about__logo.brand { line-height: 1; color: var(--ink); }
.brand--xl .brand__name { font-size: clamp(56px, 11vw, 132px); }
.brand--xl .brand__sub { font-size: clamp(11px, 1.6vw, 18px); margin-top: clamp(10px, 1.4vw, 18px); }
.footer__mark.brand { display: flex; width: 100%; }
.brand--mark .brand__name { font-size: clamp(64px, 19vw, 300px); }
.brand--mark .brand__sub { font-size: clamp(12px, 2.4vw, 38px); }
.footer__logo.brand .brand__name { font-size: 24px; }
@media (max-width: 960px) {
  .header__logo.brand .brand__name { font-size: 21px; }
  .header__logo.brand .brand__sub { font-size: 6.5px; margin-top: 4px; }
}

/* Карта, приближенная к Патонгу: линии не толстеют от масштаба */
.map--zoom .map__svg * { vector-effect: non-scaling-stroke; }
.map--zoom .map__land { stroke: #152538; stroke-width: 1; stroke-linejoin: round; }

/* Блок «Район» без видео — только фото и текст */
.video--photo .video__content { padding-bottom: 0; }

/* Типы апартаментов вместо поэтажных планов */
.plan--unit {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: clamp(16px, 2vh, 24px) 22px; border-radius: var(--radius-card);
  background: #F1EDE4; border: 1px solid rgba(0, 0, 0, .06);
}
.unit__type { margin: 0; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.unit__size { margin: 0; font-family: var(--font-head); font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; color: var(--ink); white-space: nowrap; }
.unit__note { margin: 0; font-size: 14px; color: var(--muted-2); }
@media (max-width: 700px) {
  .plan--unit { padding: 14px; gap: 4px; }
  .unit__type { font-size: 11px; }
  .unit__size { font-size: 19px; }
  .unit__note { font-size: 12px; }
}
/* Телефон: на приближенной карте точки стоят плотно — показываем подпись только активного места, над точкой;
   подпись BRISA PATONG — под точкой, чтобы не уходила за правый край */
@media (max-width: 960px) {
  .map--zoom .map__label:not(.is-active) { opacity: 0; }
  .location .map--zoom .map__label--right, .location .map--zoom .map__label--below { transform: translate(-50%, -150%); }
  .map--zoom .map__mori-label { margin-left: -20px; transform: translate(-50%, 16px); }
}

/* BRISA: светлый фасад за заголовком — затемнение сильнее и выше, плюс слева */
.hero__shade--v {
  background:
    linear-gradient(90deg, rgba(6, 13, 20, .5) 0%, rgba(6, 13, 20, .22) 45%, rgba(6, 13, 20, 0) 70%),
    linear-gradient(0deg, rgba(6, 13, 20, .72) 0%, rgba(6, 13, 20, .55) 24%, rgba(6, 13, 20, .3) 44%, rgba(6, 13, 20, 0) 64%);
}
.hero__title, .hero__lead { text-shadow: 0 2px 18px rgba(6, 13, 20, .45); }
@media (max-width: 960px) {
  .hero__shade--v {
    background: linear-gradient(0deg, rgba(6, 13, 20, .78) 0%, rgba(6, 13, 20, .6) 30%, rgba(6, 13, 20, .3) 50%, rgba(6, 13, 20, 0) 66%);
  }
}

/* ===== BRISA: палитра «море + солнце» — синие тона вместо зелёных, жёлтый акцент ===== */
:root {
  --sun: #CED875;        /* лаймово-жёлтый из презентации Sansiri */
  --sun-dark: #BCC75E;
  --sea: #8EAFCB;        /* голубой фон слайда */
}
/* «Узнать цену» — жёлтая; из неё вырастает жёлтый экран с логотипом */
.header__cta.btn--olive { background: var(--sun); color: var(--olive-deep); }
.header__cta.btn--olive:hover { background: var(--sun-dark); }
.intro-morph { background: var(--sun); }
.about { background: var(--sun); color: var(--olive-deep); }
html.js .intro .about.is-filled { background: var(--sun); }
@media (prefers-reduced-motion: reduce) { html.js:not(.force-motion) .intro .about { background: var(--sun); } }
.about__logo.brand { color: var(--olive-deep); }
.about__line { background: rgba(20, 42, 68, .45); }
.header.is-scrolled { background: rgba(20, 42, 68, .9); }
.about__logo img { width: min(640px, 82vw); height: auto; }

/* ===== BRISA: первый экран как «небо → дом» =====
   Фото выше экрана на --reveal (задаёт js/hero.js); сначала видно небо с логотипом по центру,
   при прокрутке фото уезжает вверх и открывается дом. */
.hero { --reveal: 0px; }
.hero__bg { inset: 0 0 auto; height: calc(100% + var(--reveal)); will-change: translate; }
.hero__img { object-position: 50% 100%; transform-origin: 50% 100%; animation: none; }
.hero__glow { top: 4%; right: 12%; }
.hero__content { justify-content: space-between; padding-top: calc(var(--header-h) + clamp(24px, 6vh, 80px)); }
.hero__text { align-items: center; text-align: center; gap: 18px; margin-inline: auto; max-width: 860px; will-change: translate, opacity; }
.hero__logo {
  width: min(560px, 70vw); height: auto;
  filter: drop-shadow(0 6px 24px rgba(20, 42, 68, .25));
  animation: rise 1.2s var(--ease) .7s both;
}
.hero__title {
  margin-top: 10px;
  font-size: clamp(20px, 1.9vw, 30px); line-height: 1.25; letter-spacing: -.01em;
  color: var(--olive-deep); text-shadow: none;
}
.hero__accent { color: var(--olive-deep); }
.hero__lead { font-size: 17px; color: var(--olive-deep); text-shadow: none; }
.hero__lead-accent { font-weight: 700; }
.hero__facts { will-change: translate, opacity; }
/* затемнение — только снизу под плашкой фактов, небо чистое */
.hero__shade--v { background: linear-gradient(0deg, rgba(6, 13, 20, .45) 0%, rgba(6, 13, 20, .15) 22%, rgba(6, 13, 20, 0) 40%); }
@media (max-width: 960px) {
  .hero__shade--v { background: linear-gradient(0deg, rgba(6, 13, 20, .5) 0%, rgba(6, 13, 20, .15) 30%, rgba(6, 13, 20, 0) 45%); }
  .hero__content { padding-top: calc(var(--header-h) + 28px); }
  .hero__logo { width: min(340px, 82vw); }
  .hero__title { font-size: clamp(18px, 5vw, 22px); }
  .hero__lead { font-size: 15px; }
}
/* без логотипа: заголовок — главный элемент на небе */
.hero__title { margin-top: 0; max-width: 1000px; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.12; letter-spacing: -.02em; }
.hero__text { max-width: 1040px; gap: 20px; }
.hero__lead { font-size: 19px; }
@media (max-width: 960px) {
  .hero__title { font-size: clamp(28px, 7.4vw, 36px); }
  .hero__lead { font-size: 16px; }
}

/* ===== BRISA: шапка как у Title Biancana — меню слева, логотип по центру, меню и кнопка справа ===== */
@media (min-width: 961px) {
  .header__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; }
  .header__logo { justify-self: center; }
  .header__right { display: flex; align-items: center; justify-content: flex-end; gap: clamp(24px, 3vw, 56px); }
  .header__nav { gap: clamp(24px, 3.2vw, 64px); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
  .header__logo.brand .brand__name { font-size: 30px; }
  .header__logo.brand .brand__sub { font-size: 8px; margin-top: 6px; }
}
@media (max-width: 960px) {
  .header__right { display: contents; }
}
@media (min-width: 961px) { .header__nav a { white-space: nowrap; } }
@media (min-width: 961px) and (max-width: 1200px) {
  .header__nav { gap: 20px; font-size: 12.5px; letter-spacing: .04em; }
  .header__right { gap: 20px; }
  .header__inner { gap: 20px; }
  .header__cta { padding: 0 16px; }
}
/* заголовок, подзаголовок и меню — белые, без теней */
.hero__title, .hero__accent, .hero__lead { color: #fff; text-shadow: none; }
.header .header__nav a, .header:not(.is-scrolled) .header__nav a { color: #fff; text-shadow: none; }
/* точки в плашке фактов — салатовые, как кнопка «Узнать цену» */
.hero__fact-body span::before { background: var(--sun); }

/* ===== BRISA: ночь → день. Ночной кадр снизу, дневной сверху, видим внутри растущего круга (js/hero.js) ===== */
.hero__bg .hero__layer { position: absolute; inset: 0; height: 100%; }
.hero.is-sunrise .hero__layer--day {
  --sx: 90%; --sy: 0px; --sr: 0px;
  -webkit-mask-image: radial-gradient(circle at var(--sx) var(--sy), #000 calc(var(--sr) * .55), rgba(0,0,0,.6) calc(var(--sr) * .8), transparent var(--sr));
          mask-image: radial-gradient(circle at var(--sx) var(--sy), #000 calc(var(--sr) * .55), rgba(0,0,0,.6) calc(var(--sr) * .8), transparent var(--sr));
}
/* сияние «солнца» — от растущей кнопки; координаты и радиус задаёт js/hero.js */
.hero__sun {
  --sx: 90%; --sy: 0px; --sr: 1px;
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--sx) var(--sy),
    rgba(255, 250, 215, .75) 0, rgba(240, 236, 160, .38) calc(var(--sr) * .25),
    rgba(255, 236, 180, .14) calc(var(--sr) * .6), rgba(255, 236, 180, 0) calc(var(--sr) * .95));
}
/* Заголовок — крупное название, под ним подзаголовок капслоком (как у Title Biancana) */
.hero__title { max-width: none; font-weight: 400; font-size: clamp(40px, 5.4vw, 88px); line-height: 1.02; letter-spacing: .01em; }
.hero__sub {
  max-width: 760px; margin: 0;
  font-family: var(--font-body); font-weight: 500;
  font-size: 15px; line-height: 1.7; letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  animation: rise 1.1s var(--ease) 1.4s both;
}
@media (max-width: 960px) {
  .hero__title { font-size: clamp(34px, 10.4vw, 48px); line-height: 1.05; }
  .hero__sub { font-size: 12.5px; letter-spacing: .12em; line-height: 1.65; }
}
/* Заголовок выезжает снизу, из-под нижней кромки (со стороны ночного дома), при загрузке */
.hero__title-clip { overflow: hidden; padding: .08em .2em .12em; margin: -.08em -.2em -.12em; }
.hero__title { animation: title-rise 1.6s cubic-bezier(.16, 1, .3, 1) .9s both; }
.hero__title .hero__word { animation: none; }
html.js .hero__title:not(.is-split) { animation: title-rise 1.6s cubic-bezier(.16, 1, .3, 1) .9s both; }
@keyframes title-rise { from { transform: translateY(115%); } to { transform: none; } }
.hero__sub { max-width: 820px; animation: rise 1.1s var(--ease) 1.8s both; }
@media (min-width: 961px) { .hero__title { white-space: nowrap; font-size: clamp(40px, 5vw, 88px); } }
@media (prefers-reduced-motion: reduce) { html:not(.force-motion) .hero__title { animation: none; } }

/* ===== BRISA: надпись за домом (как у Hythe by Botanica) ===== */
.hero__bg--front, .hero__bg--day { z-index: 2; pointer-events: none; }
.hero__shade, .hero__sun, .hero__glow { z-index: 2; }
.hero__curtain { z-index: 2; }
.hero__content { z-index: 3; justify-content: flex-end; }
.hero__headline {
  position: absolute; z-index: 1; left: 0; right: 0; top: 30%;
  display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 1.6vw, 24px);
  padding-inline: var(--gutter);
  text-align: center; color: #fff;
  will-change: opacity;
}
.hero__headline .hero__title {
  margin: 0; max-width: none;
  font-weight: 400; font-size: clamp(40px, 6vw, 124px); line-height: 1; letter-spacing: .01em;
  white-space: nowrap;
  animation: title-behind 2s cubic-bezier(.16, 1, .3, 1) 1s both;
}
@keyframes title-behind { from { opacity: 0; transform: translateY(55%); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
.hero__headline .hero__sub { max-width: 820px; animation: rise 1.1s var(--ease) 1.9s both; }
@media (max-width: 960px) {
  .hero__headline .hero__title { white-space: normal; font-size: clamp(38px, 11.5vw, 60px); line-height: 1.02; }
}
@media (prefers-reduced-motion: reduce) { html:not(.force-motion) .hero__headline .hero__title { animation: none; } }

/* Плашка фактов — стекло: дом просвечивает */
.hero__facts {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.hero__fact-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.hero__fact-body strong { color: #fff; }
.hero__fact-body span { color: rgba(255, 255, 255, .78); }
.hero__facts {
  background: rgba(8, 18, 32, .32);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
          backdrop-filter: blur(22px) saturate(130%);
  border-color: rgba(255, 255, 255, .22);
}
/* will-change на родителе делает его «корнем подложки» — стекло перестаёт размывать фото */
.hero__content { will-change: auto; }
.hero__facts { will-change: auto; }
/* заголовок выезжает из-за дома целиком: старт — ниже крыш (--rise считает js/hero.js), финиш — над крышей */
@keyframes title-behind { from { opacity: 0; transform: translateY(var(--rise, 120%)); } 35% { opacity: 1; } to { opacity: 1; transform: none; } }
.hero__headline .hero__title { animation: title-behind 2.2s cubic-bezier(.22, 1, .36, 1) .9s both; }

/* Застройщик: каталог Sansiri на белом фоне — целиком, без обрезки */
.portfolio__media--book { background: #fff; }
.portfolio__media--book .portfolio__img { object-fit: contain; object-position: 50% 50%; }
.portfolio__facts { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 18px; line-height: 1.4; color: var(--ink); }
.portfolio__facts li { display: flex; align-items: center; gap: 12px; }
.portfolio__facts li::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(206, 216, 117, .3); }
.portfolio__facts strong { font-weight: 600; }
@media (max-width: 960px) { .portfolio__facts { font-size: 16px; margin-top: 20px; } }
/* Застройщик: на десктопе всё помещается в карточку — заголовок меньше, отступы плотнее */
@media (min-width: 961px) {
  .portfolio__card .h2 { font-size: clamp(30px, 2.6vw, 42px); line-height: 1.1; letter-spacing: -.025em; }
  .portfolio__card { gap: 20px; padding: clamp(28px, 3vw, 44px); }
  .portfolio__top { gap: 16px; }
  .portfolio__facts { margin-top: 12px; font-size: 17px; gap: 10px; }
}
/* каталог примерно на 30% меньше — по центру белой карточки */
.portfolio__media--book picture { inset: 15%; }
/* «Проект» над логотипом — не выпирает: мелко, с широкой разрядкой, приглушённо, с тонкими линиями по бокам */
.about__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase;
  opacity: .55;
}
.about__eyebrow::before, .about__eyebrow::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
html.js .intro .about.is-in > .about__eyebrow { opacity: .55; }
.about__star { font-size: .7em; vertical-align: super; line-height: 0; margin-left: 1px; }
.about__note {
  margin: 14px 0 0; font-family: var(--font-body);
  font-size: 12px; letter-spacing: .02em; text-transform: none; opacity: .65;
}
html.js .intro .about.is-in > .about__note { opacity: .65; }
@media (max-width: 960px) { .about__eyebrow { font-size: 11px; } .about__note { font-size: 11px; margin-top: 10px; } }
/* текст ближе к логотипу — без пустоты между PATONG BY SANSIRI и описанием */
.about__line { margin-top: 36px; }
.about__text { margin-top: 24px; }
@media (max-width: 960px) { .about__line { margin-top: 28px; } .about__text { margin-top: 20px; } }
.about__text { margin-top: 32px; }
@media (max-width: 960px) { .about__text { margin-top: 24px; } }
/* BRISA: заголовок галереи виден и на десктопе */
.gallery__head { display: flex; margin-bottom: 48px; }
@media (max-width: 960px) { .gallery__head { margin-bottom: 28px; } }

/* ===== BRISA: подробная схема Патонга (по карте Sansiri) в цветах сайта ===== */
.map--street { aspect-ratio: 460 / 386; height: auto; width: 100%; }
.map--street .map__svg { overflow: hidden; border-radius: 20px; }
.map--street .map__overlay { overflow: visible; border-radius: 0; }
.smap__land { fill: #13233A; }
.smap__sand { fill: #3A4152; }
.smap__sea { fill: #1E4E7C; }
.smap__road { fill: #2A3F5A; }
.smap__street { font-family: var(--font-body); font-size: 7px; font-weight: 500; fill: rgba(255, 255, 255, .62); letter-spacing: .02em; dominant-baseline: middle; }
.smap__street--sm { font-size: 5.2px; fill: rgba(255, 255, 255, .5); }
.smap__bay { font-family: var(--font-head); font-size: 15px; font-weight: 300; letter-spacing: .12em; fill: rgba(255, 255, 255, .55); text-anchor: middle; dominant-baseline: middle; }
.smap__lm-dot { fill: rgba(255, 255, 255, .55); }
.smap__lm { font-family: var(--font-body); font-size: 6.4px; fill: rgba(255, 255, 255, .55); }
.map--street .map__rings circle { stroke-width: 1; }
.map--street .map__mori-label { font-size: 13px; }
@media (max-width: 960px) {
  .smap__street { font-size: 8px; }
  .smap__lm { font-size: 7.2px; }
}
/* карта крупнее: список уже, схема занимает основную ширину */
@media (min-width: 961px) {
  .location__inner { max-width: min(var(--wide), 1560px); grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(28px, 3vw, 56px); }
  .location__title { font-size: clamp(34px, 3.2vw, 52px); }
  .map--street { max-height: 100%; width: auto; height: auto; max-width: 100%; aspect-ratio: 460 / 386; }
  .location__mapcol .map--street { width: min(100%, calc((100vh - 150px) * 460 / 386)); }
  .smap__street { font-size: 7.5px; }
  .smap__street--sm { font-size: 5.8px; }
  .smap__lm { font-size: 7px; }
}
@media (max-width: 960px) {
  /* схема улиц: на всю ширину экрана, карусель — под картой, без наезда и затемнения */
  .location .map--street { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); }
  .location .map--street .map__svg { border-radius: 0; }
  .map--street::after { display: none; }
  .map--street + .map-cards { margin-top: 14px; }
}
/* края схемы мягко уходят в фон секции — без жёсткой рамки */
.map--street .smap {
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
          mask-composite: intersect;
}
@media (max-width: 960px) {
  .map--street .smap {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 85%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 85%, transparent 100%);
  }
}
/* море уходит в фон длинным мягким градиентом слева, улицы — короче справа/сверху/снизу */
.map--street .smap {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 8%, #000 26%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 8%, #000 26%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
@media (max-width: 960px) {
  .map--street .smap {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.4) 6%, #000 20%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.4) 6%, #000 20%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
  }
}

/* ===== BRISA: море схемы на десктопе продолжается влево — фоном под текстом секции ===== */
.location { position: relative; --sea-map: #1E4E7C; }
.location__sea { display: none; }
@media (min-width: 961px) {
  .location__sea { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: var(--sea-edge, 0px); background: var(--sea-map); pointer-events: none; }
  .location__inner { position: relative; z-index: 1; }
  /* слева схема больше не растворяется — там её море встречается с морем фона */
  .map--street .smap {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  .location__lead, .location__item, .location__address { color: #D2DCE8; }
  .location__list, .location__item { border-color: rgba(255, 255, 255, .16); }
}
@media (min-width: 961px) {
  .location__sea {
    width: calc(var(--sea-edge, 0px) + 90px);
    background: linear-gradient(90deg, var(--sea-map) 0, var(--sea-map) calc(100% - 150px), rgba(30, 78, 124, 0) 100%);
  }
}
@media (min-width: 961px) {
  /* верхний край схемы — жёсткий, без растворения; низ и правый край по-прежнему мягкие */
  .map--street .smap {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent 100%), linear-gradient(180deg, #000 0, #000 86%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent 100%), linear-gradient(180deg, #000 0, #000 86%, transparent 100%);
  }
}
@media (min-width: 961px) {
  /* схема вплотную к верхнему краю секции (высоту и viewBox задаёт js/map.js): сверху жёстко, снизу и справа мягко */
  .map--street .smap {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent 100%), linear-gradient(180deg, #000 0, #000 calc(100% - 110px), transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 90%, transparent 100%), linear-gradient(180deg, #000 0, #000 calc(100% - 110px), transparent 100%);
  }
}
@media (min-width: 961px) {
  /* схема на весь экран: без растворения по краям — как целая карта */
  .map--street .smap { -webkit-mask-image: none; mask-image: none; }
  .map--street .map__svg.smap { overflow: hidden; }
}
@media (min-width: 961px) { .map--street .map__svg.smap { max-width: none; } }

/* ===== BRISA: презентация с прайсом + условные планировки ===== */
.plan--book { background: #CCC7BA; }
.plan--book .plan__open img { object-fit: cover; object-position: 50% 48%; }
.plan--unit {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto;
  column-gap: 14px; row-gap: 6px; align-content: center;
}
.plan--unit > p { grid-column: 1; }
.unit__plan {
  grid-column: 2; grid-row: 1 / span 3; align-self: center;
  width: auto; height: clamp(84px, 11vh, 112px); max-width: 150px;
  color: var(--olive);
}
.unit__plan .u-w { stroke-width: 2.6; }
.unit__plan .u-f { stroke-width: .9; opacity: .55; }
.unit__plan .u-b { stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.unit__plan .u-t { stroke: none; fill: var(--muted-2); font-family: var(--font-body); font-size: 7.5px; }
.plans__disclaimer { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; color: var(--muted-2); opacity: .8; }
@media (max-width: 700px) {
  .plan--unit { grid-template-columns: 1fr; }
  .unit__plan { grid-column: 1; grid-row: auto; order: -1; height: 70px; max-width: 100%; justify-self: start; margin-bottom: 4px; }
  .plans__disclaimer { font-size: 11px; }
}
.plan--book .plan__open img { object-fit: contain; transform: scale(1.18); }
.plan--book:hover .plan__open img { transform: scale(1.22); }
.plan--book { background: #C9C4B6; }
.plan--book .plan__open img {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
/* Планировки: левая карточка шире — строка «Обновлён 12 ноября 2026 г.» в одну строку; правая колонка уже */
@media (min-width: 961px) {
  .plans__card { flex: 0 1 520px; max-width: 540px; }
  .plans__grid { flex: 1 1 0; }
  .plans__card .file__meta { white-space: nowrap; }
  .plans__card .file__meta time { white-space: nowrap; }
}
@media (min-width: 961px) {
  .plans__card { flex: 0 1 clamp(400px, 33vw, 520px); }
  .plan--unit { padding: clamp(14px, 1.8vh, 22px) clamp(14px, 1.4vw, 22px); column-gap: 10px; }
  .unit__size { font-size: clamp(19px, 1.65vw, 28px); }
  .unit__plan { height: clamp(70px, 9vh, 100px); max-width: 120px; }
}
/* узкий десктоп: схема над цифрами, чтобы не тесниться */
@media (min-width: 961px) and (max-width: 1280px) {
  .plan--unit { grid-template-columns: 1fr; }
  .unit__plan { grid-column: 1; grid-row: auto; order: -1; justify-self: start; height: 64px; margin-bottom: 4px; }
}
/* прайс-лист — просто картинка, без увеличения */
.plan__open--static { cursor: default; position: absolute; inset: 0; height: 100%; }
.plan--book:hover .plan__open img { transform: scale(1.18); }
/* мигающие точки «Обновлён…» и «Формат PDF» — салатовые, как кнопка «Узнать цену» */
.plans__live, .file__live { background: var(--sun); }
/* пункты про проекты Sansiri — без салатовых точек, простые */
.portfolio__facts li::before { width: 6px; height: 6px; background: var(--ink); box-shadow: none; opacity: .55; }

/* ===== BRISA: «Район» в облаках (перенесено с Long Term Rentals) =====
   Раскладка в единицах --u = 1/1440 ширины экрана. Облака заходят на низ карты (clip-path сверху не режет). */
.clouds {
  --u: calc(100vw / 1440);
  position: relative; z-index: 2;
  height: max(720px, calc(1000 * var(--u)));
  background: #fff;
  clip-path: inset(-100vh 0 0 0);
  overflow-x: clip;
}
.clouds__stage { position: absolute; inset: 0; }
/* сверху — продолжение тёмной карты, небо быстро светлеет до белого */
.clouds__sky {
  position: absolute; left: 0; right: 0; top: 0; height: calc(560 * var(--u)); z-index: 0;
  background: linear-gradient(180deg,
    #13233A 0%, #2B4462 6%, #5C7795 13%, #9FB3C7 21%, #D3DEE8 29%, #EEF3F7 36%, #FBFCFD 44%, #FFFFFF 52%, #FFFFFF 100%);
}
.clouds__photo {
  position: absolute; left: 0; top: calc(400 * var(--u)); width: 100%; height: calc(100% - 400 * var(--u));
  object-fit: cover; object-position: center 40%; display: block; z-index: 1;
  transform: scale(var(--zoom, 1)); transform-origin: 50% 0; will-change: transform;
}
.clouds__haze {
  position: absolute; left: 0; right: 0; top: calc(300 * var(--u)); height: calc(320 * var(--u)); z-index: 2;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 14%, rgba(255, 255, 255, .9) 26%, #FFFFFF 34%, #FFFFFF 46%,
    rgba(255, 255, 255, .8) 60%, rgba(255, 255, 255, .45) 78%, rgba(255, 255, 255, .15) 90%, rgba(255, 255, 255, 0) 100%);
}
.cloud {
  position: absolute; left: calc(var(--l) * var(--u)); top: calc(var(--t) * var(--u)); width: calc(var(--w) * var(--u));
  max-width: none; height: auto; pointer-events: none; user-select: none; will-change: transform;
  transform: translate3d(calc(var(--dir) * var(--spread, 0) * var(--kx, 1) * 14vw), calc(var(--sy, 0px) * var(--k, .4)), 0);
  animation: cloudDrift var(--drift-t, 7s) ease-in-out var(--drift-d, 0s) infinite alternate;
}
.cloud--far { z-index: 4; }
.cloud--near { z-index: 5; }
.cloud--flip { scale: -1 1; }
.cloud--1 { --k: .18; --kx: .6;  --drift-t: 9s;   --drift-x: 6vw;    --drift-y: 1.2vw; }
.cloud--2 { --k: .32; --kx: .9;  --drift-t: 11s;  --drift-x: -5.5vw; --drift-y: -1vw;   --drift-d: -3s; }
.cloud--3 { --k: .24; --kx: .7;  --drift-t: 10s;  --drift-x: -6.5vw; --drift-y: 1.1vw;  --drift-d: -1.5s; }
.cloud--4 { --k: .62; --kx: 1.3; --drift-t: 7.5s; --drift-x: 5vw;    --drift-y: -1.4vw; --drift-d: -4s; }
.cloud--5 { --k: .78; --kx: 1.1; --drift-t: 8s;   --drift-x: -5vw;   --drift-y: 1vw;    --drift-d: -2s; }
.cloud--6 { --k: .48; --kx: 1.2; --drift-t: 8.5s; --drift-x: 4.5vw;  --drift-y: -.9vw;  --drift-d: -5s; }
.cloud--7 { --k: .9;  --kx: 1.5; --drift-t: 7s;   --drift-x: -4vw;   --drift-y: 1.2vw;  --drift-d: -2.5s; }
@keyframes cloudDrift { from { translate: 0 0; } to { translate: var(--drift-x, 1.5vw) var(--drift-y, .4vw); } }

/* текст — в белом небе над облаками */
.clouds__content {
  position: absolute; z-index: 8; left: 0; right: 0; top: calc(170 * var(--u));
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding-inline: var(--gutter); text-align: center; color: var(--ink);
}
.clouds__title { margin: 0; max-width: 900px; font-family: var(--font-head); font-weight: 300; font-size: var(--h2-section); line-height: 1.04; letter-spacing: -.03em; color: var(--ink-title); }
.clouds__title strong { font-weight: 500; }
.clouds__lead { margin: 0; max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--muted); }

@media (max-width: 768px) {
  .clouds { height: 92vh; height: 92svh; min-height: 640px; }
  .clouds__sky { height: 58%; }
  .clouds__photo {
    top: 46%; height: 54%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .3) 10%, rgba(0, 0, 0, .75) 22%, #000 34%);
            mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .3) 10%, rgba(0, 0, 0, .75) 22%, #000 34%);
  }
  .clouds__haze { top: 38%; height: 170px; }
  .cloud:not(.cloud--m) { display: none; }
  .cloud--m { width: 140vw; }
  .cloud--1 { left: -55vw; top: -2%; }
  .cloud--3 { left: 15vw; top: 30%; }
  .cloud--5 { left: -30vw; top: 40%; }
  .clouds__content { top: 13%; gap: 14px; }
  .clouds__lead { font-size: 15px; }
}
/* небо начинается ещё на карте: прозрачная дымка над её низом плавно светлеет в белый — без линии стыка */
.clouds__sky {
  top: calc(-180 * var(--u)); height: calc(740 * var(--u));
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%, rgba(240, 245, 250, .12) 10%, rgba(232, 239, 246, .35) 20%, rgba(238, 243, 248, .62) 30%,
    rgba(246, 249, 251, .85) 39%, #FBFCFD 47%, #FFFFFF 55%, #FFFFFF 100%);
}
.clouds { background: transparent; }
.clouds__stage::before { content: ''; position: absolute; left: 0; right: 0; top: calc(560 * var(--u) - 180 * var(--u)); bottom: 0; background: #fff; z-index: 0; }
@media (max-width: 768px) {
  .clouds__sky { top: -90px; height: calc(58% + 90px); }
  .clouds__stage::before { top: 40%; }
}
/* дымка над низом карты становится непрозрачно-белой ровно на границе секций — стыка нет */
.clouds__sky {
  top: calc(-170 * var(--u)); height: calc(170 * var(--u) + 2px);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%, rgba(244, 248, 251, .14) 18%, rgba(240, 245, 249, .34) 36%, rgba(242, 246, 250, .58) 54%,
    rgba(247, 250, 252, .8) 70%, rgba(252, 253, 254, .94) 85%, #FFFFFF 100%);
}
.clouds__stage::before { top: 0; }
@media (max-width: 768px) {
  .clouds__sky { top: -110px; height: 112px; }
  .clouds__stage::before { top: 0; }
}
@media (max-width: 768px) { .clouds__sky { top: -56px; height: 58px; } .clouds .cloud--1 { top: 0; } }
/* «Обновлён 12 ноября 2026 г.» — в одну строку и на телефоне */
.plans__card .file__meta, .plans__card .file__meta time { white-space: nowrap; }
@media (max-width: 700px) { .plans__card .file__meta { font-size: 12px; } }
/* облака чуть ниже: меньше заходят на карту, дымка над картой короче */
.clouds__sky { top: calc(-90 * var(--u)); height: calc(90 * var(--u) + 2px); }
.clouds__lead strong { font-weight: 600; color: var(--ink); }
.clouds__lead sup { font-size: .7em; line-height: 0; }
.clouds__note { margin: -6px 0 0; font-size: 12px; color: var(--muted); opacity: .8; }
@media (min-width: 769px) {
  .clouds__content { top: calc(130 * var(--u)); gap: 16px; }
  .clouds__title { max-width: 1080px; }
  .clouds__lead { max-width: 720px; }
}
/* облака снова густые и заходят на карту, а белая дымка над картой — короткая и низко */
.clouds__sky { top: calc(-60 * var(--u)); height: calc(60 * var(--u) + 2px); }
@media (max-width: 768px) { .clouds { height: 92vh; height: 92svh; min-height: 640px; } .clouds__sky { top: -40px; height: 42px; } }
.location__title { font-weight: 300; }
.location__title strong { font-weight: 500; }
/* якорь «Расположение»: секция встаёт ровно к верху экрана (свой отступ под шапку у неё уже есть) — без полосы светлого блока сверху */
#location { scroll-margin-top: 0; }
#location { scroll-margin-top: calc(-1 * var(--header-h)); } /* гасим общий scroll-padding — секция встаёт к самому верху, шапка лежит на её отступе */

/* ===== Планировки и цены: главное — кнопка, остальное приглушено ===== */
/* карточки квартир — светлые, отделены от фона, но спокойные */
.plan--unit { background: rgba(255, 255, 255, .55); border: 1px solid rgba(20, 42, 68, .07); box-shadow: none; }
.unit__type { color: var(--muted-2); opacity: .8; font-weight: 500; letter-spacing: .06em; }
.unit__size { color: var(--muted); }
.unit__plan { color: var(--muted-2); opacity: .55; }
.unit__plan .u-t { fill: var(--muted-2); }
.plans__disclaimer { opacity: .65; }
/* файл «Актуальный прайс-лист» — тише */
.plans__card .file--boxed { background: rgba(20, 42, 68, .035); border-color: transparent; }
.plans__card .file__name { color: var(--muted); }
.plans__lead { color: var(--muted-2); }
/* кнопка «Скачать» — главный акцент блока */
.plans__card .btn--xl { min-height: 64px; font-size: 18px; font-weight: 600; box-shadow: 0 14px 34px rgba(20, 42, 68, .28); }
.plans__card .btn--xl:hover { box-shadow: 0 18px 40px rgba(20, 42, 68, .36); }
@media (max-width: 700px) { .unit__type { font-size: 10px; letter-spacing: .04em; white-space: nowrap; } }
/* плашки файлов и кнопки «Скачать» — одинаковые в блоках «Планировки и цены» и «Застройщик» */
.plans__card .file--boxed, .portfolio__card .file--boxed { background: #EBE5D7; border: 1px solid rgba(20, 42, 68, .06); }
.plans__card .file__name, .portfolio__card .file__name { color: var(--ink); }
.plans__card .btn--xl, .portfolio__card .btn--xl { min-height: 64px; font-size: 18px; font-weight: 600; box-shadow: 0 14px 34px rgba(20, 42, 68, .28); }
.plans__card .btn--xl:hover, .portfolio__card .btn--xl:hover { box-shadow: 0 18px 40px rgba(20, 42, 68, .36); }
/* «3 корпуса · 389 апартаментов» — тёмное стекло, как чипы «Бассейн / Фитнес-зал / Сауна» на фото */
.plan--book .plan__tag {
  padding: 8px 14px; font-size: 14px; color: #fff;
  background: rgba(8, 18, 32, .42);
  border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
/* карточки планировок — серые, фоном; по нажатию — запрос прайса и планировок (как кнопка «Скачать») */
a.plan--unit { color: inherit; text-decoration: none; cursor: pointer; transition: background-color .25s, border-color .25s; }
a.plan--unit:hover { background: rgba(255, 255, 255, .85); border-color: rgba(0, 0, 0, .1); }
.plan--unit .unit__type, .plan--unit .unit__size { color: #8C8A84; }
.plan--unit .unit__plan { color: #A3A19B; opacity: .7; }
.plan--unit .unit__plan .u-t { fill: #A3A19B; }
