/* Strona gry „Bałaganik” – fonty, kolory, przyciski i karty jak na haniaityska.pl (style.css z 26.10.2026):
   Poppins 300 w tekście i nagłówkach, nagłówki rdzawe, Crimson Text w leadzie, Bigelow Rules w tytule,
   beżowe tło #efece5 z falą, karty białe z ciepłym cieniem, przyciski z zaokrągleniem 10 px. */
:root {
  --tlo: #fbfbfb;
  --papier: #efece5;
  --tekst: #030303;
  --tekst-cichy: #5b5550;
  --akcent: #98371f;
  --akcent-ciemny: #5a240f;
  --linia: #e1e1e1;
  --morski: linear-gradient(to bottom left, #047481 0, #05505c 100%);
  --cien-maly: 0 .3px .4px rgba(0, 0, 0, .025), 0 .9px 1.5px rgba(0, 0, 0, .05), 0 3.5px 6px rgba(0, 0, 0, .1);
  --cien-karty: 0 1px 0 rgba(132, 101, 52, .01), 0 3px 2px rgba(132, 101, 52, .01), 0 6px 4px rgba(132, 101, 52, .02),
    0 10px 8px rgba(132, 101, 52, .02), 0 16px 12px rgba(132, 101, 52, .03), 0 24px 18px rgba(132, 101, 52, .03),
    0 32px 24px rgba(132, 101, 52, .04);
  /* Fala z nagłówka haniaityska.pl: biały dół i cienka rdzawa linia */
  --fala: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M-1.23 78.87c186.267-24.436 314.878-36.485 385.833-36.147 106.432.506 167.531 21.933 236.417 21.933s183.312-50.088 254.721-55.62c47.606-3.688 89.283 2.613 125.03 18.901v72.063l-1002 1.278v-22.408z' fill='%23fbfbfb'/%3E%3Cpath d='M-1.23 87.791c171.627-34.447 300.773-52.658 387.438-54.634 129.998-2.964 166.902 40.422 235.909 40.422s175.29-63.463 246.825-68.994c47.69-3.687 91.633 10.063 131.828 41.25' fill='none' stroke='%238d3826' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --szer: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--tlo);
  color: var(--tekst);
  font: 300 18px/1.5 "Poppins", Arial, Helvetica, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--akcent); }
strong, b { font-weight: 600; }
h1, h2, h3 { font-family: "Poppins", Arial, Helvetica, sans-serif; font-weight: 300; color: var(--akcent); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(32px, 2.38vw + 13.7px, 48px); }
h2 { font-size: clamp(24px, 1.19vw + 14.9px, 32px); line-height: 1.1; }
h3 { font-size: clamp(23px, .6vw + 18.4px, 27px); }
/* <mark> = miejsca do potwierdzenia; na prototypie bez wyróżnienia, pasek u góry mówi, że to wersja robocza */
mark { background: none; color: inherit; }
.maly { font-size: 14px; color: var(--tekst-cichy); }
.lead { font-size: 19px; max-width: 46em; }

.pasek-szkic {
  background: var(--akcent-ciemny); color: #fff; text-align: center; font-size: 14px; font-weight: 500; letter-spacing: .02em; padding: 8px 16px;
}

/* Górne menu jak na haniaityska.pl: półprzezroczyste, przyklejone do góry */
.naglowek {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 251, 251, .9); backdrop-filter: blur(6px); box-shadow: var(--cien-maly);
  padding: 12px max(16px, calc((100% - var(--szer)) / 2 + 16px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.logo img { height: 48px; width: auto; }
.naglowek nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.naglowek nav a { color: var(--tekst); text-decoration: none; }
.naglowek nav a:hover { color: var(--akcent); }

/* Beżowe tło nagłówka z falą u dołu */
.hero-tlo { position: relative; background: var(--papier); padding-bottom: 72px; }
.hero-tlo::after, .sekcja--papier::before, .sekcja--papier::after {
  content: ""; position: absolute; left: 0; right: 0; height: 80px; pointer-events: none;
  background: var(--fala) center / 100% 100% no-repeat;
}
.hero-tlo::after, .sekcja--papier::after { bottom: -1px; }
.sekcja--papier::before { top: -1px; transform: scaleY(-1); }

.hero {
  max-width: var(--szer); margin: 0 auto; padding: 40px 16px 24px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero__nadtytul {
  display: inline-block; margin: 0 0 12px; padding: 8px 16px; border-radius: 16px; background: var(--morski); color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1; text-transform: uppercase;
}
.tytul-gry { font-family: "Bigelow Rules", "Crimson Text", serif; font-weight: 400; color: var(--tekst); font-size: clamp(72px, 10vw, 112px); line-height: 1; margin: 0 0 16px; }
.hero__lead { font-family: "Crimson Text", Georgia, serif; font-size: 21px; line-height: 1.4; margin: 0 0 20px; }
.hero__lead cite { font-style: italic; }
.fakty { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.fakty li { border-radius: 16px; padding: 6px 14px; font-size: 14px; background: #fff; box-shadow: var(--cien-maly); }
.cena { margin: 0 0 16px; }
.cena__kwota { font-size: 34px; }
.cena__dopisek { color: var(--tekst-cichy); font-size: 14px; }
.przyciski { display: flex; gap: 12px; flex-wrap: wrap; }
.status { font-size: 14px; color: var(--tekst-cichy); margin: 12px 0 0; }

/* Przyciski jak .btn.smaller: zwykły z obrysem, główny wypełniony */
.przycisk {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px;
  border: 2px solid var(--akcent); border-radius: 10px; color: var(--akcent); background: none;
  font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.przycisk:hover, .przycisk--glowny:hover { background: var(--akcent-ciemny); border-color: var(--akcent-ciemny); color: #fff; }
.przycisk--glowny { background: var(--akcent); color: #fff; }
.przycisk[aria-disabled="true"], .przycisk[aria-disabled="true"]:hover {
  /* jasna rdza – widoczna i na beżu nagłówka, i na białej karcie */
  background: rgba(152, 55, 31, .1); border-color: transparent; color: var(--akcent-ciemny); cursor: default;
}

.hero__pudelko { display: flex; justify-content: center; }
.hero__pudelko img { width: min(100%, 520px); }
.rozgrywka { margin: 32px 0 0; }
.rozgrywka img { width: 100%; border-radius: 10px; box-shadow: var(--cien-karty); }

.sekcja { max-width: var(--szer); margin: 0 auto; padding: 56px 16px; }
.sekcja > h2 { text-transform: lowercase; }
.sekcja--papier { position: relative; max-width: none; background: var(--papier); padding-top: 112px; padding-bottom: 112px; }
.sekcja--papier > * { max-width: calc(var(--szer) - 32px); margin-left: auto; margin-right: auto; }

.kroki { list-style: none; counter-reset: krok; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kroki li { counter-increment: krok; background: #fff; border-radius: 10px; padding: 24px 20px; box-shadow: var(--cien-karty); }
.kroki li::before {
  content: counter(krok); display: inline-flex; width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center; background: var(--akcent); color: #fff; font-weight: 500; margin-bottom: 12px;
}
.kroki h3 { font-size: 23px; margin-bottom: .4em; }
.kroki p { margin: 0; font-size: 16px; }
.wyroznik { font-family: "Crimson Text", Georgia, serif; font-size: 23px; font-style: italic; color: var(--akcent); }
.podtytul { margin-top: 40px; }
.warianty, .elementy, .tworcy { padding-left: 1.2em; }
.warianty li, .elementy li, .tworcy li { margin-bottom: 6px; }
.elementy { columns: 2; column-gap: 40px; }

/* Karty jak .products__col na haniaityska.pl */
.karty { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 24px 0; }
.karta {
  position: relative; background: #fff; border-radius: 10px; padding: 20px 16px; box-shadow: var(--cien-karty);
  display: flex; flex-direction: column;
}
.karta--wyroznienie { box-shadow: 0 0 0 2px var(--akcent), var(--cien-karty); }
.karta__obraz { width: calc(100% + 32px); margin: -20px -16px 16px; border-radius: 10px 10px 0 0; }
.karta__znaczek {
  position: absolute; top: -10px; left: 12px; margin: 0; padding: 6px 12px; border-radius: 16px; background: var(--morski); color: #fff;
  font-size: 11px; font-weight: 500; line-height: 1; text-transform: uppercase;
}
.karta__nazwa { font-size: 22px; margin-bottom: 4px; }
.karta__opis { margin: 0 0 12px; font-size: 14px; color: var(--tekst-cichy); flex-grow: 1; }
.karta__cena { margin: 0; font-size: 24px; }
.karta__osobno { margin: 0 0 16px; font-size: 13px; color: var(--tekst-cichy); }
.karta .przycisk { width: 100%; padding: 10px 14px; }

details { background: #fff; border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--cien-karty); }
summary { font-weight: 500; cursor: pointer; }
details p { margin: 10px 0 0; }

.stopka { max-width: var(--szer); margin: 0 auto; padding: 40px 16px 56px; font-size: 14px; text-align: center; }

/* Instrukcja */
.instrukcja { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }
.instrukcja h1 .tytul-gry { font-size: 1.4em; }
.wideo {
  aspect-ratio: 16 / 9; border-radius: 10px; background: var(--papier); color: var(--tekst);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; margin: 16px 0 32px;
}
.instrukcja h2 { margin-top: 1.4em; }
.instrukcja ol li { margin-bottom: 8px; }
.polecamy { background: var(--papier); border-radius: 10px; padding: 24px; margin-top: 40px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero__pudelko { order: -1; }
  .hero__pudelko img { width: min(100%, 300px); }
  .naglowek { position: static; } /* na telefonie menu w dwóch wierszach zajmowałoby ćwierć ekranu */
  .naglowek nav { gap: 6px 16px; }
  .kroki { grid-template-columns: 1fr; }
  .elementy { columns: 1; }
  .hero-tlo { padding-bottom: 40px; }
  .hero-tlo::after, .sekcja--papier::before, .sekcja--papier::after { height: 40px; }
  .sekcja--papier { padding-top: 72px; padding-bottom: 72px; }
}
