/* BishHolder 2026 — фирменный стиль снят с логотипа-бехолдера
   #CE1E24 корпус d20 · #65357B щупальца · #F1B518 глаза · #281C29 контур */

:root {
  --ink:        #17101C;   /* фон — глубже контура логотипа */
  --ink-deep:   #100B14;
  --stone:      #241A2D;   /* поверхности, комнаты на карте */
  --stone-lit:  #33243F;
  --blood:      #CE1E24;   /* корпус кубика — главный акцент */
  --blood-dim:  #92191B;
  --tentacle:   #65357B;   /* щупальца — линии, границы */
  --tentacle-lt:#9A6FB0;
  --eye:        #F1B518;   /* глаза — числа, время, подсветка */
  --parchment:  #EDE4D3;   /* текст */
  --muted:      #A895B4;

  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body:    'Manrope', 'Segoe UI', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  --wrap: 1180px;
  --gap: clamp(56px, 7vw, 104px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--eye); text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--eye);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- типографика ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: 21px; letter-spacing: 0.01em; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eye);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blood);
  flex: none;
}

.lede { color: var(--muted); max-width: 62ch; }

/* ---------- шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 11, 20, 0.88);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid #2E2138;
}
.topbar__in {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 34px; height: auto; }
.brand b { color: var(--blood); font-weight: 700; }

.nav { display: flex; gap: 22px; }
.nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--eye); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blood); color: #fff; }
.btn--primary:hover { background: #E5262C; color: #fff; }
.btn--ghost {
  border-color: var(--tentacle);
  color: var(--parchment);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--eye); color: var(--eye); }

/* ---------- хиро ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 78px) 0 0;
  border-bottom: 1px solid #2E2138;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(206,30,36,.20), transparent 46%),
    radial-gradient(circle at 12% 82%, rgba(101,53,123,.24), transparent 42%);
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 30px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(66px, 12.5vw, 168px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 12px 0 0;
}
.hero__title span { display: block; }
.hero__title .b { color: var(--blood); }
.hero__year {
  font-family: var(--mono);
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--eye);
  margin-top: 16px;
}
.hero__meta {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 2;
  color: var(--muted);
}
.hero__meta b { color: var(--parchment); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__art { position: relative; justify-self: center; }
.hero__art img {
  width: min(100%, 520px);
  filter: drop-shadow(0 26px 46px rgba(0,0,0,.6));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-16px) rotate(1.5deg); }
}

/* лента фактов */
.facts {
  position: relative;
  margin-top: clamp(30px, 5vw, 56px);
  border-top: 1px solid #2E2138;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.facts div {
  padding: 22px 4px 26px;
  border-right: 1px solid #2E2138;
}
.facts div:last-child { border-right: 0; }
.facts .n {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--eye);
}
.facts .l {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- секции ---------- */

.section { padding: var(--gap) 0; border-bottom: 1px solid #2E2138; }
.section__head { max-width: 66ch; margin-bottom: 42px; }
.section__head h2 { margin-bottom: 14px; }

/* ---------- карта ---------- */

.map { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 26px; align-items: start; }

.map__frame {
  background: var(--ink-deep);
  border: 1px solid #33243F;
  padding: 14px;
  position: relative;
}
.map__hint {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 2px 12px;
}
.map svg { width: 100%; height: auto; display: block; touch-action: pan-y; }

.room { cursor: pointer; }
.room .shell { fill: var(--stone); stroke: var(--tentacle); stroke-width: 2.5; transition: fill .18s ease, stroke .18s ease; }
.room .num { font-family: var(--mono); font-size: 15px; font-weight: 700; fill: var(--eye); }
.room .name { font-family: var(--display); font-size: 17px; font-weight: 700; fill: var(--parchment); text-transform: uppercase; letter-spacing: .02em; }
.room .sub  { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.room .fog  { fill: #0F0A13; opacity: .62; transition: opacity .35s ease; pointer-events: none; }

.room.explored .fog { opacity: 0; }
.room:hover .shell,
.room:focus-visible .shell { fill: var(--stone-lit); stroke: var(--eye); }
.room:hover .fog { opacity: .18; }
.room.active .shell { fill: #3A1D28; stroke: var(--blood); stroke-width: 3.5; }
.room.active .fog { opacity: 0; }

.walls { fill: none; stroke: #3E2C4B; stroke-width: 3; }
.door { stroke: var(--eye); stroke-width: 4; stroke-linecap: round; }
.grid-line { stroke: #201829; stroke-width: 1; }
.map-label { font-family: var(--mono); font-size: 11px; fill: #6E5B7C; letter-spacing: .14em; text-transform: uppercase; }

/* панель зоны */
.panel {
  background: var(--stone);
  border: 1px solid #3E2C4B;
  border-top: 3px solid var(--blood);
  padding: 26px 24px 28px;
  position: sticky;
  top: 92px;
}
.panel__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--eye);
}
.panel h3 { margin: 8px 0 6px; font-size: 26px; }
.panel__when {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #3E2C4B;
}
.panel ul { margin: 0; padding-left: 18px; color: var(--muted); }
.panel li { margin-bottom: 7px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.legend button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  background: transparent;
  border: 1px solid #3E2C4B;
  padding: 7px 12px;
  cursor: pointer;
  transition: .15s ease;
}
.legend button:hover { border-color: var(--eye); color: var(--eye); }
.legend button[aria-pressed="true"] { border-color: var(--blood); color: var(--parchment); background: #2E1A24; }

/* ---------- зоны (карточки, они же источник данных для панели) ---------- */

.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: #2E2138; border: 1px solid #2E2138; }
.zone-card { background: var(--ink); padding: 26px 24px 28px; }
.zone-card__num { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--eye); }
.zone-card h3 { margin: 8px 0 6px; }
.zone-card .when { font-family: var(--mono); font-size: 12.5px; color: var(--blood); margin-bottom: 12px; }
.zone-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.zone-card li { margin-bottom: 6px; }

/* ---------- программа ---------- */

.timeline { border-left: 2px solid #3E2C4B; padding-left: 0; margin: 0 0 42px; list-style: none; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; padding: 0 0 26px 24px; position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px; top: 7px;
  width: 14px; height: 14px;
  background: var(--blood);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.timeline .t { font-family: var(--mono); font-weight: 700; color: var(--eye); font-size: 16px; }
.timeline h3 { font-size: 19px; margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; font-size: 15.5px; }

.allday {
  background: var(--stone);
  border: 1px solid #3E2C4B;
  padding: 24px;
}
.allday h3 { color: var(--eye); margin-bottom: 12px; }
.allday .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.allday .pills span {
  font-family: var(--mono);
  font-size: 12.5px;
  border: 1px solid #4A3557;
  padding: 6px 12px;
  color: var(--muted);
}

/* ---------- билеты ---------- */

.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ticket {
  background: var(--stone);
  border: 1px solid #3E2C4B;
  padding: 30px 26px 32px;
  display: flex;
  flex-direction: column;
}
.ticket--main { border-color: var(--blood); }
.ticket .kind { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ticket .price {
  font-family: var(--display);
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
  color: var(--parchment);
  margin: 12px 0 2px;
}
.ticket .price small { font-size: 20px; color: var(--eye); margin-left: 6px; }
.ticket ul { margin: 16px 0 24px; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.ticket li { margin-bottom: 6px; }
.ticket .btn { margin-top: auto; align-self: flex-start; }
.note { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 20px; }

/* ---------- участвовать ---------- */

.joins { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.join {
  border: 1px solid #3E2C4B;
  padding: 24px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: .16s ease;
}
.join:hover { border-color: var(--eye); background: var(--stone); color: inherit; }
.join h3 { color: var(--parchment); margin-bottom: 8px; }
.join p { color: var(--muted); font-size: 15.5px; margin: 0; }
.join .go { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--eye); margin-top: 14px; display: block; }
.join--wide { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.join--wide p { max-width: 76ch; }
.join--wide .go { margin-top: 0; white-space: nowrap; }

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

.tiers { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tiers th, .tiers td { text-align: left; padding: 15px 14px; border-bottom: 1px solid #2E2138; vertical-align: top; }
.tiers th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.tiers td:first-child { font-family: var(--display); text-transform: uppercase; font-size: 18px; letter-spacing: .02em; }
.tiers td:nth-child(2) { font-family: var(--mono); color: var(--eye); white-space: nowrap; }
.tiers td:nth-child(3) { color: var(--muted); }
.tiers tr:hover td { background: #1E1526; }

/* ---------- faq ---------- */

.faq { max-width: 78ch; }
.faq details { border-bottom: 1px solid #2E2138; padding: 18px 0; }
.faq summary {
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blood); font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- подвал ---------- */

.foot { padding: var(--gap) 0 60px; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; align-items: start; }
.foot h3 { margin-bottom: 12px; }
.foot p, .foot li { color: var(--muted); font-size: 15.5px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 7px; }
.draft {
  margin-top: 44px;
  border: 1px dashed var(--blood-dim);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.draft b { color: var(--blood); }

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art img { width: min(64%, 250px); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .map { grid-template-columns: 1fr; }
  .panel { position: static; }
  .nav { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 760px) {
  /* схема остаётся читаемой: прокручиваем её, а не сжимаем подписи */
  .map__frame { overflow-x: auto; }
  .map__frame svg { min-width: 680px; }
}

@media (max-width: 720px) {
  /* таблица пакетов разворачивается в карточки — иначе тянет страницу вбок */
  .tiers, .tiers tbody, .tiers tr, .tiers td { display: block; width: 100%; }
  .tiers thead { display: none; }
  .tiers tr { padding: 14px 0 18px; border-bottom: 1px solid #2E2138; }
  .tiers tr:hover td { background: transparent; }
  .tiers td { border: 0; padding: 3px 0; }
  .tiers td:first-child { font-size: 24px; }
  .tiers td:nth-child(2) { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__art img { animation: none; }
  * { transition-duration: .01ms !important; }
}
