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

/* ---------- 1. Токены ---------- */
:root {
  --olive: #4A4F3D;
  --olive-dark: #3E4334;
  --olive-deep: #2E3424;
  --footer: #6F775F;
  --ivory: #F2EDE3;
  --ivory-card: #F9F6EF;
  --ivory-soft: #E9E3D5;
  --ink: #2E3226;
  --ink-title: #3A3E2F;
  --muted: #5E6252;
  /* В дизайне #6E7360 — на светлом фоне даёт 4.2:1; затемнён до AA (≥4.5:1) */
  --muted-2: #666B58;
  /* Акценты — только зелёные, как в блоке «Планировки и участки»:
     --olive — тёмно-зелёный (на светлом фоне), --sage — светло-зелёный (на тёмном фоне и фото) */
  --sage: #C3CDA4;
  --night: #12150F;
  --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; }
.h2--lg { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.035em; }
.h2--xl { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; 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(15, 22, 17, .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(74, 79, 61, .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: #15170F; font-weight: 500; }
.btn--sage { background: var(--sage); color: #15170F; 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(74, 79, 61, .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(8, 10, 7, .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(8, 10, 7, .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: #1C2017;
}
.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 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(18, 21, 15, .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 { transition: opacity .45s ease, translate .45s ease; }
.header.is-morphing .header__logo, .header.is-morphing .header__nav, .header.is-morphing .header__burger {
  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; }
.header__nav a:hover { color: #fff; }
.header__actions { display: flex; align-items: center; gap: 20px; }
.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: #0F1611;
  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(180deg,
    rgba(10,16,12,.55) 0%, rgba(10,16,12,0) 20%, rgba(10,16,12,.08) 34%,
    rgba(10,16,12,.55) 52%, rgba(10,16,12,.82) 72%, rgba(10,16,12,.95) 100%);
}
.hero__shade--h { background: linear-gradient(90deg, rgba(10,16,12,.72) 0%, rgba(10,16,12,.4) 38%, rgba(10,16,12,0) 68%); }
.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;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .35);
}
.hero__lead-accent { font-weight: 600; color: #FFFFFF; }
/* Заголовок: «MORI THE VALLEY:» — плотный, остальной текст тонкий; всё светлое */
.hero__title { font-weight: 300; }
.hero__accent { font-weight: 500; color: #FFFFFF; }
.hero__lead { max-width: 540px; font-size: 18px; line-height: 1.6; color: #EDE6D6; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

/* Плашка фактов — в стиле карточки «Актуальный прайс-лист»: бежевая подложка, иконки в скруглённых квадратах */
.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(74, 79, 61, .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(79, 138, 58, .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 .45s ease, transform .45s 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__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: #2E3226;
  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: #15170F;
  color: var(--ivory);
  font-family: var(--font-head);
}
.feed::backdrop { background: #15170F; }
.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(21, 23, 15, .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(21,23,15,.95) 40%, rgba(21,23,15,0));
}
.feed__cta .btn { max-width: 340px; min-height: 56px; }

/* ---------- 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: clamp(34px, min(3.7vw, 6.2vh), 56px); }
.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(195, 205, 164, .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__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__overlay { overflow: hidden; will-change: transform; }
.map__land { fill: #272C21; }
/* пунктирные кольца вокруг 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(18, 21, 15, .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(195, 205, 164, .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(18, 21, 15, .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(18, 21, 15, .55);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s;
}
.place-card__close:hover { background: rgba(18, 21, 15, .85); }
.place-card__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #4A4F3D, #2E3424); }
.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: #22261B; }
.place-card__desc { font-size: 14px; line-height: 1.5; color: #545848; 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(46, 50, 38, .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__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(10,14,10,.45) 0%, rgba(10,14,10,0) 62%),
    rgba(10, 14, 10, .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: clamp(36px, 4.6vw, 68px);
  line-height: 1.05;
  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(74, 79, 61, .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: #6B7F5E;
  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(18,21,15,.92) 0%, rgba(18,21,15,.6) 38%, rgba(18,21,15,.12) 70%, rgba(18,21,15,0) 100%);
  pointer-events: none;
}
.amenity--big::after { background: linear-gradient(0deg, rgba(18,21,15,.92) 0%, rgba(18,21,15,.6) 30%, rgba(18,21,15,.12) 60%, rgba(18,21,15,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__kicker { font-family: var(--font-head); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.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: 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, 3.4vw, 48px);
  border-radius: var(--radius-card);
  background: var(--ivory-card);
  border: 1px solid rgba(74, 79, 61, .12);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 40px;
}
.plans__top { display: flex; flex-direction: column; gap: 22px; }
.plans__top .h2 { font-size: clamp(36px, 3.8vw, 56px); 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: #4F8A3A; 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: 360px; border-radius: var(--radius-card); background: #2A2D24; }
.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: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(18, 21, 15, .6);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--cream);
  font-size: 14px;
}
.plan__tag--accent { background: var(--olive); border-color: transparent; color: var(--cream); font-family: var(--font-head); }

.plan--floor {
  border-radius: var(--radius-card-sm);
  background: var(--ivory-card);
  border: 1px solid rgba(74, 79, 61, .12);
  display: flex; flex-direction: column;
}
.plan__open--floor { height: 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; }
.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 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(74, 79, 61, .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: #7A8266; }
.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(74, 79, 61, .35); }

/* ---------- 12 Подвал ---------- */
.footer {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
  background: var(--footer);
  color: #fff;
}
.footer :focus-visible { outline-color: #fff; }
.footer__mark { height: clamp(160px, 26vw, 400px); overflow: hidden; opacity: .09; }
.footer__mark img { 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(15, 22, 17, .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; }
  .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(180deg,
      rgba(10,16,12,.5) 0%, rgba(10,16,12,.1) 16%, rgba(10,16,12,.45) 36%,
      rgba(10,16,12,.8) 58%, rgba(10,16,12,.94) 100%);
  }
  .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__title { font-size: clamp(30px, 8vw, 44px); }
  .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; }

  /* Видео */
  .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; }

  /* Инфраструктура */
  .amenities { padding-block: 64px; }
  .amenities .container { gap: 32px; }
  .amenities__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .amenities__grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; }
  .amenity { min-height: 340px; }
  .amenity--big { grid-row: auto; min-height: 460px; }

  /* Планировки */
  .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__grid { grid-template-columns: 1fr; }
  .plan--master { grid-column: auto; min-height: 200px; }
  .plan__open--floor { height: 200px; }
  .file--boxed { padding: 14px 16px; }
  .file__name { font-size: 15px; }
  .amenity__body { padding: 20px; }
  .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; }
}
