:root {
  --red: #d6203a;
  --yellow: #f2c114;
  --paper: #f4f1ea;
  --ink: #0b0b0b;
  --tag: "Sedgwick Ave Display", "Permanent Marker", cursive;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
  --drip-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

/* Стена на весь экран. Отдельный слой, потому что background-attachment: fixed на айфонах дёргается. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .72)),
    url(img/wall.webp) center / cover no-repeat;
}

a { color: inherit; }

.defs { position: absolute; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Шапка: полоса стены с надписью ---------- */

.hero { position: relative; }

.hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5.4;
  max-height: 40vh;
  object-fit: cover;
  object-position: 50% 52%;
}

/* Подтёки краски с нижнего края шапки: красный слой поверх жёлтого. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--drip-h);
  z-index: 2;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 110'%3E%3Cpath fill='%23d6203a' d='M0 0H600V26H572V60a6 6 0 0 1-12 0V26H513V40a4 4 0 0 1-8 0V26H434V77a7 7 0 0 1-14 0V26H340V53a5 5 0 0 1-10 0V26H233V91a9 9 0 0 1-18 0V26H139V43.5a4.5 4.5 0 0 1-9 0V26H54V71a7 7 0 0 1-14 0V26H0Z'/%3E%3C/svg%3E") 0 0 / calc(var(--drip-h) * 5.45) var(--drip-h) repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 110'%3E%3Cpath fill='%23f2c114' d='M0 0H600V26H572V60a6 6 0 0 1-12 0V26H513V40a4 4 0 0 1-8 0V26H434V77a7 7 0 0 1-14 0V26H340V53a5 5 0 0 1-10 0V26H233V91a9 9 0 0 1-18 0V26H139V43.5a4.5 4.5 0 0 1-9 0V26H54V71a7 7 0 0 1-14 0V26H0Z'/%3E%3C/svg%3E") calc(var(--drip-h) * 2.3) 0 / calc(var(--drip-h) * 4.7) calc(var(--drip-h) * .86) repeat-x;
}

/* «Beats» — тег маркером рядом с надписью на стене. */
.hero__tag {
  position: absolute;
  right: 7%;
  bottom: 7%;
  z-index: 2;
  margin: 0;
  font-family: var(--tag);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 108px);
  line-height: .8;
  color: #fff;
  -webkit-text-stroke: .06em #000;
  paint-order: stroke fill;
  text-shadow: .05em .06em 0 #000;
  transform: rotate(-7deg);
}

/* Наклейка: неровный край даёт фильтр на подложке, текст остаётся чётким. */
.sticker {
  --bg: var(--paper);
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 9px 14px 7px;
  border: 0;
  background: none;
  font-family: var(--marker);
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-2deg);
  transition: transform .15s;
}

.sticker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, .6);
  filter: url(#rough);
}

.sticker:nth-child(even) { transform: rotate(2.5deg); }
.sticker--red { --bg: var(--red); color: #fff; }
.sticker--yellow { --bg: var(--yellow); }
a.sticker:hover, button.sticker:hover { transform: rotate(0) scale(1.06); }

/* ---------- Магазин ---------- */

.store {
  max-width: 1160px;
  margin: 0 auto;
  padding: calc(var(--drip-h) + 16px) 18px 30px;
  text-align: center;
}

.store__title {
  margin: 0 0 18px;
  font-family: var(--tag);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
  color: var(--yellow);
  text-shadow: .04em .05em 0 #000;
  transform: rotate(-1.5deg);
}

.store__title span { color: var(--red); }

/* Поиск по номеру из видео. */
.finder {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 8px;
}

.finder__label {
  font-family: var(--marker);
  font-size: 24px;
  line-height: 1;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}

.finder__input {
  width: 96px;
  height: 46px;
  padding: 4px 8px 0;
  border: 3px solid #000;
  border-radius: 0;
  background: var(--paper);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, .6);
  color: var(--ink);
  font-family: var(--marker);
  font-size: 26px;
  text-align: center;
  transform: rotate(-1.5deg);
}

.finder__input::placeholder { color: #a8a59e; }
.finder__input:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }

.finder__go {
  font-size: 22px;
  padding: 11px 18px 9px;
  cursor: pointer;
}

.finder__all {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--yellow);
  font-family: var(--marker);
  font-size: 18px;
  text-decoration: underline;
  cursor: pointer;
}

.finder__all[hidden] { display: none; }

.finder__note {
  min-height: 1.5em;
  margin: 0 0 18px;
  font-family: var(--marker);
  font-size: 19px;
  line-height: 1.5;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #000;
}

.finder__note:empty { min-height: 0; margin-bottom: 12px; }

/* Плеер как афиша, приклеенная к стене жёлтым скотчем. */
.frame {
  position: relative;
  background: #000;
  border: 4px solid var(--paper);
  box-shadow: 12px 12px 0 var(--red);
  text-align: left;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 130px;
  height: 34px;
  background: rgba(242, 193, 20, .9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
  transform: rotate(-36deg);
}

.frame::before { top: -22px; left: -62px; }
.frame::after { bottom: -22px; right: -62px; }

.frame iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
  background: #000;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 22px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.facts .sticker { font-size: 20px; }

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

.foot {
  max-width: 1160px;
  margin: 0 auto;
  padding: 50px 18px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.hello {
  width: 230px;
  padding: 8px 8px 10px;
  background: var(--red);
  border-radius: 10px;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, .6);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  transform: rotate(-4deg);
}

.hello__top {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
}

.hello__top span {
  display: block;
  margin: 2px 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.hello__name {
  padding: 4px 6px 0;
  background: #fff;
  border-radius: 5px;
  color: #000;
  font-family: var(--tag);
  font-size: 44px;
  line-height: 1.3;
}

.foot__text {
  margin: 0;
  font-family: var(--marker);
  font-size: 19px;
}

.foot__text a { color: var(--yellow); }

.foot__copy {
  margin: 0;
  font-size: 13px;
  color: #a8a59e;
}

/* ---------- Телефон: плеер почти сразу под шапкой ---------- */

@media (max-width: 700px) {
  :root { --drip-h: 46px; }
  .hero img { aspect-ratio: 1300 / 700; max-height: none; object-position: 50% 50%; }
  .hero__tag { right: 4%; bottom: 3%; font-size: 40px; }
  .store { padding: calc(var(--drip-h) + 8px) 12px 20px; }
  .store__title { display: none; }
  .finder { gap: 10px; }
  .finder__label { font-size: 21px; }
  .finder__input { width: 78px; height: 42px; font-size: 23px; }
  .finder__go { font-size: 19px; padding: 10px 14px 8px; }
  .finder__all { font-size: 16px; }
  .finder__note { min-height: 0; margin-bottom: 12px; font-size: 17px; }
  .finder__note:empty { margin-bottom: 8px; }
  .frame { border-width: 3px; box-shadow: 6px 6px 0 var(--red); }
  .frame::before, .frame::after { width: 90px; height: 26px; }
  .frame::before { top: -16px; left: -44px; }
  .frame::after { bottom: -16px; right: -44px; }
  .frame iframe { height: 86vh; min-height: 620px; }
  .facts .sticker { font-size: 17px; }
  .foot { padding: 40px 12px 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticker { transition: none; }
}
