/* Meiram Park Comfort+ — стили сайта
   Layout: полноширинные секции-полосы; hero — рендер 2/3 + форма 1/3; сетки складываются в одну колонку на телефоне */
:root {
  --ivory: #F6F1E9;
  --paper: #FBF8F3;
  --beige: #DEC2A4;
  --olive: #707D62;
  --olive-deep: #56624A;
  --red: #EE3124;
  --ink: #23241F;
  --ink-2: #5E5A52;
  --ink-3: #4A463F;
  --on-dark: #F6F1E9;
  --on-dark-2: #D8D2C6;
  --white: #FFFFFF;
  --line: rgba(35, 36, 31, 0.16);
  --line-strong: rgba(35, 36, 31, 0.3);
  --line-dark: rgba(246, 241, 233, 0.2);
  --scrim: rgba(35, 36, 31, 0.78);
  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --band: clamp(56px, 9vw, 120px);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--olive-deep); }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.nw { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Типографика ---------- */
.serif { font-family: var(--serif); font-weight: 500; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.h2 em, .display em { font-style: italic; color: var(--olive); }
.on-beige .h2 em { color: inherit; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive-deep); }
.on-beige .eyebrow { color: var(--ink); }
.muted { color: var(--ink-2); }
.on-beige .muted { color: var(--ink-3); }
.note { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 30px; border: 1px solid transparent; border-radius: 2px; background: none; font-size: 17px; font-weight: 500; line-height: 1.15; text-align: center; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.btn--red { min-height: 60px; background: var(--red); color: var(--white); font-size: 19px; font-weight: 700; }
.btn--red:hover { background: #D92B1F; color: var(--white); }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: var(--olive-deep); color: var(--ivory); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--ivory); }
.btn--light { border-color: var(--on-dark); color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--ink); }
.btn--sm { min-height: 46px; padding: 0 16px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.link-line { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line-strong); }

/* ---------- Секции ---------- */
.band { padding: var(--band) var(--gutter); }
.band--beige { background: var(--beige); }
.band--olive { background: var(--olive); color: var(--white); }
.band--ruled { padding-top: 0; }
.band--ruled > .band__head { padding-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.band__head { display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: flex-end; justify-content: space-between; }
.band__body { margin-top: clamp(28px, 4.6vw, 64px); }

/* ---------- Шапка ---------- */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ivory); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; min-height: var(--header-h); padding: 8px var(--gutter); }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img:first-child { height: 44px; width: auto; }
.logo img:last-child { height: 42px; width: auto; }
.nav { display: flex; gap: 6px 26px; font-size: 15px; }
.nav a { padding: 12px 0; white-space: nowrap; }
.header__side { display: flex; align-items: center; gap: 10px 22px; }
.lang { display: flex; align-items: center; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; }
.lang button { min-width: 44px; height: 44px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); }
.lang button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--red); }
.header__phone { font-size: 16px; font-weight: 500; padding: 12px 0; white-space: nowrap; }
.header__cta { min-height: 46px; padding: 0 22px; font-size: 15px; white-space: nowrap; }
.burger { display: none; width: 48px; height: 48px; padding: 0; border: 0; background: none; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(380px, 1fr); border-bottom: 1px solid var(--line); }
.hero__media { position: relative; min-height: 640px; overflow: hidden; background: #DCCBB3; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 8% 50%; }
.hero__tag { position: absolute; right: 0; bottom: 0; padding: 22px clamp(20px, 3vw, 40px) 24px; background: var(--ivory); font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -0.01em; }
.hero__tag em { font-style: italic; color: var(--olive-deep); }
.hero__panel { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 44px clamp(20px, 3.4vw, 48px) 36px; min-width: 0; }
.hero__brand { font-size: 14px; font-weight: 600; letter-spacing: 0.2em; }
.hero__brand b { color: var(--red); font-weight: 600; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 3.7vw, 54px); line-height: 1; letter-spacing: -0.015em; text-wrap: balance; }
.hero__facts { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.hero__ready { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border-radius: 14px; background: rgba(112, 125, 98, 0.14); font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--olive-deep); }
.hero__ready span { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }
.hero__price { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3vw, 44px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.hero__price small { font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.hero__spec { font-size: 20px; font-weight: 500; }
.hero__spec small { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.hero__loc { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 400; color: var(--ink-2); }

/* ---------- Формы ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.field input { height: 54px; width: 100%; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); font: 400 17px var(--sans); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.form__error { font-size: 13px; line-height: 1.4; color: #B3231A; }
.consent { font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.consent a { text-decoration: underline; }
.form__done { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.form__done strong { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.05; }

/* ---------- О проекте ---------- */
.about__head { display: flex; flex-wrap: wrap; gap: 28px 80px; align-items: flex-end; }
.about__head .display { flex: 3 1 420px; font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 5.4vw, 80px); line-height: 0.98; letter-spacing: -0.02em; }
.about__head p { flex: 2 1 340px; font-size: clamp(17px, 1.5vw, 20px); }
.stats { display: grid; grid-template-columns: 0.7fr 0.7fr 0.9fr 1.3fr 1.5fr 1.2fr; gap: 32px 24px; margin-top: clamp(36px, 6vw, 88px); }
.stat { position: relative; padding-top: 20px; border-top: 1px solid var(--ink); }
.stat__pre { position: absolute; top: 4px; left: 0; font-size: 12px; line-height: 14px; letter-spacing: 0.04em; color: var(--ink-2); }
.stat__num { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 4vw, 60px); line-height: 1; white-space: nowrap; }
.stat__label { margin-top: 8px; font-size: 16px; color: var(--ink-2); }

/* ---------- Отделка ---------- */
.finish__title { margin-top: 20px; max-width: 1100px; }
.finish__title em { font-style: italic; }
.hot { position: relative; margin-top: clamp(28px, 4.6vw, 64px); }
.hot__stage { position: relative; aspect-ratio: 1672 / 941; overflow: hidden; background: #ECE5DA; }
.hot__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hot__dot { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; padding: 0; border: 0; background: none; }
.hot__dot::before { content: ''; position: absolute; left: 7px; top: 7px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ink); opacity: 0; }
.hot__dot span { position: relative; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 7px; border-radius: 50%; background: var(--ink); color: var(--white); font: 600 13px var(--sans); transition: background 0.3s ease, transform 0.3s ease; }
.hot__dot[aria-pressed="true"] span { background: var(--red); transform: scale(1.08); }
.hot__card { position: absolute; right: 20px; bottom: 20px; width: min(360px, calc(100% - 40px)); padding: 18px 22px 20px; background: var(--paper); }
.hot__n { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--olive-deep); }
.hot__t { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.05; }
.hot__d { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.finish__hint { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--ink); }
.finish__cap { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.finish__row { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; margin-top: clamp(32px, 4vw, 56px); padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.finish__row h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.8vw, 40px); line-height: 1; }
.finish__list { columns: 2 340px; column-gap: 64px; font-size: 18px; counter-reset: fin; }
.finish__list li { display: flex; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(35, 36, 31, 0.22); break-inside: avoid; counter-increment: fin; }
.finish__list li::before { content: counter(fin, decimal-leading-zero); flex: none; padding-top: 4px; font-size: 13px; color: var(--ink-3); }

/* ---------- Планировки ---------- */
.plans__lead { max-width: 420px; font-size: 18px; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3.4vw, 48px); }
.filters button { min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; font-size: 16px; font-weight: 500; transition: background 0.3s ease, color 0.3s ease; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.plans__meta { display: none; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(24px, 3.4vw, 40px); }
.prices li { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--ink); }
.prices span { font-size: 15px; color: var(--ink-2); }
.prices b { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 2.8vw, 40px); line-height: 1; white-space: nowrap; }
.plans__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; background: var(--paper); border: 1px solid rgba(35, 36, 31, 0.12); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__type { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive-deep); }
.plan__code { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.seg { display: flex; flex: none; border: 1px solid var(--ink); border-radius: 2px; }
.seg button { width: 56px; height: 44px; padding: 0; border: 0; background: transparent; font-size: 14px; font-weight: 600; transition: background 0.3s ease, color 0.3s ease; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.seg--lg button { width: 84px; height: 52px; font-size: 16px; }
.plan__tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; margin-top: -4px; }
.plan__tags li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 2px; background: var(--olive-deep); font-size: 12.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0.02em; color: var(--white); }
.plan__tags li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--beige); flex: none; }
.plan__tags:empty { visibility: hidden; }
#plan-dialog-tags { min-height: 0; margin-top: -8px; }
#plan-dialog-tags:empty { display: none; }
.plan__fig { position: relative; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: none; cursor: zoom-in; }
.plan__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.5s ease; }
.plan__fig .p2d { mix-blend-mode: multiply; }
.plan__fig .p3d { opacity: 0; }
.plan__fig[data-mode="3d"] .p2d { opacity: 0; }
.plan__fig[data-mode="3d"] .p3d { opacity: 1; }
.plan__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan__area { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1; white-space: nowrap; }

/* ---------- Архитектура ---------- */
.arch__media { position: relative; height: clamp(260px, 47vw, 680px); overflow: hidden; background: #CFC0A8; }
.arch__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.arch__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 96px; padding: clamp(40px, 7vw, 96px) var(--gutter) var(--band); }
.facts { display: flex; flex-direction: column; }
.fact { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid rgba(35, 36, 31, 0.22); }
.fact:first-child { border-top-color: var(--ink); }
.fact:last-child { border-bottom: 1px solid rgba(35, 36, 31, 0.22); }
.fact__num { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 3.9vw, 56px); line-height: 1; white-space: nowrap; }
.fact__num small { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--ink-2); }
.fact__label { font-size: 16px; color: var(--ink-2); text-align: right; }

/* ---------- Материалы ---------- */
.mat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.mat__cards { display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
.mat__card { display: flex; align-items: center; gap: 22px; padding: 22px 24px; background: var(--paper); border: 1px solid rgba(35, 36, 31, 0.12); border-radius: 2px; }
.mat__card img { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.mat__card h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1; }
.mat__card p { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.mat__foot { margin-top: auto; padding-top: 16px; font-size: 13px; line-height: 1.5; font-style: italic; color: var(--ink-2); }
.mat__view { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 10fr); background: var(--beige); }
.mat__view > img { width: 100%; height: auto; aspect-ratio: 961 / 1620; }
.mat__labels { position: relative; }
.callout { position: absolute; left: 0; right: 20px; transform: translateY(-50%); display: flex; align-items: center; gap: 14px; }
.callout__line { flex: none; display: flex; align-items: center; width: clamp(24px, 16%, 72px); }
.callout__line::before { content: ''; flex: 1; height: 1px; background: var(--ink); }
.callout__line::after { content: ''; border-left: 7px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.callout b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 2.2vw, 32px); line-height: 1.05; }
.callout div span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }

/* ---------- Холлы ---------- */
.halls { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr); gap: 32px 40px; align-items: start; }
.halls__main, .halls__detail { aspect-ratio: 3 / 2; overflow: hidden; background: #D8CBB6; }
.halls img { width: 100%; height: 100%; object-fit: cover; }
.halls__side { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.halls__side p { font-size: clamp(17px, 1.5vw, 20px); }

/* ---------- Двор ---------- */
.yard { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px 72px; }
.yard__media { position: relative; min-height: 640px; overflow: hidden; background: #B9C0AC; }
.yard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 8% 50%; }
.yard__side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-width: 0; }
.yard__side .h2 em { font-style: italic; }
.rows { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.rows li { padding: 14px 0; border-top: 1px solid var(--line-strong); }
.rows li:first-child { border-top-color: var(--ink); }
.rows li:last-child { border-bottom: 1px solid var(--line-strong); }

/* ---------- Локация ---------- */
.loc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px 72px; align-items: start; }
.loc__map img { width: 100%; }
.loc__title { padding-bottom: 16px; border-bottom: 1px solid var(--ink); font-size: 20px; font-weight: 500; }
.near { font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 2.3vw, 32px); line-height: 1.1; }
.near li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(35, 36, 31, 0.2); }
.near small { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.loc__addr { margin-top: 24px; font-size: 15px; color: var(--ink-2); }
.planned { display: flex; flex-wrap: wrap; gap: 24px 72px; margin-top: clamp(28px, 4vw, 56px); padding: clamp(22px, 2.6vw, 36px) clamp(18px, 3vw, 44px); border: 1px dashed rgba(35, 36, 31, 0.45); }
.planned > div { flex: 1 1 280px; }
.planned__names { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 16px; font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(32px, 2.8vw, 40px); line-height: 1.1; color: var(--ink-2); }
.planned > p { flex: 1 1 320px; align-self: flex-end; }

/* ---------- Преимущества ---------- */
.tiles { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 24px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 400px; min-width: 0; padding: clamp(22px, 2.5vw, 36px); }
.tile--paper { background: var(--paper); border: 1px solid rgba(35, 36, 31, 0.12); }
.tile--beige { background: var(--beige); }
.tile--olive { background: var(--olive); color: var(--white); }
.tile__label { font-size: 18px; color: var(--ink-2); }
.tile--beige .tile__label { color: var(--ink-3); }
.tile__pre { margin-bottom: 10px; font-size: 16px; color: var(--ink-2); }
.tile__big { font-family: var(--serif); font-weight: 500; font-size: clamp(84px, 11vw, 168px); line-height: 0.9; letter-spacing: -0.03em; white-space: nowrap; }
.tile__mid { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 4.4vw, 64px); line-height: 0.98; letter-spacing: -0.02em; }
.tile__five { font-family: var(--serif); font-weight: 500; font-size: clamp(150px, 15vw, 220px); line-height: 0.8; }
.tile--olive p:not(.tile__five) { font-size: 24px; line-height: 1.2; }
.perks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.perk { padding-top: 16px; border-top: 1px solid var(--ink); font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 2.1vw, 30px); line-height: 1.05; }

/* ---------- Условия ---------- */
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.term { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 18px 0 0; border: 0; border-top: 1px solid var(--ink); background: none; text-align: left; color: var(--ink); cursor: pointer; }
.term em { margin-top: 14px; font-style: normal; font-size: 15px; font-weight: 500; color: var(--olive-deep); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.term:hover em, .term:focus-visible em { border-bottom-color: currentColor; }
.term b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 2.8vw, 40px); line-height: 1; }
.term span { display: block; margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.terms__note { margin-top: 32px; max-width: 760px; }

/* ---------- Лид-блок ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px 96px; align-items: center; }
.lead h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.2vw, 76px); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
.lead > div:first-child p { margin-top: 28px; max-width: 620px; font-size: 24px; line-height: 1.4; }
.lead .form { padding: clamp(20px, 3vw, 40px); background: var(--ivory); color: var(--ink); gap: 14px; }

/* ---------- Застройщик ---------- */
.seo { max-width: 760px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.seo p { margin-bottom: 16px; }
.seo__more summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-strong); cursor: pointer; list-style: none; }
.seo__more summary::-webkit-details-marker { display: none; }
.seo__more summary::after { content: ' ↓'; white-space: pre; }
.seo__more[open] summary { display: none; }
.loc__map-link { margin-top: 12px; }
.final__map { margin-top: 6px; }
#complex .h2 em { font-size: 0.6em; white-space: nowrap; }
.dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 2fr); gap: 40px 72px; align-items: start; padding-block: clamp(48px, 6.4vw, 88px); border-bottom: 1px solid var(--line); }
.dev__logo { margin-top: 28px; width: 200px; }
.dev__text { font-size: 18px; line-height: 1.55; }
.dev__text p + p { margin-top: 16px; color: var(--ink-2); }
.dev__projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.dev__projects img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dev__projects figcaption { margin-top: 10px; font-size: 16px; font-weight: 500; }

/* ---------- Финал ---------- */
.final { padding: clamp(72px, 10vw, 140px) var(--gutter); text-align: center; }
.final img { margin: 0 auto; width: clamp(180px, 17vw, 240px); }
.final .display { margin-top: clamp(32px, 3.4vw, 48px); font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 8.4vw, 128px); line-height: 0.94; letter-spacing: -0.025em; }
.final__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }
.final__cta .btn { min-height: 62px; padding: 0 38px; }
.final__note { margin-top: 20px; font-size: 15px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { padding: clamp(48px, 6vw, 80px) var(--gutter) 48px; background: var(--ink); color: var(--on-dark); }
.footer a:hover { color: var(--beige); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1.1fr; gap: 40px 56px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer__logo { display: flex; align-items: center; gap: 14px; }
.footer__logo img:first-child { height: 56px; width: auto; }
.footer__logo img:last-child { height: 52px; width: auto; }
.footer__place { margin-top: 16px; font-size: 15px; color: var(--on-dark-2); }
.footer__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 15px; color: var(--on-dark-2); }
.footer__col a { color: var(--on-dark); }
.footer__h { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); }
.footer__phone { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; }
.footer__tel2 { font-size: 17px; }
.footer__wa { align-self: flex-start; min-height: 48px; margin-top: 8px; padding: 0 20px; font-size: 16px; }
.footer__links a { padding: 8px 0; }
.footer__links a.u { text-decoration: underline; }
.footer__legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 64px; padding: 40px 0; font-size: 13px; line-height: 1.55; color: var(--on-dark-2); }
.footer__legal div { display: flex; flex-direction: column; gap: 14px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-2); }

/* ---------- Диалоги ---------- */
dialog { padding: 0; border: 0; background: var(--ivory); color: var(--ink); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; }
dialog::backdrop { background: var(--scrim); }
.dlg__close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; }
.dlg-lead { width: 420px; }
.dlg-lead__in { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 60px 36px 32px; }
.dlg-lead__mark { position: absolute; top: 18px; left: 36px; height: 30px; width: auto; }
.dlg-lead__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive-deep); }
.dlg-lead__title { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1; letter-spacing: -0.015em; text-wrap: balance; }
.dlg-plan { width: 1120px; }
.dlg-plan__in { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px 48px; padding: clamp(20px, 3vw, 44px); }
.dlg-plan__fig { padding: 20px; background: var(--paper); border: 1px solid rgba(35, 36, 31, 0.12); }
.dlg-plan__fig .plan__fig { cursor: default; }
.dlg-plan__side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dlg-plan__side .seg { align-self: flex-start; }
[tabindex="-1"]:focus { outline: none; }
.dlg-plan__title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3vw, 44px); line-height: 1; }
.spec { font-size: 18px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-2); }
.spec dd { font-weight: 500; text-align: right; }
.dlg-plan__cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

/* ---------- Нижняя панель на телефоне ---------- */
.dock { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; grid-template-columns: 54px 54px minmax(0, 1fr); gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--ivory); border-top: 1px solid var(--line); }
.dock .btn { min-height: 54px; padding: 0 10px; white-space: nowrap; }
.dock__icon { display: flex; align-items: center; justify-content: center; height: 54px; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); }
.dock__wa { color: #1E9E53; }
.dock .btn--red { letter-spacing: -0.02em; }

/* ---------- Сообщение ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 14px 20px; background: var(--ink); color: var(--ivory); font-size: 15px; line-height: 1.4; }

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
  .hero__panel > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__panel > *:nth-child(2) { animation-delay: 0.08s; }
  .hero__panel > *:nth-child(3) { animation-delay: 0.16s; }
  .hero__panel > *:nth-child(4) { animation-delay: 0.24s; }
  .hero__media img { animation: settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .is-in { animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
  @keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .hot__dot[aria-pressed="false"]::before { animation: ping 2.6s ease-out infinite; }
  .hot__dot:nth-of-type(2)::before { animation-delay: 0.5s; }
  .hot__dot:nth-of-type(3)::before { animation-delay: 1s; }
  .hot__dot:nth-of-type(4)::before { animation-delay: 1.5s; }
  .hot__dot:nth-of-type(5)::before { animation-delay: 2s; }
  .hot__dot:nth-of-type(6)::before { animation-delay: 0.8s; }
  .hot__card.is-swap > * { animation: swap 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hot__card.is-swap > *:nth-child(2) { animation-delay: 0.05s; }
  .hot__card.is-swap > *:nth-child(3) { animation-delay: 0.1s; }
  .is-in-img img { animation: settle 2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  dialog[open] { animation: rise 0.45s ease both; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--ivory); border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .hot__card { position: static; width: auto; min-height: 150px; padding: 18px 22px 20px; }
  .hot__d { max-width: 760px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__media { min-height: 0; height: clamp(280px, 56vw, 520px); }
  .hero__media img { object-position: 12% 50%; }
  .hero__panel { padding: 24px var(--gutter) 40px; gap: 18px; }
  .arch__body, .mat, .halls, .yard, .loc, .lead, .dev { grid-template-columns: minmax(0, 1fr); }
  .yard__media { min-height: 0; height: clamp(300px, 70vw, 560px); margin: calc(var(--band) * -1) calc(var(--gutter) * -1) 0; object-position: 4% 50%; }
  .yard__media img { object-position: 4% 50%; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile { min-height: 0; }
  .tile--olive { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 20px; }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlg-plan__in { grid-template-columns: minmax(0, 1fr); }
  .dev__logo { margin-top: 20px; width: 170px; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .header__in { padding-right: 8px; gap: 8px; }
  .logo { gap: 8px; }
  .logo img:first-child { height: 34px; }
  .logo img:last-child { height: 32px; }
  .header__phone, .header__cta { display: none; }
  .header__side { gap: 0; }
  .lang { font-size: 13px; }
  .hero__spec { font-size: 18px; }
  .hero__loc { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .stat__label { font-size: 14px; margin-top: 4px; }
  .hot { margin-inline: calc(var(--gutter) * -1); }
  .hot__dot::before { left: 9px; top: 9px; width: 26px; height: 26px; }
  .hot__dot span { width: 26px; height: 26px; margin: 9px; font-size: 12px; }
  .hot__card { min-height: 150px; padding: 16px var(--gutter) 18px; }
  .hot__t { font-size: 26px; }
  .finish__hint { font-size: 14px; }
  .finish__list { font-size: 16px; }
  .finish__list li { padding: 11px 0; }
  .finish__row .btn { width: 100%; }
  .filters { flex-wrap: nowrap; gap: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filters button { flex: none; min-height: 50px; padding: 0 16px; font-size: 15px; white-space: nowrap; }
  .plans__meta { display: flex; }
  .plans__grid { display: flex; gap: 12px; margin: 12px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .plan { flex: none; width: min(300px, 82vw); scroll-snap-align: center; padding: 16px; gap: 14px; }
  .plan__head { flex-direction: column-reverse; align-items: stretch; }
  .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlg-plan__side .seg { align-self: stretch; }
  .seg button { width: auto; height: 52px; font-size: 17px; }
  .fact__label { font-size: 14px; }
  .fact { gap: 16px; padding: 14px 0; }
  .mat__view { margin-inline: calc(var(--gutter) * -1); order: -1; }
  .mat__card { gap: 16px; padding: 14px 16px; }
  .mat__card img { width: 64px; height: 64px; }
  .mat__card h3 { font-size: 26px; }
  .mat__card p { margin-top: 6px; font-size: 14px; }
  .callout { right: 10px; gap: 8px; }
  .callout div span { display: none; }
  .halls__main { margin-inline: calc(var(--gutter) * -1); }
  .halls { gap: 12px; }
  .halls__side { gap: 24px; }
  .near small { font-size: 13px; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 28px; }
  .terms { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prices { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prices li { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; }
  .prices li:last-child { border-bottom: 1px solid var(--ink); }
  .prices span { font-size: 15px; }
  .prices b { font-size: 26px; }
  .hero__ready { font-size: 13px; }
  .term { padding: 14px 0; }
  .term em { margin-top: 8px; }
  .term span { margin-top: 6px; font-size: 15px; }
  .band__head .btn { width: 100%; }
  .lead > div:first-child p { margin-top: 20px; font-size: 20px; line-height: 1.3; }
  .final__cta { flex-direction: column; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 28px; }
  .footer__logo img:first-child { height: 46px; }
  .footer__logo img:last-child { height: 42px; }
  .footer__phone { font-size: 34px; }
  .footer__col a { display: flex; align-items: center; min-height: 44px; }
  .footer__wa { align-self: stretch; min-height: 54px; }
  .footer__legal { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .dock { display: grid; }
  .dlg-lead__in { padding: 56px 20px 24px; }
  .dlg-lead__mark { left: 20px; }
  .dlg-lead__title { font-size: 34px; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Служебное ---------- */
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.filters__n { margin-left: 8px; font-size: 13px; font-weight: 400; opacity: 0.6; }
.form__done p { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.form__demo { padding: 10px 12px; border: 1px dashed var(--line-strong); font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.dlg-lead .form__done { padding-bottom: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal=""]:not(.is-in) { opacity: 0; }
}

/* Google Translate: прячем служебную панель и всплывающие подсказки */
.goog-te-banner-frame, .goog-te-gadget, .goog-tooltip, #goog-gt-tt, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---------- Страница документа (политика) ---------- */
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); padding: 8px var(--gutter); border-bottom: 1px solid var(--line); }
.doc-head__back { font-size: 16px; font-weight: 500; padding: 12px 0; white-space: nowrap; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 40px 72px; padding: clamp(40px, 6vw, 88px) var(--gutter) var(--band); }
.doc__meta { align-self: start; position: sticky; top: 24px; font-size: 15px; }
.doc__meta dl { margin-top: 16px; }
.doc__meta dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.doc__meta dl div:last-child { border-bottom: 1px solid var(--line); }
.doc__meta dt { font-size: 13px; color: var(--ink-2); }
.doc__meta dd { margin-top: 2px; font-weight: 500; overflow-wrap: anywhere; }
.doc__body { max-width: 760px; min-width: 0; }
.doc__body h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.doc__body h1 + p { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); }
.doc__body h2 { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ink); font-family: var(--serif); font-weight: 500; font-size: clamp(27px, 2.6vw, 34px); line-height: 1.1; }
.doc__body p { margin-top: 14px; }
.doc__body ul { margin-top: 14px; padding-left: 22px; list-style: disc; }
.doc__body li { margin-top: 8px; }
.doc__body a { text-decoration: underline; overflow-wrap: anywhere; }
.doc__consent { margin-top: 64px; padding: clamp(20px, 3vw, 40px); background: var(--paper); border: 1px solid rgba(35, 36, 31, 0.12); scroll-margin-top: 24px; }
.doc__consent h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-foot { display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: space-between; padding: 24px var(--gutter) 32px; background: var(--ink); color: var(--on-dark-2); font-size: 13px; }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__meta { position: static; }
}
@media (max-width: 760px) {
  .doc-page { padding-bottom: 0; }
  .doc-head__back { font-size: 15px; }
}
@media (max-width: 760px) {
  .perk:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Первый экран: медленная смена кадров с объекта (концепт).
   Подписи у каждого кадра честные: «Фото …» или «Визуализация». */
.live { position: absolute; inset: 0; }
.live__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.live__slide.is-on { opacity: 1; }
.live__slide img, .live__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media .live__slide img { animation: none; }
.live__top { position: absolute; top: 18px; left: 18px; right: 18px; z-index: 2; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.live__bars { display: flex; gap: 6px; }
.live__bars span { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.38); overflow: hidden; }
.live__bars i { display: block; width: 0; height: 100%; background: #FFFFFF; }
.live__bars span.is-done i { width: 100%; }
.live__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live__chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(35, 36, 31, 0.42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #FFFFFF; font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: 0.01em; }
.live__chip b { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.live__nav { display: flex; gap: 6px; pointer-events: auto; }
.live__nav button { width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%; background: rgba(35, 36, 31, 0.32); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.live__nav button:hover { background: rgba(35, 36, 31, 0.55); }
.live__count { margin-left: 4px; color: #FFFFFF; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); align-self: center; }
.live__top::before { content: ''; position: absolute; inset: -18px -18px auto; height: 120px; background: linear-gradient(rgba(20, 20, 18, 0.35), rgba(20, 20, 18, 0)); z-index: -1; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes live-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
  .live__slide.is-on img { animation: live-drift 9s ease-out both; }
}
@media (max-width: 760px) {
  .live__top { top: 12px; left: 12px; right: 12px; gap: 8px; }
  .live__chip { font-size: 12px; padding: 6px 10px 6px 9px; }
  .live__nav button { width: 34px; height: 34px; }
  .live__count { display: none; }
}
