/* ============================================================
   АТРЕЙ — концертный клуб: чёрный, лайм, маджента.
   Жёсткие полосы, глитч, световой скан, барабан афиши.
   ============================================================ */

:root {
  --night: #0a0a0c;
  --fog: #f0f0ee;
  --lime: #c6ff2b;
  --magenta: #ff2d9b;
  --night-2: #131317;
  --line: rgba(240, 240, 238, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--fog);
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd, figure, blockquote, ul { margin: 0; padding: 0; }

ul { list-style: none; }

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

a { color: inherit; }

section { padding: clamp(64px, 10vh, 120px) clamp(16px, 5vw, 72px); }

.sec-kicker {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

section h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ---------- глитч ---------- */
.glitch { position: relative; display: inline-block; }

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.glitch:hover::before,
.glitch:focus-visible::before {
  opacity: 0.9;
  color: var(--magenta);
  animation: glitch-a 0.32s steps(2) infinite;
}

.glitch:hover::after,
.glitch:focus-visible::after {
  opacity: 0.9;
  color: var(--lime);
  animation: glitch-b 0.26s steps(2) infinite;
}

@keyframes glitch-a {
  0% { clip-path: inset(8% 0 62% 0); transform: translate(-4px, -2px); }
  50% { clip-path: inset(48% 0 12% 0); transform: translate(5px, 1px); }
  100% { clip-path: inset(70% 0 6% 0); transform: translate(-3px, 2px); }
}

@keyframes glitch-b {
  0% { clip-path: inset(64% 0 8% 0); transform: translate(4px, 1px); }
  50% { clip-path: inset(16% 0 58% 0); transform: translate(-5px, -1px); }
  100% { clip-path: inset(40% 0 40% 0); transform: translate(3px, -2px); }
}

/* ---------- шапка ---------- */
.bar {
  position: static;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 36px);
  padding: 14px clamp(16px, 5vw, 72px);
  border-bottom: 2px solid var(--lime);
  background: var(--night);
}

.brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand i {
  font-style: normal;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--magenta);
  vertical-align: super;
  margin-left: 4px;
}

.nav { display: flex; gap: 2px; flex-wrap: wrap; }

.nav a {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 10px;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover { background: var(--lime); color: var(--night); }
.nav a:focus-visible { outline: 2px dashed var(--magenta); outline-offset: 2px; }

.status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(240, 240, 238, 0.65);
  white-space: nowrap;
}

.status i {
  width: 8px; height: 8px;
  background: var(--magenta);
  animation: blink 1.6s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0.15; } }

/* ---------- герой ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  min-height: calc(100vh - 66px);
  padding-bottom: 0;
}

/* световой скан через всю секцию */
.sweep {
  position: absolute;
  inset: -20% -40%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 42%, rgba(198, 255, 43, 0.14) 47%, rgba(240, 240, 238, 0.1) 50%, rgba(255, 45, 155, 0.16) 53%, transparent 58%);
  animation: sweep-move 7s ease-in-out infinite;
  will-change: transform;
}

@keyframes sweep-move {
  0% { transform: translateX(-45%); }
  50% { transform: translateX(45%); }
  100% { transform: translateX(-45%); }
}

.hero-inner { position: relative; z-index: 1; padding-bottom: clamp(24px, 6vh, 60px); }

.hero-kicker {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--fog);
  opacity: 0.75;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(110px, 24vw, 320px);
  line-height: 0.86;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin-top: 10px;
  color: var(--fog);
}

.hero-sub {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 2.2vw, 24px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  margin-top: 18px;
}

/* панель ближайшего концерта */
.hero-next {
  position: relative;
  z-index: 1;
  align-self: end;
  border: 2px solid var(--magenta);
  background: var(--night-2);
  padding: 22px 24px 26px;
  margin-bottom: clamp(24px, 6vh, 60px);
  box-shadow: 8px 8px 0 rgba(255, 45, 155, 0.25);
}

.hero-next-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--magenta);
}

.hero-next-date {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(54px, 7vw, 84px);
  line-height: 1;
  margin-top: 8px;
}

.hero-next-date span {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--lime);
  margin-left: 8px;
}

.hero-next-act {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  text-transform: uppercase;
  margin-top: 6px;
}

.hero-next-meta { margin-top: 8px; font-size: 14px; color: rgba(240, 240, 238, 0.7); }

/* полоса дат */
.hero-strip {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--line);
}

.hero-strip li {
  padding: 16px 14px 18px;
  border-right: 2px solid var(--line);
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.hero-strip li:last-child { border-right: 0; }

.hero-strip li b {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--lime);
  margin-bottom: 4px;
}

.hero-strip li:hover { background: var(--lime); color: var(--night); }
.hero-strip li:hover b { color: var(--night); }

/* ---------- солд-аут полосы ---------- */
.soldout {
  position: relative;
  height: 18px;
  margin-top: 30px;
  border: 2px solid var(--fog);
  background: transparent;
}

.soldout-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: repeating-linear-gradient(115deg, var(--lime) 0 8px, rgba(198, 255, 43, 0.55) 8px 12px);
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.soldout-full {
  background: repeating-linear-gradient(115deg, var(--magenta) 0 8px, rgba(255, 45, 155, 0.55) 8px 12px);
}

.soldout-txt {
  position: absolute;
  top: -20px;
  right: 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240, 240, 238, 0.7);
}

/* ---------- афиша-барабан ---------- */
.afisha { border-top: 2px solid var(--lime); }

.afisha-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.drum-nav { display: flex; gap: 8px; padding-bottom: 10px; }

.drum-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  width: 48px; height: 48px;
  background: transparent;
  color: var(--fog);
  border: 2px solid var(--fog);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.drum-btn:hover { background: var(--lime); border-color: var(--lime); color: var(--night); transform: translateY(-2px); }
.drum-btn:focus-visible { outline: 2px dashed var(--magenta); outline-offset: 3px; }

.afisha-hint {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 240, 238, 0.5);
  margin-top: 10px;
}

.drum {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: clamp(22px, 4vh, 40px) 0 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--magenta) transparent;
  cursor: grab;
}

.drum.dragging { cursor: grabbing; scroll-snap-type: none; }

.drum::-webkit-scrollbar { height: 6px; }
.drum::-webkit-scrollbar-thumb { background: var(--magenta); }

.poster {
  flex: 0 0 clamp(250px, 26vw, 330px);
  scroll-snap-align: start;
  border: 2px solid var(--fog);
  background: var(--night-2);
  padding: 20px 22px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.poster:hover { border-color: var(--lime); transform: translateY(-6px); }

.poster-lime { border-color: var(--lime); }
.poster-magenta { border-color: var(--magenta); }

.poster-date {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
}

.poster-date span {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-left: 8px;
}

.poster h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.02;
  text-transform: uppercase;
  margin-top: 14px;
}

.poster-genre {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 240, 238, 0.6);
  margin-top: 8px;
}

.poster-price {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--lime);
  margin-top: 16px;
}

/* ---------- неделя ---------- */
.week {
  background: var(--lime);
  color: var(--night);
  border-block: 2px solid var(--night);
}

.week .sec-kicker { color: var(--night); opacity: 0.65; }

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: clamp(26px, 5vh, 48px);
  border-top: 2px solid var(--night);
}

.week-day {
  padding: 16px 12px 18px;
  border-right: 2px solid var(--night);
  transition: background 0.15s;
}

.week-day:last-child { border-right: 0; }

.week-day b {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 34px);
  display: block;
}

.week-day p { margin-top: 10px; font-size: 13.5px; line-height: 1.4; }

.week-day:hover { background: var(--night); color: var(--lime); }

/* ---------- зал ---------- */
.hall {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.hall-specs { margin-top: clamp(24px, 4vh, 40px); }

.hall-specs > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 2px solid var(--line);
}

.hall-specs dt {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--lime);
  padding-top: 2px;
}

.hall-specs dd { font-size: 15.5px; }

.hall-note { margin-top: 22px; font-size: 14.5px; color: rgba(240, 240, 238, 0.65); max-width: 52ch; }

.hall-photos { display: grid; gap: clamp(20px, 4vh, 36px); }

.frame { position: relative; }

.frame .photo { border: 3px solid var(--lime); }

.frame-sm { width: 78%; margin-left: auto; }

.frame-sm .photo { border-color: var(--magenta); }

.photo {
  position: relative;
  overflow: hidden;
  background: var(--night-2);
}

.photo-16x9 { aspect-ratio: 16 / 9; }

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.12) saturate(1.15);
}

.frame figcaption {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 240, 238, 0.6);
  margin-top: 10px;
}

/* ---------- бар ---------- */
.bar-menu {
  background: var(--magenta);
  color: var(--night);
}

.bar-menu .sec-kicker { color: var(--night); opacity: 0.7; }

.menu-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 56px);
  margin-top: clamp(28px, 5vh, 52px);
}

.menu-col h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--night);
}

.menu-col li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(10, 10, 12, 0.35);
  font-size: 15px;
}

.menu-col li span { flex: 0 1 auto; }

.menu-col li i {
  flex: 1 1 auto;
  border-bottom: 2px dotted rgba(10, 10, 12, 0.5);
  transform: translateY(-4px);
}

.menu-col li b {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 15px;
  white-space: nowrap;
}

.menu-col li:hover { background: rgba(10, 10, 12, 0.12); }

/* ---------- слова ---------- */
.press { background: var(--fog); color: var(--night); }

.press .sec-kicker { color: var(--magenta); }

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  margin-top: clamp(26px, 5vh, 48px);
}

.press-q {
  border: 2px solid var(--night);
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.press-q p {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.3;
  text-transform: uppercase;
}

.press-q footer {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10, 10, 12, 0.6);
}

.press-q cite { font-style: normal; font-weight: 500; }

.press-q-lime { background: var(--lime); }

.press-q:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--magenta); }

/* ---------- билеты ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 30px);
  margin-top: clamp(28px, 5vh, 52px);
}

.tier {
  border: 2px solid var(--fog);
  padding: 24px 24px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.tier:hover { border-color: var(--lime); transform: translateY(-5px); }

.tier-lime { background: var(--lime); color: var(--night); border-color: var(--lime); }

.tier-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--magenta);
}

.tier-lime .tier-name { color: var(--night); opacity: 0.7; }

.tier-price {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1;
  margin-top: 14px;
}

.tier-price span { font-size: 0.5em; }

.tier-desc { margin-top: 12px; font-size: 14.5px; opacity: 0.8; max-width: 30ch; }

.rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px clamp(20px, 4vw, 60px);
  margin-top: clamp(28px, 5vh, 48px);
  border-top: 2px solid var(--line);
  padding-top: 24px;
}

.rules li {
  position: relative;
  padding-left: 26px;
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rules li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-weight: 600;
}

/* ---------- подвал ---------- */
.foot {
  padding: clamp(48px, 8vh, 90px) clamp(16px, 5vw, 72px) 30px;
  border-top: 2px solid var(--magenta);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
}

.foot-brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 44px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.foot-brand i {
  font-style: normal;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--magenta);
  vertical-align: super;
  margin-left: 6px;
}

.foot-addr { margin-top: 14px; font-size: 15px; line-height: 1.6; color: rgba(240, 240, 238, 0.8); }

.foot-list > div { padding: 12px 0; border-bottom: 2px solid var(--line); }

.foot-list dt {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--lime);
}

.foot-list dd { margin-top: 4px; font-size: 15.5px; }

.foot-list a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot-list a:hover { color: var(--magenta); }
.foot-list a:focus-visible { outline: 2px dashed var(--lime); outline-offset: 3px; }

.foot-fine {
  margin-top: clamp(28px, 5vh, 52px);
  padding-top: 18px;
  border-top: 2px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 240, 238, 0.5);
}

/* ---------- появление ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; padding-bottom: 0; }
  .hero-inner { padding-bottom: 10px; }
  .hero-next { margin-bottom: 26px; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-strip li { border-bottom: 2px solid var(--line); }
  .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-day { border-bottom: 2px solid var(--night); }
  .hall { grid-template-columns: minmax(0, 1fr); }
  .frame-sm { width: 100%; }
}

@media (max-width: 860px) {
  .status { display: none; }
  .menu-cols, .press-grid, .tiers { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }

  .bar { flex-wrap: wrap; row-gap: 4px; }
  .nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 0; }
  .nav a { padding: 6px 4px; font-size: 12.5px; letter-spacing: 0.12em; }

  .week-day { border-right: 0; }
}

@media (max-width: 560px) {
  .hero-strip { grid-template-columns: minmax(0, 1fr); }
  .week-grid { grid-template-columns: minmax(0, 1fr); }
  .hall-specs > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- доступность движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .sweep, .status i { animation: none; }
  .sweep { transform: translateX(20%); }

  .glitch::before, .glitch::after { display: none; }

  .reveal { opacity: 1; transform: none; transition: none; }

  .soldout-fill { transition: none; }

  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
