/* AQTAM — палитра взята с фасада: известняк, графит пилонов, охра вертикалей */
:root {
  --stone: #F1F2F0;
  --stone-2: #E4E6E3;
  --white: #FFFFFF;
  --graphite: #262B31;
  --graphite-2: #353B42;
  --slate: #5B6570;
  --line: #CDD1D0;
  --ochre: #D69A2D;
  --ochre-ink: #8A5E12;
  --roof: #6E5E52;
  --free: #3F7A52;
  --free-bg: #E2EFE5;
  --free-line: #A9CDB3;
  --hold-bg: #F4E7CC;
  --hold-line: #E2C58A;
  --sold-bg: #E2E4E6;

  --f-display: "Jost", "Futura", "Century Gothic", sans-serif;
  --f-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Onest", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-sm: 6px;
  --r-md: 12px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--stone);
  color: var(--graphite);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--graphite); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ---------- типографика ---------- */
.h2 {
  font: 500 clamp(26px, 2.9vw, 38px)/1.14 var(--f-head);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 17ch;
  text-wrap: balance;
}
.big { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; margin: 0 0 18px; max-width: 34em; }
p { margin: 0 0 14px; max-width: 40em; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--light { background: var(--stone); color: var(--graphite); }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--accent { background: var(--graphite); color: #fff; }
.btn--accent:hover { background: var(--graphite-2); }
.btn--block { width: 100%; }
.btn--wa svg { width: 18px; height: 18px; fill: currentColor; }

.round {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--white);
  transition: background-color .2s, border-color .2s;
}
.round:hover { border-color: var(--graphite); }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- шапка ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  height: 76px; padding: 0 var(--gutter);
  color: #fff;
  transition: background-color .3s, color .3s, height .3s, box-shadow .3s;
}
.top__logo { display: block; width: 118px; flex: none; }
.top__logo img { width: 100%; }
.logo-dark { display: none !important; }
.top__nav { display: flex; gap: 28px; margin-left: auto; }
.top__nav a { text-decoration: none; font-size: 15px; opacity: .88; position: relative; padding: 6px 0; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--ochre); transition: right .25s var(--ease); }
.top__nav a:hover { opacity: 1; }
.top__nav a:hover::after, .top__nav a.is-active::after { right: 0; }
.top__wa { min-height: 42px; padding: 0 18px; background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.top__wa:hover { background: rgba(255,255,255,.24); }
.top__burger { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; position: relative; }
.top__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .25s; }
.top__burger span:first-child { top: 17px; }
.top__burger span:last-child { top: 25px; }
.top__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.top__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.top.is-solid { background: rgba(241,242,240,.94); color: var(--graphite); height: 64px; box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top.is-solid .logo-light { display: none !important; }
.top.is-solid .logo-dark { display: block !important; }
.top.is-solid .top__wa { background: var(--graphite); color: #fff; border-color: var(--graphite); }

.mnav {
  position: fixed; inset: 64px 0 0 0; z-index: 49;
  background: var(--stone);
  display: flex; flex-direction: column; padding: 24px var(--gutter);
}
.mnav a { font: 400 30px/1.2 var(--f-display); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ---------- секции ---------- */
.sec { padding: clamp(72px, 10vw, 140px) 0; }

.proekt__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.specs { margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--graphite); }
.specs > div { padding: 16px 12px 18px 0; border-bottom: 1px solid var(--line); }
.specs > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
.specs dt { font-size: 14px; color: var(--slate); }
.specs dd { margin: 2px 0 0; font: 400 21px/1.25 var(--f-display); }

.gallery { margin-top: clamp(56px, 7vw, 96px); }
.gallery__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(46vw, 640px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 8px; scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); background: var(--stone-2); }
.gallery figcaption { font-size: 14px; color: var(--slate); padding-top: 10px; }
.gallery__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
@media (min-width: 1500px) { .gallery__track { padding-left: calc((100vw - var(--wrap)) / 2); scroll-padding-inline: calc((100vw - var(--wrap)) / 2); } }

/* ---------- генплан + шахматка ---------- */
.kv { background: var(--white); }
.kv__head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 36px; }
.kv__head p { color: var(--slate); margin: 0 0 24px; }

.genplan__frame { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--sand, #F1F2F0); aspect-ratio: 16 / 9; }
.genplan__pic { position: absolute; inset: 0; }
.genplan__frame img { width: 100%; height: 100%; object-fit: cover; }
.genplan__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bld {
  fill: rgba(214,154,45,0); stroke: rgba(255,255,255,0); stroke-width: 3;
  cursor: pointer; transition: fill .25s, stroke .25s; outline: none;
}
.genplan__frame:hover .bld { fill: rgba(38,43,49,.12); }
.bld:hover, .bld:focus-visible { fill: rgba(214,154,45,.28) !important; stroke: rgba(255,255,255,.9); }
/* выбранный корпус: контур обводится по краю здания и остаётся светиться */
.bld.is-on {
  fill: rgba(214,154,45,.14) !important;
  stroke: #F0AE3E; stroke-width: 4.5; stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(240,174,62,.85)) drop-shadow(0 1px 3px rgba(0,0,0,.55));
  animation: bldTrace .75s cubic-bezier(.5,0,.2,1) forwards;
}
@keyframes bldTrace {
  from { stroke-dashoffset: 2200; }
  to   { stroke-dashoffset: 0; }
}
.pin {
  position: absolute; transform: translate(-50%, -50%);
  pointer-events: none;
  background: var(--graphite); color: #fff; border-radius: 999px;
  font: 500 14px/1 var(--f-body); padding: 9px 14px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(20,24,28,.28);
  transition: background-color .2s, color .2s;
}
.pin b { font-weight: 600; }
.pin small { font-size: 12px; opacity: .75; margin-left: 6px; }
.pin.is-on { background: var(--ochre); color: var(--graphite); }

.board { margin-top: 28px; }
.board__bar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  display: inline-flex; align-items: center; gap: 10px; font-weight: 500;
}
.tab:hover { border-color: var(--graphite); }
.tab[aria-selected="true"] { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.tab span { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--free-bg); color: var(--free); font-weight: 600; }
.tab[aria-selected="true"] span { background: rgba(255,255,255,.14); color: #fff; }
.board__filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-size: 15px;
  display: inline-flex; align-items: center;
}
.chip:hover { border-color: var(--graphite); }
.chip.is-on { background: var(--stone-2); border-color: var(--graphite); }
.chip--radio { position: relative; cursor: pointer; }
.chip--radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip--radio:has(input:checked) { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.chip--radio:has(input:focus-visible) { outline: 2px solid var(--ochre); outline-offset: 2px; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; user-select: none; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background-color .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + .switch__ui { background: var(--free); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--ochre); outline-offset: 2px; }

.board__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 22px 0 12px; font-size: 14px; color: var(--slate); }
.board__legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid; }
.lg--free { background: var(--free-bg); border-color: var(--free-line); }
.lg--hold { background: var(--hold-bg); border-color: var(--hold-line); }
.lg--sold { background: var(--sold-bg); border-color: var(--sold-bg); }
.board__count { margin-left: auto; }
.board__count b { color: var(--free); }

.board__grid {
  background: var(--stone); border-radius: var(--r-md); padding: 22px 18px 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  display: flex; flex-direction: column; align-items: center;
}
.floor { display: flex; align-items: stretch; gap: 8px; margin-bottom: 8px; min-width: max-content; }
.floor__n {
  position: sticky; left: -18px; z-index: 1; flex: none; width: 58px; margin-left: -18px; padding-left: 18px;
  display: flex; align-items: center; background: var(--stone);
  font-size: 12px; color: var(--slate); font-weight: 500; white-space: nowrap;
}
.cell {
  width: clamp(84px, 10.5vw, 148px); min-height: 92px; flex: none;
  border-radius: 8px; border: 1px solid transparent;
  padding: 7px 4px 6px; text-align: center; line-height: 1.2;
  background: var(--sold-bg); color: #7D858D;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 12px;
}
.cell b { font-size: 15px; font-weight: 600; }
.cell .pr { font-weight: 600; font-size: 13px; color: var(--graphite); margin-top: 3px; }
.cell--free { background: var(--free-bg); border-color: var(--free-line); color: var(--graphite); cursor: pointer; transition: background-color .15s, transform .15s, box-shadow .15s; }
.cell--free b { color: var(--free); }
.cell--free:hover, .cell--free:focus-visible { background: #fff; box-shadow: 0 6px 16px rgba(38,43,49,.14); transform: translateY(-2px); }
.cell--hold { background: var(--hold-bg); border-color: var(--hold-line); color: var(--ochre-ink); }
.cell.is-dim { visibility: hidden; }
.board__note { font-size: 13px; color: var(--slate); margin-top: 14px; }

/* ---------- планировки ---------- */
.plans__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; }
.plans__head .h2 { margin-bottom: 0; }
.plans__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.plan {
  background: var(--white); border-radius: var(--r-md); border: 1px solid transparent;
  padding: 14px 14px 18px; text-align: left; display: flex; flex-direction: column;
  transition: border-color .2s;
}
.plan:hover, .plan:focus-visible { border-color: var(--graphite); }
.plan__img { aspect-ratio: 1; display: block; margin-bottom: 12px; }
.plan__img img { width: 100%; height: 100%; object-fit: contain; }
.plan__t { font: 400 24px/1.1 var(--f-display); }
.plan__s { font-size: 14px; color: var(--slate); margin-top: 4px; }

/* ---------- покупка ---------- */
.pay { background: var(--stone-2); color: var(--graphite); }
.pay .big { color: var(--slate); }
.pay__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.ways { list-style: none; margin: 0; padding: 0; }
.ways li { padding: 22px 0 22px 26px; border-top: 1px solid var(--line); position: relative; }
.ways li:last-child { border-bottom: 1px solid var(--line); }
.ways li::before { content: ""; position: absolute; left: 0; top: 28px; width: 6px; height: 26px; background: var(--ochre); }
.ways h3 { font: 500 21px/1.25 var(--f-head); letter-spacing: -0.01em; margin: 0 0 6px; }
.ways p { color: var(--slate); margin: 0; }

.calc { margin-top: clamp(56px, 7vw, 88px); }
.calc__title { font: 500 24px/1.2 var(--f-head); letter-spacing: -0.02em; margin: 0 0 22px; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px 40px; align-items: end; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.calc__note { font-size: 13px; color: var(--slate); margin-top: 12px; }
.calc__res { display: grid; gap: 14px; }
.calc__res span { display: block; font-size: 13px; color: var(--slate); }
.calc__res strong { font: 400 28px/1.1 var(--f-display); }

.field { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; }
.field > span { font-size: 14px; opacity: .72; }
.field output { font: 500 18px/1 var(--f-display); }
.field input[type="range"] { grid-column: 1 / -1; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--ochre) var(--p), rgba(128,128,128,.35) var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(128,128,128,.35); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ochre); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ochre); margin-top: -9px; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ochre); }

/* ---------- расположение ---------- */
.mesto__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.dist { list-style: none; padding: 0; margin: 24px 0 22px; border-top: 2px solid var(--graphite); }
.dist li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dist b { font: 400 19px/1.3 var(--f-display); text-align: right; }
.link { font-weight: 500; text-decoration-color: var(--ochre); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }
.map { min-height: 460px; border-radius: var(--r-md); overflow: hidden; background: var(--stone-2); z-index: 0; }
.mk { transform: translate(-50%, calc(-100% - 8px)); display: inline-block; background: var(--graphite); color: #fff; font: 500 13px/1 var(--f-body); padding: 8px 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(20,24,28,.3); position: relative; }
.mk::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.mk--home { background: var(--ochre); color: var(--graphite); font-weight: 600; }
.leaflet-div-icon.mk-wrap { background: none; border: 0; }

/* ---------- заявка ---------- */
.lead { position: relative; color: #fff; overflow: hidden; background: var(--graphite); }
.lead__bg { position: absolute; inset: 0; }
.lead__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.lead__grid { position: relative; display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: 48px; align-items: center; }
.lead__text p { font-size: 19px; opacity: .9; }
.form { background: var(--stone); color: var(--graphite); border-radius: var(--r-md); padding: 28px; display: grid; gap: 18px; }
.field2 { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field2 > span, .field2 legend { font-size: 14px; color: var(--slate); padding: 0; margin-bottom: 8px; }
.field2 input:not([type="radio"]) { height: 50px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; padding: 0 14px; font: inherit; }
.field2 input:not([type="radio"]):focus { border-color: var(--graphite); outline: none; box-shadow: 0 0 0 3px rgba(214,154,45,.35); }
.form__err { color: #A23A1E; font-size: 14px; margin: 0; }

/* ---------- подвал ---------- */
.foot { background: #1C2025; color: rgba(255,255,255,.72); padding: 56px 0 28px; font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot img { margin-bottom: 16px; opacity: .9; }
.foot a { color: #fff; }
.foot__legal { font-size: 13px; line-height: 1.55; max-width: none; }
.foot__made { padding-top: 20px; font-size: 13px; }

/* ---------- карточка квартиры ---------- */
.drawer, .lightbox { position: fixed; inset: 0; z-index: 80; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(20,24,28,.55); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__scrim, .lightbox.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: var(--stone); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .38s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.drawer__plan { background: #fff; padding: 56px 32px 24px; display: grid; place-items: center; }
.drawer__plan img { max-height: 340px; width: auto; }
.drawer__body { padding: 24px 28px 32px; }
.drawer__meta { font-size: 14px; color: var(--slate); margin-bottom: 4px; }
.drawer__body h3 { font: 500 26px/1.2 var(--f-head); letter-spacing: -0.02em; margin: 0 0 12px; }
.drawer__price { font: 500 30px/1.1 var(--f-display); margin: 0; }
.drawer__sqm { font-size: 14px; color: var(--slate); }
.drawer__calc { background: #fff; border-radius: var(--r-md); padding: 18px; margin: 18px 0; }
.drawer__rows { display: grid; gap: 10px; margin-top: 14px; }
.drawer__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.drawer__rows span { color: var(--slate); }
.drawer__rows b { font: 500 17px/1.2 var(--f-display); white-space: nowrap; }
.drawer__demo { font-size: 12px; color: var(--slate); text-align: center; margin: 12px auto 0; }

.lightbox { display: grid; place-items: center; padding: 20px; }
.lightbox__box { position: relative; margin: 0; background: #fff; border-radius: var(--r-md); padding: 56px 28px 22px; max-width: min(720px, 100%); max-height: 100%; overflow: auto; opacity: 0; transform: scale(.97); transition: opacity .25s, transform .25s var(--ease); }
.lightbox.is-open .lightbox__box { opacity: 1; transform: none; }
.lightbox__box img { max-height: 70vh; max-width: 100%; width: auto; margin: 0 auto; }
.lightbox__box figcaption { text-align: center; font: 400 22px/1.2 var(--f-display); margin-top: 14px; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .top__nav { display: none; }
  .top__wa { margin-left: auto; }
  .top__burger { display: block; margin-left: 0; }
  .calc__grid { grid-template-columns: 1fr 1fr; }
  .calc__res { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .proekt__grid, .pay__grid, .mesto__grid, .lead__grid, .foot__grid, .kv__head { grid-template-columns: 1fr; }
  .kv__head { gap: 0; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts > div { padding: 14px 12px 16px 0; }
  .hero__facts > div + div { padding-left: 0; border-left: 0; }
  .hero__facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); }
  .hero__facts > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }
  .gallery__track { grid-auto-columns: 86vw; gap: 12px; }
  .map { min-height: 340px; }
  .board__count { margin-left: 0; width: 100%; }
  .pin { font-size: 12px; padding: 7px 10px; }
  .pin small { display: none; }
}
@media (max-width: 700px) {
  .hero__body { text-align: left; flex-direction: row; }
  .hero__text { align-items: flex-start; }
  .hero__cta { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .top { height: 64px; gap: 12px; }
  .top__logo { width: 96px; }
  .top__wa span { display: none; }
  .top__wa { width: 42px; padding: 0; }
  .hero__body { padding-bottom: 24px; }
  .hero h1 { font-size: 35px; hyphens: manual; }
  .tab { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .board__bar { gap: 12px; }
  .pilaster { width: 6px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .specs { grid-template-columns: 1fr; }
  .specs > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .calc__grid { grid-template-columns: 1fr; padding: 20px; }
  .calc__res { grid-template-columns: 1fr; }
  .board__grid { padding: 14px 14px 8px; }
  .floor__n { left: -14px; margin-left: -14px; padding-left: 14px; width: 50px; }
  .cell { width: 78px; min-height: 84px; font-size: 11px; }
  .cell b { font-size: 13px; }
  .cell .pr { font-size: 12px; }
  .plans__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plan { padding: 10px 10px 14px; }
  .plan__t { font-size: 20px; }
  .form { padding: 20px; }
  .drawer__plan { padding: 56px 20px 16px; }
  .drawer__plan img { max-height: 260px; }
  .drawer__body { padding: 20px 20px 28px; }
}

/* ======================================================================
   АНИМАЦИИ (v3): заставка, счётчики, раскрытие при прокрутке,
   прорисовка корпусов, «дом строится» в шахматке
   ====================================================================== */

/* ---------- заставка: логотип, затем занавес уходит ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(120% 90% at 50% 45%, #2E353D 0%, #1B2026 72%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  overflow: hidden;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.intro__mark { position: relative; overflow: hidden; padding: 4px 0; }
.intro__logo { width: min(280px, 58vw); display: block; clip-path: inset(0 100% 0 0); animation: introWipe .85s cubic-bezier(.76,0,.24,1) .25s forwards; }
.intro__line { width: min(280px, 58vw); height: 2px; background: var(--ochre); transform: scaleX(0); transform-origin: left; animation: introLine .75s cubic-bezier(.76,0,.24,1) .5s forwards; }
.intro.is-done { transform: translateY(-101%); }
.intro.is-gone { display: none; }
html:not(.js) .intro { display: none; }
@keyframes introWipe { to { clip-path: inset(0 0 0 0); } }
@keyframes introLine { 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- полоса прогресса ---------- */
.progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; background: var(--ochre); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; pointer-events: none; }

/* ---------- hero: параллакс и медленный наезд ---------- */
.hero__media { will-change: transform; }
.is-loaded .hero__media img { animation: heroDrift 26s ease-in-out 2.2s infinite alternate; }
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.07) translateY(-1.5%); } }
.js .hero h1 .line > span { transition-duration: 1.2s; }
.js .hero__lead { transition-delay: .7s; }
.js .hero__cta { transition-delay: .85s; }
.js .hero__facts { transition-delay: 1s; }
.js .hero__facts > div { transform: translateY(18px); transition: transform 1s var(--ease); }
.js .hero__facts > div:nth-child(2) { transition-delay: .08s; }
.js .hero__facts > div:nth-child(3) { transition-delay: .16s; }
.js .hero__facts > div:nth-child(4) { transition-delay: .24s; }
.is-loaded .hero__facts > div { transform: none; }
.js:not(.intro-done) .hero__media img, .js:not(.intro-done) .pilaster, .js:not(.intro-done) .hero h1 .line > span { transition-delay: 9999s; }

/* ---------- раскрытие при прокрутке ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(.77, 0, .18, 1) var(--d, 0s); }
.js [data-reveal="mask"].in { clip-path: inset(0 0 0 0); }
.js .gallery figure[data-reveal="mask"] img { transform: scale(1.18); transition: transform 1.8s var(--ease) var(--d, 0s); }
.js .gallery figure[data-reveal="mask"].in img { transform: scale(1); }
.gallery figure { overflow: hidden; }
.js .ways li::before { transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease) calc(var(--d, 0s) + .25s); }
.js .ways li.in::before { transform: none; }
.js .specs > div[data-reveal] { transform: translateY(18px); }
.js .specs > div.in { transform: none; }

/* ---------- генплан: прорисовка корпусов ---------- */
.js .genplan .bld { stroke-dasharray: 2200; }
.genplan.in .bld { animation: bldDraw 2.2s cubic-bezier(.6, 0, .2, 1) var(--d, .2s) backwards; }
.genplan.in .bld[data-block="1"] { --d: .25s; }
.genplan.in .bld[data-block="2"] { --d: .55s; }
.genplan.in .bld[data-block="3"] { --d: .85s; }
@keyframes bldDraw {
  0% { stroke: #fff; stroke-dashoffset: 2200; fill: rgba(214,154,45,0); }
  55% { stroke: #fff; stroke-dashoffset: 0; fill: rgba(214,154,45,.34); }
  100% { stroke: rgba(255,255,255,0); stroke-dashoffset: 0; fill: rgba(214,154,45,0); }
}
.js .genplan .genplan__frame img { transform: scale(1.12); transition: transform 2.4s var(--ease); }
.genplan.in .genplan__frame img { transform: scale(1); }
.js .genplan .pin { opacity: 0; transform: translate(-50%, 0) scale(.7); transition: opacity .5s ease, transform .7s cubic-bezier(.3, 1.6, .5, 1), background-color .2s, color .2s; }
.genplan.in .pin { opacity: 1; transform: translate(-50%, -50%); }
.genplan.in .pin[data-pin="1"] { transition-delay: 1.3s, 1.3s, 0s, 0s; }
.genplan.in .pin[data-pin="2"] { transition-delay: 1.5s, 1.5s, 0s, 0s; }
.genplan.in .pin[data-pin="3"] { transition-delay: 1.7s, 1.7s, 0s, 0s; }
.pin.is-on::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid var(--ochre); animation: pinRing 2s ease-out infinite; }
@keyframes pinRing { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

/* ---------- шахматка: дом строится снизу вверх ---------- */
.board__grid.rise .cell { animation: cellRise .45s var(--ease); animation-delay: calc(var(--f, 0) * 55ms + var(--i, 0) * 10ms); }
.board__grid.shown .cell { animation: none; }
@keyframes cellRise { from { opacity: 0; transform: translateY(16px) scale(.95); } }

/* ---------- планировки: наклон за курсором ---------- */

.plan { transition: border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan:hover, .plan:focus-visible { transform: scale(1.035); box-shadow: 0 18px 38px rgba(38,43,49,.16); z-index: 2; }
.plan__img img { transition: transform .5s var(--ease); }
.plan:hover .plan__img img { transform: scale(1.04); }
.js .plans__grid .plan { opacity: 0; transform: translateY(26px); }
.plans__grid.in .plan { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s), border-color .2s, box-shadow .35s; }


/* ---------- кнопки ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn--light:hover::after { background: linear-gradient(110deg, transparent 30%, rgba(214,154,45,.22) 50%, transparent 70%); }

/* ---------- карта: метки падают ---------- */
.mk { animation: mkDrop .8s cubic-bezier(.3, 1.5, .5, 1) .3s backwards; }
.mk--home { animation-delay: .1s; }
@keyframes mkDrop { from { opacity: 0; transform: translate(-50%, calc(-100% - 60px)); } }

/* ---------- уменьшенное движение: всё сразу ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .progress { display: none; }
  .js [data-reveal], .js [data-reveal="mask"], .js .plans__grid .plan, .js .board .cell, .js .genplan .pin,
  .js .genplan .genplan__frame img, .js .gallery figure[data-reveal="mask"] img, .js .ways li::before, .js .hero__facts > div {
    opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; animation: none !important;
  }
  .genplan.in .pin { transform: translate(-50%, -50%) !important; }
  .is-loaded .hero__media img, .genplan.in .bld, .board__grid.rise .cell, .pin.is-on::after, .mk { animation: none !important; }
  .btn::after { display: none; }
}

/* ---------- переключатель 3D / чертёж ---------- */
.viewsw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--stone-2); }
.viewsw--lb { position: absolute; top: 14px; left: 28px; }
.drawer__plan { position: relative; }
.drawer__plan .viewsw { position: absolute; left: 20px; top: 18px; }
.viewsw__b { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; color: var(--slate); }
.viewsw__b:hover { color: var(--graphite); }
.viewsw__b.is-on { background: var(--graphite); color: #fff; }
.plan__img { position: relative; }
.plan__tag { position: absolute; left: 0; top: 0; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ochre-ink); background: var(--hold-bg); border-radius: 999px; padding: 3px 9px; }
.lightbox__box { padding-top: 64px; }

/* ---------- подъезды ---------- */
.tabs--ent { margin-top: 16px; }
.tab--sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.tab--sm[aria-pressed="true"] { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.tab--sm[aria-pressed="true"] span { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- финал: логотип рисуется сам (настоящие контуры, SVG) ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: -1px; }
.sign { background: radial-gradient(120% 120% at 50% 18%, #2C333B 0%, var(--graphite) 62%); color: #fff; padding: clamp(84px, 13vw, 160px) 0; overflow: hidden; }
.sign__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sign__logo { position: relative; width: min(560px, 84vw); }
.mrk { width: 100%; height: auto; display: block; overflow: visible; }

/* ЛАЗЕРНАЯ ГРАВИРОВКА ЛОГОТИПА: луч проходит по строке, буквы прочерчиваются
   золотым контуром и наливаются светом, следом остаётся тонкая линия и блик */
.mrk { position: relative; z-index: 2; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }

.mrk__g {
  fill: #fff; fill-opacity: 0;
  stroke: #F3D9A4; stroke-width: 1.15; stroke-opacity: .95;
  vector-effect: non-scaling-stroke; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.sign.in .mrk__g {
  animation: mrkDraw 1.15s cubic-bezier(.6,0,.3,1) calc(.12s + var(--i) * .12s) forwards,
             mrkFill .7s cubic-bezier(.16,1,.3,1) calc(.92s + var(--i) * .12s) forwards;
}
@keyframes mrkDraw { to { stroke-dashoffset: 0; } }
@keyframes mrkFill {
  0%   { fill-opacity: 0; stroke-opacity: .95; }
  60%  { fill-opacity: 1; }
  100% { fill-opacity: 1; stroke-opacity: 0; }
}

/* луч-каретка: идёт слева направо ровно там, где рождаются буквы */
.sign__scan {
  position: absolute; top: -14%; bottom: -14%; left: -3%; width: 2px;
  background: linear-gradient(180deg, transparent, #FFF0D2 22%, #E9C486 50%, #FFF0D2 78%, transparent);
  box-shadow: 0 0 22px 5px rgba(233,196,134,.5); opacity: 0; z-index: 3; pointer-events: none;
}
.sign.in .sign__scan { animation: scanX 1.75s cubic-bezier(.5,0,.25,1) .1s forwards; }
@keyframes scanX {
  0%   { left: -3%; opacity: 0; }
  10%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { left: 103%; opacity: 0; }
}

/* полосы-лазеры: стремительно прочерчивают кадр перед появлением букв */
.ray {
  position: absolute; left: -28%; right: -28%; height: 1px; top: calc(10% + var(--i) * 24%);
  background: linear-gradient(90deg, transparent, rgba(255,244,221,.9) 46%, rgba(233,196,134,.95) 54%, transparent);
  transform: scaleX(0); transform-origin: left center; opacity: 0; z-index: 1; pointer-events: none;
}
.sign.in .ray { animation: rayShot .8s cubic-bezier(.22,.9,.2,1) calc(var(--i) * .11s) forwards; }
@keyframes rayShot {
  0%   { transform: scaleX(0); opacity: 0; }
  18%  { opacity: 1; }
  62%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1) translateX(5%); opacity: 0; }
}

/* искры на следе луча */
.spark {
  position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%;
  background: #FFF3D9; box-shadow: 0 0 10px 3px rgba(233,196,134,.75); opacity: 0; z-index: 3;
}
.sign.in .spark { animation: sparkPop .7s ease-out var(--d) forwards; }
@keyframes sparkPop {
  0%   { opacity: 0; transform: scale(.4); }
  30%  { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(.6) translateY(-10px); }
}

/* вспышка в момент, когда логотип собран */
.sign__flash {
  position: absolute; inset: -40% -12%; border-radius: 50%; opacity: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(52% 58% at 50% 50%, rgba(233,196,134,.38), rgba(233,196,134,0) 70%);
}
.sign.in .sign__flash { animation: mrkFlash 1.5s ease-out 1.55s forwards; }
@keyframes mrkFlash {
  0%   { opacity: 0; transform: scale(.86); }
  22%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.12); }
}

/* подпись: выходит после того, как буквы налились светом */
.mrk__s { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; transform: translateY(4px); }
.sign.in .mrk__s { animation: mrkSub 1.1s cubic-bezier(.16,1,.3,1) calc(1.85s + var(--i) * .022s) forwards; }
@keyframes mrkSub { to { opacity: .6; transform: none; } }

/* золотой отблеск идёт по буквам один раз, затем повторяется редко */
.mrk__sheen { opacity: 0; transform: translateX(-100%); }
.sign.in .mrk__sheen { animation: mrkSheen 2.4s cubic-bezier(.4,0,.2,1) 2.1s 1 forwards, mrkSheenLoop 9s linear 6s infinite; }
@keyframes mrkSheen {
  0%   { opacity: 0; transform: translateX(-100%); }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}
@keyframes mrkSheenLoop {
  0%   { opacity: 0; transform: translateX(-100%); }
  8%   { opacity: .85; }
  26%  { opacity: .85; }
  34%  { opacity: 0; transform: translateX(100%); }
  100% { opacity: 0; transform: translateX(100%); }
}

/* след луча под логотипом: раскрывается из центра и остаётся */
.sign__line { position: absolute; left: 50%; bottom: -18px; top: auto; width: 62%; height: 1px; margin: 0; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(233,196,134,.85), transparent);
  box-shadow: 0 0 14px rgba(233,196,134,.35);
  transform: translateX(-50%) scaleX(0); transform-origin: center; }
.sign.in .sign__line { animation: mrkRule 1.6s cubic-bezier(.16,1,.3,1) 1.5s forwards; }
@keyframes mrkRule { to { transform: translateX(-50%) scaleX(1); } }

.sign__slogan { font: 300 clamp(22px, 2.4vw, 32px)/1.3 var(--f-head); letter-spacing: .06em; margin: 52px 0 0; opacity: 0; transform: translateY(18px); }
.sign.in .sign__slogan { animation: signUp 1.4s cubic-bezier(.16,1,.3,1) 2.6s forwards; }
.sign__cta { margin-top: 30px; opacity: 0; transform: translateY(18px); }
.sign.in .sign__cta { animation: signUp 1.4s cubic-bezier(.16,1,.3,1) 3s forwards; }
@keyframes signUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mrk__g { fill-opacity: 1; stroke: none; animation: none !important; }
  .mrk__s { opacity: .6; transform: none !important; animation: none !important; }
  .mrk__sheen, .sign__scan, .ray, .spark, .sign__flash, .sign__line { display: none; }
  .sign__slogan, .sign__cta { opacity: 1; transform: none; animation: none !important; }
}

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: 100svh; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--graphite); }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
/* слайдер кадров: кроссфейд между слайдами */
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.is-on { opacity: 1; }
.slide video { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide video.is-on { opacity: 1; }
.hero__dots { position: absolute; right: var(--gutter); bottom: 15vh; z-index: 3; display: flex; gap: 8px; }
.hero__dots button { width: 26px; height: 3px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.35); transition: background-color .3s, width .3s; }
.hero__dots button[aria-selected="true"] { background: var(--ochre); width: 42px; }
@media (max-width: 860px) { .hero__dots { bottom: 19vh; } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,28,.45) 0%, rgba(20,24,28,0) 26%, rgba(20,24,28,0) 44%, rgba(20,24,28,.82) 100%); }
.hero__body { position: relative; display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: clamp(14px, 1.8vw, 26px); align-items: stretch; padding-bottom: 30px; text-align: right; }
.pilaster { width: 6px; flex: none; background: var(--ochre); transform-origin: bottom; }
.hero__text { padding: 8px 0 4px; display: flex; flex-direction: column; align-items: flex-end; }
.hero h1 { font: 500 clamp(23px, 2.5vw, 38px)/1.16 var(--f-head); letter-spacing: -0.025em; margin: 0 0 14px; max-width: 24ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; }
.hero__lead { font: 400 clamp(14px, 1.05vw, 16px)/1.5 var(--f-head); opacity: .88; margin-bottom: 20px; max-width: 42ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.hero__facts { position: relative; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.28); }
.hero__facts > div { padding: 18px 16px 26px 0; }
.hero__facts > div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); }
.hero__facts dt { font-size: 13px; opacity: .72; margin-bottom: 2px; }
.hero__facts dd { margin: 0; font: 400 clamp(19px, 2vw, 26px)/1.2 var(--f-display); }

/* появление первого экрана */
.js .hero__media img { transform: scale(1.08); transition: transform 2.4s var(--ease); }
.js .pilaster { transform: scaleY(0); transition: transform 1.1s var(--ease) .15s; }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.js .hero__lead, .js .hero__cta, .js .hero__facts { opacity: 0; transition: opacity .9s ease .55s; }
.js .hero__facts > div { transform: translateY(18px); transition: transform 1s var(--ease); }
.js .hero__facts > div:nth-child(2) { transition-delay: .08s; }
.js .hero__facts > div:nth-child(3) { transition-delay: .16s; }
.js .hero__facts > div:nth-child(4) { transition-delay: .24s; }
.is-loaded .hero__media img { transform: none; }
.is-loaded .pilaster { transform: none; }
.is-loaded .hero h1 .line > span { transform: none; }
.is-loaded .hero__lead, .is-loaded .hero__cta, .is-loaded .hero__facts { opacity: 1; }
.is-loaded .hero__facts > div { transform: none; }
.js:not(.intro-done) .hero__media img, .js:not(.intro-done) .pilaster, .js:not(.intro-done) .hero h1 .line > span { transition-delay: 9999s; }

/* ---------- видео на главной ---------- */
.filmsec { padding: clamp(56px, 7vw, 96px) 0 0; }

.film { position: relative; border-radius: var(--r-md); overflow: hidden; background: #0E1216; aspect-ratio: 16 / 9; }
.film__v { width: 100%; height: 100%; object-fit: cover; display: block; }
.film__play { position: absolute; inset: 0; width: 100%; border: 0; background: linear-gradient(180deg, rgba(14,18,22,.15), rgba(14,18,22,.55));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; transition: background-color .3s, opacity .3s; }
.film__play svg { width: 34px; height: 34px; fill: var(--graphite); background: #fff; border-radius: 50%; padding: 16px 14px 16px 18px; box-sizing: content-box; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.film__play span { font-size: 15px; letter-spacing: .01em; }
.film__play:hover svg { transform: scale(1.06); }
.film.is-playing .film__play { opacity: 0; pointer-events: none; }

/* ---------- шахматка поверх вида сверху ---------- */
.kvstage { position: relative; }
@media (min-width: 1100px) {
  .kvstage .board { position: absolute; left: 14px; top: 14px; width: min(470px, 40%); margin: 0; z-index: 2;
    background: rgba(241,242,240,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-radius: var(--r-md); padding: 12px 10px 8px; box-shadow: 0 20px 50px rgba(20,24,28,.28); }
  /* картинка корпусов меньше и по правому краю — слева место под шахматку */
  .kvstage .genplan__pic { left: auto; right: 0; width: 78%; height: auto; aspect-ratio: 16 / 9;
    top: 50%; bottom: auto; transform: translateY(-50%); }
  .kvstage .cell { width: clamp(56px, 4.3vw, 70px); }
  .kvstage .board__grid { padding: 6px 0 2px; }
  .kvstage .board__bar { gap: 10px 14px; }
  .kvstage .board__grid { background: transparent; padding: 8px 0 4px; }
  .kvstage .floor__n { background: transparent; width: 46px; left: 0; margin-left: 0; padding-left: 0; }
  .kvstage .cell { width: clamp(56px, 4.4vw, 70px); min-height: 62px; font-size: 10px; padding: 5px 3px; }
  .kvstage .cell b { font-size: 12px; }
  .kvstage .cell .pr { font-size: 10px; margin-top: 1px; }
  .kvstage .tab { min-height: 34px; padding: 0 12px; font-size: 14px; }
  .kvstage .tab--sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
  .kvstage .chip { min-height: 32px; padding: 0 11px; font-size: 13px; }
  .kvstage .switch { font-size: 13px; }
  .kvstage .board__legend { margin: 12px 0 8px; font-size: 12px; }
  .kvstage .board__note { font-size: 11px; margin-top: 8px; }
  .kvstage .tabs--ent { margin-top: 10px; }
  /* высота рамки держит панель шахматки целиком, картинка центрируется по вертикали */
  .kvstage .genplan__frame { aspect-ratio: 16 / 9; }
  .kvstage .pin[data-pin="1"] { left: 62%; }
}
@media (max-width: 1099px) {
  .kvstage .board { margin-top: 24px; }
  .cell { width: 72px; min-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__media img, .js .pilaster, .js .hero h1 .line > span { transform: none !important; transition: none !important; }
  .js .hero__lead, .js .hero__cta, .js .hero__facts, .js .hero__facts > div { opacity: 1 !important; transform: none !important; }
}

/* ---------- расположение: карта и кнопки ---------- */
.mesto__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn--outline { border-color: var(--line); color: var(--graphite); }
.btn--outline:hover { border-color: var(--graphite); }
.map { position: relative; min-height: 520px; }
.map__badge { position: absolute; z-index: 400; left: 14px; bottom: 14px; background: rgba(241,242,240,.94); border-radius: 999px; padding: 8px 14px; font-size: 13px; box-shadow: 0 6px 18px rgba(20,24,28,.18); }
@media (max-width: 860px) { .map { min-height: 360px; } }

/* страховка от притормозивших анимаций */
.js [data-reveal].is-done { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
.js .gallery figure[data-reveal="mask"].is-done img { transform: none !important; transition: none !important; }
.js .ways li.is-done::before { transform: none !important; }

/* ---------- живой первый экран: облёт, машины, свет в окнах ---------- */
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* ---------- кнопка «Кабинет» в шапке ---------- */
.top__cab { min-height: 42px; padding: 0 16px; margin-left: auto; color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 15px; }
.top__cab:hover { background: rgba(255,255,255,.2); }
.top__cab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.top__nav + .top__cab { margin-left: 8px; }
.top__cab + .top__wa { margin-left: 0; }
.top.is-solid .top__cab { color: var(--graphite); border-color: var(--line); background: transparent; }
.top.is-solid .top__cab:hover { border-color: var(--graphite); background: var(--stone-2); }
@media (max-width: 1080px) {
  .top__cab { margin-left: auto; padding: 0 14px; }
}
/* на телефоне «Кабинет-СРМ» остаётся в шапке подписью рядом с WhatsApp */
@media (max-width: 560px) {
  .top__cab { min-height: 38px; padding: 0 11px; font-size: 13px; letter-spacing: .01em; }
  .top__cab svg { display: none; }
}
