@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #000000;
  --paper: #F2EBEF;
  --pink: #E8337F;
  --muted: #8C8189;
  --line: #2B2329;
  --raise: #160F14;
  --gutter: clamp(16px, 4vw, 40px);
  --top: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.5 "Inter", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--pink); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--pink); color: #fff; padding: 8px 12px; }

/* шапка */
.top {
  height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mark { font-weight: 800; font-size: 22px; letter-spacing: .02em; text-decoration: none; }
.burger {
  appearance: none; border: 0; background: none; cursor: pointer;
  width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-content: center; gap: 7px;
}
.burger span { display: block; width: 26px; height: 2px; background: var(--paper); }

/* боковая панель */
.panel {
  position: fixed; inset: 0 0 0 auto; z-index: 40;
  width: min(440px, 100vw); padding: 20px var(--gutter) 32px;
  background: var(--ink); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s .28s;
}
.panel.is-open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
.panel-close {
  align-self: flex-end; appearance: none; border: 0; background: none; color: var(--paper);
  font: 300 40px/1 "Inter", sans-serif; width: 44px; height: 44px; cursor: pointer;
}
.panel-links { list-style: none; margin: 16px 0 auto; padding: 0; }
.panel-links a {
  display: block; padding: 6px 0; text-decoration: none;
  font-weight: 800; font-size: clamp(36px, 10vw, 48px); letter-spacing: -.04em; line-height: 1.05;
}
.panel-links a[aria-current="page"] { color: var(--pink); }
.panel-foot { color: var(--muted); font-size: 15px; display: grid; gap: 10px; margin-top: 32px; }
.panel-foot a { color: var(--paper); }
.panel-scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .6); }

main > section { padding: 56px var(--gutter); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.sec-head h2, .sec-title { font-size: 15px; font-weight: 500; color: var(--muted); }
.sec-title { margin-bottom: 24px; }
.sec-head a { font-size: 15px; color: var(--pink); text-decoration: none; }
.empty { max-width: 46ch; font-size: 20px; }

/* первый экран */
.hero {
  padding-top: 40px !important; min-height: calc(100svh - var(--top));
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  position: relative; isolation: isolate;
}
.hero--photo::before, .hero--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero--photo::before { background: var(--bg) center / cover no-repeat; filter: saturate(.85); }
.hero--photo::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.92) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
.hero:not(.hero--photo):not(.hero--live) { min-height: 0; }
.hero-when { color: var(--muted); font-size: 16px; }
.hero--photo .hero-when { color: rgba(242, 235, 239, .78); }
.hero-when span { color: var(--paper); }
.hero-label { color: var(--pink); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.hero-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); animation: pulse 1.6s ease-in-out infinite; }
.hero-name {
  font-weight: 800;
  font-size: clamp(40px, var(--fit, 19vw), 220px);
  line-height: .86; letter-spacing: -.05em;
  text-transform: lowercase; overflow-wrap: break-word; hyphens: manual;
  margin: 0 0 .14em -.04em;
}
.hero--live .hero-name { color: var(--pink); }
.hero-next { font-size: 20px; }
.hero-next span { color: var(--muted); }
.hero-free { color: var(--muted); }
.hero--photo .hero-free { color: rgba(242, 235, 239, .78); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* шкала сетов */
.timeline { list-style: none; margin: 18px 0 4px; padding: 0; position: relative; display: grid; gap: 2px; max-width: 720px; }
.tl-set { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 8px 0 12px; font-size: 16px; color: var(--muted); }
.tl-set::after {
  content: ""; position: absolute; bottom: 4px; height: 3px;
  left: calc(76px + (100% - 76px) * var(--a, 0)); width: calc((100% - 76px) * var(--w, 0));
  background: var(--line);
}
.tl-time { font-variant-numeric: tabular-nums; }
.tl-artist { color: var(--paper); text-transform: lowercase; }
.tl-set.is-live { color: var(--paper); }
.tl-set.is-live .tl-artist { color: var(--pink); font-weight: 600; }
.tl-set.is-live::after { background: var(--pink); }

/* бегущая строка */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 18px; }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker-track span { white-space: nowrap; padding-right: 48px; }

/* неделя — лента карточек */
.rail {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; }
.card a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 5; padding: 18px; border-radius: 6px; overflow: hidden; text-decoration: none;
  background: linear-gradient(160deg, #2a1220, var(--raise) 60%); border: 1px solid var(--line);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.card--poster a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.88)); z-index: 1; }
.card-body { position: relative; z-index: 2; display: grid; gap: 6px; }
.card-day { display: grid; gap: 2px; }
.card-wd { font-weight: 800; font-size: 32px; letter-spacing: -.03em; line-height: 1; }
.card--now .card-wd { color: var(--pink); }
.card-date { color: var(--muted); font-size: 14px; }
.card--poster .card-date { color: rgba(242, 235, 239, .75); }
.card-theme { font-weight: 700; font-size: 18px; }
.card-lineup { font-size: 15px; color: rgba(242, 235, 239, .85); }
.card-badge { justify-self: start; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 13px; font-weight: 600; }
.next-event { display: inline-flex; flex-direction: column; margin-top: 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.next-event span { color: var(--muted); font-size: 15px; }
.next-event b { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }

/* плитки альбомов */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tiles--all { grid-template-columns: repeat(auto-fill, minmax(min(46%, 260px), 1fr)); }
@media (min-width: 900px) { .tiles:not(.tiles--all) { grid-template-columns: repeat(4, 1fr); } }
.tile a { display: block; position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; text-decoration: none; background: var(--raise); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tile a:hover img { transform: scale(1.03); }
.tile-cap { position: absolute; inset: auto 0 0; padding: 40px 12px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); display: grid; gap: 2px; font-size: 13px; color: rgba(242, 235, 239, .8); }
.tile-cap b { font-size: 16px; color: var(--paper); line-height: 1.2; }
.tile--video a::before {
  content: ""; position: absolute; top: 12px; right: 12px; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fff'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* карта */
.where { display: grid; gap: 20px; }
@media (min-width: 900px) { .where { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.map { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--raise); }
.where--compact .map { aspect-ratio: 16 / 9; }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6) contrast(.9); }
.where-text { display: grid; gap: 12px; color: var(--muted); }
.where-text b { color: var(--paper); }

/* заголовки страниц */
.page-head { padding-top: 40px !important; display: grid; gap: 10px; }
.page-head h1 { font-weight: 800; font-size: clamp(48px, 13vw, 120px); line-height: .9; letter-spacing: -.05em; }
.page-head p { color: var(--muted); max-width: 52ch; }
.crumbs a { color: var(--pink); text-decoration: none; }

/* афиша */
.nights-full { display: grid; gap: 0; padding-top: 0 !important; }
.night { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.night:first-child { border-top: 0; }
@media (min-width: 900px) { .night:has(.night-img) { grid-template-columns: minmax(0, 340px) 1fr; } }
.night-img, .event-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--raise); }
.night-body, .event-body { display: grid; gap: 10px; max-width: 62ch; align-content: start; }
.night-day { display: flex; align-items: baseline; gap: 12px; }
.night-wd { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.night-date, .event-date { color: var(--muted); font-size: 15px; }
.night-theme { font-size: 22px; font-weight: 700; }
.night-desc, .event-desc { color: var(--muted); }
.night-lineup, .event-lineup { font-size: 19px; }
.night-free, .night-reg { font-size: 15px; color: var(--muted); }
.night-reg a { color: var(--pink); }
.events { display: grid; gap: 40px; }
.events > .sec-title { margin-bottom: -16px; }
.event { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .event:has(.event-img) { grid-template-columns: minmax(0, 340px) 1fr; } }
.event-title { font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.event-reg { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.event-left { color: var(--pink); font-size: 15px; }
.event-full { color: var(--muted); font-weight: 600; }

/* альбом */
.shots { list-style: none; margin: 0; padding: 0; columns: 2 240px; column-gap: 8px; }
.shot { break-inside: avoid; margin-bottom: 8px; }
.shot a, .shot video { display: block; width: 100%; border-radius: 4px; overflow: hidden; background: var(--raise); }
.shot img { width: 100%; height: auto; }
.album-more { margin-top: 24px; }

/* меню */
.tabs {
  position: sticky; top: var(--top); z-index: 10;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px var(--gutter); background: rgba(0, 0, 0, .9); border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.tabs a.is-active, .tabs a:hover { border-color: var(--pink); color: var(--paper); background: rgba(232, 51, 127, .14); }
.menu-tab { display: grid; gap: 36px; }
.js-tabs .menu-tab:not(.is-shown) { display: none; }
@media (min-width: 900px) { .menu-tab { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.menu-sec h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.menu-sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.menu-sec li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-bottom: 1px dotted var(--line); padding-bottom: 10px; }
.mi-name small { display: block; color: var(--muted); font-size: 14px; }
.mi-price { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.menu-sec--signature { padding: 24px; border-radius: 6px; background: linear-gradient(150deg, rgba(232, 51, 127, .22), rgba(232, 51, 127, .04)); border: 1px solid rgba(232, 51, 127, .4); }
.menu-sec--signature h2 { color: var(--pink); }
.menu-sec--signature .mi-name { font-size: 20px; font-weight: 700; }

/* VIP-комната */
.page-head .muted { color: var(--muted); font-size: 15px; }
.book { display: grid; gap: 22px; max-width: 560px; }
.book fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.book legend, .book label { font-size: 14px; color: var(--muted); }
.book legend { margin-bottom: 10px; }
.book > label { display: grid; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--paper); font-size: 16px; cursor: pointer; }
.chip input:checked + span { background: var(--pink); border-color: var(--pink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 3px; }
.book input:not([type=radio]), .book textarea, .reg-form input, .reg-form select {
  font: 400 17px/1.3 "Inter", system-ui, sans-serif; color: var(--paper);
  background: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.book input:focus, .book textarea:focus, .reg-form input:focus { border-color: var(--pink); outline: none; }

.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.visit-grid p { color: var(--muted); }
.visit-grid b, .visit-grid a { color: var(--paper); }

/* кнопки */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--pink); color: #fff;
  font: 600 16px/1 "Inter", system-ui, sans-serif;
}
.btn:hover { color: #fff; filter: brightness(1.1); }
.btn--ghost { background: rgba(0, 0, 0, .35); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(242, 235, 239, .35); }
.btn--ghost:hover { color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
.btn[disabled] { opacity: .5; cursor: default; }

/* подвал */
.foot { padding: 40px var(--gutter) 48px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.foot b, .foot a { color: var(--paper); }

/* диалог записи */
.reg { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); color: var(--paper); }
.reg::backdrop { background: rgba(0, 0, 0, .7); }
.reg-form { display: grid; gap: 16px; padding: 24px; }
.reg-form h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.reg-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.reg-msg:empty { display: none; }
.reg-msg { font-size: 15px; }
.reg-msg.is-error { color: var(--pink); }
.reg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .96); display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.lightbox[hidden] { display: none; }
.lb-stage { height: 100svh; display: grid; place-items: center; padding: 56px 0; touch-action: pan-y; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox button { appearance: none; border: 0; background: none; color: var(--paper); font: 300 44px/1 "Inter", sans-serif; height: 100%; cursor: pointer; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px !important; }

@keyframes pulse { 50% { opacity: .25; } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 640px) {
  .night-day { flex-direction: row; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { display: none; }
  .hero--photo { min-height: calc(92svh - var(--top)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; width: auto; flex-wrap: wrap; }
  .ticker-track span[aria-hidden] { display: none; }
  .hero-label::before { animation: none; }
  .panel, .panel.is-open { transition: none; }
  .tile img { transition: none; }
}
