/* === АРТ ЦЕХ — художественный коворкинг === */

:root {
  /* Палитра бренда — Paper (светлая, по умолчанию).
     База уведена в лёгкий зелёный подтон, чтобы сайт перекликался
     с травяной заставкой, а не обрывался с неё в тёплый бежевый. */
  --bg: #F1F2EA;
  --bg-elev: #E9ECE1;
  --surface: #FBFCF7;
  --surface-2: #DFE4D5;
  --hair: rgba(17, 18, 20, 0.14);
  --hair-strong: rgba(17, 18, 20, 0.34);
  --text: #111214;
  --text-dim: #5C5E63;
  --text-mute: #8B8D93;
  --accent: #D64B38;
  --accent-2: #1B4DFF;
  --accent-3: #12856F;
  --accent-4: #E6AD32;
  --live: #12856F;

  /* Типографика */
  --f-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Симметричный ease-in-out для входного экрана: шторка уходит с разгоном
     и торможением, а не затухает, как --ease-out. */
  --ease-gate: cubic-bezier(0.76, 0, 0.24, 1);
  /* Лёгкий перелёт за цель — для элементов, которые должны «встать на место». */
  --ease-spring: cubic-bezier(0.34, 1.42, 0.64, 1);

  /* Входной экран — единственное место вне палитр Paper/Ink: кадр всегда
     тёмный. Токены нужны, чтобы цвета не расползались литералами.
     --scene-ink держать в паре с fog и setClearColor в grass-scene.js. */
  --scene-ink: #04100a;
  --scene-accent: #2FBFA0;
  --scene-accent-text: #9DE5D1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body { font-feature-settings: "ss01", "cv11"; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* === Layout shell === */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.viewport-frame {
  position: relative;
  width: 100%;
  background: var(--bg);
}

/* === Top bar === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--hair-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.brand-mark {
  display: block;
  width: 26px; height: 26px;
  flex: none;
}
.brand small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-style: normal;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  flex: 1;
}
/* Навигация — табы с подчёркиванием, а не заливка-пилюля */
.nav-item {
  position: relative;
  padding: 8px 4px;
  margin: 0 10px;
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color 200ms var(--ease);
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--text); }
.nav-item.active::after { transform: scaleX(1); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-dim);
}
.live-pill.is-closed { opacity: 0.72; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 3px;
  font-weight: 600;
  font-size: 13.5px;
  transition: filter 200ms var(--ease);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary .arr {
  display: inline-block;
  transition: transform 250ms var(--ease);
}
.btn-primary:hover .arr { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text);
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text-dim); }

/* Переход на соседнюю страницу в конце раздела — общий отступ, чтобы такие
   кнопки на «Резидентах» и «Бронировании» стояли одинаково. */
.page-cta { margin-top: 26px; }

/* === Section primitives === */
.section { padding: 80px 32px; position: relative; }
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.section-label::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--text-dim);
}
/* Вариант с номером раздела — вместо линии */
.section-label--indexed::before {
  content: attr(data-index);
  width: auto; height: auto;
  background: none;
  color: var(--accent);
  font-weight: 700;
}
/* Вариант с уменьшенным отступом — для подзаголовков внутри карточек,
   где полные 28px разрывают блок. */
.section-label--tight { margin-bottom: 14px; }
/* Вариант в рамке — для коротких «штампов» */
.section-label--boxed::before { display: none; }
.section-label--boxed {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid var(--hair-strong);
  color: var(--text);
}

.h-display {
  font-family: var(--f-display);
  font-size: clamp(46px, 6.4vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-transform: uppercase;
}
.section-h2 {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 0.98;
}
.h-display .ital { font-style: normal; color: var(--accent); }

/* === Hero === */
.hero {
  position: relative;
  padding: 56px 32px 64px;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 60%, #000 30%, transparent 100%);
  z-index: -1;
}

/* 3D-акцент: сцена из плоских осколков вместо блюр-пятен */
.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  opacity: 0.85;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
  padding-top: 24px;
  gap: 32px;
}

.hero-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.hero-meta b { color: var(--text); font-weight: 500; }
.hero-meta--right { text-align: right; }

.hero-title {
  margin-top: 40px;
  position: relative;
  max-width: 18ch;
}
/* Заголовок получает фокус программно, когда снимается заставка: так чтение
   с экрана продолжается с него. Рамку убираем — элемент не интерактивен и
   в таб-порядок не входит (tabindex="-1"), дойти до него клавиатурой нельзя. */
.hero-title:focus,
.hero-title:focus-visible {
  outline: none;
}
/* Заголовок получает фокус программно, когда снимается заставка: так чтение
   с экрана продолжается с него, а не с начала документа. Рамку убираем —
   элемент не интерактивен и в таб-порядок не входит (tabindex="-1"), дойти
   до него клавиатурой нельзя, так что обводка читалась бы как случайный
   артефакт. У остальных элементов фокус остаётся видимым. */
.hero-title:focus,
.hero-title:focus-visible {
  outline: none;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
}
/* Анимация ждёт снятия заставки — иначе отыгрывает, пока её никто не видит. */
body.site-entered .hero-title .line span {
  animation: enter-headline 1100ms var(--ease-out) backwards;
  animation-delay: 300ms;
}
body.site-entered .hero-title .line:nth-child(2) span { animation-delay: 430ms; }
body.site-entered .hero-title .line:nth-child(3) span { animation-delay: 560ms; }
@keyframes rise {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 32px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
}
.hero-desc {
  font-size: 17px;
  max-width: 520px;
  color: var(--text-dim);
  line-height: 1.5;
}
.hero-desc em { color: var(--text); font-style: normal; }

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Marquee strip */
.marquee {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 56px;
  padding: 18px 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  width: max-content;
}
.marquee-track .dot { color: var(--accent); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === Live now panel === */
.live-now {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 0;
  border-bottom: 1px solid var(--hair);
}
.live-card {
  padding: 36px 32px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.live-card:last-child { border-right: 0; }
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--live);
}
.live-card h3 {
  font-family: var(--f-display);
  font-size: 38px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.live-card h3 .ital { font-style: normal; color: var(--accent); }
.live-card .meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Панель зон на сегодня — вместо имитации трансляции */
.zone-board {
  min-height: 280px;
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}
.zone-board-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.zone-board-list { list-style: none; display: flex; flex-direction: column; }
.zone-board-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.zone-board-list li:last-child { border-bottom: 0; }
.zb-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-mute);
}
.zb-name { font-size: 14px; }
.zb-state {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.zb-state.free { color: var(--live); }
.zb-state.busy { color: var(--accent); }

/* === Архив работ === */
.wall-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.wall-header h2 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  max-width: 720px;
}
.wall-header h2 .ital { font-style: normal; color: var(--accent); }

.wall-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 14px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-family: var(--f-mono);
  color: var(--text-dim);
  letter-spacing: 0.03em;
  transition: all 200ms var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--text-dim); }
.chip.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 96px;
  gap: 14px;
}

.art-card {
  position: relative;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 400ms var(--ease), border-color 250ms var(--ease);
}
.art-card .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.art-card .meta-overlay {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: all 350ms var(--ease);
}
.art-card:hover .meta-overlay { opacity: 1; transform: translateY(0); }
.art-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.65));
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.art-card:hover::after { opacity: 1; }
.art-card .meta-overlay { z-index: 1; }

/* Поиск по архиву — простая строка с нижней чертой, без «продуктовой» плашки */
.wall-search {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair-strong);
}
.wall-search-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex: none;
}
.wall-search input {
  flex: 1;
  background: none;
  border: 0;
  color: var(--text);
  font: inherit;
  outline: none;
  font-size: 16px;
}
.wall-search input::placeholder { color: var(--text-mute); }
.wall-search:focus-within { border-bottom-color: var(--accent); }
.wall-empty {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

/* === Work of day === */
.wod {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 96px 32px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.wod-image {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.wod-image .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  flex-direction: column;
  gap: 8px;
}
.wod-image .stamp {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--accent);
  color: #0E1014;
  border-radius: 999px;
}
.wod h2 {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.02em;
}
.wod h2 .ital { font-style: normal; color: var(--accent); }
.wod .by {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 24px 0 18px;
}
.wod p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 480px;
  margin-bottom: 32px;
}

/* === Spaces sneak === */
.spaces-strip {
  border-top: 1px solid var(--hair);
}
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--hair);
}
.space-card {
  padding: 36px 28px 28px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  transition: background 300ms var(--ease);
  cursor: pointer;
  position: relative;
}
.space-card:last-child { border-right: 0; }
.space-card:hover { background: var(--bg-elev); }
.space-card .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.zone-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.zone-icon {
  width: 30px; height: 30px;
  flex: none;
  color: var(--accent-3);
  transition: color 250ms var(--ease);
}
.space-card:hover .zone-icon { color: var(--accent); }
.space-card h3 {
  font-family: var(--f-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.space-card h3 .ital { font-style: normal; color: var(--text-mute); }
.space-card .desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; flex: 1; }
.space-card .stat {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.space-card .stat .open { color: var(--live); }
.space-card .stat .busy { color: var(--accent); }

/* === Moodboard === */
.moodboards {
  padding: 52px 32px 60px;
}
.moodboards .wall-header {
  max-width: 940px;
  margin: 0 auto;
}
/* Ширину ограничиваем: на широком мониторе постеры разъезжались на пол-экрана,
   и подписи уходили за пределы первого экрана вместе с заголовком. */
.mb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px auto 0;
  max-width: 940px;
}
/* Карточки кампаний — постеры айдентики с честной подписью */
.campaign-card { display: flex; flex-direction: column; }
.campaign-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--hair);
}
.campaign-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 300ms var(--ease);
}
.campaign-card:hover .campaign-media img { opacity: 0.82; }
.campaign-swatch {
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 8px;
}
.campaign-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
}
.campaign-info .name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.campaign-info .kicker {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.campaign-info .disclaimer {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}

/* === Residents === */
.residents-hero {
  padding: 72px 32px 48px;
  border-bottom: 1px solid var(--hair);
}
.residents-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.residents-hero h1 .ital { font-style: normal; color: var(--accent); }
.residents-hero .sub {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.residents-hero p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.5;
}
.disc-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.residents-list {
  border-bottom: 1px solid var(--hair);
}
.resident-row {
  display: grid;
  grid-template-columns: 70px 1.4fr 1fr 1fr 80px;
  gap: 32px;
  align-items: center;
  padding: 22px 32px;
  border-bottom: 1px solid var(--hair);
  cursor: pointer;
  transition: background 250ms var(--ease);
  position: relative;
}
.resident-row:hover { background: var(--bg-elev); }
.resident-row:last-child { border-bottom: 0; }
.resident-row .idx {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.resident-row .name {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.resident-row .name .ital { font-style: normal; color: var(--accent); }
.resident-row .disc, .resident-row .since {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.resident-row .arrow {
  text-align: right;
  font-size: 22px;
  color: var(--text-dim);
  transition: transform 250ms var(--ease), color 250ms var(--ease);
}
.resident-row:hover .arrow { transform: translateX(6px); color: var(--accent); }
.resident-row.live::before {
  content: "";
  position: absolute;
  left: 32px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
  transform: translate(-14px, -50%);
  box-shadow: 0 0 12px var(--live);
}

/* Gallery */
.gallery-section { padding: 80px 32px; }
.gal-grid {
  columns: 3;
  column-gap: 16px;
}
.gal-card {
  break-inside: avoid;
  margin-bottom: 16px;
  background: var(--surface);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 350ms var(--ease), border-color 250ms var(--ease);
}
.gal-card .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.gal-card .meta {
  padding: 14px 16px;
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.gal-card .meta .title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
}
.gal-card .meta .by {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* === Booking === */
.booking-page { padding: 0; }
.booking-header {
  padding: 72px 32px 32px;
  border-bottom: 1px solid var(--hair);
}
.booking-header h1 {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.booking-header h1 .ital { font-style: normal; color: var(--accent); }
.booking-header p {
  margin-top: 18px;
  font-size: 16px;
  color: var(--text-dim);
  max-width: 560px;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border-bottom: 1px solid var(--hair);
}
.booking-main {
  padding: 36px 32px;
  border-right: 1px solid var(--hair);
}
.booking-side {
  padding: 36px 32px;
  background: var(--bg-elev);
}

.book-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.book-step .n {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--hair-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.book-step.done .n { background: var(--text); color: var(--bg); border-color: var(--text); }
.book-step.active .n { background: var(--accent); color: #0E1014; border-color: var(--accent); }
.book-step.active { color: var(--text); }

.space-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.space-opt {
  padding: 18px 16px;
  border: 1px solid var(--hair-strong);
  border-radius: 6px;
  cursor: pointer;
  transition: all 220ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}
.space-opt:hover { border-color: var(--text-dim); }
.space-opt.selected { border-color: var(--accent); background: var(--bg-elev); }
.space-opt .nm {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
}
.space-opt .pr {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.space-opt .av {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--live);
}
.space-opt.busy .av { color: var(--accent); }

/* Calendar */
.cal {
  border: 1px solid var(--hair);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}
.cal-head {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hair);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cal-head .month { color: var(--text); font-size: 14px; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-day-label {
  padding: 10px 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  border-bottom: 1px solid var(--hair);
}
.cal-day {
  aspect-ratio: 1.6 / 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 8px 10px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  transition: background 180ms var(--ease);
}
.cal-day:nth-child(7n+7) { border-right: 0; }
/* Подсветка только на днях, которые реально можно выбрать. Пустые ячейки
   до начала месяца и прошедшие дни на наведение не отвечают — иначе первые
   подсвечивались, а вторые нет, и календарь вёл себя непоследовательно. */
.cal-day:not(.muted):not(.past):hover { background: var(--bg-elev); }
.cal-day.muted {
  color: var(--text-mute);
  cursor: default;
  pointer-events: none;
}
.cal-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 6px; right: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}
.cal-day.selected {
  background: var(--text);
  color: var(--bg);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.slot {
  padding: 10px 6px;
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 180ms var(--ease);
}
.slot:hover { border-color: var(--text-dim); color: var(--text); }
.slot.selected { background: var(--accent); color: #0E1014; border-color: var(--accent); }
.slot.taken { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* Summary */
.summary {
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}
.summary-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hair);
  font-size: 13.5px;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row .label { color: var(--text-dim); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.summary-row .val { text-align: right; }
.summary-row.total { background: var(--bg); }
.summary-row.total .val { font-family: var(--f-display); font-weight: 700; font-size: 22px; }

/* Subscriptions */
.subs {
  padding: 80px 32px;
  border-bottom: 1px solid var(--hair);
}
.subs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.subs-header h2 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.subs-header h2 .ital { font-style: normal; color: var(--accent); }

/* Прайс-лист — построчная таблица вместо трёх карточек с «выделенным» тарифом */
.rate-sheet {
  margin-top: 36px;
  border-top: 1px solid var(--hair-strong);
}
.rate-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--hair);
}
.rate-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.rate-desc { font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.rate-price {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}
.rate-price .per {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}
.rate-foot {
  margin-top: 22px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-mute);
}
/* Footer */
.foot {
  padding: 64px 32px 32px;
  border-top: 1px solid var(--hair);
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.foot h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot ul li a { color: var(--text); transition: color 200ms var(--ease); }
.foot ul li a:hover { color: var(--accent); }
.foot .big {
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 92px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
/* Блок поддержки Фонда — требование гранта. Логотип не кликабелен,
   поэтому здесь нет ни ссылки, ни hover-состояния. */
.foot-fund {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
}
.foot-fund__logo {
  flex: none;
  width: 150px;
  height: auto;
  /* Фон подложки светлый в обеих палитрах: официальный знак нельзя
     перекрашивать, а на тёмной теме он иначе слился бы с фоном. */
  background: #FFFFFF;
  padding: 8px 10px;
  border-radius: 3px;
}
.foot-fund__text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 76ch;
}

@media (max-width: 760px) {
  .foot-fund {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .foot-fund__text { font-size: 12px; }
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--hair);
  padding-top: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Helpers */
.text-dim { color: var(--text-dim); }
.fade-in { animation: fadeIn 600ms var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Page enter */
.page { animation: pageIn 500ms var(--ease-out); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive desktop */
@media (max-width: 1100px) {
  .wod, .live-now { grid-template-columns: 1fr; }
  .live-card { border-right: 0; border-bottom: 1px solid var(--hair); }
  .spaces-grid { grid-template-columns: 1fr 1fr; }
  .mb-grid { grid-template-columns: 1fr 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .booking-main { border-right: 0; border-bottom: 1px solid var(--hair); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid { columns: 2; }
}
@media (max-width: 720px) {
  .topbar { padding: 14px 18px; gap: 10px; flex-wrap: nowrap; }
  .nav { display: none; }
  .brand { font-size: 17px; white-space: nowrap; flex: none; }
  .brand small { display: none; }
  .brand-mark { width: 20px; height: 20px; }
  .top-actions { margin-left: auto; flex: none; }
  .live-pill { display: none; }
  .btn-primary { padding: 9px 13px; font-size: 12.5px; }
  .section { padding: 56px 18px; }
  .hero { padding: 32px 18px 40px; min-height: auto; }
  .hero-top { padding-top: 0; flex-direction: column; gap: 10px; }
  .hero-meta, .hero-meta--right { text-align: left; }
  .hero-title { max-width: none; margin-top: 28px; }
  .hero-foot { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .hero-cta { justify-content: flex-start; }
  .hero-desc { font-size: 15.5px; }
  .spaces-grid, .mb-grid { grid-template-columns: 1fr; }
  .space-card { border-right: 0; border-bottom: 1px solid var(--hair); }
  .space-card h3 { font-size: 23px; }
  .rate-row { grid-template-columns: 1fr; gap: 8px; }
  .moodboards { padding: 48px 18px; }
  /* «ХУДОЖЕСТВЕННЫЙ» — самое длинное слово; крупнее не помещается в строку. */
  .h-display { font-size: 32px; letter-spacing: -0.02em; }
  .section-h2 { font-size: 28px; }
  .foot .big { font-size: 34px; }

  /* Работы — горизонтальная карусель с прилипанием: в сетку они влезают
     слишком мелкими, чтобы их разглядывать. */
  .wall-grid, .gal-grid {
    display: flex;
    columns: auto;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 18px 12px;
    margin: 0 -18px;
  }
  .wall-grid::-webkit-scrollbar,
  .gal-grid::-webkit-scrollbar { display: none; }
  .wall-grid .art-card,
  .gal-grid .gal-card {
    grid-column: auto !important;
    grid-row: auto !important;
    flex: 0 0 72%;
    scroll-snap-align: start;
    margin-bottom: 0;
  }
  .wall-grid .art-card { aspect-ratio: 4 / 5; }
  .gal-grid .gal-card .ph { height: 260px !important; }
}

/* === Бронирование: доп. элементы === */
/* Иконка зоны и её номер в одной строке — та же иконка, что в блоке зон
   на главной, поэтому и подсветка при выборе ведёт себя так же. */
.opt-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.opt-head .zone-icon { width: 22px; height: 22px; }
.space-opt:hover .zone-icon,
.space-opt.selected .zone-icon { color: var(--accent); }
.opt-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.cal-hint {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.cal-day.past {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}
.hours-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.booking-submit {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}
.booking-note {
  margin-top: 14px;
  font-size: 12px;
  font-family: var(--f-mono);
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--text-mute);
}
.booking-note.is-pending {
  padding: 10px 12px;
  border-left: 2px solid var(--accent-4);
  background: var(--surface);
}
.included {
  margin-top: 36px;
  padding: 20px;
  border: 1px solid var(--hair);
  background: var(--surface);
}
.included ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}
.included ul li {
  padding-left: 16px;
  position: relative;
  color: var(--text-dim);
}
.included ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 1px;
  background: var(--text-mute);
}
.included p {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-mute);
}

/* === Футер: неактивные контакты === */
.foot-pending {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.foot-pending li span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-mute);
  cursor: default;
}
.foot-pending li i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--hair);
  padding: 2px 6px;
}

/* === Ховеры: разводим по типу контента === */
/* Карточки работ реагируют цветом рамки и лёгким масштабом,
   а не тем же подъёмом, что и навигационные карточки зон. */
.art-card:hover,
.gal-card:hover {
  transform: scale(1.012);
  border-color: var(--accent);
}

@media (max-width: 760px) {
  .hero-3d-canvas { display: none; }
}

/* === Афиша мастер-классов === */
.events {
  padding: 64px 32px 72px;
  border-top: 1px solid var(--hair);
}
.events .wall-header {
  max-width: 1180px;
  margin: 0 auto;
  align-items: flex-end;
}
.events-note {
  max-width: 340px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 32px auto 0;
}
.event-card {
  display: flex;
  flex-direction: column;
}
.event-poster {
  position: relative;
  /* пропорция A3 — постеры показываются целиком, без обрезки */
  aspect-ratio: 2246 / 3174;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--hair);
}
.event-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 300ms var(--ease);
}
.event-card:hover .event-poster img { opacity: 0.88; }
.event-flag {
  position: absolute;
  left: 0; top: 14px;
  padding: 4px 10px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* Прошедшее занятие видно, но явно помечено — афиша не врёт о датах. */
.event-card.is-past .event-poster img { opacity: 0.42; }
.event-card.is-past .event-body { opacity: 0.55; }

.event-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
}
.event-date {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.event-date b { font-size: 15px; font-weight: 700; }
.event-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.event-about {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.event-price {
  margin-top: 2px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text);
}

@media (min-width: 721px) and (max-width: 1100px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .events-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 18px 12px;
    margin: 26px -18px 0;
  }
  .events-grid::-webkit-scrollbar { display: none; }
  .events-grid .event-card { flex: 0 0 76%; scroll-snap-align: start; }
  .events { padding: 48px 18px 56px; }
  .events-note { max-width: none; }
}

/* ==========================================================================
   Входной экран — поле травы перед сайтом
   Разметка: IntroGate в app.jsx, сцена: grass-scene.js.
   Кадр намеренно живёт вне палитр Paper/Ink: он всегда тёмный, поэтому
   опирается на отдельные токены --scene-* из :root, а не на цвета темы.
   ========================================================================== */

/* Скролл под заставкой заблокирован, но одного overflow мало: документ всё
   равно отскакивал «резинкой» и показывал белую полосу за краем страницы.
   overscroll-behavior гасит именно её. Колесо и свайп при этом продолжают
   доходить до сцены — она слушает window и запускает показ, как раньше. */
html.intro-open,
body.intro-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.intro-gate {
  position: fixed;
  z-index: 200;
  inset: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: clamp(20px, 4vw, 52px);
  /* --intro-bg ведёт grass-scene.js: фон под канвасом светлеет вместе со
     сценой, чтобы на выходе оба совпали с фоном сайта. */
  background: var(--intro-bg, var(--scene-ink));
  color: var(--surface);
  isolation: isolate;
}

/* К концу маршрута сцена уже совпала по цвету с сайтом, поэтому долгое
   затухание нечего прятать: экран снимается коротким штрихом. */
.intro-gate.is-leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}

.intro-fallback,
.intro-grass-canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Виден, пока ES-модуль сцены не доехал, и если WebGL недоступен. */
.intro-fallback {
  background: var(--intro-bg, var(--scene-ink));
}

.intro-grass-canvas {
  pointer-events: none;
  transform: scale(1.002);
  transform-origin: 50% 58%;
  transition: transform 620ms var(--ease-out), opacity 620ms var(--ease);
}

.intro-gate.is-leaving .intro-grass-canvas {
  opacity: 0;
}

.intro-top,
.intro-bottom {
  opacity: var(--intro-content, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-top {
  /* = var(--surface) на 62%; не через var(), потому что рядом
     .is-leaving анимирует opacity — два opacity перемножились бы. */
  color: rgba(252, 252, 249, 0.62);
}

.intro-center {
  opacity: var(--intro-content, 1);
  align-self: center;
  width: min(640px, 100%);
  margin: 0 auto;
  text-align: center;
  /* Только transform. Прозрачность ведёт grass-scene.js покадрово через
     --intro-content, и transition на неё в Safari растягивает каждое
     изменение в отдельный переход — логотип из-за этого не догасал. */
  transition: transform 520ms var(--ease-gate);
}

.intro-logo {
  width: min(374px, 84vw);
  height: auto;
  margin: 0 auto 25px;
  display: block;
}

.intro-center p {
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: clamp(23px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.intro-enter {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(252, 252, 249, 0.72); /* = var(--surface) на 72% */
  background: transparent;
  color: var(--surface);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), gap 180ms var(--ease);
}

.intro-enter:hover {
  gap: 38px;
  border-color: var(--scene-accent);
  color: var(--scene-accent-text);
}

.intro-enter:focus-visible {
  outline: 2px solid var(--scene-accent);
  outline-offset: 6px;
}

.intro-gate.is-leaving .intro-center {
  transform: translateY(-18px);
  opacity: 0;
}

.intro-gate.is-leaving .intro-top,
.intro-gate.is-leaving .intro-bottom {
  opacity: 0;
  transition: opacity 260ms var(--ease);
}

@media (max-width: 760px) {
  .intro-gate {
    padding: 18px;
  }

  .intro-top,
  .intro-bottom {
    align-items: end;
  }

  .intro-top span:last-child {
    max-width: 96px;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-gate,
  .intro-center,
  .intro-grass-canvas {
    transition-duration: 1ms;
  }
}

/* ==========================================================================
   Переход между страницами
   Управляется классами page-transition.is-leaving/is-entering из navigate()
   в app.jsx. Уходящий контент поднимается вверх и гаснет; новый стартует
   ниже и прозрачным, затем всплывает на место.
   ========================================================================== */

.page-transition {
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.page-transition.is-leaving {
  transition-duration: 260ms;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}

/* Стартовое положение входящей страницы — без анимации: кадр, в котором
   она уже видна на новом route, но ещё не начала подъём (см. двойной
   requestAnimationFrame в navigate()). */
.page-transition.is-entering {
  transition: none;
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    transition: none;
  }
}

/* ==========================================================================
   Появление главной после входного экрана
   Класс site-entered ставит App, когда заставка снята. Блоки не выезжают
   целиком — внутри каждого идёт свой каскад, иначе движение читается как
   один общий сдвиг макета.
   ========================================================================== */

body.intro-open .topbar,
body.intro-open .hero-grid-bg,
body.intro-open .hero-3d-canvas,
body.intro-open .hero-top,
body.intro-open .hero-title .line span,
body.intro-open .hero-foot,
body.intro-open .marquee {
  opacity: 0;
}

/* Шапка: сама панель съезжает, содержимое подхватывает по очереди. */
body.site-entered .topbar {
  animation: enter-drop 820ms var(--ease-out) backwards;
}
body.site-entered .topbar .brand {
  animation: enter-soft 700ms var(--ease-out) 280ms backwards;
}
body.site-entered .topbar .nav-item {
  animation: enter-soft 620ms var(--ease-out) backwards;
}
body.site-entered .topbar .nav-item:nth-child(1) { animation-delay: 340ms; }
body.site-entered .topbar .nav-item:nth-child(2) { animation-delay: 400ms; }
body.site-entered .topbar .nav-item:nth-child(3) { animation-delay: 460ms; }
body.site-entered .topbar .top-actions {
  animation: enter-pop 640ms var(--ease-spring) 520ms backwards;
}

/* Подложка: расходится от центра, но без сдвига — она лежит за текстом,
   и любое её смещение читалось бы как дрожь всей страницы. */
body.site-entered .hero-grid-bg {
  animation: enter-grid 1500ms var(--ease-out) 120ms backwards;
}
body.site-entered .hero-3d-canvas {
  animation: enter-depth 1700ms var(--ease-out) 300ms backwards;
}

/* Мета-строки по краям расходятся each в свою сторону. */
body.site-entered .hero-top .hero-meta {
  animation: enter-from-left 760ms var(--ease-out) 220ms backwards;
}
body.site-entered .hero-top .hero-meta--right {
  animation: enter-from-right 760ms var(--ease-out) 300ms backwards;
}

body.site-entered .hero-foot {
  animation: enter-fade 700ms var(--ease-out) 780ms backwards;
}
body.site-entered .hero-desc {
  animation: enter-soft 760ms var(--ease-out) 820ms backwards;
}
body.site-entered .hero-cta .btn-ghost {
  animation: enter-pop 620ms var(--ease-spring) 960ms backwards;
}
body.site-entered .hero-cta .btn-primary {
  animation: enter-pop 620ms var(--ease-spring) 1040ms backwards;
}

body.site-entered .marquee {
  animation: enter-fade 900ms var(--ease-out) 1120ms backwards;
}

@keyframes enter-drop {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes enter-soft {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes enter-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes enter-from-left {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes enter-from-right {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes enter-grid {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes enter-depth {
  from { opacity: 0; transform: scale(1.12); }
  to { opacity: 0.85; transform: scale(1); }
}
@keyframes enter-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Строка заголовка выходит из-под обреза со скосом и наводится на резкость —
   отсюда ощущение набора, а не простого сдвига блока. */
@keyframes enter-headline {
  from {
    opacity: 0;
    transform: translateY(110%) skewY(2.5deg);
    filter: blur(7px);
  }
  55% { filter: blur(0); }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.intro-open .topbar,
  body.intro-open .hero-grid-bg,
  body.intro-open .hero-3d-canvas,
  body.intro-open .hero-top,
  body.intro-open .hero-title .line span,
  body.intro-open .hero-foot,
  body.intro-open .marquee {
    opacity: 1;
  }
  body.site-entered .topbar,
  body.site-entered .topbar .brand,
  body.site-entered .topbar .nav-item,
  body.site-entered .topbar .top-actions,
  body.site-entered .hero-grid-bg,
  body.site-entered .hero-3d-canvas,
  body.site-entered .hero-top .hero-meta,
  body.site-entered .hero-top .hero-meta--right,
  body.site-entered .hero-foot,
  body.site-entered .hero-desc,
  body.site-entered .hero-cta .btn-ghost,
  body.site-entered .hero-cta .btn-primary,
  body.site-entered .marquee,
  body.site-entered .hero-title .line span {
    animation: none;
  }
}

/* ==========================================================================
   Страница «О нас»
   Описание проекта, устройство пространства, поддержка Фонда и реквизиты.
   Опирается на общие примитивы: .page, .section-label, .h-display, .foot-fund.
   ========================================================================== */

.about-hero {
  padding: 72px 32px 40px;
  border-bottom: 1px solid var(--hair);
}
.about-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.about-hero h1 .ital { font-style: normal; color: var(--accent); }
.about-lead {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
}

.about-block {
  padding: 56px 32px;
  border-bottom: 1px solid var(--hair);
}
.about-block:last-child { border-bottom: 0; }

.about-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 100ch;
}
.about-cols p,
.about-intro,
.about-note {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-dim);
}
.about-intro { max-width: 74ch; margin-bottom: 32px; }
.about-note { max-width: 74ch; margin-top: 28px; }

/* Зоны — нумерованный список: тот же приём, что в блоке зон на главной,
   но без карточек, здесь это справка, а не витрина. */
.about-zones {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  max-width: 100ch;
}
.about-zones li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}
.about-zones__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent-3);
  padding-top: 3px;
}
.about-zones h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.about-zones p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* Блок Фонда переиспользует оформление подвала, только без верхней линии —
   её роль здесь играет граница самой секции. */
.about-fund__inner {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.about-legal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  max-width: 100ch;
}
.about-legal > div {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.about-legal dt {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-top: 2px;
}
.about-legal dd {
  font-size: 14.5px;
  line-height: 1.5;
}
.about-legal a { border-bottom: 1px solid var(--hair-strong); }
.about-legal a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .about-cols,
  .about-zones,
  .about-legal { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .about-hero { padding: 48px 18px 32px; }
  .about-block { padding: 40px 18px; }
  .about-legal > div { grid-template-columns: 1fr; gap: 4px; }
}

/* === Репортаж со встречи === */
.meetup {
  padding: 64px 32px 72px;
  border-top: 1px solid var(--hair);
}
.meetup .wall-header {
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-end;
}
.meetup-note {
  max-width: 360px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
}
.meetup-lead,
.meetup-grid {
  max-width: 1100px;
  margin: 28px auto 0;
}
.meetup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.meetup-shot {
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--hair);
}
.meetup-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Первый кадр шире: у секции появляется точка входа вместо ровной сетки. */
.meetup-lead .meetup-shot { aspect-ratio: 2 / 1; }
.meetup-grid .meetup-shot { aspect-ratio: 4 / 3; }

@media (min-width: 721px) and (max-width: 1100px) {
  .meetup-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .meetup { padding: 48px 18px 56px; }
  .meetup-note { max-width: none; }
  .meetup-lead { margin-top: 22px; }
  .meetup-lead .meetup-shot { aspect-ratio: 3 / 2; }
  /* Как и работы с афишей — карусель, а не столбик из шести кадров. */
  .meetup-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 18px 12px;
    margin: 12px -18px 0;
  }
  .meetup-grid::-webkit-scrollbar { display: none; }
  .meetup-grid .meetup-shot { flex: 0 0 78%; scroll-snap-align: start; }
}

.mobile-content .meetup { padding: 48px 18px 56px; }
.mobile-content .meetup-note { max-width: none; }
.mobile-content .meetup-lead .meetup-shot { aspect-ratio: 3 / 2; }
.mobile-content .meetup-grid {
  display: flex;
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 18px;
  scrollbar-width: none;
  padding: 0 18px 12px;
  margin: 12px -18px 0;
}
.mobile-content .meetup-grid::-webkit-scrollbar { display: none; }
.mobile-content .meetup-grid .meetup-shot { flex: 0 0 78%; scroll-snap-align: start; }
