/* =====================================================================
   АЛЬФА-ОМЕГА · VERSION 2 — reference-led art direction
   Cream / espresso editorial palette, uppercase display type, pinned
   scroll scenes. Logo, fonts and the pink accent stay from the brand.
   (Assembled by _build/build.py: this head + v1 picker rules + v2.tail.css)
   ===================================================================== */
@font-face { font-family: "Social Gothic"; src: url("../fonts/socialgothic-demibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Social Gothic"; src: url("../fonts/socialgothic-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "AO Sym"; src: url("../fonts/pfdin-regular.woff2") format("woff2"); font-weight: 100 900; unicode-range: U+00B2, U+20BD, U+2248, U+2190-2193; }
@font-face { font-family: "PF Din Cond"; src: url("../fonts/pfdin-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --cream: #F3EEE6;
  --cream-2: #E7DED1;
  --ink: #16100E;
  --espresso: #241A16;
  --accent: #FF005F;
  --green: #00B97D; --pink: #FF005F; --orange: #FF7800; --blue: #00AFE6;
  --black: #16100E; --white: #fff;
  --ink-12: rgba(22,16,14,.12); --ink-60: rgba(22,16,14,.62);
  --paper-14: rgba(243,238,230,.16); --paper-60: rgba(243,238,230,.66);
  --soft: #EAE3D8;
  --f-display: "AO Sym", "Social Gothic", "Arial Narrow", sans-serif;
  --f-text: "PF Din Cond", "Arial Narrow", sans-serif;
  /* The type scale and the rounded spacing scale both use a 5:4 ratio. */
  --scale-ratio: 1.25;
  --font-body: clamp(1rem, .935rem + .28vw, 1.25rem);
  --font-label: max(.8125rem, calc(var(--font-body) / var(--scale-ratio)));
  --font-lead: calc(var(--font-body) * var(--scale-ratio));
  --font-card: calc(var(--font-lead) * var(--scale-ratio));
  --font-form: calc(var(--font-card) * var(--scale-ratio));
  --font-title: calc(var(--font-form) * var(--scale-ratio));
  --font-title-lg: calc(var(--font-title) * var(--scale-ratio));
  --font-section: clamp(var(--font-title), 6.5vw, 7.5rem);
  --font-display: clamp(var(--font-title-lg), 11vw, 14.5rem);
  --line-body: 1.42;
  --line-title: 1.1;
  --space-1: .5rem;
  --space-2: .625rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 3.75rem;
  --space-11: 4.75rem;
  --space-12: 6rem;
  --space-13: 7.5rem;
  --space-14: 9.375rem;
  --space-15: 11.75rem;
  --heading-gap: clamp(var(--space-6), 2.8vw, var(--space-9));
  --display-gap: clamp(var(--space-7), 4vw, var(--space-11));
  --section-space: clamp(var(--space-11), 9vw, var(--space-14));
  --section-space-lg: clamp(var(--space-12), 12vw, var(--space-15));
  --gutter: clamp(16px, 2.8vw, 40px);
  --ease: cubic-bezier(.2,.7,.1,1);
  --ease-io: cubic-bezier(.7,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 var(--font-body)/var(--line-body) var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }

/* placeholder marker */
.ph { text-decoration: underline dashed 1px; text-underline-offset: .22em; }
.ph::after { content: "ph"; display: inline-block; margin-left: .35em; padding: 1px 4px 0; font: 400 9px/1.3 var(--f-text); letter-spacing: .08em; text-transform: uppercase; vertical-align: super; border: 1px solid currentColor; opacity: .55; }
.is-clean .ph { text-decoration: none; } .is-clean .ph::after { display: none; }

/* ---------- type ---------- */
.sub { display: flex; justify-content: center; align-items: center; gap: var(--space-1); font: 400 var(--font-label)/1.2 var(--f-text); text-transform: uppercase; letter-spacing: .16em; color: var(--ink-60); margin-bottom: var(--heading-gap); }
.sub--light { color: var(--paper-60); }
.sub__ico { width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(405deg); } }
.mega { font: 600 var(--font-display)/var(--line-title) var(--f-display); text-transform: uppercase; text-align: center; letter-spacing: -.01em; color: var(--cream); }
.mega--dark { color: var(--ink); }
.mega--sm { font-size: var(--font-section); }
.vbar { display: inline-block; width: .15em; height: .78em; background: var(--accent); vertical-align: -.02em; margin: 0 .12em; }
.bar { display: inline-block; width: 4px; height: 14px; background: var(--c, var(--accent)); }

/* line-rise reveal */
/* Social Gothic caps poke .05em above the line box, Й/Ё accents .22em, Д/Щ tails .14em below:
   the mask extends past the line box; negative margins keep the layout */
.js [data-rise] { display: grid; }
[data-rise] .rl { display: block; overflow: hidden; padding: .26em 0 .18em; margin: -.26em 0 -.18em; }
[data-rise] .rl > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
[data-rise].is-in .rl > span { transform: none; }
/* blur reveal */
.js [data-blur] .w { display: inline-block; white-space: pre; opacity: 0; filter: blur(12px); transform: translateY(.3em); transition: opacity .9s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 22ms); }
.js [data-blur].is-in .w { opacity: 1; filter: none; transform: none; }

/* ---------- buttons ---------- */
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; font: 400 15px/1 var(--f-text); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; overflow: hidden; isolation: isolate; transition: color .4s var(--ease), transform .3s var(--ease); }
.pill::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill, var(--accent)); transform: translateY(101%); transition: transform .5s var(--ease); }
.pill:hover::before { transform: none; }
.pill:active { transform: scale(.96); }
.pill--light { background: var(--cream); color: var(--ink); --fill: var(--accent); }
.pill--light:hover { color: #fff; }
.pill--ghost { border: 1px solid var(--paper-14); color: var(--cream); --fill: var(--cream); }
.pill--ghost:hover { color: var(--ink); }
.pill--dark { background: var(--ink); color: var(--cream); --fill: var(--accent); }
.pill--accent { background: var(--accent); color: #fff; --fill: var(--ink); }
.rnd { width: 56px; height: 56px; border: 1px solid currentColor; display: inline-grid; place-items: center; font-size: 20px; transition: transform .3s var(--ease); }
.rnd:hover { transform: scale(.85); }
.chip { height: 44px; padding: 0 20px; border: 1px solid var(--paper-14); font-size: 15px; transition: background .3s, color .3s; }
.chip.is-active { background: var(--cream); color: var(--ink); }

/* ---------- preloader ---------- */
.pl { position: fixed; inset: 0; z-index: 300; background: var(--accent); height: 100vh; overflow: hidden; transition: height 1.4s var(--ease-io) .3s; }
.pl.is-done { height: 0; }
.pl__logo { position: absolute; left: 40px; right: 40px; bottom: 40px; aspect-ratio: 372.83 / 53.13; }
.pl__logo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl__ghost { color: rgba(255,255,255,.18); --bar: rgba(255,255,255,.18); }
.pl__fill { color: #fff; --bar: var(--ink); clip-path: inset(calc(100% - var(--p, 0%)) 0 0 0); }
.pl__count { position: absolute; left: 40px; top: 40px; font: 600 clamp(48px, 7vw, 120px)/1 var(--f-display); color: #fff; font-variant-numeric: tabular-nums; }
.pl__count::after { content: "%"; font-size: .4em; vertical-align: top; margin-left: 4px; }

/* ---------- header ---------- */
.hd { position: fixed; z-index: 100; top: 18px; left: 50%; transform: translateX(-50%); width: min(1440px, calc(100% - 48px)); height: 68px; padding: 0 10px 0 24px; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: transform .6s var(--ease), opacity .4s; }
.hd.is-hidden { transform: translate(-50%, -140%); }
.hd__logo svg { width: 140px; aspect-ratio: 372.83 / 53.13; color: var(--cream); --bar: var(--accent); }
.hd__nav { display: flex; gap: clamp(14px, 1.7vw, 30px); font-size: 15px; }
.hd__nav a { opacity: .7; transition: opacity .25s; position: relative; }
.hd__nav a:hover, .hd__nav a.is-on { opacity: 1; }
.hd__nav a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -23px; height: 2px; background: var(--accent); }
.hd__btns { display: flex; gap: 8px; align-items: center; }
.hd__btns .pill { height: 48px; padding: 0 20px; font-size: 13px; }
.hd__burger { display: none; width: 48px; height: 48px; position: relative; }
.hd__burger i { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.hd__burger i:first-child { top: 19px; } .hd__burger i:last-child { top: 27px; }
.menu-open .hd__burger i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .hd__burger i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 95; background: var(--ink); color: var(--cream); padding: 120px var(--gutter) 40px; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); visibility: hidden; }
.menu-open .menu { clip-path: inset(0); visibility: visible; }
.menu nav { display: grid; gap: 4px; }
.menu a { font: 600 clamp(36px, 9vw, 72px)/1.02 var(--f-display); text-transform: uppercase; }

/* ---------- hero ---------- */
.hero { position: relative; height: 320vh; background: var(--ink); }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--cream); }
.hero__bg { position: absolute; inset: 0; container-type: size; overflow: hidden; background: #101927; pointer-events: none; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #070c1880, #070c183d 40%, transparent 72%, #070c184a),
              linear-gradient(90deg, #070c184a, transparent 62%);
}
.hero__scene {
  --focal-x: 50%;
  position: absolute;
  top: 50%;
  left: var(--focal-x);
  width: max(calc(100% + 60px), calc((100cqh + 52px) * 16 / 9));
  aspect-ratio: 16 / 9;
  transform: translate(calc(-1 * var(--focal-x)), -50%);
}
.hero__photo,
.hero__night-art,
.hero__night-plane,
.hero__night-plane > img,
.hero__night-lights { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero__photo { object-fit: cover; }
.hero__night-art { visibility: hidden; }
.hero__night-lights { overflow: visible; }
@media (max-aspect-ratio: 4/3) {
  .hero__scene { --focal-x: 60%; }
  .hero__bg::after { background: linear-gradient(180deg, #070c188a, #070c183d 35%, transparent 70%, #070c1852); }
}
.hero__logo { position: absolute; left: 40px; right: 40px; top: 108px; width: calc(100% - 80px); aspect-ratio: 372.83 / 53.13; z-index: 2; color: var(--white); --bar: var(--accent); }
.hero__logo-reveal, .hero__logo-reveal svg { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.hero-ready) .hero__logo-reveal { opacity: 0; }
  .hero-ready .hero__logo-reveal {
    animation: hero-logo-reveal 1.2s var(--ease) var(--hero-logo-delay, .08s) both;
  }
}
@keyframes hero-logo-reveal {
  from { opacity: 0; clip-path: inset(100% 0 0); transform: translateY(12px); }
  to { opacity: 1; clip-path: inset(0); transform: translateY(0); }
}
.hero__meta { position: absolute; left: 40px; right: 40px; top: calc(108px + (100vw - 80px) * .1425 + 28px); display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 24px; font-size: 18px; text-transform: uppercase; letter-spacing: .08em; z-index: 2; }
.hero__win { position: absolute; z-index: 3; inset: 0; overflow: hidden; transform-origin: top left; transform: translate3d(0, calc(100% + 40px), 0); box-shadow: 0 40px 100px rgba(0,0,0,.4); }
.hero__win img { position: absolute; left: 50%; top: 50%; width: 100%; height: auto; transform: translate(-50%, -50%); }
.hero__win::after { content: ""; position: absolute; inset: 0; background: rgba(10,6,5,var(--wd, 0)); }
.hero__big { position: absolute; z-index: 4; inset: 0; display: grid; align-content: center; justify-items: center; pointer-events: none; font: 600 clamp(var(--font-title-lg), 13vw, 16rem)/var(--line-title) var(--f-display); text-transform: uppercase; color: var(--cream); }
.hero__line { display: block; white-space: nowrap; will-change: transform; }
.hero__hint { position: absolute; z-index: 5; left: 40px; bottom: 30px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.hero__hint::after { content: ""; display: block; width: 1px; height: 36px; margin: 10px 0 0; background: currentColor; animation: hint 1.8s var(--ease-io) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- intro ---------- */
.intro { background: var(--cream); padding: var(--section-space-lg) 0 var(--section-space); overflow: hidden; text-align: center; }
.slide-text { font: 600 clamp(var(--font-title-lg), 9.6vw, 12rem)/var(--line-title) var(--f-display); text-transform: uppercase; }
.slide-text__row { display: block; white-space: nowrap; will-change: transform; }
.pillimg { display: inline-block; width: 1.9em; height: .78em; overflow: hidden; vertical-align: -.02em; margin: 0 .06em; }
.pillimg--round { width: .78em; }
.pillimg img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--pz, 1.4)); }
.pillimg--round img { transform: scale(1.35); transform-origin: 32% 12%; }
.intro__lead { max-width: 960px; margin: clamp(var(--space-10), 6vw, var(--space-12)) auto 0; padding: 0 var(--gutter); font-size: var(--font-lead); text-wrap: balance; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1300px; margin: var(--space-11) auto 0; padding: 0 var(--gutter); }
.stats div { display: grid; gap: var(--space-1); border-left: 1px solid var(--ink-12); padding-block: var(--space-2); }
.stats div:first-child { border: 0; }
.stats b { font: 600 clamp(54px, 6vw, 110px)/.9 var(--f-display); }
.stats div > span { text-transform: uppercase; letter-spacing: .14em; font-size: var(--font-label); color: var(--ink-60); }

/* ---------- flying frames ---------- */
.fly { position: relative; height: 360vh; background: var(--ink); color: var(--cream); }
.fly__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.fr { position: absolute; left: var(--x); top: 0; width: var(--w); aspect-ratio: 3 / 4; overflow: hidden; z-index: 1; will-change: transform; }
.fr:nth-child(3n) { aspect-ratio: 4 / 3; }
.fr--front { z-index: 3; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.fr img { width: 100%; height: 100%; object-fit: cover; }
.fly__title { position: absolute; inset: 0; z-index: 4; display: grid; align-content: center; justify-items: center; text-align: center; padding-inline: var(--gutter); pointer-events: none; }
/* Reserve space above the raised breve and fit both title lines in the pinned scene. */
.fly__title .mega { padding-block-start: .12em; font-size: min(var(--font-display), 23vh); }
.fly__desc { max-width: 580px; margin-top: var(--display-gap); font-size: var(--font-body); color: var(--cream); text-shadow: 0 1px 6px var(--ink), 0 0 14px var(--ink); }

/* ---------- stacked full-screen panels ---------- */
.stack { position: relative; background: var(--ink); }
.panel { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--cream); }
.panel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--ps, 1.2)); filter: brightness(var(--pb, .62)); will-change: transform; }
.panel__txt { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; padding: 0 var(--gutter); transform: scale(var(--pt, 1)); }
.panel__n { font-size: var(--font-label); letter-spacing: .2em; margin-bottom: var(--heading-gap); opacity: .8; }
.panel__big { font: 600 min(15vw, 28vh, 18.5rem)/var(--line-title) var(--f-display); text-transform: uppercase; }
.panel__cap { margin-top: var(--display-gap); font-size: var(--font-body); max-width: 460px; }

/* ---------- scenarios ---------- */
.scen { position: relative; height: 440vh; background: var(--cream); }
.scen__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scen__head { position: absolute; left: 0; right: 0; top: 110px; z-index: 3; }
.scen__words { position: absolute; inset: 0; display: grid; place-items: center; }
.scen__word { grid-area: 1 / 1; font: 600 clamp(90px, 21vw, 420px)/1 var(--f-display); text-transform: uppercase; white-space: nowrap; color: var(--ink); transform: translateX(60vw); opacity: 0; transition: transform 1.2s var(--ease), opacity .8s; }
.scen__word.is-on { transform: none; opacity: 1; }
.scen__word.is-past { transform: translateX(-60vw); opacity: 0; }
.scen__frame { position: absolute; left: 50%; top: 52%; width: min(26vw, 420px); height: min(64vh, 640px); transform: translate(-50%, -50%); overflow: hidden; z-index: 2; box-shadow: 0 40px 90px rgba(22,16,14,.25); }
.scen__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.2); transition: clip-path 1.1s var(--ease-io), transform 1.6s var(--ease); }
.scen__frame img.is-on { clip-path: inset(0); transform: none; z-index: 2; }
.scen__frame img.is-past { clip-path: inset(0); z-index: 1; }
.scen__list { position: absolute; left: 40px; bottom: 56px; z-index: 3; display: grid; gap: 6px; font: 600 26px/1.1 var(--f-display); text-transform: uppercase; }
.scen__list li { opacity: .28; transition: opacity .4s, transform .5s var(--ease); display: flex; gap: 14px; align-items: baseline; }
.scen__list li > span:first-child { font: 400 13px var(--f-text); letter-spacing: .1em; }
.scen__list li.is-on { opacity: 1; transform: translateX(18px); }
.scen__texts { position: absolute; right: 40px; bottom: 56px; width: min(380px, 30vw); z-index: 3; }
.scen__t { position: absolute; right: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity .6s, transform .8s var(--ease), filter .8s; }
.scen__t.is-on { position: relative; opacity: 1; transform: none; filter: none; }
.scen__t h3 { font: 600 var(--font-card)/var(--line-title) var(--f-display); text-transform: uppercase; margin-bottom: var(--space-4); color: var(--accent); }
.scen__t p { font-size: var(--font-body); }
.scen__bar { position: absolute; left: 50%; bottom: 28px; width: 160px; height: 2px; margin-left: -80px; background: var(--ink-12); z-index: 3; }
.scen__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

/* ---------- location ---------- */
.loc { position: relative; background: var(--ink); color: var(--cream); padding-top: var(--section-space-lg); overflow: hidden; }
.loc__head { text-align: center; padding: 0 var(--gutter); }
.loc__head .sub { margin-bottom: var(--space-5); }
.loc__desc { max-width: 34em; margin: 0 auto; font-size: var(--font-lead); color: var(--paper-60); text-wrap: balance; }
/* Scale the gap with the title so the dots on Ё have room at display sizes. */
.loc__title { position: relative; z-index: 3; display: flex; justify-content: center; align-items: baseline; gap: .28em; margin-top: clamp(var(--space-8), .24em, var(--space-12)); padding-inline: var(--gutter); font: 600 min(18.5vw, 400px)/var(--line-title) var(--f-display); text-transform: uppercase; pointer-events: none; }
.loc__title > span { white-space: nowrap; }
.loc__title > span:first-child { --loc-enter-x: -12vw; }
.loc__title > span:last-child { color: var(--accent); --loc-enter-x: 12vw; }
.loc__map {
  --map-panel: #241a16;
  --map-border: #65534a;
  --map-dock: clamp(16px, 3vw, 36px);
  position: relative;
  height: 100vh;
  margin-top: clamp(var(--space-7), 3vw, var(--space-10));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  gap: 10px;
  padding: var(--map-dock);
  background: #221915;
}
.loc__symbols { position: absolute; width: 0; height: 0; }
.loc__viewport { position: absolute; inset: 0; isolation: isolate; overflow: clip; cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; }
.loc__viewport.is-dragging { cursor: grabbing; }
.loc__viewport.is-dragging .loc__pin { pointer-events: none; }
.loc__plane { position: absolute; width: 100%; aspect-ratio: 2000 / 1182; transition-property: none; }
.loc__base, .loc__streets { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.loc__streets text {
  fill: #cebfb0;
  stroke: #221915;
  stroke-width: 2.5;
  stroke-linejoin: round;
  paint-order: stroke fill;
  font: 400 17px var(--f-text);
  letter-spacing: .45px;
  text-anchor: middle;
}
.loc__streets .loc__artery { font-size: 21px; fill: #f3eee6; }
.loc__pin {
  --marker-color: #efd9aa;
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, calc(-100% - 9px));
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--map-border);
  background: var(--map-panel);
  box-shadow: 0 4px 14px #100a0870;
  -webkit-tap-highlight-color: transparent;
}
.loc__pin[hidden] { display: none; }
.loc__pin[data-category="health"] { --marker-color: #ffc1c7; }
.loc__pin[data-category="shop"] { --marker-color: #efcc97; }
.loc__pin[data-category="park"] { --marker-color: #bbd8a8; }
.loc__pin[data-category="sport"], .loc__pin[data-category="move"] { --marker-color: #c3dbec; }
.loc__pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 6px;
  height: 6px;
  background: var(--marker-color);
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px var(--map-panel);
  pointer-events: none;
}
.loc__pin--below { transform: translate(-50%, 9px); }
.loc__pin--below::after { top: -12px; bottom: auto; }
.loc__pin svg, .loc__zoom svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: bevel; }
.loc__pin svg { width: 26px; height: 26px; padding: 5px; background: var(--marker-color); color: var(--ink); }
.loc__pin:is(:hover, :focus-visible) { border-color: var(--marker-color); }
.loc__pin--home {
  --marker-color: var(--accent);
  z-index: 1;
  width: 46px;
  height: 46px;
  background: var(--cream);
  border-color: var(--cream);
}
.loc__pin--home svg { width: 36px; height: 36px; padding: 8px; color: white; }
.loc__pin--home::after { width: 9px; height: 9px; bottom: -13.5px; }
.loc__tooltip {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: max-content;
  max-width: min(240px, calc(100% - 20px));
  padding: 8px 12px;
  border: 1px solid var(--map-border);
  background: var(--map-panel);
  color: var(--cream);
  box-shadow: 0 4px 14px #100a0870;
  font: 600 13px/1.3 system-ui, sans-serif;
  pointer-events: none;
  transition-property: none;
}
.loc__zoom, .cats {
  position: relative;
  display: flex;
  background: var(--map-panel);
  border: 1px solid var(--map-border);
  box-shadow: 0 4px 18px #100a0880;
}
.loc__zoom { justify-self: end; flex-direction: column; }
.loc__zoom button { display: grid; place-items: center; width: 44px; height: 44px; color: var(--cream); }
.loc__zoom button + button { border-top: 1px solid #ffffff17; }
.loc__zoom button:disabled { opacity: .36; cursor: default; }
.loc__zoom button:hover:enabled, .cats button:hover { background: #3f312a; }
.loc__zoom svg { width: 21px; height: 21px; }
.cats { justify-self: center; max-width: 100%; flex-wrap: wrap; justify-content: center; gap: 3px; padding: 4px; }
.cats button { min-height: 44px; padding: 0 16px; font: 400 16px var(--f-text); color: var(--cream); white-space: nowrap; transition: background-color .25s, color .25s; }
.cats button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.loc__map :focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.loc__viewport:focus-visible { outline-offset: -4px; }

@media (prefers-reduced-motion: no-preference) {
  .js .loc__title > span { transition: transform .8s var(--ease), opacity .55s; }
  .js .loc__title:not(.is-in) > span { opacity: 0; transform: translateX(var(--loc-enter-x)); }
  .js .loc__map .loc__viewport { clip-path: inset(0); transition: clip-path .75s var(--ease); }
  .js .loc__map:not(.is-in) .loc__viewport:not(:focus-within) { clip-path: inset(0 0 100% 0); }
  .loc__map.is-in .loc__pin:not([hidden]):not(:focus) {
    animation: loc-fade-in .42s var(--ease) var(--pin-delay, 0ms) both;
  }
  .loc__pin { transition: border-color .2s; }
  .loc__pin svg { transition: transform .22s var(--ease); }
  .loc__pin:is(:hover, :focus-visible) svg { transform: scale(1.09); }
  .loc__tooltip:not([hidden]) { animation: loc-fade-in .2s ease-out both; }
}
@keyframes loc-fade-in { from { opacity: 0; } }
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .js .loc__title:not(.is-in) > span { transform: translateY(14px); }
}

/* ---------- tabs panel ---------- */
.tp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 100vh; background: var(--espresso); color: var(--cream); }
.tp__side { padding: var(--section-space) clamp(var(--space-6), 5vw, var(--space-12)) var(--space-10); display: flex; flex-direction: column; }
.tp__side .sub { justify-content: flex-start; }
.tp__count { font: 400 var(--font-lead)/1 var(--f-display); margin-bottom: var(--space-8); opacity: .6; }
.tp__count b { font-weight: 600; opacity: 1; }
.tp__tabs { display: grid; gap: 4px; margin-bottom: auto; }
.tp__tab { text-align: left; padding: var(--space-4) 0; border-bottom: 1px solid var(--paper-14); color: rgba(243,238,230,.45); transition: color .3s; }
.tp__tab.is-on { color: var(--cream); }
.tp__lbl { display: flex; align-items: center; gap: var(--space-3); font: 600 var(--font-card)/1.1 var(--f-display); text-transform: uppercase; transition: transform .5s var(--ease); }
.tp__tab.is-on .tp__lbl { transform: translateX(6px); }
.tp__star { width: 0; height: 22px; background: var(--accent); transition: width .5s var(--ease); flex: none; }
.tp__tab.is-on .tp__star { width: 6px; }
.tp__d { display: block; max-height: 0; opacity: 0; overflow: hidden; font-size: var(--font-body); color: var(--paper-60); transition: max-height .7s var(--ease), opacity .5s, margin .6s var(--ease); }
.tp__tab.is-on .tp__d { max-height: 120px; opacity: 1; margin-top: var(--space-3); }
.tp__nav { display: flex; gap: var(--space-2); margin-top: var(--space-8); }
.tp__media { position: relative; overflow: hidden; min-height: 70vh; }
.tp__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 100%); transform: scale(1.15) translateX(8%); transition: clip-path 1.2s var(--ease-io), transform 1.8s var(--ease); }
.tp__media img.is-on { clip-path: inset(0); transform: none; z-index: 2; }
.tp__media img.is-past { clip-path: inset(0); z-index: 1; transform: translateX(-12%); }
.tp__media img, .tp__mimg img { object-position: var(--benefits-position, center); }
.tp img[src="assets/img/benefits/street.webp"] { --benefits-position: 18% 82%; }
.tp img[src="assets/img/benefits/courtyard.webp"] { --benefits-position: 55% 78%; }
.tp img[src="assets/img/benefits/padel.webp"] { --benefits-position: 96% 87%; }
.tp img[src="assets/img/benefits/district.webp"] { --benefits-position: 59% 66%; }
.tp img[src="assets/img/benefits/parking.webp"] { --benefits-position: 79% 83%; }
.tp img[src="assets/img/benefits/entry.webp"] { --benefits-position: 59% 80%; }

/* ---------- yard ---------- */
.yard { position: relative; background: var(--cream); }
.yard__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.yard__frame { position: absolute; left: 50%; top: 50%; width: var(--yw, 38vw); height: var(--yh, 62vh); transform: translate(-50%, -50%); overflow: hidden; }
.yard__frame::after { content: ""; position: absolute; inset: 0; background: rgba(16, 10, 8, .44); pointer-events: none; }
.yard__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--yi, 1.25)); }
.yard__big { position: relative; z-index: 2; display: grid; justify-items: center; font: 600 clamp(var(--font-title-lg), 17vw, 21rem)/var(--line-title) var(--f-display); text-transform: uppercase; color: #fff; text-shadow: 0 2px 24px rgba(16, 10, 8, .35); pointer-events: none; }
.yard__big > span { display: block; white-space: nowrap; will-change: transform; }
.yard__scene { position: relative; height: 240vh; }
.yard__info { position: relative; z-index: 2; background: var(--cream); padding: var(--section-space) var(--gutter) var(--section-space-lg); max-width: 1600px; margin: 0 auto; }
.yard__lead { max-width: clamp(900px, 62vw, 1020px); margin: 0 auto var(--space-10); text-align: center; font-size: var(--font-lead); text-wrap: balance; }
.gp { position: relative; }
.gp svg { width: 100%; height: auto; display: block; }
.gp__t text { font: 600 30px var(--f-display); fill: var(--cream); text-transform: uppercase; }
.gp__pins { position: absolute; inset: 0; }
.gpin { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(255,255,255,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(22,16,14,.25); font: 600 16px/1 var(--f-display); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s, color .3s; }
.gpin:hover, .gpin.is-on { background: var(--accent); color: #fff; transform: scale(1.15); }
.gp__card { position: absolute; width: 280px; padding: 18px 20px; background: rgba(22,16,14,.82); color: var(--cream); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; gap: 8px; pointer-events: none; animation: pop .35s var(--ease); z-index: 4; }
.gp__card b { font: 600 24px/1 var(--f-display); text-transform: uppercase; }
.gp__card span { font-size: 16px; color: var(--paper-60); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- lounge ---------- */
.lounge { position: relative; height: 115vh; overflow: hidden; color: var(--cream); }
.lounge__bg { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.lounge__panel { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(600px, 38%); height: 680px; max-height: 80vh; padding: var(--space-10) clamp(var(--space-7), 4vw, var(--space-10)) var(--space-11); background: var(--accent); color: #fff; display: flex; flex-direction: column; }
.lounge__panel .sub { justify-content: flex-start; color: rgba(255,255,255,.8); }
.lounge__panel .sub__ico { background: #fff; }
/* The breve on Й needs more clearance in the second line. */
.lounge__title { font: 600 clamp(var(--font-title), 4.6vw, 4.75rem)/calc(var(--line-title) + .05) var(--f-display); text-transform: uppercase; }
.lounge__desc { font-size: var(--font-body); max-width: 360px; margin: var(--heading-gap) 0 0 var(--space-12); } /* clears the accent frame that overlaps the panel edge */
.lounge__accent { position: absolute; left: calc(62% - 120px); top: 62%; width: 240px; height: 300px; overflow: hidden; z-index: 3; box-shadow: 0 30px 80px rgba(0,0,0,.4); will-change: transform; }
.lounge__accent img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- flats intro ---------- */
.flats { background: var(--cream); padding-bottom: var(--section-space-lg); }
.flats__intro {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(var(--space-12), 7.5vw, var(--space-14)) var(--gutter) clamp(var(--space-9), 7vw, var(--space-12));
  text-align: center;
}
.flats__copy { position: relative; z-index: 2; max-width: 44rem; margin-inline: auto; }
.flats__intro .mega { font-size: clamp(2.5rem, 12vw, 7rem); }
.flats__lead { max-width: 31em; margin: var(--display-gap) auto 0; font-size: var(--font-lead); color: var(--ink-60); }
.flats__plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 30rem;
  margin: var(--display-gap) auto 0;
  padding-block: var(--space-4);
  pointer-events: none;
}
.fplan {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  justify-self: start;
  align-self: start;
  width: min(100%, 11rem);
  aspect-ratio: 1;
  overflow: hidden;
  padding: clamp(12px, 2vw, 28px);
  border: 1px solid rgba(22,16,14,.09);
  background: #fff;
  box-shadow: 0 16px 38px rgba(22,16,14,.09), 0 2px 6px rgba(22,16,14,.04);
}
.fplan:nth-child(even) { justify-self: end; }
.fplan:first-child { margin-inline-start: clamp(12px, 3vw, 48px); }
.fplan:last-child { margin-inline-end: clamp(12px, 3vw, 48px); }
.fplan img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.fplan--far {
  z-index: 0;
  width: min(76%, 9.25rem);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 24px rgba(22,16,14,.05);
}
.fplan--far img { filter: blur(1.15px); opacity: .57; }
@media (min-width: 1000px) {
  .flats__copy { width: 52%; }
  .flats__intro .mega { font-size: clamp(var(--font-title-lg), 9vw, 9.5rem); }
  .flats__plans {
    position: absolute;
    inset: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-4) clamp(32px, 5vw, 80px);
  }
  .fplan { width: clamp(9rem, 16.5vw, 16rem); align-self: center; }
  .fplan--far { width: clamp(7rem, 12.6vw, 12.75rem); }
  .fplan:nth-child(2) { margin-block-start: var(--space-7); }
  .fplan:nth-child(3) { margin-block-end: var(--space-7); }
}
@media (max-width: 999px) {
  .fplan:nth-child(2) { margin-block-start: var(--space-6); }
  .fplan:nth-child(3) { margin-block-start: calc(-1 * var(--space-11)); }
  .fplan:nth-child(4) { margin-block-start: calc(-1 * var(--space-5)); }
}
.flats .wrap > .flats__mode { margin-bottom: var(--space-6); }

/* ---------- flats ---------- */
.flats__mode, .seg-group { display: inline-flex; padding: 4px; background: var(--soft); gap: 2px; }
.seg-group--wrap { flex-wrap: wrap; }
.seg { height: 40px; padding: 0 18px; font-size: 15px; letter-spacing: .03em; transition: background .3s, color .3s; white-space: nowrap; }
.seg:hover { background: rgba(0,0,0,.06); }
.seg.is-active { background: var(--black); color: var(--white); }
.flats__mode .seg { height: 48px; padding: 0 26px; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.filters { border: 1px solid var(--ink-12); padding: clamp(var(--space-5), 2.4vw, var(--space-8)); margin-bottom: var(--space-7); }
.filters__types { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-7); }
.ftype { position: relative; min-width: 120px; padding: 14px 18px 14px 20px; border: 1px solid var(--ink-12); text-align: left; transition: border-color .3s, background .3s, color .3s; }
.ftype::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 4px; background: var(--c); transform: scaleY(.4); transition: transform .35s var(--ease); }
.ftype b { display: block; font: 600 var(--font-lead)/1 var(--f-display); }
.ftype span { font-size: var(--font-label); color: var(--ink-60); }
.ftype:hover::before, .ftype.is-active::before { transform: none; }
.ftype.is-active { background: var(--black); color: var(--white); border-color: var(--black); }
.ftype.is-active span { color: var(--paper-60); }
.ftype:disabled { opacity: .35; cursor: default; }
.filters__row { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 28px 40px; align-items: end; }
.field { display: grid; gap: var(--space-3); }
.field__l { font-size: var(--font-label); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-60); display: flex; justify-content: space-between; gap: var(--space-3); }
.field__l output { color: var(--black); letter-spacing: .04em; font-size: 15px; }
.field--checks { grid-auto-flow: column; grid-template-rows: auto auto; align-items: center; justify-content: start; gap: 12px 18px; }
.field--checks .field__l { grid-column: 1 / span 3; }
.range { position: relative; height: 40px; }
.range::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--ink-12); }
.range__fill { position: absolute; top: 19px; height: 2px; background: var(--black); left: var(--a, 0%); right: calc(100% - var(--b, 100%)); }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 2; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 8px; height: 34px; background: var(--black); cursor: grab; border: 0; }
.range input::-moz-range-thumb { pointer-events: auto; width: 8px; height: 34px; background: var(--black); cursor: grab; border: 0; }
.range input::-webkit-slider-runnable-track { background: none; }
.range input::-moz-range-track { background: none; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 16px; user-select: none; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--ink-60); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check input::after { content: ""; width: 3px; height: 12px; background: var(--white); transform: scaleY(0); transition: transform .25s var(--ease); }
.check input:checked { background: var(--black); border-color: var(--black); }
.check input:checked::after { transform: none; }
.filters__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--ink-12); flex-wrap: wrap; }
.filters__count { font-size: 18px; }
.filters__count b { font: 600 var(--font-form)/1 var(--f-display); margin-right: 4px; }
.filters__sort { display: flex; align-items: center; gap: 20px; font-size: 15px; color: var(--ink-60); }
.filters__sort select { margin-left: 10px; height: 40px; padding: 0 34px 0 14px; border: 1px solid var(--ink-12); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; color: var(--black); }
.link-reset { text-decoration: underline; text-underline-offset: 4px; color: var(--black); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--ink-12);
  background: var(--white); text-align: left; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  animation: cardIn .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes cardIn { from { opacity: 0; filter: blur(10px); transform: translateY(24px); } }
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,.1); border-color: transparent; }
.card__plan { position: relative; aspect-ratio: 1 / .86; background: #fafafa; }
.card__plan img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.card:hover .card__plan img { transform: scale(1.05); }
.card__body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card__type { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; }
.card__type::before { content: ""; width: 4px; height: 16px; background: var(--c); }
.card__area { font: 600 var(--font-form)/1 var(--f-display); }
.card__area small { font: 400 16px var(--f-text); margin-left: 3px; }
.card__meta { font-size: 15px; color: var(--ink-60); }
.card__tags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 26px; }
.tag { padding: 4px 10px; background: var(--soft); font-size: 13px; letter-spacing: .03em; }
.card__price { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--ink-12); font-size: 15px; }
.card__price span:last-child { font-size: 22px; transition: transform .3s var(--ease); }
.card:hover .card__price span:last-child { transform: translateX(4px); }
.cards__empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; font: 600 32px/1.1 var(--f-display); }
.flats__more { margin: 32px auto 0; display: flex; }
.floors { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.floors__side { display: grid; gap: 28px; position: sticky; top: 100px; }
.floors__note { font-size: 16px; color: var(--ink-60); }
.floors__img { border: 1px solid var(--ink-12); padding: 20px; cursor: zoom-in; background: #fff; }
.floors__img img { width: 100%; height: auto; transition: opacity .35s, filter .45s; }
.floors__img.is-loading img { opacity: .2; filter: blur(8px); }

/* ---------- modal + zoom ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.modal[hidden], .zoom[hidden] { display: none; }
.modal__shade { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .4s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--white); color: var(--black); display: grid; grid-template-columns: 1.25fr 1fr; animation: modalIn .6s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.98); filter: blur(8px); } }
.modal__x { position: absolute; right: 16px; top: 16px; z-index: 2; border-color: var(--ink-12); background: var(--white); }
.modal__x:hover { background: var(--black); color: var(--white); }
.modal__plan { background: #fafafa; padding: 40px; display: grid; place-items: center; min-height: 420px; }
.modal__plan img { max-height: 70vh; width: auto; mix-blend-mode: multiply; }
.modal__info { padding: clamp(var(--space-6), 3vw, var(--space-9)); display: grid; gap: var(--space-5); align-content: start; }
.modal__title { font: 600 clamp(var(--font-title), 4vw, var(--font-title-lg))/var(--line-title) var(--f-display); }
.modal__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.modal__dl div { padding: 12px 0; border-bottom: 1px solid var(--ink-12); }
.modal__dl dt { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-60); }
.modal__dl dd { font: 600 var(--font-lead)/1.1 var(--f-display); margin-top: 4px; }
.modal__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.modal__price { font: 600 var(--font-card)/1 var(--f-display); }
.modal__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.zoom { position: fixed; inset: 0; z-index: 160; background: rgba(255,255,255,.97); overflow: auto; cursor: zoom-out; }
.zoom img { width: max(100%, 1800px); max-width: none; }
.zoom .round { position: fixed; right: 20px; top: 20px; background: var(--black); color: var(--white); }



/* ---------- v2 overrides for the shared picker ---------- */
.flats .filters { background: #fff; border-color: transparent; box-shadow: 0 20px 60px rgba(22,16,14,.06); }
.flats .card { border-color: transparent; box-shadow: 0 10px 40px rgba(22,16,14,.05); }
.flats .card__area, .flats .ftype b, .flats .modal__title { text-transform: uppercase; }
.modal__where { display: flex; align-items: center; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-60); }
.modal__x { position: absolute; right: 16px; top: 16px; z-index: 2; background: #fff; color: var(--ink); border-color: var(--ink-12); }
.zoom { cursor: zoom-out; }

/* ---------- buy ---------- */
.buy { background: var(--ink); color: var(--cream); padding: var(--section-space-lg) 0; }
.buy__head { text-align: center; margin-bottom: clamp(56px, 6vw, 96px); padding: 0 var(--gutter); }
.calc { display: grid; gap: 32px; }
.calc__programs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.calc__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.calc__inputs { display: grid; gap: 34px; align-content: center; padding: clamp(24px, 3vw, 48px); border: 1px solid var(--paper-14); }
.slider { display: grid; gap: 14px; }
.slider span { display: flex; justify-content: space-between; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--paper-60); }
.slider output { font: 600 30px/1 var(--f-display); color: var(--cream); letter-spacing: 0; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; background: linear-gradient(var(--accent), var(--accent)) 0 50% / var(--v, 50%) 2px no-repeat, linear-gradient(var(--paper-14), var(--paper-14)) 0 50% / 100% 2px no-repeat; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: var(--cream); border: 6px solid var(--accent); cursor: grab; }
.slider input::-moz-range-thumb { width: 12px; height: 12px; background: var(--cream); border: 6px solid var(--accent); cursor: grab; }
.calc__rate { font-size: 16px; color: var(--paper-60); }
.calc__rate b { color: var(--cream); font-weight: 400; margin-right: 6px; }
.calc__result { background: var(--cream); color: var(--ink); padding: clamp(24px, 3vw, 48px); display: grid; gap: 12px; align-content: start; }
.calc__result > p:first-child { font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-60); }
.calc__pay { font: 600 clamp(54px, 6vw, 110px)/.9 var(--f-display); }
.calc__result dl { margin: 12px 0 20px; }
.calc__result dl div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--ink-12); font-size: 17px; }
.ways { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3); margin-top: var(--display-gap); }
.way { background: var(--espresso); padding: var(--space-6) var(--space-5); display: grid; gap: var(--space-4); min-height: 200px; align-content: start; transition: background .4s, color .4s, transform .5s var(--ease); }
.way:hover { background: var(--accent); color: #fff; transform: translateY(-6px); }
.way > span { font: 600 var(--font-label) var(--f-display); opacity: .6; }
.way b { font: 600 var(--font-card)/var(--line-title) var(--f-display); text-transform: uppercase; }
.way p { font-size: var(--font-body); opacity: .7; }

/* ---------- progress (horizontal) ---------- */
.prog { position: relative; background: var(--cream); height: var(--hx-h, 300vh); }
.prog__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 48px; }
.prog__head { text-align: center; padding: 0 var(--gutter); }
.prog__track { display: flex; gap: 20px; padding: 0 40px; width: max-content; will-change: transform; }
.pcard { width: clamp(280px, 28vw, 460px); display: grid; gap: 8px; }
.pcard__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); position: relative; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .6s, transform 1s var(--ease); }
.pcard:hover .pcard__img img { filter: none; transform: scale(1.05); }
.pcard p { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-60); }
.pcard b { font: 600 30px/1 var(--f-display); text-transform: uppercase; }
.pcard--cam .pcard__img span { position: absolute; left: 16px; top: 16px; padding: 6px 12px; background: var(--accent); color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.prog__note { text-align: center; font-size: 14px; color: var(--ink-60); }

/* ---------- developer ---------- */
.dev { background: var(--ink); color: var(--cream); padding: var(--section-space) 0 var(--section-space-lg); overflow: hidden; }
.mq { overflow: hidden; margin-bottom: clamp(var(--space-10), 7vw, var(--space-13)); }
.mq__t { display: flex; align-items: center; gap: .3em; width: max-content; padding: .1em 0 .06em; font: 600 clamp(90px, 15vw, 300px)/1 var(--f-display); text-transform: uppercase; will-change: transform; }
.mq__t .vbar { height: .7em; }
.dev__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: var(--space-10); align-items: start; }
.dev__grid .sub { justify-content: flex-start; }
.dev__lead { font-size: var(--font-lead); }
.dev__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--display-gap); }
.dev__stats b { display: block; font: 600 clamp(48px, 5vw, 90px)/.9 var(--f-display); }
.dev__stats div > span { color: var(--paper-60); font-size: var(--font-label); text-transform: uppercase; letter-spacing: .12em; }
.dev__projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dev__gallery { min-width: 0; }
.dev__controls { display: none; }
@media (max-width: 900px) {
  .dev__projects {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .dev__projects::-webkit-scrollbar { display: none; }
  .dev__projects:focus-visible { outline-offset: -3px; }
  .dev__projects .proj:nth-child(n) { display: block; flex: 0 0 85%; min-width: 0; margin-top: 0; scroll-snap-align: start; transform: none !important; }
  .dev__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
  .dev__controls .rnd { width: 48px; height: 48px; font-family: system-ui, sans-serif; }
  .dev__controls .rnd:hover { transform: none; }
  .dev__controls .rnd:disabled { opacity: .35; cursor: default; }
  .dev__status { font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
}
.proj:nth-child(2) { margin-top: 120px; }
.proj:nth-child(3) { margin-top: 40px; }
.proj img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.proj p { margin-top: var(--space-3); font-size: var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--paper-60); }

/* ---------- contacts ---------- */
.ct { background: var(--accent); color: #fff; padding: var(--section-space-lg) 0; }
.ct__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-10); align-items: center; }
.ct .sub { justify-content: flex-start; color: rgba(255,255,255,.8); }
.ct .sub__ico { background: #fff; }
.ct .mega { text-align: left; color: #fff; font-size: clamp(var(--font-title), 5.4vw, 6rem); }
.ct__dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--space-8); margin-top: var(--display-gap); }
.ct__dl dt { font-size: var(--font-label); text-transform: uppercase; letter-spacing: .14em; opacity: .75; margin-bottom: var(--space-1); }
.ct__dl dd { font: 600 var(--font-lead)/1.1 var(--f-display); text-transform: uppercase; }
.lead { background: var(--cream); color: var(--ink); padding: clamp(var(--space-6), 3vw, var(--space-9)); display: grid; gap: var(--space-4); }
.lead__t { font: 600 var(--font-form)/var(--line-title) var(--f-display); text-transform: uppercase; margin-bottom: var(--space-1); }
.inp { position: relative; display: block; }
.inp input { width: 100%; height: 64px; padding: 22px var(--space-5) 0; border: 1px solid var(--ink-12); background: #fff; font-size: var(--font-body); }
.inp input:focus { outline: 0; border-color: var(--ink); }
.inp > span { position: absolute; left: 20px; top: 21px; line-height: 1.2; color: var(--ink-60); transition: transform .25s var(--ease); transform-origin: 0 0; pointer-events: none; }
.inp > input:focus + span, .inp > input:not(:placeholder-shown) + span { transform: translateY(-12px) scale(.72); }
.inp.is-error input { border-color: var(--accent); }
.lead .pill { height: 60px; width: 100%; }
.lead .check { font-size: var(--font-label); color: var(--ink-60); }
.lead .check a { text-decoration: underline; }
.lead__ok { font: 600 var(--font-lead)/1.1 var(--f-display); color: var(--accent); text-transform: uppercase; }
.lead.is-sent > :not(.lead__ok):not(.lead__t) { display: none; }

/* ---------- footer ---------- */
.ft { background: var(--ink); color: var(--cream); padding: var(--space-11) 0 var(--space-7); overflow: hidden; }
.ft__brand { display: grid; grid-template-columns: 72.7% minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: 4.9%; aspect-ratio: 512.85 / 53.13; margin: 0 var(--gutter) clamp(var(--space-6), 3vw, var(--space-8)); clip-path: inset(var(--fc, 0%) 0 0 0); }
.ft__logo { display: block; width: 100%; height: 100%; color: var(--cream); --bar: var(--accent); }
.ft__descriptor { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(3px, .75vw, var(--space-4)); min-height: 0; }
.ft__descriptor-title { display: block; width: 100%; height: 100%; }
.ft__class { font: 400 clamp(9px, 1.4vw, 23px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.ft__row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 14px; color: var(--paper-60); }
.ft__row a { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
/* Existing bookmarks still work via the legacy URL. */
.ft__row a[href="straight.html"] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .hd__nav { display: none; }
  .hd__burger { display: block; }
  .lounge__desc { margin-left: 64px; }
  .lounge__accent { left: calc(62% - 152px); }
  .ways { grid-template-columns: repeat(3, 1fr); }
  .filters__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .tp, .calc__body, .dev__grid, .ct__grid, .floors { grid-template-columns: 1fr; }
  .tp__media { min-height: 70vh; order: -1; }
  .lounge__panel { width: calc(100% - 32px); right: 16px; height: auto; top: auto; bottom: 24px; transform: none; padding: 32px 26px; }
  .lounge__desc { margin-left: 0; }
  .lounge__accent { left: 16px; top: 12%; width: 150px; height: 190px; }
  .modal__box { grid-template-columns: 1fr; }
  .floors__side { position: static; }
}
@media (max-width: 720px) {
  .hd { top: 10px; width: calc(100% - 20px); height: 58px; padding-left: 16px; }
  .hd__logo svg { width: 110px; }
  .hd__btns .pill { display: none; }
  .pl__logo, .hero__logo { left: 16px; right: 16px; width: calc(100% - 32px); }
  .hero__logo { top: 96px; }
  .hero__meta { left: 16px; right: 16px; top: calc(96px + (100vw - 32px) * .1425 + 20px); grid-template-columns: auto 1fr; align-items: baseline; gap: 18px 10px; font-size: clamp(11px, 3.1vw, 13.5px); letter-spacing: .05em; }
  .hero__facts { text-align: right; justify-self: end; white-space: nowrap; }
  .hero__meta .pill { grid-column: 1 / -1; justify-self: center; margin-top: 6px; }
  .hero__hint { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .stats div:nth-child(3) { border: 0; }
  .fr { --w: 38vw !important; }
  .scen__frame { width: 64vw; height: 50vh; top: 46%; }
  .scen__list { left: 16px; bottom: 20px; font-size: 16px; }
  .scen__list li:not(.is-on) { display: none; }
  .scen__texts { left: 16px; right: 16px; width: auto; bottom: 56px; }
  .scen__texts { display: none; }
  .loc__map { height: clamp(440px, 74svh, 640px); }
  .cats button { min-height: 41px; padding: 0 13px; }
  .loc__pin { width: 40px; height: 40px; }
  .loc__pin svg { width: 30px; height: 30px; padding: 6px; }
  .loc__pin[data-category="move"] { transform: translate(-50%, 9px); }
  .loc__pin[data-category="move"]::after { top: -12px; bottom: auto; }
  .loc__pin--home { width: 44px; height: 44px; }
  .loc__pin--home svg { width: 34px; height: 34px; padding: 7px; }
  .loc__streets text { font-size: 18px; }
  .loc__streets .loc__artery { font-size: 22px; }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .way b { font-size: 24px; }
  .dev__projects { grid-template-columns: 1fr 1fr; }
  .proj:nth-child(2) { margin-top: 60px; }
  .ct__dl { grid-template-columns: 1fr; gap: var(--space-5); }
  .filters__row { grid-template-columns: 1fr; }
  .field--checks { grid-auto-flow: row; grid-template-rows: none; }
  .field--checks .field__l { grid-column: auto; }
  .ftype { min-width: 0; flex: 1 1 30%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.section-consult { padding: clamp(var(--space-9), 6vw, var(--space-12)) 0; background: var(--cream); }
.section-consult__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(var(--space-7), 6vw, var(--space-12)); align-items: center; }
.section-consult h2 { font: 600 clamp(var(--font-form), 4.6vw, 4.75rem)/var(--line-title) var(--f-display); text-transform: uppercase; }
.section-consult h2 + p { max-width: 44ch; margin-top: var(--heading-gap); color: var(--ink-60); }
.section-consult__form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; padding: 0; }
.section-consult__form .lead__ok { grid-column: 1 / -1; }
.section-consult__form .lead__ok a { white-space: nowrap; text-decoration: underline; }
@media (max-width: 900px) {
  .section-consult__inner { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .section-consult__form { grid-template-columns: 1fr; }
}

/* Section footprints and labels share the facade render's coordinate system. */
.sections { background: var(--espresso); color: var(--cream); }
.section-map { position: relative; isolation: isolate; }
.sections__viewport { overflow: hidden; }
.sections__render { position: relative; }
.sections__render > img { display: block; width: 100%; height: auto; }
.sections__render::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(22,16,14,.82), rgba(22,16,14,.55) 22%, transparent 53%);
}
.sections__facades { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sections__facades polygon { fill: transparent; stroke: transparent; vector-effect: non-scaling-stroke; pointer-events: all; cursor: pointer; transition: fill .2s, stroke .2s; }
.sections__facades polygon:is(:hover,.is-hover,.is-active) { fill: rgba(255,0,95,.22); stroke: var(--cream); stroke-width: 1.5; }
.sections__head, .section-info { position: absolute; z-index: 3; left: var(--gutter); top: 50%; transform: translateY(-50%); }
.sections__head { width: 38%; }
.sections__head h2 { font: 600 clamp(var(--font-title-lg), 7.6vw, 9.5rem)/var(--line-title) var(--f-display); text-transform: uppercase; }
.sections__head p { max-width: 28ch; margin-top: var(--heading-gap); font-size: var(--font-lead); }
.section-pin {
  position: absolute; z-index: 2; top: var(--y); left: var(--x); transform: translate(-50%,-50%);
  min-height: 44px; display: inline-flex; align-items: center; gap: .55em; padding: 0 .76em;
 background: var(--espresso); color: var(--cream); box-shadow: 0 4px 14px #16100e44;
  font: 400 clamp(14px,1.2vw,21px)/1 var(--f-display); text-transform: uppercase;
}
.section-pin b { border-left: 1px solid #ffffff60; padding-left: .55em; font-weight: 600; }
.section-pin:is(:hover,:focus-visible,[aria-expanded=true]) { background: var(--accent); color: #fff; }
.section-info {
  width: min(37%, 390px); padding: clamp(22px,2.2vw,36px);
  background: var(--cream); color: var(--ink); box-shadow: 0 12px 36px #16100e33;
}
.section-info__house { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; }
.section-info h3 { margin: var(--space-3) 0 var(--space-4); font: 600 clamp(var(--font-form), 4vw, var(--font-title-lg))/var(--line-title) var(--f-display); text-transform: uppercase; }
.section-info__summary { color: var(--ink-60); }
.section-info__types { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.section-info__types li { background: var(--cream-2); padding: 3px 8px; font-size: 16px; }
.section-info__sales { display: flex; gap: 20px; border-top: 1px solid var(--ink-12); padding: 12px 0 18px; }
.section-info__sales dt { font-size: 15px; color: var(--ink-60); }
.section-info__sales dd { font-size: 20px; }
.section-info .pill { gap: 16px; }
.section-close { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; font: 28px/1 sans-serif; }
@media (min-width: 901px) {
  .section-map:has(.section-info:not([hidden])) .sections__head { visibility: hidden; }
}
@media (max-width: 900px) {
  .sections__head, .section-info { position: relative; top: auto; left: auto; transform: none; }
  .sections__head { width: auto; padding: var(--space-8) var(--gutter) var(--space-6); }
  .sections__head h2 { font-size: clamp(var(--font-title), 7.2vw, 4rem); }
  .sections__head h2 br { display: none; }
  .sections__head p { max-width: none; font-size: var(--font-body); }
  .sections__render { width: 200%; margin-left: -77%; }
  .sections__render::after { display: none; }
  .section-info { width: auto; margin: -16px var(--gutter) 0; padding: 20px; }
  .section-map:has(.section-info:not([hidden])) { padding-bottom: 24px; }
}
@media (max-width: 540px) {
  .sections__render { width: 255%; margin-left: -103%; }
  .section-pin { gap: .35em; padding: 0 .55em; }
  .section-pin b { padding-left: .35em; }
}
#picker {scroll-margin-top:90px}
[data-section-filter] {border:1px solid var(--ink-12);padding:9px 16px;font:inherit;background:white}
.consultation {display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:clamp(var(--space-7),6vw,var(--space-12))}
.consultation .mega,.consultation .sub {text-align:left;justify-content:flex-start}
.consultation .mega + p {margin-top:var(--heading-gap);font-size:var(--font-lead);max-width:38ch}
.intro > .pill {margin-top:var(--space-7)}
@media(max-width:760px) { .consultation {grid-template-columns:1fr} }

@media(min-width:1200px){.filters__row {grid-template-columns:auto auto 1fr 1fr auto}}

.yard-plan {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.4fr);
  max-width: 1320px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--espresso);
  color: var(--cream);
}
.yard-plan__caption {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.yard-plan h3 {
  font: 600 clamp(var(--font-card), 15cqi, var(--font-title-lg))/var(--line-title) var(--f-display);
  text-transform: uppercase;
}
.yard-plan h3::before {
  content: "";
  display: block;
  width: 40px;
  height: 5px;
  margin-bottom: var(--heading-gap);
  background: var(--accent);
}
.yard-plan__key { border-top: 1px solid var(--paper-14); padding-top: var(--space-5); }
.yard-plan__key li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--font-body); }
.yard-plan__key li + li { margin-top: var(--space-3); }
.yard-plan__key i { width: 32px; height: 26px; flex: none; }
.yard-plan__number { display: grid; place-items: center; background: #e3d6c3; color: var(--espresso); font: 600 18px/1 var(--f-display); }
.yard-plan__hatch { border: 1px solid #a08b78; background: repeating-linear-gradient(135deg,#463b34 0 4px,#96806c 4px 5px); }
.yard-plan__drawing { display: block; width: 100%; height: auto; align-self: center; background: #312823; }
.yard-plan__streets { fill: #eee3d4; font: 21px var(--f-text); paint-order: stroke; stroke: #51463e; stroke-width: 3px; stroke-linejoin: round; }
.yard-plan__houses { fill: var(--cream); font: 600 33px var(--f-display); text-transform: uppercase; }
.yard-plan__sections { fill: var(--espresso); font: 600 32px var(--f-display); }
@media (max-width: 760px) {
  .yard-plan { grid-template-columns: minmax(0, 1fr); }
  .yard-plan__caption { padding: var(--space-6); gap: var(--space-6); }
  .yard-plan h3 { font-size: clamp(var(--font-form), 7vw, var(--font-title)); }
  .yard-plan h3 br { display: none; }
  .yard-plan h3::before { margin-bottom: var(--space-4); }
  .yard-plan__key { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; }
  .yard-plan__key li { gap: 8px; font-size: 16px; }
  .yard-plan__key li + li { margin-top: 0; }
  .yard-plan__key i { width: 23px; height: 20px; }
  .yard-plan__number { font-size: 15px; }
  .yard-plan__streets { font-size: 24px; }
}
@media(max-width:760px){.fly__title .mega{font-size:clamp(var(--font-title),11vw,4.75rem)}}

/* ---------- phones: layout fixes + lighter motion (desktop untouched) ---------- */
@media (max-width: 720px) {
  /* shorter pinned scenes — less finger-scrolling through a single scene */
  .hero { height: 240vh; }
  .fly { height: 260vh; }
  .scen { height: 330vh; }
  .yard__scene { height: 180vh; }

  /* text that was wider than the screen */
  .hero__big { font-size: min(64px, 15vw); }
  .slide-text { font-size: 8.8vw; }
  .slide-text__row { transform: none !important; }
  .scen__word { font-size: 16vw; }
  .panel__big { font-size: min(70px, 19vw); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .way { padding: 20px 14px; }
  .way b { font-size: clamp(var(--font-body), 5.8vw, var(--font-lead)); }
  .scen__bar { left: auto; right: 16px; margin-left: 0; width: 72px; }
  .filters { padding: 16px; }
  .ftype { flex: 1 1 calc(50% - 5px); padding: 12px 8px 12px 18px; }
  .ftype b { font-size: clamp(16px, 5.2vw, 20px); }
  .ftype span { font-size: 13px; }
  .modal { padding: 10px; }
  .modal__box { max-height: calc(100svh - 20px); }
  .modal__plan { min-height: 0; padding: 24px; }
  .modal__plan img { max-height: 42svh; }
  .modal__x { width: 44px; height: 44px; right: 10px; top: 10px; }

  /* lighter reveals: no per-word blur, no blurred cards / modal */
  .js [data-blur] .w { filter: none; transform: none; transition: opacity .7s var(--ease); transition-delay: 0s; }
  .card { animation-name: cardInM; animation-duration: .5s; animation-delay: calc(min(var(--i, 0), 6) * 40ms); }
  .modal__box { animation-name: cardInM; animation-duration: .4s; }
  .scen__word { transition: transform .8s var(--ease), opacity .6s; }
  .tp__media img { transition: clip-path .9s var(--ease-io), transform 1.2s var(--ease); }
}
@keyframes cardInM { from { opacity: 0; transform: translateY(14px); } }
/* touch screens: hover lifts would stick after a tap */
@media (max-width: 720px) and (hover: none) {
  .card:hover, .way:hover, .rnd:hover { transform: none; }
  .card:hover .card__plan img { transform: none; }
}

/* ---------- mobile-only edits (desktop untouched) ---------- */
.stack__nav { display: none; }
@media (max-width: 720px) {
  /* 2) Stack: single-block screen slider controlled by arrow buttons */
  .stack {
    height: 100svh;
    min-height: 540px;
    max-height: 820px;
    overflow: hidden;
  }
  .stack .panel {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .6s var(--ease), opacity .45s var(--ease);
  }
  .stack .panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
  }
  .stack .panel.is-prev {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
  }
  .stack .panel.is-next {
    opacity: 0;
    transform: translateX(100%);
    z-index: 1;
  }
  .stack .panel__img {
    transform: none;
    filter: brightness(.62);
  }
  .stack .panel__txt {
    transform: none;
    padding-bottom: 84px;
  }
  .stack .panel__big .rl > span {
    transform: none;
  }
  .stack__nav {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .stack__nav .rnd {
    width: 52px;
    height: 52px;
    border-color: rgba(243, 238, 230, .55);
    background: rgba(22, 16, 14, .42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--cream);
  }

  /* 3) Location heading on phones */
  .loc__title {
    font-size: clamp(var(--font-title), 16vw, 4.75rem);
  }

  /* 4) Advantages: narrower photo frame vertically */
  .tp__media {
    min-height: 0;
    height: clamp(210px, 32svh, 280px);
  }

  /* 5) "Свой климат": remove small floating accent photo */
  .lounge__accent {
    display: none;
  }

}

/* ---------- mobile-only edits round 2 (desktop untouched) ---------- */
.tp__mimg, .scen__dots { display: none; }
@media (max-width: 720px) {
  /* 2) Advantages: move photos inside each tab's spoiler/dropdown */
  .tp {
    min-height: 0;
  }
  .tp__media {
    display: none;
  }
  .tp__side {
    padding: var(--space-8) var(--gutter) var(--space-11);
  }
  .tp__count {
    margin-bottom: var(--space-6);
  }
  .tp__lbl {
    width: 100%;
    padding-right: 28px;
    position: relative;
  }
  .tp__lbl::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font: 400 22px/1 var(--f-text);
    opacity: .6;
    transition: opacity .3s, color .3s;
  }
  .tp__tab.is-on .tp__lbl::after {
    content: "−";
    opacity: 1;
    color: var(--accent);
  }
  .tp__tab.is-on .tp__d {
    max-height: 160px;
  }
  .tp__mimg {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height .6s var(--ease), opacity .45s var(--ease), margin-top .5s var(--ease);
  }
  .tp__tab.is-on .tp__mimg {
    max-height: 260px;
    opacity: 1;
    margin-top: var(--space-4);
  }
  .tp__mimg img {
    width: 100%;
    height: auto;
    max-height: 260px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .tp__mimg img[src="assets/img/lifestyle/yoga.webp"] { --benefits-position: 50% 6%; }
  .tp__nav {
    margin-top: var(--space-7);
  }

  /* 3) "Свой климат" (.lounge): shorten vertically so text badge is immediately visible */
  .lounge {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(160px, 30svh, 240px) 16px 24px;
  }
  .lounge__bg {
    object-position: center 28%;
  }
  .lounge__panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-height: none;
    padding: var(--space-7) var(--space-5);
  }
  .lounge__title {
    font-size: clamp(var(--font-form), 9.5vw, var(--font-title-lg));
  }

  /* 5) Scenarios: larger centered caption + centered dot scroll indicator */
  .scen__head {
    top: 82px;
  }
  .scen__frame {
    width: 62vw;
    height: 42svh;
    top: 42%;
  }
  .scen__list {
    left: 16px;
    right: 16px;
    bottom: 58px;
    justify-items: center;
    text-align: center;
    font-size: clamp(32px, 9.2vw, 44px);
    line-height: 1.04;
  }
  .scen__list li {
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 .32em;
  }
  .scen__list li > span:first-child {
    font: inherit;
    letter-spacing: inherit;
    color: var(--accent);
  }
  .scen__list li.is-on {
    transform: none;
  }
  .scen__bar {
    display: none;
  }
  .scen__dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .scen__dot {
    width: 8px;
    height: 8px;
    background: rgba(22, 16, 14, .22);
    transition: width .35s var(--ease), background .35s var(--ease);
  }
  .scen__dot.is-on {
    width: 26px;
    background: var(--accent);
  }
}
