@charset "UTF-8";
/* ============================================================
   ЖК HAYAT — лендинг. Тёмная премиальная гамма с золотом.
   Ночной фасад с тёплой подсветкой + графит + бронза.
   ============================================================ */

/* шрифты вшиты, чтобы не плодить последовательные запросы */
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/cormorant-garamond-400-i-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/cormorant-garamond-400-i-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/cormorant-garamond-400-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/cormorant-garamond-400-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/cormorant-garamond-600-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/cormorant-garamond-600-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/manrope-400-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/manrope-400-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/manrope-500-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/manrope-500-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/manrope-600-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/manrope-600-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/manrope-700-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/manrope-700-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/manrope-800-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('/assets/fonts/manrope-800-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --bg:         #0B0F14;
  --bg-2:       #10161E;
  --bg-3:       #161E28;
  --panel:      #131A23;
  --panel-2:    #1A222D;

  --gold:       #C9A24A;
  --gold-lt:    #E5C889;
  --gold-dk:    #9C7C33;
  --gold-grad:  linear-gradient(135deg, #C9A24A 0%, #E5C889 52%, #B8903C 100%);

  --tx:         #FFFFFF;
  --tx-2:       #A7B0BB;
  --tx-3:       #6E7883;

  --hair:       rgba(201,162,74,.30);
  --hair-2:     rgba(201,162,74,.16);
  --line:       rgba(255,255,255,.10);
  --line-2:     rgba(255,255,255,.16);

  --ok:         #6FA96A;
  --hold:       #D3A343;
  --gone:       #8A6F6A;

  --pad:        clamp(20px, 5vw, 80px);
  --maxw:       1680px;
  --gap:        clamp(16px, 2.2vw, 32px);
  --r:          10px;
  --r-lg:       22px;
  --r-cut:      64px;

  --ff:         'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ff-serif:   'Cormorant Garamond', Georgia, serif;

  --ease:       cubic-bezier(.22,.61,.36,1);
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --hdr-h:      86px;
}
@media (max-width: 900px) { :root { --hdr-h: 64px; --r-cut: 34px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--ff); font-size: 16px; line-height: 1.6;
  color: var(--tx); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; font-feature-settings: 'liga' 1, 'kern' 1;
}
img, video, svg, picture { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: #0B0F14; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.h-display { font-size: clamp(56px, 9.5vw, 150px); font-weight: 800; letter-spacing: .04em; line-height: .9; }
.h1 { font-size: clamp(34px, 5vw, 76px); text-transform: uppercase; letter-spacing: .005em; }
.h2 { font-size: clamp(28px, 3.7vw, 58px); text-transform: uppercase; letter-spacing: .005em; }
.h3 { font-size: clamp(20px, 2vw, 30px); }
.h4 { font-size: clamp(16px, 1.25vw, 20px); font-weight: 700; }

.lead  { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.66; color: var(--tx-2); text-wrap: pretty; }
.body  { font-size: clamp(14.5px, 1vw, 16px); line-height: 1.7; color: var(--tx-2); text-wrap: pretty; }
.small { font-size: 13px; line-height: 1.55; color: var(--tx-3); }
.num   { font-variant-numeric: tabular-nums; }
.gold  { color: var(--gold-lt); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 8.5vw, 148px); position: relative; }
.section--tight { padding-block: clamp(48px, 5.5vw, 90px); }
.section--alt { background: var(--bg-2); }
.glow::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60vw 60vh at 12% 18%, rgba(201,162,74,.10), transparent 60%);
}
.section > .wrap { position: relative; z-index: 1; }

.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: clamp(16px, 2vw, 26px);
}
.kicker::after { content: ''; width: 46px; height: 1px; background: var(--hair); }

.sec-head { margin-bottom: clamp(30px, 4vw, 62px); }
.sec-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sec-head .body, .sec-head .lead { max-width: 58ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px; border-radius: var(--r);
  font-size: 13.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  position: relative; overflow: hidden; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, color .3s;
}
.btn--gold { background: var(--gold-grad); color: #14100A; box-shadow: 0 14px 34px -16px rgba(201,162,74,.7); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -16px rgba(201,162,74,.85); }
.btn--line { color: var(--tx); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-lt); transform: translateY(-2px); }
.btn--gold-line { color: var(--gold-lt); box-shadow: inset 0 0 0 1px var(--hair); }
.btn--gold-line:hover { box-shadow: inset 0 0 0 1px var(--gold); background: rgba(201,162,74,.08); transform: translateY(-2px); }
.btn--sm { padding: 12px 20px; font-size: 12px; }
.btn--lg { padding: 20px 36px; font-size: 14px; }
.btn svg { flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-lt); padding-bottom: 3px; position: relative;
}
.link-arrow::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.link-arrow:hover::before { transform: scaleX(1); transform-origin: left; }
.link-arrow svg { transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   ШАПКА
   ============================================================ */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--hdr-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease), box-shadow .4s, backdrop-filter .4s;
}
.hdr.is-stuck {
  background: rgba(11,15,20,.88);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--hair-2);
}
.hdr__in { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 44px); width: 100%; }

.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand img { width: auto; height: clamp(32px, 2.8vw, 44px); }
.brand__tx { line-height: 1.1; }
.brand__tx b { display: block; font-size: clamp(14px, 1.2vw, 18px); font-weight: 800; letter-spacing: .11em; color: var(--tx); }
.brand__tx span { display: block; font-size: 9px; letter-spacing: .17em; text-transform: uppercase; color: var(--tx-3); margin-top: 3px; }
@media (max-width: 760px) { .brand__tx span { display: none; } }

.nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 32px); margin-inline: auto; }
@media (max-width: 1300px) { .nav { display: none; } }
.nav a {
  font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--tx-2); position: relative; padding: 8px 0; white-space: nowrap; transition: color .3s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--tx); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.hdr__cta { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.hdr__phone {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--hair); color: var(--tx);
  font-size: 14px; font-weight: 700; white-space: nowrap; transition: all .3s;
}
.hdr__phone:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-lt); }
.hdr__phone svg { color: var(--gold); }
@media (max-width: 640px) { .hdr__phone span { display: none; } .hdr__phone { padding: 12px; } }

.fav-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: var(--r);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--tx); transition: all .25s;
}
.fav-pill:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-lt); }
.fav-pill b { color: var(--gold-lt); font-variant-numeric: tabular-nums; }
.fav-pill:not(.is-on) { display: none; }
@media (max-width: 900px) { .fav-pill { display: none !important; } }

.burger {
  width: 50px; height: 50px; display: grid; place-items: center; flex: none;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s;
}
.burger:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.burger i { display: block; width: 18px; height: 1.5px; background: var(--tx); position: relative; transition: background .3s; }
.burger i::before, .burger i::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: inherit;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.burger i::before { top: -6px; }
.burger i::after  { top: 6px; }
body.menu-open .burger i { background: transparent; }
body.menu-open .burger i::before { top: 0; transform: rotate(45deg); background: var(--tx); }
body.menu-open .burger i::after  { top: 0; transform: rotate(-45deg); background: var(--tx); }

.menu {
  position: fixed; inset: 0; z-index: 89; background: var(--bg);
  padding: calc(var(--hdr-h) + 28px) var(--pad) 36px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a {
  font-size: clamp(22px, 5vw, 34px); font-weight: 800; text-transform: uppercase;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 16px;
}
.menu a small { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .12em; }
.menu__foot { margin-top: auto; padding-top: 26px; display: flex; flex-direction: column; gap: 12px; }

/* ============================================================
   01 — ПЕРВЫЙ ЭКРАН
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture { position: absolute; inset: 0; display: block; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero__media img { animation: kb 34s ease-in-out infinite alternate; transform-origin: 62% 55%; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; } }
.hero__media video { display: none; }
@media (max-width: 780px) { .hero__media img { display: none; } .hero__media video { display: block; } }

.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(9,13,18,.95) 0%, rgba(9,13,18,.88) 24%, rgba(9,13,18,.48) 50%, rgba(9,13,18,.26) 72%, rgba(9,13,18,.6) 100%),
    linear-gradient(to bottom, rgba(9,13,18,.78) 0%, transparent 22%, transparent 60%, rgba(9,13,18,.82) 100%);
}
.hero__arc { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__arc i { position: absolute; border: 1px solid transparent; border-radius: 50%; border-top-color: rgba(201,162,74,.28); border-right-color: rgba(201,162,74,.12); }
.hero__arc i:nth-child(1) { width: 92vw; height: 92vw; left: 20%; top: -36%; transform: rotate(16deg); }
.hero__arc i:nth-child(2) { width: 56vw; height: 56vw; right: -14%; bottom: -24%; transform: rotate(-40deg); border-top-color: rgba(201,162,74,.18); }

.hero__body { flex: 1; display: flex; align-items: center; padding-top: var(--hdr-h); }
.hero__in { max-width: 800px; padding-block: clamp(28px, 4vw, 56px); }

.hero__kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--tx-2); margin-bottom: 12px; }
.hero__title { color: var(--tx); text-shadow: 0 4px 60px rgba(0,0,0,.5); }
.hero__rule { width: 118px; height: 1px; background: var(--hair); margin: clamp(18px,2.2vw,32px) 0 clamp(16px,2vw,28px); }
.hero__sub {
  font-size: clamp(24px, 3.1vw, 46px); font-weight: 800; line-height: 1.16;
  text-transform: uppercase; color: var(--tx); max-width: 15ch;
}
.hero__sub b { font-weight: 800; color: var(--gold-lt); }

.hero__stats { display: flex; flex-wrap: wrap; margin: clamp(24px,2.8vw,42px) 0 clamp(22px,2.8vw,36px); }
.hero__st { padding: 2px 26px; border-left: 1px solid var(--hair-2); }
.hero__st:first-child { padding-left: 20px; border-left-color: var(--hair); }
@media (max-width: 620px) { .hero__st { padding-inline: 15px; margin-bottom: 14px; } .hero__st:first-child { padding-left: 13px; } }
.hero__st b { display: block; font-size: clamp(19px, 1.7vw, 25px); font-weight: 800; letter-spacing: -.01em; }
.hero__st b sup { font-size: .52em; font-weight: 700; color: var(--tx-2); letter-spacing: 0; top: -.55em; }
.hero__st span { display: block; font-size: 12px; color: var(--tx-3); margin-top: 3px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.play-ring { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px currentColor; flex: none; }

.hero__scroll {
  position: absolute; left: var(--pad); bottom: clamp(22px, 3vw, 40px); z-index: 2;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-3);
}
.hero__scroll i { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--gold); animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (max-width: 900px) { .hero__scroll { display: none; } }

.hero__count {
  position: absolute; right: clamp(18px, 2.6vw, 44px); top: 50%; transform: translateY(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: var(--tx-3);
}
.hero__count b { color: var(--tx); font-size: 17px; }
.hero__count i { width: 26px; height: 1px; background: var(--hair); }
@media (max-width: 1100px) { .hero__count { display: none; } }

.hero__place {
  position: absolute; right: clamp(18px, 2.6vw, 44px); bottom: clamp(22px, 3vw, 40px); z-index: 2;
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px;
  border-radius: var(--r-lg); background: rgba(19,26,35,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}
.hero__place svg { color: var(--gold); flex: none; }
.hero__place b { display: block; font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero__place span { display: block; font-size: 12.5px; color: var(--tx-2); margin-top: 2px; }
@media (max-width: 900px) { .hero__place { display: none; } }

/* ============================================================
   Общие элементы
   ============================================================ */
.ph { position: relative; overflow: hidden; background: var(--panel); border-radius: var(--r-lg); }
.ph picture { display: block; width: 100%; height: 100%; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.ph--zoom:hover img { transform: scale(1.05); }
.ph--cut  { border-radius: var(--r-cut) var(--r) var(--r-cut) var(--r); }
.ph--cut2 { border-radius: var(--r) var(--r-cut) var(--r) var(--r-cut); }
.ph--gold { box-shadow: inset 0 0 0 1px var(--hair); }
.ph__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px;
  background: linear-gradient(to top, rgba(6,9,13,.9), transparent);
  font-size: 13px; font-weight: 600;
}

.stub {
  display: grid; place-content: center; gap: 10px; text-align: center; padding: 26px; min-height: 180px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 10px, transparent 10px 20px), var(--panel);
  border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--tx-3);
}
.stub svg { margin-inline: auto; color: var(--gold); opacity: .6; }
.stub b { font-size: 13.5px; font-weight: 700; color: var(--tx); }
.stub span { font-size: 12.5px; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 440px); gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 6px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail--inline { margin-inline: 0; padding-inline: 0; }
.rail__nav { display: flex; gap: 8px; }
.rail-btn { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: all .25s; }
.rail-btn:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-lt); }
.rail-btn[disabled] { opacity: .25; pointer-events: none; }

.rv { opacity: 0; transform: translateY(24px); }
.rv.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.rv-d1.is-in { transition-delay: .08s; } .rv-d2.is-in { transition-delay: .16s; }
.rv-d3.is-in { transition-delay: .24s; } .rv-d4.is-in { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ============================================================
   03 — О КОМПЛЕКСЕ · «Жизнь в ритме комфорта»
   ============================================================ */
.about { position: relative; overflow: hidden; background: linear-gradient(120deg, #0A0E13 0%, #10161E 58%, #0C1116 100%); }
.about::after {
  content: ''; position: absolute; left: -6%; top: 6%; width: 46vw; height: 60vh; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(201,162,74,.13), transparent 62%);
}
.about__grid {
  display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  gap: clamp(28px, 4vw, 70px); align-items: center; position: relative; z-index: 1;
}
@media (max-width: 1040px) { .about__grid { grid-template-columns: 1fr; } }

.about__title { text-transform: uppercase; }
.about__title span { display: block; }
.about__title .g { color: var(--gold-lt); }

.about__lead {
  margin-top: clamp(20px, 2.4vw, 32px); padding-left: 20px;
  border-left: 1px solid var(--hair); max-width: 40ch;
}

.about__feats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(28px, 3.4vw, 48px);
}
@media (max-width: 700px) { .about__feats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } }
.about__f { padding-right: 18px; border-right: 1px solid var(--line); }
.about__f:last-child { border-right: 0; }
@media (max-width: 700px) { .about__f:nth-child(2n) { border-right: 0; } }
.about__f svg { color: var(--gold); margin-bottom: 16px; }
.about__f b { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; }
.about__f span { display: block; font-size: 13px; color: var(--tx-3); line-height: 1.45; }

.about__cta { margin-top: clamp(28px, 3.4vw, 46px); }

/* правая композиция: большое фото со срезом + карточка-цитата внахлёст */
.about__art { position: relative; }
.about__ph {
  border-radius: var(--r-cut) var(--r-cut) var(--r) var(--r-cut);
  overflow: hidden; aspect-ratio: 16/10; box-shadow: inset 0 0 0 1px var(--hair-2), 0 40px 80px -50px #000;
}
.about__ph img { width: 100%; height: 100%; object-fit: cover; }
.about__quote {
  position: relative; margin-top: -8%; margin-left: 8%;
  display: grid; grid-template-columns: 1fr minmax(0,.62fr); align-items: stretch;
  border-radius: var(--r-cut) var(--r) var(--r-cut) var(--r-cut);
  overflow: hidden; background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--hair), 0 30px 70px -46px #000;
}
@media (max-width: 700px) { .about__quote { grid-template-columns: 1fr; margin-left: 0; margin-top: 18px; } }
.about__quote-tx { padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.about__quote-tx q { font-size: clamp(16px, 1.5vw, 23px); line-height: 1.42; font-weight: 600; quotes: none; }
.about__quote-tx q b { color: var(--gold-lt); font-weight: 700; }
.about__quote-tx svg { color: var(--gold); opacity: .7; }
.about__quote-ph { position: relative; min-height: 180px; overflow: hidden; }
.about__quote-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   04 — АРХИТЕКТУРА
   ============================================================ */
.arch__toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  background: rgba(255,255,255,.04); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2);
  position: relative;
}
.arch__toggle::before {
  content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: var(--tw, calc(50% - 4px)); background: var(--gold-grad); border-radius: 999px;
  transform: translateX(var(--tx, 0)); transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.arch__toggle button {
  padding: 10px 22px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3);
  transition: color .3s; position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
}
.arch__toggle button[aria-pressed="true"] { color: #14100A; }

.arch__stage {
  position: relative; border-radius: var(--r-cut) var(--r) var(--r-cut) var(--r);
  overflow: hidden; aspect-ratio: 16/9; background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}
@media (max-width: 720px) { .arch__stage { aspect-ratio: 4/3; } }
.arch__stage picture { position: absolute; inset: 0; display: block; }
.arch__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.arch__stage img.is-on { opacity: 1; }

.arch__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: var(--gap); }
.arch__grid > * { min-width: 0; }
.a-1 { grid-column: span 5; aspect-ratio: 4/5; }
.a-2 { grid-column: span 7; aspect-ratio: 16/10; align-self: end; }
.a-3 { grid-column: span 4; aspect-ratio: 1; }
.a-4 { grid-column: span 8; aspect-ratio: 21/9; }
@media (max-width: 860px) {
  .arch__grid { grid-template-columns: repeat(2, 1fr); }
  .a-1, .a-2, .a-3 { grid-column: span 1; aspect-ratio: 4/3; }
  .a-4 { grid-column: span 2; aspect-ratio: 16/9; }
}

.arch__note {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
  margin-top: clamp(32px, 4vw, 56px); padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line);
}
@media (max-width: 820px) { .arch__note { grid-template-columns: 1fr; } }
.arch__note h4 { margin-bottom: 10px; }
.arch__note h4::before { content: ''; display: block; width: 34px; height: 1px; background: var(--gold); margin-bottom: 14px; }

/* ============================================================
   05 — ПЛАНИРОВКИ
   ============================================================ */
.plans__layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.plans__layout > * { min-width: 0; }
@media (max-width: 1100px) { .plans__layout { grid-template-columns: 1fr; } }

.filters {
  position: sticky; top: calc(var(--hdr-h) + 20px);
  display: flex; flex-direction: column; gap: 26px; padding: 28px;
  background: var(--panel); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width: 1100px) { .filters { position: static; } }
.f-group__t { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 13px; display: flex; justify-content: space-between; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--tx-2); transition: all .25s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--hair); color: var(--tx); }
.chip[aria-pressed="true"] { background: var(--gold-grad); color: #14100A; box-shadow: none; }

.range { position: relative; height: 34px; margin-top: 6px; }
.range__track { position: absolute; inset: 15px 0 auto; height: 3px; background: rgba(255,255,255,.12); border-radius: 3px; }
.range__fill  { position: absolute; height: 3px; background: var(--gold); border-radius: 3px; top: 15px; }
.range input { position: absolute; width: 100%; top: 6px; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--gold), 0 3px 10px -2px #000; cursor: grab; transition: transform .18s; }
.range input::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
.range input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--gold); cursor: grab; }
.range__out { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-top: 2px; }

.house { display: flex; flex-direction: column-reverse; gap: 3px; }
.house__fl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--tx-2); transition: all .25s; width: 100%; text-align: left; }
.house__fl:hover { background: rgba(255,255,255,.05); color: var(--tx); }
.house__fl[aria-pressed="true"] { background: rgba(201,162,74,.14); color: var(--gold-lt); box-shadow: inset 0 0 0 1px var(--hair); }
.house__fl i { flex: 1; height: 10px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 9px, transparent 9px 12px); }
.house__fl[aria-pressed="true"] i { background: repeating-linear-gradient(90deg, var(--gold) 0 9px, transparent 9px 12px); }
.house__fl b { font-variant-numeric: tabular-nums; min-width: 16px; }
.house__fl small { font-size: 11px; font-weight: 600; opacity: .6; min-width: 44px; text-align: right; }
.f-reset { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-lt); }

/* шахматка */
.chess { background: var(--panel); border-radius: var(--r-lg); padding: clamp(18px,2.2vw,30px); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: var(--gap); }
.chess__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.chess__legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--tx-3); }
.chess__legend span { display: inline-flex; align-items: center; gap: 7px; }
.chess__legend i { width: 10px; height: 10px; border-radius: 3px; }
.chess__body { overflow-x: auto; scrollbar-width: thin; }
.chess__row { display: flex; align-items: stretch; gap: 6px; margin-bottom: 6px; min-width: max-content; }
.chess__fl { flex: none; width: 82px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--tx-2); transition: all .25s; text-align: left; }
.chess__fl:hover { background: rgba(255,255,255,.05); }
.chess__fl[aria-pressed="true"] { background: rgba(201,162,74,.14); color: var(--gold-lt); }
.chess__fl b { font-size: 15px; font-variant-numeric: tabular-nums; }
.chess__fl small { font-size: 11px; opacity: .55; }
.chess__cells { display: flex; gap: 6px; flex: 1; }
.chess__cell {
  flex: 1 1 62px; min-width: 62px; height: 54px; border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-size: 12px; font-weight: 700; position: relative;
  transition: transform .2s var(--ease-out), box-shadow .2s, opacity .3s; font-variant-numeric: tabular-nums;
}
.chess__cell b { font-size: 13px; }
.chess__cell small { font-size: 10.5px; font-weight: 600; opacity: .75; }
.chess__cell.c-free { background: rgba(111,169,106,.14); color: #9CCB96; box-shadow: inset 0 0 0 1px rgba(111,169,106,.3); }
.chess__cell.c-res  { background: rgba(211,163,67,.15); color: var(--gold-lt); box-shadow: inset 0 0 0 1px rgba(211,163,67,.32); }
.chess__cell.c-sold { background: rgba(255,255,255,.04); color: var(--tx-3); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.chess__cell.c-none { background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
@media (hover: hover) { .chess__cell:not(.c-sold):not(.c-none):hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 24px -12px #000, inset 0 0 0 1px currentColor; z-index: 2; } }
.chess__cell.is-dim { opacity: .22; }
.chess__hint { font-size: 12.5px; color: var(--tx-3); margin-top: 14px; display: flex; align-items: center; gap: 8px; }

.plans__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.plans__count { font-size: 15px; font-weight: 700; }
.plans__count span { color: var(--tx-3); font-weight: 600; }
.sortsel {
  padding: 11px 38px 11px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line-2); background-color: transparent; appearance: none; cursor: pointer; color: var(--tx);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A24A' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.sortsel option { background: var(--panel); color: var(--tx); }

.plans__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: var(--gap); }
.apt {
  display: flex; flex-direction: column; background: var(--panel); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .4s var(--ease), transform .4s var(--ease-out); position: relative;
}
.apt:hover { box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -40px #000; transform: translateY(-4px); }
.apt__plan { aspect-ratio: 1; background: #F4F1EA; position: relative; display: grid; place-items: center; padding: 16px; }
.apt__plan picture { display: block; width: 100%; height: 100%; }
.apt__plan img { width: 100%; height: 100%; object-fit: contain; }
.apt__plan .stub { background: none; border-color: rgba(23,20,15,.16); color: #6E6355; }
.apt__plan .stub b { color: #2A241C; }
.apt__badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; background: rgba(11,15,20,.9); font-size: 11.5px; font-weight: 700;
}
.apt__badge i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.st-free { color: #9CCB96; } .st-free i { background: var(--ok); }
.st-res  { color: var(--gold-lt); } .st-res i { background: var(--hold); }
.st-sold { color: var(--tx-3); } .st-sold i { background: var(--gone); }
.apt__fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: rgba(11,15,20,.85); color: var(--tx-2); transition: all .25s; }
.apt__fav:hover { transform: scale(1.1); color: var(--gold-lt); }
.apt__fav[aria-pressed="true"] { color: #D4635C; }
.apt__fav[aria-pressed="true"] svg { fill: currentColor; }
.apt__body { padding: 17px 19px 19px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.apt__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.apt__rooms { font-size: 15px; font-weight: 800; }
.apt__area { font-size: 17px; font-weight: 800; color: var(--gold-lt); font-variant-numeric: tabular-nums; }
.apt__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--tx-3); font-weight: 600; }
.apt__price { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.apt__price b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.apt__price .ask { font-size: 13px; font-weight: 700; color: var(--tx-3); }
.apt__cta { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-lt); display: inline-flex; align-items: center; gap: 6px; }
.apt.is-sold { opacity: .5; } .apt.is-sold:hover { transform: none; }

.plans__empty { grid-column: 1/-1; padding: 56px 20px; text-align: center; }
.plans__empty b { display: block; font-size: 19px; margin-bottom: 8px; }
.plans__note {
  margin-top: clamp(26px, 3vw, 42px); padding: 24px 28px; background: var(--panel);
  border-radius: var(--r-lg); border-left: 2px solid var(--gold);
  display: flex; gap: 16px; align-items: flex-start;
}
.plans__note svg { flex: none; color: var(--gold); margin-top: 2px; }

/* ============================================================
   06 — ОТДЕЛКА
   ============================================================ */
.finish__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.finish__grid > * { min-width: 0; }
@media (max-width: 900px) { .finish__grid { grid-template-columns: 1fr; } }
.compare {
  position: relative; aspect-ratio: 16/10; border-radius: var(--r-cut) var(--r) var(--r-cut) var(--r);
  overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; background: var(--panel);
  grid-column: 1 / -1; box-shadow: inset 0 0 0 1px var(--hair-2);
}
.compare picture { position: absolute; inset: 0; display: block; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__top { clip-path: inset(0 calc(100% - var(--sp, 50%)) 0 0); }
.compare__hd { position: absolute; top: 0; bottom: 0; left: var(--sp, 50%); width: 2px; background: var(--gold); transform: translateX(-1px); pointer-events: none; }
.compare__hd::after { content: ''; position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--gold-grad); box-shadow: 0 8px 26px -8px #000; }
.compare__hd i { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1; color: #14100A; display: grid; place-items: center; }
.compare__lb { position: absolute; top: 16px; padding: 8px 15px; border-radius: 999px; background: rgba(11,15,20,.68); backdrop-filter: blur(8px); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.compare__lb--l { left: 16px; } .compare__lb--r { right: 16px; }
.finish__card { display: flex; flex-direction: column; gap: 15px; }
.finish__card h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; text-transform: uppercase; }
.finish__card h3 span { font-size: 11px; font-weight: 700; letter-spacing: .13em; color: var(--gold); }
.finish__list { display: flex; flex-direction: column; gap: 10px; }
.finish__list li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--tx-2); }
.finish__list svg { flex: none; color: var(--gold); margin-top: 4px; }

/* ============================================================
   07 — ДВОР
   ============================================================ */
.yard__hero { border-radius: var(--r-cut) var(--r) var(--r-cut) var(--r); overflow: hidden; aspect-ratio: 21/9; margin-bottom: var(--gap); }
@media (max-width: 800px) { .yard__hero { aspect-ratio: 4/3; } }
.infra { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 1200px) { .infra { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .infra { grid-template-columns: repeat(2, 1fr); } }
.infra--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .infra--3 { grid-template-columns: 1fr; } }
.infra--3 .infra__i small { font-size: 13px; }
.infra--3 .infra__i b { margin-top: 0; }
.sec-head--sub .h3 .g { color: var(--gold-lt); }
.sec-head--sub { margin-top: clamp(34px, 4vw, 62px); margin-bottom: clamp(16px, 1.8vw, 24px); }
.sec-head--sub .h3 { margin-bottom: 10px; }
.infra__i { background: var(--panel); padding: clamp(20px,2.2vw,30px) clamp(14px,1.4vw,20px); display: flex; flex-direction: column; gap: 12px; min-height: 162px; position: relative; transition: background-color .4s; }
.infra__i:hover { background: var(--panel-2); }
.infra__i::before { content: attr(data-n); position: absolute; top: 13px; right: 15px; font-size: 11px; font-weight: 700; color: var(--gold); opacity: .45; font-variant-numeric: tabular-nums; }
.infra__i svg { color: var(--gold); }
.infra__i b { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1.35; margin-top: auto; }
.infra__i small { font-size: 12.5px; color: var(--tx-3); line-height: 1.45; }

/* ============================================================
   08 — КОФЕЙНЯ
   ============================================================ */
.coffee { position: relative; overflow: hidden; background: linear-gradient(120deg, #0A0E13, #141A22 60%, #0B0F14); }
.coffee__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px,5vw,80px); align-items: center; }
.coffee__grid > * { min-width: 0; }
@media (max-width: 950px) { .coffee__grid { grid-template-columns: 1fr; } }
.coffee__ph { border-radius: var(--r) var(--r-cut) var(--r) var(--r-cut); overflow: hidden; aspect-ratio: 4/3; box-shadow: inset 0 0 0 1px var(--hair-2); }
.coffee__tag { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 22px; }
.coffee__name { font-size: clamp(40px,6vw,96px); font-weight: 800; letter-spacing: .05em; line-height: 1; margin-bottom: 8px; }
.coffee__sub { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 26px; }

/* ============================================================
   09-13
   ============================================================ */
.common__card { border-radius: var(--r-cut) var(--r) var(--r-cut) var(--r); overflow: hidden; aspect-ratio: 3/4; position: relative; }

.tl { position: relative; padding-left: 28px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl__i { position: relative; padding-bottom: 32px; }
.tl__i::before { content: ''; position: absolute; left: -27px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
.tl__i.is-done::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,74,.16); }
.tl__d { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.tl__t { font-size: 17px; font-weight: 700; margin-bottom: 5px; }

.buy__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .buy__grid { grid-template-columns: 1fr; } }
.buy__c { padding: clamp(26px,2.8vw,38px); background: var(--panel); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 13px; transition: all .4s var(--ease-out); }
.buy__c:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -42px #000; }
.buy__n { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--gold); }
.buy__c h3 { text-transform: uppercase; font-size: clamp(18px,1.6vw,24px); }

.loc__grid { display: grid; grid-template-columns: 400px 1fr; gap: clamp(24px,3vw,48px); align-items: stretch; }
.loc__grid > * { min-width: 0; }
@media (max-width: 1000px) { .loc__grid { grid-template-columns: 1fr; } }
.loc__map { border-radius: var(--r-cut) var(--r) var(--r-cut) var(--r); overflow: hidden; min-height: 480px; background: var(--panel); position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.loc__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.3) brightness(.86) contrast(1.06); }
.loc__list { display: flex; flex-direction: column; }
.loc__i { display: flex; align-items: center; gap: 14px; padding: 17px 4px; border-bottom: 1px solid var(--line); }
.loc__i svg { color: var(--gold); flex: none; }
.loc__i b { font-size: 14px; font-weight: 700; }
.loc__i small { display: block; font-size: 12.5px; color: var(--tx-3); }
.loc__t { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--gold-lt); padding: 5px 12px; border-radius: 999px; background: rgba(201,162,74,.12); white-space: nowrap; }

.sales { position: relative; overflow: hidden; background: linear-gradient(120deg, #0A0E13, #12191F 55%, #0B0F14); }
.sales::before { content: ''; position: absolute; right: -8%; top: -20%; width: 60vw; height: 140%; background: radial-gradient(ellipse at center, rgba(201,162,74,.15), transparent 62%); pointer-events: none; }
.sales__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,80px); align-items: start; position: relative; }
.sales__grid > * { min-width: 0; }
@media (max-width: 950px) { .sales__grid { grid-template-columns: 1fr; } }
.contacts { display: flex; flex-direction: column; margin-top: 30px; }
.contacts a, .contacts div { display: flex; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); transition: color .25s; }
.contacts a:hover { color: var(--gold-lt); }
.contacts svg { flex: none; color: var(--gold); }
.contacts b { font-size: 16px; font-weight: 700; }
.contacts small { display: block; font-size: 12px; color: var(--tx-3); letter-spacing: .04em; margin-top: 2px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 21px 18px 9px; background: rgba(255,255,255,.03); border: 0;
  box-shadow: inset 0 0 0 1px var(--line-2); border-radius: var(--r); color: var(--tx);
  font-size: 16px; transition: box-shadow .3s, background-color .3s;
}
.field textarea { min-height: 106px; resize: vertical; padding-top: 26px; }
.field label { position: absolute; left: 18px; top: 18px; font-size: 15px; color: var(--tx-3); pointer-events: none; transition: all .22s var(--ease); }
.field input:focus, .field textarea:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--gold); background: rgba(255,255,255,.05); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 7px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
}
.field.has-err input, .field.has-err textarea { box-shadow: inset 0 0 0 1px #C05A54; }
.field__err { font-size: 12px; color: #E08D87; margin-top: 5px; display: none; }
.field.has-err .field__err { display: block; }
.form__agree { display: flex; gap: 11px; align-items: flex-start; font-size: 12.5px; color: var(--tx-3); line-height: 1.5; }
.form__agree input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--gold); }
.form__agree a { text-decoration: underline; text-underline-offset: 2px; }
.form__ok, .form__fail { display: none; padding: 18px 20px; border-radius: var(--r); font-size: 14.5px; font-weight: 600; }
.form__ok { background: rgba(111,169,106,.12); color: #9CCB96; box-shadow: inset 0 0 0 1px rgba(111,169,106,.3); }
.form__fail { background: rgba(192,90,84,.12); color: #E08D87; box-shadow: inset 0 0 0 1px rgba(192,90,84,.3); }
.form.is-sent .form__ok { display: block; }
.form.is-sent .field, .form.is-sent .form__agree, .form.is-sent .btn { display: none; }
.form.is-fail .form__fail { display: block; }
.btn.is-busy { pointer-events: none; opacity: .7; }
.btn.is-busy .btn__t::after { content: ''; display: inline-block; width: 13px; height: 13px; margin-left: 9px; border: 2px solid rgba(0,0,0,.25); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.cta-band {
  background: linear-gradient(120deg, #12191F, #1B242E 55%, #101720); border-radius: var(--r-cut) var(--r) var(--r-cut) var(--r);
  padding: clamp(30px,3.6vw,56px); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(20px,3vw,48px); flex-wrap: wrap;
  box-shadow: inset 0 0 0 1px var(--hair-2);
}
.cta-band::before { content: ''; position: absolute; right: -10%; top: -60%; width: 46vw; height: 220%; background: radial-gradient(ellipse at center, rgba(201,162,74,.2), transparent 62%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h3 { max-width: 22ch; text-transform: uppercase; }
.cta-band p { color: var(--tx-2); max-width: 46ch; margin-top: 10px; font-size: 15px; }

.ftr { background: #080B0F; padding-block: clamp(48px,5vw,76px) 26px; border-top: 1px solid var(--line); }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(24px,3vw,48px); }
@media (max-width: 950px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr h5 { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 18px; }
.ftr__nav { display: flex; flex-direction: column; gap: 11px; }
.ftr__nav a { font-size: 14px; color: var(--tx-2); transition: color .25s; }
.ftr__nav a:hover { color: var(--gold-lt); }
.ftr__mark { font-size: 30px; font-weight: 800; letter-spacing: .2em; margin-bottom: 14px; }
.ftr__dev { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 10px 14px; background: #fff; border-radius: 8px; }
.ftr__dev img { width: 104px; }
.ftr__dev span { font-size: 10.5px; color: #5A5348; line-height: 1.35; font-weight: 600; }
.ftr__bot { margin-top: clamp(36px,4vw,56px); padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; font-size: 12.5px; color: var(--tx-3); }
.ftr__bot a:hover { color: var(--gold-lt); }
.ftr__alux { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }

/* модалки, лайтбокс, панели */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: clamp(12px,3vw,40px); background: rgba(5,7,10,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { position: relative; width: 100%; max-width: 620px; max-height: 92svh; overflow-y: auto; background: var(--panel); border-radius: var(--r-lg); padding: clamp(24px,3vw,40px); transform: translateY(16px) scale(.985); transition: transform .45s var(--ease-out); box-shadow: inset 0 0 0 1px var(--hair-2); }
.modal.is-open .modal__box { transform: none; }
.modal__box--video { max-width: min(430px,92vw); padding: 0; background: #000; overflow: hidden; }
.modal__box--video video { width: 100%; display: block; max-height: 88svh; }
.modal__box--wide { max-width: min(1200px,94vw); background: transparent; padding: 0; box-shadow: none; }
.modal__x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--tx); transition: all .25s; }
.modal__x:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }
.lb__img { width: 100%; max-height: 88svh; object-fit: contain; border-radius: var(--r); }
.lb__cap { text-align: center; color: var(--tx-2); font-size: 13px; margin-top: 12px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; transition: background-color .25s; }
.lb__nav:hover { background: rgba(0,0,0,.85); }
.lb__prev { left: -8px; } .lb__next { right: -8px; }
@media (max-width: 700px) { .lb__prev { left: 4px; } .lb__next { right: 4px; } }
body.no-scroll { overflow: hidden; }

.fab { position: fixed; right: clamp(14px,2vw,26px); bottom: clamp(14px,2vw,26px); z-index: 80; width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease-out); opacity: 0; visibility: hidden; transform: scale(.7); }
.fab.is-on { opacity: 1; visibility: visible; transform: none; }
.fab:hover { transform: scale(1.08); }
.prog { position: fixed; top: 0; left: 0; height: 2px; background: var(--gold-grad); z-index: 95; width: 0; transition: width .1s linear; }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(11,15,20,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--hair-2); transform: translateY(110%); transition: transform .4s var(--ease-out); }
.mbar.is-on { transform: none; }
@media (max-width: 780px) { .mbar { display: flex; } .fab { display: none; } }
.mbar .btn { flex: 1; padding: 15px 12px; font-size: 12px; }

@media print { .hdr, .fab, .hero__scroll, .modal, .prog, .burger, .mbar { display: none !important; } body { background: #fff; color: #000; } }

/* ============================================================
   Счётчик разделов справа + двухстрочный заголовок
   ============================================================ */
.sec-count {
  position: absolute; right: clamp(14px, 1.8vw, 34px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 2;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.16); font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.sec-count b { color: var(--tx); font-size: 19px; }
.sec-count i { width: 22px; height: 1px; background: var(--hair); }
@media (max-width: 1400px) { .sec-count { display: none; } }

.dual span { display: block; }
.dual .g { color: var(--gold-lt); }

.ic-chip {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none;
  color: var(--gold); box-shadow: inset 0 0 0 1px var(--hair); background: rgba(201,162,74,.06);
}
.ic-chip--fill { background: var(--gold-grad); color: #14100A; box-shadow: none; }
.ic-go {
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; flex: none;
  background: var(--gold-grad); color: #14100A; transition: transform .3s var(--ease-out), box-shadow .3s;
  box-shadow: 0 12px 30px -14px rgba(201,162,74,.8);
}
.ic-go:hover { transform: scale(1.08); }

/* ============================================================
   03 — ПЛАНИРОВКИ
   ============================================================ */
.plans { position: relative; overflow: hidden; }
.plans::before {
  content: ''; position: absolute; right: -6%; top: -12%; width: 60vw; height: 70vh; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(201,162,74,.10), transparent 62%);
}
.plans__top {
  display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  gap: clamp(24px, 3.4vw, 60px); align-items: center; margin-bottom: clamp(28px, 3.4vw, 50px);
}
@media (max-width: 1040px) { .plans__top { grid-template-columns: 1fr; } }
.plans__hero {
  border-radius: var(--r-cut) var(--r) var(--r) var(--r); overflow: hidden;
  aspect-ratio: 16/9; box-shadow: inset 0 0 0 1px var(--hair-2); position: relative;
  margin-right: calc(var(--pad) * -1);
}
@media (max-width: 1040px) { .plans__hero { margin-right: 0; } }
.plans__hero picture { display: block; width: 100%; height: 100%; }
.plans__hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.plans__hero:hover img { transform: scale(1.04); }

/* панель фильтров */
.fbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(24px,3vw,40px); }
.fbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips--col { flex-direction: column; align-items: stretch; gap: 6px; }
.chips--col .chip { text-align: left; }

.fdrop { position: relative; }
.fdrop > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 12px; padding: 13px 20px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13.5px; font-weight: 700; color: var(--tx-2); transition: all .25s; white-space: nowrap;
}
.fdrop > summary::-webkit-details-marker { display: none; }
.fdrop > summary:hover { box-shadow: inset 0 0 0 1px var(--hair); color: var(--tx); }
.fdrop[open] > summary { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-lt); }
.fdrop[open] > summary svg { transform: rotate(180deg); }
.fdrop > summary svg { transition: transform .3s; }
.fdrop__box {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 244px;
  padding: 20px; border-radius: var(--r-lg); background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 24px 50px -26px #000;
}
@media (max-width: 520px) { .fdrop__box { left: auto; right: 0; } }
.range__out { color: var(--gold-lt); }
.f-reset { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-lt); }
.plans__count { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--tx-2); }
.plans__count b { color: var(--tx); }

/* карточки */
.plans__wrap { position: relative; }
.plans__arw { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: var(--panel-2); }
.plans__arw--l { left: calc(var(--pad) * -1 + 6px); }
.plans__arw--r { right: calc(var(--pad) * -1 + 6px); }
@media (max-width: 1500px) { .plans__arw { display: none; } }

.plans__grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr);
  /* сбрасываем шаблон из широкой раскладки: иначе первая карточка остаётся
     в явном треке 262px, а вторая уезжает в неявный — и они разной ширины */
  grid-template-columns: none;
  gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 8px;
}
.plans__grid::-webkit-scrollbar { display: none; }
.plans__grid > * { scroll-snap-align: start; }
@media (min-width: 1200px) { .plans__grid { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: visible; } }

.apt {
  display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1fr); align-items: center; gap: 14px;
  padding: 22px; background: var(--panel); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--hair-2); position: relative;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease-out);
}
.apt:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 30px 60px -40px #000; transform: translateY(-4px); }
.apt__plan { border-radius: var(--r); overflow: hidden; background: #F4F1EA; aspect-ratio: 3/4; display: grid; place-items: center; padding: 10px; cursor: zoom-in; }
.apt__plan img { width: 100%; height: 100%; object-fit: contain; }
.apt__plan .stub { background: none; border-color: rgba(23,20,15,.16); color: #6E6355; min-height: 0; padding: 12px; }
.apt__plan .stub b { color: #2A241C; font-size: 12px; }
.apt__body { display: flex; flex-direction: column; gap: 4px; }
.apt__rooms { font-size: 14.5px; font-weight: 700; color: var(--tx); }
.apt__area { font-size: clamp(26px, 2.2vw, 34px); font-weight: 800; color: var(--gold-lt); line-height: 1.05; }
.apt__area sup { font-size: .5em; top: -.6em; }
.apt__floor { font-size: 13.5px; color: var(--tx-3); }
.apt__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.apt__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.apt__badge i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.st-free { color: var(--tx-2); } .st-free i { background: #4CAF6A; }
.st-res  { color: var(--tx-2); } .st-res  i { background: #E08A2B; }
.st-sold { color: var(--tx-3); } .st-sold i { background: var(--gone); }
.apt__go {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; flex: none;
  color: var(--gold-lt); box-shadow: inset 0 0 0 1px var(--hair); transition: all .3s var(--ease-out);
}
.apt__go:hover { background: var(--gold-grad); color: #14100A; box-shadow: none; transform: scale(1.08); }
.apt__fav { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; color: var(--tx-3); transition: all .25s; z-index: 2; }
.apt__fav:hover { color: var(--gold-lt); transform: scale(1.12); }
.apt__fav[aria-pressed="true"] { color: #D4635C; }
.apt__fav[aria-pressed="true"] svg { fill: currentColor; }
.apt.is-sold { opacity: .5; } .apt.is-sold:hover { transform: none; }
.plans__empty { grid-column: 1/-1; padding: 48px 20px; text-align: center; }
.plans__empty b { display: block; font-size: 19px; margin-bottom: 8px; }

/* нижняя инфо-панель */
.infobar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px,2.4vw,40px);
  margin-top: clamp(26px,3vw,44px); padding: clamp(24px,2.6vw,38px);
  background: var(--panel); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--hair-2);
}
@media (max-width: 900px) { .infobar { grid-template-columns: 1fr; } }
.infobar__i { display: flex; align-items: center; gap: 18px; padding-right: clamp(16px,2vw,32px); border-right: 1px solid var(--line); }
.infobar__i:last-child { border-right: 0; padding-right: 0; }
@media (max-width: 900px) { .infobar__i { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; } .infobar__i:last-child { border-bottom: 0; padding-bottom: 0; } }
.infobar__i b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.infobar__i span { display: block; font-size: 13px; color: var(--tx-3); line-height: 1.5; }
.infobar__big { font-size: clamp(46px,4.4vw,64px); font-weight: 800; line-height: .9; color: var(--gold-lt); flex: none; }

.infobar--wide { grid-template-columns: minmax(0,1fr) minmax(0,1.5fr) 240px; align-items: center; }
@media (max-width: 1200px) { .infobar--wide { grid-template-columns: 1fr; } }
.infobar__i--lead b { font-size: clamp(17px,1.5vw,22px); line-height: 1.3; margin: 0; }
.infobar__mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-inline: clamp(16px,2vw,32px); border-right: 1px solid var(--line); }
@media (max-width: 1200px) { .infobar__mini { border-right: 0; padding-inline: 0; } }
@media (max-width: 620px)  { .infobar__mini { grid-template-columns: repeat(2, 1fr); } }
.infobar__mini > div { display: flex; flex-direction: column; gap: 12px; }
.infobar__mini svg { color: var(--gold); }
.infobar__mini span { font-size: 12.5px; color: var(--tx-2); line-height: 1.45; }
.infobar__ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 16/10; }
.infobar__ph picture { display: block; width: 100%; height: 100%; }
.infobar__ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1200px) { .infobar__ph { display: none; } }

/* ============================================================
   04 — ОТДЕЛКА
   ============================================================ */
.finish { position: relative; overflow: hidden; }
.finish::before {
  content: ''; position: absolute; right: 8%; top: -8%; width: 46vw; height: 46vw; pointer-events: none;
  border: 1px solid transparent; border-radius: 50%;
  border-left-color: rgba(201,162,74,.26); border-top-color: rgba(201,162,74,.16); transform: rotate(-14deg);
}
.finish__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(28px,3.4vw,48px); }
.finish__note { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--tx-2); max-width: 38ch; padding-top: 8px; }
.finish__note svg { color: var(--gold); flex: none; margin-top: 2px; }

.finish__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 900px) { .finish__cards { grid-template-columns: 1fr; } }
.fcard {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px;
  display: flex; align-items: stretch; box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: box-shadow .4s, transform .4s var(--ease-out);
}
.fcard:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 40px 80px -50px #000; transform: translateY(-4px); }
.fcard__ph { position: absolute; inset: 0; z-index: 0; }
.fcard__ph picture { display: block; width: 100%; height: 100%; }
.fcard__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.fcard:hover .fcard__ph img { transform: scale(1.05); }
.fcard::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(96deg, rgba(9,12,17,.95) 0%, rgba(9,12,17,.86) 34%, rgba(9,12,17,.42) 62%, rgba(9,12,17,.28) 100%);
}
.fcard__in { position: relative; z-index: 2; padding: clamp(26px,2.6vw,40px); display: flex; flex-direction: column; gap: 18px; max-width: 380px; justify-content: center; }
.fcard__t { margin-top: 4px; position: relative; padding-bottom: 18px; }
.fcard__t::after { content: ''; position: absolute; left: 0; bottom: 0; width: 62px; height: 1px; background: var(--gold); }
.ticks { display: flex; flex-direction: column; gap: 13px; }
.ticks li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.45; color: var(--tx-2); }
.ticks svg { flex: none; color: var(--gold); margin-top: 1px; }

/* ============================================================
   Три карточки-перехода
   ============================================================ */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 1000px) { .tri { grid-template-columns: 1fr; } }
.tri__c {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.72fr); gap: 18px; align-items: center;
  padding: clamp(22px,2.2vw,30px); background: var(--panel); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--hair-2); transition: all .4s var(--ease-out);
}
.tri__c:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 30px 60px -42px #000; transform: translateY(-4px); }
.tri__tx { display: flex; flex-direction: column; gap: 12px; }
.tri__t { font-size: clamp(16px,1.4vw,20px); font-weight: 800; text-transform: uppercase; line-height: 1.25; }
.tri__ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 3/4; align-self: stretch; }
.tri__ph picture { display: block; width: 100%; height: 100%; }
.tri__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.tri__c:hover .tri__ph img { transform: scale(1.06); }

/* ============================================================
   Ход строительства
   ============================================================ */
.prog__grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(24px,3vw,56px); align-items: start; }
@media (max-width: 900px) { .prog__grid { grid-template-columns: 1fr; } }
.prog__ph { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 520px) { .prog__ph { grid-template-columns: 1fr; } }

/* ============================================================
   Остались вопросы
   ============================================================ */
.ask {
  display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.15fr) minmax(0,.9fr);
  gap: clamp(24px,3vw,52px); align-items: center;
  padding: clamp(28px,3.2vw,50px); background: var(--panel); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}
@media (max-width: 1100px) { .ask { grid-template-columns: 1fr; } }
.ask__form { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.ask__form .field { grid-column: 1; }
.ask__go {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  width: 62px; height: 62px; border-radius: 999px; display: grid; place-items: center;
  background: var(--gold-grad); color: #14100A; box-shadow: 0 14px 34px -16px rgba(201,162,74,.8);
  transition: transform .3s var(--ease-out);
}
.ask__go:hover { transform: scale(1.08); }
.ask__form .form__ok, .ask__form .form__fail { grid-column: 1 / -1; }
.ask__form.is-sent .field, .ask__form.is-sent .ask__go { display: none; }
.ask__contacts { display: flex; flex-direction: column; gap: 4px; padding-left: clamp(0px,2vw,34px); border-left: 1px solid var(--line); }
@media (max-width: 1100px) { .ask__contacts { border-left: 0; padding-left: 0; } }
.ask__contacts a, .ask__contacts div { display: flex; align-items: center; gap: 14px; padding: 11px 0; font-size: 15px; transition: color .25s; }
.ask__contacts a:hover { color: var(--gold-lt); }
.ask__contacts svg { color: var(--gold); flex: none; }

/* ============================================================
   Подвал
   ============================================================ */
.ftr { background: var(--bg); padding-block: clamp(24px,3vw,48px) 26px; }
.ftr__box {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr) 420px;
  background: var(--panel); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hair-2);
}
@media (max-width: 1100px) { .ftr__box { grid-template-columns: 1fr; } }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: clamp(20px,2.2vw,36px); padding: clamp(28px,3vw,46px); }
@media (max-width: 1240px) { .ftr__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px)  { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px)  { .ftr__grid { grid-template-columns: 1fr; } }
.ftr__brand { display: flex; align-items: center; gap: 14px; }
.ftr__brand img { height: 46px; width: auto; }
.ftr__brand b { display: block; font-size: 24px; font-weight: 800; letter-spacing: .2em; }
.ftr__brand small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-3); margin-top: 4px; }
.ftr__soc { display: flex; gap: 10px; margin-top: 20px; }
.ftr__soc a { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: var(--gold-lt); box-shadow: inset 0 0 0 1px var(--hair); transition: all .25s; }
.ftr__soc a:hover { background: rgba(201,162,74,.12); }
.ftr h5 { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.ftr__nav { display: flex; flex-direction: column; gap: 11px; }
.ftr__nav a { font-size: 14px; color: var(--tx-2); transition: color .25s; }
.ftr__nav a:hover { color: var(--gold-lt); }
.ftr__ph { position: relative; min-height: 260px; }
.ftr__ph picture { position: absolute; inset: 0; display: block; }
.ftr__ph img { width: 100%; height: 100%; object-fit: cover; }
.ftr__ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--panel) 0%, rgba(19,26,35,.35) 42%, transparent 100%); }
@media (max-width: 1100px) { .ftr__ph::after { background: linear-gradient(0deg, transparent 40%, var(--panel) 100%); } }
.ftr__bot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; font-size: 12.5px; color: var(--tx-3); padding-inline: 4px; }
.ftr__bot a:hover { color: var(--gold-lt); }
.ftr__alux { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }

/* ============================================================
   Единая киношная градация фотографий под тёмную гамму
   ============================================================ */
.ph img, .about__ph img, .plans__hero img, .fcard__ph img,
.tri__ph img, .infobar__ph img, .ftr__ph img, .arch__stage img, .compare img {
  filter: saturate(.88) contrast(1.06) brightness(.9);
}
.ph, .about__ph, .plans__hero, .tri__ph, .infobar__ph { position: relative; }
.ph::after, .about__ph::after, .plans__hero::after, .tri__ph::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(11,15,20,.26) 0%, rgba(11,15,20,.04) 40%, rgba(120,80,30,.10) 100%);
  mix-blend-mode: multiply;
}
.ph__cap { z-index: 2; }
.apt__plan::after { display: none; }
.apt__plan img { filter: none; }

.infobar__i span.infobar__big {
  font-size: clamp(46px, 4.4vw, 64px); font-weight: 800; line-height: .9; color: var(--gold-lt);
}

.fcard__t { white-space: normal; font-size: clamp(26px, 2.6vw, 42px); }
@media (max-width: 420px) { .fcard__t { white-space: normal; } }

.hero__shade {
  background:
    linear-gradient(100deg, rgba(7,10,14,.97) 0%, rgba(7,10,14,.92) 30%, rgba(7,10,14,.58) 54%, rgba(7,10,14,.3) 76%, rgba(7,10,14,.66) 100%),
    linear-gradient(to bottom, rgba(7,10,14,.82) 0%, transparent 22%, transparent 58%, rgba(7,10,14,.88) 100%);
}

/* мелкая правка: «м²» не должно уезжать на новую строку */
.apt__area { white-space: nowrap; }
.apt__body { min-width: 0; }

/* карточки-заглушки в ряду планировок */
.apt--soon { opacity: .42; pointer-events: none; }
.apt--soon .apt__area { color: var(--tx-3); }
.st-soon { color: var(--tx-3); } .st-soon i { background: var(--tx-3); }

/* ============================================================
   «Лист» — фирменная форма фотопанели блока «О комплексе»
   ============================================================ */
.about__ph {
  border-radius: 140px 24px 24px 140px;
  box-shadow: inset 0 0 0 1px rgba(201,162,74,.42), 0 44px 90px -56px #000;
}
@media (max-width: 1040px) { .about__ph { border-radius: 70px 20px 20px 70px; } }
@media (max-width: 560px)  { .about__ph { border-radius: 40px 16px 16px 40px; } }
.about__quote {
  border-radius: 96px 20px 20px 20px;
  box-shadow: inset 0 0 0 1px rgba(201,162,74,.42), 0 34px 74px -50px #000;
}
@media (max-width: 700px) { .about__quote { border-radius: 48px 16px 16px 16px; } }
.about__quote-ph { border-radius: 0 20px 20px 0; overflow: hidden; }

/* карточки отделки — крупный срез сверху, как в макете */
.fcard { border-radius: 34px; }
.plans__hero { border-radius: 120px 20px 20px 20px; box-shadow: inset 0 0 0 1px rgba(201,162,74,.38); }
@media (max-width: 1040px) { .plans__hero { border-radius: 60px 18px 18px 18px; } }
.tri__c, .infobar, .ask, .cta-band, .ftr__box { border-radius: 26px; }
.tri__ph { border-radius: 18px; }

/* ============================================================
   МОБИЛЬНАЯ ВЕРСТКА — сквозной проход
   ============================================================ */
@media (max-width: 780px) {
  :root { --gap: 14px; --r-lg: 18px; }

  /* первый экран */
  .hero { min-height: 100svh; }
  .hero__in { padding-block: 18px 96px; }
  .h-display { font-size: clamp(52px, 17vw, 84px); letter-spacing: .05em; }
  .hero__kicker { font-size: 10.5px; letter-spacing: .18em; }
  .hero__rule { width: 84px; margin: 16px 0 14px; }
  .hero__sub { font-size: clamp(21px, 6.4vw, 30px); max-width: 100%; }
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 0; margin: 26px 0 24px; }
  .hero__st { padding: 0 0 0 14px; margin: 0; border-left: 1px solid var(--hair-2); }
  .hero__st:first-child { padding-left: 14px; }
  .hero__st b { font-size: 19px; }
  .hero__st span { font-size: 11.5px; }
  .hero__actions { display: grid; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .hero__place, .hero__count, .hero__scroll { display: none; }

  /* секции */
  .section { padding-block: 56px; }
  .section--tight { padding-block: 40px; }
  .h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .h2 { font-size: clamp(24px, 7.4vw, 34px); }
  .kicker { font-size: 10.5px; letter-spacing: .18em; margin-bottom: 14px; }
  .kicker::after { width: 28px; }

  /* о комплексе */
  .about__grid { gap: 26px; }
  .about__lead { padding-left: 14px; }
  .about__feats { grid-template-columns: 1fr 1fr; gap: 22px 14px; margin-top: 26px; }
  .about__f { padding-right: 12px; }
  .about__f svg { margin-bottom: 10px; width: 22px; height: 22px; }
  .about__f b { font-size: 11.5px; }
  .about__f span { font-size: 12px; }
  .about__cta .btn { width: 100%; }
  .about__ph { aspect-ratio: 4/3; }
  .about__quote { grid-template-columns: 1fr; margin: 14px 0 0; }
  .about__quote-ph { min-height: 130px; border-radius: 0 0 16px 16px; }

  /* планировки */
  .plans__top { gap: 20px; }
  .plans__hero { aspect-ratio: 16/10; }
  .fbar__row { gap: 8px; }
  .fdrop { position: static; }
  .fdrop__box { left: var(--pad); right: var(--pad); min-width: 0; width: auto; }
  .fdrop > summary { padding: 11px 16px; font-size: 12.5px; }
  .f-reset { font-size: 11.5px; }
  .plans__count { margin-left: 0; width: 100%; }
  .chip { padding: 9px 14px; font-size: 12.5px; }
  .plans__grid { grid-auto-columns: 78vw; }
  .apt { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .apt__plan { aspect-ratio: 4/3; }
  .apt__area { font-size: 30px; }
  .apt__fav { top: 12px; right: 12px; }
  .infobar { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .infobar__i { gap: 14px; }
  .infobar__big { font-size: 44px; }

  /* отделка */
  .finish__top { gap: 18px; }
  .finish__note { font-size: 13.5px; padding-top: 0; }
  .finish__cards { gap: 14px; }
  .fcard { min-height: 0; }
  .fcard::after { background: linear-gradient(180deg, rgba(9,12,17,.62) 0%, rgba(9,12,17,.9) 46%, rgba(9,12,17,.97) 100%); }
  .fcard__in { max-width: 100%; padding: 22px; padding-top: 190px; }
  .fcard__t { font-size: 30px; }
  .ticks li { font-size: 13.5px; }
  .fcard .btn { width: 100%; }
  .infobar--wide { grid-template-columns: 1fr; }
  .infobar__mini { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* архитектура */
  .arch__stage { aspect-ratio: 4/3; }
  .arch__toggle button { padding: 9px 16px; font-size: 11px; }
  .arch__note { gap: 22px; }

  /* двор, МОП */
  .yard__hero { aspect-ratio: 4/3; }
  .infra__i { min-height: 0; padding: 18px 14px; }
  .infra__i b { font-size: 11.5px; }
  .rail { grid-auto-columns: 78vw; }
  .common__card { aspect-ratio: 4/5; }

  /* кофейня */
  .coffee__name { font-size: clamp(38px, 12vw, 56px); }
  .coffee__ph { aspect-ratio: 4/3; }

  /* три карточки */
  .tri__c { grid-template-columns: 1fr 118px; padding: 18px; gap: 14px; }
  .tri__t { font-size: 15px; }
  .tri__ph { aspect-ratio: 3/4; }

  /* ход строительства, как купить */
  .prog__grid { gap: 26px; }
  .prog__ph { grid-template-columns: 1fr 1fr; gap: 12px; }
  .buy__c { padding: 22px; }

  /* расположение */
  .loc__map { min-height: 320px; }

  /* остались вопросы */
  .ask { padding: 22px; gap: 22px; }
  .ask__form { grid-template-columns: 1fr; }
  .ask__go { grid-column: 1; grid-row: auto; width: 100%; height: 56px; border-radius: var(--r); }
  .ask__contacts { padding-left: 0; }

  /* подвал */
  .ftr__grid { padding: 24px; gap: 22px; }
  .ftr__ph { min-height: 180px; }
  .ftr__bot { font-size: 11.5px; gap: 8px 16px; }
  .ftr__alux { margin-left: 0; width: 100%; }

  /* нижняя панель не должна перекрывать контент */
  body { padding-bottom: 78px; }
  .mbar .btn { font-size: 11.5px; padding: 14px 10px; }
}

@media (max-width: 420px) {
  .about__feats { grid-template-columns: 1fr; }
  .infobar__mini { grid-template-columns: 1fr; }
  .prog__ph { grid-template-columns: 1fr; }
  .tri__c { grid-template-columns: 1fr; }
  .tri__ph { aspect-ratio: 16/10; }
}

/* заглушки в ряду планировок — видимые, но явно неактивные */
.apt--soon {
  opacity: 1; pointer-events: none;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  border: 1px dashed rgba(255,255,255,.10);
}
.apt--soon .apt__plan { background: rgba(255,255,255,.03); }
.apt--soon .apt__plan .stub { background: none; border: 0; color: var(--tx-3); }
.apt--soon .apt__plan .stub b { color: var(--tx-3); }
.apt--soon .apt__rooms, .apt--soon .apt__floor { color: var(--tx-3); }
.apt--soon .apt__area { color: rgba(255,255,255,.14); }

/* фотопанель планировок не должна наезжать на фильтры */
.plans__top { align-items: stretch; }
.plans__hero { align-self: center; max-height: 560px; }
.plans__top > .rv:first-child { display: flex; flex-direction: column; justify-content: center; }

/* ============================================================
   СПЛЭШ-ЭКРАН
   ============================================================ */
body.is-loading { overflow: hidden; }

.splash {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: radial-gradient(80vw 80vh at 50% 42%, #131A24 0%, #0B0F14 62%, #070A0E 100%);
  overflow: hidden;
}
.splash.is-done { pointer-events: none; }
.splash.is-out { transition: opacity .5s .55s var(--ease); opacity: 0; visibility: hidden; }

.splash__arc { position: absolute; inset: 0; pointer-events: none; }
.splash__arc i {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px solid transparent; border-top-color: rgba(201,162,74,.34);
  transform: translate(-50%,-50%) rotate(0deg);
  animation: splashSpin 9s linear infinite;
}
.splash__arc i:nth-child(1) { width: min(78vw, 640px); height: min(78vw, 640px); }
.splash__arc i:nth-child(2) { width: min(56vw, 470px); height: min(56vw, 470px); border-top-color: transparent; border-right-color: rgba(201,162,74,.24); animation-duration: 6.5s; animation-direction: reverse; }
@keyframes splashSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.splash__in { position: relative; display: grid; justify-items: center; gap: 18px; text-align: center; padding-inline: 24px; }

.splash__mark {
  height: clamp(46px, 9vw, 64px); width: auto;
  opacity: 0; transform: translateY(14px) scale(.9);
  animation: splashMark .9s .1s var(--ease-out) forwards;
}
@keyframes splashMark { to { opacity: 1; transform: none; } }

.splash__word {
  display: flex; gap: clamp(6px, 1.6vw, 16px);
  font-size: clamp(44px, 13vw, 104px); font-weight: 800; letter-spacing: .06em; line-height: 1;
  color: var(--tx);
}
.splash__word span {
  display: inline-block; opacity: 0;
  transform: translateY(46%) rotateX(-70deg);
  animation: splashChar .85s cubic-bezier(.2,.9,.25,1) forwards;
  transform-origin: 50% 100%;
}
.splash__word span:nth-child(1) { animation-delay: .30s; }
.splash__word span:nth-child(2) { animation-delay: .40s; }
.splash__word span:nth-child(3) { animation-delay: .50s; }
.splash__word span:nth-child(4) { animation-delay: .60s; }
.splash__word span:nth-child(5) { animation-delay: .70s; }
@keyframes splashChar { to { opacity: 1; transform: none; } }

/* золотой блик пробегает по слову */
.splash__word::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(229,200,137,.85) 50%, transparent 62%);
  mix-blend-mode: overlay; transform: translateX(-120%);
  animation: splashShine 1.3s 1.05s var(--ease) forwards;
}
.splash__word { position: relative; }
@keyframes splashShine { to { transform: translateX(120%); } }

.splash__sub {
  font-size: clamp(10px, 2.6vw, 12px); font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--tx-3); opacity: 0; animation: splashMark .8s .95s var(--ease-out) forwards;
}
.splash__bar {
  width: min(52vw, 260px); height: 1px; background: rgba(255,255,255,.12); overflow: hidden;
  opacity: 0; animation: splashMark .6s 1.05s var(--ease-out) forwards; margin-top: 8px;
}
.splash__bar i { display: block; height: 100%; width: 0; background: var(--gold-grad); animation: splashBar 1.5s .55s var(--ease-out) forwards; }
@keyframes splashBar { to { width: 100%; } }

/* штора уходит вверх, открывая герой */
.splash__curtain {
  position: absolute; inset: 0; background: #070A0E; transform: translateY(100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.splash.is-out .splash__curtain { animation: curtain .95s var(--ease-out) forwards; }
@keyframes curtain { 0% { transform: translateY(0); } 100% { transform: translateY(-102%); } }
.splash.is-out .splash__in { animation: splashOut .5s var(--ease) forwards; }
@keyframes splashOut { to { opacity: 0; transform: translateY(-18px); } }

@media (prefers-reduced-motion: reduce) {
  .splash, .splash__arc i, .splash__word span, .splash__word::after, .splash__bar i { animation: none !important; }
  .splash { display: none; }
}

/* ============================================================
   ГЕРОЙ — вступительная анимация
   ============================================================ */
.hero__title { perspective: 900px; }
.hero__title .ch {
  display: inline-block;
  opacity: 0; transform: translateY(38%) rotateX(-62deg);
  transform-origin: 50% 100%;
  filter: blur(6px);
}
body.is-ready .hero__title .ch {
  animation: heroChar 1.05s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: calc(.12s + var(--i) * .085s);
}
@keyframes heroChar { to { opacity: 1; transform: none; filter: blur(0); } }

.hero__kicker, .hero__rule, .hero__sub, .hero__stats, .hero__actions,
.hero__place, .hero__count, .hero__scroll {
  opacity: 0; transform: translateY(20px);
}
body.is-ready .hero__kicker { animation: heroUp .9s .05s var(--ease-out) forwards; }
body.is-ready .hero__rule   { animation: heroRule .9s .55s var(--ease-out) forwards; }
body.is-ready .hero__sub    { animation: heroUp .9s .66s var(--ease-out) forwards; }
body.is-ready .hero__stats  { animation: heroUp .9s .82s var(--ease-out) forwards; }
body.is-ready .hero__actions{ animation: heroUp .9s .96s var(--ease-out) forwards; }
body.is-ready .hero__place  { animation: heroUp .9s 1.12s var(--ease-out) forwards; }
body.is-ready .hero__count  { animation: heroUp .9s 1.2s var(--ease-out) forwards; }
body.is-ready .hero__scroll { animation: heroUp .9s 1.3s var(--ease-out) forwards; }
@keyframes heroUp   { to { opacity: 1; transform: none; } }
@keyframes heroRule { from { opacity: 0; width: 0; } to { opacity: 1; width: 118px; transform: none; } }

.hero__st { opacity: 0; transform: translateY(14px); }
body.is-ready .hero__st { animation: heroUp .8s var(--ease-out) forwards; }
body.is-ready .hero__st:nth-child(1) { animation-delay: .88s; }
body.is-ready .hero__st:nth-child(2) { animation-delay: .96s; }
body.is-ready .hero__st:nth-child(3) { animation-delay: 1.04s; }
body.is-ready .hero__st:nth-child(4) { animation-delay: 1.12s; }

/* фон героя: медленный наезд + мягкий подъём */
.hero__media img { opacity: 0; }
body.is-ready .hero__media img { animation: heroBg 2.2s var(--ease-out) forwards, kb 34s 2.2s ease-in-out infinite alternate; }
@keyframes heroBg { from { opacity: 0; transform: scale(1.16); } to { opacity: 1; transform: scale(1.04); } }

/* световой блик по фасаду */
.hero__sweep {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.hero__sweep::before {
  content: ''; position: absolute; top: -20%; bottom: -20%; width: 42%;
  background: linear-gradient(100deg, transparent, rgba(229,200,137,.14) 42%, rgba(255,236,196,.2) 50%, rgba(229,200,137,.12) 58%, transparent);
  transform: translateX(-140%) skewX(-14deg); opacity: 0;
}
body.is-ready .hero__sweep::before { animation: sweep 2.6s 1.1s var(--ease) forwards; }
@keyframes sweep { 0% { transform: translateX(-140%) skewX(-14deg); opacity: 0; } 22% { opacity: 1; } 100% { transform: translateX(340%) skewX(-14deg); opacity: 0; } }

/* золотые дуги прорисовываются */
.hero__arc { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__arc .arc { stroke: rgba(201,162,74,.42); stroke-width: 1.2; stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.hero__arc .a2 { stroke: rgba(201,162,74,.26); }
body.is-ready .hero__arc .a1 { animation: draw 2.4s .5s var(--ease-out) forwards; }
body.is-ready .hero__arc .a2 { animation: draw 2.4s .9s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* лёгкий параллакс героя от указателя / наклона */
.hero__in { transform: translate3d(calc(var(--px,0) * -8px), calc(var(--py,0) * -6px), 0); transition: transform .6s var(--ease-out); }
.hero__media { transform: translate3d(calc(var(--px,0) * 12px), calc(var(--py,0) * 9px), 0) scale(1.04); transition: transform .9s var(--ease-out); }

/* герой растворяется при прокрутке */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__in {
      animation: heroFade linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 70%;
    }
    @keyframes heroFade { to { opacity: 0; transform: translateY(-60px) scale(.97); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title .ch, .hero__kicker, .hero__rule, .hero__sub, .hero__stats,
  .hero__actions, .hero__place, .hero__count, .hero__scroll, .hero__st, .hero__media img {
    opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important;
  }
  .hero__arc .arc { stroke-dashoffset: 0; }
}

/* ============================================================
   АНИМАЦИИ БЛОКОВ
   ============================================================ */
/* заголовки посл словам */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split .w > i {
  display: inline-block; font-style: inherit;
  transform: translateY(110%); opacity: 0;
}
.split.is-in .w > i {
  animation: wordUp .85s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: calc(var(--w) * .055s);
}
@keyframes wordUp { to { transform: none; opacity: 1; } }

/* кикер: линия прочерчивается */
.kicker { opacity: 0; transform: translateY(10px); }
.kicker.is-in { animation: heroUp .7s var(--ease-out) forwards; }
.kicker::after { transform: scaleX(0); transform-origin: left; transition: transform .8s .25s var(--ease-out); }
.kicker.is-in::after { transform: scaleX(1); }

/* фотопанели — раскрываются шторкой */
.rv--clip { clip-path: inset(0 0 100% 0); opacity: 1; transform: none; }
.rv--clip.is-in { animation: clipUp 1.15s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes clipUp { to { clip-path: inset(0 0 0 0); } }
.rv--clip img { transform: scale(1.16); transition: transform 1.6s var(--ease-out); }
.rv--clip.is-in img { transform: scale(1); }

/* карточки — подъём со стаггером */
.stagger > * { opacity: 0; transform: translateY(26px); }
.stagger.is-in > * { animation: heroUp .8s var(--ease-out) forwards; }
.stagger.is-in > *:nth-child(1) { animation-delay: .04s; }
.stagger.is-in > *:nth-child(2) { animation-delay: .12s; }
.stagger.is-in > *:nth-child(3) { animation-delay: .20s; }
.stagger.is-in > *:nth-child(4) { animation-delay: .28s; }
.stagger.is-in > *:nth-child(5) { animation-delay: .36s; }
.stagger.is-in > *:nth-child(6) { animation-delay: .44s; }
.stagger.is-in > *:nth-child(7) { animation-delay: .52s; }

/* галочки списка — по очереди */
.ticks li { opacity: 0; transform: translateX(-12px); }
.is-in .ticks li, .ticks.is-in li { animation: tickIn .6s var(--ease-out) forwards; }
.is-in .ticks li:nth-child(1), .ticks.is-in li:nth-child(1) { animation-delay: .10s; }
.is-in .ticks li:nth-child(2), .ticks.is-in li:nth-child(2) { animation-delay: .18s; }
.is-in .ticks li:nth-child(3), .ticks.is-in li:nth-child(3) { animation-delay: .26s; }
.is-in .ticks li:nth-child(4), .ticks.is-in li:nth-child(4) { animation-delay: .34s; }
.is-in .ticks li:nth-child(5), .ticks.is-in li:nth-child(5) { animation-delay: .42s; }
@keyframes tickIn { to { opacity: 1; transform: none; } }

/* золотая линия под заголовком карточки отделки */
.fcard__t::after { transform: scaleX(0); transform-origin: left; transition: transform .9s .35s var(--ease-out); }
.fcard.is-in .fcard__t::after { transform: scaleX(1); }

/* цитата: кавычки всплывают */
.about__quote-tx svg { opacity: 0; transform: scale(.6); }
.about__art.is-in .about__quote-tx svg { animation: quoteIn .7s .35s var(--ease-out) forwards; }
@keyframes quoteIn { to { opacity: .7; transform: none; } }

/* инфраструктура: иконки подпрыгивают */
.infra__i svg { opacity: 0; transform: translateY(10px) scale(.85); }
.infra.is-in .infra__i svg { animation: icoIn .6s var(--ease-out) forwards; }
.infra.is-in .infra__i:nth-child(1) svg { animation-delay: .05s; }
.infra.is-in .infra__i:nth-child(2) svg { animation-delay: .11s; }
.infra.is-in .infra__i:nth-child(3) svg { animation-delay: .17s; }
.infra.is-in .infra__i:nth-child(4) svg { animation-delay: .23s; }
.infra.is-in .infra__i:nth-child(5) svg { animation-delay: .29s; }
.infra.is-in .infra__i:nth-child(6) svg { animation-delay: .35s; }
.infra.is-in .infra__i:nth-child(7) svg { animation-delay: .41s; }
@keyframes icoIn { to { opacity: 1; transform: none; } }

/* хронология: точки загораются по очереди */
.tl__i { opacity: 0; transform: translateX(-14px); }
.tl.is-in .tl__i { animation: tickIn .7s var(--ease-out) forwards; }
.tl.is-in .tl__i:nth-child(1) { animation-delay: .08s; }
.tl.is-in .tl__i:nth-child(2) { animation-delay: .22s; }
.tl.is-in .tl__i:nth-child(3) { animation-delay: .36s; }
.tl::before { transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ease-out); }
.tl.is-in::before { transform: scaleY(1); }

/* счётчик разделов — активный «дышит» */
.sec-count b { position: relative; }
.sec-count b::after {
  content: ''; position: absolute; inset: -8px -10px; border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--hair-2); opacity: 0;
}
.section.is-active .sec-count b::after { animation: pulseBox 2.6s var(--ease) infinite; }
@keyframes pulseBox { 0%,100% { opacity: .25; } 50% { opacity: .8; } }

/* кнопки — золотой блик при наведении */
.btn--gold::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%);
  transform: translateX(-120%);
}
.btn--gold:hover::after { animation: btnShine .8s var(--ease) forwards; }
@keyframes btnShine { to { transform: translateX(120%); } }

/* магнит на золотой круглой кнопке */
.ic-go, .ask__go, .apt__go { transition: transform .28s var(--ease-out), background-color .3s, color .3s, box-shadow .3s; }

@media (prefers-reduced-motion: reduce) {
  .split .w > i, .stagger > *, .ticks li, .infra__i svg, .tl__i, .kicker,
  .about__quote-tx svg { opacity: 1 !important; transform: none !important; animation: none !important; }
  .rv--clip { clip-path: none !important; }
  .rv--clip img { transform: none !important; }
  .tl::before, .kicker::after, .fcard__t::after { transform: none !important; }
}

/* ============================================================
   МОБИЛЬНАЯ ОТДЕЛКА: жесты, отклик, шторки
   ============================================================ */
@media (hover: none) {
  /* тактильный отклик вместо hover */
  .btn:active { transform: scale(.97); }
  .chip:active, .fdrop > summary:active { transform: scale(.96); }
  .apt:active, .tri__c:active, .buy__c:active { transform: scale(.985); }
  .ic-go:active, .ask__go:active, .apt__go:active, .rail-btn:active { transform: scale(.92); }
  .ph--zoom:hover img { transform: none; }
}

@media (max-width: 780px) {
  /* модалки — шторкой снизу, как в приложениях */
  .modal { place-items: end stretch; padding: 0; }
  .modal__box {
    max-width: 100%; max-height: 92svh; border-radius: 26px 26px 0 0;
    padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform .48s var(--ease-out);
  }
  .modal.is-open .modal__box { transform: none; }
  .modal__box::before {
    content: ''; display: block; width: 44px; height: 4px; border-radius: 999px;
    background: rgba(255,255,255,.22); margin: -8px auto 18px;
  }
  .modal__box--video, .modal__box--wide { border-radius: 22px; margin: auto; max-height: 88svh; }
  .modal__box--video::before, .modal__box--wide::before { display: none; }
  .modal__box--video { max-width: calc(100% - 24px); }

  /* подсказка «листайте» у горизонтальных лент */
  .rail { scroll-padding-inline: var(--pad); }
  .swipe-hint {
    display: flex; align-items: center; gap: 8px; margin-top: 12px;
    font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3);
  }
  .swipe-hint i {
    width: 26px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent);
    animation: swipeHint 1.9s var(--ease) infinite;
  }
  @keyframes swipeHint { 0%,100% { transform: translateX(0); opacity: .5; } 50% { transform: translateX(8px); opacity: 1; } }

  /* крупнее зоны нажатия */
  .nav a, .ftr__nav a { padding-block: 10px; }
  .apt__fav { width: 40px; height: 40px; }
  .rail-btn { width: 44px; height: 44px; }

  /* мягче анимации — экономим кадры на слабых телефонах */
  .rv--clip.is-in img { transition-duration: 1.1s; }
  .split.is-in .w > i { animation-duration: .7s; }
}
@media (min-width: 781px) { .swipe-hint { display: none; } }

/* сплэш: подсветка под знаком */
.splash__mark { position: relative; }
.splash__in::before {
  content: ''; position: absolute; left: 50%; top: 4%; width: min(60vw, 320px); height: min(60vw, 320px);
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(201,162,74,.16), transparent 62%);
}

/* ============================================================
   ИСПРАВЛЕНИЕ: шторка вместо clip-path.
   Элемент, обрезанный в ноль, невидим для IntersectionObserver —
   его прямоугольник пуст, и «появление» никогда не срабатывает.
   ============================================================ */
.rv--clip { clip-path: none !important; position: relative; overflow: hidden; }
.rv--clip::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: var(--bg);
  transform: translateY(0);
}
.rv--clip.is-in::before { animation: curtainUp 1.05s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes curtainUp { to { transform: translateY(-101%); } }
.rv--clip img { transform: scale(1.14); transition: transform 1.7s var(--ease-out); }
.rv--clip.is-in img { transform: scale(1); }
/* внутри тёмных панелей шторка должна совпадать с фоном панели */
.about__quote.rv--clip::before, .tri__ph.rv--clip::before, .loc__map.rv--clip::before { background: var(--panel); }
@media (prefers-reduced-motion: reduce) {
  .rv--clip::before { display: none; }
  .rv--clip img { transform: none !important; }
}

/* сплэш: строка застройщика под названием комплекса */
.splash__dev {
  font-size: clamp(10.5px, 2.4vw, 12.5px); color: var(--tx-2); letter-spacing: .04em;
  opacity: 0; animation: splashMark .8s 1.1s var(--ease-out) forwards; margin-top: -6px;
}
/* шапка: бренд ЖК крупно, застройщик подписью */
.brand__tx b { letter-spacing: .2em; }
.brand__tx span { letter-spacing: .1em; text-transform: none; }

/* подпись застройщика видна и на телефоне — это снимает путаницу «ЖК против холдинга» */
@media (max-width: 760px) {
  .brand__tx span { display: block; font-size: 8.5px; letter-spacing: .08em; }
  .brand img { height: 30px; }
  .brand__tx b { font-size: 15px; letter-spacing: .18em; }
}

/* ============================================================
   ИСПРАВЛЕНИЕ МАСШТАБА ГЕРОЯ
   Зум складывался трижды: подложка scale(1.04) + въезд героя
   + «дыхание» до 1.14. На десктопе здание уезжало за кадр.
   ============================================================ */
.hero__media { transform: translate3d(calc(var(--px,0) * 10px), calc(var(--py,0) * 7px), 0); }
.hero__media img { object-position: 62% 58%; }
body.is-ready .hero__media img { animation: heroBg 1.9s var(--ease-out) forwards, kb 40s 1.9s ease-in-out infinite alternate; }
@keyframes heroBg { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: scale(1); } }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (max-width: 780px) { .hero__media img { object-position: 58% 55%; } }

/* ============================================================
   ПРЕМИАЛЬНАЯ МОБИЛЬНАЯ ВЕРСИЯ — доводка до «как приложение»
   ============================================================ */
@media (max-width: 780px) {
  :root { --pad: 18px; --r-lg: 20px; --r-cut: 30px; }

  /* шапка: сжимается при прокрутке, как в нативных приложениях */
  .hdr { height: 68px; transition: height .35s var(--ease), background-color .4s var(--ease), box-shadow .4s; }
  .hdr.is-stuck { height: 56px; }
  .brand img { transition: height .35s var(--ease); }
  .hdr.is-stuck .brand img { height: 26px; }
  .hdr.is-stuck .brand__tx span { opacity: 0; height: 0; overflow: hidden; transition: opacity .25s; }
  .hdr__phone { padding: 11px; border-radius: 12px; }
  .burger { width: 44px; height: 44px; }

  /* меню — как модальный лист приложения, пункты въезжают по очереди */
  .menu { padding-top: 92px; background: linear-gradient(180deg, #0C1118 0%, #0B0F14 100%); }
  .menu a { opacity: 0; transform: translateX(-18px); }
  body.menu-open .menu a { animation: menuIn .5s var(--ease-out) forwards; }
  body.menu-open .menu a:nth-child(1) { animation-delay: .06s; }
  body.menu-open .menu a:nth-child(2) { animation-delay: .11s; }
  body.menu-open .menu a:nth-child(3) { animation-delay: .16s; }
  body.menu-open .menu a:nth-child(4) { animation-delay: .21s; }
  body.menu-open .menu a:nth-child(5) { animation-delay: .26s; }
  body.menu-open .menu a:nth-child(6) { animation-delay: .31s; }
  body.menu-open .menu a:nth-child(7) { animation-delay: .36s; }
  @keyframes menuIn { to { opacity: 1; transform: none; } }
  .menu__foot { opacity: 0; animation: menuIn .5s .44s var(--ease-out) forwards; }

  /* полоса прочтения заметнее */
  .prog { height: 3px; }

  /* первый экран: воздух под вырез и под нижнюю панель */
  .hero { min-height: 100svh; }
  .hero__body { padding-top: calc(68px + env(safe-area-inset-top)); }
  .hero__in { padding-bottom: 110px; }
  .h-display { font-size: clamp(56px, 18vw, 92px); }
  .hero__sub { font-size: clamp(22px, 6.8vw, 32px); line-height: 1.18; }
  .hero__stats { gap: 18px 0; }
  .hero__st b { font-size: 20px; }
  .hero__actions .btn { padding: 17px 20px; font-size: 12.5px; border-radius: 14px; }

  /* ленты: следующая карточка выглядывает — видно, что можно листать */
  .rail { grid-auto-columns: 82vw; }
  .plans__grid { grid-auto-columns: 82vw; }

  /* карточки крупнее и мягче */
  .apt { border-radius: 20px; padding: 14px; }
  .tri__c, .buy__c, .infobar, .ask, .cta-band, .fcard { border-radius: 22px; }
  .fcard { border-radius: 24px; }

  /* секции: единый ритм */
  .section { padding-block: 60px; }
  .sec-head { margin-bottom: 26px; }
  .sec-head__row { gap: 18px; }

  /* инфраструктура — плитка 2 в ряд с иконкой сверху */
  .infra { border-radius: 20px; }
  .infra__i { padding: 20px 16px; min-height: 128px; }

  /* нижняя панель: стеклянная, с безопасной зоной */
  .mbar { padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .mbar .btn { border-radius: 14px; padding: 15px 10px; }

  /* цитата и подписи к фото читабельнее */
  .about__quote-tx q { font-size: 17px; }
  .ph__cap { font-size: 12px; padding: 34px 16px 14px; }

  /* формы: крупные поля под палец */
  .field input, .field textarea { padding: 22px 16px 10px; font-size: 16px; border-radius: 14px; }
  .ask__go { height: 58px; border-radius: 14px; }

  /* подвал компактнее */
  .ftr__box { border-radius: 22px; }
  .ftr__brand b { font-size: 21px; }
}

/* очень узкие экраны */
@media (max-width: 380px) {
  :root { --pad: 15px; }
  .h-display { font-size: 52px; }
  .hero__sub { font-size: 21px; }
  .hero__st b { font-size: 18px; }
}

/* горизонтальная ориентация телефона — не растягиваем герой на весь экран */
@media (max-height: 460px) and (orientation: landscape) {
  .hero { min-height: 0; padding-block: 84px 40px; }
  .hero__in { padding-bottom: 20px; }
  .h-display { font-size: 46px; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   ГЕРОЙ: дом должен быть виден.
   Завеса была рассчитана на светлый ночной кадр; на «отдалённом»
   синем часе она гасила здание целиком.
   ============================================================ */
.hero__shade {
  background:
    linear-gradient(96deg,
      rgba(7,10,14,.94) 0%,
      rgba(7,10,14,.80) 22%,
      rgba(7,10,14,.42) 40%,
      rgba(7,10,14,.16) 58%,
      rgba(7,10,14,.10) 76%,
      rgba(7,10,14,.34) 100%),
    linear-gradient(to bottom,
      rgba(7,10,14,.62) 0%, rgba(7,10,14,.12) 18%,
      rgba(7,10,14,0) 46%, rgba(7,10,14,.55) 88%, rgba(7,10,14,.82) 100%);
}
/* кадр снят в синий час — поднимаем экспозицию и тепло */
.hero__media img { filter: brightness(1.24) saturate(1.06) contrast(1.03); }

@media (max-width: 780px) {
  /* на телефоне текст лежит поверх кадра — завеса плотнее снизу */
  .hero__shade {
    background:
      linear-gradient(to bottom,
        rgba(7,10,14,.72) 0%, rgba(7,10,14,.30) 22%,
        rgba(7,10,14,.20) 40%, rgba(7,10,14,.72) 72%, rgba(7,10,14,.93) 100%);
  }
  .hero__media img { filter: brightness(1.16) saturate(1.04); }
}

/* мобильный герой: видео тоже надо осветлить, иначе дом не читается */
@media (max-width: 780px) {
  .hero__media video { filter: brightness(1.3) saturate(1.06) contrast(1.02); }
  .hero__shade {
    background:
      linear-gradient(to bottom,
        rgba(7,10,14,.80) 0%, rgba(7,10,14,.34) 16%,
        rgba(7,10,14,.10) 34%, rgba(7,10,14,.10) 50%,
        rgba(7,10,14,.58) 76%, rgba(7,10,14,.90) 100%);
  }
  /* содержимое прижимаем к низу — как на постере фильма */
  .hero__body { align-items: flex-end; }
  .hero__in { padding-bottom: 96px; padding-top: 0; }
}

/* мобильный герой: локальная подложка под текстом — фасад светлый, буквы тонули */
@media (max-width: 780px) {
  .hero__in { position: relative; }
  .hero__in::before {
    content: ''; position: absolute; left: calc(var(--pad) * -1); right: calc(var(--pad) * -1);
    top: -28px; bottom: -40px; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(7,10,14,0) 0%, rgba(7,10,14,.55) 22%, rgba(7,10,14,.82) 60%, rgba(7,10,14,.92) 100%);
  }
  .hero__st b, .hero__sub, .hero__title { text-shadow: 0 2px 24px rgba(0,0,0,.6); }
}

/* четыре преимущества держим в две колонки почти до самых узких экранов */
@media (max-width: 420px) and (min-width: 361px) {
  .about__feats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) { .about__feats { grid-template-columns: 1fr; } }

/* ============================================================
   Видео в широкой панели двора
   ============================================================ */
.yard__hero { aspect-ratio: 16/9; background: var(--panel); }
@media (max-width: 800px) { .yard__hero { aspect-ratio: 4/3; } }
.yard__hero video { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.95) contrast(1.04); }
.yard__hero .ph__cap { z-index: 4; }

/* кнопка паузы поверх видео */
.vid-sound {
  position: absolute; right: 16px; top: 16px; z-index: 5;
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(11,15,20,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--hair-2); transition: background-color .25s, transform .25s;
}
.vid-sound:hover { background: rgba(11,15,20,.85); transform: scale(1.06); }
.vid-sound span {
  display: block; width: 12px; height: 14px; position: relative;
}
.vid-sound span::before, .vid-sound span::after {
  content: ''; position: absolute; top: 0; width: 4px; height: 14px; border-radius: 1px; background: var(--gold-lt);
  transition: all .25s var(--ease);
}
.vid-sound span::before { left: 0; }
.vid-sound span::after  { right: 0; }
/* на паузе — треугольник «плей» */
.vid-sound.is-paused span::before { left: 1px; height: 14px; width: 0; border-left: 11px solid var(--gold-lt); border-top: 7px solid transparent; border-bottom: 7px solid transparent; background: none; border-radius: 0; }
.vid-sound.is-paused span::after { opacity: 0; }
@media (max-width: 780px) { .vid-sound { right: 12px; top: 12px; width: 40px; height: 40px; } }


/* ============================================================
   ДВОР: список инфраструктуры + вертикальная видео-карточка.
   Ролики с дрона сняты вертикально — показываем их в родной
   пропорции, без растягивания на всю ширину.
   ============================================================ */
.yard__stage {
  display: grid; grid-template-columns: minmax(0,1fr) 360px;
  gap: clamp(24px, 3.4vw, 60px); align-items: stretch;
}
@media (max-width: 1100px) { .yard__stage { grid-template-columns: 1fr; } }

/* инфраструктура в две колонки рядом с видео */
.yard__stage .infra {
  grid-template-columns: 1fr 1fr; align-content: start;
  border-radius: var(--r-lg); overflow: hidden;
}
@media (max-width: 620px) { .yard__stage .infra { grid-template-columns: 1fr; } }
.yard__stage .infra__i { min-height: 0; padding: clamp(16px,1.8vw,24px) clamp(14px,1.6vw,22px); }
.yard__stage .infra__i:last-child { grid-column: 1 / -1; }
@media (max-width: 620px) { .yard__stage .infra__i:last-child { grid-column: auto; } }

/* карточка-«рилс» */
.reel { position: relative; display: flex; align-items: center; justify-content: center; }
@media (max-width: 1100px) { .reel { margin-inline: auto; width: min(340px, 82vw); } }
.reel__glow {
  position: absolute; inset: -12% -18%; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(201,162,74,.20), transparent 66%);
}
.reel__frame {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 9/16; overflow: hidden;
  border-radius: 46px 18px 46px 18px;
  box-shadow: inset 0 0 0 1px var(--hair), 0 40px 80px -46px #000, 0 0 0 8px rgba(255,255,255,.02);
  background: var(--panel);
}
.reel__frame video { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.96) contrast(1.05); }
.reel__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7,10,14,.42) 0%, transparent 22%, transparent 58%, rgba(7,10,14,.86) 100%);
}
.reel__live {
  position: absolute; left: 16px; top: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: rgba(11,15,20,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-lt);
}
.reel__live i { width: 6px; height: 6px; border-radius: 50%; background: #E06A5A; animation: livePulse 1.8s var(--ease) infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.reel__cap {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3;
  font-size: 15px; font-weight: 700; line-height: 1.25;
}
.reel__cap small { display: block; font-size: 12px; font-weight: 500; color: var(--tx-2); margin-top: 5px; }
.reel .vid-sound { right: 14px; top: 14px; width: 38px; height: 38px; }
@media (prefers-reduced-motion: reduce) { .reel__live i { animation: none; } }

/* пустой хвост под списком инфраструктуры — не тянем панель на высоту видео */
.yard__stage { align-items: start; }
.yard__stage .infra { align-self: start; }

/* ============================================================
   СЦЕНА ГЕРОЯ · «ИЗ ЧЕРТЕЖА В ДОМ, В КОТОРОМ ЗАЖИГАЕТСЯ СВЕТ»
   Только opacity и transform — их считает видеокарта, поэтому
   идёт гладко. Анимация масок давала рывки, от неё отказались.

   0.00–0.60  проступают засечки и контур
   0.40–2.20  шторка уезжает вправо, за ней бежит золотое перо
   2.20–2.60  пауза — чертёж стоит целиком
   2.40–3.30  чертёж растворяется
   2.60–3.90  проявляется дом, свет выключен
   3.70–5.30  по фасаду идёт волна света, дом загорается
   5.00–5.80  вспыхивает вывеска HAYAT
   ============================================================ */
.hero__media { background: #070A0E; overflow: hidden; }
.hl { position: absolute; inset: 0; }
.hl picture { position: absolute; inset: 0; display: block; }
.hl img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 58%; opacity: 1; }

/* ---- 1 · чертёж ---- */
.hl--lines {
  overflow: hidden; opacity: 0;
  background-image: linear-gradient(112deg, #F3E2B6 0%, #C9A24A 46%, #F0DCA8 78%, #C9A24A 100%);
  -webkit-mask-image: url('/assets/img/ref/hero-lines.webp');
          mask-image: url('/assets/img/ref/hero-lines.webp');
  -webkit-mask-size: cover;  mask-size: cover;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
body.is-ready .hl--lines { animation: linesIn .5s .05s ease-out forwards, linesOut .7s 1.5s ease-in forwards; }
@keyframes linesIn  { from { opacity: 0; } to { opacity: .92; } }
@keyframes linesOut { to { opacity: 0; } }

/* шторка поверх чертежа: уезжает вправо и открывает линии */
.hl__wipe {
  position: absolute; inset: 0; z-index: 2; background: #070A0E;
  transform: translate3d(0,0,0); will-change: transform;
}
body.is-ready .hl__wipe { animation: wipeAway 1.15s .3s cubic-bezier(.42,0,.16,1) forwards; }
@keyframes wipeAway { to { transform: translate3d(100.5%,0,0); } }

/* золотое перо на кромке шторки */
.hl__pen {
  position: absolute; top: -8%; bottom: -8%; left: -1px; width: 2px;
  background: linear-gradient(to bottom, transparent, #FFF3D4 22%, #fff 50%, #FFF3D4 78%, transparent);
  box-shadow: 0 0 26px 6px rgba(240,220,168,.55), 0 0 60px 16px rgba(201,162,74,.28);
  opacity: 0;
}
body.is-ready .hl__pen { animation: penFade 1.15s .3s ease-out forwards; }
@keyframes penFade { 0% { opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }

/* ---- 2 · дом, свет выключен ---- */
.hl--dark { opacity: 0; transform: scale(1.06); will-change: opacity, transform; }
body.is-ready .hl--dark { animation: houseIn 1s 1.55s cubic-bezier(.22,.61,.36,1) forwards; }
@keyframes houseIn { to { opacity: 1; transform: scale(1); } }

/* ---- 3 · дом, свет включён ---- */
.hl--lit { opacity: 0; will-change: opacity; }
body.is-ready .hl--lit { animation: lightsUp 1.2s 2.2s cubic-bezier(.32,.55,.28,1) forwards; }
@keyframes lightsUp { to { opacity: 1; } }

/* волна света идёт по фасаду */
.hl__wave {
  position: absolute; top: -30%; bottom: -30%; left: 0; width: 46%;
  z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(102deg,
    transparent 0%, rgba(255,238,200,.06) 26%, rgba(255,240,205,.20) 46%,
    rgba(255,246,220,.30) 52%, rgba(255,240,205,.18) 58%, rgba(255,238,200,.05) 76%, transparent 100%);
  filter: blur(6px); mix-blend-mode: screen;
  transform: translate3d(-120%,0,0) skewX(-9deg); will-change: transform;
}
body.is-ready .hl__wave { animation: waveGo 1.4s 2.1s cubic-bezier(.36,.5,.3,1) forwards; }
@keyframes waveGo {
  0%   { opacity: 0;  transform: translate3d(-120%,0,0) skewX(-9deg); }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(260%,0,0) skewX(-9deg); }
}

/* вспышка вывески */
.hl__flare {
  position: absolute; left: 68%; top: 45%; width: 15vw; height: 15vw;
  max-width: 230px; max-height: 230px; z-index: 4;
  transform: translate3d(-50%,-50%,0) scale(.4); border-radius: 50%;
  pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,247,226,.9), rgba(229,200,137,.34) 36%, transparent 68%);
}
body.is-ready .hl__flare { animation: flare 1.1s 2.9s ease-out forwards; }
@keyframes flare {
  0%  { opacity: 0;   transform: translate3d(-50%,-50%,0) scale(.4); }
  12% { opacity: 1;   transform: translate3d(-50%,-50%,0) scale(1); }
  20% { opacity: .32; }
  30% { opacity: .96; }
  42% { opacity: .45; }
  56% { opacity: .85; }
  100%{ opacity: 0;   transform: translate3d(-50%,-50%,0) scale(1.55); }
}

/* засечки чертежа по углам */
.hero__marks { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero__marks .mk { stroke: rgba(240,220,168,.55); stroke-width: 1.3; fill: none; stroke-dasharray: 220; stroke-dashoffset: 220; }
body.is-ready .hero__marks .mk { animation: draw .75s .1s ease-out forwards, marksOut .7s 1.5s ease-in forwards; }
body.is-ready .hero__marks .mk--dim { animation-delay: .3s, 1.5s; }
@keyframes marksOut { to { opacity: 0; } }

/* дневной слой — только для светлой темы */

/* ---- текст идёт следом за светом ---- */
body.is-ready .hero__kicker { animation: heroUp .9s 2.2s cubic-bezier(.16,1,.3,1) forwards; }
body.is-ready .hero__title .ch { animation-duration: 1s; animation-delay: calc(2.35s + var(--i) * .075s); }
body.is-ready .hero__rule    { animation: heroRule .9s 2.9s cubic-bezier(.16,1,.3,1) forwards; }
body.is-ready .hero__sub     { animation: heroUp .9s 3s cubic-bezier(.16,1,.3,1) forwards; }
body.is-ready .hero__stats   { animation: heroUp .9s 3.15s cubic-bezier(.16,1,.3,1) forwards; }
body.is-ready .hero__st:nth-child(1) { animation-delay: 3.2s; }
body.is-ready .hero__st:nth-child(2) { animation-delay: 3.28s; }
body.is-ready .hero__st:nth-child(3) { animation-delay: 3.36s; }
body.is-ready .hero__st:nth-child(4) { animation-delay: 3.44s; }
body.is-ready .hero__actions { animation: heroUp .9s 3.5s cubic-bezier(.16,1,.3,1) forwards; }
body.is-ready .hero__place   { animation: heroUp .9s 3.7s cubic-bezier(.16,1,.3,1) forwards; }
body.is-ready .hero__count   { animation: heroUp .9s 3.76s cubic-bezier(.16,1,.3,1) forwards; }
body.is-ready .hero__scroll  { animation: heroUp .9s 3.82s cubic-bezier(.16,1,.3,1) forwards; }
body.is-ready .hero__arc .a1 { animation: draw 2.1s 2.5s cubic-bezier(.16,1,.3,1) forwards; }
body.is-ready .hero__arc .a2 { animation: draw 2.1s 2.85s cubic-bezier(.16,1,.3,1) forwards; }
body.is-ready .hero__sweep::before { animation: none; }

/* сцена доиграла — оставляем только освещённый дом и медленное дыхание кадра */
body.hero-done .hl--lines, body.hero-done .hl--dark,
body.hero-done .hero__marks, body.hero-done .hl__wave, body.hero-done .hl__flare { display: none; }
body.hero-done .hl--lit { opacity: 1; animation: none; }
body.hero-done .hl--lit img { animation: kb 44s ease-in-out infinite alternate; }

/* повторный визит за сессию: сцену не крутим */
body.hero-skip .hl--lines, body.hero-skip .hl--dark,
body.hero-skip .hero__marks, body.hero-skip .hl__wave, body.hero-skip .hl__flare { display: none; }
body.hero-skip .hl--lit { opacity: 1; animation: none; }
body.hero-skip .hl--lit img { animation: kb 44s ease-in-out infinite alternate; }
body.hero-skip .hero__kicker { animation-delay: .1s; }
body.hero-skip .hero__title .ch { animation-delay: calc(.18s + var(--i) * .07s); }
body.hero-skip .hero__rule { animation-delay: .62s; }
body.hero-skip .hero__sub { animation-delay: .72s; }
body.hero-skip .hero__stats { animation-delay: .86s; }
body.hero-skip .hero__st:nth-child(1) { animation-delay: .9s; }
body.hero-skip .hero__st:nth-child(2) { animation-delay: .97s; }
body.hero-skip .hero__st:nth-child(3) { animation-delay: 1.04s; }
body.hero-skip .hero__st:nth-child(4) { animation-delay: 1.11s; }
body.hero-skip .hero__actions { animation-delay: 1.2s; }
body.hero-skip .hero__place  { animation-delay: 1.34s; }
body.hero-skip .hero__count  { animation-delay: 1.4s; }
body.hero-skip .hero__scroll { animation-delay: 1.46s; }
body.hero-skip .hero__arc .a1 { animation-delay: .5s; }
body.hero-skip .hero__arc .a2 { animation-delay: .8s; }

@media (max-width: 780px) {
  .hl__flare { left: 60%; top: 40%; width: 42vw; height: 42vw; }
  .hl__wave { width: 70%; }
}

@media (prefers-reduced-motion: reduce) {
  .hl--lines, .hl--dark, .hero__marks, .hl__wave, .hl__flare { display: none !important; }
  .hl--lit { opacity: 1 !important; animation: none !important; }
  .hl--lit img { animation: none !important; }
}

/* ============================================================
   Донастройка сцены: волна была слишком яркой и заливала кадр
   ============================================================ */
.hl__wave {
  width: 34%; filter: blur(2px);
  background: linear-gradient(102deg,
    transparent 0%, rgba(255,240,208,.03) 24%, rgba(255,242,212,.09) 44%,
    rgba(255,247,224,.14) 51%, rgba(255,242,212,.08) 58%, rgba(255,240,208,.025) 78%, transparent 100%);
}
.hl__pen {
  width: 1.5px;
  box-shadow: 0 0 14px 2px rgba(255,243,212,.5), 0 0 34px 7px rgba(201,162,74,.18);
}
/* сам чертёж чуть плотнее, раз линии теперь тонкие */
body.is-ready .hl--lines { animation: linesIn .7s .05s ease-out forwards, linesOut 1s 2.4s ease-in forwards; }
@keyframes linesIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   СВЕТЛАЯ ТЕМА · тёплый песок, не белизна
   ============================================================ */
:root[data-theme="light"] {
  --bg:        #F4EDE1;
  --bg-2:      #EFE5D6;
  --bg-3:      #E9DDCB;
  --panel:     #FFFCF6;
  --panel-2:   #F8F1E5;

  --gold:      #A87C2B;
  --gold-lt:   #8A6620;
  --gold-dk:   #6E4F16;
  --gold-grad: linear-gradient(135deg, #C39443 0%, #E0BB6C 48%, #A87C2B 100%);

  --tx:        #1B1712;
  --tx-2:      #574E42;
  --tx-3:      #8B8173;

  --hair:      rgba(168,124,43,.38);
  --hair-2:    rgba(168,124,43,.20);
  --line:      rgba(27,23,18,.10);
  --line-2:    rgba(27,23,18,.17);

  --ok:        #4C7A47;
  --hold:      #B07E1F;
  --gone:      #93695F;
  color-scheme: light;
}

:root[data-theme="light"] body { background: var(--bg); }
:root[data-theme="light"] ::selection { background: var(--gold); color: #fff; }

/* шапка и меню */
:root[data-theme="light"] .hdr { background: rgba(244,237,225,.72); }
:root[data-theme="light"] .hdr.is-stuck { background: rgba(250,245,236,.94); box-shadow: 0 1px 0 var(--line), 0 12px 30px -26px rgba(60,45,20,.5); }
:root[data-theme="light"] .menu { background: linear-gradient(180deg, #FBF6EC 0%, #F2E9DA 100%); }
:root[data-theme="light"] .burger i,
:root[data-theme="light"] body.menu-open .burger i::before,
:root[data-theme="light"] body.menu-open .burger i::after { background: var(--tx); }

/* первый экран: днём — дневной кадр, светлая вуаль, тёмный текст */
:root[data-theme="light"] .hero__media { background: #E9DFCE; }
:root[data-theme="light"] .hl__wipe { background: #F4EDE1; }
:root[data-theme="light"] .hl--lines {
  background-image: linear-gradient(112deg, #7A5A18 0%, #A87C2B 46%, #6E4F16 78%, #A87C2B 100%);
}
:root[data-theme="light"] .hl__pen {
  background: linear-gradient(to bottom, transparent, #6E4F16 22%, #3A2A0B 50%, #6E4F16 78%, transparent);
  box-shadow: 0 0 14px 2px rgba(110,79,22,.35);
}
:root[data-theme="light"] .hero__marks .mk { stroke: rgba(110,79,22,.5); }
:root[data-theme="light"] .hero__shade {
  background:
    linear-gradient(96deg, rgba(244,237,225,.96) 0%, rgba(244,237,225,.86) 24%, rgba(244,237,225,.44) 44%,
      rgba(244,237,225,.12) 62%, rgba(244,237,225,.06) 78%, rgba(244,237,225,.3) 100%),
    linear-gradient(to bottom, rgba(244,237,225,.5) 0%, rgba(244,237,225,0) 24%,
      rgba(244,237,225,0) 58%, rgba(244,237,225,.6) 90%, rgba(244,237,225,.9) 100%);
}
:root[data-theme="light"] .hero__title,
:root[data-theme="light"] .hero__sub,
:root[data-theme="light"] .hero__st b { text-shadow: 0 1px 22px rgba(255,250,240,.8); }
:root[data-theme="light"] .hero__arc .arc { stroke: rgba(168,124,43,.5); }
:root[data-theme="light"] .hero__arc .a2 { stroke: rgba(168,124,43,.3); }
:root[data-theme="light"] .hero__place {
  background: rgba(255,252,246,.82); box-shadow: inset 0 0 0 1px var(--hair-2), 0 12px 34px -22px rgba(60,45,20,.5);
}

/* фото: на светлом убираем «ночную» градацию */
:root[data-theme="light"] .ph img, :root[data-theme="light"] .about__ph img,
:root[data-theme="light"] .plans__hero img, :root[data-theme="light"] .fcard__ph img,
:root[data-theme="light"] .tri__ph img, :root[data-theme="light"] .infobar__ph img,
:root[data-theme="light"] .ftr__ph img, :root[data-theme="light"] .arch__stage img,
:root[data-theme="light"] .compare img { filter: saturate(1) contrast(1.02) brightness(1.02); }
:root[data-theme="light"] .ph::after, :root[data-theme="light"] .about__ph::after,
:root[data-theme="light"] .plans__hero::after, :root[data-theme="light"] .tri__ph::after {
  background: linear-gradient(180deg, rgba(90,70,30,.06) 0%, transparent 40%, rgba(120,90,40,.08) 100%);
  mix-blend-mode: multiply;
}
:root[data-theme="light"] .ph__cap { background: linear-gradient(to top, rgba(30,24,14,.82), transparent); color: #fff; }

/* тёмные секции становятся песочными */
:root[data-theme="light"] .about { background: linear-gradient(120deg, #F6F0E6 0%, #EFE5D6 58%, #F3EBDD 100%); }
:root[data-theme="light"] .about::after { background: radial-gradient(ellipse at center, rgba(168,124,43,.12), transparent 62%); }
:root[data-theme="light"] .coffee { background: linear-gradient(120deg, #2A2318, #3A3020 60%, #241E15); }
:root[data-theme="light"] .coffee .body { color: rgba(255,250,240,.72); }
:root[data-theme="light"] .coffee__name { color: #FFF8EA; }
:root[data-theme="light"] .coffee__tag, :root[data-theme="light"] .coffee .link-arrow { color: #E7C98A; }
:root[data-theme="light"] .coffee__sub { color: rgba(255,248,234,.55); }
:root[data-theme="light"] .sales { background: linear-gradient(120deg, #F7F1E7, #F0E7D8 55%, #F5EEE2); }
:root[data-theme="light"] .sales::before { background: radial-gradient(ellipse at center, rgba(168,124,43,.14), transparent 62%); }
:root[data-theme="light"] .plans::before,
:root[data-theme="light"] .glow::before { background: radial-gradient(60vw 60vh at 12% 18%, rgba(168,124,43,.10), transparent 60%); }
:root[data-theme="light"] .cta-band { background: linear-gradient(120deg, #2C2519, #3D3323 55%, #262016); }
:root[data-theme="light"] .cta-band h3 { color: #FFF8EA; }
:root[data-theme="light"] .cta-band p { color: rgba(255,248,234,.72); }
:root[data-theme="light"] .cta-band .btn--gold { color: #241C0B; }

/* карточки и панели */
:root[data-theme="light"] .apt, :root[data-theme="light"] .buy__c,
:root[data-theme="light"] .tri__c, :root[data-theme="light"] .infobar,
:root[data-theme="light"] .ask, :root[data-theme="light"] .filters,
:root[data-theme="light"] .plans__note, :root[data-theme="light"] .modal__box,
:root[data-theme="light"] .infra__i { background: var(--panel); }
:root[data-theme="light"] .apt:hover, :root[data-theme="light"] .buy__c:hover,
:root[data-theme="light"] .tri__c:hover { box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -40px rgba(60,45,20,.45); }
:root[data-theme="light"] .infra__i:hover { background: var(--panel-2); }
:root[data-theme="light"] .apt__badge { background: rgba(255,252,246,.94); box-shadow: 0 1px 0 var(--line); }
:root[data-theme="light"] .fdrop__box { background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair-2), 0 24px 50px -26px rgba(60,45,20,.4); }
:root[data-theme="light"] .stub { background: repeating-linear-gradient(135deg, rgba(27,23,18,.035) 0 10px, transparent 10px 20px), var(--panel-2); }
:root[data-theme="light"] .range__track { background: rgba(27,23,18,.14); }
:root[data-theme="light"] .range input::-webkit-slider-thumb { background: #fff; box-shadow: 0 0 0 2px var(--gold), 0 3px 10px -2px rgba(60,45,20,.5); }
:root[data-theme="light"] .sortsel option { background: #fff; color: var(--tx); }
:root[data-theme="light"] .chip[aria-pressed="true"],
:root[data-theme="light"] .arch__toggle button[aria-pressed="true"] { color: #fff; }
:root[data-theme="light"] .btn--gold { color: #fff; }
:root[data-theme="light"] .ic-chip--fill, :root[data-theme="light"] .ic-go,
:root[data-theme="light"] .ask__go, :root[data-theme="light"] .compare__hd i { color: #fff; }
:root[data-theme="light"] .apt__go:hover { color: #fff; }

/* карточка отделки: тёмная вуаль поверх фото остаётся, текст на ней белый */
:root[data-theme="light"] .fcard::after {
  background: linear-gradient(96deg, rgba(28,22,14,.9) 0%, rgba(28,22,14,.8) 34%, rgba(28,22,14,.34) 62%, rgba(28,22,14,.2) 100%);
}
:root[data-theme="light"] .fcard__in { color: #FFF8EA; }
:root[data-theme="light"] .fcard .ticks li { color: rgba(255,248,234,.82); }
:root[data-theme="light"] .fcard .ticks svg, :root[data-theme="light"] .fcard .ic-chip { color: #E7C98A; }
:root[data-theme="light"] .fcard .ic-chip { box-shadow: inset 0 0 0 1px rgba(231,201,138,.4); background: rgba(231,201,138,.08); }
:root[data-theme="light"] .fcard .btn--gold-line { color: #E7C98A; box-shadow: inset 0 0 0 1px rgba(231,201,138,.45); }

/* видео-карточка двора */
:root[data-theme="light"] .reel__frame { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hair), 0 40px 80px -46px rgba(60,45,20,.5), 0 0 0 8px rgba(27,23,18,.03); }
:root[data-theme="light"] .reel__glow { background: radial-gradient(ellipse at center, rgba(168,124,43,.18), transparent 66%); }
:root[data-theme="light"] .reel__cap { color: #FFF8EA; }
:root[data-theme="light"] .reel__cap small { color: rgba(255,248,234,.72); }

/* формы */
:root[data-theme="light"] .field input, :root[data-theme="light"] .field textarea { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
:root[data-theme="light"] .field input:focus, :root[data-theme="light"] .field textarea:focus { background: #fff; box-shadow: inset 0 0 0 1px var(--gold); }

/* модалки, лайтбокс, плавающие элементы */
:root[data-theme="light"] .modal { background: rgba(40,32,20,.62); }
:root[data-theme="light"] .modal__x { background: rgba(27,23,18,.08); color: var(--tx); }
:root[data-theme="light"] .modal__x:hover { background: rgba(27,23,18,.16); }
:root[data-theme="light"] .mbar { background: rgba(250,245,236,.94); box-shadow: 0 -1px 0 var(--line), 0 -12px 30px -22px rgba(60,45,20,.4); }
:root[data-theme="light"] .vid-sound, :root[data-theme="light"] .reel__live { background: rgba(28,22,14,.55); }
:root[data-theme="light"] .vid-sound span::before, :root[data-theme="light"] .vid-sound span::after { background: #E7C98A; }
:root[data-theme="light"] .vid-sound.is-paused span::before { border-left-color: #E7C98A; }
:root[data-theme="light"] .reel__live { color: #E7C98A; }

/* подвал */
:root[data-theme="light"] .ftr { background: var(--bg-2); border-top: 1px solid var(--line); }
:root[data-theme="light"] .ftr__box { background: var(--panel); }
:root[data-theme="light"] .ftr__ph::after { background: linear-gradient(90deg, var(--panel) 0%, rgba(255,252,246,.35) 42%, transparent 100%); }
@media (max-width: 1100px) { :root[data-theme="light"] .ftr__ph::after { background: linear-gradient(0deg, transparent 40%, var(--panel) 100%); } }

/* сплэш в светлой теме */
:root[data-theme="light"] .splash { background: radial-gradient(80vw 80vh at 50% 42%, #FBF6EC 0%, #F1E7D6 62%, #EADFCB 100%); }
:root[data-theme="light"] .splash__word { color: var(--tx); }
:root[data-theme="light"] .splash__word::after { mix-blend-mode: multiply; background: linear-gradient(105deg, transparent 38%, rgba(168,124,43,.5) 50%, transparent 62%); }
:root[data-theme="light"] .splash__curtain { background: #F4EDE1; }
:root[data-theme="light"] .splash__bar { background: rgba(27,23,18,.12); }
:root[data-theme="light"] .rv--clip::before { background: var(--bg); }
:root[data-theme="light"] .about__quote.rv--clip::before,
:root[data-theme="light"] .tri__ph.rv--clip::before,
:root[data-theme="light"] .loc__map.rv--clip::before { background: var(--panel); }
:root[data-theme="light"] .loc__map iframe { filter: none; }

/* мягкий переход между темами */
body, .hdr, .section, .apt, .buy__c, .tri__c, .infobar, .ask, .filters,
.infra__i, .modal__box, .ftr, .ftr__box, .reel__frame, .panel {
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}

/* ---------- переключатель темы ---------- */
.theme-sw { flex: none; padding: 0; }
.theme-sw__track {
  position: relative; display: flex; align-items: center; gap: 6px;
  width: 68px; height: 34px; padding: 0 8px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2); justify-content: space-between;
}
.theme-sw:hover .theme-sw__track { box-shadow: inset 0 0 0 1px var(--gold); }
.theme-sw__sun, .theme-sw__moon { position: relative; z-index: 2; transition: color .4s, opacity .4s; }
.theme-sw__sun  { color: var(--tx-3); }
.theme-sw__moon { color: var(--gold-lt); }
:root[data-theme="light"] .theme-sw__sun  { color: var(--gold); }
:root[data-theme="light"] .theme-sw__moon { color: var(--tx-3); }
.theme-sw__knob {
  position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 999px;
  background: var(--gold-grad); z-index: 1;
  transform: translateX(34px);
  transition: transform .5s cubic-bezier(.6,-.28,.4,1.3);
  box-shadow: 0 4px 12px -4px rgba(201,162,74,.7);
}
:root[data-theme="light"] .theme-sw__knob { transform: translateX(0); }
@media (max-width: 900px) { .theme-sw__track { width: 60px; height: 32px; } .theme-sw__knob { width: 26px; height: 26px; transform: translateX(30px); } }

/* светлая тема: в карточках отделки текст был белым на светлом — не читался */
:root[data-theme="light"] .fcard::after {
  background: linear-gradient(96deg, rgba(255,252,246,.06) 0%, rgba(255,252,246,.55) 26%,
    rgba(255,252,246,.93) 46%, rgba(255,252,246,.97) 100%);
}
:root[data-theme="light"] .fcard { box-shadow: inset 0 0 0 1px var(--hair-2), 0 24px 60px -44px rgba(60,45,20,.5); }
:root[data-theme="light"] .fcard__in { color: var(--tx); }
:root[data-theme="light"] .fcard__t { color: var(--tx); }
:root[data-theme="light"] .fcard .ticks li { color: var(--tx-2); }
:root[data-theme="light"] .fcard .ticks svg { color: var(--gold); }
:root[data-theme="light"] .fcard .ic-chip { color: var(--gold); box-shadow: inset 0 0 0 1px var(--hair); background: rgba(168,124,43,.07); }
:root[data-theme="light"] .fcard .btn--gold-line { color: var(--gold-lt); box-shadow: inset 0 0 0 1px var(--hair); }
:root[data-theme="light"] .fcard .btn--gold-line:hover { background: rgba(168,124,43,.08); box-shadow: inset 0 0 0 1px var(--gold); }
/* фото в карточке остаётся слева и не глушится */
:root[data-theme="light"] .fcard__ph img { filter: saturate(1.02) contrast(1.03); }

/* свечение вокруг видео-карточки выходило за края и раздвигало страницу на телефоне */
.reel__glow { inset: -10% 0; }
@media (min-width: 1101px) { .reel__glow { inset: -12% -14%; } }

/* зоны нажатия на телефоне — минимум 34 px по высоте */
@media (hover: none) {
  .f-reset, .link-arrow { padding-block: 8px; }
  .ftr__nav a, .menu a, .contacts a, .ask__contacts a { min-height: 34px; display: flex; align-items: center; }
  .ftr__nav a { padding-block: 7px; }
}

/* ============================================================
   Светлая тема: сцена «чертёж → дом» тоже должна отыгрывать.
   Дневной слой лежит выше остальных и перекрывал чертёж —
   теперь он проявляется в свой черёд.
   ============================================================ */
/* текст в светлой теме идёт чуть раньше — сцена короче на стадию «свет» */

/* ============================================================
   Мобильный герой: видео лежит выше слоёв и закрывало чертёж.
   Теперь оно проявляется в тот же момент, что и включение света.
   ============================================================ */
@media (max-width: 780px) {
  .hero__media video { display: block; opacity: 0; }
  body.is-ready .hero__media video { animation: lightsUp 1.6s 3.7s cubic-bezier(.32,.55,.28,1) forwards; }
  body.hero-done .hero__media video, body.hero-skip .hero__media video { opacity: 1; animation: none; }
  /* в светлой теме видео ночное — прячем, показываем дневной кадр */
    }

/* на телефоне все картинки героя были скрыты ради видео — но в светлой
   теме видео не используется, дневной кадр обязан показываться */

/* светлая тема на телефоне: кадр кадрируем на дом, подложка под текстом — светлая */
@media (max-width: 780px) {
    :root[data-theme="light"] .hero__in::before {
    background: linear-gradient(to bottom, rgba(244,237,225,0) 0%, rgba(244,237,225,.62) 20%,
      rgba(244,237,225,.88) 55%, rgba(244,237,225,.96) 100%);
  }
  :root[data-theme="light"] .hero__title,
  :root[data-theme="light"] .hero__sub,
  :root[data-theme="light"] .hero__st b { text-shadow: 0 1px 16px rgba(255,252,246,.9); }
  :root[data-theme="light"] .hero__st b sup { color: var(--tx-2); }
}

/* ============================================================
   СЦЕНА ГЕРОЯ · УСИЛЕНИЕ
   миллиметровка · размерные линии с подписями · буквы из контура
   вспышка-«снимок» · мерцание окон
   ============================================================ */

/* --- миллиметровка под чертежом --- */
.hl__grid {
  position: absolute; inset: -2%; z-index: 0; pointer-events: none; opacity: 0;
  background-image:
    linear-gradient(rgba(201,162,74,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,74,.16) 1px, transparent 1px),
    linear-gradient(rgba(201,162,74,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,74,.07) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 78%);
  transform: scale(1.06);
}
body.is-ready .hl__grid { animation: gridIn .9s .1s ease-out forwards, gridOut .9s 2.5s ease-in forwards; }
@keyframes gridIn  { to { opacity: 1; transform: scale(1); } }
@keyframes gridOut { to { opacity: 0; transform: scale(1.03); } }
:root[data-theme="light"] .hl__grid {
  background-image:
    linear-gradient(rgba(122,90,24,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,90,24,.18) 1px, transparent 1px),
    linear-gradient(rgba(122,90,24,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,90,24,.08) 1px, transparent 1px);
}

/* --- размерные линии и подписи --- */
.hero__marks { z-index: 1; }
.mk-t {
  font-family: var(--ff); font-size: 19px; font-weight: 700; letter-spacing: .16em;
  fill: rgba(240,220,168,.82); opacity: 0;
}
:root[data-theme="light"] .mk-t { fill: rgba(110,79,22,.9); }
.mk-dot { fill: rgba(240,220,168,.9); opacity: 0; }
:root[data-theme="light"] .mk-dot { fill: rgba(110,79,22,.9); }
.mk-dims .mk { stroke-dasharray: 1200; stroke-dashoffset: 1200; }

body.is-ready .mk-corners .mk { animation: draw .9s .1s ease-out forwards, marksOut .8s 2.4s ease-in forwards; }
body.is-ready .mk-d1 { animation: draw .8s .95s ease-out forwards, marksOut .7s 2.45s ease-in forwards; }
body.is-ready .mk-d2 { animation: draw 1s 1.25s ease-out forwards, marksOut .7s 2.5s ease-in forwards; }
body.is-ready .mk-d3 { animation: draw .8s 1.55s ease-out forwards, marksOut .7s 2.55s ease-in forwards; }
body.is-ready .mk-t1 { animation: dimIn .6s 1.5s ease-out forwards, marksOut .6s 2.45s ease-in forwards; }
body.is-ready .mk-t2 { animation: dimIn .6s 1.8s ease-out forwards, marksOut .6s 2.5s ease-in forwards; }
body.is-ready .mk-t3 { animation: dimIn .6s 2.05s ease-out forwards, marksOut .6s 2.55s ease-in forwards; }
body.is-ready .mk-dot { animation: dimIn .4s 1.55s ease-out forwards, marksOut .5s 2.55s ease-in forwards; }
@keyframes dimIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) { .mk-dims, .mk-corners { display: none; } }

/* --- вспышка «снимок» на стыке чертежа и фотографии --- */
.hl__flash {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 58% 52%, rgba(255,252,244,.95), rgba(255,246,226,.5) 34%, transparent 72%);
  mix-blend-mode: screen;
}
body.is-ready .hl__flash { animation: camFlash .55s 2.62s ease-out forwards; }
@keyframes camFlash { 0% { opacity: 0; } 18% { opacity: .85; } 100% { opacity: 0; } }
:root[data-theme="light"] .hl__flash { mix-blend-mode: normal; background: radial-gradient(ellipse at 58% 52%, rgba(255,253,248,.9), rgba(250,244,232,.5) 36%, transparent 74%); }

/* лёгкий «толчок» камеры в момент вспышки */
body.is-ready .hero__media { animation: camPunch .8s 2.6s cubic-bezier(.22,.9,.3,1) forwards; }
@keyframes camPunch { 0% { transform: scale(1.012); } 100% { transform: scale(1); } }

/* --- мерцание окон после волны света --- */
.hl__win { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hl__win i {
  position: absolute; left: var(--x); top: var(--y); width: 5vw; height: 5vw;
  max-width: 84px; max-height: 84px; transform: translate(-50%,-50%) scale(.6);
  border-radius: 50%; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255,236,196,.75), rgba(255,214,150,.25) 40%, transparent 70%);
}
body.is-ready .hl__win i { animation: winPop 1.1s cubic-bezier(.2,.9,.3,1) forwards; animation-delay: calc(4.15s + var(--d)); }
@keyframes winPop {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.5); }
  22% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  46% { opacity: .3; }
  62% { opacity: .85; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.25); }
}
:root[data-theme="light"] .hl__win { display: none; }

/* --- буквы HAYAT: сначала золотой контур, потом заливка --- */
.hero__title .ch {
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(240,220,168,.9);
  text-shadow: none;
}
body.is-ready .hero__title .ch {
  animation: heroChar 1.15s cubic-bezier(.16,1,.3,1) forwards,
             charFill .85s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: calc(4s + var(--i) * .1s), calc(4.75s + var(--i) * .1s);
}
@keyframes charFill {
  from { color: transparent; -webkit-text-stroke-color: rgba(240,220,168,.9); }
  to   { color: var(--tx);   -webkit-text-stroke-color: rgba(240,220,168,0); }
}
:root[data-theme="light"] .hero__title .ch { -webkit-text-stroke-color: rgba(122,90,24,.85); }
  animation-delay: calc(3.5s + var(--i) * .1s), calc(4.25s + var(--i) * .1s);
}
:root[data-theme="light"] @keyframes charFill {
  from { color: transparent; }
  to   { color: var(--tx); }
}
body.hero-skip .hero__title .ch { animation-delay: calc(.18s + var(--i) * .07s), calc(.5s + var(--i) * .07s); }
body.hero-done .hero__title .ch { color: var(--tx); -webkit-text-stroke-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .hl__grid, .hl__flash, .hl__win, .mk-dims { display: none !important; }
  .hero__title .ch { color: var(--tx) !important; -webkit-text-stroke: 0 !important; }
  body.is-ready .hero__media { animation: none !important; }
}

/* ============================================================
   ЗАГРУЗКА: дневной кадр только в светлой теме, разделы
   ниже первого экрана отрисовываются по мере приближения
   ============================================================ */
@media (min-width: 1900px) {
  }
/* фильтр применялся к img, которого больше нет */

/* content-visibility убран намеренно: он менял высоту документа на 3500 px
   по мере прокрутки — ползунок скакал под рукой. Прокрутка и без него 60 к/с. */

/* видео героя на десктопе не нужно вовсе */
@media (min-width: 781px) { .hero__media video { display: none !important; } }

/* линейка под HAYAT анимировалась шириной — это перекладка вёрстки и сдвиг
   контента; переводим на масштаб, он идёт по видеокарте */
.hero__rule { width: 118px; transform-origin: left center; }
@keyframes heroRule {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}
@media (max-width: 780px) { .hero__rule { width: 84px; } }

/* пока шрифт не подгрузился, подменяем метрики системным — так строка
   не прыгает в момент подстановки */
@font-face {
  font-family: 'Manrope Fallback'; src: local('Helvetica Neue'), local('Arial');
  size-adjust: 104%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%;
}
:root { --ff: 'Manrope', 'Manrope Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* ============================================================
   ДОВОДКА АНИМАЦИЙ БЛОКОВ
   ============================================================ */
/* рамка слова обрезала хвосты букв и запятые — даём воздух снизу */
.split .w { padding-bottom: .14em; margin-bottom: -.14em; }
.split .w > i { will-change: transform, opacity; }
.split.is-in .w > i { will-change: auto; }

/* единая пружина для всех появлений — раньше кривые расходились */
.rv.is-in, .stagger.is-in > *, .ticks li, .tl__i, .infra__i svg, .kicker.is-in {
  animation-timing-function: cubic-bezier(.16,1,.3,1);
}
.rv.is-in { transition-timing-function: cubic-bezier(.16,1,.3,1); }

/* фотопанели чуть дольше и мягче — на них смотрят дольше всего */
.rv--clip.is-in::before { animation-duration: 1.15s; }
.rv--clip.is-in img { transition-duration: 1.8s; }

/* карточки поднимаются волной, а не все разом */
.stagger.is-in > *:nth-child(1) { animation-delay: .02s; }
.stagger.is-in > *:nth-child(2) { animation-delay: .10s; }
.stagger.is-in > *:nth-child(3) { animation-delay: .18s; }
.stagger.is-in > *:nth-child(4) { animation-delay: .26s; }
.stagger.is-in > *:nth-child(5) { animation-delay: .34s; }
.stagger.is-in > *:nth-child(6) { animation-delay: .42s; }
.stagger.is-in > *:nth-child(7) { animation-delay: .50s; }

/* лёгкий уход фотографий при прокрутке — только на десктопе,
   на телефоне лишние слои дороже, чем эффект */
@supports (animation-timeline: view()) {
  @media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
    .about__ph, .plans__hero, .yard__hero, .coffee__ph, .ftr__ph {
      animation: photoRise linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 60%;
    }
    @keyframes photoRise { from { transform: translateY(26px); } to { transform: translateY(-14px); } }
  }
}

/* счётчик разделов подсвечивается плавнее */
.sec-count b, .sec-count span { transition: color .5s var(--ease), opacity .5s var(--ease); }

/* убираем will-change там, где анимация уже отыграла — экономим память */
.rv--clip.is-in, .stagger.is-in { will-change: auto; }

/* Закрытый <details> в новом Chrome прячет содержимое через content-visibility,
   а не display — абсолютно позиционированная панель всё равно проступала
   под фотографией. Прячем явно. */
.fdrop:not([open]) > .fdrop__box { display: none; }

/* ============================================================
   ДЕСКТОП: доводка по референсам
   ============================================================ */
/* подписи под иконками вставали вразнобой — выравниваем по сетке */
.about__f { display: flex; flex-direction: column; }
.about__f b { min-height: 2.6em; display: flex; align-items: flex-start; }
.about__f span { margin-top: auto; }
@media (max-width: 700px) { .about__f b { min-height: 0; } .about__f span { margin-top: 6px; } }
/* разделители на всю высоту колонки, как в макете */
.about__feats { align-items: stretch; }
.about__f { padding-right: clamp(14px, 1.4vw, 24px); }

/* карточка квартиры: статус и стрелка — одной строкой по низу, как в макете */
.apt { grid-template-rows: auto auto; align-items: start; }
.apt__foot {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line);
}
.apt__badge { position: static; top: auto; left: auto; }
.apt__body { align-self: center; }

/* заглушка контактов в блоке заявки выглядела «недоделкой» рядом с
   вылизанными панелями — оформляем аккуратной карточкой */
.ask__contacts .stub {
  background: rgba(255,255,255,.03); border: 0; box-shadow: inset 0 0 0 1px var(--hair-2);
  border-radius: var(--r-lg); text-align: left; place-content: start; gap: 6px; padding: 20px 22px;
}
:root[data-theme="light"] .ask__contacts .stub { background: var(--panel-2); }
.ask__contacts .stub b { font-size: 14px; }
.ask__contacts .stub span { font-size: 12.5px; line-height: 1.5; }

/* ============================================================
   ЖИВЫЕ КАДРЫ В БЛОКАХ
   Все ролики сняты вертикально — ставим их туда, где слот
   вертикальный: карточка отделки, карточки-переходы, лента МОП.
   ============================================================ */
/* слой с видео у карточки отделки — это ФОН карточки, а не элемент потока:
   с position:relative он вставал колонкой слева и резал карточку пополам */
.fcard__ph--video { position: absolute; inset: 0; overflow: hidden; }
.tri__ph--video, .common__card--video { position: relative; overflow: hidden; }
.fcard__ph--video video, .tri__ph--video video, .common__card--video video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.92) contrast(1.05) brightness(.94);
}
:root[data-theme="light"] .fcard__ph--video video,
:root[data-theme="light"] .tri__ph--video video,
:root[data-theme="light"] .common__card--video video { filter: saturate(1) contrast(1.02) brightness(1.02); }
.common__card--video { cursor: default; }

/* метка «живая съёмка» на карточках с видео */
.tri__ph--video::after, .common__card--video::after {
  content: ''; position: absolute; right: 12px; top: 12px; z-index: 3;
  width: 8px; height: 8px; border-radius: 50%; background: #E06A5A;
  box-shadow: 0 0 0 4px rgba(224,106,90,.18);
  animation: livePulse 1.9s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .tri__ph--video::after, .common__card--video::after { animation: none; }
}

/* ============================================================
   Карточки отделки: реальные кадры сняты в тени, а поверх лежала
   плотная вуаль — интерьер тонул. Осветляем кадр и отводим вуаль
   вправо, чтобы левая половина оставалась картинкой.
   ============================================================ */
.fcard__ph img, .fcard__ph--video video { filter: saturate(.98) contrast(1.06) brightness(1.18); }
.fcard::after {
  background: linear-gradient(96deg,
    rgba(9,12,17,.10) 0%, rgba(9,12,17,.34) 22%, rgba(9,12,17,.82) 42%,
    rgba(9,12,17,.94) 58%, rgba(9,12,17,.97) 100%);
}
:root[data-theme="light"] .fcard__ph img,
:root[data-theme="light"] .fcard__ph--video video { filter: saturate(1.04) contrast(1.04) brightness(1.12); }
:root[data-theme="light"] .fcard::after {
  background: linear-gradient(96deg,
    rgba(255,252,246,.04) 0%, rgba(255,252,246,.34) 20%, rgba(255,252,246,.86) 40%,
    rgba(255,252,246,.95) 56%, rgba(255,252,246,.98) 100%);
}
/* текст начинается там, где вуаль уже плотная */
.fcard__in { margin-left: auto; }
@media (max-width: 900px) {
  .fcard__in { margin-left: 0; }
  .fcard::after {
    background: linear-gradient(180deg, rgba(9,12,17,.32) 0%, rgba(9,12,17,.86) 44%, rgba(9,12,17,.97) 100%);
  }
  :root[data-theme="light"] .fcard::after {
    background: linear-gradient(180deg, rgba(255,252,246,.28) 0%, rgba(255,252,246,.88) 44%, rgba(255,252,246,.98) 100%);
  }
}

/* ============================================================
   ОДИН САЙТ, ДВЕ ГАММЫ
   Тема меняет только цвет: фотографии, видео, контент и вся
   хореография первого экрана в обеих темах одинаковые.
   ============================================================ */
:root[data-theme="light"] .hero__media { background: #EDE4D6; }
:root[data-theme="light"] .hl--lit img,
:root[data-theme="light"] .hl--dark img { filter: brightness(1.34) saturate(1.02) contrast(.97); }
:root[data-theme="light"] .hero__media video { filter: brightness(1.32) saturate(1.02); }
:root[data-theme="light"] .hero__shade {
  background:
    linear-gradient(96deg, rgba(244,237,225,.95) 0%, rgba(244,237,225,.86) 24%, rgba(244,237,225,.5) 44%,
      rgba(244,237,225,.2) 62%, rgba(244,237,225,.12) 78%, rgba(244,237,225,.36) 100%),
    linear-gradient(to bottom, rgba(244,237,225,.55) 0%, rgba(244,237,225,0) 24%,
      rgba(244,237,225,0) 58%, rgba(244,237,225,.66) 90%, rgba(244,237,225,.92) 100%);
}
/* волна света и вспышка играют и здесь — мягче, чтобы не выбеливать фон */
:root[data-theme="light"] .hl__wave {
  mix-blend-mode: multiply;
  background: linear-gradient(102deg, transparent 0%, rgba(168,124,43,.05) 24%, rgba(168,124,43,.12) 44%,
    rgba(140,100,30,.16) 51%, rgba(168,124,43,.11) 58%, rgba(168,124,43,.04) 78%, transparent 100%);
}
:root[data-theme="light"] .hl__flare { mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(168,124,43,.5), rgba(168,124,43,.18) 36%, transparent 68%); }
:root[data-theme="light"] .hl__win { display: block; }
:root[data-theme="light"] .hl__win i { mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(168,124,43,.45), rgba(168,124,43,.15) 40%, transparent 70%); }

@media (max-width: 780px) {
  :root[data-theme="light"] .hero__media video { display: block; }
  :root[data-theme="light"] .hero__in::before {
    background: linear-gradient(to bottom, rgba(244,237,225,0) 0%, rgba(244,237,225,.62) 20%,
      rgba(244,237,225,.88) 55%, rgba(244,237,225,.96) 100%);
  }
}

/* акцентные блоки: та же роль, светлая гамма вместо тёмных островов */
:root[data-theme="light"] .coffee { background: linear-gradient(120deg, #F6EFE3 0%, #EFE4D3 58%, #F4EDE0 100%); }
:root[data-theme="light"] .coffee .body { color: var(--tx-2); }
:root[data-theme="light"] .coffee__name { color: var(--tx); }
:root[data-theme="light"] .coffee__tag, :root[data-theme="light"] .coffee .link-arrow { color: var(--gold-lt); }
:root[data-theme="light"] .coffee__tag { box-shadow: inset 0 0 0 1px var(--hair); }
:root[data-theme="light"] .coffee__sub { color: var(--tx-3); }
:root[data-theme="light"] .cta-band {
  background: linear-gradient(120deg, #FBF6EC, #F3EADA 55%, #F8F2E7);
  box-shadow: inset 0 0 0 1px var(--hair);
}
:root[data-theme="light"] .cta-band::before { background: radial-gradient(ellipse at center, rgba(168,124,43,.16), transparent 62%); }
:root[data-theme="light"] .cta-band h3 { color: var(--tx); }
:root[data-theme="light"] .cta-band p { color: var(--tx-2); }
:root[data-theme="light"] .cta-band .btn--gold { color: #fff; }

/* светлая тема: кадр был выбелен завесой — возвращаем зданию плотность */
:root[data-theme="light"] .hl--lit img,
:root[data-theme="light"] .hl--dark img { filter: brightness(1.16) saturate(1.06) contrast(1.02); }
:root[data-theme="light"] .hero__media video { filter: brightness(1.14) saturate(1.05); }
:root[data-theme="light"] .hero__shade {
  background:
    linear-gradient(96deg, rgba(244,237,225,.93) 0%, rgba(244,237,225,.78) 24%, rgba(244,237,225,.34) 44%,
      rgba(244,237,225,.08) 62%, rgba(244,237,225,.04) 78%, rgba(244,237,225,.26) 100%),
    linear-gradient(to bottom, rgba(244,237,225,.5) 0%, rgba(244,237,225,0) 26%,
      rgba(244,237,225,0) 60%, rgba(244,237,225,.6) 90%, rgba(244,237,225,.9) 100%);
}

/* ============================================================
   ПАРКИНГ И ЗАРЯДКА — два преимущества, которых нет у соседей
   ============================================================ */
.perks {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  margin-top: var(--gap);
}
@media (max-width: 900px) { .perks { grid-template-columns: 1fr; } }

.perk {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-cut) var(--r) var(--r-cut) var(--r);
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease-out);
}
.perk:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 34px 68px -46px #000; transform: translateY(-4px); }
:root[data-theme="light"] .perk { background: var(--panel); }
:root[data-theme="light"] .perk:hover { box-shadow: inset 0 0 0 1px var(--gold), 0 30px 60px -44px rgba(60,45,20,.45); }

.perk__media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--panel-2); }
.perk__media picture { display: block; width: 100%; height: 100%; }
.perk__media img, .perk__media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.2s var(--ease-out);
}
.perk:hover .perk__media img { transform: scale(1.04); }
.perk__media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(7,10,14,.55), transparent 42%);
}
:root[data-theme="light"] .perk__media::after {
  background: linear-gradient(to top, rgba(40,32,18,.34), transparent 44%);
}

/* характеристика крупно, поверх кадра */
.perk__spec {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  padding: 9px 18px; border-radius: 999px;
  background: var(--gold-grad); color: #14100A;
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 10px 26px -12px rgba(201,162,74,.8);
}
:root[data-theme="light"] .perk__spec { color: #fff; }

/* маленькая врезка с лифтом */
.perk__inset {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  width: clamp(84px, 9vw, 118px); aspect-ratio: 3/4; overflow: hidden;
  border-radius: 14px; box-shadow: 0 14px 34px -16px #000, inset 0 0 0 1px var(--hair);
}
.perk__inset picture { display: block; width: 100%; height: 100%; }
.perk__inset img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .perk__inset { width: 72px; right: 12px; bottom: 12px; } }

.perk__tx { padding: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 12px; }
.perk__t { font-size: clamp(17px, 1.5vw, 22px); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.perk__tx .body { margin: 0; }

/* «живая съёмка» — точка на карточке с видео */
.perk--video .perk__media::before {
  content: ''; position: absolute; right: 14px; top: 14px; z-index: 3;
  width: 8px; height: 8px; border-radius: 50%; background: #E06A5A;
  box-shadow: 0 0 0 4px rgba(224,106,90,.18);
  animation: livePulse 1.9s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) { .perk--video .perk__media::before { animation: none; } }

/* ============================================================
   ВЫБОР КВАРТИРЫ НА ДОМЕ
   Разметка снята с реального фото фасада: 14 секций × 5 этажей.
   Подсветка живёт на opacity/transform — композитинг на GPU.
   ============================================================ */
.fac { margin: clamp(40px, 5vw, 72px) 0 clamp(30px, 3.4vw, 48px); }

.fac__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(20px, 3vw, 48px); flex-wrap: wrap; margin-bottom: clamp(18px, 2vw, 28px);
}
.fac__intro { max-width: 46ch; }
.fac__ttl {
  margin: 12px 0 0; font-size: clamp(24px, 3vw, 42px); font-weight: 800;
  line-height: 1.08; letter-spacing: -.015em; text-transform: uppercase;
}
.fac__sub { margin: 12px 0 0; color: var(--tx-2); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; max-width: 44ch; }

/* столбик этажей */
.fac__floors { display: flex; gap: 6px; flex-wrap: wrap; }
.ffl {
  --on: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 58px; padding: 9px 12px 8px; cursor: pointer;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border: 1px solid var(--line); border-radius: var(--r); color: var(--tx-2);
  transition: color .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease), transform .28s var(--ease);
}
.ffl b { font-size: 17px; font-weight: 800; line-height: 1; color: var(--tx); transition: color .28s var(--ease); }
.ffl span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.ffl:hover { border-color: var(--hair); transform: translateY(-2px); }
.ffl.is-on { background: var(--gold-grad); border-color: transparent; color: #1B1712; }
.ffl.is-on b { color: #1B1712; }

/* сцена */
.fac__stage { position: relative; }
.fac__scroll { overflow: hidden; border-radius: var(--r-lg); }
.fac__frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  isolation: isolate;
  /* размытая подложка кадра — пока грузится фото, рамка не зияет пустотой */
  background: var(--bg-2) url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABMNDhEODBMRDxEVFBMXHTAfHRoaHToqLCMwRT1JR0Q9Q0FMVm1dTFFoUkFDX4JgaHF1e3x7SlyGkIV3j214e3b/2wBDARQVFR0ZHTgfHzh2T0NPdnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnb/wAARCAAVACADASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAABAAGAgX/xAAnEAABAwQBAwMFAAAAAAAAAAABAgMRAAQFIRIxUWETIkEjM3GBkf/EABcBAAMBAAAAAAAAAAAAAAAAAAABAgP/xAAaEQEBAAMBAQAAAAAAAAAAAAABAAIxQRJR/9oADAMBAAIRAxEAPwDTP3lvbfedSkxPGdn9UNzNthfFhh14fKo4ie26z15lX03K1u2i0qUvqB1gRRRmlAFAQQ4FbKt1n6eFYH299zJZB5YW16du2NcT7589KZin7hS1ouHi9O5IAj8eKy7ebHphKm5VJ0DFLssrcwSxb/VnQJEEfPWpHLs0x5c3bi1JTdhRStxRJCe41QkOoK+TrLbneRE/yqqh3BorJNtusC4bQGyr2lMzMaop0xKiVQeEKMgeR2qqqsZN/9k=') center/cover no-repeat;
}
.fac__frame img { opacity: 0; transition: opacity .6s var(--ease), transform 1.4s var(--ease-out); }
.fac.is-img .fac__frame img { opacity: 1; }
.fac__frame picture, .fac__frame img { display: block; width: 100%; height: auto; }
/* камера: при выборе этажа плавно наезжает на него */
.fac__cam {
  position: relative; transform-origin: 50% 50%;
  transition: transform 1.15s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.fac__frame img { transform: scale(1.03); transition: transform 1.4s var(--ease-out), filter .5s var(--ease); }
.fac.is-in.is-img .fac__frame img { transform: scale(1); }
/* дом просыпается: из темноты под лучом — тогда золотая волна читается по кирпичу */
.fac.is-in.is-img .fac__frame img { animation: facWake 2.4s var(--ease-out) both; }
/* специфичность выше, чем у правила выше, иначе залипший filter съест подсветку этажа */
.fac.is-in.is-img.is-ready .fac__frame img { animation: none; }
@keyframes facWake {
  0%   { filter: brightness(.34) saturate(.62); }
  60%  { filter: brightness(.60) saturate(.84); }
  100% { filter: brightness(1)   saturate(1); }
}
/* небо растворяем в фоне секции — в обеих темах */
.fac__frame::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 27%; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 42%, transparent) 46%, transparent 100%);
}
.fac__frame::after {
  content: ''; position: absolute; inset: auto 0 0; height: 22%; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 88%, transparent), transparent);
}

/* слой квартир */
.fac__svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; }
.fc {
  fill: url(#facLit); fill-opacity: 0;
  stroke: var(--gold-lt); stroke-width: 1.2; stroke-opacity: 0;
  vector-effect: non-scaling-stroke; cursor: pointer;
  transition: fill-opacity .34s var(--ease), stroke-opacity .34s var(--ease);
}
/* проявление при въезде в экран — волной слева направо и снизу вверх */
.fac:where(.is-in.is-img) .fc { animation: fcIn 1.7s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes fcIn {
  0%   { stroke-opacity: 0;   fill-opacity: 0; }
  35%  { stroke-opacity: 1;   fill-opacity: .50; }
  100% { stroke-opacity: .14; fill-opacity: 0; }
}
/* наведение: окно загорается */
.fc:hover, .fc.is-hot {
  fill-opacity: .78; stroke-opacity: 1; stroke-width: 2.2;
  animation: none;
}
/* выбранный этаж горит целиком, волной вдоль дома */
.fac__svg[data-sel] .fc { transition-delay: 0ms; }
.fac__svg[data-sel="6"] .fc[data-f="6"], .fac__svg[data-sel="5"] .fc[data-f="5"],
.fac__svg[data-sel="4"] .fc[data-f="4"], .fac__svg[data-sel="3"] .fc[data-f="3"],
.fac__svg[data-sel="2"] .fc[data-f="2"] {
  fill-opacity: .58; stroke-opacity: .95; animation: none;
  transition-delay: calc(var(--d, 0ms) * .55);
}
/* когда этаж выбран — остальной дом уходит в тень */
.fac__frame.is-sel img { filter: brightness(.62) saturate(.85); }
.fac__frame.is-hot img { filter: brightness(.78) saturate(.92); }

/* луч-сканер при появлении */
.fac__scan {
  position: absolute; left: 0; right: 0; height: 26%; z-index: 4; pointer-events: none;
  opacity: 0; transform: translateY(100%);
  background: linear-gradient(to top, transparent, color-mix(in srgb, var(--gold-lt) 40%, transparent) 55%, transparent);
  border-top: 2px solid color-mix(in srgb, var(--gold-lt) 90%, transparent);
}
.fac.is-in.is-img .fac__scan { animation: facScan 2.4s cubic-bezier(.4,0,.2,1) .15s 1 both; }
@keyframes facScan {
  0%   { opacity: 0; transform: translateY(340%); }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-120%); }
}

/* карточка квартиры у курсора */
.fac__card {
  position: absolute; z-index: 7; left: 0; top: 0; pointer-events: none;
  display: grid; gap: 2px; min-width: 190px; padding: 13px 16px 12px;
  border-radius: 14px; text-align: left;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid var(--hair);
  box-shadow: 0 26px 60px -28px rgba(0,0,0,.8), 0 0 0 1px color-mix(in srgb, var(--gold) 10%, transparent) inset;
  opacity: 0; transform: translate(-50%, -128%) scale(.94);
  transition: opacity .18s var(--ease), transform .3s var(--ease);
  backdrop-filter: blur(12px);
}
.fac__card.is-on { opacity: 1; transform: translate(-50%, -142%) scale(1); }
.fcd__f { font-size: 19px; font-weight: 800; line-height: 1.1; color: var(--tx); }
.fcd__t { font-size: 12.5px; color: var(--tx-2); }
.fcd__a { font-size: 12.5px; color: var(--tx-2); font-variant-numeric: tabular-nums; }
.fcd__go {
  margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--gold);
}
.fcd__go i { width: 14px; height: 1px; background: currentColor; position: relative; }
.fcd__go i::after {
  content: ''; position: absolute; right: 0; top: -2px;
  width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* подпись по первому этажу */
.fac__base {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; margin: 0;
  padding: 14px clamp(14px, 2vw, 26px); text-align: center;
}
.fac__base span {
  display: inline-block; padding: 7px 15px; border-radius: 999px;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2);
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

/* низ блока */
.fac__foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 14px; margin-top: 16px;
}
.fac__legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; }
.fl { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--tx-2); }
.fl i { width: 9px; height: 9px; border-radius: 50%; }
.fl--free i { background: var(--ok); }
.fl--res  i { background: var(--hold); }
.fl--sold i { background: var(--gone); }
.fac__note { margin: 0; font-size: 12.5px; color: var(--tx-3); }

@media (max-width: 980px) {
  .fac__head { flex-direction: column; align-items: stretch; }
  .fac__floors { justify-content: space-between; }
  .ffl { flex: 1; min-width: 0; padding: 8px 4px 7px; }
  .fac__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .fac__scroll::-webkit-scrollbar { display: none; }
  .fac__frame { width: 190%; }
  .fac__base span { font-size: 10px; padding: 6px 12px; }
  .fac__tip { padding: 7px 12px; }
  .fac__tip b { font-size: 13px; }
}
@media (max-width: 560px) { .fac__frame { width: 200%; } }

@media (prefers-reduced-motion: reduce) {
  .fac .fc, .fac .fac__scan { animation: none; }
  .fac__frame img, .fac.is-in .fac__frame img { transform: none; transition: none; }
}

/* после волны появления анимацию снимаем — дальше живут только состояния */
.fac:where(.is-ready) .fc { animation: none; stroke-opacity: .14; }
/* «в квартире включили свет» — тихая фоновая жизнь дома */
.fc.is-lit { fill-opacity: .34; stroke-opacity: .34; transition: fill-opacity 1.5s var(--ease), stroke-opacity 1.5s var(--ease); }
.fc:hover { transition: fill-opacity .22s var(--ease), stroke-opacity .22s var(--ease); }

/* окно светится по-настоящему: тёплый ореол наружу */
.fc:hover, .fc.is-hot, .fc:focus-visible { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--gold-lt) 75%, transparent)); }
.fac__svg[data-sel] .fc[data-f]:not(:hover) { filter: none; }
.fac__svg[data-sel] .fc[data-f]:hover,
.fac__svg[data-sel] .fc[data-f]:focus-visible { fill-opacity: .82; stroke-opacity: 1; stroke-width: 2.4; }

/* факты и кнопка под домом */
.fac__facts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0; font-size: 13px; color: var(--tx-2); }
.fac__facts b { font-family: var(--ff); font-weight: 800; font-size: 16px; color: var(--tx); margin-right: 5px; }
.fac__facts span { display: inline-flex; align-items: baseline; }
.fac__cta { flex: 0 0 auto; }
@media (max-width: 560px) { .fac__foot { flex-direction: column; align-items: stretch; } .fac__cta { width: 100%; } }

/* подпись по первому этажу живёт над областью прокрутки, а не внутри широкого кадра */
.fac__stage { position: relative; }
@media (max-width: 980px) { .fac__base { bottom: 34px; } }

/* прицел за курсором — тонкое золотое кольцо */
.fac__ring {
  position: absolute; z-index: 6; left: 0; top: 0; width: 26px; height: 26px;
  margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--gold-lt) 70%, transparent);
  opacity: 0; transform: scale(.6);
  transition: opacity .25s var(--ease), transform .3s var(--ease), width .3s var(--ease), height .3s var(--ease);
}
.fac__frame.is-live .fac__ring { opacity: .75; transform: scale(1); }
.fac__frame.is-hot  .fac__ring { width: 46px; height: 46px; margin: -23px 0 0 -23px; opacity: 1; }
@media (hover: none) { .fac__ring { display: none; } }

/* крупный номер выбранного этажа в углу кадра */
.fac__badge {
  position: absolute; z-index: 6; right: clamp(14px, 2vw, 30px); top: clamp(12px, 1.8vw, 26px);
  font-size: clamp(38px, 5vw, 76px); font-weight: 800; line-height: .9; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--gold-lt) 55%, transparent);
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.fac__badge.is-on { opacity: 1; transform: none; }
.fac__badge small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  -webkit-text-stroke: 0; color: var(--gold); text-align: right; margin-top: 6px; }

/* соседи по этажу подсвечиваются едва заметно — читается линия этажа */
.fc.is-row { fill-opacity: .13; stroke-opacity: .40; }
/* активные состояния идут ПОСЛЕ .is-row — та же специфичность, побеждает последнее */
.fc:hover, .fc.is-hot, .fc:focus-visible {
  fill-opacity: .78; stroke-opacity: 1; stroke-width: 2.2; animation: none; outline: none;
}
.fc:focus-visible { stroke-width: 3; }

/* на телефоне наведения нет — текст подсказки меняем.
   media-запрос закрывает реальные устройства, класс is-touch — эмуляторы и гибриды */
.fsb--tap { display: none; }
@media (hover: none), (pointer: coarse) { .fsb--hov { display: none; } .fsb--tap { display: inline; } }
:root.is-touch .fsb--hov { display: none; }
:root.is-touch .fsb--tap { display: inline; }

/* ============================================================
   ПЛАНИРОВКИ: карточек мало — показываем их крупно, а не растягиваем сетку
   ============================================================ */
/* «мало карточек» — только на широком экране: на телефоне раздел живёт лентой,
   и grid-template-columns здесь ломал равную ширину карточек */
@media (min-width: 1200px) {
  .plans__grid--few { grid-template-columns: repeat(auto-fit, minmax(280px, 360px)); justify-content: center; }
}
.apt { height: 100%; }

/* ============================================================
   НИЖНЯЯ ПАНЕЛЬ РАЗДЕЛА — плотная плитка вместо разреженной строки
   ============================================================ */
.ibar {
  margin-top: clamp(26px, 3vw, 44px);
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr);
}
.ibar__cell, .ibar__cta {
  position: relative; text-align: left;
  padding: clamp(20px, 1.9vw, 28px);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  display: flex; flex-direction: column; gap: 10px;
}
.ibar__cell b { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.ibar__tx { font-size: 13px; color: var(--tx-3); line-height: 1.5; }
.ibar .ic-chip { margin-bottom: 2px; }

/* плитка с числами */
.ibar__cell--num { flex-direction: row; align-items: center; gap: clamp(18px, 2vw, 34px); }
.ibar__cell--num > div { display: flex; flex-direction: column; gap: 2px; }
.ibar__cell--num i {
  font-style: normal; font-size: clamp(32px, 3.2vw, 46px); font-weight: 800;
  line-height: .95; color: var(--gold-lt); letter-spacing: -.02em;
}
.ibar__cell--num span { font-size: 12.5px; color: var(--tx-3); }

/* кнопка-плитка */
.ibar__cta {
  cursor: pointer; overflow: hidden; padding-right: 76px;
  background: var(--gold-grad); box-shadow: none; color: #1B1712;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ibar__cta b { font-size: 16px; font-weight: 800; line-height: 1.25; }
.ibar__cta span { font-size: 13px; line-height: 1.45; color: rgba(27,23,18,.72); }
.ibar__cta i {
  position: absolute; right: clamp(18px, 1.8vw, 26px); top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(27,23,18,.12); transition: transform .35s var(--ease), background .3s var(--ease);
}
.ibar__cta:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -30px rgba(201,162,74,.75); }
.ibar__cta:hover i { transform: translateY(-50%) translateX(4px); background: rgba(27,23,18,.2); }

@media (max-width: 1180px) {
  .ibar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ibar__cta { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ibar { grid-template-columns: 1fr; }
  .ibar__cell, .ibar__cta { padding: 18px; }
  .ibar__cta { padding-right: 74px; }        /* текст не должен заезжать под стрелку */
  .ibar__cell--num { justify-content: space-between; }
}

/* ============================================================
   КОНФИГУРАТОР ФАСАДА: ЭТАЖ → КВАРТИРА → ЗАЯВКА
   ============================================================ */
/* шаги */
.fstep { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.fstep__i {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: 11px; padding: 11px 18px 11px 13px; min-width: 148px;
  border-radius: var(--r); background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: .5; transition: opacity .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.fstep__i i {
  grid-row: 1 / 3; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: var(--gold); box-shadow: inset 0 0 0 1px var(--hair);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.fstep__i b { font-size: 13.5px; font-weight: 700; line-height: 1.1; }
.fstep__i span { font-size: 11.5px; color: var(--tx-3); line-height: 1.2; }
.fstep__i.is-on { opacity: 1; box-shadow: inset 0 0 0 1px var(--hair); }
.fstep__i.is-on i { background: var(--gold-grad); color: #1B1712; box-shadow: none; }
.fstep__i.is-done { opacity: 1; }
.fstep__i.is-done i { color: var(--gold-lt); }
.fstep__i.is-done span { color: var(--gold-lt); }

/* ряд этажей — теперь отдельная строка, шаг 1 */
.fac__floors {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: clamp(18px, 2vw, 26px) 0 14px;
}
.fac__floors-t {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--tx-3);
  margin-right: 8px;
}
.ffl span { text-transform: none; letter-spacing: .02em; }
.fac[data-step="1"] .fac__floors { opacity: 1; }

/* панель выбора */
.fpan {
  margin-top: 14px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair-2);
  display: grid; grid-template-rows: 0fr;
  opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .4s var(--ease);
}
.fac[data-step="2"] .fpan, .fac[data-step="3"] .fpan { grid-template-rows: 1fr; opacity: 1; }
.fpan > * { min-height: 0; overflow: hidden; }
.fac[data-step="1"] .fpan { pointer-events: none; }
.fpan__pick { padding: clamp(18px, 2vw, 26px); }
.fac[data-step="3"] .fpan__pick { display: none; }
.fac[data-step="2"] .fpan__sum { display: none; }

.fpan__hd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.fpan__hd b { font-size: clamp(17px, 1.6vw, 22px); font-weight: 800; }
.fpan__note { font-size: 11.5px; color: var(--tx-3); }
.fpan__back {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; color: var(--tx-2);
  background: transparent; box-shadow: inset 0 0 0 1px var(--line);
  transition: color .3s var(--ease), box-shadow .3s var(--ease);
}
.fpan__back::before { content: '←'; font-size: 14px; line-height: 1; }
.fpan__back:hover { color: var(--gold-lt); box-shadow: inset 0 0 0 1px var(--hair); }

/* плитки квартир */
.fpan__list { display: flex; gap: 8px; flex-wrap: wrap; }
.fu {
  position: relative; cursor: pointer; min-width: 62px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 11px 10px 10px; border-radius: var(--r);
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.fu b { font-size: 16px; font-weight: 800; line-height: 1; color: var(--tx); }
.fu span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3); }
.fu:hover, .fu.is-hot { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--gold); }
.fu.is-on { background: var(--gold-grad); box-shadow: none; }
.fu.is-on b, .fu.is-on span { color: #1B1712; }

/* занятость квартиры видно прямо в списке этажа */
.fu--sold b, .fu--sold span { color: var(--tx-3); }
.fu--sold { box-shadow: inset 0 0 0 1px rgba(227, 139, 139, .35); }
.fu--sold span { color: #E38B8B; }
.fu--sold::after {
  content: ''; position: absolute; left: 12px; right: 12px; top: 50%;
  height: 1px; background: rgba(227, 139, 139, .5);
}
.fu--sold:hover, .fu--sold.is-hot { box-shadow: inset 0 0 0 1px rgba(227, 139, 139, .6); }
.fu--reserved { box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .4); }
.fu--reserved span { color: var(--gold-lt); }

/* итог */
.fpan__sum {
  display: grid; grid-template-columns: minmax(0,.62fr) minmax(0,.62fr) minmax(0, 1fr);
  gap: clamp(16px, 1.8vw, 26px); align-items: stretch;
  padding: clamp(20px, 2.2vw, 30px);
}
.fsum__k { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.fsum__t { display: block; font-size: clamp(21px, 2.1vw, 30px); font-weight: 800; line-height: 1.1; margin: 8px 0 0; }
.fsum__l { display: flex; flex-direction: column; }
.fsum__ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.fsum__ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--tx-2); line-height: 1.45; }
.fsum__ul i { flex: none; width: 5px; height: 5px; margin-top: 7px; border-radius: 50%; background: var(--gold); }
.fsum__go { width: 100%; margin-top: auto; }
.fsum__again {
  cursor: pointer; background: none; box-shadow: none; font-size: 12.5px; color: var(--tx-3);
  padding: 6px; transition: color .3s var(--ease);
}
.fsum__again:hover { color: var(--gold-lt); }

/* на шагах 2–3 кликабельны только квартиры выбранного этажа */
.fac__svg.is-lock .fc { pointer-events: none; }
.fac__svg.is-lock .fc.is-pick { pointer-events: auto; cursor: pointer; }
/* выбранная квартира горит постоянно */
.fc.is-sel { fill-opacity: .9; stroke-opacity: 1; stroke-width: 2.6; }
/* синяя рамка фокуса от браузера на тапе — не нужна */
.fc:focus { outline: none; }

@media (max-width: 900px) {
  .fstep { width: 100%; }
  .fstep__i { flex: 1; min-width: 0; padding: 9px 10px; }
  .fstep__i b { font-size: 12px; }
  .fstep__i span { font-size: 10px; }
  .fpan__sum { grid-template-columns: 1fr; }
  .fu { flex: 1; min-width: 54px; }
}

/* шаг 3: гаснет весь этаж, горит только выбранная квартира */
.fac[data-step="3"] .fac__svg[data-sel] .fc[data-f] { fill-opacity: .16; stroke-opacity: .30; }
.fac[data-step="3"] .fac__svg[data-sel] .fc[data-f].is-sel {
  fill-opacity: .95; stroke-opacity: 1; stroke-width: 2.8;
  animation: selPulse 2.6s var(--ease) infinite;
}
@keyframes selPulse {
  0%, 100% { filter: drop-shadow(0 0 6px  color-mix(in srgb, var(--gold-lt) 55%, transparent)); }
  50%      { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--gold-lt) 90%, transparent)); }
}
@media (prefers-reduced-motion: reduce) { .fac[data-step="3"] .fc.is-sel { animation: none; } }

/* ============================================================
   «Профессиональное сопровождение»: иконка и подпись — одной строкой,
   а не иконка отдельно, текст отдельно
   ============================================================ */
.infobar__mini { gap: 10px; }
.infobar__mini > div {
  flex-direction: row; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r);
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line);
}
.infobar__mini svg { flex: none; width: 20px; height: 20px; }
.infobar__mini span { font-size: 12.5px; color: var(--tx-2); }
@media (max-width: 860px) { .infobar__mini > div { padding: 11px 12px; } }

/* ============================================================
   Галерея архитектуры на телефоне — горизонтальный слайдер,
   а не столбик разновысоких плиток
   ============================================================ */
@media (max-width: 860px) {
  .arch__grid {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
    grid-template-areas: none;
  }
  .arch__grid::-webkit-scrollbar { display: none; }
  .arch__grid > .ph {
    flex: 0 0 78%; scroll-snap-align: center;
    aspect-ratio: 4/5; min-height: 0; grid-area: auto;
    border-radius: 22px;
  }
  .arch__grid > .ph img { width: 100%; height: 100%; object-fit: cover; }
}

/* ============================================================
   ФУТЕР: кинематографичная лента района с высоты
   ============================================================ */
.ftr__reel {
  position: relative; overflow: hidden;
  margin: 0 auto clamp(-90px, -6vw, -40px);
  max-width: 1280px; border-radius: var(--r-lg);
  aspect-ratio: 2 / 1; isolation: isolate;
}
.ftr__reel video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); filter: saturate(.9) contrast(1.05) brightness(.72);
  transition: transform 9s linear;
}
.ftr__reel.is-in video { transform: scale(1); }
.ftr__reel::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 0%, color-mix(in srgb, var(--bg) 55%, transparent) 70%, var(--bg) 100%),
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 45%, transparent) 0%, transparent 34%, var(--bg) 100%);
}
.ftr__reel-in {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px;
}
.ftr__reel-k, .ftr__reel-s {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-lt);
  opacity: 0; transform: translateY(12px);
}
.ftr__reel-s { color: var(--tx-2); letter-spacing: .18em; }
.ftr__reel.is-in .ftr__reel-k { animation: heroUp .9s .15s var(--ease-out) forwards; }
.ftr__reel.is-in .ftr__reel-s { animation: heroUp .9s .95s var(--ease-out) forwards; }

/* имя комплекса собирается по букве */
.ftr__word { display: flex; gap: clamp(4px, .8vw, 12px); line-height: 1; }
.ftr__word span {
  display: inline-block; font-size: clamp(44px, 9vw, 128px); font-weight: 800; letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--gold-lt) 70%, transparent);
  opacity: 0; transform: translateY(28%) rotateX(-60deg); transform-origin: 50% 100%;
}
.ftr__reel.is-in .ftr__word span {
  animation: ftrChar 1.1s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: calc(.3s + var(--i) * .09s);
}
@keyframes ftrChar {
  60%  { opacity: 1; transform: none; color: transparent; }
  100% { opacity: 1; transform: none; color: color-mix(in srgb, var(--gold-lt) 92%, transparent); }
}
/* золотая нить пробегает под именем */
.ftr__reel-line {
  position: absolute; z-index: 2; left: 50%; bottom: 22%; width: min(52%, 460px); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
  transform: translateX(-50%) scaleX(0); transform-origin: 50% 50%;
}
.ftr__reel.is-in .ftr__reel-line { animation: ftrLine 1.4s 1.1s var(--ease-out) forwards; }
@keyframes ftrLine { to { transform: translateX(-50%) scaleX(1); } }

/* ролик фасада вместо снимка в правой колонке футера */
.ftr__ph--video { position: relative; overflow: hidden; }
.ftr__ph--video video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.95) contrast(1.04) brightness(.95);
}

@media (max-width: 760px) {
  .ftr__reel { aspect-ratio: 4 / 3; border-radius: 0; margin-bottom: -30px; }
  .ftr__word span { -webkit-text-stroke-width: .8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ftr__reel video, .ftr__reel .ftr__word span, .ftr__reel-k, .ftr__reel-s, .ftr__reel-line { animation: none; transition: none; opacity: 1; transform: none; }
  .ftr__word span { color: var(--gold-lt); }
  .ftr__reel-line { transform: translateX(-50%); }
}

/* ============================================================
   КАРТА РАЙОНА — векторная, построена из данных OpenStreetMap,
   покрашена токенами сайта, поэтому живёт в обеих темах
   ============================================================ */
.gmap { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--bg-2); }
.gmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gm-green path { fill: color-mix(in srgb, var(--ok) 26%, var(--bg-2)); stroke: none; }
.gm-build path { fill: color-mix(in srgb, var(--tx) 7%, var(--bg-2)); stroke: none; }
.gm-rs   path { fill: none; stroke: color-mix(in srgb, var(--tx) 6%, transparent); stroke-width: 1.2; }
.gm-rm   path { fill: none; stroke: color-mix(in srgb, var(--tx) 14%, transparent); stroke-width: 3; }
.gm-rb   path { fill: none; stroke: var(--gold); stroke-width: 4.5; opacity: .55; }
.gmap__svg g { opacity: 0; transform: scale(1.04); transform-origin: 50% 50%; }
.loc__map.is-in .gmap__svg g { animation: gmIn 1.2s var(--ease-out) forwards; }
.loc__map.is-in .gm-build { animation-delay: .1s; }
.loc__map.is-in .gm-rs { animation-delay: .18s; }
.loc__map.is-in .gm-rm { animation-delay: .26s; }
.loc__map.is-in .gm-rb { animation-delay: .34s; }
@keyframes gmIn { to { opacity: 1; transform: none; } }

/* радар от дома */
.gmap__radar {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 1px solid var(--gold-lt); opacity: 0; pointer-events: none;
}
.loc__map.is-in .gmap__radar { animation: gmRadar 3.6s .6s var(--ease-out) infinite; }
@keyframes gmRadar {
  0%   { opacity: .8; transform: scale(1); }
  100% { opacity: 0;  transform: scale(11); }
}

/* точки */
.gp {
  position: absolute; left: var(--x); top: var(--y); z-index: 3;
  transform: translate(-50%, -50%); cursor: pointer;
  background: none; padding: 0; display: block;
  opacity: 0;
}
.loc__map.is-in .gp { animation: gmPin .7s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes gmPin { from { opacity: 0; transform: translate(-50%, -80%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.gp i {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: inset 0 0 0 1px var(--hair), 0 6px 16px -8px #000;
  color: var(--gold); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gp b {
  position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%) translateY(6px);
  display: grid; gap: 2px; white-space: nowrap; padding: 8px 13px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--tx);
  background: color-mix(in srgb, var(--panel) 95%, transparent);
  box-shadow: inset 0 0 0 1px var(--hair), 0 18px 40px -22px #000;
  opacity: 0; pointer-events: none; transition: opacity .22s var(--ease), transform .28s var(--ease);
}
.gp b span { font-size: 11px; font-weight: 500; color: var(--tx-3); }
/* точка с фотографией: сквер, ГЦК — картинка над подписью */
.gp b.gp__b--ph { padding: 7px 7px 10px; width: 210px; white-space: normal; gap: 7px; }
/* сквер и ГЦК «Өнер» — выделены на карте, о них спрашивают чаще всего */
.gm-hl--park { fill: color-mix(in srgb, #4E7A46 62%, transparent) !important; stroke: #6E9A62; stroke-width: 2; }
.gm-hl--cult { fill: color-mix(in srgb, var(--gold) 55%, transparent) !important; stroke: var(--gold); stroke-width: 2; }
.gm-hl--home { fill: color-mix(in srgb, var(--gold) 78%, transparent) !important; stroke: var(--gold-lt, var(--gold)); stroke-width: 2.5; }
.gp b.gp__b--ph picture { display: block; }
.gp b.gp__b--ph img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 7px; }
/* сквер и ГЦК «Өнер» — заказчица просила показать их явно, подпись всегда видна */
.gp--key i { background: var(--panel); box-shadow: inset 0 0 0 1px var(--gold), 0 8px 20px -10px #000; }
.gp--key b { opacity: 1; transform: translateX(-50%) translateY(0); }
.loc__map.is-in .gp--key b { animation: gmPinB .5s var(--ease-out) backwards; animation-delay: calc(var(--d, 0ms) + 140ms); }
/* подпись уходит от дома наружу, чтобы ярлыки не наезжали друг на друга */
.gp--lbottom b { bottom: auto; top: calc(100% + 9px); }
.gp--lleft b { left: auto; right: calc(100% + 9px); bottom: auto; top: 50%; transform: translateY(-50%) translateX(6px); }
.gp--lright b { left: calc(100% + 9px); right: auto; bottom: auto; top: 50%; transform: translateY(-50%) translateX(-6px); }
.gp--lleft:hover b, .gp--lleft:focus-visible b, .gp--key.gp--lleft b,
.gp--lright:hover b, .gp--lright:focus-visible b, .gp--key.gp--lright b { transform: translateY(-50%) translateX(0); }
@media (max-width: 760px) {
  /* на телефоне карта узкая: боковые ярлыки вылезают за край, поэтому все
     постоянные подписи ставим над точкой и оставляем только название */
  .gp--key.gp--lleft b, .gp--key.gp--lright b, .gp--key.gp--lbottom b {
    left: 50%; right: auto; bottom: auto; top: calc(100% + 7px);
    transform: translateX(-50%);
  }
  .gp--key b { font-size: 11px; padding: 5px 9px; }
  .gp--key b span { display: none; }
  /* карта на телефоне тесная: подпись дома уводим вправо от точки, иначе она
     ложится на ярлык сквера */
  .gp--home b { left: calc(100% + 8px); bottom: auto; top: 50%; transform: translateY(-50%); }
  .gp--key { z-index: 5; }
  .loc__map { min-height: 380px; }
}
@keyframes gmPinB { from { opacity: 0; transform: translateX(-50%) translateY(6px); } }
.gp:hover, .gp:focus-visible { z-index: 5; outline: none; }
.gp:hover i, .gp:focus-visible i { transform: scale(1.18); box-shadow: inset 0 0 0 1px var(--gold), 0 8px 20px -8px #000; }
.gp:hover b, .gp:focus-visible b { opacity: 1; transform: translateX(-50%) translateY(0); }

/* дом — крупнее и всегда подписан */
.gp--home { z-index: 4; }
.gp--home i { width: 42px; height: 42px; background: var(--gold-grad); color: #1B1712; box-shadow: 0 10px 26px -10px rgba(201,162,74,.9); }
.gp--home b {
  opacity: 1; transform: translateX(-50%); bottom: calc(100% + 22px);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lt);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}
.gp--home:hover i { transform: scale(1.06); }

.gmap__scale {
  position: absolute; left: 16px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3);
}
.gmap__scale i { display: block; width: 46px; height: 1px; background: var(--tx-3); position: relative; }
.gmap__scale i::before, .gmap__scale i::after {
  content: ''; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--tx-3);
}
.gmap__scale i::before { left: 0; } .gmap__scale i::after { right: 0; }

.loc__hint { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0 0; font-size: 12.5px; color: var(--tx-3); line-height: 1.5; }
.loc__hint svg { flex: none; margin-top: 2px; color: var(--gold); }

@media (max-width: 760px) {
  .gp i { width: 22px; height: 22px; }
  .gp--home i { width: 34px; height: 34px; }
  .gp b { font-size: 11.5px; padding: 7px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .gmap__svg g { opacity: 1; transform: none; animation: none !important; }
  .gp { opacity: 1; animation: none !important; }
  .gmap__radar { animation: none !important; opacity: 0; }
}

/* ===== выбранная квартира: план и интерьер рядом ===== */
.fsum__fig {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg);
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hair-2);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(18px) scale(.97);
}
.fac[data-step="3"] .fsum__fig { animation: fsumIn .8s var(--ease-out) forwards; }
.fac[data-step="3"] .fsum__fig--plan  { animation-delay: .08s; }
.fac[data-step="3"] .fsum__fig--video { animation-delay: .2s; }
.fac[data-step="3"] .fsum__l          { animation: fsumIn .8s .32s var(--ease-out) forwards; opacity: 0; }
@keyframes fsumIn { to { opacity: 1; transform: none; } }

.fsum__fig--plan img {
  width: 100%; flex: 1; min-height: 0; object-fit: contain;
  background: #FFFFFF; padding: 14px; aspect-ratio: 4 / 3;
}
.fsum__fig--plan .stub { flex: 1; aspect-ratio: 4 / 3; }
.fsum__fig--video video,
.fsum__fig--video picture, .fsum__fig--video img {
  width: 100%; flex: 1; min-height: 0; object-fit: cover; aspect-ratio: 4 / 3; display: block;
  filter: saturate(.95) contrast(1.04) brightness(.98);
}
.fsum__fig figcaption {
  display: grid; gap: 3px; padding: 12px 15px 14px;
  border-top: 1px solid var(--line);
}
.fsum__fig figcaption span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.fsum__fig figcaption b { font-size: 12.5px; font-weight: 600; color: var(--tx-2); line-height: 1.35; }
/* точка «живая съёмка» на ролике */
.fsum__fig--video:has(video)::before {
  content: ''; position: absolute; right: 12px; top: 12px; z-index: 3;
  width: 7px; height: 7px; border-radius: 50%; background: #E06A5A;
  box-shadow: 0 0 0 4px rgba(224,106,90,.18);
  animation: livePulse 1.9s var(--ease) infinite;
}
/* золотая нить под заголовком выбора */
.fsum__rule {
  display: block; width: 74px; height: 1px; margin: 14px 0 16px;
  background: linear-gradient(90deg, var(--gold-lt), transparent);
  transform: scaleX(0); transform-origin: left;
}
.fac[data-step="3"] .fsum__rule { animation: fsumRule .9s .5s var(--ease-out) forwards; }
@keyframes fsumRule { to { transform: scaleX(1); } }

@media (max-width: 1100px) {
  .fpan__sum { grid-template-columns: 1fr 1fr; }
  .fsum__l { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .fpan__sum { grid-template-columns: 1fr; }
  .fsum__fig--plan img, .fsum__fig--video video, .fsum__fig--video img { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .fsum__fig, .fsum__l { opacity: 1 !important; transform: none !important; animation: none !important; }
  .fsum__rule { transform: scaleX(1); animation: none; }
  .fsum__fig--video::before { animation: none; }
}

/* длинные слова в крупных заголовках не должны распирать узкий экран */
@media (max-width: 620px) {
  .h1, .h2, .fcard__t, .fac__ttl { overflow-wrap: break-word; hyphens: auto; }
  .h1 i, .h2 i, .split i { overflow-wrap: break-word; }
}

/* карточка без чертежа: тёмное поле в гамме сайта, а не белая дыра */
.apt__plan--soon { background: var(--panel-2) !important; cursor: default; }
.apt__plan--soon .stub {
  background: none; border: 1px dashed var(--hair-2); color: var(--tx-3);
  display: grid; gap: 4px; place-items: center; padding: 18px; border-radius: var(--r);
}
.apt__plan--soon .stub b { color: var(--tx-2); font-size: 13px; }
.apt__plan--soon .stub span { font-size: 11px; color: var(--tx-3); }
.apt__plan--soon .stub svg { color: var(--gold); opacity: .55; }
/* то же в карточке выбранной квартиры */
.fsum__fig--plan .stub {
  background: var(--panel-2); border: 1px dashed var(--hair-2); color: var(--tx-3);
  display: grid; gap: 4px; place-items: center; margin: 14px; border-radius: var(--r);
}
.fsum__fig--plan .stub b { color: var(--tx-2); font-size: 13px; }
.fsum__fig--plan .stub svg { color: var(--gold); opacity: .55; }

/* слой с фото/видео у карточки отделки — всегда фон карточки.
   мобильное правило .rv--clip делало его position:relative, и слой
   схлопывался в пару пикселей: фото исчезало, оставалась чёрная плашка */
.fcard__ph, .fcard__ph.rv--clip { position: absolute; inset: 0; overflow: hidden; }

/* Метаданные выбранной квартиры: этаж, подъезд и статус отдельной строкой. */
.fsum__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.fsum__meta i {
  font-style: normal; font-size: 12.5px; letter-spacing: .02em;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .78);
}
.fsum__meta i.is-free     { color: #7BD69B; border-color: rgba(123, 214, 155, .35); background: rgba(123, 214, 155, .10); }
.fsum__meta i.is-reserved { color: #E7C071; border-color: rgba(231, 192, 113, .35); background: rgba(231, 192, 113, .10); }
.fsum__meta i.is-sold     { color: #E38B8B; border-color: rgba(227, 139, 139, .35); background: rgba(227, 139, 139, .10); }

/* Занятые квартиры видно прямо на фасаде: проданные гаснут и подсвечиваются
   тёплым красным, забронированные — янтарным. Свободные остаются золотыми. */
.fc.is-sold     { stroke: #E38B8B; }
.fc.is-reserved { stroke: #E7C071; }
.fc.is-sold:hover, .fc.is-sold.is-hot, .fc.is-sold.is-sel {
  fill: #E38B8B; fill-opacity: .42; stroke-opacity: 1;
}
.fc.is-reserved:hover, .fc.is-reserved.is-hot, .fc.is-reserved.is-sel {
  fill: #E7C071; fill-opacity: .45; stroke-opacity: 1;
}
.fc.is-sold:hover, .fc.is-sold.is-hot { filter: drop-shadow(0 0 10px rgba(227,139,139,.55)); }
