/* ============================================================
   МИКРО — стендап-клуб: бетон, жёлтая разметка, рваные афиши
   на скотче. Луч софита следует за скроллом.
   ============================================================ */

:root {
  --concrete: #26282a;
  --concrete-deep: #1c1d1f;
  --paper: #efece4;
  --hazard: #f2c033;
  --brick: #d8563c;
  --ink: #232426;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

ol, ul { list-style: none; }

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

a { color: inherit; }

section { position: relative; z-index: 1; padding: clamp(60px, 10vh, 120px) clamp(16px, 5vw, 64px); }

/* зерно бетона */
.concrete-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 240px;
  opacity: 0.1;
  mix-blend-mode: overlay;
}

/* ---- софит, следующий за скроллом ---- */
.spotlight {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  width: 110vmin;
  height: 110vmin;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(242, 192, 51, 0.2), rgba(242, 192, 51, 0.07) 45%, transparent 68%);
  will-change: transform;
}

/* ---------- шапка-вывеска ---------- */
.hang-sign {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px clamp(14px, 4vw, 44px);
  padding: 18px clamp(16px, 5vw, 64px) 14px;
  border-bottom: 3px dashed rgba(239, 236, 228, 0.25);
}

.sign-paper {
  position: relative;
  display: inline-block;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 44px;
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  padding: 6px 26px 10px;
  transform: rotate(-1.6deg);
  transition: transform 0.25s;
}

.sign-paper::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 90px;
  height: 22px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(242, 192, 51, 0.85);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.sign-paper:hover { transform: rotate(0.6deg); }

.sign-paper small {
  display: block;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

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

.sign-nav a {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 2px 8px;
  color: var(--paper);
  opacity: 0.85;
  transition: color 0.15s, opacity 0.15s, transform 0.15s;
}

.sign-nav a:hover { color: var(--hazard); opacity: 1; transform: rotate(-1.5deg) scale(1.06); }
.sign-nav a:focus-visible { outline: 2px dashed var(--hazard); outline-offset: 3px; }

/* ---------- герой-сцена ---------- */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 96px);
  padding-top: clamp(30px, 6vh, 70px);
}

/* конус луча на сцене */
.beam {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(720px, 92vw);
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(242, 192, 51, 0.26), rgba(242, 192, 51, 0.08) 55%, transparent 85%);
  clip-path: polygon(44% 0, 56% 0, 86% 100%, 14% 100%);
  animation: beam-flicker 5.5s ease-in-out infinite;
}

@keyframes beam-flicker {
  0%, 100% { opacity: 1; }
  46% { opacity: 0.82; }
  50% { opacity: 0.97; }
  54% { opacity: 0.86; }
}

.mic {
  position: relative;
  z-index: 1;
  width: clamp(64px, 9vw, 104px);
  height: auto;
  margin-top: clamp(10px, 3vh, 34px);
  fill: var(--concrete-deep);
  filter: drop-shadow(0 0 26px rgba(242, 192, 51, 0.35));
  transform-origin: 50% 98%;
  animation: mic-sway 4.6s ease-in-out infinite alternate;
}

@keyframes mic-sway {
  from { transform: rotate(-2.4deg); }
  to { transform: rotate(2.4deg); }
}

.stage-title { font-size: clamp(56px, 12vw, 150px); font-weight: 700; line-height: 0.9; }

.flyer-title {
  position: relative;
  display: inline-block;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  padding: 10px clamp(24px, 5vw, 60px) 16px;
  transform: rotate(-1.8deg);
  clip-path: polygon(0 1%, 3% 0, 12% 1.4%, 26% 0.4%, 41% 1.6%, 57% 0.5%, 72% 1.8%, 88% 0.6%, 97% 1.6%, 100% 0.8%, 100% 99%, 96% 100%, 84% 98.6%, 69% 99.8%, 54% 98.4%, 38% 99.6%, 23% 98.5%, 9% 99.7%, 2% 98.6%, 0 99.4%);
}

.stage-sub {
  position: relative;
  z-index: 1;
  margin-top: clamp(16px, 3vh, 28px);
  font-family: 'Kelly Slab', serif;
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(239, 236, 228, 0.8);
  line-height: 1.7;
}

.hero-stickers {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(16px, 3vh, 26px);
}

.sticker {
  font-family: 'Kelly Slab', serif;
  font-size: 14px;
  padding: 8px 16px 6px;
  border: 2px solid var(--ink);
  color: var(--ink);
  transform: rotate(1.6deg);
  transition: transform 0.2s;
  cursor: default;
}

.sticker:hover { transform: rotate(-1deg) translateY(-2px); }

.sticker-hazard { background: var(--hazard); }
.sticker-brick { background: var(--brick); color: var(--paper); transform: rotate(-1.4deg); }

.stage-photo {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  margin-top: clamp(28px, 6vh, 64px);
  transform: rotate(0.8deg);
}

/* ---------- фотографии ---------- */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--concrete-deep);
  border: 10px solid var(--paper);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

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

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

.tape-cap {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--hazard);
  background: rgba(28, 29, 31, 0.7);
  padding: 2px 14px;
  transform: rotate(-0.8deg);
}

/* ---------- заголовки секций ---------- */
.sec-title {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--hazard);
  text-decoration-thickness: 3px;
  text-underline-offset: 12px;
}

.sec-title-dark { color: var(--ink); text-decoration-color: var(--brick); }

.sec-hint {
  margin-top: 22px;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 26px;
  color: rgba(239, 236, 228, 0.65);
}

/* ---------- скотч ---------- */
.tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 130px;
  height: 30px;
  transform: translateX(-50%) rotate(-2.4deg);
  background: rgba(239, 236, 228, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.tape-hazard { background: rgba(242, 192, 51, 0.88); }
.tape-brick { background: rgba(216, 86, 60, 0.8); transform: translateX(-50%) rotate(2.8deg); }

/* ---------- афиша: рваные листы ---------- */
.sheets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 5vw, 60px);
  max-width: 1060px;
  margin-top: clamp(36px, 6vh, 64px);
}

.sheet {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 34px 30px 40px;
  transform: rotate(-0.9deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet:nth-child(even) { transform: rotate(1.1deg); }

.sheet-shift { margin-top: clamp(0px, 4vw, 44px); }

.sheet:hover { transform: rotate(0) translateY(-6px); }

/* рваный низ бумаги */
.torn-a { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 94% calc(100% - 4px), 87% calc(100% - 15px), 79% calc(100% - 5px), 70% calc(100% - 17px), 61% calc(100% - 6px), 52% calc(100% - 15px), 43% calc(100% - 4px), 34% calc(100% - 16px), 25% calc(100% - 6px), 16% calc(100% - 15px), 8% calc(100% - 5px), 0 calc(100% - 14px)); }
.torn-b { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 92% calc(100% - 16px), 83% calc(100% - 5px), 74% calc(100% - 14px), 64% calc(100% - 4px), 55% calc(100% - 17px), 46% calc(100% - 7px), 36% calc(100% - 15px), 27% calc(100% - 5px), 18% calc(100% - 16px), 9% calc(100% - 6px), 0 calc(100% - 15px)); }
.torn-c { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 90% calc(100% - 3px), 80% calc(100% - 16px), 68% calc(100% - 6px), 57% calc(100% - 14px), 45% calc(100% - 3px), 33% calc(100% - 16px), 21% calc(100% - 6px), 10% calc(100% - 14px), 0 calc(100% - 4px)); }

.sheet-date {
  font-family: 'Kelly Slab', serif;
  font-size: 22px;
  color: var(--brick);
}

.sheet-date span {
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(35, 36, 38, 0.6);
  margin-left: 8px;
}

.sheet h3 {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1;
  margin-top: 6px;
}

.sheet-desc { margin-top: 12px; font-size: 15px; max-width: 44ch; }

.sheet-price {
  font-family: 'Kelly Slab', serif;
  font-size: 30px;
  margin-top: 18px;
  display: inline-block;
  background: var(--hazard);
  padding: 2px 14px 4px;
  transform: rotate(-1deg);
}

.sheet-price span { font-family: 'Rubik', sans-serif; font-size: 13px; margin-left: 6px; }

/* ---------- резиденты ---------- */
.cast {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 30px);
  margin-top: clamp(34px, 6vh, 60px);
}

.comedian {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--concrete-deep);
  padding: 20px 20px 24px;
  transform: rotate(1.4deg);
  transition: transform 0.25s;
}

.comedian:nth-child(2n) { transform: rotate(-1.8deg); }
.comedian:nth-child(3n) { transform: rotate(0.8deg); }

.comedian:hover { animation: wobble 0.5s ease-in-out; }

@keyframes wobble {
  0% { transform: rotate(1.4deg); }
  25% { transform: rotate(-2.6deg) translateY(-4px); }
  50% { transform: rotate(2deg); }
  75% { transform: rotate(-1.2deg) translateY(-2px); }
  100% { transform: rotate(0deg); }
}

.comic-initial {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 64px;
  line-height: 0.8;
  color: var(--hazard);
  -webkit-text-stroke: 1.5px var(--ink);
}

.comedian h3 {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  margin-top: 8px;
}

.comic-line { margin-top: 10px; font-size: 15px; font-style: italic; }

.comic-meta {
  margin-top: 12px;
  font-family: 'Kelly Slab', serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(35, 36, 38, 0.7);
}

/* ---------- открытый микрофон ---------- */
.openmic {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.om-flyer {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 44px clamp(22px, 3.4vw, 44px) 36px;
  transform: rotate(-0.7deg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 91% calc(100% - 3px), 81% calc(100% - 15px), 70% calc(100% - 5px), 58% calc(100% - 16px), 47% calc(100% - 4px), 35% calc(100% - 15px), 24% calc(100% - 5px), 12% calc(100% - 14px), 0 calc(100% - 4px));
}

.om-lead { margin-top: 18px; font-size: 17px; max-width: 52ch; }

.om-steps { counter-reset: step; margin-top: 22px; }

.om-steps li {
  position: relative;
  counter-increment: step;
  padding: 12px 0 12px 46px;
  border-bottom: 2px dashed rgba(35, 36, 38, 0.3);
  font-size: 15px;
}

.om-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: 'Kelly Slab', serif;
  font-size: 22px;
  color: var(--brick);
}

.om-steps b { font-family: 'Amatic SC', cursive; font-weight: 700; font-size: 24px; }

.om-foot {
  margin-top: 18px;
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 26px;
  color: var(--brick);
}

.audience { transform: rotate(1.2deg); margin-top: clamp(10px, 3vh, 30px); }

/* ---------- неделя ---------- */
.week-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: clamp(28px, 5vh, 48px);
}

.week-table th {
  font-family: 'Kelly Slab', serif;
  font-size: 20px;
  font-weight: 400;
  text-align: left;
  color: var(--hazard);
  width: 90px;
  padding: 13px 18px 13px 0;
  border-bottom: 2px dashed rgba(239, 236, 228, 0.25);
  white-space: nowrap;
}

.week-table td {
  padding: 13px 18px;
  border-bottom: 2px dashed rgba(239, 236, 228, 0.25);
  font-size: 15.5px;
}

.week-table .week-price {
  text-align: right;
  font-family: 'Kelly Slab', serif;
  color: var(--paper);
  white-space: nowrap;
  width: 140px;
}

.week-table tr { transition: background 0.15s; }
.week-table tr:hover { background: rgba(242, 192, 51, 0.08); }
.week-table tr:hover th { color: var(--brick); }

/* ---------- бар ---------- */
.bar-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(30px, 5vh, 52px);
}

.bar-col {
  background: rgba(239, 236, 228, 0.05);
  border: 2px dashed rgba(239, 236, 228, 0.3);
  padding: 20px 22px 10px;
  transform: rotate(-0.4deg);
}

.bar-col:nth-child(2) { transform: rotate(0.5deg); }

.bar-col h3 {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: 30px;
  color: var(--hazard);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(239, 236, 228, 0.35);
}

.bar-col li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted rgba(239, 236, 228, 0.25);
  font-size: 15px;
}

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

.bar-col li b {
  font-family: 'Kelly Slab', serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--hazard);
  white-space: nowrap;
}

.bar-col li:hover { background: rgba(242, 192, 51, 0.07); }

/* ---------- отзывы-записки ---------- */
.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 48px);
  margin-top: clamp(34px, 6vh, 60px);
}

.note {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 30px 24px 22px;
  transform: rotate(-1.6deg);
  transition: transform 0.25s;
}

.note p {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
}

.note footer {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(35, 36, 38, 0.65);
}

.note cite { font-style: normal; font-weight: 700; color: var(--brick); }

.note-b { transform: rotate(1.4deg); }
.note-c { transform: rotate(-0.8deg); }

.note:hover { transform: rotate(0) translateY(-5px); }

/* ---------- подвал ---------- */
.foot { position: relative; z-index: 1; padding: clamp(50px, 8vh, 90px) clamp(16px, 5vw, 64px) 40px; }

.foot-flyer {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px clamp(24px, 4vw, 56px) 34px;
  transform: rotate(0.4deg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 89% calc(100% - 3px), 77% calc(100% - 14px), 64% calc(100% - 5px), 51% calc(100% - 15px), 38% calc(100% - 4px), 26% calc(100% - 14px), 13% calc(100% - 5px), 0 calc(100% - 12px));
}

.foot-title {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 60px);
  margin-top: 24px;
}

.foot-addr { font-size: 16px; max-width: 40ch; }

.foot-list > div { padding: 10px 0; border-bottom: 2px dashed rgba(35, 36, 38, 0.25); }

.foot-list dt {
  font-family: 'Kelly Slab', serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick);
}

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

.foot-list a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot-list a:hover { color: var(--hazard); background: var(--ink); }
.foot-list a:focus-visible { outline: 2px dashed var(--brick); outline-offset: 3px; }

.foot-fine {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 2px solid rgba(35, 36, 38, 0.3);
  font-size: 13px;
  color: rgba(35, 36, 38, 0.65);
}

/* ---------- появление: листы прилетают на стену ---------- */
.reveal {
  opacity: 0;
  translate: 0 46px;
  rotate: 2.6deg;
  transition: opacity 0.55s ease-out, translate 0.7s cubic-bezier(0.16, 1, 0.3, 1), rotate 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; translate: 0 0; rotate: 0deg; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .openmic { grid-template-columns: minmax(0, 1fr); }
  .bar-cols { grid-template-columns: minmax(0, 1fr); }
  .notes { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .sheets { grid-template-columns: minmax(0, 1fr); }
  .sheet-shift { margin-top: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .week-table th { width: 62px; font-size: 17px; }
  .week-table .week-price { width: 96px; }
}

@media (max-width: 480px) {
  .cast { grid-template-columns: minmax(0, 1fr); }
  .sign-nav a { font-size: 22px; }
}

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

  .mic, .beam { animation: none; }

  .spotlight { transform: translate(25vw, 8vh) !important; }

  .comedian:hover { animation: none; transform: rotate(0); }

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

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