:root {
  --zolty: #ffd42a;
  --ciemny: #1c1c22;
  --grafit: #2b2b33;
  --tekst: #1f1f24;
  --szary: #6b6b76;
  --tlo: #f6f5f1;
  --karta: #ffffff;
  --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tekst);
  background: var(--tlo);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* nagłówek */
.top { background: var(--ciemny); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand img { height: 56px; width: auto; }
.menu { display: flex; gap: 22px; }
.menu a { color: #fff; text-decoration: none; font-weight: 500; letter-spacing: .02em; }
.menu a:hover { color: var(--zolty); }

/* hero */
.hero { background: var(--ciemny); color: #fff; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 14px; font-weight: 700; max-width: 18ch; }
.hero h1 span { color: var(--zolty); }
.hero p { color: #c9c9d1; max-width: 52ch; margin: 0; font-size: 1.08rem; }

/* filtry */
.filtry { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 28px; }
.filtr {
  border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--tekst);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.filtr:hover { background: #fff6d1; }
.filtr.aktywny { background: var(--zolty); }

/* karty */
.siatka { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; padding-bottom: 64px; }
.karta {
  background: var(--karta); border-radius: var(--r); overflow: hidden; text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column;
}
.karta:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.karta .foto { aspect-ratio: 4/3; background: #e7e5de center/cover no-repeat; position: relative; }
.znaczek {
  position: absolute; top: 12px; left: 12px; background: var(--zolty); color: var(--ciemny);
  font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.znaczek.status { left: auto; right: 12px; background: var(--ciemny); color: #fff; }
.karta .opis { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.karta h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.karta .miejsce { color: var(--szary); font-size: .93rem; }
.karta .cechy { color: var(--szary); font-size: .9rem; }
.cena { font-size: 1.25rem; font-weight: 800; margin-top: auto; padding-top: 6px; }
.cena small { font-weight: 500; color: var(--szary); font-size: .85rem; }
.pusto { grid-column: 1/-1; text-align: center; color: var(--szary); padding: 40px 0; }

/* szczegóły */
#szczegoly { padding: 28px 0 64px; }
.wstecz { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 600; }
.wstecz:hover { text-decoration: underline; }
.szcz { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.galeria .glowne { border-radius: var(--r); aspect-ratio: 4/3; width: 100%; object-fit: cover; background: #e7e5de; }
.miniatury { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.miniatury img { width: 92px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .65; flex: none; }
.miniatury img.wybrana, .miniatury img:hover { opacity: 1; outline: 3px solid var(--zolty); }
.panel { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 90px; }
.panel h1 { font-size: 1.45rem; margin: 6px 0 4px; line-height: 1.25; }
.panel .cena { font-size: 1.6rem; }
.tabela { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.tabela td { padding: 7px 0; border-bottom: 1px solid #eee; }
.tabela td:first-child { color: var(--szary); }
.tabela td:last-child { text-align: right; font-weight: 600; }
.przycisk {
  display: block; text-align: center; text-decoration: none; font-weight: 700; padding: 13px 16px; border-radius: 10px;
  background: var(--zolty); color: var(--ciemny); margin-top: 10px;
}
.przycisk.drugi { background: var(--ciemny); color: #fff; }
.przycisk:hover { filter: brightness(.95); }
.tresc { background: #fff; border-radius: var(--r); padding: 22px; margin-top: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.06); white-space: pre-line; }
.tresc h2 { margin-top: 0; font-size: 1.15rem; }

/* stopka */
.stopka { background: var(--ciemny); color: #fff; padding: 44px 0 20px; }
.stopka-in { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.stopka img { height: 60px; width: auto; }
.stopka h2 { margin: 0 0 6px; color: var(--zolty); font-size: 1.1rem; }
.stopka-in p { margin: 0; color: #d6d6dc; }
.stopka a { color: #fff; }
.copy { color: #8b8b95; font-size: .85rem; margin-top: 32px; margin-bottom: 0; }

@media (max-width: 820px) {
  .szcz { grid-template-columns: 1fr; }
  .panel { position: static; }
  .brand img { height: 40px; }
  .hero { padding: 36px 0 60px; }
}
