/* ЖК «Гранат», 2-й дом — основной лендинг /granat/ (вариант «Соната», бывший /granat5/).
   Композиция — по мотивам sonata.enco.ru; цвета — фирменные токены Эристави
   (../Eristavi/design-system/tokens.css): тёмные секции в --color-brand, акцент --color-blue. */

:root {
  --color-brand: #323460;
  --color-text: #1D1E33;
  --color-blue: #6C99C3;
  --color-blue-light: #7DAAD4;
  --color-blue-dark: #4E7EAC;
  --color-white: #FFFFFF;
  --color-background: #FAFAFA;
  --color-surface-blue: #F4F6FB;
  --color-light: #F0F0F0;
  --color-grey-3: #BFBFBF;
  --color-grey-5: #999999;
  --overlay-brand-20: rgba(50, 52, 96, 0.20);
  --color-error: #C0392B;

  /* производные для этого лендинга */
  --brand-deep: #2A2C52;            /* подложка карты и подвала — на тон глубже брендового */
  --line-on-dark: rgba(255, 255, 255, 0.22);
  --shadow-card: 0 6px 24px rgba(29, 30, 51, 0.08);

  --f-display: 'Novoposelensky', 'Golos Text', Arial, sans-serif;
  --f-text: 'Golos Text', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-ui: 'Roboto Condensed', 'Golos Text', Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --hdr: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font: 400 18px/1.45 var(--f-text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Заголовки шрифтом Novoposelensky — в нём только прописные */
.d-title {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.08;
  font-size: clamp(30px, 4.2vw, 58px);
  color: var(--color-brand);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  border: 1px solid var(--color-blue); border-radius: 3px;
  background: var(--color-blue); color: var(--color-white);
  font: 400 18px/1.1 var(--f-ui); letter-spacing: 0.01em; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--color-blue-light); border-color: var(--color-blue-light); }
.btn:active { background: var(--color-blue-dark); border-color: var(--color-blue-dark); }
.btn:focus-visible, .arrow:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--color-blue-dark); outline-offset: 3px; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn--sm { min-height: 42px; padding: 0 22px; font-size: 16px; }
.btn--wide { width: 100%; }
.btn--round { border-radius: 30px; }
.btn--line { background: transparent; color: var(--color-blue-dark); }
.btn--line:hover { background: var(--color-blue); color: var(--color-white); }
.btn--ghost { background: transparent; color: var(--color-blue); border-color: var(--color-grey-3); }
.btn--ghost:hover { background: transparent; border-color: var(--color-blue); color: var(--color-blue-dark); }

/* круглые стрелки слайдеров */
.arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--color-blue); cursor: pointer; flex: none;
  display: inline-grid; place-items: center;
  transition: background-color .2s;
}
.arrow::before {
  content: ''; width: 10px; height: 10px;
  border: solid var(--color-white); border-width: 2px 2px 0 0;
  transform: translateX(-2px) rotate(45deg);
}
.arrow[data-dir="-1"]::before { transform: translateX(2px) rotate(-135deg); }
.arrow:hover { background: var(--color-blue-light); }
.arrow:active { background: var(--color-blue-dark); }
.arrow--light { background: var(--color-white); box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.arrow--light::before { border-color: var(--color-brand); }
.arrow--light:hover { background: var(--color-surface-blue); }
.arrows { display: flex; gap: 10px; }

.dots { display: flex; justify-content: center; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.6); cursor: pointer; transition: background-color .2s, transform .2s; }
.dots button[aria-current="true"] { background: var(--color-blue); transform: scale(1.15); }
.dots--dark button { background: var(--color-grey-3); }

/* ---------- поля форм ---------- */
.field {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1px solid var(--color-brand); border-radius: 3px;
  background: var(--color-white); color: var(--color-text);
  font: 400 18px var(--f-text);
}
.field::placeholder { color: var(--color-grey-5); }
.field:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(108,153,195,.25); }
.field.is-bad { border-color: var(--color-error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.35; cursor: pointer; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1px solid var(--color-brand); border-radius: 2px; background: var(--color-white); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--color-blue); border-color: var(--color-blue); }
.check input:checked::after { content: ''; width: 5px; height: 9px; border: solid var(--color-white); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check--radio input { border-radius: 50%; }
.check--radio input:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--color-white); transform: none; }
.check a { color: var(--color-blue-dark); text-decoration: none; border-bottom: 1px solid currentColor; }
/* Не отметили согласие — подсвечиваем сам квадратик, а не только текст ошибки (22.11.2026). */
.check.is-bad input { border-color: var(--color-error); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-error) 20%, transparent); }

.lead { display: grid; gap: 12px; }
.lead__err { color: var(--color-error); font-size: 14px; }
.lead__policy { font-size: 13px; line-height: 1.35; color: var(--color-grey-5); }
.lead__policy a { color: inherit; }
.sec--dark .lead__policy, .sub .lead__policy { color: inherit; opacity: .75; }
.lead__ok { font-size: 16px; color: var(--color-brand); background: var(--color-surface-blue); padding: 14px 16px; border-radius: 6px; }

/* ---------- шапка ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr);
  background: rgba(244, 246, 251, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .25s;
}
.hdr.is-scrolled { box-shadow: 0 2px 16px rgba(29,30,51,.08); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 18px; }
.hdr__logo img { height: 34px; width: auto; }
.hdr__project { font: 400 20px var(--f-display); text-transform: uppercase; letter-spacing: .06em; color: var(--color-brand); padding-left: 18px; border-left: 1px solid var(--overlay-brand-20); line-height: 1.6; }
.hdr__nav { display: flex; gap: 34px; margin: 0 auto; }
.hdr__nav a { font: 400 18px var(--f-ui); color: var(--color-brand); text-decoration: none; transition: color .2s; }
.hdr__nav a:hover { color: var(--color-blue); }
.hdr__actions { display: flex; gap: 10px; }
.hdr__burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; margin-left: auto; position: relative; }
.hdr__burger span, .hdr__burger span::before, .hdr__burger span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--color-brand); transition: transform .25s, opacity .25s; }
.hdr__burger span { top: 21px; }
.hdr__burger span::before { content: ''; left: 0; top: -7px; }
.hdr__burger span::after { content: ''; left: 0; top: 7px; }
.hdr__burger[aria-expanded="true"] span { background: transparent; }
.hdr__burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.hdr__burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- линии-ленты (генерирует JS) ---------- */
.ribbon { position: absolute; pointer-events: none; overflow: visible; color: var(--color-white); }
.ribbon path { fill: none; stroke: currentColor; stroke-width: .7; vector-effect: non-scaling-stroke; }

/* ---------- 1. главный экран ---------- */
.hero { position: relative; background: var(--color-brand); color: var(--color-white); padding: calc(var(--hdr) + 60px) 0 70px; overflow: hidden; isolation: isolate; }
.ribbon--hero { left: -6%; top: 0; width: 52%; height: 92%; opacity: .55; z-index: -1; }
.hero__photo {
  position: absolute; z-index: -1;
  width: min(1180px, 82vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  left: 50%; top: calc(var(--hdr) - 70px);
  margin-left: max(-40px, -3vw);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero__in { min-height: 640px; display: flex; flex-direction: column; justify-content: center; }
.hero-card {
  width: 100%; max-width: 480px; padding: 40px 44px 32px;
  background: var(--color-white); color: var(--color-text);
  border-radius: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.18);
  margin-left: 6%;
}
.hero-card__title { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.hero-card__sub { margin: 18px 0 18px; font-size: 16px; color: var(--color-brand); }
.hero-card__flag {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 30px;
  background: var(--color-surface-blue); color: var(--color-blue-dark);
  font: 500 14px/1.2 var(--f-text);
}
.hero-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: -4px 0 18px; }
.hero-card__price span { font: 600 28px/1.15 var(--f-text); color: var(--color-brand); }
.hero-card__price small { font-size: 15px; color: var(--color-blue-dark); }
.hero-card__pick { margin-top: 12px; }
.hero-card__legal { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--color-text); text-decoration: none; border-bottom: 1px solid var(--color-grey-3); }
.hero__slogan { color: var(--color-white); font-size: clamp(34px, 3.9vw, 56px); margin: 48px 0 0 6%; line-height: 1.12; }

.perks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 64px; position: relative; }
.perk { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.perk__ico { width: 100%; max-width: 190px; aspect-ratio: 1; border-radius: 18px; background: var(--color-white); display: grid; place-items: center; transition: transform .3s; }
.perk:hover .perk__ico { transform: translateY(-4px); }
.perk__ico svg { width: 62%; height: 62%; fill: none; stroke: var(--color-blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.perk__t { font: 400 clamp(15px, 1.4vw, 20px)/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- секции ---------- */
.sec { padding: 110px 0; position: relative; overflow: hidden; }
.sec--light { background: var(--color-white); }
.sec--dark { background: var(--color-brand); color: var(--color-white); }
.sec--dark .d-title { color: var(--color-white); }
.head { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 56px; position: relative; z-index: 1; }
.head__btn { flex: none; min-width: 250px; }
.head__sub { margin-top: 18px; font-size: 18px; max-width: 560px; color: var(--color-brand); }
.head__aside { width: 100%; max-width: 330px; display: grid; gap: 14px; color: var(--color-brand); font-size: 18px; }
.head--dark .d-title { color: var(--color-white); }
.head--row { align-items: flex-end; }

/* ---------- 2. популярные планировки ---------- */
.top-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
.pcard { background: var(--color-white); border-radius: 6px; box-shadow: var(--shadow-card); padding: 24px 22px 22px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(29,30,51,.12); }
.pcard__img { position: relative; height: 290px; margin-bottom: 22px; cursor: zoom-in; }
.pcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.badge { position: absolute; left: 6px; bottom: 8px; min-width: 58px; padding: 6px 8px 5px; background: var(--color-brand); color: var(--color-white); text-align: center; font: 500 15px/1.1 var(--f-text); }
.badge small { display: block; margin-top: 3px; padding-top: 3px; border-top: 1px solid rgba(255,255,255,.6); font-size: 12px; font-weight: 400; }
.pcard__t { font-size: 22px; color: var(--color-brand); line-height: 1.25; }
.pcard__s { font-size: 15px; color: var(--color-blue-dark); margin: 4px 0 18px; }
.pcard__price { display: flex; align-items: baseline; gap: 10px; margin: -8px 0 16px; font: 600 22px/1.2 var(--f-text); color: var(--color-brand); }
.pcard__price small { font: 400 14px var(--f-text); color: var(--color-blue-dark); }
.pcard .btn { margin-top: auto; }
.pcard__ask { margin-top: 10px; padding: 6px 0; border: 0; background: none; color: var(--color-blue-dark); font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pcard__ask:hover { color: var(--color-blue); }

/* ---------- нижняя панель на телефоне ---------- */
.mbar { display: none; }

/* ---------- 3. семейная квартира ---------- */
.family { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 60px; padding: 30px 0 110px; }
.family__media { position: relative; height: 440px; border-radius: 0 48px 48px 0; overflow: hidden; }
.family__photo { width: 100%; height: 100%; object-fit: cover; }
.family__plan { position: absolute; right: 9%; top: 8%; bottom: 8%; width: 36%; background: var(--color-white); border-radius: 10px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: grid; place-items: center; }
.family__plan img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.family__txt { max-width: 520px; padding-right: var(--gutter); }
.family__title { font-size: clamp(30px, 3vw, 44px); line-height: 1.15; color: var(--color-brand); font-weight: 500; }
.family__accent { color: var(--color-blue-dark); font-size: 18px; margin-top: 12px; }
.family__note { color: var(--color-blue-dark); font-size: 16px; margin-top: 30px; }
.family__list { margin: 10px 0 30px; font-size: 18px; color: var(--color-brand); line-height: 1.5; }

/* ---------- 4. расположение ---------- */
.loc { position: relative; background: var(--brand-deep); color: var(--color-white); overflow: hidden; }
.loc__scroll { position: relative; }
.loc__canvas { position: relative; aspect-ratio: 1440 / 900; width: 100%; background: linear-gradient(180deg, var(--color-brand), var(--brand-deep)); }
.loc__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc__canvas::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, var(--brand-deep) 96%); pointer-events: none; }
.poi { position: absolute; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 9px; background: var(--color-white); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 2; }
.poi svg { width: 30px; height: 30px; fill: none; stroke: var(--color-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.poi__tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; padding: 6px 10px; border-radius: 6px; background: var(--color-white); color: var(--color-brand); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.poi:hover .poi__tip, .poi:focus .poi__tip { opacity: 1; transform: translate(-50%, 0); }
.loc__site { position: absolute; z-index: 3; transform: translate(-22px, -50%); display: flex; align-items: center; gap: 12px; }
.loc__site-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--color-blue); box-shadow: 0 0 0 10px rgba(108,153,195,.25), 0 0 0 22px rgba(108,153,195,.12); position: relative; }
.loc__site-mark::after { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: var(--color-white); }
.loc__site-name { font: 400 24px var(--f-display); text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.loc__in { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 70px; padding-bottom: 46px; pointer-events: none; }
.loc__in > * { pointer-events: auto; }
.loc__txt { max-width: 440px; font-size: 18px; line-height: 1.5; text-shadow: 0 1px 12px var(--brand-deep); }
.loc__txt .btn { margin-top: 30px; min-width: 210px; }
.loc__stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 20px; margin-top: auto; }
.loc__stats li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: end; }
.loc__num { grid-row: span 2; font: 400 clamp(38px, 3.9vw, 58px)/.8 var(--f-display); }
.loc__unit { font: 400 clamp(15px, 1.4vw, 21px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.loc__cap { font-size: 16px; line-height: 1.2; margin-top: 4px; }
.loc__foot { font-size: 12px; opacity: .55; margin-top: 14px; }

/* ---------- 5. планировки ---------- */
.ribbon--flower { color: var(--color-blue); }
.ribbon--plans { right: -120px; top: -40px; width: 460px; height: 460px; opacity: .65; }
.tabs { display: flex; justify-content: space-between; border-bottom: 1px solid var(--color-light); margin-bottom: 46px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; padding: 16px 20px; border: 0; background: none; cursor: pointer; font: 400 clamp(17px, 1.6vw, 22px) var(--f-text); color: var(--color-brand); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s, border-color .2s; }
.tabs button:hover { color: var(--color-blue); }
.tabs button[aria-selected="true"] { color: var(--color-blue-dark); border-bottom-color: var(--color-blue); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; min-height: 520px; }
.plan-grid .pcard { border-radius: 24px; box-shadow: 0 2px 16px rgba(29,30,51,.10); padding: 22px 24px 26px; }
.plan-grid .pcard__img { height: 300px; }
.plan-grid .btn { align-self: flex-start; min-height: 44px; font-size: 16px; padding: 0 22px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager button { min-width: 34px; height: 34px; border: 1px solid transparent; border-radius: 4px; background: none; color: var(--color-brand); cursor: pointer; font: 400 15px var(--f-text); }
.pager button[aria-current="true"] { border-color: var(--color-blue); color: var(--color-blue-dark); }
.pager button:hover { color: var(--color-blue); }
.plans__note { text-align: center; font-size: 14px; color: var(--color-grey-5); margin-top: 22px; }

/* ---------- 6. двор ---------- */
.yard { position: relative; background: var(--color-brand); height: 640px; overflow: hidden; }
.yard__blob { position: absolute; left: -9%; top: 20px; width: 46%; height: 600px; border-radius: 0 48% 52% 0 / 0 60% 40% 0; overflow: hidden; }
.yard__blob img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.yard__gallery { position: absolute; left: 38%; right: 0; top: 60px; height: 330px; }
.yard__track { display: flex; gap: 30px; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: 30px; }
.yard__track::-webkit-scrollbar { display: none; }
.yard__track img { flex: none; height: 100%; width: auto; aspect-ratio: 1.5; object-fit: cover; border-radius: 22px; scroll-snap-align: start; }
.yard__title { position: absolute; left: 38%; top: 420px; display: flex; align-items: center; gap: 0; }
.yard__title .d-title { color: var(--color-white); font-size: clamp(28px, 3.4vw, 48px); position: relative; z-index: 1; }
.ribbon--bud { position: relative; flex: none; width: 120px; height: 190px; margin-right: -46px; margin-top: 70px; opacity: .7; }

/* ---------- 7. слайдер-истории ---------- */
.story { position: relative; height: min(760px, 56vw); min-height: 520px; overflow: hidden; background: var(--color-brand); }
.story__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.story__track::-webkit-scrollbar { display: none; }
.story__slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.story__slide > img { width: 100%; height: 100%; object-fit: cover; }
.story__card { position: absolute; left: 43%; top: 50%; transform: translateY(-50%); width: min(420px, 80%); padding: 30px 26px; border-radius: 24px; background: var(--color-white); box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.story__card .d-title { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; margin-bottom: 18px; }
.story__card p { font-size: 15px; line-height: 1.45; color: var(--color-brand); }
.story__prev, .story__next { position: absolute; top: 50%; margin-top: -22px; z-index: 2; }
.story__prev { left: 30px; }
.story__next { right: 30px; }
.story .dots { position: absolute; left: 0; right: 0; bottom: 26px; }

/* ---------- 8. квиз ---------- */
.quiz-sec { padding-top: 70px; }
.quiz { max-width: 1000px; margin: 0 auto 120px; background: var(--color-white); color: var(--color-text); border-radius: 24px; overflow: hidden; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 40px; background: var(--color-surface-blue); font-size: 14px; }
.quiz__lbl { display: flex; align-items: center; gap: 10px; }
.quiz__lbl svg { width: 20px; height: 20px; fill: none; stroke: var(--color-grey-5); stroke-width: 1.6; }
.quiz__step { font-weight: 500; }
.quiz__bar { height: 4px; background: var(--color-light); }
.quiz__bar span { display: block; height: 100%; width: 33.3%; background: var(--color-blue); transition: width .35s; }
.quiz__body { padding: 30px 40px 10px; min-height: 230px; }
.quiz__pane { border: 0; margin: 0; padding: 0; display: none; gap: 12px; }
.quiz__pane.is-on { display: grid; animation: fadeIn .35s; }
.quiz__pane legend { font-size: 24px; color: var(--color-text); margin-bottom: 18px; padding: 0; }
.quiz__pane .check { font-size: 15px; }
.quiz__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.quiz__done-t { font-size: 24px; color: var(--color-brand); margin-bottom: 10px; }
.quiz__nav { display: flex; justify-content: space-between; padding: 20px 40px 34px; }
.quiz__nav .btn { min-width: 92px; min-height: 44px; font-size: 16px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 9. отделка ---------- */
.finish { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 1200 / 780; }
.finish > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.finish__pin { position: absolute; display: grid; gap: 2px; max-width: 230px; padding: 12px 14px 12px 34px; border-radius: 12px; background: rgba(255,255,255,.92); color: var(--color-brand); font-size: 14px; line-height: 1.3; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.finish__pin b { font-weight: 500; font-size: 15px; }
.finish__pin::before { content: ''; position: absolute; left: 12px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 4px rgba(50,52,96,.2); }
.finish__txt { max-width: 760px; margin: 34px auto 120px; text-align: center; font-size: 18px; line-height: 1.5; color: rgba(255,255,255,.88); }

/* ---------- 10. старт продаж ---------- */
.presale { position: relative; display: grid; grid-template-columns: 41% 1fr; gap: 20px; align-items: start; padding-bottom: 6px; }
.presale__img { position: sticky; top: calc(var(--hdr) + 20px); height: 640px; border-radius: 0 32px 32px 0; overflow: hidden; }
.presale__img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.ribbon--presale { right: -140px; top: 20px; width: 420px; height: 420px; opacity: .45; color: var(--color-blue-light); }
.presale__list { display: grid; gap: 20px; max-width: 580px; position: relative; z-index: 1; margin-right: var(--gutter); }
.offer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 104px; padding: 22px 26px; border-radius: 26px; background: var(--color-white); color: var(--color-brand); }
.offer__t { font-size: clamp(22px, 2vw, 28px); line-height: 1.12; white-space: nowrap; }
.offer__s { font-size: 14px; margin-top: 6px; line-height: 1.3; }
.offer .btn { flex: none; min-width: 170px; min-height: 40px; font-size: 16px; padding: 0 18px; }

/* ---------- 11. холлы ---------- */
.halls { padding-bottom: 80px; }
.halls .head { margin-bottom: 40px; }
.halls__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.halls__track::-webkit-scrollbar { display: none; }
.halls__track figure { flex: 0 0 auto; width: min(370px, 78vw); margin: 0; scroll-snap-align: start; }
.halls__track img { width: 100%; aspect-ratio: 370 / 280; object-fit: cover; border-radius: 12px; }
.halls__track figcaption { font-size: 13px; color: var(--color-grey-5); margin-top: 8px; }

/* ---------- 12. застройщик ---------- */
.dev { padding: 40px 0 100px; }
.dev__in { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 30px; }
.dev__logo { width: 240px; height: auto; }
.dev__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 26px 40px; }
.dev__stat { display: flex; flex-direction: column; gap: 14px; }
.dev__stat--wide { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 6px 22px; }
.dev__stat--wide .dev__cap { flex-basis: 100%; }
.dev__stat--wide .dev__cap--side { flex-basis: auto; margin-top: 8px; }
.dev__num { font: 400 clamp(40px, 3.6vw, 52px)/1 var(--f-text); color: var(--color-blue); white-space: nowrap; }
.dev__cap { font-size: 16px; line-height: 1.3; color: var(--color-brand); }
.dev__line { grid-column: 1 / -1; width: calc(100% + 200px); margin: 4px 0; border: 0; border-top: 1px solid var(--color-brand); opacity: .5; }

/* ---------- 13. проекты ---------- */
.projects { padding-top: 40px; }
.projects .head__sub { margin-bottom: 40px; }
.proj { position: relative; }
.proj__track { display: flex; gap: 60px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc(50vw - min(380px, 40vw)); }
.proj__track::-webkit-scrollbar { display: none; }
.proj__slide { position: relative; flex: 0 0 min(760px, 80vw); aspect-ratio: 760 / 430; border-radius: 10px; overflow: hidden; scroll-snap-align: center; opacity: .35; transition: opacity .35s; text-decoration: none; }
.proj__slide.is-active { opacity: 1; }
.proj__slide img { width: 100%; height: 100%; object-fit: cover; }
.proj__name { position: absolute; left: 20px; bottom: 18px; padding: 8px 14px; border-radius: 8px; background: var(--color-white); color: var(--color-brand); font-size: 15px; }
.proj__prev, .proj__next { position: absolute; top: calc(50% - 30px); z-index: 2; }
.proj__prev { left: calc(50vw - min(380px, 40vw) - 22px); }
.proj__next { right: calc(50vw - min(380px, 40vw) - 22px); }
.proj .dots { margin-top: 22px; }

/* ---------- 14. первый дом + вопросы ---------- */
.stage { padding-top: 60px; }
.stage__slider { position: relative; border-radius: 16px; overflow: hidden; }
.stage__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.stage__track::-webkit-scrollbar { display: none; }
.stage__track figure { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 1200 / 640; }
.stage__track img { width: 100%; height: 100%; object-fit: cover; }
.stage__track figcaption { position: absolute; left: 30px; top: 30px; padding: 10px 18px; border-radius: 14px; background: var(--color-white); color: var(--color-brand); font-size: 16px; }
.stage__prev, .stage__next { position: absolute; top: 50%; margin-top: -22px; z-index: 2; }
.stage__prev { left: 20px; }
.stage__next { right: 20px; }
.stage .dots { position: absolute; left: 0; right: 0; bottom: 20px; }
.faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 50px; margin-top: 40px; }
.faq details { border-top: 1px solid var(--color-light); border-bottom: 1px solid var(--color-light); margin-top: -1px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-size: 16px; color: var(--color-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 18px; height: 18px; background: linear-gradient(var(--color-text), var(--color-text)) center / 100% 1.5px no-repeat, linear-gradient(var(--color-text), var(--color-text)) center / 1.5px 100% no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 30px 22px 0; font-size: 15px; line-height: 1.5; color: var(--color-brand); }

/* ---------- 15. бренд + подписка ---------- */
.brand { position: relative; background: var(--color-brand); color: var(--color-white); padding: 90px 0 0; overflow: hidden; isolation: isolate; }
.ribbon--brand { right: -10%; top: 10px; width: 46%; height: 560px; opacity: .45; z-index: -1; transform: scaleX(-1); }
.brand__top { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; margin-bottom: 80px; }
.brand__logo { width: 200px; height: auto; }
.brand__motto { color: var(--color-blue-light); font-size: clamp(20px, 2vw, 30px); line-height: 1.2; max-width: 720px; }
.sub { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 46px 40px; border-radius: 26px; background: var(--color-white); color: var(--color-text); overflow: hidden; transform: translateY(0); margin-bottom: -1px; }
.sub .d-title { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; }
.sub__txt p { margin-top: 26px; font-size: 18px; color: var(--color-text); max-width: 340px; }
.sub__form { position: relative; z-index: 1; max-width: 420px; }
.ribbon--sub { position: absolute; right: -30px; top: -20px; width: 200px; height: 300px; color: var(--color-blue); opacity: .35; margin: 0; }
.brand .wrap { padding-bottom: 50px; }

/* ---------- 16. контакты ---------- */
.contacts { position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden; }
.contacts__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.contacts__in { position: relative; display: flex; justify-content: flex-end; padding-top: 60px; padding-bottom: 60px; }
.contacts__card { width: 100%; max-width: 360px; padding: 36px 34px; border-radius: 26px; background: var(--color-white); display: grid; gap: 14px; color: var(--color-brand); }
.contacts__card .d-title { font-size: 34px; margin-bottom: 8px; }
.contacts__card p { font-size: 16px; line-height: 1.35; }
.contacts__card b { font-weight: 500; }
.contacts__phone { font-size: 30px; color: var(--color-blue); text-decoration: none; margin-top: 4px; }
.contacts__vk { font-size: 14px; color: var(--color-blue-dark); text-decoration: none; border-bottom: 1px solid currentColor; justify-self: start; }

/* ---------- подвал ---------- */
.ftr { background: var(--brand-deep); color: rgba(255,255,255,.82); padding: 50px 0 40px; font-size: 14px; line-height: 1.5; }
.ftr__cols { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 40px; }
.ftr__cols img { width: 136px; height: auto; }
.ftr__copy { margin-top: 14px; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.ftr__mid { display: grid; gap: 10px; }
.ftr a { color: inherit; }
.ftr__links { display: grid; gap: 8px; align-content: start; }
.ftr__links a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); justify-self: start; }
.ftr__legal { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line-on-dark); display: grid; gap: 10px; font-size: 12px; color: rgba(255,255,255,.55); }

/* ---------- модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(29,30,51,.55); animation: fadeIn .2s; }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: 100%; max-width: 440px; padding: 34px 30px 30px; border-radius: 6px; background: var(--color-white); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal__x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; z-index: 2; }
.modal__x::before, .modal__x::after { content: ''; position: absolute; left: 8px; top: 15px; width: 16px; height: 1.5px; background: var(--color-text); transform: rotate(45deg); }
.modal__x::after { transform: rotate(-45deg); }
.ribbon--modal { position: absolute; right: -40px; top: -10px; width: 160px; height: 240px; color: var(--color-blue); opacity: .3; margin: 0; }
.modal__title { position: relative; font-size: 24px; line-height: 1.25; color: var(--color-blue-dark); font-weight: 500; padding-right: 30px; }
.modal__sub { position: relative; margin: 10px 0 22px; font-size: 15px; color: var(--color-text); }
.modal .lead { position: relative; }

/* ---------- лайтбокс планировки ---------- */
.lb { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 30px; background: rgba(29,30,51,.8); cursor: zoom-out; animation: fadeIn .2s; }
.lb img { max-width: min(900px, 100%); max-height: 86vh; background: var(--color-white); padding: 20px; border-radius: 8px; }

/* ---------- появление при прокрутке ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .story__track, .stage__track { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= адаптив ================= */
@media (max-width: 1180px) {
  .hdr__nav { gap: 22px; }
  .hdr__nav a { font-size: 16px; }
  .hdr__project { display: none; }
}
@media (max-width: 1024px) {
  .hdr__nav {
    position: fixed; top: var(--hdr); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    padding: 10px var(--gutter) 20px; background: var(--color-surface-blue); box-shadow: 0 12px 24px rgba(29,30,51,.1);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .hdr__nav.is-open { transform: none; visibility: visible; }
  .hdr__nav a { padding: 14px 0; border-bottom: 1px solid var(--overlay-brand-20); font-size: 18px; }
  .hdr__burger { display: block; }
  .hdr__actions .btn--line { display: none; }
  .hdr__actions { margin-left: auto; }
  .hdr__burger { margin-left: 0; }

  .perks { grid-template-columns: repeat(5, 150px); overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .perks::-webkit-scrollbar { display: none; }
  .top-plans, .plan-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .top-plans .pcard:nth-child(3) { display: none; }
  .loc__stats { grid-template-columns: repeat(2, auto); justify-content: start; gap: 22px 60px; }
  .presale { grid-template-columns: 1fr; }
  .presale__img { position: relative; top: 0; height: 360px; margin-right: var(--gutter); }
  .presale__list { max-width: none; margin: 0 var(--gutter); }
  .dev__in, .brand__top { grid-template-columns: 1fr; }
  .dev__line { width: 100%; }
  .yard { height: auto; padding: 40px 0 60px; display: grid; gap: 30px; }
  .yard__blob { position: relative; left: 0; top: 0; width: 92%; height: 360px; }
  .yard__gallery { position: relative; left: 0; top: 0; height: 240px; padding-left: var(--gutter); }
  .yard__title { position: relative; left: 0; top: 0; padding: 0 var(--gutter); }
  .ribbon--bud { width: 80px; height: 130px; margin-right: -30px; margin-top: 40px; }
}
@media (max-width: 760px) {
  :root { --hdr: 58px; --gutter: 16px; }
  body { font-size: 16px; }
  .hdr__logo img { height: 28px; }
  .hdr__actions .btn { min-height: 38px; padding: 0 12px; font-size: 15px; }
  .sec { padding: 70px 0; }
  .head { flex-direction: column; align-items: flex-start; margin-bottom: 34px; }
  .head__btn { width: 100%; min-width: 0; }
  .head__aside { max-width: none; }
  .head--row .arrows { display: none; }

  .hero { padding: calc(var(--hdr) + 0px) 0 50px; }
  /* Фото ниже, карточка выше: телефон и кнопка заявки должны поместиться в первый экран */
  .hero__photo { position: relative; left: 0; top: 0; margin: 0 0 0 auto; width: 92vw; margin-right: -24vw; margin-top: -20px; }
  .hero__in { min-height: 0; margin-top: -40vw; }
  .hero-card { margin: 0; padding: 22px 20px 20px; border-radius: 22px; }
  .hero-card__flag { margin-bottom: 10px; }
  .hero-card__sub { margin: 10px 0 12px; font-size: 15px; }
  .hero-card__price { margin: 0 0 14px; }
  .hero-card__price span { font-size: 24px; }
  .hero-card .lead { gap: 10px; }

  .mbar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 8px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--color-white); box-shadow: 0 -4px 20px rgba(29,30,51,.12);
    transform: translateY(110%); transition: transform .25s;
  }
  .mbar.is-on { transform: none; }
  .mbar__btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 50px; padding: 4px 6px; border: 1px solid var(--color-blue); border-radius: 10px;
    background: var(--color-white); color: var(--color-blue-dark);
    font: 400 14px/1.1 var(--f-ui); text-decoration: none; cursor: pointer;
  }
  .mbar__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mbar__btn--main { background: var(--color-blue); color: var(--color-white); font-size: 16px; }
  .mbar__btn:active { background: var(--color-blue-dark); color: var(--color-white); }
  body.has-mbar .ftr { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .hero__slogan { margin: 34px 0 0; }
  .ribbon--hero { width: 120%; height: 60%; top: 30%; opacity: .4; }
  .perks { grid-template-columns: repeat(5, 132px); margin-top: 44px; padding-left: var(--gutter); padding-right: var(--gutter); gap: 14px; }

  .top-plans, .plan-grid { grid-template-columns: 1fr; }
  .top-plans .pcard:nth-child(3) { display: flex; }
  .plan-grid { min-height: 0; }
  .pcard__img, .plan-grid .pcard__img { height: 260px; }

  .family { grid-template-columns: 1fr; gap: 30px; padding-bottom: 70px; }
  .family__media { height: 340px; margin-right: var(--gutter); }
  .family__plan { right: 6%; width: 44%; }
  .family__txt { padding: 0 var(--gutter); }

  .loc { display: flex; flex-direction: column; }
  .loc__scroll { overflow-x: auto; scrollbar-width: none; order: 2; }
  .loc__scroll::-webkit-scrollbar { display: none; }
  .loc__canvas { width: 820px; }
  .loc__in { position: static; transform: none; display: contents; }
  .loc__txt { order: 1; padding: 60px var(--gutter) 10px; max-width: none; }
  .loc__stats { order: 3; grid-template-columns: 1fr 1fr; gap: 26px 16px; padding: 0 var(--gutter); margin-top: -40px; position: relative; z-index: 2; }
  .loc__stats li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .loc__num { font-size: 46px; }
  .loc__unit { font-size: 17px; }
  .loc__cap { font-size: 14px; }
  .loc__foot { order: 4; padding: 0 var(--gutter) 40px; margin-top: 20px; }

  .story { height: auto; min-height: 0; }
  .story__slide { display: flex; flex-direction: column; height: auto; }
  .story__slide > img { height: 300px; }
  .story__card { position: relative; left: auto; top: auto; transform: none; width: auto; margin: -50px var(--gutter) 70px; }
  .story__prev, .story__next { top: 150px; }
  .story__prev { left: 12px; }
  .story__next { right: 12px; }
  .story .dots { bottom: 30px; }

  .quiz { margin-bottom: 80px; border-radius: 18px; }
  .quiz__top, .quiz__body, .quiz__nav { padding-left: 20px; padding-right: 20px; }
  .quiz__lbl { font-size: 13px; }
  .quiz__fields { grid-template-columns: 1fr; }
  .quiz__pane legend { font-size: 20px; }

  .finish { aspect-ratio: 4 / 5; border-radius: 20px; }
  .finish__pin { max-width: 200px; font-size: 13px; }
  .finish__pin[style*="63%"] { left: 34% !important; top: 18% !important; }
  .finish__pin--l { left: 6% !important; top: 74% !important; }
  .finish__txt { margin-bottom: 80px; font-size: 16px; }

  .offer { flex-direction: column; align-items: flex-start; border-radius: 20px; }
  .offer__t { white-space: normal; }
  .offer .btn { width: 100%; }
  .ribbon--presale { display: none; }

  .dev__grid { grid-template-columns: 1fr; }
  .dev__stat--wide { flex-direction: column; flex-wrap: nowrap; gap: 14px; }
  .dev__stat--wide .dev__cap, .dev__stat--wide .dev__cap--side { flex-basis: auto; margin-top: 0; }
  .dev__logo { width: 180px; }

  .proj__track { gap: 14px; padding: 0 10vw; }
  .proj__slide { flex-basis: 80vw; }
  .proj__prev { left: 4px; }
  .proj__next { right: 4px; }

  .stage__track figure { aspect-ratio: 4 / 3; }
  .stage__track figcaption { left: 16px; top: 16px; font-size: 14px; }
  .faq { grid-template-columns: 1fr; }

  .brand { padding-top: 60px; }
  .brand__top { margin-bottom: 40px; }
  .sub { grid-template-columns: 1fr; padding: 30px 20px; gap: 24px; }

  .contacts { min-height: 0; flex-direction: column; align-items: stretch; }
  .contacts__bg { position: relative; height: 300px; }
  .contacts__in { margin-top: -80px; padding-top: 0; }
  .contacts__card { max-width: none; box-shadow: var(--shadow-card); }

  .ftr__cols { grid-template-columns: 1fr; gap: 24px; }
}
