/* Klap Klap Records – styl „album z naklejkami” (papier w kratkę, taśma, polaroidy) */
:root {
  --ink: #3b2a20;
  --paper: #fbf7ee;
  --grid: #e7dfcc;
  --tomato: #ff6b4a;
  --tomato-dark: #c2412a;
  --teal: #2bb5a8;
  --teal-dark: #1d7f76;
  --mustard: #f7c548;
  --sky: #8fd3ff;
  --peach: #ffd3c8;
  --cream: #fff8d9;
  --line: #d8ccb2;
  --shadow: 0 6px 18px rgba(59, 42, 32, .18);
  --head: Gluten, "Comic Sans MS", system-ui, sans-serif;
  --body: Mali, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--tomato-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.1; margin: 0; }
.wrap { max-width: 1680px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 72px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- nagłówek ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 20px; padding-bottom: 8px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 88px; height: 88px; border-radius: 50%; background: #fff; padding: 4px; box-shadow: 0 4px 12px rgba(59,42,32,.25); transform: rotate(-6deg); transition: transform .3s; }
.brand:hover img { transform: rotate(4deg) scale(1.04); }
.brand span { font-family: var(--head); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: 1px; color: var(--ink); }
.brand small { display: block; font-size: 16px; letter-spacing: 4px; color: var(--tomato-dark); margin-top: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; flex: 1 1 420px; justify-content: flex-end; font-weight: 700; font-size: 17px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 12px; }
.nav a:hover { background: #fff; }
.nav a[aria-current="page"] { background: var(--mustard); color: var(--ink); transform: rotate(-2deg); display: inline-block; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .site-header { justify-content: space-between; }
  .brand img { width: 64px; height: 64px; }
  .brand span { font-size: 20px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
  .nav { display: none; flex-basis: 100%; flex-direction: column; background: #fff; padding: 10px; border-radius: 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* ---------- przyciski ---------- */
.btn { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 14px; font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 4px 0 var(--teal-dark); }
.btn-teal:hover { color: #fff; }
.btn-tomato { background: var(--tomato); color: #fff; box-shadow: 0 4px 0 var(--tomato-dark); }
.btn-tomato:hover { color: #fff; }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--line); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- ozdobniki ---------- */
.tape { position: absolute; height: 28px; width: 100px; transform: rotate(-5deg); pointer-events: none; }
.tape.t-tomato { background: rgba(255,107,74,.5); }
.tape.t-teal { background: rgba(43,181,168,.55); }
.tape.t-mustard { background: rgba(247,197,72,.75); }
.sticker { position: absolute; width: 96px; height: 96px; border-radius: 50%; background: var(--tomato); border: 5px solid #fff; box-shadow: 0 4px 10px rgba(59,42,32,.25); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--head); font-weight: 800; font-size: 18px; text-align: center; line-height: 1.05; transform: rotate(-10deg); }
.section { margin-top: clamp(56px, 7vw, 120px); }
.section-title { font-size: clamp(34px, 5vw, 50px); text-align: center; margin-bottom: 36px; }
.section-lead { text-align: center; max-width: 640px; margin: -20px auto 36px; font-size: 18px; }

/* ---------- hero ---------- */
.hero { margin-top: clamp(16px, 3vw, 48px); display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 80px); align-items: center; justify-content: space-between; }
.hero-text { flex: 1 1 380px; max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 108px); line-height: 1.04; padding-top: 30px; }
.hero h1 .sing { position: relative; display: inline-block; }
.hero h1 .sing svg { position: absolute; }
.hero h1 .color { background: var(--mustard); padding: 0 10px; display: inline-block; transform: rotate(-1.5deg); }
.hero h1 .cut { display: inline-block; position: relative; border: 3px dashed var(--ink); border-radius: 18px; padding: 0 12px; margin-top: 10px; }
.hero h1 .cut svg { position: absolute; top: -20px; left: -18px; background: var(--paper); border-radius: 50%; transform: rotate(-30deg); }
.hero p { margin: 0; font-size: clamp(18px, 1.35vw, 24px); line-height: 1.55; max-width: 34em; }
.hero-pics { flex: 1 1 380px; max-width: 780px; position: relative; aspect-ratio: 1.05; min-height: 320px; }
.polaroid { background: #fff; padding: 12px 12px 48px; box-shadow: var(--shadow); position: relative; text-decoration: none; display: block; transition: transform .25s; }
.polaroid img { aspect-ratio: 16/9; width: 100%; height: auto; object-fit: cover; background: #e9f6ff; }
.polaroid .cap { position: absolute; left: 8px; right: 8px; bottom: 12px; text-align: center; font-family: var(--head); font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-pics .polaroid { position: absolute; }
.hero-pics .p1 { left: 2%; top: 6%; width: 62%; transform: rotate(-6deg); }
.hero-pics .p2 { right: 0; top: 34%; width: 58%; transform: rotate(5deg); }
.hero-pics .polaroid:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.hero-pics .sticker { left: 30%; top: 60%; z-index: 3; }

/* ---------- premiera ---------- */
.premiere { position: relative; background: #fff; padding: 30px 34px; box-shadow: 0 8px 22px rgba(59,42,32,.16); transform: rotate(-.6deg); display: flex; flex-wrap: wrap; gap: 24px 28px; align-items: center; border-left: 14px solid var(--tomato); }
.premiere .tape { top: -14px; right: 80px; width: 120px; transform: rotate(5deg); }
.premiere-thumb { flex: 0 0 auto; width: 120px; height: 120px; border-radius: 50%; background: var(--sky); display: flex; align-items: center; justify-content: center; }
.premiere-thumb svg { width: 64px; height: 64px; }
.premiere-info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.label { font-weight: 700; font-size: 14px; letter-spacing: 1.5px; color: var(--tomato-dark); text-transform: uppercase; }
.premiere-title { font-family: var(--head); font-weight: 800; font-size: 34px; line-height: 1.1; }
.countdown { display: flex; gap: 10px; }
.countdown div { border-radius: 14px; padding: 10px 12px; text-align: center; min-width: 66px; }
.countdown b { display: block; font-family: var(--head); font-weight: 800; font-size: 34px; line-height: 1; }
.countdown span { font-weight: 700; font-size: 13px; }
.countdown div:nth-child(1) { background: var(--mustard); }
.countdown div:nth-child(2) { background: var(--sky); }
.countdown div:nth-child(3) { background: var(--peach); }
.later { margin: 18px 0 0; text-align: center; }

/* ---------- statystyki ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.stat { border-radius: 22px; padding: 18px 28px; box-shadow: 0 4px 12px rgba(59,42,32,.15); text-align: center; min-width: 200px; }
.stat:nth-child(1) { background: #fff; transform: rotate(-2deg); }
.stat:nth-child(2) { background: var(--mustard); transform: rotate(1.5deg); }
.stat:nth-child(3) { background: var(--sky); transform: rotate(-1deg); }
.stat small { display: block; font-size: 13px; font-weight: 700; }
.stat b { display: block; font-family: var(--head); font-weight: 800; font-size: 40px; line-height: 1.2; }
.live::before { content: "●"; color: var(--teal); margin-right: 4px; }

/* ---------- podium / karty piosenek ---------- */
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px; align-items: start; }
.podium .polaroid { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 16px; }
.podium .polaroid:hover { transform: rotate(0) translateY(-6px); }
.podium .first { transform: rotate(1.5deg); order: 2; box-shadow: 0 8px 22px rgba(59,42,32,.22); }
.podium .second { transform: rotate(-3deg); margin-top: 40px; order: 1; }
.podium .third { transform: rotate(3deg); margin-top: 60px; order: 3; }
.podium .place { position: absolute; top: -24px; right: -14px; width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 4px 10px rgba(59,42,32,.25); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--head); font-weight: 800; font-size: 32px; z-index: 1; }
.podium .first .place { background: var(--tomato); width: 88px; height: 88px; font-size: 38px; }
.podium .second .place { background: var(--teal); }
.podium .third .place { background: var(--mustard); color: var(--ink); }
.song-title { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.2; }
.views { font-weight: 600; font-size: 15px; }
@media (max-width: 860px) {
  .podium .first, .podium .second, .podium .third { order: 0; margin-top: 0; }
}

.ranking { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; }
.ranking li:nth-child(4n+1) .polaroid { transform: rotate(-1.5deg); }
.ranking li:nth-child(4n+2) .polaroid { transform: rotate(1deg); }
.ranking li:nth-child(4n+3) .polaroid { transform: rotate(-.5deg); }
.ranking li:nth-child(4n) .polaroid { transform: rotate(1.6deg); }
.ranking .polaroid { padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.ranking .polaroid:hover { transform: rotate(0) translateY(-4px); }
.ranking .num { position: absolute; top: -12px; left: -10px; background: var(--mustard); border: 3px solid #fff; border-radius: 12px; padding: 0 10px; font-family: var(--head); font-weight: 800; font-size: 20px; transform: rotate(-6deg); box-shadow: 0 2px 6px rgba(59,42,32,.2); }
.song-title.small { font-size: 18px; }

/* ---------- kartki ---------- */
.paper-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.torn { text-decoration: none; background: #fff; padding: 36px 34px 52px; display: flex; flex-direction: column; gap: 12px; clip-path: polygon(0 0, 100% 0, 100% 94%, 95% 100%, 90% 95%, 85% 100%, 80% 95%, 75% 100%, 70% 95%, 65% 100%, 60% 95%, 55% 100%, 50% 95%, 45% 100%, 40% 95%, 35% 100%, 30% 95%, 25% 100%, 20% 95%, 15% 100%, 10% 95%, 5% 100%, 0 94%); }
.dashed { text-decoration: none; background: #fff; padding: 36px 34px 44px; display: flex; flex-direction: column; gap: 12px; outline: 3px dashed var(--tomato); outline-offset: -14px; }
.torn h3, .dashed h3 { font-size: 38px; }
.torn h3 { color: var(--teal-dark); }
.dashed h3 { color: var(--tomato-dark); }
.torn p, .dashed p { margin: 0; font-size: 18px; line-height: 1.55; }
.more { font-weight: 700; }

.prints { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; gap: 40px; }
.print > a:first-of-type { display: block; }
.print { background: #fff; padding: 14px 14px 18px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; gap: 10px; }
.print:nth-child(odd) { transform: rotate(-1.2deg); }
.print:nth-child(even) { transform: rotate(1.2deg); }
.print img { aspect-ratio: 210/297; width: 100%; height: auto; object-fit: contain; border: 1px solid #eee; background: #fff; }
.print .tape { top: -14px; left: 50%; margin-left: -50px; }
.print .new { position: absolute; top: 24px; right: -12px; background: var(--tomato); color: #fff; font-family: var(--head); font-weight: 800; padding: 2px 12px; border-radius: 10px; transform: rotate(8deg); }
.print .btn { justify-content: center; min-height: 46px; font-size: 16px; }

/* ---------- o nas / tekst ---------- */
.note { background: #fff; padding: 40px; box-shadow: var(--shadow); position: relative; }
.note .tape { top: -14px; left: 40px; }
.note p { font-size: 18px; line-height: 1.6; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose p, .prose li { font-size: 18px; line-height: 1.65; }
.page-head { text-align: center; margin: 32px auto 40px; max-width: 760px; }
.page-head h1 { font-size: clamp(30px, 9vw, 64px); overflow-wrap: anywhere; }
.page-head p { font-size: 19px; }

/* ---------- formularze ---------- */
.form { background: var(--cream); padding: 40px; box-shadow: 0 6px 18px rgba(59,42,32,.12); transform: rotate(-.6deg); display: flex; flex-direction: column; gap: 16px; position: relative; }
.form .tape { top: -14px; left: 40px; }
.form h2 { font-size: 34px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.form input, .form textarea, .form select { min-height: 48px; border-radius: 12px; border: 2px solid var(--line); padding: 10px 14px; font: inherit; font-weight: 600; background: #fff; color: var(--ink); }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--teal); outline: none; }
.form .hint { font-size: 14px; font-weight: 600; opacity: .8; margin: 0; }
.form .hp { position: absolute; left: -9999px; }
.form .status { margin: 0; font-weight: 700; }
.form .status.ok { color: var(--teal-dark); }
.form .status.err { color: var(--tomato-dark); }
.form .btn { align-self: flex-start; }
.teal-card { background: var(--teal); color: #fff; padding: 40px; box-shadow: 0 6px 18px rgba(59,42,32,.12); transform: rotate(.8deg); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.teal-card h2 { font-size: 36px; }
.teal-card p { margin: 0; font-size: 18px; line-height: 1.55; }
.teal-card .btn-white { color: var(--teal-dark); }

.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.offer > div { background: #fff; padding: 26px; box-shadow: var(--shadow); border-top: 8px solid var(--sky); }
.offer > div:nth-child(2) { border-color: var(--mustard); }
.offer > div:nth-child(3) { border-color: var(--tomato); }
.offer > div:nth-child(4) { border-color: var(--teal); }
.offer h3 { font-size: 24px; margin-bottom: 8px; }
.offer p { margin: 0; }

/* ---------- stopka ---------- */
.site-footer { margin-top: 96px; padding-top: 28px; padding-bottom: 40px; border-top: 3px dashed var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer small { display: block; font-size: 14px; opacity: .8; }

@media (max-width: 560px) {
  .premiere { padding: 26px 22px; }
  .premiere-thumb { width: 84px; height: 84px; }
  .form, .note, .teal-card { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 420px) {
  .site-header { gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 52px; height: 52px; }
  .brand span { font-size: 17px; }
  .brand small { font-size: 12px; letter-spacing: 3px; }
  .nav-toggle { padding: 0 12px; }
}
