/* ЖК «Новый Квартал» — Градосфера
   Тёмный «кирпичный» графит, кремовый текст, медный акцент (из логотипа).
   Крупная классическая антиква Forum + гротеск Onest. */
:root {
  --bg: rgb(15,18,27);
  --bg-2: #212125;
  --line: rgba(239, 231, 218, .14);
  --cream: #efe7da;
  --muted: rgba(239, 231, 218, .62);
  --copper: #c98a5b;
  --copper-2: #b37446;
  --serif: "Forum", "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gut: max(20px, 4vw);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--cream); font: 300 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--copper); outline-offset: 4px; }
body.lock { overflow: hidden; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: max(var(--gut), var(--safe-l)); padding-right: max(var(--gut), var(--safe-r)); }
.sec { padding-block: clamp(90px, 12vw, 170px); position: relative; }
.h2 { font-family: var(--serif); font-size: clamp(40px, 6.2vw, 96px); line-height: .98; text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; }
.h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); text-transform: uppercase; line-height: 1; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; font-weight: 400; }
.muted { color: var(--muted); }
.tag { display: inline-block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--copper); font-weight: 500; }
.ta-r { text-align: right; }
.fine { font-size: 12px; color: var(--muted); margin-top: 22px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border: 1px solid rgba(239, 231, 218, .45); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.btn:hover { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.btn--fill { background: var(--copper); border-color: var(--copper); color: #1b1410; }
.btn--fill:hover { background: var(--cream); border-color: var(--cream); }

/* ---------- фон «стройка» ---------- */
.build-bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 0; pointer-events: none; }
.build-fg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 4; pointer-events: none; }
main, .ftr { position: relative; z-index: 1; }
.build-hud { position: fixed; z-index: 2; left: max(var(--gut), var(--safe-l)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--copper); font-weight: 500; opacity: 0; transition: opacity .5s; pointer-events: none; }
body.past-hero .build-hud { opacity: 1; }
.build-hud__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--copper); animation: ping 2.4s infinite; }

/* ---------- header ---------- */
.hdr { position: fixed; z-index: 60; top: 0; right: 0; bottom: auto; left: 0; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(18px + env(safe-area-inset-top, 0px)) max(var(--gut), var(--safe-r)) 18px max(var(--gut), var(--safe-l)); transition: background .4s, padding .4s; }
.hdr::after { content: ""; position: absolute; left: max(var(--gut), var(--safe-l)); right: max(var(--gut), var(--safe-r)); bottom: 0; height: 1px; background: var(--line); }
.hdr.is-solid { background: rgba(18, 18, 20, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
.hdr__call { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; font-weight: 500; }
.hdr__call-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 0 rgba(201, 138, 91, .6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(201, 138, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 138, 91, 0); } }
.hdr__brand { text-align: center; line-height: 1; }
.hdr__name { display: block; font-family: var(--serif); font-size: 24px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.hdr__sub { display: block; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--copper); margin-top: 6px; }
.hdr__menu { justify-self: end; display: inline-flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; min-height: 44px; }
.hdr__lines { width: 28px; height: 10px; position: relative; }
.hdr__lines i { position: absolute; right: 0; height: 1px; background: currentColor; transition: transform .4s, width .4s, top .4s; }
.hdr__lines i:first-child { top: 0; width: 28px; } .hdr__lines i:last-child { top: 9px; width: 18px; }
.hdr__menu[aria-expanded="true"] .hdr__lines i:first-child { top: 5px; transform: rotate(45deg); }
.hdr__menu[aria-expanded="true"] .hdr__lines i:last-child { top: 5px; width: 28px; transform: rotate(-45deg); }

/* ---------- menu ---------- */
.menu { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 55; background: var(--bg); clip-path: inset(0 0 100% 0); transition: clip-path .7s cubic-bezier(.77, 0, .18, 1); visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__inner { height: 100%; display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 40px; padding: 120px max(var(--gut), var(--safe-r)) calc(50px + env(safe-area-inset-bottom, 0px)) max(var(--gut), var(--safe-l)); overflow-y: auto; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list a { display: flex; align-items: baseline; gap: 18px; font-family: var(--serif); font-size: clamp(34px, 5vw, 70px); line-height: 1.12; text-transform: uppercase; transition: color .3s, padding .3s; }
.menu__list a span { font-family: var(--sans); font-size: 12px; color: var(--copper); letter-spacing: .1em; }
.menu__list a:hover { color: var(--copper); padding-left: 10px; }
.menu__aside { color: var(--muted); }
.menu__phone { display: block; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); color: var(--cream); margin-bottom: 12px; }

/* ---------- hero ---------- */
.hero { height: 220vh; position: relative; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__img { position: absolute; top: -4%; right: -4%; bottom: -4%; left: -4%; inset: -4%; background-size: cover; background-position: center 40%; will-change: transform, opacity; }
.hero__img--eve { opacity: 0; }
.hero__shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: linear-gradient(180deg, rgba(24,24,27,.6) 0%, rgba(24,24,27,.1) 24%, rgba(24,24,27,.28) 50%, rgba(24,24,27,.88) 100%), linear-gradient(90deg, rgba(24,24,27,.45) 0%, rgba(24,24,27,0) 55%); }
.hero__title { text-shadow: 0 2px 40px rgba(10, 10, 12, .45); position: absolute; left: max(var(--gut), var(--safe-l)); right: max(var(--gut), var(--safe-r)); bottom: 21vh; font-family: var(--serif); font-size: clamp(64px, 14.5vw, 250px); line-height: .84; text-transform: uppercase; letter-spacing: -.01em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__line > span { display: inline-block; }
.hero__line--r { text-align: right; }
.hero__lead { position: absolute; left: max(var(--gut), var(--safe-l)); top: calc(118px + env(safe-area-inset-top, 0px)); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; }
.hero__progress { position: absolute; right: max(var(--gut), var(--safe-r)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero__progress i { width: 1px; height: 120px; background: var(--line); position: relative; }
.hero__progress b { position: absolute; left: -.5px; top: 0; width: 2px; height: 100%; background: var(--copper); transform-origin: top; transform: scaleY(0); }
.hero__foot { position: absolute; left: max(var(--gut), var(--safe-l)); right: max(var(--gut), var(--safe-r)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.7; font-weight: 500; }
.hero__scroll { color: var(--muted); }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--cream), transparent); animation: drip 2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- about + stats ---------- */
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.about__text { display: grid; gap: 26px; padding-top: 10px; justify-items: start; }
.stats { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: clamp(24px, 3vw, 48px); margin-top: clamp(80px, 10vw, 150px); align-items: start; }
.stats__col { display: grid; gap: clamp(40px, 5vw, 80px); min-width: 0; }
.stats__col--mid { padding-top: clamp(40px, 6vw, 110px); }
.stats__col--r { padding-top: clamp(0px, 2vw, 30px); }
.stats__img { margin: 0; overflow: hidden; }
.stats__img img { width: 100%; height: 100%; object-fit: cover; }
.stats__img--wide { aspect-ratio: 4 / 3; }
.stats__img--tall { aspect-ratio: 3 / 4; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 9vw, 150px); line-height: .9; font-variant-numeric: tabular-nums; }
.stat b.word { font-size: clamp(48px, 6vw, 96px); text-transform: uppercase; }
.stat > span { display: block; margin-top: 12px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ---------- facade reveal ---------- */
.facade { height: 260vh; position: relative; }
.facade__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.facade__mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; clip-path: inset(14% 44% 14% 44%); will-change: clip-path; }
.facade__mask img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); will-change: transform; }
.facade__mask::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: rgba(18, 18, 20, .45); }
.facade__copy { position: relative; z-index: 2; text-align: center; max-width: 900px; padding-left: max(var(--gut), var(--safe-l)); padding-right: max(var(--gut), var(--safe-r)); display: grid; gap: 26px; justify-items: center; }
.facade__copy p { max-width: 560px; color: rgba(239, 231, 218, .85); }

.arch { padding-top: clamp(70px, 8vw, 120px); }
.arch__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.arch__item { padding: 36px 32px 10px 0; display: grid; gap: 14px; align-content: start; }
.arch__item + .arch__item { padding-left: 32px; border-left: 1px solid var(--line); }
.arch__item h3 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); text-transform: uppercase; line-height: 1.05; }
.arch__item p { color: var(--muted); }

/* ---------- marquee ---------- */
.marq { position: relative; height: clamp(420px, 70vh, 760px); overflow: hidden; display: flex; align-items: flex-end; }
.marq__bg { position: absolute; top: -12%; right: 0; bottom: -12%; left: 0; inset: -12% 0; background-size: cover; background-position: center; }
.marq::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--bg) 0%, rgba(24,24,27,.1) 30%, rgba(24,24,27,.2) 70%, var(--bg) 100%); }
.marq__row { position: relative; z-index: 2; display: flex; white-space: nowrap; font-family: var(--serif); font-size: clamp(80px, 15vw, 240px); line-height: 1; text-transform: uppercase; padding-bottom: 4vh; will-change: transform; }
.marq__row span { padding-right: .3em; }

/* ---------- flats ---------- */
.sec-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 30px 60px; align-items: end; margin-bottom: clamp(40px, 5vw, 70px); }
.flats__tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.ftab { padding: 18px 20px 16px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color .3s, border-color .3s; }
.ftab:hover { color: var(--cream); }
.ftab.is-active { color: var(--cream); border-color: var(--copper); }
.flat { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.flat__plan { background: var(--cream); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 6%; cursor: zoom-in; position: relative; }
.flat__plan img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .35s; }
.flat__noimg { color: #5a5048; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.flat__info { display: grid; gap: 22px; justify-items: start; }
.flat__area { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); }
.flat__area b { font-weight: 400; font-size: clamp(72px, 8vw, 128px); line-height: .9; }
.flat__area span { font-size: 30px; }
.flat__variants { display: flex; flex-wrap: wrap; gap: 8px; }
.flat__variants button { padding: 9px 14px; border: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; transition: border-color .3s, color .3s; }
.flat__variants button:hover, .flat__variants button.is-active { border-color: var(--copper); color: var(--copper); }
.extra { display: grid; grid-template-columns: minmax(0, 640px); gap: 24px; margin-top: clamp(60px, 7vw, 100px); }
.extra__card { text-align: left; border: 1px solid var(--line); display: grid; grid-template-columns: 42% 1fr; align-items: center; transition: border-color .3s; cursor: zoom-in; }
.extra__card:hover { border-color: var(--copper); }
.extra__card img { background: var(--cream); aspect-ratio: 4 / 3; object-fit: contain; width: 100%; padding: 8px; }
.extra__card span { padding: 20px 24px; display: grid; gap: 6px; }
.extra__card b { font-family: var(--serif); font-weight: 400; font-size: 24px; text-transform: uppercase; line-height: 1.05; }
.extra__card small { color: var(--muted); font-size: 13px; }

/* ---------- life ---------- */
.life { background: rgba(26, 26, 29, .55); }
.life__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { display: grid; gap: 18px; align-content: start; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card div { display: grid; gap: 8px; }
.card h3 { font-family: var(--serif); font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.card p { color: var(--muted); font-size: 15px; }
.card--big { grid-column: 1 / -1; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: end; }
.card--big img { aspect-ratio: 16 / 9; }
.card--big h3 { font-size: clamp(32px, 3.4vw, 52px); }
.safe { margin-top: clamp(70px, 8vw, 120px); display: grid; grid-template-columns: 1fr 2fr; gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; }
.safe ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.safe li { display: grid; gap: 6px; }
.safe b { font-weight: 500; font-size: 16px; }
.safe li span { color: var(--muted); font-size: 14px; }

/* ---------- gallery ---------- */
.gallery__nav { display: flex; gap: 10px; justify-self: end; }
.round { width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; transition: background .3s, color .3s; }
.round:hover { background: var(--cream); color: var(--bg); }
.gallery__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(var(--gut), var(--safe-r)) 10px max(var(--gut), var(--safe-l)); scrollbar-width: none; cursor: grab; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: 0 0 auto; height: min(64vh, 560px); scroll-snap-align: start; overflow: hidden; cursor: zoom-in; background: var(--bg-2); }
.gallery__item img { height: 100%; width: auto; max-width: none; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.gallery__item:hover img { transform: scale(1.04); }

/* ---------- terms ---------- */
.terms__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 80px; align-items: end; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.timeline li { padding: 26px 20px 0 0; display: grid; gap: 6px; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--copper); }
.timeline span { font-family: var(--serif); font-size: clamp(36px, 4vw, 60px); line-height: 1; }
.timeline b { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.doc { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; border: 1px solid var(--line); padding: 22px 26px; transition: border-color .3s; }
.doc:hover { border-color: var(--copper); }
.doc__ico { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--copper); color: var(--copper); font-size: 12px; letter-spacing: .1em; flex-shrink: 0; }
.doc__t { display: grid; gap: 2px; min-width: 0; }
.doc__t b { font-weight: 500; font-size: 17px; }
.doc__t small { color: var(--muted); font-size: 13px; }
.doc__go { margin-left: auto; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); white-space: nowrap; }

/* ---------- contacts ---------- */
.contacts { position: relative; overflow: hidden; padding-block: clamp(110px, 14vw, 200px); }
.contacts__bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background-size: cover; background-position: center 30%; opacity: .32; }
.contacts::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--bg) 0%, rgba(24,24,27,.55) 40%, rgba(24,24,27,.7) 100%); }
.contacts__inner { position: relative; z-index: 2; display: grid; gap: clamp(40px, 5vw, 70px); }
.contacts__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 30px; border-top: 1px solid var(--line); padding-top: 30px; }
.contacts__cols > div { display: grid; gap: 10px; align-content: start; }
.contacts__cols p { font-size: 18px; font-weight: 400; }
.contacts__phone { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 54px); line-height: 1; }
.contacts__phone:hover { color: var(--copper); }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 50px 0 calc(30px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.ftr__grid { display: grid; grid-template-columns: 1fr auto auto; gap: 30px 60px; align-items: start; }
.ftr__brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 20px; letter-spacing: .14em; text-transform: uppercase; }
.ftr nav, .ftr__grid > div:last-child { display: grid; gap: 8px; }
.ftr a:hover { color: var(--copper); }
.ftr__grid span { color: var(--muted); }
.ftr__fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- fab, lightbox ---------- */
.fab { opacity: 0; pointer-events: none; transition: opacity .4s; }
body.past-hero .fab { opacity: 1; pointer-events: auto; }
.fab { display: none; position: fixed; z-index: 50; right: calc(16px + var(--safe-r)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: var(--copper); place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.fab svg { width: 24px; height: 24px; fill: #1b1410; }
.lb { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 90; background: rgba(10, 10, 11, .96); display: grid; place-items: center; padding: 70px 80px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb img.is-plan { background: var(--cream); padding: 3%; }
.lb__x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(20px + var(--safe-r)); font-size: 38px; width: 48px; height: 48px; }
.lb__arr { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; }
.lb__arr--l { left: calc(14px + var(--safe-l)); } .lb__arr--r { right: calc(14px + var(--safe-r)); }
.lb__n { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; color: var(--muted); }

/* ---------- появление фото «как на стройке» (js/reveal-fx.js) ---------- */
.fx-wrap, .fx-host { position: relative; }
.fx-wrap { overflow: hidden; }
.fx-wrap > img { display: block; width: 100%; }
.fx-clean { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-bp-img { filter: grayscale(1) invert(1) brightness(.72) contrast(1.45); }
.fx-grid { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; z-index: 2;
  background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 28px 28px; mix-blend-mode: screen; }
.fx-scan { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; z-index: 3; background: #ffffff;
  box-shadow: 0 0 12px 3px rgba(255,255,255,.95), 0 0 44px 12px rgba(255,255,255,.35); }
.fx-cover { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; perspective: 900px; }
.fx-brick { position: absolute; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(201,138,91,.35); }
.fx-board { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #1d1b1a, #252220 60%, #1a1918); box-shadow: inset -1px 0 0 rgba(201,138,91,.5); backface-visibility: hidden; }
.fx-band { position: absolute; left: 0; right: 0; background: var(--bg); box-shadow: inset 0 1px 0 rgba(201,138,91,.7); }
.fx-crane { overflow: visible !important; z-index: 3; }
.fx-cable { position: absolute; left: 50%; bottom: 100%; width: 1px; height: 100vh; background: linear-gradient(transparent, rgba(239,231,218,.7)); }
.fx-hook { position: absolute; bottom: -2px; left: -7px; width: 14px; height: 10px; border: 1.5px solid var(--copper); border-top: 0; border-radius: 0 0 8px 8px; }
.fx-weld { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.fx-weld rect { fill: none; stroke: #ffcf99; stroke-width: 2; filter: drop-shadow(0 0 4px rgba(255,180,100,.9)); }
.fx-spark { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; z-index: 4; pointer-events: none;
  background: #fff4e0; box-shadow: 0 0 10px 4px rgba(255,210,140,1), 0 0 30px 12px rgba(255,150,60,.7); }


/* ---------- схема котельной (js/boiler.js) ---------- */
.life__grid { grid-template-columns: repeat(3, 1fr); }
.boiler { margin-top: clamp(70px, 8vw, 120px); display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; border-top: 1px solid var(--line); padding-top: 40px; }
.boiler__scheme svg { width: 100%; height: auto; display: block; overflow: visible; }
.b-grid path { stroke: rgba(239,231,218,.05); stroke-width: 1; fill: none; }
.pipe { fill: none; stroke: rgba(239,231,218,.18); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.flow { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 16; opacity: 0; transition: opacity .6s; }
.flow--heat { stroke: #ff8a45; }
.flow--ret { stroke: #b9774c; }
.flow--water { stroke: #ffb27a; }
.flow--cold { stroke: #7fb2e6; }
.boiler.s1 .flow--cold, .boiler.s2 .flow--heat, .boiler.s2 .flow--ret, .boiler.s3 .flow--water { opacity: 1; animation: flowMove 1s linear infinite; }
.boiler.s2 .flow--ret { animation-duration: 1.4s; }
@keyframes flowMove { to { stroke-dashoffset: -26; } }
.boiler-box rect { fill: #1b1a19; stroke: var(--copper); stroke-width: 2; }
.boiler-box .boiler-box__panel { fill: #121214; stroke: rgba(239,231,218,.3); stroke-width: 1; }
.boiler-box__temp { fill: var(--copper); font: 600 10px var(--sans); letter-spacing: .16em; }
.flame path { fill: url(#hotG); transform-origin: 120px 236px; transform: scale(0); transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
.boiler.s1 .flame path { transform: scale(1); animation: flick .35s ease-in-out infinite alternate; }
@keyframes flick { from { transform: scale(1, 1); } to { transform: scale(.92, 1.08); } }
.rad__body { fill: #1b1a19; stroke: rgba(239,231,218,.35); stroke-width: 2; transition: fill .8s, stroke .8s; }
.rad__fins { stroke: rgba(239,231,218,.2); stroke-width: 2; fill: none; transition: stroke .8s; }
.boiler.s2 .rad__body { fill: rgba(226,104,58,.35); stroke: #ff9a4d; }
.boiler.s2 .rad__fins { stroke: rgba(255,170,110,.8); }
.heat path, .steam path { fill: none; stroke: rgba(255,170,110,.7); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.boiler.s2 .heat path { animation: rise 1.8s ease-out infinite; }
.boiler.s2 .heat path:nth-child(2) { animation-delay: .5s; } .boiler.s2 .heat path:nth-child(3) { animation-delay: 1s; }
.steam path { stroke: rgba(239,231,218,.55); }
.boiler.s3 .steam path { animation: rise 2s ease-out infinite; } .boiler.s3 .steam path:nth-child(2) { animation-delay: .8s; }
@keyframes rise { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.tap__body { fill: none; stroke: rgba(239,231,218,.6); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.drops circle { fill: #ffb27a; opacity: 0; }
.boiler.s3 .drops circle { animation: drop .9s linear infinite; }
.boiler.s3 .drops circle:nth-child(2) { animation-delay: .3s; } .boiler.s3 .drops circle:nth-child(3) { animation-delay: .6s; }
.boiler.s3 .drops circle:nth-child(4) { animation-delay: .45s; } .boiler.s3 .drops circle:nth-child(5) { animation-delay: .15s; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-6px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.b-lbl { fill: rgba(239,231,218,.55); font: 500 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.b-lbl--big { fill: var(--copper); font-size: 13px; }
.b-lbl--cold { fill: rgba(127,178,230,.8); }
.boiler__text { display: grid; gap: 22px; align-content: start; }
.boiler__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: st; }
.boiler__steps li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); opacity: .38; transition: opacity .5s; }
.boiler__steps li::before { content: "0" counter(st); grid-row: span 2; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--copper); }
.boiler__steps li b { font-weight: 500; font-size: 17px; }
.boiler__steps li span { color: var(--muted); font-size: 14px; }
.boiler__steps li.is-on { opacity: 1; }

/* схема на фото квартиры («рентген») */
.boiler--photo { grid-template-columns: 1fr; gap: 26px; }
.boiler__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.boiler--photo .boiler__scheme { position: relative; overflow: hidden; }
.boiler--photo .boiler__scheme img { width: 100%; height: auto; display: block; transition: filter 1s; }
.boiler--photo.s1 .boiler__scheme img { filter: brightness(.62) saturate(.8); }
.boiler--photo .boiler__scheme svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; }
.pipe--x { stroke: rgba(255,255,255,.12); stroke-width: 12; stroke-dasharray: 2 10; }
.boiler--photo .flow { stroke-width: 6; filter: drop-shadow(0 0 6px rgba(255,150,80,.9)); }
.boiler--photo .flow--cold { filter: drop-shadow(0 0 6px rgba(120,180,240,.9)); }
.boil-glow, .rad-glow { opacity: 0; transition: opacity 1s; }
.boiler--photo.s1 .boil-glow { opacity: 1; animation: pulseG 2s ease-in-out infinite; }
.boiler--photo.s2 .rad-glow { opacity: 1; }
@keyframes pulseG { 50% { opacity: .55; } }
.heat--x path, .steam--x path { stroke-width: 4; }
.drops--x circle { fill: #ffcf9e; }
.xlbl { opacity: 0; transition: opacity .6s; }
.xlbl line { stroke: rgba(239,231,218,.7); stroke-width: 2; }
.xlbl rect { fill: rgba(24,24,27,.82); stroke: var(--copper); stroke-width: 2; }
.xlbl text { fill: var(--cream); font: 600 20px var(--sans); letter-spacing: .12em; text-transform: uppercase; text-anchor: middle; }
.boiler--photo.s1 .xlbl[data-s="1"], .boiler--photo.s2 .xlbl[data-s="2"], .boiler--photo.s3 .xlbl[data-s="3"] { opacity: 1; }
.boiler--photo .boiler__steps { grid-template-columns: repeat(3, 1fr); gap: 0 30px; }
@media (max-width: 760px) {
  .boiler--photo .boiler__steps { grid-template-columns: 1fr; }
  .xlbl { display: none; }
}

/* рентген всего дома */
.boiler--house .boiler__scheme img { transition: filter 1s; }
.boiler--house.s1 .boiler__scheme img { filter: brightness(.5) saturate(.7) contrast(1.05); }
.hflow, .wflow { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 6; }
.hflow { stroke: #ff8a45; filter: drop-shadow(0 0 7px rgba(255,140,70,1)); }
.wflow { stroke: #ffd29a; stroke-width: 4; filter: drop-shadow(0 0 6px rgba(255,210,150,.9)); }
.branch { fill: none; stroke: #ff9a55; stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity .4s; filter: drop-shadow(0 0 5px rgba(255,140,70,.9)); }
.branch.is-on { opacity: .9; }
.fl { opacity: 0; transition: opacity .6s; }
.fl.is-on { opacity: 1; }
.bhouse rect { fill: rgba(24,24,27,.85); stroke: var(--copper); stroke-width: 2.5; transition: stroke .6s; }
.bhouse text { fill: var(--cream); font: 600 18px var(--sans); letter-spacing: .2em; text-anchor: middle; }
.bflame { fill: #ff8a45; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.boiler--house.s1 .bflame { transform: scale(1); animation: flick .35s ease-in-out infinite alternate; }
.boiler--house.s1 .bhouse rect { stroke: #ffb27a; filter: drop-shadow(0 0 10px rgba(255,150,80,.8)); }
.boiler__floor { position: absolute; right: 2.5%; top: 6%; display: flex; align-items: baseline; gap: 8px; color: var(--cream); opacity: 0; transition: opacity .5s; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.boiler__floor b { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 90px); line-height: 1; color: #ffb27a; }
.boiler__floor span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.boiler--house.s2 .boiler__floor { opacity: 1; }
@media (max-width: 760px) { .boiler__floor b { font-size: 38px; } }
@media (max-width: 1024px) { .boiler { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .life__grid { grid-template-columns: 1fr; } }


/* ---------- подземный паркинг (js/parking.js) ---------- */
.parking__scheme svg { position: static !important; width: 100%; height: auto; display: block; }
.pk-dim { fill: rgba(24,24,27,0); transition: fill .8s; }
.parking.s1 .pk-dim { fill: rgba(24,24,27,.35); }
.pk-grid path { stroke: rgba(239,231,218,.05); stroke-width: 1; }
.pk-ground { stroke: var(--copper); stroke-width: 3; }
.pk-wall { stroke: rgba(239,231,218,.35); stroke-width: 6; fill: none; }
.pk-slab { stroke: rgba(239,231,218,.25); stroke-width: 10; }
.pk-ramp { fill: none; stroke: rgba(239,231,218,.5); stroke-width: 6; stroke-linejoin: round; }
.pk-col { fill: rgba(239,231,218,.12); }
.pk-spot { stroke: rgba(239,231,218,.5); stroke-width: 3; }
.pk-spot-hl { fill: rgba(201,138,91,0); transition: fill .5s; }
.parking.s2 .pk-spot-hl { fill: rgba(255,170,90,.8); filter: drop-shadow(0 0 8px rgba(255,170,90,.9)); }
.pk-car path, .pk-car circle { fill: none; stroke: rgba(239,231,218,.45); stroke-width: 3; stroke-linejoin: round; }
.pk-car--main path, .pk-car--main circle { stroke: #ffb27a; stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(255,150,80,.8)); }
.pk-car--main .pk-win { fill: rgba(255,200,140,.25); stroke: none; filter: none; }
.pk-car--main .pk-beam { fill: rgba(255,230,180,.18); stroke: none; filter: none; }
.pk-spr path { stroke: rgba(127,178,230,.6); stroke-width: 2; } .pk-spr circle { fill: rgba(127,178,230,.7); }
.pk-shaft { fill: rgba(255,200,130,.06); stroke: rgba(255,200,130,.45); stroke-width: 2; stroke-dasharray: 6 6; }
.pk-stop { stroke: rgba(239,231,218,.25); stroke-width: 2; transition: stroke .3s; }
.pk-stop.is-on { stroke: #ffb27a; filter: drop-shadow(0 0 5px rgba(255,170,90,.9)); }
.pk-cab rect { fill: rgba(255,190,120,.25); stroke: #ffcf9e; stroke-width: 3; filter: drop-shadow(0 0 10px rgba(255,170,90,.9)); }
.pk-cab circle, .pk-cab path { fill: none; stroke: #fff2e2; stroke-width: 3; stroke-linecap: round; }
.pk-liftglow { opacity: 0; transition: opacity .6s; }
.parking.s3 .pk-liftglow { opacity: 1; }
.pk-man circle, .pk-man path { fill: none; stroke: #fff2e2; stroke-width: 3; stroke-linecap: round; }
.pk-man { opacity: 0; }
.pk-lbl { fill: rgba(239,231,218,.5); font: 600 18px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.pk-lbl--big { fill: var(--copper); font-size: 22px; }
.parking__floor { opacity: 1 !important; top: 4% !important; }
.parking .boiler__steps li { counter-increment: st; }



/* ---------- лифт сквозь дом (js/lift.js) ---------- */
.lift { position: relative; height: 560vh; }
.lift__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0d0e10; }
.lift__shaft { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; overflow: hidden; }
.lift__strip { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--n) * 100%); will-change: transform; }
.lift__slide { position: absolute; left: 0; right: 0; height: calc(100% / var(--n)); bottom: calc(var(--i) * 100% / var(--n)); }
.lift__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lift__slide::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.55), rgba(10,10,12,0) 30%, rgba(10,10,12,0) 70%, rgba(10,10,12,.55)); }
.lift__cap { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); z-index: 1; padding: 9px 18px; border-radius: 999px; background: rgba(24,24,27,.72); border: 1px solid rgba(201,138,91,.6); color: #fff; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.lift__slab { position: absolute; left: 0; right: 0; height: 9vh; bottom: calc((var(--i) + 1) * 100% / var(--n) - 4.5vh); z-index: 2;
  background: linear-gradient(#1a1a1c, #2a2826 40%, #1a1a1c); box-shadow: 0 -1px 0 var(--copper), 0 1px 0 var(--copper), 0 0 40px rgba(0,0,0,.8); }
.lift__slab::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, rgba(201,138,91,.5) 0 30px, transparent 30px 60px); }
/* стекло и рамы кабины */
.lift__glass { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,.05) 48%, rgba(255,255,255,0) 60%); }
.lift__glass i { position: absolute; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, #111, #3a3633 50%, #111); box-shadow: 0 0 20px rgba(0,0,0,.7); }
.lift__glass i:nth-child(1) { left: 6%; } .lift__glass i:nth-child(2) { right: 6%; } .lift__glass i:nth-child(3) { left: 0; right: 0; width: auto; height: 10px; top: auto; bottom: 22%; opacity: .7; }
/* табло и кнопки */
.lift__panel { position: absolute; z-index: 4; right: calc(6% + 26px); top: 50%; transform: translateY(-50%); display: grid; gap: 16px; justify-items: center;
  padding: 18px 14px; border-radius: 14px; background: rgba(14,14,16,.82); border: 1px solid rgba(201,138,91,.35); backdrop-filter: blur(6px); }
.lift__display { display: flex; align-items: center; gap: 8px; min-width: 76px; justify-content: center; padding: 8px 10px; border-radius: 8px; background: #050506; box-shadow: inset 0 0 12px rgba(255,140,60,.25); }
.lift__display b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; color: #ffb27a; text-shadow: 0 0 14px rgba(255,150,80,.9); font-variant-numeric: tabular-nums; }
.lift__arrow { color: #ffb27a; font-size: 13px; opacity: .3; transition: opacity .3s; }
.lift.moving .lift__arrow { opacity: 1; animation: liftArr .8s ease-in-out infinite; }
@keyframes liftArr { 50% { transform: translateY(-4px); } }
.lift__btns { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lift__btns li { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(239,231,218,.3); color: rgba(239,231,218,.6); font-size: 14px; font-weight: 600; transition: all .3s; }
.lift__btns li.is-on { border-color: #ffb27a; color: #1b1410; background: #ffb27a; box-shadow: 0 0 16px rgba(255,170,90,.9); }
.lift__title { position: absolute; z-index: 7; left: calc(6% + 34px); top: calc(var(--header-h, 76px) + 40px); display: grid; gap: 14px; transition: opacity .5s; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.lift.started .lift__title { opacity: 0; }
/* двери */
.lift__doors { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 5; pointer-events: none; }
.lift__doors i { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(90deg, #1f1e1d, #34312e 50%, #1f1e1d); transition: transform .05s linear; }
.lift__doors i::after { content: ""; position: absolute; top: 18%; bottom: 18%; width: 2px; background: linear-gradient(transparent, var(--copper), transparent); }
.lift__doors i:nth-child(1) { left: 0; } .lift__doors i:nth-child(1)::after { right: 22px; }
.lift__doors i:nth-child(2) { right: 0; } .lift__doors i:nth-child(2)::after { left: 22px; }
.lift__final { position: absolute; z-index: 6; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.92); display: grid; gap: 14px; justify-items: center; text-align: center; opacity: 0; transition: opacity .6s, transform .6s; pointer-events: none; }
.lift__final b { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 96px); line-height: 1; text-transform: uppercase; color: #fff; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.lift.arrived .lift__final { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lift.arrived .lift__cap { opacity: 0; }
@media (max-width: 760px) {
  .lift { height: 480vh; }
  .lift__glass i:nth-child(1) { left: 3%; } .lift__glass i:nth-child(2) { right: 3%; }
  .lift__panel { right: calc(3% + 14px); padding: 12px 8px; gap: 10px; }
  .lift__display { min-width: 56px; } .lift__display b { font-size: 30px; }
  .lift__btns li { width: 30px; height: 30px; font-size: 12px; }
  .lift__title { left: calc(3% + 22px); right: 90px; }
  .lift__cap { font-size: 10px; letter-spacing: .14em; bottom: 12%; }
}


/* лифт: подписи этажей */
.lift__cap { display: none; }
.lift__infos { position: absolute; z-index: 4; left: calc(6% + 34px); bottom: calc(10% + env(safe-area-inset-bottom, 0px)); max-width: min(480px, 60%); }
.lift__info { position: absolute; left: 0; bottom: 0; width: max-content; max-width: min(480px, 60vw); display: grid; gap: 10px; padding: 22px 26px; border-radius: 16px;
  background: rgba(14,14,16,.78); border: 1px solid rgba(201,138,91,.4); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(24px); transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.lift__info b { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 46px); line-height: 1; text-transform: uppercase; color: #fff; }
.lift__info p { margin: 0; color: rgba(239,231,218,.8); font-size: 15px; line-height: 1.55; }
.lift__info.is-on { opacity: 1; transform: none; }
.lift.arrived .lift__info { opacity: 0 !important; }
.lift__btns li { width: auto; min-width: 40px; padding: 0 6px; border-radius: 20px; }
@media (max-width: 760px) {
  .lift__infos { left: calc(3% + 18px); right: 86px; max-width: none; bottom: calc(6% + env(safe-area-inset-bottom, 0px)); }
  .lift__info { max-width: calc(100vw - 130px); padding: 14px 16px; }
  .lift__info p { font-size: 13px; }
  .lift__btns li { min-width: 30px; font-size: 11px; }
}
/* кнопка звука */
.snd { position: absolute; left: calc(max(var(--gut), var(--safe-l)) + 210px); top: 50%; transform: translateY(-50%); display: inline-flex; align-items: flex-end; gap: 3px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(239,231,218,.25); color: var(--cream); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.snd i { width: 2px; height: 6px; background: currentColor; margin-bottom: 11px; border-radius: 1px; transition: height .3s; }
.snd span { margin-left: 8px; align-self: center; }
.snd.is-on { border-color: var(--copper); color: #ffb27a; }
.snd.is-on i { animation: sndBar 1s ease-in-out infinite alternate; }
.snd.is-on i:nth-child(2) { animation-delay: .3s; } .snd.is-on i:nth-child(3) { animation-delay: .6s; }
@keyframes sndBar { from { height: 4px; } to { height: 12px; } }
@media (max-width: 1024px) { .snd { left: auto; right: calc(max(var(--gut), var(--safe-r)) + 64px); } .snd span { display: none; } .snd { padding: 0 9px; } }


/* ---------- двое строителей на качелях у кнопки звука + гид (js/mate.js, js/guide.js) ---------- */
.mate { position: fixed; z-index: 61; top: calc(var(--header-h, 76px) + env(safe-area-inset-top, 0px) - 2px); left: calc(max(var(--gut), var(--safe-l)) + 196px); display: flex; align-items: flex-start; gap: 4px; pointer-events: none; transition: opacity .4s; }
.swings { width: 120px; height: 72px; flex-shrink: 0; overflow: visible; }
.swings path, .swings circle, .guide__man path, .guide__man circle { fill: none; stroke: #efe7da; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.swings__bar { stroke: #c98a5b !important; stroke-width: 3 !important; }
.swing__rope { stroke: rgba(239,231,218,.6) !important; stroke-width: 1.4 !important; }
.swing__seat { fill: #8a6a4f; }
.mm__vest { fill: #f07832; }
.mm__hat { fill: #c98a5b; stroke: #c98a5b !important; }
.mm__phones path { stroke: #222 !important; stroke-width: 3 !important; } .mm__phones rect { fill: #ffb27a; }
.mm__brow, .mm__phones { display: none; }
.swing { transform-box: view-box; }
.swing--a { transform-origin: 37px 3px; } .swing--b { transform-origin: 113px 3px; animation: swingIdle 3.2s ease-in-out infinite; }
@keyframes swingIdle { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.mate.on .swing--a { animation: swingBig 1.6s ease-in-out infinite; }
@keyframes swingBig { 0%,100% { transform: rotate(-16deg); } 50% { transform: rotate(16deg); } }
.mate.on .mm__phones { display: inline; }
.mate.grumpy .mm--a .mm__brow { display: inline; }
.mate__notes text { fill: #ffb27a; font-size: 10px; opacity: 0; }
.mate.on .mate__notes text { animation: mateNote 2s ease-in-out infinite; } .mate.on .mate__notes text:nth-child(2) { animation-delay: 1s; }
@keyframes mateNote { 0% { opacity: 0; transform: translateY(4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.swing__rider { transition: opacity .2s; }
.mate.guide-out .swing__rider { opacity: 0; }
.mate__bubble { pointer-events: auto; position: relative; margin-top: 46px; max-width: 220px; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: #efe7da; color: #1b1410; font: 600 12px/1.35 var(--sans); text-align: left; box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: opacity .35s, transform .35s; }
.mate__bubble::before { content: ""; position: absolute; left: -6px; top: 10px; border: 6px solid transparent; border-right-color: #efe7da; border-left: 0; }
.mate.quiet .mate__bubble, .mate.on .mate__bubble { opacity: 0; transform: translateX(-6px) scale(.95); pointer-events: none; }
body.lock .mate, body.lock .guide { opacity: 0 !important; }
@media (max-width: 1024px) { .mate { left: auto; right: calc(max(var(--gut), var(--safe-r)) + 20px); flex-direction: row-reverse; } .mate__bubble { border-radius: 14px 14px 4px 14px; } .mate__bubble::before { left: auto; right: -6px; border-right: 0; border-left: 6px solid #efe7da; } }
@media (max-width: 760px) { .mate { right: auto; left: calc(max(var(--gut), var(--safe-l)) + 24px); flex-direction: row; } .swings { width: 96px; height: 58px; } .mate__bubble { margin-top: 34px; max-width: 170px; font-size: 11px; border-radius: 14px 14px 14px 4px; } .mate__bubble::before { right: auto; left: -6px; border-left: 0; border-right: 6px solid #efe7da; } }

/* гид */
.guide { position: fixed; z-index: 60; right: calc(max(var(--gut), var(--safe-r)) + 8px); top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.guide.is-on { opacity: 1; }
.guide__rope { position: absolute; left: -20px; top: 0; width: 40px; overflow: visible; }
.guide__rope line { stroke: #e9d8bf; stroke-width: 2; }
.guide__body { position: absolute; right: 0; top: 0; display: flex; align-items: flex-end; flex-direction: row-reverse; gap: 6px; transform: translate(0, -100%); transition: top .55s cubic-bezier(.5,0,.3,1); }
.guide__man { width: 52px; height: 56px; flex-shrink: 0; overflow: visible; }
.gm-arm--rope { display: none; }
.guide.roping .gm-arm--rope { display: inline; } .guide.roping .gm-arm--point, .guide.roping .gm-arm--r { display: none; }
.guide.roping .gm-legs { transform: translateY(-2px); }
.guide.jumping .guide__man { animation: gJump .55s cubic-bezier(.3,0,.4,1); }
@keyframes gJump { 0% { transform: translateY(0) scale(1, 1); } 12% { transform: translateY(4px) scale(1.1, .85); } 50% { transform: translateY(-46px) rotate(-14deg); } 88% { transform: translateY(2px) scale(1.08, .9); } 100% { transform: none; } }
.gm-arm--point { transform-origin: 22px 30px; animation: gPoint 1.4s ease-in-out infinite; }
@keyframes gPoint { 50% { transform: rotate(6deg); } }
.guide__bubble { pointer-events: auto; max-width: 250px; padding: 11px 14px; margin-bottom: 30px; border-radius: 14px 14px 4px 14px; background: #efe7da; color: #1b1410; font: 600 13px/1.4 var(--sans); box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .3s, transform .3s; }
.guide__bubble.is-on { opacity: 1; transform: none; }
.guide__bubble a { color: #b5602b; font-weight: 700; text-decoration: underline; }
@media (max-width: 760px) {
  .guide { right: auto; left: calc(max(var(--gut), var(--safe-l)) + 4px); }
  .guide__body { right: auto; left: 0; flex-direction: row; }
  .guide__man { width: 40px; height: 44px; }
  .guide__bubble { max-width: calc(100vw - 150px); font-size: 12px; border-radius: 14px 14px 14px 4px; margin-bottom: 22px; }
  .guide__rope { left: 0; }
}


/* ---------- квартиры: карточки и окно ---------- */
.ftypes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ftype { text-align: left; display: grid; grid-template-rows: auto 1fr; background: #17181b; border: 1px solid var(--line); transition: border-color .3s, transform .3s; cursor: pointer; }
.ftype:hover { border-color: var(--copper); transform: translateY(-4px); }
.ftype__plan { aspect-ratio: 4 / 4.4; background: #e6d6bf; display: grid; place-items: center; padding: 8%; }
.ftype__plan img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ftype__plan i { color: #6a5848; font-style: normal; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ftype__body { display: grid; gap: 10px; padding: 20px 20px 18px; align-content: start; }
.ftype__name { font-family: var(--serif); font-size: 22px; text-transform: uppercase; }
.ftype__area { font-family: var(--serif); font-size: clamp(36px, 3.4vw, 52px); line-height: 1; }
.ftype__area small { font-size: 18px; margin-left: 4px; vertical-align: super; }
.ftype__note { color: var(--muted); font-size: 14px; line-height: 1.5; }
.ftype__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ftype__foot b { color: var(--copper); font-weight: 600; }
.fwin { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 95; background: #101114; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; -webkit-overflow-scrolling: touch; }
.fwin.is-open { opacity: 1; visibility: visible; }
.fwin__inner { max-width: 1360px; margin: 0 auto; padding: calc(24px + env(safe-area-inset-top, 0px)) max(var(--gut), var(--safe-r)) 60px max(var(--gut), var(--safe-l)); display: grid; gap: 28px; }
.fwin__top { display: flex; justify-content: space-between; align-items: center; }
.fwin__crumbs { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.fwin__crumbs span { color: var(--cream); }
.fwin__x { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; font-size: 26px; line-height: 1; }
.fwin__x:hover { background: var(--cream); color: var(--bg); }
.fwin__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.fwin__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 92px); line-height: .95; text-transform: uppercase; }
.fwin__types { display: flex; gap: 8px; }
.fwt { width: 96px; padding: 12px 10px; border: 1px solid var(--line); text-align: left; display: grid; gap: 4px; transition: all .25s; }
.fwt b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.fwt small { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.fwt.is-on { background: #e6d6bf; color: #1b1410; border-color: #e6d6bf; } .fwt.is-on small { color: #5a4a3c; }
.fwin__body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.fwin__plan { position: relative; background: #e6d6bf; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 6%; }
.fwin__plan img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; cursor: zoom-in; }
.fwin__noimg { color: #6a5848; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.fwin__arr { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(27,20,16,.85); color: #fff; font-size: 18px; }
.fwin__arr--l { left: 14px; } .fwin__arr--r { right: 14px; }
.fwin__arr:hover { background: var(--copper); }
.fwin__count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .16em; color: #5a4a3c; }
.fwin__side { background: #17181b; border: 1px solid var(--line); padding: 26px; display: grid; gap: 16px; }
.fwin__specs { margin: 0; display: grid; }
.fwin__specs div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fwin__specs dt { color: var(--muted); } .fwin__specs dd { margin: 0; font-weight: 500; }
.fwin__areas { display: flex; flex-wrap: wrap; gap: 8px; }
.fwin__areas button { padding: 9px 12px; border: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; transition: all .25s; }
.fwin__areas button:hover, .fwin__areas button.is-on { border-color: var(--copper); color: var(--copper); }
@media (max-width: 1024px) { .ftypes { grid-template-columns: repeat(2, 1fr); } .fwin__body { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .ftypes { grid-template-columns: 1fr; }
  .fwin__types { width: 100%; } .fwt { flex: 1; width: auto; padding: 10px 8px; } .fwt b { font-size: 20px; }
  .fwin__arr { width: 40px; height: 40px; }
  .fwin__side { padding: 20px; }
}

/* ---------- reveal (GSAP добавляет класс js-anim на html) ---------- */
.js-anim .fade { opacity: 0; transform: translateY(30px); }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; } .hero__stage { position: relative; }
  .facade { height: auto; } .facade__pin { position: relative; } .facade__mask { clip-path: none; }
  .js-anim .fade { opacity: 1; transform: none; }
  .hdr__call-dot, .hero__scroll::after { animation: none; }
}

/* ================= responsive ================= */
@media (max-width: 1024px) {
  .about__grid, .flat, .terms__grid, .safe { grid-template-columns: 1fr; }
  .life__grid { grid-template-columns: 1fr 1fr; }
  .card--big { grid-template-columns: 1fr; gap: 18px; }
  .sec-head { grid-template-columns: 1fr; }
  .menu__inner { grid-template-columns: 1fr; align-content: end; }
}
@media (max-width: 760px) {
  .hdr__call-txt, .hdr__menu-txt { display: none; }
  .hdr__call { width: 44px; height: 44px; justify-content: flex-start; }
  .hdr__name { font-size: 18px; }
  .hdr__sub { font-size: 8px; letter-spacing: .22em; }
  .hero { height: 190vh; }
  .hero__title { bottom: 24vh; font-size: 19vw; }
  .hero__lead { font-size: 10px; letter-spacing: .2em; top: calc(96px + env(safe-area-inset-top, 0px)); }
  .hero__progress { display: none; }
  .hero__foot { grid-template-columns: 1fr 1fr; font-size: 10px; }
  .hero__scroll { display: none; }
  .stats { grid-template-columns: 1fr; gap: 50px; }
  .stats__col, .stats__col--mid, .stats__col--r { padding-top: 0; gap: 40px; }
  .stats__img--wide, .stats__img--tall { aspect-ratio: 16 / 11; }
  .stat b { font-size: 76px; }
  .stat b.word { font-size: 46px; }
  .facade { height: 220vh; }
  .facade__mask { clip-path: inset(18% 34% 18% 34%); }
  .arch__grid { grid-template-columns: 1fr; }
  .arch__item, .arch__item + .arch__item { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ftab { padding: 14px 14px 12px; font-size: 11px; letter-spacing: .12em; }
  .flats__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * max(var(--gut), var(--safe-l))); margin-right: calc(-1 * max(var(--gut), var(--safe-r))); padding: 0 max(var(--gut), var(--safe-l)); }
  .ftab { white-space: nowrap; }
  .extra { grid-template-columns: 1fr; }
  .extra__card { grid-template-columns: 38% 1fr; }
  .extra__card span { padding: 14px 16px; }
  .extra__card b { font-size: 19px; }
  .life__grid { grid-template-columns: 1fr; gap: 40px; }
  .safe ul { grid-template-columns: 1fr; }
  .gallery__item { height: 260px; }
  .gallery__nav { display: none; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .doc { flex-wrap: wrap; padding: 18px; }
  .doc__go { margin-left: 76px; }
  .contacts__cols { grid-template-columns: 1fr; }
  .contacts__btns .btn { flex: 1 1 100%; }
  .ftr__grid { grid-template-columns: 1fr; }
  .fab { display: grid; }
  .lb { padding: 60px 10px; }
  .lb__arr { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: none; }
}

/* котельная: управление пальцем/мышкой */
.boiler--house .boiler__scheme { touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.boiler__hint { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px;
  background: rgba(24,24,27,.78); border: 1px solid rgba(239,231,218,.25); color: var(--cream); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  pointer-events: none; transition: opacity .5s; animation: hintNudge 1.6s ease-in-out infinite; }
.boiler__hint i { font-style: normal; color: #ffb27a; font-size: 15px; letter-spacing: 0; }
.boiler--house.touched .boiler__hint { opacity: 0; }
@keyframes hintNudge { 0%, 100% { transform: translateX(-50%); } 50% { transform: translateX(calc(-50% + 8px)); } }
.boiler__ctl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.boiler__ctl input[type="range"] { --p: 0%; height: 4px; background: linear-gradient(#ff8a45, #ff8a45) 0 / var(--p) 100% no-repeat, rgba(239,231,218,.18); }
.boiler__ctl input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; border: 0; background: #ff8a45; box-shadow: 0 0 0 6px rgba(255,138,69,.25), 0 0 18px rgba(255,138,69,.8); }
.boiler__ctl input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; background: #ff8a45; }
@media (max-width: 760px) { .boiler__ctl { grid-template-columns: 1fr; gap: 10px; } .boiler__ctl span:last-child { text-align: right; } .boiler__hint { font-size: 9.5px; padding: 8px 12px; } }
.boiler__ctl input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; border-radius: 4px; outline: none; cursor: pointer; }
.boiler__ctl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; border-radius: 50%; }
.boiler__ctl input[type="range"]::-moz-range-thumb { border-radius: 50%; }

/* фасад: видео день → ночь, крутится прокруткой */
.facade { height: 340vh; }
.facade__mask .facade__video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); will-change: transform; opacity: 0; transition: opacity .4s; }
.facade__mask .facade__video.is-ready { opacity: 1; }
.facade__daynight { position: absolute; z-index: 3; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); }
.facade__daynight i { width: 120px; height: 2px; background: rgba(239,231,218,.25); position: relative; display: block; }
.facade__daynight b { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: linear-gradient(90deg, #ffd28a, #ff8a45 50%, #6f8cff); transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) { .facade { height: 300vh; } }

/* первый экран: видео (облака → Моздок → ЖК → ночь), крутится прокруткой */
.hero { height: 520vh; }
.hero__video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stage { background: #1b1c1e url('../frames/hero/d/f_001.webp') center / cover no-repeat; }
@media (max-width: 760px) { .hero__stage { background-image: url('../frames/hero/m/f_001.webp'); } }
.hero.has-video .hero__video { opacity: 1; }
.hero.has-video .hero__img { opacity: 0 !important; }
@media (max-width: 760px) { .hero { height: 480vh; } }

.hero__city { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none; opacity: 0; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.hero__city b { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 13vw, 190px); line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.hero__city span { font-size: clamp(10px, 1.1vw, 14px); letter-spacing: .32em; text-transform: uppercase; opacity: .85; }
.hero__title, .hero__lead { transition: opacity .45s ease, transform .45s ease; }
.hero.is-moving .hero__title, .hero.is-moving .hero__lead { opacity: 0 !important; transform: translateY(-20px); }
.parking__scheme { width: min(100%, calc(84vh * 1.23)); justify-self: center; }
.parking .boiler__hint { bottom: auto; top: 38%; }
.parking.touched .boiler__hint { opacity: 0; }

.life__grid { grid-template-columns: repeat(2, 1fr); }
.life__grid .card--big { grid-column: 1 / -1; }
.parking__photo { margin: 0; overflow: hidden; }
.parking__photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
@media (max-width: 760px) { .life__grid { grid-template-columns: 1fr; } .parking__photo img { aspect-ratio: 16 / 10; } }


/* фасад: двое рабочих растягивают фото на тросах */
.pull { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 3; pointer-events: none; }
.pull__ropes { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pull__ropes line { stroke: #e9d8bf; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.pull__side { position: absolute; top: 0; width: clamp(60px, 7vw, 96px); transform: translate(-50%, -100%); will-change: left, top; }
.pull__side--l .pull__man { transform: scaleX(-1); }
.pull__man { width: 100%; height: auto; display: block; overflow: visible; }
.pull__man path, .pull__man circle { fill: none; stroke: #efe7da; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pull__man .pm-vest { fill: #f07832; stroke: none; }
.pull__man .pm-hat { fill: #c98a5b; stroke: #c98a5b; stroke-width: 3; }
.pm-leg { transform-origin: 0 -42px; transform-box: view-box; }
.pull.walking .pm-leg--a { animation: pmStep .42s ease-in-out infinite alternate; }
.pull.walking .pm-leg--b { animation: pmStep .42s ease-in-out infinite alternate-reverse; }
@keyframes pmStep { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.pull.walking .pull__man { animation: pmBob .21s ease-in-out infinite alternate; }
@keyframes pmBob { to { translate: 0 -3px; } }
.pull__dust { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: rgba(201,138,91,.5); pointer-events: none; animation: pmDust .7s ease-out forwards; }
@keyframes pmDust { to { opacity: 0; transform: translate(var(--dx), -14px) scale(2.4); } }
.pull__side--l .pull__man { transform: scaleX(-1) rotate(10deg); transform-origin: 50% 100%; }
.pull__side--r .pull__man { transform: rotate(10deg); transform-origin: 50% 100%; }
.lift__glass i:nth-child(1), .lift__glass i:nth-child(2) { display: none; }
.lift__slide::after { background: linear-gradient(180deg, rgba(10,10,12,.25), rgba(10,10,12,0) 25%, rgba(10,10,12,0) 60%, rgba(10,10,12,.55)); }
@media (max-width: 760px) { .snd { right: auto; left: calc(max(var(--gut), var(--safe-l)) + 46px); } }

.lift__final p { margin: 0; max-width: 520px; color: rgba(239,231,218,.9); font-size: clamp(14px, 1.3vw, 18px); line-height: 1.55; text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.guide__bubble { width: max-content; }
@media (max-width: 760px) { .guide__bubble { max-width: 230px; } }

/* гид: «нажмите на меня» и меню помощи */
.guide__man { pointer-events: auto; cursor: pointer; }
.guide__menu { position: absolute; right: 60px; bottom: 30px; width: 270px; display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: #efe7da; color: #1b1410; box-shadow: 0 16px 40px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none; transition: opacity .25s, transform .25s; }
.guide.menu-open .guide__menu { opacity: 1; transform: none; pointer-events: auto; }
.guide.menu-open .guide__bubble { opacity: 0 !important; }
.guide__menu b { font: 700 14px var(--sans); margin-bottom: 4px; }
.gmn { display: block; padding: 10px 12px; border-radius: 10px; background: #fff; color: #1b1410; font: 600 13px/1.3 var(--sans); text-align: left; transition: background .2s; }
.gmn:hover { background: #ffe1c7; }
.gmn--x { background: transparent; color: #7a6656; font-weight: 500; text-align: center; }
.guide__man:hover .mm__vest { fill: #ff8a45; }
@media (max-width: 760px) { .guide__menu { right: auto; left: 46px; width: min(270px, calc(100vw - 80px)); } }

/* v2: колонка-кнопка звука, прозрачные «облачка», компактное меню помощи */
.snd { align-items: center; gap: 0; height: 34px; padding: 0 14px 0 10px; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .3s, background .3s, color .3s; }
.snd:hover { background: rgba(255,255,255,.14); border-color: rgba(239,231,218,.5); }
.snd__ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.snd__spk { fill: currentColor; stroke: none; }
.snd__w1, .snd__w2 { opacity: 0; transition: opacity .3s; }
.snd.is-on .snd__w1 { opacity: 1; animation: sndW 1.4s ease-in-out infinite; }
.snd.is-on .snd__w2 { opacity: 1; animation: sndW 1.4s ease-in-out .35s infinite; }
.snd.is-on .snd__x { opacity: 0; }
.snd__x { opacity: .75; transition: opacity .3s; }
.snd span { margin-left: 8px; }
.snd.is-on { background: rgba(255,138,69,.12); }
@keyframes sndW { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.snd.is-hint::after { content: ""; position: absolute; top: -1px; right: -1px; bottom: -1px; left: -1px; inset: -1px; border-radius: inherit; border: 1.5px solid #ffb27a; animation: sndRing 1.6s ease-out 2; pointer-events: none; }
@keyframes sndRing { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@media (max-width: 1024px) { .snd { width: 38px; height: 38px; padding: 0; justify-content: center; } }

.guide__bubble, .mate__bubble { background: rgba(255,255,255,.42); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 6px 20px rgba(0,0,0,.18); font-weight: 600; }
.guide__bubble a { color: #fff; text-decoration-color: #ffb27a; }
.mate__bubble::before { display: none; }

.guide__menu { width: auto; grid-template-columns: repeat(2, auto); gap: 6px; padding: 8px 30px 8px 8px; border-radius: 14px; background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.gmn { display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(20,16,13,.72); color: #fff; font: 600 12px/1 var(--sans); white-space: nowrap; }
.gmn em { font-style: normal; font-size: 13px; }
.gmn:hover { background: #b5602b; }
.gmn--x { position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border-radius: 50%; color: #fff; font: 400 18px/1 var(--sans); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
@media (max-width: 760px) { .guide__menu { width: auto; } }

#gmAim { transition: transform .4s; }
/* планировка всегда вписывается в рамку (и вертикальные, и горизонтальные) */
.fwin__body > * { min-width: 0; }
.fwin__plan img { position: absolute; top: 6%; right: 6%; bottom: 6%; left: 6%; inset: 6%; width: 88%; height: 88%; max-width: none; max-height: none; }
.ftypes > * { min-width: 0; }
.ftype__plan { position: relative; }
.ftype__plan img { position: absolute; top: 8%; right: 8%; bottom: 8%; left: 8%; inset: 8%; width: 84%; height: 84%; max-width: none; max-height: none; }
.about, .life, .gallery { overflow-x: clip; }

/* прогулка по квартире */
.fwin__left { display: grid; gap: 10px; min-width: 0; }
.fwalk { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; }
.fwalk__man { position: absolute; width: 26px; height: 34px; margin: -30px 0 0 -13px; z-index: 3; filter: drop-shadow(0 3px 3px rgba(0,0,0,.25));
  transition: left 1.05s cubic-bezier(.45,0,.4,1), top 1.05s cubic-bezier(.45,0,.4,1); }
.fwalk__man.flip { transform: scaleX(-1); }
.fwalk__man path { fill: none; stroke: #1b1410; stroke-width: 2.6; stroke-linecap: round; }
.fwalk.walking .fl1 { animation: flA .32s ease-in-out infinite alternate; transform-origin: 17px 34px; }
.fwalk.walking .fl2 { animation: flA .32s ease-in-out infinite alternate-reverse; transform-origin: 23px 34px; }
.fwalk.walking .fwalk__man svg, .fwalk.walking .fwalk__man { animation: none; }
@keyframes flA { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.fwalk:not(.walking) .fwalk__man { animation: fBob 1.6s ease-in-out infinite; }
@keyframes fBob { 50% { margin-top: -32px; } }
.fwalk__spot { position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,69,.38), rgba(255,138,69,0) 70%);
  transition: left 1.05s cubic-bezier(.45,0,.4,1), top 1.05s cubic-bezier(.45,0,.4,1); animation: fSpot 1.8s ease-in-out infinite; }
.fwalk.done .fwalk__spot { opacity: 0; }
@keyframes fSpot { 50% { transform: scale(1.25); } }
.fwalk__dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; pointer-events: auto; cursor: pointer; z-index: 2; }
.fwalk__dot::after { content: ""; position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; inset: 7px; border-radius: 50%; background: #fff; border: 2px solid #c8743c; box-shadow: 0 0 0 3px rgba(200,116,60,.18); transition: transform .2s; }
.fwalk__dot:hover::after { transform: scale(1.35); }
.fwalk__dot.seen::after { background: #c8743c; }
.fwalk__dot.is-on::after { opacity: 0; }
.fcap { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 14px; line-height: 1.45; }
.fcap__txt { flex: 1; min-width: 0; }
.fcap__txt b { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; letter-spacing: .02em; color: #ffb27a; margin-bottom: 2px; }
.fcap.is-new .fcap__txt { animation: fcapIn .45s ease; }
@keyframes fcapIn { from { opacity: 0; transform: translateY(6px); } }
.fcap__btn { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--cream); font-size: 13px; }
.fcap__btn:hover { border-color: #c8743c; }
.fcap__go { flex-shrink: 0; padding: 9px 14px; border-radius: 999px; background: #c8743c; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .fcap { font-size: 13px; min-height: 76px; } .fcap__txt b { font-size: 15px; } .fwalk__man { width: 20px; height: 26px; margin: -23px 0 0 -10px; } }

/* коммерция: меняющаяся вывеска */
.biz { position: relative; margin: 0; overflow: hidden; cursor: pointer; --w: 600px; }
.card .biz img { aspect-ratio: 2000 / 1116; display: block; }
.biz__sign { position: absolute; left: 61.5%; top: 51.5%; transform: translate(-50%, -50%) rotate(-9.5deg) skewX(-6deg); white-space: nowrap;
  font-family: var(--serif); font-size: calc(var(--w) * .036); letter-spacing: .14em; color: #fff3df; line-height: 1;
  text-shadow: 0 0 4px rgba(255,220,170,.9), 0 0 12px rgba(255,160,80,.75), 0 0 26px rgba(255,140,60,.45); pointer-events: none; }
.biz.final .biz__sign { color: #ffd2a6; letter-spacing: .2em; }
.biz__sign.flick { animation: bizFlick .55s steps(1) both; }
@keyframes bizFlick { 0% { opacity: 1; } 15% { opacity: .15; } 30% { opacity: .9; } 40% { opacity: 0; } 70% { opacity: .4; } 80% { opacity: 1; } 90% { opacity: .6; } 100% { opacity: 1; } }
.biz__hint { position: absolute; left: 12px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.biz__word { color: #ffb27a; font-weight: 600; display: inline-block; }
.biz__word.flick { animation: bizWord .4s ease; }
@keyframes bizWord { 0% { opacity: 1; } 45% { opacity: 0; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
.biz__call { color: #ffb27a; font-size: 14px; font-weight: 600; }
/* подпись раздела внизу слева не сливается с текстом страницы */
.build-hud { padding: 6px 10px; margin-left: -10px; border-radius: 999px; background: rgba(16,17,20,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* безопасность: тонкие линии рисуются при появлении, спокойная анимация */
.safe { align-items: start; }
.safe__head { display: grid; gap: 10px; }
.safe__head .muted { font-size: 15px; }
.safe ul { gap: 0; border: 1px solid var(--line); }
.safe li { display: grid; justify-items: start; gap: 18px; padding: 28px 26px; border-left: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .8s, transform .8s; }
.safe li:first-child { border-left: 0; }
.safe.in li { opacity: 1; transform: none; }
.safe.in li:nth-child(2) { transition-delay: .15s; } .safe.in li:nth-child(3) { transition-delay: .3s; }
.safe li div { display: grid; gap: 6px; }
.safe__ic { width: 56px; height: 56px; overflow: visible; }
.safe__ic .sd { fill: none; stroke: var(--copper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.8s ease; }
.safe.in .safe__ic .sd { stroke-dashoffset: 0; }
.safe__lock { transform-origin: 32px 38px; }
.safe.in .safe__lock { animation: safeLock 7s ease-in-out 2s infinite; }
@keyframes safeLock { 0%, 90%, 100% { transform: none; } 94% { transform: translateY(1.5px); } }
.safe__cam { transform-origin: 20px 18px; }
.safe.in .safe__cam { animation: safeCam 8s ease-in-out 1.6s infinite; }
@keyframes safeCam { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(10deg); } }
.safe__beam { fill: rgba(255,160,90,.12); stroke: none; opacity: 0; transition: opacity 1s 1.4s; }
.safe.in .safe__beam { opacity: 1; }
.safe__rec { fill: #ff5a3c; opacity: 0; }
.safe.in .safe__rec { animation: safeRec 2s steps(1) 1.6s infinite; }
@keyframes safeRec { 0% { opacity: 1; } 50% { opacity: 0; } }
.safe__drop { fill: rgba(140,190,255,.75); opacity: 0; }
.safe.in .safe__drop { animation: safeDrop 3.2s ease-in 2s infinite; }
.safe.in .safe__drop.d2 { animation-delay: 2.6s; } .safe.in .safe__drop.d3 { animation-delay: 3.1s; }
@keyframes safeDrop { 0% { opacity: 0; transform: translateY(-6px); } 15% { opacity: 1; } 60% { opacity: 0; transform: translateY(16px); } 100% { opacity: 0; } }
@media (max-width: 760px) {
  .safe li { grid-template-columns: 48px 1fr; align-items: center; gap: 16px; padding: 20px 18px; border-left: 0; border-top: 1px solid var(--line); }
  .safe li:first-child { border-top: 0; }
  .safe__ic { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .safe__ic * { animation: none !important; } }
.safe ul { background: rgba(16,17,20,.86); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* безопасность v2: всё видно и без анимации; рисование — только как украшение */
.safe li { opacity: 1; transform: none; }
.safe.js:not(.in) li { opacity: 0; transform: translateY(14px); }
.safe__ic .sd { stroke-dashoffset: 0; stroke-width: 2; }
.safe.js:not(.in) .safe__ic .sd { stroke-dashoffset: 160; }
.safe__ic { width: 64px; height: 64px; padding: 10px; border: 1px solid rgba(200,116,60,.45); border-radius: 50%; box-sizing: border-box; background: rgba(200,116,60,.06); }
.safe__beam { opacity: 1; }
.safe__drop { fill: #7fb6ff; }
@media (max-width: 760px) { .safe li { grid-template-columns: 56px 1fr; } .safe__ic { width: 56px; height: 56px; padding: 9px; } }

/* связь «человечек ↔ текст»: облачко-хвостик тянется к нему, мини-аватар, вспышка рамки, ярлык комнаты над головой */
.fcap { position: relative; --tx: 50%; border-color: rgba(200,116,60,.5); background: rgba(200,116,60,.07); }
.fcap::before { content: ""; position: absolute; top: -9px; left: var(--tx); width: 16px; height: 16px; margin-left: -8px; transform: rotate(45deg);
  background: #1a1513; border-left: 1px solid rgba(200,116,60,.5); border-top: 1px solid rgba(200,116,60,.5); transition: left 1.05s cubic-bezier(.45,0,.4,1); }
.fcap.is-new { animation: fcapGlow 1.2s ease; }
@keyframes fcapGlow { 0% { border-color: #ff8a45; box-shadow: 0 0 0 3px rgba(255,138,69,.25); } 100% { border-color: rgba(200,116,60,.5); box-shadow: none; } }
.fcap__av { flex-shrink: 0; width: 26px; height: 34px; align-self: center; }
.fwalk__tag { position: absolute; z-index: 4; transform: translate(-50%, -100%); margin-top: -36px; padding: 3px 8px; border-radius: 999px; background: rgba(27,20,16,.82); color: #fff; font: 600 10.5px/1.2 var(--sans); white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; }
.fwalk__tag.is-on { opacity: 1; }
@media (max-width: 760px) { .fwalk__tag { margin-top: -28px; font-size: 10px; } .fcap__av { width: 22px; height: 29px; } }
@media (max-width: 760px) { .hero__city { display: none !important; } }

/* строитель без слов: жесты вместо текста */
.mate__bubble { display: none !important; }
.mm__cross, .mm__point, .mm__mute, .mm__mouth { display: none; }
.mm__mute path { stroke: #ffb27a !important; stroke-width: 1.6 !important; }
.mm__mouth { stroke-width: 1.6 !important; }
.mm__head { transform-box: fill-box; transform-origin: 50% 90%; }
.mate.grumpy:not(.on) .mm--a .mm__brow, .mate.grumpy:not(.on) .mm--a .mm__mouth { display: inline; }
.mate.grumpy:not(.on):not(.demand) .mm--a .mm__arm { display: none; }
.mate.grumpy:not(.on):not(.demand) .mm--a .mm__cross { display: inline; }
.mate.grumpy:not(.on) .swing--a { animation: swingSulk 4s ease-in-out infinite; }
@keyframes swingSulk { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.mate.demand .mm--a .mm__armR { display: none; }
.mate.demand .mm--a .mm__point, .mate.demand .mm--a .mm__mute { display: inline; }
.mm__point { transform-box: view-box; transform-origin: 38px 31px; }
.mate.demand .mm--a .mm__point { animation: matePoke .4s ease-in-out 5 alternate; }
@keyframes matePoke { from { transform: rotate(-6deg); } to { transform: rotate(8deg) translate(1px,-1px); } }
.mate.demand .mm--a .mm__head { animation: mateShake .5s ease-in-out 1s 3; }
@keyframes mateShake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.mate.demand .mm--a .mm__mute { animation: mateMute .65s steps(1) 4; }
@keyframes mateMute { 50% { opacity: 0; } }
.mate.demand .swing--a { animation: mateHop .32s ease-in-out 4 alternate; }
@keyframes mateHop { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(3deg) translateY(-2px); } }

/* гид: маленькое облачко, только когда вы остановились */
.guide__bubble { padding: 7px 11px; font-size: 12px; line-height: 1.3; border-radius: 12px 12px 4px 12px; }
@media (max-width: 760px) { .guide__bubble { font-size: 11.5px; padding: 6px 10px; margin-bottom: 26px; border-radius: 12px 12px 12px 4px; } }

/* точки комнат — заметные: крупнее, оранжевые, с «пульсом» */
.fwalk__dot { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.fwalk__dot::after { top: 8px; right: 8px; bottom: 8px; left: 8px; inset: 8px; background: #ff7a2f; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.fwalk__dot::before { content: ""; position: absolute; top: 4px; right: 4px; bottom: 4px; left: 4px; inset: 4px; border-radius: 50%; border: 2px solid #ff7a2f; animation: dotPulse 1.8s ease-out infinite; }
.fwalk__dot:nth-of-type(2n)::before { animation-delay: .6s; } .fwalk__dot:nth-of-type(3n)::before { animation-delay: 1.2s; }
@keyframes dotPulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.fwalk__dot.seen::after { background: #fff; border-color: #ff7a2f; }
.fwalk__dot.seen::before { animation: none; opacity: 0; }
.fwalk__dot.is-on::before { animation: none; opacity: 0; }
@media (max-width: 760px) { .fwalk__dot { width: 30px; height: 30px; margin: -15px 0 0 -15px; } .fwalk__dot::after { top: 7px; right: 7px; bottom: 7px; left: 7px; inset: 7px; } }
/* точки комнат «бьются как сердце»: тук-тук — пауза, с волной и свечением */
.fwalk__dot::after { animation: dotHeart 1.3s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(255,122,47,.6), 0 2px 8px rgba(0,0,0,.35); }
.fwalk__dot::before { animation: dotWave 1.3s ease-out infinite; border-width: 3px; }
.fwalk__dot:nth-of-type(2n)::after, .fwalk__dot:nth-of-type(2n)::before { animation-delay: .25s; }
.fwalk__dot:nth-of-type(3n)::after, .fwalk__dot:nth-of-type(3n)::before { animation-delay: .5s; }
@keyframes dotHeart {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255,122,47,.7), 0 2px 8px rgba(0,0,0,.35); }
  14%  { transform: scale(1.45); box-shadow: 0 0 14px 6px rgba(255,122,47,.55), 0 2px 8px rgba(0,0,0,.35); }
  28%  { transform: scale(1.05); }
  42%  { transform: scale(1.35); box-shadow: 0 0 12px 5px rgba(255,122,47,.45), 0 2px 8px rgba(0,0,0,.35); }
  70%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,122,47,0), 0 2px 8px rgba(0,0,0,.35); }
}
@keyframes dotWave { 0% { transform: scale(.8); opacity: 0; } 12% { opacity: 1; } 70% { transform: scale(2.3); opacity: 0; } 100% { transform: scale(2.3); opacity: 0; } }
.fwalk__dot.seen::after, .fwalk__dot.is-on::after { animation: none; }

/* офис продаж «живьём»: работают / отдыхают */
.team { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr; align-items: center; gap: 24px; padding: 22px 24px; border: 1px solid var(--line); background: rgba(16,17,20,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.team__svg { width: 100%; height: auto; overflow: visible; }
.team__svg path, .team__svg circle { fill: none; stroke: #efe7da; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.team__desk { stroke: #c98a5b !important; stroke-width: 3 !important; }
.tw__chair { stroke: rgba(239,231,218,.45) !important; }
.tw__vest { fill: #f07832; }
.tw__hair { fill: #3a2a20; stroke: #3a2a20 !important; }
.tw__head { fill: #f3d9bd; stroke: #1b1410 !important; stroke-width: 1.6 !important; }
.tw__screen { fill: #ffd9a8; stroke: none !important; filter: drop-shadow(0 0 6px rgba(255,200,130,.9)); }
.tw__click { stroke: #ffb27a !important; stroke-width: 1.6 !important; opacity: 0; }
.team__work, .team__rest { display: none; }
.team.is-open .team__work, .team.is-closed .team__rest { display: inline; }
.tw__type { transform-box: fill-box; transform-origin: 0% 0%; animation: twType .22s steps(2) infinite alternate; }
.tw:nth-child(2) .tw__type { animation-delay: .1s; } .tw:nth-child(3) .tw__type { animation-delay: .05s; }
@keyframes twType { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.tw__click { animation: twClick .44s steps(1) infinite; } .tw:nth-child(2) .tw__click { animation-delay: .2s; }
@keyframes twClick { 50% { opacity: 1; } }
.tw .tw__head { animation: twNod 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes twNod { 50% { transform: translateY(1px) rotate(3deg); } }
.tr__mug { stroke: #ffb27a !important; }
.tr__steam { stroke: rgba(239,231,218,.5) !important; stroke-width: 1.4 !important; animation: trSteam 2.4s ease-in-out infinite; }
@keyframes trSteam { 0% { opacity: 0; transform: translateY(3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.tr__z { fill: #ffb27a; font: 600 14px var(--sans); opacity: 0; animation: trZ 2.6s ease-in-out infinite; } .tr__z.z2 { animation-delay: 1.3s; font-size: 18px; }
@keyframes trZ { 0% { opacity: 0; transform: translate(0, 4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -12px); } }
.team__info { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: start; }
.team__info b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; text-transform: uppercase; }
.team__info span#teamSub { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.team__dot { width: 12px; height: 12px; margin-top: 8px; border-radius: 50%; background: #3fd07a; box-shadow: 0 0 0 0 rgba(63,208,122,.6); animation: teamDot 1.6s ease-out infinite; }
.team.is-closed .team__dot { background: #8a8a8a; animation: none; }
@keyframes teamDot { 0% { box-shadow: 0 0 0 0 rgba(63,208,122,.6); } 100% { box-shadow: 0 0 0 12px rgba(63,208,122,0); } }
.team__call { grid-column: 2; justify-self: start; margin-top: 8px; }
.team.is-closed .team__call { display: none; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; padding: 18px 16px; gap: 14px; } }
.team__svg .tw__head { fill: #f3d9bd; }
.team__svg .tw__hair { fill: #3a2a20; }
.team__svg .tw__screen { fill: #ffd9a8; }

/* спят: Z-буквы летят от каждого, дышат; работают: печатают заметнее, экраны мерцают */
.tr__zz text { fill: #ffb27a; font: 700 13px var(--sans); opacity: 0; animation: zFly 3s ease-in infinite; }
.tr__zz text:nth-child(2) { font-size: 17px; animation-delay: 1s; }
.tr__zz text:nth-child(3) { font-size: 22px; animation-delay: 2s; }
.tr:nth-child(2) .tr__zz text { animation-duration: 3.4s; } .tr:nth-child(3) .tr__zz text { animation-duration: 2.8s; }
@keyframes zFly { 0% { opacity: 0; transform: translate(0, 0) rotate(-10deg); } 15% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: 0; transform: translate(22px, -46px) rotate(12deg); } }
.tr .tw__vest { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06, 1.08); } }
.tw__type { animation: twType2 .18s ease-in-out infinite alternate; }
@keyframes twType2 { from { transform: translate(0, 0); } to { transform: translate(1px, -3px); } }
.tw__screen { animation: scrFlick 1.6s steps(3) infinite; }
@keyframes scrFlick { 0% { opacity: 1; } 33% { opacity: .75; } 66% { opacity: .95; } }

/* галерея «Стол архитектора» */
.gallery__track { display: none; }
.desk { position: relative; margin: 0 max(var(--gut), var(--safe-l)); height: clamp(480px, 46vw, 680px); overflow: hidden; border-radius: 4px;
  background: #2a1d14 url('../img/desk.webp') center / cover no-repeat; box-shadow: inset 0 0 120px rgba(0,0,0,.65); }
.desk::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: radial-gradient(ellipse at 30% 10%, rgba(255,190,120,.18), transparent 55%), linear-gradient(180deg, rgba(10,8,6,.35), rgba(10,8,6,.55)); pointer-events: none; }
.desk__stack { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; touch-action: pan-y; }
.pcard { position: absolute; left: 50%; top: 47%; width: min(74vw, 560px); margin: 0; padding: 10px 10px 0; background: #f6f1e8; box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.4);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; will-change: transform; }
.pcard:active { cursor: grabbing; }
.pcard img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; pointer-events: none; }
.pcard figcaption { padding: 10px 4px 12px; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.6vw, 22px); color: #3a2a20; text-align: center; letter-spacing: .02em; }
.desk__hint { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 13px; pointer-events: none; transition: opacity .4s; }
.desk__hint span { display: inline-block; animation: deskSwipe 1.6s ease-in-out infinite; }
@keyframes deskSwipe { 0%,100% { transform: translateX(-8px) rotate(-10deg); } 50% { transform: translateX(10px) rotate(10deg); } }
.desk__hint.is-off { opacity: 0; }
.desk__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 14px; align-items: baseline; padding: 14px 18px; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); color: #fff; pointer-events: none; }
.desk__n { font-size: 12px; letter-spacing: .18em; color: #ffb27a; }
.desk__cap { font-family: var(--serif); font-size: 18px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) { .desk { height: 520px; background-image: url('../img/desk-m.webp'); } .pcard { width: 82vw; top: 45%; } .pcard img { aspect-ratio: 4 / 3; } }

html, body { transition: background-color .3s linear; }

/* переключатель музыки 1 · 2 (виден, когда звук включён) */
.snd-sw { position: absolute; top: 50%; transform: translateY(-50%); left: calc(max(var(--gut), var(--safe-l)) + 210px + 118px); display: none; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid rgba(239,231,218,.25); background: rgba(255,255,255,.05); }
body.snd-on .snd-sw { display: flex; }
.snd-sw button { width: 26px; height: 26px; border-radius: 50%; color: var(--cream); font: 600 12px var(--sans); opacity: .6; }
.snd-sw button.is-on { background: #c8743c; color: #fff; opacity: 1; }
@media (max-width: 1024px) { .snd-sw { left: auto; right: calc(max(var(--gut), var(--safe-r)) + 64px + 46px); } }
@media (max-width: 760px) { .snd-sw { left: auto; right: max(var(--gut), var(--safe-r)); top: calc(100% + 8px); transform: none; flex-direction: row; background: rgba(16,17,20,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } }

.snd-sw, body.snd-on .snd-sw { display: none !important; }

/* ===== порядок на телефоне: ничего мелкого не наезжает на текст ===== */
@media (max-width: 760px) {
  .build-hud { display: none !important; }              /* «Этаж N из 8» — на телефоне убрано (цифра этажа есть на фоне) */
  .build-fg { display: none !important; }               /* люлька с рабочими справа — только на компьютере */
  .mate { transition: opacity .35s, transform .35s; }
  .guide { transition: opacity .35s; }
  .guide:not(.awake):not(.menu-open) { opacity: 0 !important; pointer-events: none; }  /* гид появляется только когда говорит */
}

/* офис v3: живее */
.tr__steam { stroke: rgba(255,240,225,.85) !important; stroke-width: 2 !important; animation: trSteam2 2.2s ease-in-out infinite; }
.tr:nth-child(2) .tr__steam { animation-delay: .7s; } .tr:nth-child(3) .tr__steam { animation-delay: 1.4s; }
@keyframes trSteam2 { 0% { opacity: 0; transform: translateY(4px) scaleY(.8); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px) scaleY(1.15); } }
.tr__zz text { font-size: 16px; fill: #ffc28f; }
.tr__zz text:nth-child(2) { font-size: 21px; } .tr__zz text:nth-child(3) { font-size: 27px; }
.tr .tw__head { transform-box: fill-box; transform-origin: 50% 100%; animation: snore 3.2s ease-in-out infinite; }
@keyframes snore { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(1.5px) rotate(-4deg); } }
.team.is-open .team__call { background: #2fb36b; border-color: #2fb36b; color: #fff; box-shadow: 0 0 0 0 rgba(47,179,107,.6); animation: callPulse 1.8s ease-out infinite; }
.team.is-open .team__call::before { content: "📞 "; }
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(47,179,107,.55); } 100% { box-shadow: 0 0 0 14px rgba(47,179,107,0); } }
@media (max-width: 760px) { .team__svg { margin: 0 -6px; width: calc(100% + 12px); } }

/* рабочие с тросом: лицом к фото, тянут на себя, шагают назад, носки к зданию */
.pull__side--l .pull__man { transform: rotate(-8deg); transform-origin: 50% 100%; }
.pull__side--r .pull__man { transform: scaleX(-1) rotate(-8deg); transform-origin: 50% 100%; }

/* офис v4: анимацию ведёт JS — CSS-анимации этих элементов выключены */
.tr__zz text, .tr__steam, .tw__type, .tw__click, .tw__screen, .tw__head, .tr .tw__head, .tr .tw__vest { animation: none !important; }
.tr__zz text { opacity: 0; }
.team__svg .tr__body { stroke: #f07832; stroke-width: 13; }
.team__svg .tr__leg { stroke: #efe7da; }
.team__svg .tr__eye { stroke: #1b1410; stroke-width: 1.4; }
.tw__click { opacity: 0; }

/* «блоки» на телефоне: прокрутка сама притормаживает у начала каждого раздела */
@media (hover: none) {
  html.gs-stop { overflow: hidden !important; }
}

/* старые iPhone (iOS 15 и ниже) не знают overflow: clip — запасной вариант */
@supports not (overflow: clip) { .about, .life, .gallery { overflow-x: hidden; } }
img, canvas { -webkit-touch-callout: none; -webkit-user-drag: none; }

/* окно квартир: всегда видна кнопка «Назад» и крестик; на ПК прокрутка внутри окна */
.fwin__top { position: sticky; top: 0; z-index: 5; margin: 0 -8px; padding: 10px 8px; background: rgba(16,17,20,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); gap: 14px; }
.fwin__back { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--cream); font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
.fwin__back:hover { background: var(--cream); color: var(--bg); }
.fwin__crumbs { flex: 1; }
@media (max-width: 760px) { .fwin__crumbs { display: none; } .fwin__back { font-size: 12px; padding: 9px 14px; } }
/* на ПК «Моздок» над новым видео не нужен */
.hero__city { display: none !important; }

/* землетрясение в конце сайта */
.gs-quake { animation: gsQuake .7s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes gsQuake {
  10%, 90% { transform: translate3d(-2px, 1px, 0) rotate(-.15deg); }
  20%, 80% { transform: translate3d(4px, -2px, 0) rotate(.2deg); }
  30%, 50%, 70% { transform: translate3d(-7px, 2px, 0) rotate(-.3deg); }
  40%, 60% { transform: translate3d(7px, -1px, 0) rotate(.3deg); }
}
.team__bang { fill: #ffb27a; font: 800 16px var(--sans); opacity: 0; }
.team.is-open .for-rest, .team.is-closed .for-work { display: none; }

/* ===== финал: свет в окнах ===== */
.fin { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 120px) 0 clamp(70px, 9vw, 110px); text-align: center; }
.fin__sky { position: absolute; inset: 0; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(ellipse at 50% 80%, rgba(255,170,90,.10), transparent 60%); transition: opacity 1.2s; opacity: .4; pointer-events: none; }
.fin.all .fin__sky { opacity: 1; background: radial-gradient(ellipse at 50% 75%, rgba(255,170,90,.28), transparent 62%); }
.fin__inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.fin__house { width: min(560px, 92vw); height: auto; overflow: visible; }
.fin__body { fill: #14151a; stroke: rgba(239,231,218,.25); stroke-width: 1; }
.fin__roof { stroke: #c98a5b; stroke-width: 3; }
.fin__tower { fill: #191b21; stroke: rgba(239,231,218,.35); stroke-width: 1; }
.fin__ground { stroke: rgba(201,138,91,.6); stroke-width: 1.5; }
.fin__w { fill: #22242b; transition: fill .5s, filter .5s; }
.fin__w.on { fill: #ffc98a; filter: drop-shadow(0 0 5px rgba(255,190,110,.75)); }
.fin__count { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.fin__count b { color: #ffb27a; font-weight: 600; }
.fin__title { opacity: .25; transform: translateY(10px); transition: opacity .8s, transform .8s; }
.fin__title span { color: #ffb27a; }
.fin.all .fin__title { opacity: 1; transform: none; }
.fin__call { opacity: 0; transform: translateY(10px); transition: opacity .8s .2s, transform .8s .2s; pointer-events: none; }
.fin.all .fin__call { opacity: 1; transform: none; pointer-events: auto; }
