/* ============================================================
   GENESIS — site.css
   Design language: cinematic editorial (Runway-derived) + claude-design
   doctrine. Surface: Decide/Learn (landing) with an Explore sub-surface
   for the gallery. Zero shadows, invisible interface, photography leads.
   ============================================================ */

:root {
  --black: #000000;
  --surface: #0a0a0a;
  --surface-2: #131313;
  --line: #27272a;
  --white: #ffffff;
  --ink: #e8e8e8;
  --slate: #767d88;   /* cool grey — secondary text */
  --muted: #a7a7a7;
  --silver: #c9ccd1;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', 'Didot', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* --- бренд-палитра GENESIS (см. ТЗ GEN-67) ---
     Золото — только акценты: цифры, номера, границы на hover, кристалл. */
  --gold: #c9a96a;
  --gold-hover: #d4b578;
  --ink-warm: #e8e4dc;
  --line-soft: rgba(232, 228, 220, .08);
  --line-strong: rgba(232, 228, 220, .16);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;

  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 10vw, 160px);
  --maxw: 1600px;

  /* --- токены активного шаблона (см. static/templates/*.json) ---
     Значения по умолчанию = базовое оформление, поэтому шаблон default
     выглядит ровно так же, как сайт без шаблонов. */
  --accent: #ffffff;
  --accent-ink: #000000;
  --overlay-gradient:
    linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.86) 100%),
    linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.06) 62%);
  --hero-transform: none;
  --hero-spacing: -1.2px;
  --head-transform: none;
  --head-spacing: -1px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--white); color: var(--black); }

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 3px;
}

/* ---------- atoms ---------- */

.label {
  margin: 0;
  font-size: 11px;
  font-weight: 450;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--slate);
}
.label--muted { color: #5d636d; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--white);
  font: 600 14px/1 var(--font);
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn--solid {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}
.btn--solid:hover { background: var(--silver); border-color: var(--silver); }
.btn--ghost:hover { border-color: #4a4a4f; background: rgba(255,255,255,.04); }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- акцент шаблона ----------
   Правила ниже включаются только когда активен шаблон, отличный от default:
   базовое оформление остаётся неизменным. */

html:not([data-template="default"]) .hero__label,
html:not([data-template="default"]) .section__head .label,
html:not([data-template="default"]) .about > .label { color: var(--accent); }

html:not([data-template="default"]) .btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
html:not([data-template="default"]) .btn--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  filter: brightness(1.15);
}
html:not([data-template="default"]) .chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
html:not([data-template="default"]) .event__cta { color: var(--accent); }
html:not([data-template="default"]) .consent input { accent-color: var(--accent); }
html:not([data-template="default"]) .field input:focus,
html:not([data-template="default"]) .field select:focus,
html:not([data-template="default"]) .field textarea:focus { border-color: var(--accent); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--pad);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.nav.is-stuck {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--white);
}
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--slate);
  transition: color .18s ease;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid #3a3a3f;
  padding-bottom: 2px;
  transition: border-color .18s ease;
}
.nav__cta:hover { border-color: var(--white); }

@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--surface);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero__media img.is-ready { opacity: 1; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--overlay-gradient);
}
.hero__content {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(64px, 11vh, 132px);
  text-shadow: 0 1px 22px rgba(0, 0, 0, .55);
}
.hero__title {
  margin: 18px 0 0;
  font-size: clamp(38px, 6.2vw, 82px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: var(--hero-spacing);
  text-transform: var(--hero-transform);
  color: var(--white);
  max-width: 17ch;
}
.hero__sub {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: 16px;
  color: var(--slate);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: clamp(64px, 11vh, 132px);
  font-size: 11px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero__scroll span { display: inline-block; }
@media (max-width: 900px) { .hero__scroll { display: none; } }

/* ---------- mission ---------- */

.mission {
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 8vw, 120px) var(--pad);
}
.mission__text {
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.9px;
  color: var(--white);
  text-wrap: pretty;
}

/* ---------- generic section ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--pad);
}
.section--form { padding-top: 0; }
.section__head { margin-bottom: clamp(36px, 5vw, 68px); }
.section__title {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: var(--head-spacing);
  text-transform: var(--head-transform);
  color: var(--white);
}

/* ---------- events ---------- */

.events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 72px);
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
@media (max-width: 820px) { .events { grid-template-columns: 1fr; } }

.events__list { margin-top: 18px; }

.event {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .18s ease;
}
.event:hover { opacity: .82; }
.event__date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2px;
  color: var(--slate);
}
.event__title {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.4px;
  color: var(--white);
}
.event__place {
  margin-top: 6px;
  font-size: 13px;
  color: var(--slate);
}
.event__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.event--empty {
  display: block;
  padding: 22px 0;
  color: #5d636d;
  font-size: 14px;
}

/* ---------- apply ---------- */

.apply {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 104px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 5vw, 64px);
}
@media (max-width: 900px) { .apply { grid-template-columns: 1fr; } }

.apply__lead {
  margin: 20px 0 0;
  max-width: 42ch;
  color: var(--slate);
}
.apply__facts {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.apply__facts li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}
.apply__facts .label { flex: 0 0 96px; padding-top: 3px; }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 9px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--white);
  font: 400 15px/1.4 var(--font);
  letter-spacing: -0.1px;
  transition: border-color .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%),
                    linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input::placeholder,
.field textarea::placeholder { color: #5d636d; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3a3a3f; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--silver);
  background: #171717;
}
.field.is-invalid input,
.field.is-invalid select { border-color: #b4453f; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate);
  cursor: pointer;
}
.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ffffff;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  margin: 0;
  min-height: 20px;
  font-size: 13px;
  color: var(--slate);
}
.form__note.is-error { color: #d0706a; }
.form__note.is-ok { color: #8fbf8a; }

/* ---------- portfolio ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  font: 500 13px/1 var(--font);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.chip:hover { color: var(--white); border-color: #4a4a4f; }
.chip.is-active { color: var(--black); background: var(--white); border-color: var(--white); }

.grid {
  columns: 3;
  column-gap: 12px;
}
@media (max-width: 1100px) { .grid { columns: 2; } }
@media (max-width: 620px)  { .grid { columns: 1; } }

.tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  break-inside: avoid;
  aspect-ratio: 4 / 5;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22,.61,.36,1), opacity .4s ease;
  opacity: 0;
}
.tile img.is-ready { opacity: 1; }
.tile:hover img { transform: scale(1.035); }
.tile__meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--silver);
  text-align: left;
  opacity: 0;
  transition: opacity .22s ease;
}
.tile:hover .tile__meta { opacity: 1; }

.grid__status {
  padding: 18px 0;
  font-size: 13px;
  color: var(--slate);
}

/* ---------- about ---------- */

.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--pad);
  border-top: 1px solid var(--line);
}
.about__statement {
  margin: 16px 0 0;
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -1px;
  color: var(--white);
  max-width: 24ch;
  text-wrap: pretty;
}
.about__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(40px, 6vw, 84px);
}
@media (max-width: 820px) { .about__cols { grid-template-columns: 1fr; } }
.about__cols p:not(.label) {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--slate);
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px var(--pad) 44px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--white);
}
.footer__meta {
  font-weight: 400;
  letter-spacing: -0.1px;
  color: var(--slate);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  background: rgba(0,0,0,.95);
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100svh - 56px);
  object-fit: contain;
  border-radius: var(--r-lg);
}
.lightbox__nav {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  height: 100%;
  transition: color .18s ease;
}
.lightbox__nav:hover { color: var(--white); }
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  font: 500 12px/1 var(--mono);
  cursor: pointer;
}
.lightbox__close:hover { color: var(--white); border-color: #4a4a4f; }
.lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .hero__media img { transition: none; }
}

/* ============================================================
   GEN-67 — бренд-слой: лоадер, кристалл, курсор, карточки,
   сцены, цифры, партнёры, путь резидента, FAQ, футер, страницы кейсов.
   ============================================================ */

body { color: var(--ink-warm); letter-spacing: -0.1px; }
body.is-locked { overflow: hidden; }

/* ---------- лоадер ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  animation: loader-hide .3s ease 1.45s forwards;   /* страховка, если JS не дошёл */
}
.loader.is-out { opacity: 0; transition: opacity .3s ease; }
.loader.is-out ~ * { pointer-events: none; }
.loader__canvas { width: 240px; height: 240px; }
.loader__logo {
  position: absolute;
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 6px;
  color: var(--ink-warm);
}
.loader__skip {
  position: absolute;
  right: 22px;
  bottom: 20px;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--slate);
  font: 500 12px/1 var(--mono);
  cursor: pointer;
}
.loader__skip:hover { color: var(--ink-warm); border-color: var(--line-strong); }

@keyframes loader-hide { to { opacity: 0; visibility: hidden; } }

@media (max-width: 767px) {
  .loader__canvas { display: none; }
  .loader { animation: loader-hide .3s ease 1.0s forwards; }
}

/* ---------- шум и курсор ---------- */

.noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .022;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--gold);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, width .2s ease, height .2s ease, margin .2s ease;
}
.cursor.is-on { opacity: .9; }
.cursor.is-hot { width: 26px; height: 26px; margin: -13px 0 0 -13px; opacity: .75; }

@media (hover: none), (prefers-reduced-motion: reduce) { .cursor { display: none; } }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary { cursor: none; }

/* ---------- nav: кнопка и бургер ---------- */

.nav__cta {
  background: none;
  border: 0;
  border-bottom: 1px solid #3a3a3f;
  padding: 0 0 2px;
  font: 600 14px/1.2 var(--font);
  color: var(--gold);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.nav__cta:hover { border-color: var(--gold); color: var(--gold-hover); }

.burger {
  display: none;
  width: 34px;
  height: 34px;
  margin-left: 6px;
  padding: 7px 5px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1.5px;
  margin: 4px 0;
  background: var(--ink-warm);
  transition: transform .3s ease, opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 780px) {
  .burger { display: block; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ---------- drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 90px var(--pad) 48px;
  background: #0a0a0a;
  animation: drawer-in .35s cubic-bezier(.4,0,.2,1);
}
.drawer[hidden] { display: none; }
@keyframes drawer-in { from { transform: translateX(12%); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__nav { display: grid; gap: 22px; }
.drawer__nav a {
  font-family: var(--serif);
  font-size: clamp(26px, 7vw, 38px);
  color: var(--ink-warm);
}

/* ---------- hero: манифест + кристалл ---------- */

.hero__crystal {
  position: absolute;
  right: max(-40px, calc(50% - 690px));
  top: 12%;
  z-index: -1;
  width: min(34vw, 420px);
  height: min(34vw, 420px);
  opacity: .92;
  mix-blend-mode: screen;
  pointer-events: none;
}
@media (max-width: 900px) { .hero__crystal { display: none; } }

.hero__title--manifest {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 26ch;
  text-transform: none;
}
.hero__sub {
  font-size: 15px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- секции: сетка и карточки ---------- */

.section__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section__sub {
  margin: 14px 0 0;
  color: var(--slate);
  font-size: 15px;
}
.section__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease;
}
.section__more:hover { border-color: var(--gold); }

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 900px) { .triple { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 3vw, 40px);
  background: var(--black);
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 2px solid transparent;
}
.card:hover { background: #0c0c0c; border-bottom-color: var(--gold); }
.card__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--gold);
}
.card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink-warm);
}
.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
}
.card__cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: border-color .18s ease, color .18s ease;
}
.card--link:hover .card__cta, .card__cta:hover { border-color: var(--gold); color: var(--gold-hover); }

/* ---------- сцены (карточки) ---------- */

.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
}
@media (max-width: 1023px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cases { grid-template-columns: 1fr; } }

.case {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  isolation: isolate;
}
.case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
.case img.is-ready { opacity: 1; }
.case:hover img { transform: scale(1.045); }
.case::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.86) 100%);
  pointer-events: none;
}
.case__meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 18px;
}
.case__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
}
.case__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 400;
  color: var(--ink-warm);
}
.case__line {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--silver);
}
.case__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-warm);
  background: rgba(10,10,10,.55);
  opacity: 0;
  transition: opacity .25s ease;
}
.case:hover .case__overlay { opacity: 1; }

/* ---------- фильтры сцен ---------- */

.filters { display: grid; gap: 14px; margin-bottom: 26px; }
.filters__group { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.filters__group > .label { flex: 0 0 64px; }
.filters__row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip--reset { margin-left: 4px; color: var(--slate); border-style: dashed; }

/* ---------- цифры ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metrics { grid-template-columns: 1fr; } }

.metric {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 38px);
  background: var(--black);
}
.metric__num {
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 92px);
  line-height: 1;
  color: var(--gold);
}
.metric__label {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- партнёры ---------- */

.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
}
@media (max-width: 900px) { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .partners { grid-template-columns: repeat(2, 1fr); } }
.partner {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 28px;
  background: var(--black);
  filter: grayscale(1);
  opacity: .65;
  transition: opacity .3s ease, filter .3s ease;
}
.partner:hover { opacity: 1; filter: none; }
.partner img { max-width: 160px; max-height: 60px; object-fit: contain; }

/* ---------- путь резидента ---------- */

.path {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.path::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .path { flex-direction: column; overflow: visible; scroll-snap-type: none; } }

.phase {
  flex: 0 0 clamp(220px, 24vw, 300px);
  scroll-snap-align: center;
  padding: 26px 22px 30px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(232,228,220,.03), rgba(232,228,220,0));
}
@media (max-width: 900px) { .phase { flex: 1 1 auto; } }
.phase__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold);
}
.phase__title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink-warm);
}
.phase__text { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--slate); }
.path__note {
  max-width: 68ch;
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--slate);
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--ink-warm);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 18px;
  color: var(--gold);
  transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p {
  margin: 0;
  padding: 0 44px 24px 0;
  max-width: 76ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate);
  animation: faq-in .35s ease;
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- CTA-полоса ---------- */

.cta-band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(48px, 7vw, 96px) var(--pad);
}
.cta-band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink-warm);
}
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- футер ---------- */

.footer {
  display: block;
  padding: 0;
  border-top: 0;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--slate);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad) 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 820px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 5px;
  color: var(--ink-warm);
}
.footer__tag { margin: 12px 0 0; font-size: 13px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col .label { margin-bottom: 4px; }
.footer__col a { font-size: 13px; color: var(--slate); transition: color .18s ease; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--pad) 40px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: #5a5a5a;
}
.footer__bottom a:hover { color: var(--gold); }

/* ---------- модалка входа ---------- */

.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.78);
  backdrop-filter: blur(10px);
  animation: fade-in .3s ease;
}
.modal__card {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  padding: clamp(24px, 4vw, 40px);
  background: #0d0d0d;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  animation: modal-in .3s cubic-bezier(.4,0,.2,1);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  color: var(--slate);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { color: var(--ink-warm); }
.modal__title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink-warm);
}
.modal__tracks { display: grid; gap: 10px; }
.track {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s ease, background .2s ease;
}
.track:hover { border-color: var(--gold); background: rgba(201,169,106,.05); }
.track__name { font-size: 15px; color: var(--ink-warm); }
.track__hint { font-family: var(--mono); font-size: 11px; color: var(--slate); }

/* ---------- страница списка сцен ---------- */

.page-head {
  padding: clamp(110px, 16vw, 180px) var(--pad) clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--line-soft);
}
.page-head__inner { max-width: var(--maxw); margin: 0 auto; }
.page-head__title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.02;
  color: var(--ink-warm);
}
.page-head__sub { margin: 16px 0 0; max-width: 52ch; color: var(--slate); }

/* ---------- страница кейса ---------- */

.case-hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.case-hero__media { position: absolute; inset: 0; z-index: -2; background: var(--surface); }
.case-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.case-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.1) 40%, rgba(10,10,10,.95) 100%);
}
.case-hero__content {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(48px, 8vh, 96px);
}
.case-hero__back {
  display: inline-block;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--silver);
}
.case-hero__back:hover { color: var(--gold); }
.case-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-warm);
}
.case-hero__date { margin: 16px 0 0; font-family: var(--mono); font-size: 12px; color: var(--gold); }

.case-body { display: grid; gap: clamp(36px, 6vw, 72px); }
.case-manifesto {
  max-width: 60ch;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--ink-warm);
}
.case-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}
@media (max-width: 720px) { .case-details { grid-template-columns: 1fr; } }
.case-details dl { margin: 0; display: grid; gap: 12px; }
.case-details .row { display: flex; gap: 16px; font-size: 14px; }
.case-details dt { flex: 0 0 104px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5a5a5a; padding-top: 3px; }
.case-details dd { margin: 0; color: var(--ink-warm); }

/* ---------- страницы служебные: 404, privacy ---------- */

.plain { padding: clamp(110px, 16vw, 170px) var(--pad) clamp(60px, 8vw, 110px); }
.plain__inner { max-width: 78ch; margin: 0 auto; }
.plain__title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink-warm);
}
.plain__text { margin: 22px 0 0; color: var(--slate); line-height: 1.7; }
.plain__text h2 {
  margin: 34px 0 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-warm);
}
.plain__text ul { margin: 12px 0 0; padding-left: 20px; }
.plain__text li { margin: 6px 0; }
.plain__actions { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- сетка фото на странице кейса ---------- */

.grid { columns: 3; column-gap: 12px; }
@media (max-width: 1100px) { .grid { columns: 2; } }
@media (max-width: 620px)  { .grid { columns: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero__crystal, .noise { display: none; }
  .case img, .case__overlay, .card { transition: none; }
}
