/* ==========================================================================
   Villa Siena — стили лендинга
   Перенесено из макета «Villa Siena v2» (Claude Design) + адаптив.
   ========================================================================== */

/* ---------- Шрифты ---------- */
/* Montserrat — вариативный (100–900), один файл на все начертания */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/montserrat-cyrillic-ext.woff2") format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/montserrat-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/montserrat-vietnamese.woff2") format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/montserrat-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../assets/fonts/montserrat-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'XCharter'; src: url("../assets/fonts/xcharter-regular.woff2") format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'XCharter'; src: url("../assets/fonts/xcharter-bold.woff2") format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'XCharter'; src: url("../assets/fonts/xcharter-italic.woff2") format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'XCharter'; src: url("../assets/fonts/xcharter-bolditalic.woff2") format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
/* В XCharter нет азербайджанской «ə/Ə» — берём её из Charis SIL (тот же рисунок Charter, лицензия OFL) */
@font-face { font-family: 'XCharter'; src: url("../assets/fonts/charis-schwa-regular.woff2") format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+018F, U+0259; }
@font-face { font-family: 'XCharter'; src: url("../assets/fonts/charis-schwa-bold.woff2") format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+018F, U+0259; }
@font-face { font-family: 'XCharter'; src: url("../assets/fonts/charis-schwa-italic.woff2") format('woff2'); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+018F, U+0259; }
@font-face { font-family: 'XCharter'; src: url("../assets/fonts/charis-schwa-bolditalic.woff2") format('woff2'); font-weight: 700; font-style: italic; font-display: swap; unicode-range: U+018F, U+0259; }

/* Poppins без кириллицы: латиница — Poppins, русский текст — Montserrat (как в макете) */
@font-face { font-family: 'Poppins'; src: url("../assets/fonts/poppins-regular.woff2") format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url("../assets/fonts/poppins-medium.woff2") format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url("../assets/fonts/poppins-semibold.woff2") format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Токены ---------- */
:root {
  --terra: #A0522D;
  --terra-dark: #7E3F22;
  --ink: #2D2926;
  --cream: #F1EEE6;
  --sand: #E9E2D6;
  --text: #4A423C;
  --muted: #6E625A;
  --line: #D6CBB9;
  --line-strong: #C9B9A2;
  --ochre: #D68A59;
  --card: #3a332d;

  --serif: 'XCharter', Georgia, serif;
  --sans: 'Poppins', 'Montserrat', sans-serif;

  --container: 1360px;
  --gutter: 40px;   /* боковые поля секций */
  --indent: 60px;   /* отступ контента от номера секции */
  --header-h: 75px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--terra); text-decoration: none; }
a:hover { color: var(--terra-dark); }
img { display: block; max-width: 100%; height: auto; }
input, button { font-family: inherit; }
input:focus { outline: none; }
button { color: inherit; }
[hidden] { display: none !important; }
/* Пока скрипт подставляет сохранённый язык (AZ/EN), не показываем русский текст */
.i18n-pending .page { visibility: hidden; }
::selection { background: var(--terra); color: var(--cream); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@keyframes vsFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes vsPulse { 0% { box-shadow: 0 0 0 0 rgba(241,238,230,0.7); } 100% { box-shadow: 0 0 0 14px rgba(241,238,230,0); } }

.page { max-width: 100%; overflow-x: clip; background: var(--cream); color: var(--ink); font-family: var(--sans); }

/* ---------- Общие элементы ---------- */
.eyebrow { display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--terra); margin-bottom: 24px; }
.eyebrow--line::after { content: ''; display: block; flex: 0 0 56px; height: 1px; background: currentColor; }
.eyebrow--ochre { color: var(--ochre); }

.title { font-family: var(--serif); font-weight: 700; margin: 0; text-wrap: balance; }
.title--46 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.1; }
.title--56 { font-size: clamp(36px, 3.6vw, 56px); line-height: 1.05; }

.text { font-size: 15px; line-height: 1.7; color: var(--text); margin: 0; text-wrap: pretty; }
.text--16 { font-size: 16px; }

.sec-num { position: absolute; left: var(--gutter); top: 140px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; }
.sec-num::before { content: ''; display: block; width: 1px; height: 40px; background: var(--terra); }
.sec-num--inner { left: 0; top: 10px; }
.sec-num--light { color: var(--ochre); }
.sec-num--light::before { background: var(--ochre); }

.tagline { display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--terra); }
.tagline::before { content: ''; display: block; width: 90px; height: 1px; background: var(--terra); flex: 0 0 auto; }

.ico { display: block; width: 30px; height: 30px; flex: 0 0 auto; color: var(--terra); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: 0.03em; padding: 17px 30px; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.btn--terra { background: var(--terra); color: var(--cream); }
.btn--terra:hover { background: var(--terra-dark); color: var(--cream); }
.btn--caps { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.btn--ghost-light { border: 1px solid rgba(241,238,230,0.6); color: var(--cream); background: transparent; padding: 16px 26px; letter-spacing: 0; }
.btn--ghost-light:hover { background: rgba(241,238,230,0.12); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--ink); padding: 16px 26px; letter-spacing: 0; }
.btn--cream:hover { background: var(--terra); color: var(--cream); }
.btn--ink { background: var(--ink); color: var(--cream); padding: 16px 26px; letter-spacing: 0; }
.btn--ink:hover { background: var(--terra); color: var(--cream); }
.btn--ghost-ink { border: 1px solid var(--ink); color: var(--ink); background: transparent; padding: 16px 26px; letter-spacing: 0; }
.btn--ghost-ink:hover { border-color: var(--terra); color: var(--terra); }

.circle-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: transparent; cursor: pointer; padding: 0; transition: background-color .25s ease, color .25s ease; }
.circle-btn--light { width: 46px; height: 46px; border: 1px solid rgba(241,238,230,0.5); color: var(--cream); font-size: 16px; }
.circle-btn--light:hover { background: rgba(241,238,230,0.12); }
.circle-btn--terra { width: 48px; height: 48px; border: 1px solid var(--terra); color: var(--terra); font-size: 18px; }
.circle-btn--terra:hover { background: var(--terra); color: var(--cream); }

.link-caps { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 8px; transition: color .25s ease, border-color .25s ease; }
.link-caps:hover { color: var(--terra); border-bottom-color: var(--terra); }
.link-caps span { font-size: 15px; }

/* Медиа-блоки: фото или плейсхолдер заполняют контейнер */
.media { position: relative; }
.media > img, .media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.media > img { object-fit: cover; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; }
img.fill { object-fit: cover; }

/* Плейсхолдер для фото, которых пока нет (подпись = какое фото нужно) */
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; color: #7d7168; background: #E7E2D9; border: 1px dashed rgba(110,98,90,0.4); }
.ph::before { content: ''; display: block; width: 24px; height: 24px; flex: 0 0 auto; background: currentColor; opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph--dark { color: rgba(241,238,230,0.55); background: #3d3630; border-color: rgba(241,238,230,0.16); }
.ph--sand { background: #E1DACD; }

/* Декоративный орнамент */
.deco { position: absolute; pointer-events: none; background-repeat: repeat; background-position: center;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,0.55) 40%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,0.55) 40%, transparent 100%); }
.deco--terra { background-image: url("../assets/img/pattern-terra.png"); }
.deco--ochre { background-image: url("../assets/img/pattern-ochre.png"); }
.deco--light { background-image: url("../assets/img/pattern-light.png"); }

/* Точки на фото (архитектура, White Box) */
.hotspot { position: absolute; transform: translate(-50%, -50%); }
.hotspot__pin { width: 30px; height: 30px; border-radius: 50%; background: rgba(45,41,38,0.55); border: 1px solid var(--cream); cursor: pointer; box-shadow: 0 6px 18px rgba(45,41,38,0.35); display: flex; align-items: center; justify-content: center; padding: 0; transition: background-color .25s ease; }
.hotspot__pin::after { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); }
.hotspot.is-active .hotspot__pin { background: var(--terra); }
.hotspot__tip { display: none; position: absolute; left: 40px; top: 50%; transform: translateY(-50%); background: var(--ink); color: var(--cream); padding: 10px 16px; font-size: 13px; white-space: nowrap; animation: vsFade 0.3s ease both; }
.hotspot.is-active .hotspot__tip { display: block; }
.hotspot--flip .hotspot__tip { left: auto; right: 40px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 14px var(--gutter); border-bottom: 1px solid rgba(241,238,230,0.12); color: var(--cream); }
/* Матовый фон шапки — отдельным слоем, который начинается выше края экрана: иначе Chrome/Edge
   рисуют у верхней кромки размытия светлую полосу, которая мигает при перерисовке (заметно при масштабе Windows 125%) */
.header::before { content: ''; position: absolute; left: 0; right: 0; top: -64px; bottom: 0; z-index: -1; pointer-events: none; background: rgba(45,41,38,0.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.header__logo { display: block; flex: 0 0 auto; }
.header__logo img { display: block; height: 46px; width: auto; }
.nav { position: relative; display: flex; align-items: center; gap: 24px; flex: 1 1 auto; min-width: 0; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 6px 0; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--cream); opacity: 0.9; transition: opacity .2s ease; }
.nav a:hover { opacity: 1; color: var(--cream); }
.nav__more { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: var(--cream); opacity: 0.9; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; cursor: pointer; padding: 0; }
.nav__more:hover { opacity: 1; }
.nav__arrow { font-size: 10px; }
.more-menu { position: absolute; top: 76px; right: var(--gutter); min-width: 240px; background: var(--ink); border: 1px solid rgba(241,238,230,0.12); padding: 12px 0; display: flex; flex-direction: column; animation: vsFade 0.25s ease both; box-shadow: 0 20px 50px rgba(45,41,38,0.35); }
.more-menu a { color: var(--cream); padding: 11px 22px; font-size: 14px; font-weight: 500; }
.more-menu a:hover { background: rgba(241,238,230,0.08); color: var(--cream); }
.header__side { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.lang { display: flex; gap: 2px; font-size: 12px; letter-spacing: 0.08em; }
.lang button { background: transparent; color: var(--cream); border: 1px solid rgba(241,238,230,0.35); padding: 6px 9px; cursor: pointer; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; }
.lang button.is-active { background: var(--cream); color: var(--ink); }
.header__cta { padding: 11px 20px; letter-spacing: 0.02em; white-space: nowrap; }
.burger { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid rgba(241,238,230,0.35); color: var(--cream); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s ease, background-color .25s ease; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49; overflow-y: auto; background: var(--ink); color: var(--cream); padding: 12px var(--gutter) 40px; animation: vsFade 0.25s ease both; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a { color: var(--cream); padding: 15px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid rgba(241,238,230,0.1); }
.mobile-menu__nav a:hover { color: var(--ochre); }
.mobile-menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.mobile-menu__foot .lang { display: none; }
.mobile-menu__phone { color: var(--cream); font-size: 17px; font-weight: 500; }
.mobile-menu__phone:hover { color: var(--ochre); }

/* Плавающая кнопка обратного звонка */
.fab { position: fixed; right: 28px; bottom: 28px; z-index: 49; display: flex; align-items: center; gap: 10px; background: var(--terra); color: var(--cream); border: 0; cursor: pointer; padding: 14px 22px; border-radius: 999px; font-size: 13px; font-weight: 500; box-shadow: 0 12px 30px rgba(45,41,38,0.25); transition: background-color .25s ease, opacity .3s ease, transform .3s ease; }
.fab:hover { background: var(--terra-dark); color: var(--cream); }
.fab__dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); animation: vsPulse 1.8s ease-out infinite; }
.fab.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; background: var(--ink); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img, .hero__slide .ph { width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(45,41,38,0.45) 0%, rgba(45,41,38,0) 30%, rgba(45,41,38,0.15) 55%, rgba(45,41,38,0.82) 100%); }
.hero__inner { position: relative; width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 180px var(--gutter) 120px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero__content { animation: vsFade 1.2s ease both; }
.hero__place { font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.85; margin-bottom: 26px; }
.hero__title { font-family: var(--serif); font-weight: 700; font-size: clamp(46px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 22px; text-wrap: balance; }
.hero__sub { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; opacity: 0.95; margin: 0 0 26px; }
.hero__perks { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.92; margin-bottom: 44px; }
.hero__perks i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--ochre); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions .btn--terra { padding: 17px 30px; }
.hero__actions .btn--ghost-light { border-color: rgba(241,238,230,0.7); letter-spacing: 0.03em; }
.hero__actions .btn--ghost-light:hover { background: rgba(241,238,230,0.14); }
/* Правка клиента: «Загляните внутрь» — залитая, как «Оставить заявку», белый текст; «Планировочные решения» — охра */
.hero__actions .hero__tour { border-color: var(--terra); background: var(--terra); color: var(--cream); }
.hero__actions .hero__tour:hover { border-color: var(--terra-dark); background: var(--terra-dark); color: var(--cream); }
.hero__tour .badge360 { border-color: rgba(241,238,230,0.8); }
.badge360 { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(241,238,230,0.8); font-size: 9px; font-weight: 600; letter-spacing: 0; }
.hero__plans { display: inline-flex; align-items: center; gap: 10px; color: var(--ochre); padding: 16px 8px; font-size: 13px; font-weight: 500; letter-spacing: 0.03em; border-bottom: 1px solid rgba(214,138,89,0.5); transition: border-color .25s ease, color .25s ease; }
.hero__plans:hover { color: #e7a177; border-bottom-color: #e7a177; }
.hero__controls { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; margin-bottom: 8px; }
.hero__counter { font-family: var(--serif); font-size: 15px; letter-spacing: 0.12em; opacity: 0.9; }
.hero__nav { display: flex; align-items: center; gap: 18px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 14px; height: 3px; border: 0; padding: 0; background: rgba(241,238,230,0.45); cursor: pointer; transition: all 0.4s ease; }
.hero__dot.is-active { width: 36px; background: var(--cream); }
.hero__arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(241,238,230,0.6); background: transparent; color: var(--cream); cursor: pointer; font-size: 18px; }
.hero__arrow:hover { background: rgba(241,238,230,0.15); }

/* ==========================================================================
   01 · ИНВЕСТИЦИИ
   ========================================================================== */
.invest { position: relative; padding: 130px var(--gutter) 40px; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.invest__wrap { margin-left: var(--indent); display: flex; flex-direction: column; gap: 16px; }
.invest__row { display: grid; }
.invest__row--1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; min-height: 560px; }
.invest__row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); min-height: 420px; }
.invest__row--3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 56px; min-height: 440px; }
.invest__intro { display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.invest__intro .eyebrow { margin-bottom: 26px; }
.invest__title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.2vw, 60px); line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; margin: 0 0 22px; text-wrap: balance; } /* текст из админки, строки переносятся сами */
.invest__lead { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; color: var(--text); margin: 0 0 22px; text-wrap: balance; }
.invest__text { max-width: 480px; margin-bottom: 40px; }
.features { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; max-width: 560px; }
.features li { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); line-height: 1.45; }
.invest__motto { font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); }
.invest__media--1 { min-height: 420px; }
.invest__media--2, .invest__media--3 { min-height: 320px; }

.ownership { background: var(--sand); padding: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.ownership .eyebrow { margin-bottom: 22px; }
.ownership__title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; margin: 0 0 40px; }
.ownership__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.ownership__item { display: flex; flex-direction: column; gap: 18px; }
.ownership__item:first-child { padding-right: 40px; border-right: 1px solid var(--line-strong); }
.ownership__name { font-family: var(--serif); font-size: 19px; line-height: 1.25; letter-spacing: 0.04em; text-transform: uppercase; }
.ownership__note { font-size: 14px; color: var(--text); margin-top: 8px; }

.stats { display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.stats .eyebrow { margin-bottom: 28px; }
.stats__big { display: flex; align-items: baseline; gap: 12px 28px; flex-wrap: wrap; }
.stats__num { font-family: var(--serif); font-size: clamp(72px, 8vw, 120px); line-height: 0.95; letter-spacing: -0.02em; }
.stats__cap { font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--text); max-width: 230px; text-wrap: balance; }
.stats__label { font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; margin: 44px 0 20px; text-wrap: balance; }
.stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats__cell { padding: 24px 24px 0; border-right: 1px solid var(--line); }
.stats__cell:first-child { padding-left: 0; }
.stats__cell:last-child { padding-right: 0; border-right: 0; }
.stats__pct { font-family: var(--serif); font-size: clamp(32px, 3vw, 44px); line-height: 1; color: var(--terra); }
.stats__region { font-size: 13px; color: var(--text); margin-top: 10px; }

/* ==========================================================================
   02 · 360° ПАНОРАМА
   ========================================================================== */
.tour { position: relative; padding: 130px var(--gutter) 110px; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.tour__wrap { margin-left: var(--indent); }
.tour__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.tour__intro { max-width: 640px; }
.tour__intro .eyebrow { margin-bottom: 22px; }
.tour__intro .title { font-size: clamp(36px, 3.8vw, 56px); line-height: 1.05; margin-bottom: 20px; }

.pano { position: relative; width: 100%; background: var(--ink); overflow: hidden; }
.pano__stage { position: relative; aspect-ratio: 21 / 9; overflow: hidden; }
.pano__stage > .ph { justify-content: flex-start; padding-top: 28px; }
.pano__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(45,41,38,0.1) 0%, rgba(45,41,38,0) 50%, rgba(45,41,38,0.55) 100%); }
.pano__start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 22px; color: var(--cream); }
.pano__start:hover { color: var(--cream); }
.pano__ring { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 134px; height: 134px; border-radius: 50%; border: 1px solid rgba(241,238,230,0.85); background: rgba(45,41,38,0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: vsPulse 2.6s ease-out infinite; transition: background-color .3s ease; }
.pano__start:hover .pano__ring { background: rgba(160,82,45,0.55); }
.pano__ring small { font-size: 18px; line-height: 1; opacity: 0.8; }
.pano__deg { font-family: var(--serif); font-size: 40px; line-height: 1.1; }
.pano__cta { font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.pano__caption { position: absolute; left: 28px; bottom: 26px; color: var(--cream); display: flex; flex-direction: column; gap: 6px; }
.pano__brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.pano__brand::before { content: ''; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); }
.pano__room { font-size: 13px; opacity: 0.85; padding-left: 16px; }
.pano__panel { position: absolute; right: 0; top: 0; bottom: 0; width: 282px; padding: 28px 26px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(45,41,38,0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--cream); }
.pano__rooms { display: flex; flex-direction: column; gap: 6px; }
.pano__room-btn { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; color: var(--cream); opacity: 0.7; font-size: 14px; cursor: pointer; padding: 8px 0; text-align: left; transition: opacity .2s ease; }
.pano__room-btn:hover, .pano__room-btn.is-active { opacity: 1; }
.pano__room-btn::before { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--cream); flex: 0 0 auto; }
.pano__room-btn.is-active::before { background: var(--cream); }
.pano__full { align-self: flex-end; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(241,238,230,0.6); color: var(--cream); font-size: 16px; transition: background-color .25s ease; }
.pano__full:hover { background: rgba(241,238,230,0.15); color: var(--cream); }
/* 3D-тур прямо на сайте (js/main.js): в окне блока 360° или во весь экран поверх страницы (телефон) */
.pano.is-tour .pano__stage { aspect-ratio: 16 / 9; max-height: calc(100vh - 110px); }
.pano.is-tour .pano__panel, .pano.is-tour .pano__start, .pano.is-tour .pano__caption, .pano.is-tour .pano__shade { display: none; }
.tour-view { position: absolute; inset: 0; z-index: 2; background: var(--ink); }
.tour-view--layer { position: fixed; z-index: 105; height: 100vh; height: 100dvh; animation: vsFade 0.25s ease both; }
.tour-view__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.tour-view__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--cream); font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8; }
.tour-view.is-loaded .tour-view__loading { display: none; }
.tour-view__bar { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: flex; gap: 8px; }
.tour-view--layer .tour-view__bar { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); } /* вверху справа — меню самого тура */
.tour-view__btn { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(241,238,230,0.6); background: rgba(45,41,38,0.6); color: var(--cream); font-size: 17px; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .25s ease; }
.tour-view__btn:hover { background: rgba(160,82,45,0.8); }
.tour-view__close { font-size: 26px; }
.tour-view:fullscreen { width: 100%; height: 100%; }

.visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr); margin-top: 20px; border-top: 1px solid var(--line); }
.visit__col { padding: 40px 40px 20px; }
.visit__col--1 { padding-left: 0; border-right: 1px solid var(--line); }
.visit__col--2 { border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 34px; }
.visit__col--3 { padding-right: 0; display: flex; flex-direction: column; gap: 18px; font-size: 14px; line-height: 1.55; }
.visit__title { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; margin: 0 0 18px; text-wrap: balance; }
.visit__col--2 .btn { align-self: flex-start; gap: 14px; padding: 17px 28px; }
.visit__perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; }
.visit__perk { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.visit__col--3 .eyebrow { font-size: 11px; letter-spacing: 0.3em; margin: 0; }
.visit__phone { color: var(--ink); font-size: 17px; font-weight: 500; }
.visit__col--3 a { color: var(--ink); }
.visit__col--3 a:hover { color: var(--terra); }
.visit__addr { color: var(--text); }

/* ==========================================================================
   03 · О ПРОЕКТЕ
   ========================================================================== */
.about { position: relative; padding: 110px var(--gutter) 140px; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.about > .sec-num { top: 120px; }
.deco--about { right: -260px; top: -140px; width: 900px; height: 900px; background-size: 700px; opacity: 0.42; }
.about__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.about__media { position: relative; aspect-ratio: 4 / 5; margin-left: var(--indent); }
.about__media > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.about__frame { position: absolute; left: -24px; bottom: -24px; width: 55%; aspect-ratio: 1; border: 1px solid var(--terra); pointer-events: none; }
.about__mono { position: absolute; right: -30px; top: -34px; width: 72px; height: auto; opacity: 0.9; }
.about__body .eyebrow { margin-bottom: 26px; }
.about__body .title { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.1; margin-bottom: 26px; }
.about__body .text { max-width: 520px; margin-bottom: 40px; }

/* ==========================================================================
   TERRA DI SIENA
   ========================================================================== */
.terra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 620px; }
.terra__text { display: flex; flex-direction: column; justify-content: center; padding: 100px clamp(40px, 7vw, 120px); background: var(--sand); }
.terra__text .eyebrow { margin-bottom: 26px; }
.terra__text .title { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.05; margin-bottom: 32px; }
.terra__text .text { font-size: 16px; max-width: 460px; }
.terra__text .text + .text { margin-top: 18px; }
.terra__media { position: relative; background: var(--terra); min-height: 420px; overflow: hidden; }
.terra__tint { position: absolute; inset: 0; pointer-events: none; background: rgba(160,82,45,0.28); mix-blend-mode: multiply; }
.terra__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(200deg, rgba(45,41,38,0) 55%, rgba(45,41,38,0.45) 100%); }
.terra__caption { position: absolute; right: 40px; bottom: 40px; text-align: right; color: var(--cream); pointer-events: none; }
.terra__pigment { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; }
.terra__name { font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.9; margin-top: 10px; }

/* ==========================================================================
   EVERY SUNSET
   ========================================================================== */
.sunset { position: relative; height: min(70vh, 640px); display: flex; align-items: center; justify-content: center; color: var(--cream); text-align: center; overflow: hidden; }
.sunset__shade { position: absolute; inset: 0; pointer-events: none; background: rgba(45,41,38,0.3); }
.sunset__title { position: relative; font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 5vw, 76px); line-height: 1.05; margin: 0; padding: 0 var(--gutter); text-wrap: balance; }

/* ==========================================================================
   04 · ЛОКАЦИЯ
   ========================================================================== */
.location { position: relative; padding: 120px var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.location > .sec-num { top: 130px; }
.distances { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 72px var(--indent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.distances li { padding: 36px 20px; text-align: center; border-left: 1px solid var(--line); }
.distances__min { font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--terra); font-weight: 400; }
.distances__unit { font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin: 8px 0 12px; }
.distances__label { font-size: 14px; color: var(--text); text-wrap: balance; }
.location__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: stretch; margin-left: var(--indent); }
.location__info { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.location__info .title { margin-bottom: 24px; }
.location__info .text { margin-bottom: 20px; }
.location__addr { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; }
.route-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--ink); color: var(--cream); padding: 19px 24px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; transition: background-color .25s ease; }
.route-btn:hover { background: var(--terra); color: var(--cream); }
.map { position: relative; min-height: 460px; background: var(--sand); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(0.45) saturate(0.7) contrast(0.95); }

/* Маршрут: геолокация → маршрут на карте + ссылки в навигаторы */
.route { display: flex; flex-direction: column; gap: 14px; }
.route__status { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text); }
.route__status.is-error { color: var(--terra-dark); }
.route-btn[aria-busy="true"] { opacity: 0.75; cursor: progress; pointer-events: none; }
.route__apps { font-size: 12px; line-height: 1.6; color: var(--muted); }
.route__apps a { color: var(--ink); border-bottom: 1px solid var(--line-strong); white-space: nowrap; transition: color .2s ease, border-color .2s ease; }
.route__apps a:hover { color: var(--terra); border-bottom-color: var(--terra); }
.map__reset { position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--cream); border: 0; padding: 10px 14px; font-size: 12px; font-weight: 500; cursor: pointer; box-shadow: 0 6px 18px rgba(45,41,38,0.25); transition: background-color .25s ease; }
.map__reset:hover { background: var(--terra); }
.map.is-route iframe { filter: sepia(0.15) saturate(0.95); }
/* Заглушка вместо карты Google до согласия на cookie */
.map__consent { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px; text-align: center; background: var(--sand); color: var(--ink); }
.map__consent p { max-width: 320px; margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.map__consent-btn { border: 0; background: var(--ink); color: var(--cream); padding: 15px 22px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background-color .25s ease; }
.map__consent-btn:hover { background: var(--terra); }

/* Баннер согласия на cookie */
.cookie { position: fixed; left: 50%; bottom: 20px; z-index: 95; transform: translateX(-50%); width: min(800px, calc(100% - 32px)); display: flex; align-items: center; gap: 24px; padding: 18px 22px; background: var(--ink); color: var(--cream); box-shadow: 0 18px 50px rgba(45,41,38,0.35); }
.cookie__text { margin: 0; font-size: 13px; line-height: 1.55; }
.cookie__text a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie__btn { border: 1px solid rgba(241,238,230,0.4); background: transparent; color: var(--cream); padding: 12px 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.cookie__btn:hover { border-color: var(--cream); }
.cookie__btn--accent { background: var(--terra); border-color: var(--terra); }
.cookie__btn--accent:hover { background: var(--terra-dark); border-color: var(--terra-dark); } /* в режиме маршрута карта светлее — линия маршрута лучше видна */

/* ==========================================================================
   05 · ИНФРАСТРУКТУРА
   ========================================================================== */
.infra { position: relative; background: linear-gradient(180deg, var(--cream) 0px, var(--ink) 240px); color: var(--cream); padding: 260px var(--gutter) 120px; }
.deco--infra { right: -300px; top: -120px; width: 900px; height: 900px; background-size: 760px; opacity: 0.5; }
.infra__inner { position: relative; max-width: var(--container); margin: 0 auto; }
.infra__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin: 0 0 56px var(--indent); flex-wrap: wrap; }
.infra__head .eyebrow { margin-bottom: 20px; }
.infra__hint { font-size: 12px; letter-spacing: 0.08em; color: var(--ochre); }
.infra__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-left: var(--indent); }
.infra-card { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; cursor: pointer; overflow: hidden; background: var(--card); border: 0; padding: 0; margin: 0; text-align: left; color: var(--cream); font: inherit; }
.infra-card > img, .infra-card > .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.infra-card > img { object-fit: cover; transition: transform .8s ease; }
.infra-card:hover > img { transform: scale(1.04); }
.infra-card__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(45,41,38,0) 40%, rgba(45,41,38,0.88) 100%); }
.infra-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; pointer-events: none; }
.infra-card__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.infra-card__title { min-width: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(17px, 1.55vw, 22px); line-height: 1.15; }
.infra-card__icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid rgba(241,238,230,0.5); border-radius: 50%; font-size: 18px; line-height: 1; flex: 0 0 auto; }
.infra-card__icon::before { content: '+'; }
.infra-card[aria-expanded="true"] .infra-card__icon::before { content: '–'; }
.infra-card__text { display: none; font-size: 14px; line-height: 1.6; color: var(--cream); margin: 16px 0 0; animation: vsFade 0.4s ease both; }
.infra-card[aria-expanded="true"] .infra-card__text { display: block; }

/* ==========================================================================
   06 · БЛАГОУСТРОЙСТВО
   ========================================================================== */
.amenities { position: relative; padding: 120px var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.amenities > .sec-num { top: 130px; }
.amenities__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; align-items: center; margin-left: var(--indent); }
.amenities__grid .title { margin-bottom: 36px; }
.amen-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.amen { border-bottom: 1px solid var(--line); padding: 20px 0; }
.amen__head { display: flex; align-items: center; gap: 16px; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: var(--ink); }
.amen__badge { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: transparent; color: var(--terra); border: 1px solid var(--terra); font-size: 11px; font-weight: 600; flex: 0 0 auto; transition: background-color .25s ease, color .25s ease; }
.amen__title { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); transition: color .25s ease; }
.amen.is-active .amen__badge { background: var(--terra); color: var(--cream); }
.amen.is-active .amen__title, .amen__head:hover .amen__title { color: var(--terra); }
.amen__text { display: none; font-size: 15px; line-height: 1.65; color: var(--text); margin: 14px 0 0 42px; animation: vsFade 0.4s ease both; text-wrap: pretty; }
.amen.is-active .amen__text { display: block; }
.amenities__media { position: relative; aspect-ratio: 4 / 3; }
.amen-pin { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(45,41,38,0.6); color: var(--cream); border: 1px solid var(--cream); font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(45,41,38,0.35); padding: 0; transition: background-color .25s ease; }
.amen-pin.is-active { background: var(--terra); }

/* ==========================================================================
   07 · АРХИТЕКТУРА
   ========================================================================== */
.arch { background: var(--sand); padding: 120px var(--gutter); }
.arch__inner { max-width: var(--container); margin: 0 auto; position: relative; }
.arch__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-left: var(--indent); }
.arch__media { position: relative; aspect-ratio: 16 / 10; }
.arch__body .title { margin-bottom: 24px; }
.arch__body .text { margin-bottom: 32px; }
.arch-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.arch-list button { display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; cursor: pointer; font-size: 15px; color: var(--ink); transition: color .2s ease; }
.arch-list button:hover, .arch-list button.is-active { color: var(--terra); }
.arch-list small { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); }

/* ==========================================================================
   08 · AS SERVICE
   ========================================================================== */
.service { position: relative; padding: 120px var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.service > .sec-num { top: 130px; }
.service__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-left: var(--indent); }
.service__grid .title { margin-bottom: 24px; }
.service__grid .text { margin-bottom: 36px; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.service-list li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.service-list li::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); flex: 0 0 auto; }
.service__media { position: relative; aspect-ratio: 4 / 5; }

/* ==========================================================================
   09 · SIENA READY
   ========================================================================== */
.ready { position: relative; background: var(--ink); color: var(--cream); padding: 120px var(--gutter); }
.deco--ready { left: -340px; top: 50%; transform: translateY(-50%); width: 900px; height: 900px; background-size: 760px; opacity: 0.3; }
.ready__inner { position: relative; max-width: var(--container); margin: 0 auto; }
.ready__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; align-items: center; margin-left: var(--indent); }
.ready__grid .title { font-size: clamp(36px, 3.8vw, 56px); line-height: 1.05; margin-bottom: 24px; }
.ready__text { font-size: 15px; line-height: 1.7; opacity: 0.92; margin: 0 0 24px; text-wrap: pretty; }
.ready__tags { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); margin-bottom: 40px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.slider { position: relative; aspect-ratio: 16 / 10; background: var(--card); overflow: hidden; }
.slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.slider__slide.is-active { opacity: 1; }
.slider__slide > img, .slider__slide > .ph { width: 100%; height: 100%; }
.slider__slide > img { object-fit: cover; }
.slider__caption { position: absolute; left: 24px; bottom: 22px; display: flex; align-items: center; gap: 14px; pointer-events: none; }
.slider__label { background: rgba(45,41,38,0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 8px 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.slider__counter { font-family: var(--serif); font-size: 14px; letter-spacing: 0.12em; opacity: 0.9; }
.slider__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.slider__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.slider__tab { background: transparent; color: var(--cream); border: 1px solid rgba(241,238,230,0.35); padding: 9px 14px; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.slider__tab:hover { border-color: var(--cream); }
.slider__tab.is-active { background: var(--cream); color: var(--ink); }
.slider__arrows { display: flex; gap: 10px; }

/* ==========================================================================
   10 · SIENA BASE
   ========================================================================== */
.base { position: relative; padding: 120px var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.base > .sec-num { top: 130px; }
.base__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; align-items: center; margin-left: var(--indent); }
.base__grid .title { margin-bottom: 24px; }
.base__grid .text { margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip { background: transparent; color: var(--ink); border: 1px solid var(--terra); padding: 8px 14px; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.chip:hover { color: var(--terra); }
.chip.is-active { background: var(--terra); color: var(--cream); }
.base__media { position: relative; aspect-ratio: 16 / 10; background: var(--sand); }

/* ==========================================================================
   11 · ПЛАНИРОВКИ
   ========================================================================== */
.plans { position: relative; background: var(--ink); color: var(--cream); padding: 120px var(--gutter); }
.deco--plans { right: -320px; top: -160px; width: 900px; height: 900px; background-size: 760px; opacity: 0.3; }
.plans__inner { position: relative; max-width: var(--container); margin: 0 auto; }
.plans__wrap { margin-left: var(--indent); }
.plans__wrap .eyebrow { margin-bottom: 20px; }
.plans__wrap .title { margin-bottom: 56px; }
.plan-stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(214,138,89,0.35); border-bottom: 1px solid rgba(214,138,89,0.35); margin: 0 0 56px; }
.plan-stats li { padding: 32px 24px; border-left: 1px solid rgba(214,138,89,0.35); }
.plan-stats__label { font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ochre); margin-bottom: 14px; }
.plan-stats__value { font-family: var(--serif); font-size: clamp(32px, 3vw, 44px); line-height: 1; font-weight: 400; }
.plan-stats__value span { font-size: 18px; margin-left: 8px; color: var(--ochre); }
.plans__sheet { background: var(--cream); padding: 44px 40px 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: end; }
.plan-floor { margin: 0; display: flex; flex-direction: column; align-items: center; }
.plan-floor__zoom { position: relative; display: block; width: calc(100% * var(--s, 1)); padding: 0; border: 0; background: none; cursor: zoom-in; }
.plan-floor__zoom img { display: block; width: 100%; height: auto; } /* фон картинки = фон листа (#F1EEE6) */
.plan-floor__icon { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1EEE6' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 20px no-repeat; opacity: 0; transform: scale(0.85); transition: opacity .25s ease, transform .25s ease; }
.plan-floor__zoom:hover .plan-floor__icon, .plan-floor__zoom:focus-visible .plan-floor__icon { opacity: 1; transform: none; }
@media (hover: none) { .plan-floor__icon { opacity: 0.85; transform: none; } }
.plans__hint { margin: -32px 0 16px; text-align: right; font-size: 12px; letter-spacing: 0.08em; color: var(--ochre); }

/* Просмотр плана с увеличением */
.plan-viewer { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; background: var(--cream); animation: vsFade 0.25s ease both; }
.plan-viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; background: var(--ink); color: var(--cream); }
.plan-viewer__title { font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; }
.plan-viewer__tools { display: flex; align-items: center; gap: 8px; }
.plan-viewer__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(241,238,230,0.45); border-radius: 50%; background: transparent; color: var(--cream); font-size: 18px; line-height: 1; cursor: pointer; transition: background-color .2s ease; }
.plan-viewer__btn:hover { background: rgba(241,238,230,0.14); }
.plan-viewer__close { border-color: var(--terra); background: var(--terra); font-size: 22px; }
.plan-viewer__close:hover { background: var(--terra-dark); }
.plan-viewer__sep { width: 1px; height: 24px; margin: 0 4px; background: rgba(241,238,230,0.25); }
.plan-viewer__stage { position: relative; flex: 1 1 auto; overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.plan-viewer__stage.is-dragging { cursor: grabbing; }
.plan-viewer__img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.plan-viewer__hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 9px 16px; background: rgba(45,41,38,0.8); color: var(--cream); font-size: 12px; text-align: center; pointer-events: none; transition: opacity .6s ease; }
.plan-viewer__hint.is-hidden { opacity: 0; }
.plan-floor figcaption { margin-top: 22px; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; text-align: center; }

/* ==========================================================================
   12 · ГАЛЕРЕЯ
   ========================================================================== */
.gallery { position: relative; padding: 120px 0 100px var(--gutter); max-width: calc(1400px + var(--gutter)); margin: 0 auto; }
.gallery > .sec-num { top: 130px; }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin: 0 var(--gutter) 48px var(--indent); flex-wrap: wrap; }
.gallery__head .eyebrow { margin-bottom: 20px; }
.gallery__arrows { display: flex; gap: 10px; }
.gallery__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0 var(--gutter) 8px var(--indent); scroll-padding: 0 var(--gutter) 0 var(--indent); scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { position: relative; flex: 0 0 auto; width: var(--w); aspect-ratio: var(--r); scroll-snap-align: start; }
.gallery__item > img, .gallery__item > .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery__item > img { object-fit: cover; }

/* ==========================================================================
   13 · ИСТОРИИ (TikTok)
   ========================================================================== */
.stories { position: relative; padding: 100px var(--gutter) 130px; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; }
.deco--stories { right: -300px; top: -240px; width: 800px; height: 800px; background-size: 700px; opacity: 0.36; }
.stories > .sec-num { top: 110px; }
.stories__wrap { margin-left: var(--indent); }
.stories__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.stories__intro { max-width: 640px; }
.stories__intro .eyebrow { margin-bottom: 22px; }
.stories__intro .title { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; margin-bottom: 18px; }
.stories__head .tagline { text-align: right; }
.stories__head .tagline::before { width: 70px; }
.stories__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.story { display: flex; flex-direction: column; gap: 14px; }
.story__card { position: relative; aspect-ratio: 9 / 16; background: var(--card); overflow: hidden; }
.story__card > img, .story__card > .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__card > img { object-fit: cover; }
.story__card > .ph { justify-content: flex-start; padding-top: 28px; }
.story__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(45,41,38,0.35) 0%, rgba(45,41,38,0) 35%, rgba(45,41,38,0) 65%, rgba(45,41,38,0.7) 100%); }
.story__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(241,238,230,0.85); background: rgba(45,41,38,0.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--cream); transition: background-color .25s ease; }
.story__play:hover { background: var(--terra); color: var(--cream); }
.story__play::before { content: ''; display: block; width: 0; height: 0; border-left: 12px solid var(--cream); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.story__num { position: absolute; left: 16px; bottom: 14px; color: var(--cream); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; }
.story__link { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 500; }
.story__link:hover { color: var(--terra); }
.story__tt { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--cream); flex: 0 0 auto; }
.story__tt svg { display: block; }

/* ==========================================================================
   КОНТАКТЫ + ФУТЕР
   ========================================================================== */
.contacts { position: relative; background: var(--terra); color: var(--cream); padding: 120px var(--gutter) 60px; overflow: hidden; }
.deco--contacts { right: -300px; bottom: -320px; width: 900px; height: 900px; background-size: 720px; opacity: 0.22; }
.contacts__grid { position: relative; max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.contacts .eyebrow { color: inherit; opacity: 0.85; margin-bottom: 20px; }
.contacts__title { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 4.2vw, 60px); line-height: 1; margin: 0 0 28px; text-wrap: balance; }
.contacts__lead { font-size: 15px; line-height: 1.7; opacity: 0.92; margin: 0 0 48px; max-width: 380px; text-wrap: pretty; }
.contacts__info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; font-size: 14px; line-height: 1.6; }
.contacts__label { font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.75; margin-bottom: 8px; }
.contacts__info a { color: var(--cream); border-bottom: 1px solid rgba(241,238,230,0.4); transition: border-color .2s ease; }
.contacts__info a:hover { color: var(--cream); border-bottom-color: var(--cream); }
.contacts__residence { grid-column: 1 / -1; font-size: 13px; opacity: 0.85; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; padding-top: 12px; }
.field { display: flex; flex-direction: column; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.92; }
.field__opt { opacity: 0.7; text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.field input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(241,238,230,0.5); color: var(--cream); padding: 10px 0; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; border-radius: 0; transition: border-color .2s ease; }
.field input:focus { border-bottom-color: var(--cream); }
.field input::placeholder { color: rgba(241,238,230,0.5); }
.form__submit { grid-column: 1 / -1; background: var(--ink); color: var(--cream); border: 0; padding: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; margin-top: 8px; transition: background-color .25s ease, color .25s ease; }
.form__submit:hover { background: var(--cream); color: var(--ink); }
.form__submit[disabled] { opacity: .6; cursor: wait; }
.form__error { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; }
.form__thanks { padding: 60px 0; animation: vsFade 0.5s ease both; }
.form__thanks-title { font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.form__thanks-text { font-size: 15px; line-height: 1.6; opacity: 0.92; }

.footer { position: relative; max-width: var(--container); margin: 100px auto 0; padding-top: 28px; border-top: 1px solid rgba(241,238,230,0.3); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 12px; }
.footer__logo img { display: block; height: 40px; width: auto; }
.footer__legal { display: flex; gap: 28px; flex-wrap: wrap; opacity: 0.9; }
.footer__legal a { color: var(--cream); }
.footer__legal a:hover { color: var(--cream); text-decoration: underline; }
.footer__cookie { padding: 0; border: 0; background: none; color: var(--cream); font: inherit; cursor: pointer; }
.footer__cookie:hover { text-decoration: underline; }
.footer__social { display: flex; gap: 12px; flex-wrap: wrap; letter-spacing: 0.08em; font-weight: 500; }
.footer__social a { color: var(--cream); border: 1px solid rgba(241,238,230,0.5); padding: 8px 12px; transition: background-color .2s ease; }
.footer__social a:hover { color: var(--cream); background: rgba(241,238,230,0.15); }

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО ЗАЯВКИ
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; animation: vsFade 0.3s ease both; }
.modal::before { content: ''; position: fixed; inset: -64px; z-index: -1; background: rgba(45,41,38,0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal__dialog { position: relative; width: 100%; max-width: 940px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); background: var(--cream); color: var(--ink); box-shadow: 0 40px 100px rgba(45,41,38,0.5); }
.modal__dialog:focus { outline: none; }
.modal__aside { position: relative; background: var(--terra); min-height: 300px; }
.modal__aside-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(45,41,38,0.05) 0%, rgba(45,41,38,0.78) 100%); }
.modal__brand { position: absolute; left: 36px; right: 36px; bottom: 36px; color: var(--cream); }
.modal__brand img { display: block; height: 44px; width: auto; margin-bottom: 22px; }
.modal__motto { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; }
.modal__body { padding: 56px 48px 40px; display: flex; flex-direction: column; gap: 30px; }
.modal__body .eyebrow { margin-bottom: 18px; }
.modal__eyebrow { display: block; }
.modal__title { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
.modal__text { font-size: 15px; line-height: 1.65; color: var(--text); margin: 0; text-wrap: pretty; }
.form--light { gap: 28px 24px; padding-top: 0; }
.form--light .field { color: var(--muted); opacity: 1; }
.form--light .field input { border-bottom-color: var(--line-strong); color: var(--ink); }
.form--light .field input:focus { border-bottom-color: var(--terra); }
.form--light .field input::placeholder { color: #9d9189; }
.form--light .form__submit { background: var(--terra); color: var(--cream); padding: 19px; margin-top: 6px; }
.form--light .form__submit:hover { background: var(--terra-dark); color: var(--cream); }
/* «Открыть буклет» — после заявки по кнопкам «Запросить буклет» */
.form__booklet { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 17px 26px; background: var(--terra); color: var(--cream); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; transition: background-color .25s ease; }
.form__booklet:hover { background: var(--terra-dark); color: var(--cream); }
.form__booklet[hidden] { display: none; }
.form__note { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; color: var(--muted); }
/* Согласия под формой: обязательное (обработка данных) и по желанию (рассылка) */
.check { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px; font-size: 12.5px; line-height: 1.55; color: var(--cream); cursor: pointer; }
.check + .check { margin-top: -18px; }
.check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.check span { opacity: 0.85; }
.check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.check a:hover { opacity: 1; }
.form--light .check { color: var(--muted); }
.form--light .check + .check { margin-top: -14px; }
.form--light .check input { accent-color: var(--terra); }
.form--light .check span { opacity: 1; }
.form--light .check a:hover { color: var(--terra); }
.form--light .form__thanks { padding: 20px 0 40px; }
.form--light .form__thanks-title { font-size: 32px; margin-bottom: 12px; }
.form--light .form__thanks-text { color: var(--text); opacity: 1; line-height: 1.65; }
.modal__close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(241,238,230,0.6); background: rgba(45,41,38,0.35); color: var(--cream); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; transition: background-color .2s ease; }
.modal__close:hover { background: var(--ink); }

/* ==========================================================================
   АНИМАЦИЯ
   Появление при прокрутке включает js/main.js (класс .js-anim на <html> ставится в <head>).
   Без JS или при «уменьшении движения» в системе всё видно сразу, без анимации.
   ========================================================================== */

/* Первый экран: строки появляются по очереди, фото медленно «отъезжает» */
.hero__content { animation: none; }
.hero__content > * { animation: vsRise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero__content > :nth-child(1) { animation-delay: .15s; }
.hero__content > :nth-child(2) { animation-delay: .3s; }
.hero__content > :nth-child(3) { animation-delay: .5s; }
.hero__content > :nth-child(4) { animation-delay: .65s; }
.hero__content > :nth-child(5) { animation-delay: .8s; }
.hero__slide.is-active img { animation: vsKen 22s cubic-bezier(.25,.1,.25,1) both; }
@keyframes vsRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes vsKen { from { transform: scale(1.1); } to { transform: scale(1); } }

/* Появление при прокрутке */
.js-anim [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
.js-anim [data-reveal].is-in { opacity: 1; transform: none; }
/* Фото: проявляются и чуть «отъезжают» */
.js-anim [data-reveal="media"], .js-anim [data-reveal="fade"] { transform: none; transition-duration: 1.2s; }
.js-anim [data-reveal="media"] > img, .js-anim [data-reveal="media"] .slider__slide > img, .js-anim [data-reveal="media"] .pano__stage > img { transition: transform 1.8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
.js-anim [data-reveal="media"]:not(.is-in) > img:not(.about__mono),
.js-anim [data-reveal="media"]:not(.is-in) .slider__slide > img,
.js-anim [data-reveal="media"]:not(.is-in) .pano__stage > img { transform: scale(1.08); }
/* Номера секций: линия прорисовывается сверху вниз */
.js-anim .sec-num[data-reveal]::before { transform: scaleY(0); transform-origin: top; transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .2s; }
.js-anim .sec-num[data-reveal].is-in::before { transform: none; }

/* Шапка: на первом экране прозрачнее; при прокрутке вниз прячется, вверх — появляется */
.header { transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .4s ease; }
.header::before { transition: background-color .4s ease; }
.header.is-top { border-bottom-color: transparent; }
.header.is-top::before { background: rgba(45,41,38,0.3); }
.header.is-hidden { transform: translateY(-100%); }

/* Параллакс: фото выше блока, скрипт сдвигает его медленнее прокрутки */
.sunset > img.fill, .terra__media > img.fill { top: -9%; height: 118%; will-change: transform; }

/* Точки на фото мягко пульсируют — видно, что на них можно нажать */
.hotspot__pin { position: relative; }
.hotspot__pin::before, .amen-pin::before { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(241,238,230,0.9); pointer-events: none; animation: vsRing 2.8s ease-out infinite; }
.hotspot.is-active .hotspot__pin::before, .amen-pin.is-active::before { animation: none; opacity: 0; }
@keyframes vsRing { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

/* Стрелки в кнопках сдвигаются при наведении */
.btn span[aria-hidden="true"], .route-btn span[aria-hidden="true"], .hero__plans span[aria-hidden="true"], .link-caps span[aria-hidden="true"] { display: inline-block; transition: transform .3s ease; }
.btn:hover span[aria-hidden="true"], .route-btn:hover span[aria-hidden="true"], .hero__plans:hover span[aria-hidden="true"] { transform: translateX(4px); }
.link-caps:hover span[aria-hidden="true"], .btn--cream:hover span[aria-hidden="true"], .btn--ink:hover span[aria-hidden="true"] { transform: translateY(3px); }

/* Фото в галерее и обложки видео слегка приближаются при наведении */
.gallery__item { overflow: hidden; }
.gallery__item > img, .story__card > img { transition: transform .8s ease; }
.gallery__item:hover > img, .story__card:hover > img { transform: scale(1.04); }

/* Фото при появлении увеличены до 108% — обрезаем по рамке, чтобы не наезжали на соседние блоки */
.invest__media--1, .invest__media--2, .invest__media--3, .service__media, .amenities__media, .arch__media, .base__media { overflow: hidden; }

/* Боковая навигация линиями (только компьютер). Ловит мышь только узкая полоса у края экрана —
   на кнопки сайта не наезжает; линии растут влево за её пределы */
.rail { position: fixed; right: 8px; top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; --tick: rgba(45,41,38,0.5); --tick-on: var(--terra); }
.rail.is-dark { --tick: rgba(241,238,230,0.65); --tick-on: var(--ochre); }
.rail__item { position: relative; display: flex; align-items: center; justify-content: flex-end; width: 30px; height: 16px; pointer-events: auto; }
.rail__line { display: block; flex: 0 0 auto; height: 2px; width: calc(18px + 26px * var(--g, 0)); border-radius: 1px; background: var(--tick); transition: width .2s cubic-bezier(.2,.7,.2,1), background-color .35s ease; }
.rail__item.is-active .rail__line { width: calc(34px + 10px * var(--g, 0)); background: var(--tick-on); }
.rail__label { position: absolute; right: 54px; top: 50%; padding: 6px 11px; background: var(--ink); color: var(--cream); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(6px, -50%); transition: opacity .2s ease, transform .2s ease; }
.rail.is-dark .rail__label { background: var(--cream); color: var(--ink); }
.rail__item.is-hover .rail__label, .rail__item:focus-visible .rail__label { opacity: 1; transform: translate(0, -50%); }
.rail__item:focus-visible { outline: none; }
.rail__item:focus-visible .rail__line { outline: 2px solid var(--ochre); outline-offset: 3px; }
/* Только в компьютерной версии (шире 1200 px); на планшете и телефоне — меню-бургер */
@media (max-width: 1200px) { .rail { display: none; } }

/* Числа не «прыгают» по ширине во время подсчёта */
.count { display: inline-block; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   АДАПТИВ (в макете только десктоп — ниже собственная адаптация)
   ========================================================================== */

/* Кнопка звонка в шапке дублирует плавающую — прячем, чтобы уместилось меню */
@media (max-width: 1320px) {
  .header__cta { display: none; }
}

/* Узкий десктоп / планшет горизонтально */
@media (max-width: 1200px) {
  .nav, .more-menu { display: none !important; }
  .burger { display: inline-flex; }

  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }

  .visit { grid-template-columns: minmax(0, 1fr); }
  .visit__col, .visit__col--1, .visit__col--2, .visit__col--3 { padding: 32px 0; border-right: 0; }
  .visit__col + .visit__col { border-top: 1px solid var(--line); }
  .visit__perks { grid-template-columns: repeat(3, minmax(0, max-content)); gap: 20px 48px; }

  .infra-card__body { padding: 18px; }
  .infra-card__row { gap: 8px; }
  .infra-card__icon { width: 28px; height: 28px; font-size: 16px; }
  .ownership__grid { gap: 24px; }
  .ownership__item:first-child { padding-right: 24px; }
  .ownership__name { font-size: 17px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; --indent: 48px; }

  /* Панорама: список комнат уходит под картинку */
  .pano__stage { aspect-ratio: 16 / 9; }
  .pano__panel { position: static; width: auto; flex-direction: row; align-items: flex-end; gap: 16px; padding: 16px 24px 20px; background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pano__rooms { flex-direction: row; flex-wrap: wrap; gap: 0 22px; }

  /* Карточки инфраструктуры и истории — горизонтальная лента */
  .infra { padding-top: 220px; }
  .infra__grid, .stories__grid { grid-template-columns: none; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 14px 0; scrollbar-width: thin; }
  .infra__grid { grid-auto-columns: minmax(240px, 34%); scrollbar-color: rgba(214,138,89,0.45) transparent; }
  .stories__grid { grid-auto-columns: minmax(200px, 28%); scrollbar-color: rgba(160,82,45,0.35) transparent; }
  .infra-card, .story { scroll-snap-align: start; }

  .distances li { padding: 28px 10px; }
  .distances__min { font-size: 44px; }
}

/* Планшет вертикально: одна колонка */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: 150px; padding-bottom: 100px; }
  .hero__controls { align-items: flex-start; }

  .invest__row--1, .invest__row--2, .invest__row--3 { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 16px; }
  .invest__media--1, .invest__media--2, .invest__media--3 { min-height: 0; aspect-ratio: 16 / 10; }

  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .about__media { max-width: 520px; }

  .terra { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .terra__text { padding: 88px var(--gutter); }
  .terra__media { min-height: 420px; }

  .location__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .map { min-height: 400px; }

  .amenities__grid, .arch__grid, .service__grid, .ready__grid, .base__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .arch__body { order: -1; }
  .service__media { max-width: 560px; }

  .contacts__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }

  .plans__sheet { grid-template-columns: minmax(0, 1fr); gap: 44px; justify-items: center; }
  .plan-floor { width: 100%; max-width: 560px; }
}

@media (max-width: 800px) {
  .distances { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 48px; border-top: 0; }
  .distances li { border-left: 0; border-top: 1px solid var(--line); padding: 22px 8px; }
  .distances li:nth-child(odd) { border-right: 1px solid var(--line); }
  .distances li:last-child { grid-column: 1 / -1; border-right: 0; }
  .distances__min { font-size: 40px; }
  .plan-stats li { padding: 28px 16px; }
  .plan-stats__label { letter-spacing: 0.2em; }
}

/* Телефон */
@media (max-width: 640px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 14px; bottom: 12px; padding: 16px; }
  .cookie__actions { flex-direction: column-reverse; }
  .cookie__btn { width: 100%; padding: 13px; }
  :root { --gutter: 20px; --indent: 0px; --header-h: 65px; }
  html { scroll-padding-top: 70px; }

  .sec-num { display: none; }

  .header { gap: 16px; padding-top: 10px; padding-bottom: 10px; }
  .header__logo img { height: 44px; }
  .header .lang { display: none; }
  .mobile-menu__foot .lang { display: flex; }

  .fab { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 12px; }

  .hero__shade { background: linear-gradient(180deg, rgba(45,41,38,0.5) 0%, rgba(45,41,38,0.12) 22%, rgba(45,41,38,0.55) 48%, rgba(45,41,38,0.9) 100%); }
  .hero__inner { padding: 120px var(--gutter) 84px; }
  .hero__place { margin-bottom: 20px; }
  .hero__title { font-size: 42px; }
  .hero__sub { font-size: 19px; }
  .hero__perks { font-size: 11px; letter-spacing: 0.1em; gap: 10px 16px; margin-bottom: 32px; }
  .hero__perks i { display: none; }
  .hero__perks span { display: flex; align-items: center; gap: 8px; }
  .hero__perks span::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--ochre); flex: 0 0 auto; }
  .hero__actions .btn--terra, .hero__actions .btn--ghost-light { flex: 1 1 100%; }

  .invest { padding-top: 80px; }
  .ownership { padding: 36px 22px; }
  .ownership__title { font-size: 24px; }
  .ownership__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ownership__item:first-child { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .stats__grid { grid-template-columns: minmax(0, 1fr); }
  .stats__cell, .stats__cell:first-child, .stats__cell:last-child { padding: 20px 0; border-right: 0; }
  .stats__cell + .stats__cell { border-top: 1px solid var(--line); }
  .stats__label { margin-top: 32px; }

  .tour { padding: 72px var(--gutter) 64px; }
  .tour__head { gap: 24px; margin-bottom: 32px; }
  .tagline { font-size: 18px; }
  .tagline::before { width: 40px; }
  .pano__stage { aspect-ratio: 1 / 1; }
  .pano__panel { padding: 14px 20px 20px; }
  .pano__rooms { gap: 0 18px; }
  .pano__room-btn { font-size: 13px; padding: 6px 0; }
  .pano__ring { width: 106px; height: 106px; }
  .pano__deg { font-size: 32px; }
  .pano__cta { font-size: 11px; letter-spacing: 0.24em; }
  .pano__caption { left: 16px; bottom: 16px; }
  .visit__perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

  .about { padding: 72px var(--gutter) 96px; }
  .about__grid { gap: 64px; }
  .about__media { margin-left: 24px; margin-right: 16px; }
  .about__mono { right: -14px; top: -30px; width: 56px; }

  .terra__text { padding: 64px var(--gutter); }
  .terra__media { min-height: 320px; }
  .terra__caption { right: 20px; bottom: 20px; }

  .sunset { height: 56vh; min-height: 340px; }

  .location { padding: 72px var(--gutter); }
  .map { min-height: 320px; }

  .infra { padding: 180px var(--gutter) 72px; }
  .infra__head { margin-bottom: 36px; gap: 16px; }
  .infra__grid { grid-auto-columns: 78%; gap: 12px; }

  .amenities, .service, .base { padding: 72px var(--gutter); }
  .arch, .ready, .plans { padding: 72px var(--gutter); }
  .amenities__grid .title { margin-bottom: 28px; }
  .amen__title { font-size: 20px; }
  .service-list { grid-template-columns: minmax(0, 1fr); }
  .slider__caption { left: 14px; bottom: 14px; }

  /* На телефоне подпись точки дублируется списком — всплывашки не нужны */
  .hotspot__tip { display: none !important; }

  .plans__wrap .title { margin-bottom: 36px; }
  .plan-stats { grid-template-columns: minmax(0, 1fr); margin-bottom: 36px; }
  .plan-stats li { border-left: 0; padding: 20px 0; }
  .plan-stats li + li { border-top: 1px solid rgba(214,138,89,0.35); }
  .plans__sheet { padding: 28px 16px 24px; gap: 32px; }
  .plans__hint { margin: -20px 0 14px; text-align: left; }
  .plan-viewer__bar { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .plan-viewer__tools { gap: 6px; }
  .plan-viewer__btn { width: 36px; height: 36px; font-size: 16px; }
  .plan-viewer__sep { margin: 0 1px; }

  .gallery { padding: 72px 0 64px var(--gutter); }
  .gallery__head { margin-bottom: 32px; gap: 20px; }
  .gallery__item { width: calc(var(--w) * 0.6); }
  .gallery__track { gap: 10px; }

  .stories { padding: 72px var(--gutter) 88px; }
  .stories__head { margin-bottom: 32px; gap: 20px; }
  .stories__head .tagline { text-align: left; }
  .stories__grid { grid-auto-columns: 62%; gap: 12px; }

  .contacts { padding: 72px var(--gutter) 40px; }
  .contacts__info { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer { margin-top: 64px; flex-direction: column; align-items: flex-start; gap: 20px; }

  .modal { padding: 12px; }
  .modal__dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); grid-template-columns: minmax(0, 1fr); }
  .modal__aside { min-height: 170px; }
  .modal__brand { left: 24px; right: 24px; bottom: 18px; }
  .modal__brand img { height: 34px; margin-bottom: 10px; }
  .modal__motto { font-size: 18px; }
  .modal__body { padding: 30px 22px 26px; gap: 22px; }
  .form--light { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .gallery__track { scroll-behavior: auto; }
}
