/* Основной сайт: макет во весь экран, камера идёт за прокруткой.
   Светлый бетон, графит, рыжий акцент #C2461A.
   Заголовки Geist, цифры Schibsted Grotesk 800. Трекинг по кеглю: −0.04em ≥ 96px, −0.02em 36–72px, 0 ≤ 24px. */
:root {
  --page: #e4e3df;
  --card: #f2f1ee;
  --stone: #d6d4ce;
  --ink: #1c1d1c;
  --muted: #5c5b57;
  --line: #bdbcb7;
  --hair: color-mix(in srgb, var(--ink) 13%, transparent);
  --soft-ink: color-mix(in srgb, var(--ink) 78%, var(--page));
  --faint: color-mix(in srgb, var(--ink) 34%, var(--page));
  --acc: #c2461a;
  --acc-d: #9e3812;
  --dark: #1c1d1c;
  --on-dark: #e4e3df;
  --dark-muted: #a3a29c;
  --dark-hair: color-mix(in srgb, var(--on-dark) 14%, transparent);
  --btn: var(--ink);
  --btn-ink: var(--page);
  --radius: 999px;
  --r-card: min(var(--radius), 30px);
  --r-tile: min(var(--radius), 18px);
  --shadow: color-mix(in srgb, var(--ink) 30%, transparent);
  --text: Geist, Arial, sans-serif;
  --num:
    "Schibsted Grotesk", Geist, Arial, sans-serif; /* Schibsted has no Cyrillic: к and А in 35к5, 88А come from Geist */
  --hdr: 76px;
  --m: clamp(18px, 4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  accent-color: var(--acc);
  scrollbar-color: var(--line) var(--page);
  scrollbar-width: thin;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 18px/1.5 var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu {
  overflow: hidden;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--acc);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--acc);
  color: #fff;
  padding: 10px 14px;
}
.skip:focus {
  left: 8px;
}
sup {
  font-size: 0.6em;
  line-height: 0;
  vertical-align: 0.6em;
  margin-left: 1px;
  color: var(--muted);
}
dd,
.dim,
.scale,
.res-n,
.o-idx {
  font-variant-numeric: tabular-nums;
}

/* buttons */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 26px;
  min-height: 56px;
  border-radius: var(--radius);
  background: var(--btn);
  color: var(--btn-ink);
  font: 600 16px/1 var(--text);
  letter-spacing: 0;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.25s,
    transform 0.2s;
}
.pill i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: min(var(--radius), 50%);
  background: var(--btn-ink);
  color: var(--btn);
  font: 400 24px/1 var(--text);
  font-style: normal;
  transition:
    transform 0.45s var(--ease),
    color 0.25s;
}
.pill:hover {
  background: var(--acc);
  color: #fff;
}
.pill:hover i {
  background: #fff;
}
html[data-acc="high"] .pill:hover {
  background: var(--acc-d);
}
.pill:hover i {
  transform: rotate(90deg);
  color: var(--acc);
}
.pill:active {
  transform: scale(0.98);
}
.pill:disabled {
  cursor: progress;
  opacity: 0.8;
}
.pill.busy i {
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pill:has(i) {
  justify-content: space-between;
  padding: 10px 10px 10px 26px;
}
.pill.sm {
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  gap: 12px;
}
.pill.sm:has(i) {
  padding: 6px 6px 6px 20px;
}
.pill.sm i {
  width: 34px;
  height: 34px;
  font-size: 22px;
}
.circ {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--hair);
  background: none;
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 17px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.circ:hover {
  border-color: var(--ink);
}
.circ:active {
  transform: scale(0.94);
}
button.ln-arrow {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.ln-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 15px/1 var(--text);
  letter-spacing: 0;
  padding: 8px 0;
  border-bottom: 1.5px solid currentColor;
  white-space: nowrap;
}
.ln-arrow::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.ln-arrow:hover {
  color: var(--acc);
}
.ln-arrow:hover::after {
  transform: translateX(4px);
}

/* the mark: Г draws itself (stem, shelf), then the number rises */
.g35 {
  display: block;
  overflow: visible;
}
.g35 rect,
.g35 .g-num {
  transform-box: fill-box;
}
.g35.draw .g-stem {
  transform-origin: 50% 0;
  animation: g-stem 0.95s var(--ease) both;
}
.g35.draw .g-shelf {
  transform-origin: 0 50%;
  animation: g-shelf 0.95s var(--ease) 0.12s both;
}
.g35.draw .g-num {
  animation: g-num 0.85s var(--ease) 0.42s both;
}
@keyframes g-stem {
  from {
    transform: scaleY(0);
  }
}
@keyframes g-shelf {
  from {
    transform: scaleX(0);
  }
}
@keyframes g-num {
  from {
    transform: translateY(16%);
    opacity: 0;
  }
}

/* intro: on the page colour; the mark then flies into the header and the veil fades */
.intro {
  display: none;
}
.moves .intro {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 120;
  place-items: center;
  align-content: center;
  gap: 28px;
  pointer-events: none;
  color: var(--ink);
}
.moves .intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--page);
  transition: opacity 0.8s ease 0.1s;
}
#introMark {
  position: relative;
}
.moves #introMark {
  visibility: hidden;
} /* shown by story.js once its start pose is set: no static mark first */
#introMark svg {
  transition:
    transform 0.85s var(--ease),
    color 0.85s;
}
.ready .intro::before {
  opacity: 0;
  transition: opacity 0.4s;
}
.intro.bare #introMark {
  visibility: hidden;
} /* «Без заставки»: the page only waits for the model */
.ready .intro.replay::before {
  opacity: 1;
} /* the panel replays the intro over the page */
.intro.replay svg {
  height: 120px !important;
  width: auto !important;
  max-width: 80vw !important;
}
.moves:not(.landed) .hdr-logo {
  opacity: 0;
}

/* header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 36px);
  height: var(--hdr);
  padding: 0 var(--m);
  background: var(--page);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.hdr.lift {
  border-bottom-color: var(--hair);
}
.hdr-logo {
  display: flex;
  color: var(--ink);
}
.hdr-logo .g35 {
  height: 34px;
}
.hdr-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 38px);
  margin-left: auto;
}
.hdr-nav a {
  position: relative;
  font: 500 15px/1 var(--text);
  white-space: nowrap;
}
.hdr-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1.5px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.hdr-nav a:hover::after {
  transform: scaleX(1);
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 9px;
}
.burger span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:first-child {
  transform: translateY(5px) rotate(45deg);
}
.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}
.mnav {
  position: fixed;
  z-index: 59;
  top: var(--hdr);
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  align-content: start;
  padding: 20px var(--m) 40px;
  background: var(--page);
  animation: drop 0.35s var(--ease);
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.mnav[hidden] {
  display: none;
}
.mnav a {
  font: 600 34px/1.15 var(--text);
  letter-spacing: -0.03em;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}

/* ---------- the model: sticky stage, text steps scroll over it ---------- */
.story {
  position: relative;
}
.stage {
  position: sticky;
  top: var(--hdr);
  height: calc(100svh - var(--hdr));
  overflow: hidden;
  background: radial-gradient(
    120% 80% at 55% 78%,
    color-mix(in srgb, var(--card) 80%, #fff) 0%,
    var(--page) 62%
  );
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.stage.turnable {
  cursor: grab;
}
.stage.grab {
  cursor: grabbing;
}
/* caption panel: solid, one hairline edge, no gradient veil */
.veil {
  position: absolute;
  inset: 0 auto 0 0;
  width: 41%;
  pointer-events: none;
  opacity: 0;
  background: var(--page);
  box-shadow: 1px 0 0 var(--hair);
}
.stage-fb {
  display: none;
}
.no3d .stage-fb {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 14%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2%;
}
.no3d .stage-fb img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.steps {
  position: relative;
  margin-top: calc(var(--hdr) - 100svh);
}
.step {
  position: relative;
  min-height: calc(100svh - var(--hdr));
  padding: 56px var(--m) 72px;
  display: flex;
  pointer-events: none;
}
.step a,
.step button,
.step label,
.step input {
  pointer-events: auto;
}

/* hero */
.hero {
  flex-direction: column;
  padding-top: clamp(40px, 6vh, 80px);
}
.hero h1 {
  margin-top: 0;
  font-size: clamp(52px, 6.6vw, 118px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  max-width: 13ch;
}
.hero h1 .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero h1 .ln > span {
  display: inline-block;
}
.lead {
  margin-top: 22px;
  max-width: 36ch;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--soft-ink);
}
.lots {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.lots [hidden] {
  display: none !important;
}
.lots-answer,
.lots-status {
  margin: 0;
  color: var(--muted);
}
.lots-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lots-status:empty {
  display: none;
}
.lots-status.busy {
  color: var(--ink);
  font-weight: 500;
}
.lots-status.busy::before,
#kp.busy::after,
#findLots.busy::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--hair);
  border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
}
#kp.busy::after,
#findLots.busy::after {
  margin-left: auto;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  border-top-color: currentColor;
}
#findLots {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
}
#findLots[hidden] {
  display: none !important;
}
.lots.busy .lots-list,
.lots.busy .lots-answer {
  opacity: 0.4;
}
@media (prefers-reduced-motion: reduce) {
  .lots-status.busy::before,
  #kp.busy::after {
    animation: none;
  }
}
.lots-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lots-list li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--hair);
}
.lots-list b {
  font-weight: 600;
}
.lots-list small {
  color: var(--muted);
}
.hero-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 30px;
}
.scroll-hint {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.scroll-hint i {
  position: relative;
  width: 1.5px;
  height: 34px;
  background: var(--hair);
  overflow: hidden;
}
.scroll-hint i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40%;
  background: var(--ink);
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(260%);
  }
}
.moves .hero .ln > span {
  transition: transform 1.1s var(--ease);
}
.moves:not(.ready) .hero .ln > span {
  transform: translateY(105%);
}
.moves.ready .hero .ln + .ln > span {
  transition-delay: 0.08s;
}
.moves .hero :is(.kicker, .lead, .hero-act, .scroll-hint) {
  transition:
    opacity 0.8s ease,
    transform 1s var(--ease);
}
.moves:not(.ready) .hero :is(.kicker, .lead, .hero-act, .scroll-hint) {
  opacity: 0;
  transform: translateY(16px);
}
.moves.ready .hero .lead {
  transition-delay: 0.18s;
}
.moves.ready .hero .hero-act {
  transition-delay: 0.26s;
}
.moves.ready .hero .scroll-hint {
  transition-delay: 0.6s;
}
/* the hero text steps aside once the camera leaves the overview */
.moves .hero > * {
  transition: opacity 0.5s ease;
}
.moves .hero:not(.active) > * {
  opacity: 0;
}

/* object steps: text left on the solid panel, the building right */
.obj {
  align-items: center;
}
.obj-text {
  width: min(500px, 35vw);
}
.o-idx {
  font: 700 13px/1 var(--num);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.big {
  margin-top: 18px;
  font: 800 clamp(104px, 11.5vw, 196px)/0.8 var(--num);
  letter-spacing: -0.055em;
  color: var(--ink);
  clip-path: inset(-6% -3% 0 -3%);
}
.big > span {
  display: inline-block;
}
.obj h2 {
  margin-top: 26px;
  font-size: clamp(36px, 3.3vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.obj .type {
  margin-top: 10px;
  font-size: clamp(16px, 1.15vw, 19px);
  color: var(--muted);
}
.obj dl {
  margin-top: 28px;
  border-top: 1px solid var(--hair);
}
.obj dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 17px;
}
.obj dt {
  color: var(--muted);
}
.fn {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 48ch;
}
.fn sup {
  margin: 0 3px 0 0;
}
.o-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 26px;
}
/* objects: the whole caption fades in when the camera arrives and out when it leaves, nothing jumps */
/* captions sit on the stage (story.js moves them there) and stay put while their object is in view.
   Handing over: the old one leaves upward fast, the new number rolls up out of its own edge, the lines follow one by one */
.caps {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.cap {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 56px var(--m) 72px;
}
.cap:not(.on):not(.off) {
  visibility: hidden;
}
.cap.on .obj-text {
  pointer-events: auto;
}
.moves .cap .big > span {
  transition: transform 0.8s var(--ease);
}
.moves .cap .obj-text > :not(.big, dl),
.moves .cap dl > div {
  transition:
    opacity 0.5s ease,
    transform 0.75s var(--ease);
}
.moves .cap dl {
  transition: opacity 0.5s ease;
}
.moves .cap:not(.on) .big > span {
  transform: translateY(105%);
}
.moves .cap:not(.on) .obj-text > :not(.big, dl),
.moves .cap:not(.on) dl > div {
  opacity: 0;
  transform: translateY(18px);
}
.moves .cap:not(.on) dl {
  opacity: 0;
}
/* the new caption waits until the old one has left (story.js sets --late while one is leaving) */
.moves .cap.on .big > span {
  transition-delay: var(--late, 0s);
}
.moves .cap.on h2 {
  transition-delay: calc(var(--late, 0s) + 0.06s);
}
.moves .cap.on .type {
  transition-delay: calc(var(--late, 0s) + 0.1s);
}
.moves .cap.on dl,
.moves .cap.on dl > div:nth-child(1) {
  transition-delay: calc(var(--late, 0s) + 0.14s);
}
.moves .cap.on dl > div:nth-child(2) {
  transition-delay: calc(var(--late, 0s) + 0.18s);
}
.moves .cap.on dl > div:nth-child(3) {
  transition-delay: calc(var(--late, 0s) + 0.22s);
}
.moves .cap.on .o-act {
  transition-delay: calc(var(--late, 0s) + 0.28s);
}
.moves .cap.off .big > span {
  transform: translateY(-105%);
  transition: transform 0.4s cubic-bezier(0.5, 0, 0.75, 0);
}
.moves .cap.off :is(.obj-text > :not(.big, dl), dl > div),
.moves .cap.off dl {
  opacity: 0;
  transform: translateY(-14px);
  transition:
    opacity 0.25s ease,
    transform 0.4s cubic-bezier(0.5, 0, 0.75, 0);
  transition-delay: 0s;
}
.moves .cap.off dl {
  transform: none;
}
.cap.reset,
.cap.reset * {
  transition: none !important;
}

/* plates on the plinth front, like engraved labels on a presentation model */
.plates {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--plates, 1);
}
.plate {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% 0;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 7px;
  align-items: baseline;
  justify-content: center;
  pointer-events: auto;
  white-space: nowrap;
  color: var(--muted);
  transition: opacity 0.4s;
}
.pl-tick {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  width: 1px;
  height: var(--tk, 12px);
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  transition: background 0.3s;
}
.pl-tick::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: inherit;
}
.plate b {
  font: 800 17px/1 var(--num);
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.3s;
}
.plate span {
  font: 500 13px/1 var(--text);
  transition: color 0.3s;
}
.plate em {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  font: 400 12px/1.2 var(--text);
  font-style: normal;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -4px);
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
} /* opens under the label without moving it */
.plate.hot b,
.plate:hover b {
  color: var(--acc);
}
.plate.hot span,
.plate:hover span {
  color: var(--ink);
}
.plate.hot .pl-tick,
.plate:hover .pl-tick {
  background: var(--acc);
}
.plate.hot em,
.plate:hover em {
  opacity: 1;
  transform: translate(-50%, 0);
}
.plate.off {
  opacity: 0.35;
}
/* picker at night: number and name under each building, on its ground line, like the request block */
.plates.float .plate {
  translate: -50% 12px;
  column-gap: 10px;
  color: #a3a29c;
}
.plates.float .plate b {
  color: #f2ebdd;
  font-size: clamp(22px, 2.3vw, 38px);
  letter-spacing: -0.03em;
}
.plates.float .plate span {
  font-size: clamp(13px, 1vw, 16px);
}
.plates.float .pl-tick {
  display: none;
}
.plates.float .plate.hot b,
.plates.float .plate:hover b {
  color: #e8875f;
}
.plates.float .plate.hot span,
.plates.float .plate:hover span {
  color: #e4e3df;
}
.plates.float .plate.off {
  opacity: 0.32;
}
.plates.float em {
  display: none;
}
@media (max-width: 860px) {
  .plates.float .plate {
    translate: -50% 4px;
    column-gap: 6px;
  }
  .plates.float .plate b {
    font-size: 18px;
  }
  .plates.float .plate span {
    display: block;
    font-size: 12px;
  }
}
.dim {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% 10px;
  padding: 0 6px;
  background: var(--page);
  font: 700 14px var(--num);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

/* legend: scale and sources, like the card next to a museum model */
.legend {
  position: absolute;
  right: var(--m);
  bottom: 72px;
  display: grid;
  justify-items: end;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.scale {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  align-items: end;
}
.scale i {
  grid-column: 1 / -1;
  display: block;
  height: 7px;
  border: 1.5px solid var(--soft-ink);
  border-top: 0;
  justify-self: end;
  transition: width 0.3s var(--ease);
}
.scale span {
  font-size: 12px;
  color: var(--soft-ink);
  margin-top: 4px;
}
.scale span:first-of-type {
  justify-self: start;
}
.stage[data-scene="5"] .legend {
  opacity: 0;
}
.legend {
  transition: opacity 0.4s;
}

/* switcher: four plan outlines from OSM, the active one filled */
.switch {
  position: fixed;
  left: var(--m);
  bottom: 26px;
  z-index: 15;
  display: flex;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.switch.show:not(.gone) {
  opacity: 1;
  visibility: visible;
}
.switch a {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 48px;
  color: var(--muted);
}
.switch svg {
  width: 40px;
  height: 30px;
  overflow: visible;
}
.switch path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition:
    fill 0.3s,
    stroke 0.3s;
}
.switch b {
  font: 800 14px/1 var(--num);
}
.switch a.on {
  color: var(--ink);
}
.switch a.on path {
  fill: var(--acc);
  stroke: var(--acc);
}
.switch a:hover {
  color: var(--ink);
}

/* progress rail: the six scenes of the model */
.rail {
  position: fixed;
  right: 18px;
  top: 50%;
  translate: 0 -50%;
  z-index: 15;
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.ready .rail:not(.off) {
  opacity: 1;
  visibility: visible;
}
.rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 5px 0;
  font: 600 12px var(--text);
  color: var(--muted);
}
.rail a span {
  opacity: 0;
  translate: 6px 0;
  transition:
    opacity 0.25s,
    translate 0.3s var(--ease);
}
.rail i {
  width: 14px;
  height: 1.5px;
  background: var(--line);
  transition:
    width 0.3s var(--ease),
    background-color 0.3s;
}
.rail a[aria-current="step"] i {
  width: 28px;
  background: var(--acc);
}
.rail a[aria-current="step"] span,
.rail:hover a span {
  opacity: 1;
  translate: 0 0;
}
.rail a[aria-current="step"] span {
  color: var(--ink);
}

/* ---------- the picker on the model ---------- */
.pick {
  justify-content: flex-end;
  padding-top: 40px;
  padding-bottom: 120px;
}
.pick-panel {
  width: min(640px, 46vw);
  margin-right: clamp(0px, 2vw, 40px);
  padding: clamp(26px, 2.6vw, 44px);
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow:
    0 40px 90px -50px var(--shadow),
    0 0 0 1px var(--hair);
  pointer-events: auto;
}
.moves .pick-panel {
  transition:
    opacity 0.7s ease,
    transform 0.9s var(--ease);
}
.moves .pick:not(.active) .pick-panel {
  opacity: 0.001;
  transform: translateY(40px);
}
.pick-head h2 {
  margin-top: 14px;
  font-size: clamp(40px, 3.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.pick-head p:last-child {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
}
.qs {
  display: grid;
  margin-top: 26px;
}
.q {
  min-width: 0;
  border: 0;
  padding: 22px 0 24px;
  border-top: 1px solid var(--hair);
}
.q[hidden] {
  display: none;
}
.q legend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin-bottom: 16px;
  font: 600 clamp(21px, 1.7vw, 27px)/1 var(--text);
  letter-spacing: -0.025em;
}
.q legend b {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--hair);
  font: 700 12px var(--num);
  letter-spacing: 0;
  color: var(--muted);
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}
.q legend b::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 7px;
  height: 12px;
  border: solid var(--page);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.35s var(--ease);
}
.q.done legend b {
  background: var(--ink);
  border-color: var(--ink);
  color: transparent;
}
.q.done legend b::after {
  transform: rotate(45deg) scale(1);
}
.q legend small {
  font: 400 14px var(--text);
  color: var(--muted);
  letter-spacing: 0;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pills label {
  cursor: pointer;
}
.pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pills span {
  display: block;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--hair);
  background: var(--card);
  font: 500 17px/1 var(--text);
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.15s;
}
.pills.sm span {
  padding: 10px 16px;
  font-size: 15px;
}
.pills input[type="checkbox"] + span::before {
  content: "+";
  display: inline-block;
  width: 0.8em;
  margin-right: 6px;
  color: var(--muted);
}
.pills input[type="checkbox"]:checked + span::before {
  content: "✓";
  color: inherit;
}
.pills label:hover span {
  border-color: var(--ink);
}
.pills label:active span {
  transform: scale(0.97);
}
.pills input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--page);
}
.pills input:focus-visible + span {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}
.q-hint {
  padding: 13px 18px;
  border-radius: 16px;
  border: 1.5px dashed var(--hair);
  color: var(--muted);
  font-size: 15px;
}
.res {
  margin-top: 8px;
  background: var(--page);
  border-radius: min(var(--radius), 24px);
  padding: clamp(20px, 2vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  scroll-margin-top: calc(var(--hdr) + 12px);
}
.res > *,
.ri > * {
  min-width: 0;
}
.res-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}
.res-k {
  display: block;
  font: 500 12px var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.res-n {
  display: inline-block;
  font: 800 clamp(76px, 6.4vw, 112px)/0.85 var(--num);
  letter-spacing: -0.06em;
  margin: 8px 12px 0 -4px;
  transition: color 0.3s;
}
.res-n.bump {
  animation: bump 0.55s var(--ease);
}
@keyframes bump {
  30% {
    color: var(--acc);
  }
}
.res-w {
  font: 500 20px var(--text);
}
.res-map {
  display: flex;
  gap: 6px;
  padding-bottom: 6px;
}
.res-map span {
  display: grid;
  place-items: end center;
  width: 48px;
  height: 40px;
  border-bottom: 2px solid var(--hair);
  color: var(--faint);
  transition:
    color 0.3s,
    border-color 0.3s;
}
.res-map b {
  font: 800 14px/1 var(--num);
  padding-bottom: 6px;
}
.res-map span.on {
  color: var(--ink);
  border-bottom-color: var(--acc);
}
.res-prog {
  height: 3px;
  border-radius: 3px;
  background: var(--hair);
  overflow: hidden;
}
.res-prog i {
  display: block;
  height: 100%;
  background: var(--acc);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}
.res-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ri {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 8px 10px 8px 8px;
  background: var(--card);
  border-radius: var(--r-tile);
  animation: ri 0.5s var(--ease) both;
}
.ri:nth-child(2) {
  animation-delay: 0.04s;
}
.ri:nth-child(3) {
  animation-delay: 0.08s;
}
.ri:nth-child(4) {
  animation-delay: 0.12s;
}
.ri:nth-child(5) {
  animation-delay: 0.16s;
}
@keyframes ri {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.ri.off {
  opacity: 0.5;
}
.ri img {
  width: 80px;
  height: 60px;
  object-fit: contain;
  background: var(--stone);
  border-radius: 12px;
}
.ri b {
  display: block;
  font: 600 19px/1.05 var(--text);
  letter-spacing: -0.02em;
}
.ri small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.res-note {
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--card);
  font-size: 15px;
}
.ticket-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.reset {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font: 500 14px var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.reset:hover {
  color: var(--acc);
}
.reset[hidden] {
  display: none;
}
.ticket p {
  margin-top: 8px;
  font: 500 17px/1.45 var(--text);
}
.ticket p em {
  font-style: normal;
  background: color-mix(in srgb, var(--acc) 13%, transparent);
  padding: 0 4px;
  border-radius: 4px;
}
.send {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.send .pill {
  justify-content: space-between;
}
#send [hidden] {
  display: none !important;
}
#kp {
  width: 100%;
  justify-content: center;
}
#kp:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
#kp.busy {
  cursor: progress;
  opacity: 0.8;
}
.send input {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 17px;
  padding: 0 22px;
  height: 56px;
  border-radius: var(--radius);
  border: 1.5px solid var(--hair);
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.2s;
}
.send input:focus {
  outline: none;
  border-color: var(--ink);
}
.send-out {
  font-size: 15px;
  min-height: 1.3em;
}
.send-out.err {
  color: var(--acc);
}
.send-out.ok::before {
  content: "✓ ";
  color: var(--acc);
  font-weight: 700;
}
.pbar {
  display: none;
}

/* ---------- sections below the model ---------- */
section.photos,
section#tenant,
section.close {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 9vw, 150px) var(--m);
  scroll-margin-top: var(--hdr);
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 40px;
  margin-bottom: clamp(32px, 4vw, 64px);
}
.sec-head h2,
.close h2 {
  font-size: clamp(48px, 6vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.sec-head p {
  font-size: 17px;
  color: var(--muted);
}

.photos {
  background: var(--page);
  border-top: 1px solid var(--hair);
}
.ph-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.ph-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--stone);
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 4px;
}
.ph-open img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.ph-open:hover img {
  transform: scale(1.04);
}
.ph-n {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  color: var(--ink);
  font: 600 13px/1 var(--text);
}
.ph figcaption {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.ph figcaption b {
  font: 800 22px var(--num);
  letter-spacing: -0.02em;
}
.ph figcaption span {
  font-size: 18px;
  font-weight: 600;
}
.ph.rv:nth-child(2) {
  transition-delay: 0.06s;
}
.ph.rv:nth-child(3) {
  transition-delay: 0.12s;
}
.ph.rv:nth-child(4) {
  transition-delay: 0.18s;
}

.viewer {
  width: min(1100px, 92vw);
  max-height: 92vh;
  padding: 28px;
  border: 0;
  border-radius: 6px;
  background: var(--page);
  color: var(--ink);
}
.viewer::backdrop {
  background: color-mix(in srgb, var(--dark) 85%, transparent);
}
.viewer figure {
  position: relative;
  padding: 14px;
}
.viewer img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}
.viewer figcaption {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.viewer figcaption b {
  font: 800 24px var(--num);
}
.viewer figcaption span {
  font-size: 18px;
  font-weight: 600;
}
.viewer figcaption small {
  font-size: 15px;
  color: var(--muted);
}
.vc {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--acc);
}
.vc.tl {
  left: 0;
  top: 0;
  border-left-width: 3px;
  border-top-width: 3px;
}
.vc.br {
  right: 0;
  bottom: 56px;
  border-right-width: 3px;
  border-bottom-width: 3px;
}
.v-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.v-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.v-nav button svg {
  width: 18px;
  height: 12px;
}
.v-nav button:hover {
  border-color: var(--ink);
}
.v-nav .v-close {
  width: auto;
  padding: 0 20px;
  margin-left: auto;
  border-radius: var(--radius);
  font: 600 14px var(--text);
}
.v-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.v-thumbs button {
  flex: 0 0 84px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--stone);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.v-thumbs button[aria-current="true"],
.v-thumbs button:hover {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--ink);
}
.v-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* request: request.css */

.ft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  margin: 0 var(--m);
  padding: 34px 0 44px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
  color: var(--muted);
}
.ft-logo {
  color: var(--ink);
}
.ft-logo .g35 {
  height: 40px;
}
.ft nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-left: auto;
}
.ft nav a {
  font: 500 15px var(--text);
  color: var(--ink);
}
.ft nav a:hover {
  color: var(--acc);
}
.ft-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
}
.ft-contact a {
  color: var(--ink);
  text-decoration: none;
}
.ft-contact a:hover {
  color: var(--acc);
}
.ft > span:last-child {
  flex-basis: 100%;
}

/* reveal on scroll */
.rv {
  transition:
    opacity 0.45s ease,
    transform 0.5s var(--ease);
}
.rv:not(.seen) {
  opacity: 0;
  transform: translateY(16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 1260px) {
  .hdr-nav {
    display: none;
  }
  .burger {
    display: flex;
    margin-left: 0;
  }
  .hdr-pick {
    margin-left: auto;
  }
}
@media (max-width: 1100px) {
  .rail {
    display: none;
  }
  .ph-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
  .obj-text {
    width: min(460px, 42vw);
  }
  .veil {
    width: 47%;
  }
}
/* narrow: the building goes up, the text comes up from below on a solid panel */
@media (max-width: 860px) {
  .veil {
    inset: auto 0 0 0;
    width: auto;
    height: var(--veil-h, 56%);
    box-shadow: 0 -1px 0 var(--hair);
  }
  .obj {
    align-items: flex-end;
    padding-bottom: 92px;
  }
  .obj-text {
    width: 100%;
  }
  .step.pick {
    padding-top: 44svh;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 96px;
  }
  .pick-panel {
    width: 100%;
    margin: 0;
    border-radius: var(--r-card) var(--r-card) 0 0;
    padding: 26px var(--m) 32px;
  }
  .moves .pick:not(.active) .pick-panel {
    transform: translateY(60px);
  }
  .switch {
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: space-around;
    padding: 10px 12px 12px;
    background: var(--page);
    border-top: 1px solid var(--hair);
  }
  .pbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    height: 58px;
    border-radius: var(--radius);
    background: var(--btn);
    color: var(--btn-ink);
    font: 500 16px var(--text);
    box-shadow: 0 16px 40px var(--shadow);
    transform: translateY(140%);
    transition: transform 0.45s var(--ease);
  }
  .pbar b {
    font: 800 22px/1 var(--num);
    color: color-mix(in srgb, var(--acc) 70%, #fff);
  }
  .pbar-go {
    font: 500 14px var(--text);
  }
  .pbar.on {
    transform: none;
  }
  /* on a phone the plinth labels need the bottom edge; sources stay in the footnotes */
  .legend {
    display: none;
  }
}
@media (max-width: 700px) {
  :root {
    --hdr: 64px;
  }
  .hdr {
    gap: 6px;
  }
  .hdr-logo .g35 {
    height: 28px;
  }
  .hdr-pick {
    display: none;
  }
  .burger {
    margin-left: auto;
  }
  .mnav a {
    font-size: 30px;
  }
  .step,
  .cap {
    padding-top: 28px;
  }
  .hero {
    padding-bottom: 40px;
  }
  .hero h1 {
    margin-top: 16px;
    font-size: clamp(44px, 12.6vw, 64px);
  }
  .lead {
    margin-top: 14px;
    font-size: 17px;
  }
  .hero-act {
    margin-top: 20px;
    gap: 16px 24px;
  }
  .hero-act .pill {
    width: 100%;
    justify-content: center;
  }
  .scroll-hint {
    display: none;
  }
  .o-idx {
    font-size: 12px;
  }
  .big {
    margin-top: 10px;
    font-size: 76px;
  }
  .obj h2 {
    margin-top: 12px;
    font-size: 34px;
  }
  .obj .type {
    margin-top: 6px;
    font-size: 14px;
  }
  .obj dl {
    margin-top: 14px;
  }
  .obj dl div {
    grid-template-columns: 86px 1fr;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
  }
  .fn {
    margin-top: 8px;
    font-size: 12px;
  }
  .o-act {
    margin-top: 14px;
  }
  .plate {
    font-size: 12px;
    gap: 4px;
    translate: -50% 10px;
  }
  .plate b {
    font-size: 14px;
  }
  .plate span {
    display: none;
  }
  .dim {
    font-size: 12px;
  }
  .pick-head h2 {
    font-size: 40px;
  }
  .pick-head p:last-child {
    font-size: 16px;
  }
  .q {
    padding: 20px 0 22px;
  }
  .q legend {
    font-size: 21px;
    gap: 12px;
  }
  .pills span {
    padding: 12px 15px;
    font-size: 15px;
  }
  .pills.sm span {
    padding: 10px 13px;
    font-size: 14px;
  }
  .res {
    border-radius: 22px;
    padding: 18px;
  }
  .res-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .res-n {
    font-size: 80px;
  }
  .ri {
    grid-template-columns: 68px 1fr auto;
    gap: 12px;
  }
  .ri img {
    width: 68px;
    height: 52px;
  }
  .ri b {
    font-size: 17px;
  }
  .ri small {
    font-size: 13px;
  }
  .sec-head h2,
  .close h2 {
    font-size: clamp(42px, 12vw, 60px);
  }
  .ph-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    row-gap: 26px;
  }
  .viewer {
    padding: 14px;
  }
  .ft nav {
    margin-left: 0;
  }
}

/* no WebGL: the chalk pictures stand in, every caption stays visible */
.story:has(.no3d)
  .step
  :is(.big > span, .o-idx, h2, .type, dl, .fn, .o-act, .pick-panel) {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- logo ---------- */
/* the mark draws itself: the stem first, then the shelf and the number open to the right */
.g35-draw > * {
  animation: g-reveal 1.1s var(--ease) both;
}
@keyframes g-reveal {
  0% {
    clip-path: inset(0 100% 100% 0);
  }
  35% {
    clip-path: inset(0 88% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}
.hdr-logo [data-g35-logo],
.ft-logo,
#introMark {
  display: flex;
  align-items: center;
}
/* Keep the mark's proportions while sizing its container. */
.hdr-logo svg {
  height: 34px !important;
  width: auto !important;
  max-width: none !important;
}
.ft-logo svg {
  height: 40px !important;
  width: auto !important;
  max-width: none !important;
}
#introMark svg {
  height: 120px !important;
  width: auto !important;
  max-width: 80vw !important;
}
@media (max-width: 700px) {
  .hdr-logo svg {
    height: 28px !important;
  }
  #introMark svg {
    height: 96px !important;
  }
}
/* «Много»: numbers and marks on the model take the accent, the tenant section warms up */
html[data-acc="high"] :is(.big, .res-n, .plate b, .rq-cap b, .ph figcaption b) {
  color: var(--acc);
}
/* «Мало»: the accent stays only where it means something (status, error, the picked object) */
html[data-acc="low"] .kicker::before,
html[data-acc="low"] .rail a[aria-current="step"] i,
html[data-acc="low"] .res-prog i {
  background: var(--ink);
}
html[data-acc="low"] .switch a.on path {
  fill: var(--ink);
  stroke: var(--ink);
}
html[data-acc="low"] .res-map span.on {
  border-bottom-color: var(--ink);
}
html[data-acc="low"] .ticket p em {
  background: var(--stone);
}
html[data-acc="high"] .pbar b {
  color: #fff;
}

/* ---------- mobile object captions and photos ---------- */
@media (max-width: 700px) {
  .obj {
    padding-bottom: 104px;
  }
  .big {
    font-size: 60px;
  }
  .obj h2 {
    font-size: 30px;
  }
  .o-act {
    flex-wrap: wrap;
  }
  .switch {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .step.pick {
    padding-bottom: 84px;
  }
  .pbar {
    height: auto;
    min-height: 50px;
    padding: 10px 18px;
    bottom: calc(10px + env(safe-area-inset-bottom));
  }
  .ph-grid {
    row-gap: 28px;
  }
  .ph-open img {
    aspect-ratio: 4 / 3;
  }
  .ph figcaption {
    margin-top: 12px;
  }
}
/* enlarged phone text: a long word wraps with a hyphen instead of being cut by the reveal mask */
.hero h1 .ln > span {
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* short phones: a tighter caption so the building keeps its half of the screen */
@media (max-width: 700px) and (max-height: 720px) {
  .obj {
    padding-bottom: 88px;
  }
  .step,
  .cap {
    padding-top: 18px;
  }
  .big {
    margin-top: 4px;
    font-size: 44px;
  }
  .obj h2 {
    margin-top: 6px;
    font-size: 24px;
  }
  .obj .type {
    font-size: 13px;
  }
  .obj dl {
    margin-top: 8px;
  }
  .obj dl div {
    padding: 4px 0;
    font-size: 13px;
    grid-template-columns: 74px 1fr;
  }
  .obj dl div:nth-child(2) {
    display: none;
  }
  .o-act {
    margin-top: 10px;
  }
  .switch {
    padding-top: 6px;
  }
  .switch svg {
    height: 22px;
  }
}

/* One object navigation with named outlines. */
.rail {
  display: none !important;
}
.switch small {
  font: 500 11px/1.1 var(--text);
  color: inherit;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .switch small {
    display: none;
  }
}
/* on phones the bottom switch already lists the objects; on short screens the row would sit on the model */
/* laptops with a short screen: the object text and the bottom switch must not meet */
@media (min-width: 701px) and (max-height: 820px) {
  .big {
    font-size: clamp(84px, 13vh, 150px);
  }
  .obj dl {
    margin-top: 18px;
  }
  .obj dl div {
    padding: 8px 0;
    font-size: 16px;
  }
  .obj {
    align-items: flex-start;
    padding-top: 86px;
  }
  .switch small {
    display: none;
  }
}
/* tablets: the object row only where the model has room under it */

/* maket3: Lenis и GSAP (motion.js) */
html.smooth {
  scroll-behavior: auto;
} /* Lenis scrolls itself; native smooth would chase it */
.res-list.fl .ri {
  animation: none;
} /* Flip moves the rows, the CSS entrance would replay on every change */
.smooth .rv:not(.seen) {
  opacity: 1;
  transform: none;
} /* GSAP owns the entrances */
#v-img {
  will-change: transform;
}
[tabindex="-1"]:focus {
  outline: none;
} /* a section that took focus after a jump draws no frame */
/* the steps are scrubbed by GSAP (motion.js): the class switch and its transitions step aside */
.smooth.landed .hero > *,
.smooth.landed .hero :is(.lead, .hero-act) {
  transition: none !important;
}
.smooth.landed .hero:not(.active) > * {
  opacity: unset;
}
.hdr-prog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}
/* night over the picker: a deep blue sky behind the transparent canvas, light labels */
.night {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(
      80% 34% at 10% 100%,
      rgba(194, 70, 26, 0.13) 0%,
      rgba(194, 70, 26, 0) 100%
    ),
    linear-gradient(180deg, #1b2230 0%, #2a3343 58%, #3a4150 100%);
} /* blue hour, the last of the sunset low on the left */
.is-night .scale,
.is-night .scale span {
  color: #8c8a84;
  border-color: #8c8a84;
}
.is-night .rail a {
  color: #8c8a84;
}
.steps {
  pointer-events: none;
}
.pick-panel {
  pointer-events: auto;
}

/* Mobile menus remain reachable in landscape and with larger text. */
.mnav {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
.request-copy-fallback {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 9em;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--hair);
  border-radius: min(var(--radius), 14px);
  background: var(--card);
  color: var(--ink);
  font: 400 16px/1.5 var(--text);
}
.send-out,
.rq-copy-status {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .ph figcaption {
    flex-wrap: wrap;
    row-gap: 3px;
  }
  .ph figcaption span {
    max-width: 100%;
  }
}

.send .pill {
  white-space: normal;
  text-align: left;
  line-height: 1.25;
}
.send .pill > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.send .pill i {
  flex: none;
}
.pills label {
  min-width: 0;
  max-width: 100%;
}
.pills span {
  overflow-wrap: anywhere;
  line-height: 1.2;
}
