/* Basket Kalinka Świętochłowice — strona klubu
   Paleta i typografia wyprowadzone z herbu klubu. */

:root {
  --graphite: #1f2430;
  --graphite-deep: #151922;
  --graphite-soft: #2a3040;
  --orange: #e8641b;
  --orange-deep: #c94f0e;
  --chalk: #f5f2ec;
  --paper: #f4f5f7;
  --white: #ffffff;
  --ink: #1f2430;
  --ink-soft: #5c6373;
  --line: #d9dce2;
  --line-dark: #333a49;

  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 64ch;
  --wrap: 1180px;
  --gutter: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -0.005em;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0 0 1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: var(--white);
  padding: .75rem 1.25rem; z-index: 100; font-weight: 600;
}
.skip:focus { left: 0; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.narrow { max-width: 68ch; }

/* ---------- Pasek górny ---------- */

.topbar {
  background: var(--graphite-deep);
  border-bottom: 1px solid var(--line-dark);
  position: sticky; top: 0; z-index: 40;
}

.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem 0; flex-wrap: wrap;
}

.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--chalk);
  font-family: var(--display); font-weight: 800;
  font-size: 1.15rem; text-transform: uppercase; line-height: 1;
}
.brand img { width: 38px; }
.brand span { display: block; }
.brand small {
  display: block; font-size: .62em; color: var(--orange);
  letter-spacing: .06em; font-weight: 700;
}

.topnav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.topnav a {
  color: var(--chalk); text-decoration: none;
  font-weight: 600; font-size: .95rem; padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { border-bottom-color: var(--orange); }

/* ---------- Hero ---------- */

.hero {
  background-color: var(--graphite);
  /* Przesłona chroni czytelność nagłówka nad pomarańczowym pasem w rogu grafiki */
  background-image:
    linear-gradient(103deg,
      rgba(31, 36, 48, .96) 0%,
      rgba(31, 36, 48, .86) 34%,
      rgba(31, 36, 48, .46) 66%,
      rgba(31, 36, 48, .30) 100%),
    url("/assets/boisko.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--chalk);
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.court {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.court line, .court circle, .court path, .court rect {
  fill: none;
  stroke: rgba(245, 242, 236, .17);
  stroke-width: 2;
}

.hero-in {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-mark { grid-column: 2; grid-row: 1; justify-self: center; }
}

.hero-crest { width: clamp(150px, 30vw, 340px); }

.hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  font-weight: 900;
  max-width: 17ch;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(245, 242, 236, .82);
  max-width: 46ch;
  margin-top: 1.25rem;
}

.rule-orange {
  width: 84px; height: 6px; background: var(--orange);
  margin: 1.5rem 0 0; border: 0;
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem;
}

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--display); text-transform: uppercase;
  font-weight: 800; font-size: 1.15rem; letter-spacing: .02em;
  padding: .85rem 1.7rem; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { border-color: rgba(245, 242, 236, .5); color: var(--chalk); }
.btn-ghost:hover { background: rgba(245, 242, 236, .1); border-color: var(--chalk); }

.hero-phones {
  margin-top: 2.25rem;
  display: flex; flex-wrap: wrap; gap: .4rem 2rem; align-items: baseline;
}
.hero-phones .lab {
  font-weight: 600; color: rgba(245, 242, 236, .6); font-size: .95rem;
}
.hero-phones a {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  color: var(--orange); text-decoration: none; letter-spacing: .01em;
}
.hero-phones a:hover { color: var(--chalk); }

/* ---------- Sekcje ---------- */

.band { padding: clamp(3rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.band > .wrap { position: relative; z-index: 1; }
.band-paper { background: var(--paper); }
.band-white { background: var(--white); }
/* Ciemne pasy: ta sama grafika boiska co w hero, inny kadr w każdej sekcji.
   Plik jest już w cache, więc nic się nie dopobiera. Mocna przesłona trzyma
   je ciszej od hero i gwarantuje kontrast tekstu. */
.band-dark {
  background-color: var(--graphite);
  background-image:
    linear-gradient(rgba(31, 36, 48, .94), rgba(31, 36, 48, .94)),
    url("/assets/boisko.webp");
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--chalk);
}
.court-left  { background-position: 6% center; }
.court-mid   { background-position: 50% center; }
.court-right { background-position: 94% center; }

/* Raster kropek z plakatów klubu — wygaszony w róg, nigdy jako tapeta */
.band-paper::after,
.band-white::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: min(460px, 60vw); height: min(460px, 60vw);
  background-image: radial-gradient(rgba(232, 100, 27, .38) 1.7px, transparent 1.8px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 10%, transparent 68%);
  mask-image: radial-gradient(circle at 100% 100%, #000 10%, transparent 68%);
  pointer-events: none;
}
.band-white::after { right: auto; left: -60px; top: -60px; bottom: auto;
  -webkit-mask-image: radial-gradient(circle at 0 0, #000 10%, transparent 68%);
  mask-image: radial-gradient(circle at 0 0, #000 10%, transparent 68%);
}
.band-dark p { color: rgba(245, 242, 236, .82); }

.band h2 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  margin-bottom: 1.5rem;
}
.band-dark h2 { color: var(--chalk); }

.lead {
  font-size: 1.15rem;
  max-width: 58ch;
}

/* Cechy — rozdzielone liniami boiska, nie kaflami */

.traits {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-top: 2px solid var(--line);
}
.traits li {
  padding: 1.4rem 1.4rem 1.4rem 0;
  border-bottom: 2px solid var(--line);
}
.traits b {
  display: block; font-family: var(--display); text-transform: uppercase;
  font-size: 1.35rem; font-weight: 800; color: var(--orange-deep);
  margin-bottom: .3rem;
}
.traits span { color: var(--ink-soft); font-size: .98rem; }

/* Harmonogram — tabela */

.schedule { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.schedule caption { text-align: left; color: rgba(245,242,236,.7); padding-bottom: .9rem; }
.schedule th, .schedule td {
  text-align: left; padding: 1rem .75rem 1rem 0;
  border-bottom: 2px solid var(--line-dark); vertical-align: baseline;
}
.schedule thead th {
  font-family: var(--body); font-weight: 600; font-size: .9rem;
  color: rgba(245, 242, 236, .55); text-transform: none;
  border-bottom-color: var(--orange);
}
.schedule tbody th {
  font-family: var(--display); text-transform: uppercase;
  font-size: 1.5rem; font-weight: 800; color: var(--chalk);
  white-space: nowrap; width: 1%;
}
.schedule .time {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem;
  color: var(--orange); white-space: nowrap;
}
.schedule .grp { color: rgba(245, 242, 236, .8); }
.schedule tr:last-child th, .schedule tr:last-child td { border-bottom: 0; }

/* Karnety */

.passes {
  display: grid; gap: 1.25rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
}
.pass {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 2px solid var(--line);
  padding: 1.75rem 1.75rem 1.9rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pass:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(31, 36, 48, .45); }
.pass::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 6px;
  background: var(--line);
}
.pass-vip {
  background: var(--graphite); border-color: var(--graphite); color: var(--chalk);
  background-image: radial-gradient(rgba(232, 100, 27, .22) 1.4px, transparent 1.5px);
  background-size: 14px 14px; background-position: right -7px top -7px;
}
.pass-vip::before { background: var(--orange); }
.pass-vip > * { position: relative; }
.pass-vip { background-color: var(--graphite); }
.pass-badge {
  position: absolute; top: -.85rem; right: 1.25rem;
  background: var(--orange); color: var(--white);
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: .9rem; letter-spacing: .04em; padding: .3rem .7rem;
}
.pass-name { font-size: 1.6rem; color: var(--ink); margin: 0; }
.pass-vip .pass-name { color: var(--chalk); }

.price {
  display: flex; align-items: flex-end; gap: .4rem;
  margin: .9rem 0 1.2rem; max-width: none; line-height: .85;
}
.price .amount {
  font-family: var(--display); font-weight: 900; font-size: clamp(4rem, 9vw, 5.2rem);
  color: var(--orange-deep); letter-spacing: -.01em;
}
.pass-vip .price .amount { color: var(--orange); }
.price .cur {
  display: flex; flex-direction: column; gap: .35rem; padding-bottom: .35rem;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--ink);
}
.pass-vip .price .cur { color: var(--chalk); }
.price .cur small {
  font-family: var(--body); font-weight: 500; font-size: .9rem; color: var(--ink-soft);
}
.pass-vip .price .cur small { color: rgba(245, 242, 236, .6); }

.freq {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 0; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
}
.pass-vip .freq { border-color: var(--line-dark); }
.freq-balls { display: flex; gap: .3rem; }
.ball-ico { width: 26px; height: 26px; display: block; }
.ball-ico circle { fill: var(--orange); }
.ball-ico path { fill: none; stroke: var(--graphite); stroke-width: 1.4; opacity: .8; }
.freq-balls .off .ball-ico circle { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-dasharray: 3 3; }
.freq-balls .off .ball-ico path { display: none; }
.freq-txt { font-size: 1.02rem; }
.freq-txt b { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; }

.pass-list { list-style: none; padding: 0; margin: 1.1rem 0 1.6rem; }
.pass-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem; }
.check { flex: none; width: 20px; height: 20px; margin-top: .15rem; }
.check path { fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.freq + .btn { margin-top: 1.6rem; }
.pass .btn { margin-top: auto; align-self: flex-start; }
.btn-outline { border-color: var(--graphite); color: var(--ink); }
.btn-outline:hover { background: var(--graphite); color: var(--chalk); }

.perks {
  display: grid; gap: 1.25rem; margin-top: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.perk {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--white); border: 2px solid var(--line); border-left: 6px solid var(--orange);
  padding: 1.1rem 1.4rem;
}
.perk p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.perk p b {
  display: block; color: var(--ink); font-family: var(--display); font-weight: 800;
  text-transform: uppercase; font-size: 1.2rem; margin-bottom: .15rem;
}
.perk-big {
  flex: none; min-width: 5.2rem; text-align: center;
  font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1;
  color: var(--orange-deep);
}
.perk-cal {
  display: flex; flex-direction: column; align-items: center;
  border: 2px solid var(--graphite); border-top-width: 9px; padding: .2rem .45rem .35rem;
  min-width: 4.4rem; color: var(--ink);
}
.perk-cal small {
  font-family: var(--body); font-weight: 600; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft);
}

/* Oś czasu sezonu */

.season {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; gap: 1rem; position: relative;
}
.ev {
  position: relative; display: flex; flex-direction: column;
  background: rgba(21, 25, 34, .72); border: 1px solid var(--line-dark);
  padding: 1.25rem 1.25rem 1.4rem;
  transition: border-color .2s ease, transform .2s ease;
}
.ev:hover { border-color: rgba(232, 100, 27, .6); transform: translateY(-2px); }
.ev-date { display: flex; flex-direction: column; margin-bottom: .9rem; line-height: 1; }
.ev-day {
  font-family: var(--display); font-weight: 900; font-size: 3.1rem;
  color: var(--orange); letter-spacing: -.01em; white-space: nowrap;
}
.ev-mon {
  margin-top: .3rem; font-weight: 600; font-size: .92rem;
  color: rgba(245, 242, 236, .7);
}
.ev-tag {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(245, 242, 236, .75); margin-bottom: .45rem;
}
.ev-tag .ico { width: 16px; height: 16px; stroke: var(--orange); }
.ev-title {
  font-size: 1.45rem; color: var(--chalk); line-height: 1.05; margin: 0;
}
.ev-desc { margin: .55rem 0 0; font-size: .95rem; color: rgba(245, 242, 236, .68); }
.band-dark .ev-desc { color: rgba(245, 242, 236, .68); }

.ev.is-next { border: 2px solid var(--orange); background: rgba(232, 100, 27, .1); }
.ev-next {
  align-self: flex-start; margin-bottom: .8rem;
  background: var(--orange); color: var(--white);
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: .85rem; letter-spacing: .04em; padding: .25rem .6rem;
}
.ev.is-past { opacity: .45; }
.ev.is-past .ev-day { color: rgba(245, 242, 236, .6); }

@media (max-width: 899px) {
  .season { padding-left: 1.5rem; gap: 1.4rem; }
  .season::before {
    content: ""; position: absolute; left: 5px; top: .5rem; bottom: .5rem;
    width: 3px; background: var(--line-dark);
  }
  .ev::before {
    content: ""; position: absolute; left: calc(-1.5rem - 1px); top: 1.6rem;
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--graphite); border: 3px solid var(--orange);
  }
  .ev.is-next::before { background: var(--orange); left: calc(-1.5rem - 2px); }
  .ev-date { flex-direction: row; align-items: baseline; gap: .6rem; }
  .ev-day { font-size: 2.4rem; }
}
@media (min-width: 900px) {
  .season { grid-template-columns: repeat(5, minmax(0, 1fr)); padding-top: 2.2rem; }
  .season::before {
    content: ""; position: absolute; left: 0; right: 0; top: 7px;
    height: 3px; background: linear-gradient(90deg, var(--orange), var(--line-dark) 85%);
  }
  .ev::before {
    content: ""; position: absolute; left: 1.25rem; top: calc(-2.2rem + 1px);
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--graphite); border: 3px solid var(--orange);
  }
  .ev::after {
    content: ""; position: absolute; left: calc(1.25rem + 7px); top: calc(-2.2rem + 18px);
    width: 2px; height: calc(2.2rem - 18px); background: var(--line-dark);
  }
  .ev.is-next::before { background: var(--orange); box-shadow: 0 0 0 6px rgba(232, 100, 27, .25); }
}

/* Portal rodzica */

.portal { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 900px) {
  .portal { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
.portal-intro .btn { margin-top: .6rem; }
.portal-url { margin: .8rem 0 0; font-size: .9rem; color: var(--ink-soft); }

.portal-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.feat {
  background: var(--white); border: 2px solid var(--line);
  padding: 1.3rem 1.3rem 1.2rem;
  transition: border-color .2s ease, transform .2s ease;
}
.feat:hover { border-color: var(--orange); transform: translateY(-2px); }
.feat-ico {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  background: var(--graphite); margin-bottom: .85rem;
}
.ico {
  width: 24px; height: 24px; fill: none; stroke: var(--chalk);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.feat-ico .ico { stroke: var(--orange); }
.feat h3 { font-size: 1.3rem; color: var(--ink); margin: 0 0 .3rem; }
.feat p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

/* Blok bezpieczeństwa */

.safety {
  display: grid; gap: 1rem 1.5rem; align-items: start;
  background: var(--white); border: 2px solid var(--line); border-left: 8px solid var(--orange);
  padding: 1.75rem; margin-top: 2.5rem;
}
@media (min-width: 640px) { .safety { grid-template-columns: auto minmax(0, 1fr); } }
.safety-ico {
  display: grid; place-items: center; width: 64px; height: 64px;
  background: rgba(232, 100, 27, .12); border-radius: 50%;
}
.safety-ico .ico { width: 34px; height: 34px; stroke: var(--orange-deep); stroke-width: 1.7; }
.safety h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.safety .btn { margin-top: .4rem; font-size: 1rem; padding: .7rem 1.3rem; }

/* Kontakt */

.contact {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-areas: "join" "phones" "place" "social";
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas: "join place" "phones place" "social place";
  }
}
.c-card {
  background: rgba(21, 25, 34, .72); border: 1px solid var(--line-dark);
  padding: 1.5rem;
}
.c-card h3 {
  font-size: 1.05rem; letter-spacing: .06em; color: var(--orange); margin: 0 0 .9rem;
}
.c-join { grid-area: join; background: var(--orange); border-color: var(--orange); position: relative; overflow: hidden; }
.c-join::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 190px; height: 190px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 0 38px transparent;
  background:
    linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)) center / 3px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)) center / 100% 3px no-repeat;
  pointer-events: none;
}
.c-join > * { position: relative; }
.c-join h3 { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: 0; color: var(--white); margin-bottom: .5rem; }
.band-dark .c-join p { color: rgba(255, 255, 255, .92); max-width: 40ch; }
.btn-light { background: var(--white); color: var(--graphite); display: inline-flex; align-items: center; gap: .5rem; }
.btn-light:hover { background: var(--graphite); color: var(--white); }
.ico-inline { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.4; }

.c-phones { grid-area: phones; display: grid; gap: .6rem; }
.c-phones h3 { margin-bottom: .3rem; }
.c-tel {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1;
  color: var(--chalk); text-decoration: none;
  padding: .55rem .6rem .55rem .55rem; border: 1px solid var(--line-dark);
  transition: border-color .15s ease, background-color .15s ease;
}
.c-tel:hover { border-color: var(--orange); background: rgba(232, 100, 27, .1); }
.c-tel-ico {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  background: var(--orange);
}
.c-tel-ico .ico { stroke: var(--white); width: 22px; height: 22px; }

.c-place { grid-area: place; padding: 0; display: flex; flex-direction: column; }
.c-map { display: block; width: 100%; height: auto; flex: 1 1 auto; min-height: 180px; }
@media (min-width: 900px) { .c-map { height: 100%; min-height: 240px; } }
.c-place-body { padding: 1.4rem 1.5rem 1.5rem; border-top: 1px solid var(--line-dark); }
.c-addr { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1rem; font-size: 1.1rem; }
.band-dark .c-addr { color: var(--chalk); }
.ico-pin { flex: none; stroke: var(--orange); margin-top: .15rem; }
.c-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  color: var(--orange); text-decoration: none; font-size: 1.1rem;
}
.c-link:hover { color: var(--chalk); }

.m-bg { fill: #262c3a; }
.m-park { fill: rgba(96, 140, 80, .28); }
.m-trees circle { fill: rgba(120, 170, 100, .35); }
.m-road-big { fill: none; stroke: rgba(245, 242, 236, .22); stroke-width: 14; stroke-linecap: round; }
.m-road { fill: none; stroke: rgba(245, 242, 236, .1); stroke-width: 7; stroke-linecap: round; }
.m-hall { fill: var(--graphite-deep); stroke: rgba(245, 242, 236, .35); stroke-width: 1.5; }
.m-hall-roof { stroke: rgba(245, 242, 236, .2); stroke-width: 1.5; }
.m-street { font-family: var(--body); font-weight: 600; font-size: 12px; fill: rgba(245, 242, 236, .55); }
.m-pin-body path { fill: var(--orange); }
.m-pin-body circle { fill: var(--graphite-deep); }
.m-pin-shadow { fill: rgba(0, 0, 0, .45); transform-box: fill-box; transform-origin: center; animation: pin-shadow 2.4s ease-in-out infinite; }
.m-pin-body { animation: pin-hop 2.4s ease-in-out infinite; }
@keyframes pin-hop {
  0%, 55%, 100% { transform: translateY(0); }
  25% { transform: translateY(-10px); }
}
@keyframes pin-shadow {
  0%, 55%, 100% { transform: scale(1); opacity: 1; }
  25% { transform: scale(.6); opacity: .5; }
}

.c-social { grid-area: social; }
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.socials a {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--chalk); text-decoration: none; font-weight: 600;
  padding: .6rem .95rem .6rem .75rem; border: 1px solid var(--line-dark);
  transition: border-color .15s ease, color .15s ease;
}
.socials a:hover { border-color: var(--orange); color: var(--orange); }
.socials .ico { width: 22px; height: 22px; stroke: currentColor; }

.gap-note {
  display: inline-block; background: rgba(232, 100, 27, .16);
  border: 1px dashed var(--orange); color: var(--chalk);
  padding: .15rem .5rem; font-size: .9rem; font-weight: 600;
}

/* Stopka */

.foot {
  background: var(--graphite-deep); color: rgba(245, 242, 236, .68);
  padding: 2.5rem 0; font-size: .95rem;
  border-top: 1px solid var(--line-dark);
}
.foot a { color: rgba(245, 242, 236, .9); }
.foot-in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.foot-credit {
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid var(--line-dark); font-size: .85rem;
  color: rgba(245, 242, 236, .42);
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
}
.foot-credit a { color: rgba(245, 242, 236, .55); }
.foot-credit a:hover { color: rgba(245, 242, 236, .85); }

/* ---------- Strona Standardów ---------- */

.doc-head {
  background: var(--graphite); color: var(--chalk);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.doc-head h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); max-width: 18ch; }
.doc-head p { color: rgba(245, 242, 236, .8); margin-top: 1.25rem; max-width: 62ch; }

.doc { padding: clamp(2.5rem, 6vw, 4rem) 0; background: var(--white); }

/* Kolumna dokumentu: jedna miara dla nagłówka i treści, wyśrodkowana */
.doc-wrap {
  width: min(100% - 2 * var(--gutter), 700px);
  margin-inline: auto;
  --measure: 100%;
}
.doc-head h1 { max-width: 100%; }
.doc-head p { max-width: 100%; }
.doc-body { max-width: 100%; }
.doc-body h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin: 2.75rem 0 .9rem; padding-top: 1.5rem;
  border-top: 2px solid var(--line);
}
.doc-body h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.doc-body h3 {
  font-size: 1.3rem; margin: 1.75rem 0 .5rem; color: var(--orange-deep);
}
.doc-body ul, .doc-body ol { padding-left: 1.3rem; margin: 0 0 1rem; max-width: var(--measure); }
.doc-body li { margin-bottom: .45rem; }

.callout {
  background: var(--graphite); color: var(--chalk);
  padding: 1.75rem; margin: 2rem 0;
}
.callout h3 { color: var(--orange); margin-top: 0; }
.callout ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.callout li {
  border-left: 4px solid var(--orange); padding: .55rem 0 .55rem .9rem;
  margin-bottom: .75rem; font-size: 1.1rem; font-weight: 500;
}

.helplines { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .75rem; }
.helplines li { border: 2px solid var(--line); padding: 1rem 1.15rem; }
.helplines a {
  font-family: var(--display); font-weight: 800; font-size: 1.75rem;
  color: var(--orange-deep); text-decoration: none; display: block; line-height: 1.1;
}
.helplines a:hover { color: var(--graphite); }
.helplines span { color: var(--ink-soft); font-size: .97rem; }

.backlink { margin-top: 2.5rem; font-weight: 600; }

@media (max-width: 760px) {
  /* na telefonie dwurzędowa nawigacja nie może zabierać ekranu na stałe */
  .topbar { position: static; }

  /* pionowy kadr wycinałby sam środek boiska — przesuwam na łuk i raster */
  .hero {
    background-position: 74% center;
    background-image:
      linear-gradient(180deg,
        rgba(31, 36, 48, .93) 0%,
        rgba(31, 36, 48, .78) 42%,
        rgba(31, 36, 48, .90) 100%),
      url("/assets/boisko.webp");
  }
}

@media (max-width: 640px) {
  .schedule thead { position: absolute; left: -9999px; }
  .schedule tbody th, .schedule td { display: block; padding: 0; border: 0; }
  .schedule tbody tr {
    display: block; padding: 1rem 0; border-bottom: 2px solid var(--line-dark);
  }
  .schedule tbody th { margin-bottom: .3rem; }
  .schedule .time { display: inline-block; margin-right: .6rem; }
  .schedule .grp { display: inline; }
}

/* ---------- Menu mobilne ---------- */

.nav-toggle {
  display: none;
  align-items: center; gap: .55rem;
  background: none; border: 2px solid var(--line-dark); color: var(--chalk);
  font-family: var(--display); font-weight: 800; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .45rem .75rem; cursor: pointer; min-height: 44px;
}
.nav-toggle:hover { border-color: var(--orange); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 859px) {
  .js-nav .topbar-in { flex-wrap: wrap; }
  .js-nav .nav-toggle:not([hidden]) { display: inline-flex; }
  .js-nav .topnav {
    display: none; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line-dark);
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .js-nav.nav-open .topnav { display: flex; }
  .js-nav .topnav a {
    padding: .85rem .25rem; font-size: 1.05rem;
    border-bottom: 1px solid var(--line-dark);
  }
  .js-nav .topnav a:last-child { border-bottom: 0; }
  .js-nav .topnav a:hover { border-bottom-color: var(--line-dark); color: var(--orange); }
}

/* ---------- Animacja rzutu (O klubie) ---------- */

.intro { display: grid; gap: 1rem 2.5rem; align-items: center; }
.shot { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto; overflow: visible; }
@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr) 360px; }
  .shot { max-width: none; margin: -1rem 0 -1.5rem; }
}
.shot-floor { stroke: var(--line); stroke-width: 2; }
.shot-pole, .shot-board { fill: var(--graphite); }
.shot-arm { fill: none; stroke: var(--graphite); stroke-width: 5; }
.shot-square { fill: var(--orange); }
.shot-rim { fill: none; stroke: var(--orange-deep); stroke-width: 4; stroke-linecap: round; }
.shot-net { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-linejoin: round; opacity: .75; }
.shot-trail {
  fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
}
.shot-shadow { fill: var(--graphite); opacity: 0; }
.shot-ball circle { fill: var(--orange); }
.shot-ball path { fill: none; stroke: var(--graphite); stroke-width: 1.6; opacity: .85; }
.shot-ball { opacity: 0; }
.shot-swish path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; }
.shot-swish { opacity: 0; }
.shot-score {
  font-family: var(--display); font-weight: 900; font-size: 34px;
  fill: var(--orange-deep); opacity: 0;
}

/* ---------- Tablica taktyczna (Trenerzy) ---------- */

.board { display: block; width: 100%; max-width: 380px; height: auto; margin: .5rem auto 0; }
@media (min-width: 900px) {
  .intro-board { grid-template-columns: minmax(0, 1fr) 400px; }
  .board { max-width: none; margin: 0; }
}
.board-frame { fill: #3a2a1c; }
.board-surface { fill: var(--graphite); }
.board-court path, .board-court rect, .board-court circle {
  fill: none; stroke: rgba(245, 242, 236, .38); stroke-width: 2;
}
.board-label {
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .08em;
  fill: rgba(245, 242, 236, .5);
}
.pass-line { fill: none; stroke: var(--chalk); stroke-width: 2.5; stroke-dasharray: 7 6; stroke-linecap: round; }
path.pass-line[opacity] { stroke-dasharray: none; stroke-linejoin: round; }
.cut-line { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.def { fill: none; stroke: var(--chalk); stroke-width: 3.2; stroke-linecap: round; }
.off { fill: var(--graphite); stroke: var(--orange); stroke-width: 3; }
.off-num { font-family: var(--display); font-weight: 800; font-size: 16px; fill: var(--chalk); text-anchor: middle; }
.board-ball circle { fill: var(--orange); stroke: var(--graphite-deep); stroke-width: 1.2; }
.board-ball path { fill: none; stroke: var(--graphite-deep); stroke-width: 1.1; }
.board-flash { fill: none; stroke: var(--orange); stroke-width: 3; }
.board-score { font-family: var(--display); font-weight: 900; font-size: 26px; fill: var(--orange); }

/* ---------- Obrazy w <picture> i nadtytuł H1 ---------- */

.brand picture, .hero-mark picture { display: contents; }
.hero h1 .hero-kicker {
  display: block; margin-bottom: 1rem;
  font-family: var(--body); font-weight: 700; font-size: clamp(.9rem, 1.6vw, 1.05rem);
  letter-spacing: .14em; line-height: 1.3; color: var(--orange);
}

/* ---------- Strona 404 ---------- */

.err {
  background: var(--graphite); color: var(--chalk);
  padding: clamp(3rem, 9vw, 6rem) 0; text-align: center;
}
.err-in { display: flex; flex-direction: column; align-items: center; }
.err h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); max-width: 16ch; }
.err .lead { color: rgba(245, 242, 236, .8); margin: 1.2rem auto 1.8rem; }
.err .cta-row { justify-content: center; }
.err-code {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--orange); margin: 0 0 .6rem;
}
.err-links { margin-top: 1.5rem; color: rgba(245, 242, 236, .6); }
.err-links a { color: var(--chalk); }
.err-ball { width: 120px; height: 120px; margin-bottom: 1rem; overflow: visible; }
.err-ball circle { fill: var(--orange); }
.err-ball path { fill: none; stroke: var(--graphite-deep); stroke-width: 2.5; }
.err-shadow { fill: rgba(0, 0, 0, .35); transform-box: fill-box; transform-origin: center; animation: err-sh 1.1s ease-in infinite alternate; }
.err-bounce { animation: err-b 1.1s cubic-bezier(.5, 0, 1, 1) infinite alternate; }
@keyframes err-b { from { transform: translateY(-26px); } to { transform: translateY(24px); } }
@keyframes err-sh { from { transform: scale(.55); opacity: .5; } to { transform: scale(1); opacity: 1; } }

/* ---------- Artykuł: sylwetka (rafal-sebrala.html) ---------- */

.art-head { position: relative; overflow: hidden; }
.art-head .doc-wrap { position: relative; z-index: 1; }
/* numer z koszulki jako tło nagłówka */
.art-num {
  position: absolute; right: -.04em; bottom: -.2em;
  font-family: var(--display); font-weight: 900; line-height: 1;
  font-size: clamp(11rem, 34vw, 24rem);
  color: transparent; -webkit-text-stroke: 2px rgba(232, 100, 27, .32);
  pointer-events: none; user-select: none;
}
.art-kicker {
  font-weight: 700; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange) !important; margin: 0 0 1rem !important;
}
.art-head h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
.art-lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
.art-meta { font-size: .9rem; color: rgba(245, 242, 236, .55) !important; }

.art-stats { background: var(--orange); color: var(--white); }
.art-stats-in {
  margin-block: 0; padding: 1.4rem 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
.art-stats-in div { display: flex; flex-direction: column-reverse; }
.art-stats dd {
  margin: 0; font-family: var(--display); font-weight: 900; line-height: 1;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
}
.art-stats dt { font-weight: 600; font-size: .92rem; line-height: 1.25; margin-top: .3rem; }
@media (max-width: 560px) { .art-stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.art-body h3 { font-size: 1.45rem; }

.art-facts {
  border: 2px solid var(--graphite); padding: 1.4rem 1.5rem; margin: 2rem 0;
}
.art-facts h3 { margin: 0 0 .9rem; color: var(--orange-deep); }
.art-facts dl {
  display: grid; grid-template-columns: max-content minmax(0, 1fr);
  gap: .45rem 1.25rem; margin: 0;
}
.art-facts dt { font-weight: 700; }
.art-facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 420px) {
  .art-facts dl { grid-template-columns: 1fr; gap: 0; }
  .art-facts dd { margin-bottom: .55rem; }
}

.art-quote {
  margin: 2.25rem 0; padding: .2rem 0 .2rem 1.25rem;
  border-left: 6px solid var(--orange);
}
.art-quote p {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.45rem, 3.6vw, 1.9rem); line-height: 1.08; color: var(--graphite);
  margin: 0;
}
.art-quote p::before { content: "„"; }
.art-quote p::after { content: "”"; }
.art-quote-big p { font-size: clamp(1.6rem, 4.4vw, 2.3rem); color: var(--orange-deep); }

.art-plaque {
  margin: 1.25rem 0 2rem; padding: 1.6rem 1.75rem;
  background: var(--graphite); color: var(--chalk);
  border: 3px double rgba(232, 100, 27, .7);
}
.art-plaque p { color: var(--chalk); font-size: 1.1rem; font-weight: 500; }
.art-plaque footer { margin-top: 1rem; font-size: .9rem; color: rgba(245, 242, 236, .6); }

.art-route {
  list-style: none; padding: 0 !important; margin: 1rem 0 2rem !important;
  display: flex; flex-wrap: wrap; gap: .5rem;
  counter-reset: stop;
}
.art-route li {
  counter-increment: stop; margin: 0 !important;
  border: 2px solid var(--line); padding: .45rem .75rem .45rem .6rem;
  display: flex; flex-direction: column; line-height: 1.2;
}
.art-route b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }
.art-route b::before { content: counter(stop) ". "; color: var(--orange); }
.art-route span { font-size: .85rem; color: var(--ink-soft); }
.art-route .art-route-now { background: var(--graphite); border-color: var(--graphite); color: var(--chalk); }
.art-route .art-route-now span { color: rgba(245, 242, 236, .75); }

.art-how li b { color: var(--orange); }

.art-photo { margin: 2rem 0; }
.art-photo img { width: 100%; height: auto; background: var(--line); }
.art-photo figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: .6rem; }
.art-photo .art-credit { display: block; font-size: .85rem; }
.art-photo-tall img { max-width: 420px; margin-inline: auto; }
.art-photo-tall figcaption { max-width: 420px; margin-inline: auto; }

.art-cta {
  background: var(--paper); border-left: 6px solid var(--orange);
  padding: 1.5rem; margin: 2.5rem 0;
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
}
.art-cta p { flex: 1 1 100%; margin: 0 0 .25rem; }
.art-cta .btn { font-size: 1.05rem; padding: .7rem 1.3rem; }

.art-table-wrap { overflow-x: auto; margin: 0 0 .75rem; }
.art-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.art-table caption { text-align: left; color: var(--ink-soft); padding-bottom: .6rem; font-size: .92rem; }
.art-table th, .art-table td { text-align: left; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--line); }
.art-table thead th { border-bottom: 2px solid var(--orange); font-weight: 700; font-size: .85rem; color: var(--ink-soft); }
.art-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.art-table td:first-child { white-space: nowrap; }
.art-table .art-best td { font-weight: 700; background: rgba(232, 100, 27, .1); }
.art-note { font-size: .9rem; color: var(--ink-soft); }
.art-sources { font-size: .92rem; color: var(--ink-soft); }
.art-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.art-gallery .art-photo { margin: 0; }
.art-gallery img { aspect-ratio: 3 / 2; object-fit: cover; }
.art-gallery-3 img { aspect-ratio: 1 / 1; }
@media (max-width: 520px) { .art-gallery { grid-template-columns: 1fr; } .art-gallery img { aspect-ratio: auto; } }
@media (min-width: 640px) { .art-gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
