/* ---------- Палитра ---------- */
:root {
  --wine: #2a0a0f;      /* фон: цвет обивки усилителя */
  --oxblood: #431019;   /* блоки */
  --gold: #e3a640;      /* золотая окантовка усилителя */
  --bone: #f0e6d2;      /* текст */
  --red: #e8402f;       /* пик громкости */
  --ink: #120808;       /* тени и ручка */

  --level: 0;           /* меняется скриптом, 0–11 */

  --display: "Alfa Slab One", "Rockwell", Georgia, serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --scrawl: "Rock Salt", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background-color: var(--wine);
  /* едва заметная «сетка» динамика */
  background-image: radial-gradient(rgba(0, 0, 0, 0.28) 1.2px, transparent 1.4px);
  background-size: 9px 9px;
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
}

a { color: inherit; }

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

/* ---------- Шапка ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(42, 10, 15, 0.92);
  border-bottom: 2px solid var(--gold);
  backdrop-filter: blur(6px);
}

.brand {
  font-family: var(--display);
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--gold);
}

.top nav { display: flex; gap: clamp(0.8rem, 3vw, 2rem); }

.top nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.top nav a:hover { border-bottom-color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 9.4vw, 8.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: center;
}

/* Каждая буква — одна «единица» громкости: всего 11 */
.letter {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(240, 230, 210, 0.22);
  transition: color 0.18s, -webkit-text-stroke-color 0.18s, text-shadow 0.18s;
}

.letter.on {
  color: var(--gold);
  -webkit-text-stroke-color: var(--gold);
  text-shadow: 0 0 calc(var(--level) * 3px) rgba(232, 64, 47, 0.75);
}

/* Предел: всё горит красным и дрожит */
.hero.max .letter.on {
  color: var(--red);
  -webkit-text-stroke-color: var(--red);
  text-shadow: 0 0 22px rgba(232, 64, 47, 0.9), 0 0 48px rgba(232, 64, 47, 0.5);
}

.hero.max .title { animation: shake 0.14s linear infinite; }

@keyframes shake {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2px, 1px); }
  50%  { transform: translate(2px, -1px); }
  75%  { transform: translate(-1px, -2px); }
  100% { transform: translate(0, 0); }
}

.hero-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: clamp(1.5rem, 4vw, 3.5rem);
}

.lead {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 1rem;
  max-width: 30ch;
}

.hint {
  font-family: var(--scrawl);
  color: var(--gold);
  font-size: 0.95rem;
  margin: 0 0 1.6rem;
  transform: rotate(-1.5deg);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.3rem;
  border: 2px solid var(--bone);
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.btn:hover { background: var(--bone); color: var(--wine); }
.btn:active { transform: translateY(2px); }

.btn-main { background: var(--red); border-color: var(--red); color: var(--ink); }
.btn-main:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Усилитель: ручка + лампочки ---------- */
.amp {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 1.4rem 1.8rem 1rem;
  background: var(--oxblood);
  border: 3px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 10px 0 var(--ink);
}

.readout {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  min-width: 2.2ch;
  text-align: center;
  color: var(--gold);
}

.knob {
  position: relative;
  width: clamp(150px, 22vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #3b3b3b 0 6deg, #1c1c1c 6deg 12deg);
  border: 5px solid var(--ink);
  box-shadow: 0 6px 0 #000, inset 0 0 0 10px rgba(0, 0, 0, 0.35);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transform: rotate(var(--angle, -135deg));
  transition: transform 0.15s ease-out;
}

.knob.dragging { cursor: grabbing; transition: none; }

/* риска-указатель */
.knob::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 8px;
  height: 36%;
  transform: translateX(-50%);
  background: var(--gold);
  border-radius: 4px;
}

.leds { display: flex; gap: 5px; }

.led {
  width: 10px;
  height: 22px;
  background: #1a0a0c;
  border: 1px solid rgba(240, 230, 210, 0.25);
  transition: background 0.12s, box-shadow 0.12s;
}

.led.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.led.hot.on { background: var(--red); box-shadow: 0 0 10px var(--red); }

.amp-label {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(240, 230, 210, 0.7);
}

.max-stamp {
  min-height: 2.2rem;
  margin: 1.8rem 0 0;
  text-align: center;
  font-family: var(--scrawl);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  color: var(--red);
  transform: rotate(-2deg);
}

/* ---------- Секции ---------- */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold);
}

.section-note { margin: 0.4rem 0 2rem; color: rgba(240, 230, 210, 0.75); }

/* ---------- Меню как пластинка ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }

.tab {
  font: inherit;
  font-weight: 800;
  color: var(--bone);
  background: transparent;
  border: 2px solid rgba(240, 230, 210, 0.4);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.tab:hover { border-color: var(--bone); }

.tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.tracklist { list-style: none; margin: 0; padding: 0; }

.tracklist li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px dashed rgba(240, 230, 210, 0.3);
}

.tracklist .name { font-weight: 800; font-size: 1.15rem; }

.tracklist small {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  color: rgba(240, 230, 210, 0.7);
}

.price {
  font-family: var(--display);
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- Концерты: афиши-билеты ---------- */
.section-gigs {
  max-width: none;
  background: var(--oxblood);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.section-gigs > * { max-width: 900px; margin-left: auto; margin-right: auto; }

.gigs { list-style: none; padding: 0; display: grid; gap: 1rem; }

.gig {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 1.3rem;
  background: var(--bone);
  color: var(--ink);
  /* вырезы по бокам, как на билете */
  -webkit-mask:
    radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}

.gig-date { font-weight: 800; line-height: 1.2; }
.gig-date small { display: block; font-weight: 600; color: #6b3a3a; }

.gig-band { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; }
.gig-band small { display: block; font-family: var(--body); font-size: 0.9rem; font-weight: 600; color: #6b3a3a; }

.gig-entry { font-weight: 800; text-align: right; }

.gig.today { background: var(--gold); }
.gig.today .gig-date::before {
  content: "Сегодня";
  display: inline-block;
  margin-bottom: 0.2rem;
  padding: 0 0.5rem;
  background: var(--red);
  color: var(--ink);
  font-size: 0.8rem;
}

/* ---------- Контакты ---------- */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
}

.contacts h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--gold);
}

.contacts p { margin: 0.15rem 0; }
.contacts a { text-decoration-color: var(--red); text-underline-offset: 3px; }

.foot {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: rgba(240, 230, 210, 0.6);
  font-size: 0.9rem;
}

.foot p { margin: 0; }

/* ---------- Мобильные ---------- */
@media (max-width: 760px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }

  .gig { grid-template-columns: 1fr; gap: 0.3rem; }
  .gig-entry { text-align: left; }
}

/* ---------- Уважаем «меньше движения» ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero.max .title { animation: none; }
  .knob, .letter, .led, .btn { transition: none; }
}
