:root {
  --bg: #0b0b0c;
  --fg: #f4f4f4;
  --muted: rgba(244, 244, 244, .56);
  --line: rgba(244, 244, 244, .14);
  --glass: rgba(18, 18, 20, .62);
  --accent: var(--fg);
  --display: 'JUZ40 Fonts', system-ui, sans-serif;
  --text: 'JUZ40 Fonts Text', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 2.2vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- стена */
#wall {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: none; cursor: grab;
}
.is-dragging #wall { cursor: grabbing; }
@media (pointer: fine) { #wall { cursor: none; } }

/* ---------- загрузка */
.loader {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; gap: 22px;
  background: var(--bg);
  transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__word {
  display: flex; gap: .04em;
  font: 700 clamp(64px, 16vw, 240px)/.8 var(--display);
  letter-spacing: -.04em;
}
.loader__word span { display: inline-block; animation: wob 1.6s var(--ease) infinite alternate; }
.loader__word span:nth-child(2) { animation-delay: .1s; }
.loader__word span:nth-child(3) { animation-delay: .2s; }
.loader__word span:nth-child(4) { animation-delay: .3s; }
.loader__word span:nth-child(5) { animation-delay: .4s; }
@keyframes wob { from { transform: scaleY(1); } to { transform: scaleY(.55) translateY(40%); } }
.loader__row { display: flex; justify-content: space-between; color: var(--muted); }
.loader__bar { height: 2px; background: var(--line); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--fg); transition: width .3s; }

/* ---------- верхняя панель */
.hud-top {
  position: fixed; z-index: 10; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: var(--pad);
  pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.pill {
  background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; justify-self: start; height: 44px; padding: 0 18px 0 16px; }
.logo__mark { font: 700 22px/1 var(--display); letter-spacing: -.04em; }
.logo__sub { font-size: 8.5px; line-height: 1.15; color: var(--fg); opacity: .7; }
.hud-top__tag { margin: 0; color: var(--fg); padding: 9px 14px; }
.hud-top__right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); height: 40px; padding: 0 14px; white-space: nowrap; }
.btn { white-space: nowrap; }
@media (max-width: 1640px) { .status__txt { display: none; } }
@media (max-width: 1280px) { .hud-top__tag { display: none; } .hud-top { grid-template-columns: 1fr auto; } }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 0 rgba(244, 244, 244, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(244, 244, 244, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 244, 244, 0); } }
.status__time { color: var(--fg); }
.lang { display: flex; align-items: center; gap: 2px; height: 40px; padding: 4px; }
.lang button {
  height: 30px; min-width: 38px; padding: 0 9px; border-radius: 999px;
  font: 500 11px/30px var(--mono); letter-spacing: .06em; color: var(--muted);
  transition: background .3s, color .3s;
}
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: var(--fg); color: #0b0b0c; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font: 500 14px/1 var(--text);
  transition: transform .4s var(--ease-out), background .3s, color .3s;
}
.btn:hover { transform: scale(1.04); }
.btn--light { background: var(--fg); color: #0b0b0c; }
.btn--accent { background: var(--accent); color: #0b0b0c; }
.btn--line { border: 1px solid var(--fg); }
.btn--ghost { border: 1px solid currentColor; }

/* ---------- территория + мини-карта */
.region {
  position: fixed; z-index: 10; left: var(--pad); bottom: var(--pad);
  display: flex; align-items: flex-end; gap: 14px;
  transition: opacity .4s;
}
.minimap {
  width: 128px; height: 80px; border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  outline: 1px solid var(--line);
  cursor: pointer;
}
.region__info { display: grid; gap: 4px; padding: 10px 16px; border-radius: 10px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); }
.minimap { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.region__label { color: var(--muted); }
.region__name {
  font: 500 15px/1.2 var(--display);
  color: var(--accent); transition: color .6s;
  max-width: 220px;
}

/* ---------- фильтры */
.filters {
  position: fixed; z-index: 10; right: var(--pad); bottom: var(--pad);
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 360px;
}
.chip {
  height: 30px; padding: 0 12px; border-radius: 999px;
  font: 500 12px/30px var(--text);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: #0b0b0c; border-color: var(--fg); }

/* ---------- док */
.dock {
  position: fixed; z-index: 11; left: 50%; bottom: var(--pad); transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px;
  padding: 5px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
}
.dock__views { display: flex; gap: 2px; padding-right: 6px; margin-right: 4px; border-right: 1px solid var(--line); }
.dock__view, .dock__dice {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  color: var(--muted); transition: background .3s, color .3s;
}
.dock__view svg, .dock__dice svg { width: 14px; height: 14px; fill: currentColor; }
.dock__view:hover, .dock__dice:hover { color: var(--fg); }
.dock__view.is-active { background: rgba(255, 255, 255, .12); color: var(--fg); }
.dock__link {
  height: 36px; padding: 0 16px; border-radius: 999px;
  font: 500 14px/36px var(--text); color: var(--muted);
  transition: background .3s, color .3s;
}
.dock__link:hover { color: var(--fg); }
.dock__link.is-active { background: var(--fg); color: #0b0b0c; }
.dock__dice { margin-left: 4px; }
.dock__dice:active svg { transform: rotate(90deg); }

.hint {
  position: fixed; z-index: 9; left: 50%; bottom: calc(var(--pad) + 60px); transform: translateX(-50%);
  margin: 0; color: var(--fg); white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: opacity .8s;
  pointer-events: none;
}
.hint.is-hidden { opacity: 0; }

/* ---------- курсор */
.cursor {
  position: fixed; z-index: 40; left: 0; top: 0;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 999px;
  background: var(--fg); color: #0b0b0c;
  pointer-events: none;
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s, opacity .3s;
  will-change: transform;
}
.cursor__label { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; opacity: 0; transition: opacity .2s; padding: 0 14px; }
.cursor.is-drag { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(244, 244, 244, .9); }
.cursor.is-open { width: auto; min-width: 96px; height: 40px; margin: -20px 0 0 -48px; background: var(--accent); }
.cursor.is-drag .cursor__label, .cursor.is-open .cursor__label { opacity: 1; }
.is-dragging .cursor { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-hidden { opacity: 0; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- список */
.list {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(11, 11, 12, .78); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 120px var(--pad) 140px;
  opacity: 0; transition: opacity .5s;
}
.list.is-open { opacity: 1; }
.list__inner { max-width: 1400px; margin: 0 auto; }
.list__head, .list__row a {
  display: grid; grid-template-columns: 60px minmax(0, 1.6fr) minmax(0, 1.2fr) 80px 70px; gap: 16px; align-items: baseline;
}
.list__head { color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.list__rows { list-style: none; margin: 0; padding: 0; }
.list__row { border-bottom: 1px solid var(--line); transition: opacity .4s; }
.list__row.is-dim { opacity: .25; }
.list__row a { padding: 22px 0; position: relative; }
.list__num { font: 500 12px var(--mono); color: var(--muted); }
.list__title { font: 500 clamp(22px, 3.4vw, 46px)/1.05 var(--display); letter-spacing: -.02em; transition: transform .5s var(--ease-out), color .3s; }
.list__title em { font-style: normal; color: var(--muted); font-weight: 400; font-size: .5em; letter-spacing: 0; white-space: nowrap; }
.list__row a:hover .list__title { transform: translateX(14px); }
.list__tags, .list__year, .list__count { font: 400 13px var(--text); color: var(--muted); }
.list__preview {
  position: fixed; z-index: 21; left: 0; top: 0; width: 340px; aspect-ratio: 16 / 10;
  pointer-events: none; overflow: hidden; border-radius: 4px;
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease-out);
}
.list__preview.is-on { opacity: 1; transform: scale(1); }
.list__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- кейс */
.case {
  --c-bg: #111; --c-fg: #fff; --c-accent: #fff; --cx: 50vw; --cy: 50vh;
  position: fixed; inset: 0; z-index: 30;
  background: var(--c-bg); color: var(--c-fg);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0 at var(--cx) var(--cy));
  visibility: hidden;
  transition: clip-path 1s var(--ease), visibility 0s 1s;
}
.case.is-open { clip-path: circle(150vmax at var(--cx) var(--cy)); visibility: visible; transition: clip-path 1s var(--ease), visibility 0s; }
.case__bar {
  position: sticky; top: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--c-bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--c-fg) 14%, transparent);
}
.case__bar a, .case__bar button { font: 500 14px var(--text); }
.case__bar .mono { opacity: .7; text-align: center; }
.case__bar-title { opacity: 0; transition: opacity .3s; }
.case.is-scrolled .case__bar-title { opacity: 1; }
.case__bar-right { justify-self: end; display: flex; gap: 18px; }
.case__hero { padding: clamp(60px, 12vh, 140px) var(--pad) 40px; max-width: 1600px; margin: 0 auto; }
.case__tags { color: var(--c-accent); margin: 0 0 22px; }
.case__title {
  margin: 0;
  font: 700 clamp(44px, 9.5vw, 170px)/.88 var(--display); letter-spacing: -.045em;
}
.case__title em { display: block; font-style: normal; font-weight: 400; color: var(--c-accent); font-size: .42em; letter-spacing: -.02em; margin-top: .3em; }
.case__lead { font: 500 clamp(20px, 2.4vw, 34px)/1.25 var(--text); max-width: 26ch; margin: 40px 0 0; }
.case__grid {
  max-width: 1600px; margin: 0 auto; padding: 30px var(--pad) 70px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
}
.case__meta { grid-column: 1 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin: 0; }
.case__meta div { border-top: 1px solid color-mix(in srgb, var(--c-fg) 22%, transparent); padding-top: 10px; }
.case__meta dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; opacity: .6; margin-bottom: 6px; }
.case__meta dd { margin: 0; font: 500 15px/1.45 var(--text); }
.case__text { grid-column: 7 / span 6; }
.case__text p { margin: 0 0 24px; font: 400 18px/1.6 var(--text); opacity: .9; }
.case__link { font: 500 14px var(--text); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.case__palette { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.swatch {
  flex: 1 1 120px; height: 92px; border-radius: 6px; padding: 10px;
  display: flex; align-items: flex-end;
  font: 500 11px var(--mono); text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--c-fg) 18%, transparent);
  transition: transform .4s var(--ease-out), flex-grow .5s var(--ease-out);
}
.swatch:hover { flex-grow: 1.6; }
.case__gallery { display: grid; gap: clamp(8px, 1.2vw, 18px); padding: 0 var(--pad); max-width: 1800px; margin: 0 auto; }
.case__gallery figure { margin: 0; scroll-margin-top: 70px; background: color-mix(in srgb, var(--c-fg) 6%, transparent); border-radius: 4px; overflow: hidden; }
.case__gallery img { width: 100%; height: auto; opacity: 0; transform: scale(1.04); transition: opacity .9s, transform 1.4s var(--ease-out); }
.case__gallery figure.is-in img { opacity: 1; transform: none; }
.case__gallery video { display: block; width: 100%; height: auto; background: #000; }
.case__gallery figure.is-video { position: relative; }
.case__gallery figure.is-video::after {
  content: '▶'; position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; color: #0b0b0c; background: var(--c-accent);
  pointer-events: none;
}
.list__vid { font-style: normal; color: var(--muted); margin-left: 6px; }
/* кейс-рассказ: глава = заголовок с абзацем и ряды кадров */
.case__chapter { display: grid; gap: clamp(8px, 1.2vw, 18px); }
.case__note { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 24px; align-items: start; padding: clamp(44px, 7vw, 104px) 0 clamp(14px, 2.2vw, 30px); }
.case__note .mono { grid-column: 1 / span 1; opacity: .6; padding-top: .9em; }
.case__note h2 { grid-column: 2 / span 5; margin: 0; font: 500 clamp(26px, 3.4vw, 50px)/1.06 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.case__note p { grid-column: 8 / span 5; margin: 0; padding-top: .5em; font: 400 clamp(16px, 1.3vw, 19px)/1.6 var(--text); opacity: .9; max-width: 46ch; }
.case__row { display: grid; gap: clamp(8px, 1.2vw, 18px); align-items: start; }
.case__row[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case__row[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* в сетке из трёх колонок кадры приводим к одному формату 2:3, иначе ряды выходят разной высоты */
.case__row[data-cols="3"] figure { aspect-ratio: 2 / 3; }
.case__row[data-cols="3"] img { height: 100%; object-fit: cover; }
.case__gallery figure.is-target { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.case__next {
  display: block; margin: clamp(60px, 10vw, 140px) 0 0; padding: clamp(60px, 10vw, 120px) var(--pad);
  background: var(--n-bg); color: var(--n-fg);
  position: relative; overflow: hidden;
}
.case__next .mono { opacity: .7; }
.case__next strong { display: block; margin-top: 18px; font: 700 clamp(40px, 8vw, 140px)/.9 var(--display); letter-spacing: -.045em; transition: transform .6s var(--ease-out); }
.case__next:hover strong { transform: translateX(2vw); }
.case__next img { position: absolute; right: var(--pad); top: 50%; width: min(34vw, 460px); transform: translateY(-50%) rotate(-3deg); border-radius: 4px; opacity: .9; transition: transform .6s var(--ease-out); }
.case__next:hover img { transform: translateY(-50%) rotate(0deg) scale(1.04); }

/* ---------- страницы «Студия» и «Контакты» */
.page {
  position: fixed; inset: 0; z-index: 25;
  background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(100% 0 0 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s .9s;
}
.page.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.page__inner { max-width: 1500px; margin: 0 auto; padding: 130px var(--pad) 160px; }
.page__kicker { color: var(--muted); margin: 0 0 26px; }
.page__title { margin: 0; font: 500 clamp(32px, 5.4vw, 92px)/1.02 var(--display); letter-spacing: -.035em; max-width: 18ch; }
.page__title em { font-style: normal; text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .14em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(60px, 9vw, 120px) 0; }
.stat { border-top: 1px solid var(--line); padding-top: 14px; }
.stat b { display: block; font: 700 clamp(44px, 6vw, 96px)/1 var(--display); letter-spacing: -.05em; }
.stat span { color: var(--muted); font-size: 14px; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.service { border-top: 1px solid var(--line); padding-top: 18px; }
.service .mono { color: var(--muted); }
.service h3 { font: 500 22px/1.15 var(--display); margin: 14px 0 12px; letter-spacing: -.02em; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }
.service ul { margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.section-title { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: clamp(70px, 9vw, 120px) 0 22px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: '0' counter(s); font: 700 56px/1 var(--display); color: var(--accent); letter-spacing: -.04em; }
.step h3 { font: 500 18px var(--display); margin: 14px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.clients { display: flex; flex-wrap: wrap; gap: 10px 28px; font: 500 clamp(20px, 2.6vw, 36px)/1.2 var(--display); letter-spacing: -.02em; }
.clients span:not(:last-child)::after { content: '·'; margin-left: 28px; color: var(--muted); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); margin-top: clamp(50px, 7vw, 90px); }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.field input, .field textarea {
  font: 500 20px/1.4 var(--text); color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 0 12px; outline: none; transition: border-color .3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--fg); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form__note { color: var(--muted); font-size: 13px; margin: 0; }
.direct { display: grid; gap: 4px; align-content: start; }
.direct a { font: 500 clamp(22px, 2.6vw, 36px)/1.3 var(--display); letter-spacing: -.02em; width: fit-content; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.direct a:hover { border-color: currentColor; }
.direct .mono { color: var(--muted); margin-top: 18px; }
.todo { color: var(--muted); font: 500 13px var(--mono); }

.page__close {
  position: fixed; z-index: 2; top: var(--pad); right: var(--pad);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 20px;
  background: var(--glass); backdrop-filter: blur(10px);
  transition: transform .4s var(--ease-out), background .3s;
}
.page__close:hover { transform: rotate(90deg); background: var(--fg); color: #0b0b0c; }

/* ---------- тост */
.toast {
  position: fixed; z-index: 60; left: 50%; top: 20px; transform: translate(-50%, -80px);
  background: var(--fg); color: #0b0b0c; padding: 10px 16px; border-radius: 999px;
  transition: transform .5s var(--ease-out);
}
.toast.is-on { transform: translate(-50%, 0); }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }

/* ---------- персональная ссылка: согласие на аналитику */
.consent {
  position: fixed; z-index: 45; left: 50%; bottom: calc(var(--pad) + 62px); transform: translate(-50%, 30px);
  width: min(560px, calc(100vw - 2 * var(--pad)));
  padding: 16px 18px; border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity .5s, transform .6s var(--ease-out);
}
.consent.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.consent p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.consent__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.consent .btn { height: 36px; padding: 0 16px; font-size: 13px; }
.consent a { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }

/* состояния, когда открыт оверлей */
body.has-overlay .region, body.has-overlay .filters, body.has-overlay .hint { opacity: 0; pointer-events: none; }
body.has-overlay.view-list .filters { opacity: 1; pointer-events: auto; }
body.has-case .dock, body.has-case .hud-top { opacity: 0; pointer-events: none; }
body.has-case .dock, body.has-case .hud-top, body.has-case .filters { visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.hud-top, .dock, .filters { z-index: 26; }
.dock, .hud-top, .region, .filters { transition: opacity .4s; }
body.no-webgl .dock__views, body.no-webgl .region, body.no-webgl .hint, body.no-webgl .dock__dice { display: none; }

/* ---------- адаптив */
@media (max-width: 1100px) {
  .hud-top__tag { display: none; }
  .hud-top { grid-template-columns: 1fr auto; }
  .services, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { max-width: 230px; }
  .region__info, .hint { display: none; }
}
@media (max-width: 760px) {
  .case__note { grid-template-columns: 1fr; gap: 10px; }
  .case__note .mono, .case__note h2, .case__note p { grid-column: 1; padding-top: 0; }
  .case__row[data-cols="2"] { grid-template-columns: 1fr; }
  .case__row[data-cols="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status, .hud-top__cta { display: none; }
  .btn { white-space: nowrap; }
  .hud-top__right { gap: 10px; }
  .hud-top .btn { height: 36px; padding: 0 14px; font-size: 13px; }
  .minimap { display: none; }
  .region { bottom: auto; top: 64px; }
  .region__label { display: none; }
  .region__name { font-size: 13px; }
  .filters {
    left: 0; right: 0; bottom: calc(var(--pad) + 58px); max-width: none;
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 0 var(--pad);
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .hint { display: none; }
  .dock { left: var(--pad); right: var(--pad); transform: none; justify-content: space-between; }
  .dock__link { padding: 0 9px; font-size: 12.5px; }
  .dock__dice { display: none; }
  .list { padding-top: 100px; }
  .list__head { display: none; }
  .list__row a { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .list__tags, .list__count { display: none; }
  .list__preview { display: none; }
  .case__grid { grid-template-columns: 1fr; }
  .case__meta, .case__text { grid-column: 1 / -1; }
  .case__bar { grid-template-columns: auto 1fr auto; }
  .case__bar .mono { font-size: 10px; }
  .case__next img { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services, .steps, .contact { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
