/* Strona publiczna. Kolory i czcionkę ustawia js/app.js z content.json (zmienne --bg, --fg, --accent, --frame, --on-accent, data-font). */

:root {
  --bg: #0d0d12;
  --fg: #f2efe9;
  --accent: #ff8a1f;
  --frame: #ff8a1f;
  --on-accent: #000000;
  --muted: color-mix(in srgb, var(--fg) 68%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 17%, var(--bg));
  --surface: color-mix(in srgb, var(--fg) 5%, var(--bg));

  --max: 68rem;
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --bar-h: 3.25rem;

  /* zestaw czcionek: domyślnie "club" */
  --font-head: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-head: 800;
  --track-head: 0.01em;
  --h2-base: clamp(1.7rem, 3.4vw, 2.3rem);
  --h2-scale: 1.4;
  --cq: 18cqw;
  --ui-size: 1.5rem;
  --hero-size: clamp(1.05rem, 3vw, 1.85rem);
  --hero-case: uppercase;
  --lh-body: 1.55;
}

html[data-font="industrial"] {
  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-head: 700; --track-head: 0.02em; --h2-scale: 1.35; --cq: 17cqw; --ui-size: 1.45rem;
  --hero-size: clamp(1rem, 2.8vw, 1.75rem); --hero-case: uppercase; --lh-body: 1.55;
}
html[data-font="modern"] {
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-head: 700; --track-head: -0.01em; --h2-scale: 1; --cq: 11.5cqw; --ui-size: 1.1rem;
  --hero-size: clamp(1rem, 2vw, 1.25rem); --hero-case: none; --lh-body: 1.6;
}
html[data-font="classic-serif"] {
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Crimson Pro", Georgia, "Times New Roman", serif;
  --w-head: 700; --track-head: 0; --h2-scale: 1.05; --cq: 11cqw; --ui-size: 1.2rem;
  --hero-size: clamp(1rem, 2.2vw, 1.35rem); --hero-case: none; --lh-body: 1.7;
}
html[data-font="mono"] {
  --font-head: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-body: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  --w-head: 700; --track-head: -0.02em; --h2-scale: 0.85; --cq: 10cqw; --ui-size: 1rem;
  --hero-size: clamp(1rem, 1.7vw, 1.15rem); --hero-case: none; --lh-body: 1.65;
}
html[data-font="rounded"] {
  --font-head: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w-head: 800; --track-head: 0; --h2-scale: 1.05; --cq: 11.5cqw; --ui-size: 1.15rem;
  --hero-size: clamp(1rem, 2.2vw, 1.35rem); --hero-case: none; --lh-body: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (min-width: 700px) { :root { --bar-h: 3.5rem; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/var(--lh-body) var(--font-body);
}
main { flex: 1; }
main:focus { outline: none; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--frame); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.skip:focus { top: 0.5rem; }

/* ---------- pasek z nazwą i menu ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--bar-h); max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
.bar__name {
  display: block;
  font: var(--w-head) 0.95rem / 1 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
@media (min-width: 700px) {
  .bar__name { font-size: 1.05rem; }
}
.bar__name:hover {
  color: var(--accent);
}

.burger {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 2.75rem; padding: 0 0.25rem 0 0.75rem;
  background: none; border: 0; color: var(--fg); cursor: pointer;
  font: var(--w-head) var(--ui-size) / 1 var(--font-head);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.burger:hover { color: var(--accent); }
.burger__box { position: relative; display: block; width: 1.625rem; height: 1.125rem; }
.burger__box span {
  position: absolute; left: 0; width: 100%; height: 2.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 0.5rem; }
.burger__box span:nth-child(3) { top: 1rem; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 0.5rem; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 0.5rem; transform: rotate(-45deg); }

.menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
  max-height: calc(100dvh - var(--bar-h));
  overflow-y: auto;
}
.menu__list {
  list-style: none; margin: 0 auto; padding: 0.5rem var(--gutter) 1.25rem; max-width: var(--max);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2.5rem;
  animation: menu-in 0.22s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu__link {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  color: var(--fg); text-decoration: none;
  font: var(--w-head) var(--ui-size) / 1.1 var(--font-head);
  letter-spacing: var(--track-head); text-transform: uppercase;
}
.menu__link:hover { color: var(--accent); }
.menu__link--cta { color: var(--accent); }
.menu__link svg { width: 1em; height: 1em; flex: none; }

/* ---------- sekcja główna (Hero: logo + hasło) ---------- */
.hero {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(1rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.hero__logo {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  justify-items: center;
}
.hero__logo .logo__img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  max-height: min(60vh, 30rem);
  object-fit: contain;
  object-position: center;
  opacity: 0;
}
.hero__logo.logo--ready .logo__img {
  transition: opacity 0.9s ease;
}
.hero__logo .logo__img.is-on {
  opacity: 1;
}
.hero__logo-text {
  display: block;
  line-height: 1.1;
  text-align: center;
  font: var(--w-head) clamp(2rem, 6vw, 3.5rem) / 1.1 var(--font-head);
  letter-spacing: var(--track-head);
  text-transform: uppercase;
  color: var(--accent);
  margin-block: 0.5rem;
}
.hero__tag {
  margin: 0;
  max-width: 42ch;
  text-align: center;
  margin-inline: auto;
  font: var(--w-head) var(--hero-size) / 1.35 var(--font-head);
  letter-spacing: var(--track-head);
  text-transform: var(--hero-case);
  text-wrap: balance;
  color: var(--muted);
}

.widget { max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter) clamp(1.5rem, 4vw, 2.5rem); }
.status { max-width: var(--max); margin: 3rem auto; padding-inline: var(--gutter); color: var(--muted); }

/* ---------- sekcje ---------- */
.sec {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.75rem, 5vw, 3.25rem);
  scroll-margin-top: calc(var(--bar-h) + 0.25rem);
}
.sec__grid {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 3rem;
}
@media (min-width: 860px) { .sec__grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); } }

.sec__head { container-type: inline-size; min-width: 0; }
.sec__title {
  margin: 0;
  font: var(--w-head) min(calc(var(--h2-base) * var(--h2-scale)), var(--cq)) / 0.95 var(--font-head);
  letter-spacing: var(--track-head); text-transform: uppercase;
  overflow-wrap: anywhere; hyphens: auto;
}
@media (min-width: 860px) {
  .sec__head { position: sticky; top: calc(var(--bar-h) + 1.25rem); align-self: start; }
}

.entry { display: flow-root; max-width: 46rem; padding-block: 1.25rem; }
.entry:first-child { padding-top: 0; }
.entry:last-child { padding-bottom: 0; }
.entry + .entry { border-top: 1px dashed var(--line); }
.entry__text { margin: 0; overflow-wrap: break-word; }
.entry__text a { color: var(--accent); text-underline-offset: 3px; }

/* zdjęcie: po lewej, 1/3 szerokości, w ramce; tekst zawija się pod nie */
.entry__fig {
  float: left; width: max(33.333%, 7.5rem);
  margin: 0.25rem 1.1rem 0.6rem 0;
  border: 3px solid var(--frame); background: var(--surface);
}
.entry__fig img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* aktualności: jedyne pasmo w kolorze akcentu */
.sec--news {
  background: var(--accent); color: var(--on-accent);
  border-top: 0;
  --frame: var(--on-accent);
  --line: color-mix(in srgb, var(--on-accent) 30%, transparent);
}
.sec--news .entry__text { font-size: 1.2rem; font-weight: 600; }
.sec--news .entry__text a { color: inherit; text-decoration-thickness: 2px; }

/* ---------- stopka z kontaktem ---------- */
.foot { background: var(--surface); scroll-margin-top: calc(var(--bar-h) + 0.25rem); }
.foot__cols { display: grid; gap: 2rem 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .foot__cols:not(.foot__cols--solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact p { margin: 0 0 0.35rem; }
.contact a { text-underline-offset: 3px; }
.contact__h { margin: 1.5rem 0 0.4rem; font: 600 0.95rem/1.3 var(--font-body); color: var(--muted); }
.hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1.25rem; }
.hours li { display: contents; }
.hours span:first-child { color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0 1.5rem; margin-top: 1.5rem;
  background: var(--accent); color: var(--on-accent); font: 700 1rem var(--font-body);
  text-decoration: none; border-radius: 2px;
}
.btn:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.map iframe {
  display: block; width: 100%; aspect-ratio: 4 / 3; border: 3px solid var(--frame); background: var(--surface);
}
.map a { display: inline-block; margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.legal { margin: 2.5rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- pomocnicze ---------- */
.hidden { display: none !important; }

/* ---------- komentarze odwiedzających ---------- */
.comments-container {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-size: 0.95rem;
}

.comments-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.comments-count {
  font-weight: 600;
  color: inherit;
}

.btn--comment {
  margin-top: 0;
  min-height: 2.2rem;
  padding: 0 1rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.comments-notice {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  color: var(--fg);
  font-weight: 500;
  border-radius: 2px;
}

.comments-form-box {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.sec--news .comments-form-box {
  background: color-mix(in srgb, var(--on-accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--on-accent) 30%, transparent);
  color: var(--on-accent);
}

.comments-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comments-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.comments-form .form-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: inherit;
}

.comments-form .form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
  box-sizing: border-box;
}

.sec--news .comments-form .form-input {
  background: var(--bg);
  color: var(--fg);
}

.comments-form .form-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.comments-form .form-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.sec--news .comments-form .form-hint {
  color: color-mix(in srgb, var(--on-accent) 70%, transparent);
}

.comments-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.comments-turnstile-container {
  min-height: 65px;
}

.comments-form .btn--primary {
  align-self: flex-start;
  margin-top: 0.25rem;
  cursor: pointer;
}

.comments-legal {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.sec--news .comments-legal {
  color: color-mix(in srgb, var(--on-accent) 80%, transparent);
}

.comments-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-alert {
  padding: 0.6rem 0.8rem;
  background: color-mix(in srgb, #dc2626 15%, var(--surface));
  border: 1px solid #dc2626;
  color: #dc2626;
  border-radius: 2px;
  font-size: 0.85rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.comment-item {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  color: var(--fg);
}

.sec--news .comment-item {
  background: color-mix(in srgb, var(--on-accent) 12%, transparent);
  border-left-color: var(--on-accent);
  color: var(--on-accent);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.comment-nick {
  font-weight: 700;
  overflow-wrap: break-word;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.sec--news .comment-date {
  color: color-mix(in srgb, var(--on-accent) 70%, transparent);
}

.comment-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.btn--more {
  margin-top: 0.75rem;
  min-height: 2.2rem;
  padding: 0 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
}

.sec--news .btn--more {
  background: color-mix(in srgb, var(--on-accent) 15%, transparent);
  color: var(--on-accent);
  border-color: color-mix(in srgb, var(--on-accent) 40%, transparent);
}

/* ---------- polityka prywatności ---------- */
.privacy-wrap {
  max-width: 48rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: 2rem 4rem;
}

.privacy-header {
  margin-bottom: 2rem;
}

.btn--back {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  font: 600 0.9rem var(--font-body);
  text-decoration: none;
  border-radius: 2px;
}

.btn--back:hover {
  border-color: var(--accent);
}

.privacy-disclaimer {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.8rem;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-left: 3px solid var(--accent);
  font-size: 0.85rem;
  color: var(--fg);
  border-radius: 2px;
}

.privacy-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.privacy-section {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.privacy-heading {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--fg);
}

.privacy-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg);
}

.privacy-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
