/* =============================================================================
   RUN & VIBES — system wizualny
   Czerń / grafit / biel + żółty marki (#F4BC14). Nocne Kielce, energia muzyki.
   ========================================================================== */

:root {
  color-scheme: dark;

  --yellow: #f4bc14;
  --yellow-bright: #ffce3a;
  --yellow-deep: #d29e00;

  --ink: #0a0a0b;
  --ink-2: #101012;
  --surface: #141417;
  --surface-2: #1b1b1f;
  --surface-3: #232329;

  --white: #ffffff;
  --fog: #c2c2c9;
  --fog-2: #8b8b95;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);

  --font-display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1220px;
  --wrap-narrow: 780px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 10px;

  --section-y: clamp(64px, 10vw, 132px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
picture,
video,
svg { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; }

input,
textarea,
select { font: inherit; color: inherit; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

p { margin: 0 0 1em; }

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

::selection {
  background: var(--yellow);
  color: var(--ink);
}

[hidden] { display: none !important; }

/* --------------------------------------------------------------- helpers */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); }

.section--tight { padding-block: clamp(48px, 7vw, 88px); }

.section--alt { background: var(--ink-2); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 1.1rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yellow);
}
.kicker--plain::before { display: none; }

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.h1 { font-size: clamp(2.5rem, 6.6vw, 5.2rem); }
.h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); }
.h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }

.lead {
  font-size: clamp(1.04rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: var(--fog);
  max-width: 46ch;
}

.muted { color: var(--fog); }
.muted-2 { color: var(--fog-2); }
.yellow { color: var(--yellow); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0.85em 1.7em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); background: var(--yellow-bright); border-color: var(--yellow-bright); }
.btn:active { transform: translateY(0); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: var(--line-strong);
}
.btn--outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: transparent;
  padding-inline: 0.4em;
}
.btn--ghost:hover { background: transparent; border-color: transparent; color: var(--yellow); transform: translateX(3px); }

.btn--sm { min-height: 42px; padding: 0.6em 1.15em; font-size: 0.78rem; }
.btn--wide { width: 100%; }
.btn--lg { min-height: 56px; font-size: 0.95rem; }

.btn[disabled] { opacity: 0.6; pointer-events: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--yellow);
}
.link-arrow svg { transition: transform 0.18s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
/* backdrop-filter na pseudo-elemencie, żeby NIE tworzyć bloku zawierającego
   dla position:fixed w mobilnym menu (.nav) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}
.site-header__inner { position: relative; }
.site-header[data-scrolled="true"] {
  background: color-mix(in srgb, var(--ink) 94%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__mark { width: 52px; height: 52px; display: block; }
.site-footer__brand .brand__mark { width: 64px; height: 64px; }
@media (max-width: 420px) { .brand__mark { width: 46px; height: 46px; } }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}
.nav__links a {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--fog);
  padding-block: 6px;
  position: relative;
  transition: color 0.16s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
}

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
  place-items: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: var(--ink);
    transform: translateX(100%);
    transition: transform 0.32s var(--ease);
    padding: var(--gutter);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav__links { flex-direction: column; gap: 8px; text-align: center; }
  .nav__links a { font-size: 1.5rem; font-family: var(--font-display); text-transform: uppercase; color: var(--white); }
  body[data-nav-open="true"] { overflow: hidden; }
  body[data-nav-open="true"] .nav__toggle span { background: transparent; }
  body[data-nav-open="true"] .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
  body[data-nav-open="true"] .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__toggle { position: relative; z-index: 120; }
}

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(10, 10, 11, 0.35) 46%, rgba(10, 10, 11, 0.55) 100%),
    linear-gradient(to right, rgba(10, 10, 11, 0.7), rgba(10, 10, 11, 0.15) 60%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 12vw, 120px);
  max-width: 40ch;
}
.hero__title { margin: 0.2em 0 0.5em; }
.hero__title .accent { color: var(--yellow); display: block; }
.hero .btn-row { margin-top: 2rem; }
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog-2);
  writing-mode: vertical-rl;
}
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* --------------------------------------------------------- next-run panel */
.nextrun {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.nextrun__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.nextrun__date {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  margin-bottom: 0.4em;
}
.nextrun__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 1.2rem 0 1.5rem;
}
.nextrun__meta div { display: flex; flex-direction: column; }
.nextrun__meta dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog-2); }
.nextrun__meta dd { margin: 2px 0 0; font-weight: 600; font-size: 1.05rem; }
.nextrun__note {
  font-size: 0.92rem;
  color: var(--fog);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ----------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 30px);
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 38px);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.step p { margin: 0; color: var(--fog); font-size: 0.96rem; }

/* -------------------------------------------------------------- event cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.ecard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.ecard:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.ecard__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
  overflow: hidden;
}
/* <picture> domyślnie jest inline — bez tego obraz o innych proporcjach niż 3:2
   nie wypełniał kafelka (szary pas pod grafiką). */
.ecard__media picture { display: block; height: 100%; }
.ecard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.ecard:hover .ecard__media img { transform: scale(1.04); }
.ecard__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
}
.ecard__badge--muted { background: var(--surface-3); color: var(--fog); }
.ecard__body { padding: clamp(18px, 2.6vw, 26px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ecard__kind { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); font-weight: 700; }
.ecard__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; line-height: 1.05; }
.ecard__when { font-size: 0.92rem; color: var(--fog); }
.ecard__foot { margin-top: auto; padding-top: 14px; }

/* --------------------------------------------------------- run the beat blk */
.rtb {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}
.rtb__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.rtb__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.rtb__media img { width: 100%; height: 100%; object-fit: cover; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
}
.stat { background: var(--ink-2); padding: clamp(16px, 2.4vw, 24px); }
.stat__value { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--yellow); line-height: 1; }
.stat__label { font-size: 0.9rem; margin-top: 6px; font-weight: 600; }
.stat__sub { font-size: 0.8rem; color: var(--fog-2); margin-top: 2px; }

/* ------------------------------------------------------------- vibes list */
.vibes {
  position: relative;
  overflow: hidden;
}
.vibes__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.vibes__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.vibes__media img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--white);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--fog-2); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--yellow); }
.field textarea { min-height: 120px; resize: vertical; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea { border-color: #ff6b6b; }
.field__error { font-size: 0.8rem; color: #ff8a8a; min-height: 1em; }
/* Dyskretny komunikat pod polem (np. kod rabatowy) — neutralny domyślnie,
   kolor zależny od data-tone; puste = niewidoczne, bez skakania layoutu
   dzięki temu samemu min-height co .field__error. */
.field__hint { font-size: 0.8rem; min-height: 1em; color: var(--fog-2); }
.field__hint[data-tone="success"] { color: var(--yellow); }
.field__hint[data-tone="error"] { color: #ff8a8a; }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.88rem;
  color: var(--fog);
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--ink);
  display: grid;
  place-content: center;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.check input::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform 0.15s var(--ease);
  box-shadow: inset 1em 1em var(--ink);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.check input:checked { background: var(--yellow); border-color: var(--yellow); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.check a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  font-size: 0.92rem;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.form__status[data-tone="success"] { border-color: var(--yellow); color: var(--white); }
.form__status[data-tone="error"] { border-color: #ff6b6b; color: #ffd7d7; }
.form__status[data-tone="info"] { border-color: var(--line-strong); color: var(--fog); }
/* Formularz po sukcesie jest zastępowany samym komunikatem — trochę więcej
   powietrza, żeby nie wyglądał jak ucięty pasek statusu w pustym miejscu. */
.form__status--replace { padding: 20px 18px; font-size: 1rem; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.4vw, 40px);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- partners */
/* siatka logo — jednakowe kafelki, wspólne pole prezentacji, object-fit: contain */
.plogos,
.plogos--lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.plogo,
.plogo--main {
  aspect-ratio: 3 / 2;         /* stały kontener — identyczny dla wszystkich */
  background: #f4f4f2;         /* wspólne, neutralne pole; bez gradientu/obrysu */
  border-radius: var(--radius);
  padding: clamp(14px, 2.4vw, 22px);   /* równy padding ze wszystkich stron */
  opacity: 0.92;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.plogo:hover,
.plogo--main:hover { opacity: 1; transform: translateY(-2px); }
/* Kafelek na ciemnym tle — dla białych/bardzo jasnych logo (np. Galeria Echo),
   które na standardowym jasnym polu byłyby niewidoczne. */
.plogo--dark { background: var(--ink-2); }
.plogo picture,
.plogo--main picture { display: block; width: 100%; height: 100%; }
.plogo img,
.plogo--main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;        /* wpisuje logo w pole, proporcje zachowane, brak deformacji */
}

/* ------------------------------------------- partnerzy KONKRETNEGO wydarzenia
   Osobny, elastyczny system (NIE .plogo/.plogos z ogólnej siatki partnerów na
   /partnerzy/ — tamtej nie ruszamy). Każdy kafelek ma własne, dobrane pod jego
   kolorystykę tło (jasne/ciemne), własny naturalny kształt — bez wciskania
   szerokich i kwadratowych logo w identyczne pudełka — i pełną, niezmniejszoną
   nieprzezroczystość (bez przygaszenia jak w .plogo). */
.ptiles { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ptiles--center { justify-content: center; }
.ptile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f2;
  border-radius: var(--radius);
  padding: 16px 24px;
  transition: transform 0.18s var(--ease);
}
.ptile:hover { transform: translateY(-2px); }
.ptile img { display: block; width: auto; height: auto; object-fit: contain; }
/* var(--surface-2), NIE var(--ink-2): to drugie jest praktycznie identyczne
   z tłem sekcji .section--alt (ten sam odcień), więc kafelek byłby niewidoczny
   jako osobna karta — tu ma być wyraźnie jaśniejszy niż tło strony. */
.ptile--dark { background: var(--surface-2); }
/* Partner główny / partnerzy / patronaty medialne mają TĘ SAMĄ szerokość
   kafla (niespójne szerokości wyglądały jako przypadkowe — np. szeroki Radio
   eM obok wąskiego Echo Dnia). Szerokość jest stała, wysokość swobodna —
   każde logo zachowuje własne proporcje (object-fit: contain, bez
   rozciągania); różne proporcje logo dają różną wysokość w tej samej
   szerokości karty, co jest zamierzone. */
.ptile--main, .ptile--tier1, .ptile--patron {
  width: 300px;
  padding: 26px 30px;
}
.ptile--main img, .ptile--tier1 img, .ptile--patron img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px; /* zabezpieczenie dla bardzo "kwadratowych" logo (np. Echo Dnia) */
  object-fit: contain;
}
.ptile--other { padding: 12px 18px; }
.ptile--other img { max-height: 46px; max-width: 150px; }
@media (max-width: 560px) {
  .ptile--main, .ptile--tier1, .ptile--patron { width: 100%; max-width: 300px; }
}

/* Wyróżnione „pigułki" — najważniejsze fakty dnia biegu (godzina + bezpłatnie). */
.info-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1rem; }
.info-badge {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 100px;
}

/* Instrukcja dojścia (wejście / poziom / kierunek) — osobny, wyraźny blok. */
.entrance-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.4vw, 24px);
  margin: 0 0 1.4rem;
}
.entrance-callout p { margin: 0 0 12px; color: var(--fog); }
.entrance-callout a.btn { margin-top: 4px; }

/* Jedna, równa siatka partnerów na /partnerzy/ (bez Radia Kielce — patrona
   medialnego Tiramisu Run) — STAŁA liczba kolumn per breakpoint, nie
   auto-fill/minmax jak .plogos. Auto-fill liczy kolumny z bieżącej
   szerokości kontenera, więc dwie sąsiadujące siatki (główni + "zaufali
   nam") mogły wyliczyć różną liczbę kolumn i wyglądać jak przypadkowe
   rzędy 4/6/5 — stałe repeat(N,1fr) eliminuje to całkowicie. */
.plogos--partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 940px) {
  .plogos--partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .plogos--partners-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* partnerzy bez oficjalnego pliku logo — czytelna lista nazw, bez udawania logo */
.partners-textlist {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--fog-2);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .plogos, .plogos--lg { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
}

/* --------------------------------------------------------------- gallery */
.gallery {
  columns: 3 260px;
  column-gap: 14px;
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  position: relative;
}
.gallery__item img { width: 100%; height: auto; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.16);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item:hover::after { opacity: 1; }

/* wariant: kompaktowy, poziomo przewijany pasek-teaser (np. „a tak było
   ostatnio") — ten sam .gallery__item i lightbox, inny układ, nie dotyka
   bazowej siatki masonry powyżej. */
.gallery--strip {
  columns: unset;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  margin-top: 1.4rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.gallery--strip .gallery__item {
  flex: 0 0 auto;
  width: clamp(148px, 32vw, 220px);
  height: 150px;
  margin-bottom: 0;
  scroll-snap-align: start;
}
.gallery--strip .gallery__item img { width: 100%; height: 100%; object-fit: cover; }
/* ustawione ręcznie per zdjęcie, żeby w wąskiej, poziomej karcie nadal było
   widać ludzi/energię, a nie przypadkowe tło (drzewa, niebo) — dotyczy
   WYŁĄCZNIE tego kompaktowego paska, nie rusza pełnej galerii RTB #002 */
.gallery--strip .gallery__item[data-lb="rtb2/flaga-bieg"] img { object-position: center 68%; }
.gallery--strip .gallery__item[data-lb="rtb2/dj-bieg"] img { object-position: center 52%; }
.gallery--strip .gallery__item[data-lb="rtb2/dj-przyczepka-pion"] img { object-position: center 24%; }
.gallery--strip .gallery__item[data-lb="rtb2/rynek-grupa"] img { object-position: center 64%; }
.gallery--strip .gallery__item[data-lb="rtb2/rynek-bieg"] img { object-position: center 62%; }
.gallery--strip .gallery__item[data-lb="rtb2/wioska"] img { object-position: center 56%; }
.gallery--strip::-webkit-scrollbar { height: 6px; }
.gallery--strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.gallery--strip::-webkit-scrollbar-track { background: transparent; }

/* --------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 6, 7, 0.985);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.lightbox[data-open="true"] { opacity: 1; pointer-events: auto; }
.lightbox__stage { display: grid; place-items: center; overflow: hidden; min-height: 0; }
/* <picture> jako bezpośredni potomek grid, żeby img (jedyny "prawdziwy" element
   zastępowany) poprawnie się wymiarował w gridzie. */
.lightbox__stage picture { display: contents; }
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  /* domyślne min-width/min-height:auto elementu grid == jego rozmiar wewnętrzny,
     co potrafi przebić max-height i lekko wypchnąć obraz poza stage (obcięty
     przez overflow:hidden — realne, niechciane przycinanie). Zero wyłącza tę
     „automatyczną minimalną szerokość/wysokość" i pozwala max-width/height
     naprawdę zadziałać. */
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; color: var(--fog); font-size: 0.85rem; }
.lightbox__btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.lightbox__btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.lightbox__close { position: absolute; top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }
.lightbox__nav { display: flex; gap: 10px; }

/* ----------------------------------------------------------------- social */
.social-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.social-cta a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.social-cta a:hover { border-color: var(--yellow); transform: translateY(-3px); }
.social-cta svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--yellow); }
.social-cta span { display: block; font-size: 0.78rem; color: var(--fog-2); letter-spacing: 0.08em; text-transform: uppercase; }

/* ----------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: clamp(48px, 7vw, 84px) 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: clamp(28px, 4vw, 56px);
}
.site-footer h4 {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog-2);
  margin-bottom: 1rem;
}
.site-footer a { color: var(--fog); display: inline-block; padding-block: 5px; transition: color 0.16s var(--ease); }
.site-footer a:hover { color: var(--white); }
.site-footer__brand .brand { margin-bottom: 1rem; }
.site-footer__brand p { color: var(--fog-2); font-size: 0.9rem; max-width: 34ch; }
.footer-mini-form { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.footer-mini-form input {
  flex: 1 1 160px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 12px;
}
.footer-mini-form input:focus { outline: none; border-color: var(--yellow); }
/* Formularz ma też klasę .form (flex-direction: column) — wtedy flex-basis 160px
   ustawiał WYSOKOŚĆ pola e-mail (~160 px na telefonie). Pole ma naturalną wysokość. */
.footer-mini-form.form input[type="email"] { flex: 0 0 auto; }
.site-footer__bottom {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  color: var(--fog-2);
  font-size: 0.82rem;
}
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* --------------------------------------------------------- cookie banner */
.cookie {
  position: fixed;
  left: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 250;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(160%);
  transition: transform 0.35s var(--ease);
  max-height: calc(100vh - 2 * clamp(12px, 3vw, 28px));
  overflow-y: auto;
}
.cookie[data-show="true"] { transform: translateY(0); }
.cookie__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}
.cookie__text { font-size: 0.88rem; color: var(--fog); margin: 0 0 16px; line-height: 1.55; }
.cookie__text a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.cookie__row { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__row + .cookie__row { margin-top: 10px; }
.cookie__row .btn--ghost:hover { transform: none; }

.cookie__settings {
  margin: 4px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cookie__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--ink-2);
}
.cookie__opt + .cookie__opt { border-top: 1px solid var(--line); }
.cookie__opt label { cursor: pointer; }
.cookie__opt-name { display: block; font-weight: 600; font-size: 0.9rem; }
.cookie__opt-desc { display: block; font-size: 0.78rem; color: var(--fog-2); margin-top: 2px; }

/* przełącznik */
.cookie__switch,
.cookie__switch-input {
  --w: 42px;
  --h: 24px;
  flex-shrink: 0;
  width: var(--w);
  height: var(--h);
  border-radius: 100px;
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.cookie__switch::after,
.cookie__switch-input::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fog);
  transform: translateY(-50%);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease);
}
.cookie__switch-input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  cursor: pointer;
}
.cookie__switch-input:checked {
  background: var(--yellow);
  border-color: var(--yellow);
}
.cookie__switch-input:checked::after {
  transform: translateY(-50%) translateX(18px);
  background: var(--ink);
}
.cookie__switch-input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.cookie__switch--locked {
  background: color-mix(in srgb, var(--yellow) 45%, var(--ink));
  border-color: color-mix(in srgb, var(--yellow) 45%, var(--ink));
  opacity: 0.75;
}
.cookie__switch--locked::after { transform: translateY(-50%) translateX(18px); background: var(--ink); }

/* --------------------------------------------------------- event page bits */
.event-hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.event-hero__media { position: absolute; inset: 0; z-index: 0; }
.event-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.event-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 8%, rgba(10, 10, 11, 0.34) 52%, rgba(10, 10, 11, 0.6));
}
/* padding-top uwzględnia sticky header, żeby cały tytuł był widoczny pod nim */
.event-hero__inner {
  position: relative;
  z-index: 1;
  /* .wrap dokłada poziomy gutter — kompensujemy go, by pole treści miało ~36rem
     i „RUN THE BEAT" mieściło się w jednej linii */
  max-width: calc(36rem + 2 * var(--gutter));
  padding-top: calc(var(--header-h) + clamp(20px, 5vh, 52px));
  padding-bottom: clamp(36px, 8vw, 80px);
}
/* rozmiar dobrany tak, aby „RUN THE BEAT" mieściło się w jednej linii,
   a numer (#003) schodził do drugiej — bez ucinania i chowania pod headerem */
.event-hero__title {
  font-size: clamp(2.2rem, 6.4vw, 4rem);
  line-height: 1.02;
  margin: 0.15em 0 0.32em;
}
.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 1.2rem;
  font-weight: 600;
}
.event-meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.event-meta-row svg { width: 16px; height: 16px; color: var(--yellow); }

.event-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.event-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Flex zamiast grid auto-fit: przy liczbie pozycji niepodzielnej przez liczbę
   kolumn grid zostawiał puste komórki w ostatnim wierszu (widać było szare tło
   linii). Tu każdy kafelek bierze szerokość z treści (jedna linia, gdy się
   mieści), a wiersz zawsze wypełnia się do końca — bez dziur. */
.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.info-grid > div { flex: 1 1 auto; min-width: 150px; background: var(--ink-2); padding: 18px 20px; }
.info-grid dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog-2); }
.info-grid dd { margin: 6px 0 0; font-weight: 600; text-wrap: pretty; }
/* Wartość z linkiem (mapa, Instagram) — wyraźnie klikalna, nie jak zwykły tekst. */
.info-grid dd a { color: var(--yellow); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.info-grid dd a:hover, .info-grid dd a:focus-visible { text-decoration-thickness: 2px; }

.faq { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.faq details { background: var(--ink-2); }
.faq summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { padding: 0 20px 18px; color: var(--fog); margin: 0; }

.prose { max-width: 68ch; }
.prose h2 { margin: 2em 0 0.6em; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2rem); }
.prose h3 { margin: 1.6em 0 0.5em; font-weight: 700; }
.prose p, .prose li { color: var(--fog); }
.prose ul { list-style: disc; padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.4em; margin-bottom: 1em; }
.prose a { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--white); }

/* ------------------------------------------------------- start / mapa */
.locsec__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}
.locsec__pin {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.02rem;
  margin: 0 0 1.2rem;
}
.locsec__pin svg { width: 22px; height: 22px; color: var(--yellow); flex-shrink: 0; margin-top: 2px; }
.locsec__pin .muted { font-weight: 400; }
.locsec__map {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.locsec__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }
.locsec__mapbtn {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface-2);
  color: var(--fog);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border: 0;
}
.locsec__mapbtn svg { width: 20px; height: 20px; color: var(--yellow); }
.locsec__mapbtn:hover { color: var(--white); }
/* brak osadzonej mapy (brak współrzędnych) -> zwarta, jednokolumnowa karta */
.locsec__grid:not(:has(.locsec__map)) { grid-template-columns: 1fr; max-width: 540px; }

/* -------------------------------------------------- „TRASA NA STRAVA" */
/* Wrapper jest zawsze width:100% (nigdy nie narzucamy własnej stałej
   szerokości) — sam widget Stravy ma wbudowane max-width:100%, więc mieści
   się na dowolnym ekranie; my tylko ograniczamy górny pułap, żeby na dużych
   ekranach nie robił się nienaturalnie szeroki pusty pas obok mapy. */
.strava-route {
  width: 100%;
  max-width: 640px;
  margin-top: 1.6rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.strava-route iframe { max-width: 100% !important; display: block; }
/* Skeleton pokazywany, zanim leniwie doładowany widget Stravy się zamontuje —
   zbliżony kształt do realnego osadzenia (554x544), żeby uniknąć skoku layoutu. */
.strava-route__ph {
  width: 100%;
  aspect-ratio: 554 / 544;
  max-height: 544px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* -------------------------------------------- „CO CZEKA NA MIEJSCU" */
.onsite-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.onsite-list li {
  background: var(--ink-2);
  padding: 16px 20px;
  color: var(--fog);
  font-weight: 600;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.onsite-list li::before { content: "—"; color: var(--yellow); flex-shrink: 0; }

/* -------------------------------------------- „WSPÓŁTWORZĄ WYDARZENIE" */
.contribs {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  /* auto-fill + górny limit: kafelek ma stały rozmiar niezależnie od liczby
     współtwórców (przy auto-fit/1fr jeden partner rozciągał się na całą szerokość). */
  grid-template-columns: repeat(auto-fill, minmax(170px, 240px));
  gap: clamp(14px, 3vw, 28px);
}
.contrib { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contrib__logo {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #f4f4f2;
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.6vw, 26px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contrib__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.contrib__logo--text {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: #14141a;
  font-size: clamp(0.82rem, 1.7vw, 1rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
}
.contrib__name { display: block; font-weight: 700; margin-top: 0.8rem; color: var(--white); }
.contrib__role { display: block; font-size: 0.85rem; color: var(--fog-2); margin-top: 0.15rem; }
@media (max-width: 560px) {
  .contribs { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; }
}

/* -------------------------------------------- blok wyróżniony na home */
.feature-event {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-event--nomedia { grid-template-columns: 1fr; }
.feature-event__media { position: relative; min-height: 260px; }
.feature-event__media picture { display: block; height: 100%; }
.feature-event__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-event__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 55%, rgba(19, 19, 23, 0.85));
}
.feature-event__body { padding: clamp(24px, 4.2vw, 52px); align-self: center; }
.feature-event__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 0.98;
  margin: 0.35rem 0 0;
  color: var(--white);
}
.feature-event__tag { color: var(--white); font-size: clamp(1rem, 2vw, 1.22rem); margin: 0.7rem 0 0; }
.feature-event__date {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow);
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  margin: 0.9rem 0 0.6rem;
}
.feature-event .btn { align-self: flex-start; }

/* -------------------------------------------------------- licznik zapisów */
/* dyskretny: mały label + liczba, bez paska postępu i bez alarmowych kolorów */
.signup-counter { display: flex; align-items: baseline; gap: 8px; margin: 0 0 1.3rem; }
.signup-counter__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fog-2);
}
.signup-counter__value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
@media (max-width: 820px) {
  .feature-event { grid-template-columns: 1fr; }
  .feature-event__media { min-height: 0; aspect-ratio: 16 / 10; }
  .feature-event__media img { position: static; object-position: center top; }
  .feature-event__media::after { background: linear-gradient(to top, rgba(19, 19, 23, 0.9) 4%, transparent 60%); }
}

/* ---------------------------------------------------- „relacja wkrótce" */
.recap-soon { text-align: center; padding: clamp(28px, 6vw, 56px) 0; }
.recap-soon__text {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.05;
  margin: 0.4rem 0 0.6rem;
}

/* --------------------------------------------------------- relacja video */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  justify-content: start;
  gap: clamp(16px, 3vw, 28px);
}
.video-card { margin: 0; max-width: 340px; }
.video-card__player {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  object-fit: contain; /* pionowy kadr: nie rozciąga, nie przycina */
}
.video-card__cap {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--fog);
  line-height: 1.5;
}
@media (max-width: 520px) {
  .videos { grid-template-columns: 1fr; }
  .video-card, .video-card__player { max-width: 100%; }
}

/* -------------------------------------------------------- blok organizatora */
.event-org {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.86rem;
  color: var(--fog-2);
}
.event-org strong { color: var(--fog); }

/* ------------------------------------------------- hero wydarzenia bez zdjęcia */
.event-hero--plain {
  min-height: auto;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(244, 188, 20, 0.08), transparent 60%),
    var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.event-hero--plain .event-hero__inner { padding-block: clamp(56px, 12vw, 120px); }

/* karta wydarzenia bez zdjęcia */
.ecard__media--plain { display: grid; place-items: center; background: var(--surface-2); }
.ecard__nomedia img { width: 84px; height: 84px; opacity: 0.9; }
.ecard__pin {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fog);
}
.ecard__pin svg { width: 15px; height: 15px; color: var(--yellow); flex-shrink: 0; }

/* ------------------------------------------------------------- zespół */
.team__about {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.6;
  color: var(--white);
  max-width: 54ch;
  margin: 1rem 0 1.6rem;
}
.team__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.team__person { background: var(--ink-2); padding: 16px 18px; }
.team__name { display: block; font-weight: 600; line-height: 1.35; }
.team__role { display: block; margin-top: 3px; font-size: 0.85rem; color: var(--fog-2); line-height: 1.45; }
.team__sep { color: var(--fog-2); }

@media (max-width: 780px) {
  .locsec__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ misc */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--fog);
}

/* ------------------------------------------------------------ patronat medialny */
/* Osobna, czytelna sekcja na stronie WYDARZENIA (ev.mediaPatrons) — logo
   ma ten sam wygląd kafelka co siatka partnerów (.plogo, reużyte), ale
   sekcja stoi sama, więc dokładamy tylko szerokość i układ w wierszu. */
.media-patron,
.media-patron__link {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit;
}
.media-patron__logo { width: 160px; flex: 0 0 auto; }
.media-patron__body { display: flex; flex-direction: column; gap: 2px; }
.media-patron__name { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; }

/* --------------------------------------------------------- kolekcja klubowa */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-card__media {
  background: #f4f1ea; /* tło zdjęcia produktowego bluzy — jasne, jak w oryginalnym pliku */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.4vw, 22px);
  /* Ten sam stosunek co wariant --photo, żeby obie karty (koszulka/bluza)
     miały jednakowo wysoki obszar zdjęcia i wyrównane nagłówki/ceny/opisy
     w rzędzie — object-fit:contain (nie cover), więc bluza nadal mieści się
     w całości, bez przycinania. min-height:0 wyłącza domyślne "automatic
     minimum size" flex-itemów, które inaczej przebija aspect-ratio treścią
     (obraz bluzy — prawie kwadratowy — wymuszał wyższy box niż 4:3). */
  aspect-ratio: 4 / 3;
  min-height: 0;
}
/* `<picture>` nie ma własnej wysokości, więc bez tej reguły „height:100%"
   na <img> nie ma względem czego się policzyć — obrazek renderował się w
   swoim naturalnym rozmiarze (przeskalowanym tylko przez width:100%),
   zostawiając pusty pas nad/pod nim zamiast wypełniać cały box 4:3. */
.product-card__media picture { display: block; width: 100%; height: 100%; }
.product-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-card__media--photo { padding: 0; background: var(--surface-2); }
.product-card__media--photo img { object-fit: cover; }
.product-card__body { padding: clamp(18px, 2.6vw, 26px); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; }
.product-card__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--yellow); }
.product-card__desc { color: var(--fog); margin: 0; }

.lqip { background-size: cover; background-position: center; }
img.lazyload { opacity: 0; }
img.lazyloaded { opacity: 1; transition: opacity 0.4s var(--ease); }

/* -------------------------------------------------------------- reveal fx */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.06s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.18s; }

/* ------------------------------------------------------------ breakpoints */
@media (max-width: 940px) {
  .nextrun { grid-template-columns: 1fr; }
  .rtb__grid { grid-template-columns: 1fr; }
  .rtb__media { aspect-ratio: 16 / 10; }
  .vibes__inner { grid-template-columns: 1fr; }
  .event-layout { grid-template-columns: 1fr; }
  .event-aside { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .gallery { columns: 2 160px; }
  .hero { min-height: 82vh; }
}

@media (max-width: 420px) {
  .gallery { columns: 1; }
}

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

/* =============================================================================
   STRONA WYDARZENIA — układ „prostota, dużo powietrza" (renderEventPage)
   Wszystko pod .ui (klasa dokładana do <main data-event-page>), żeby nie
   ruszać pozostałych stron. Zasady: jedna linia krawędzi treści (.wrap),
   rytm sekcji przez odstęp zamiast ramek, nagłówki sekcji w Inter (krój
   marki tylko w tytule hero), przyciski-pigułki, fakty jak w specyfikacji.
   ========================================================================== */
.ui {
  --ev-tile: #f5f5f7;
  --ev-tile-dark: #1d1d20;
  --ev-gap: clamp(8px, 1.2vw, 14px);
  --evnav-h: 52px;
}
html:has(.evnav) { scroll-padding-top: calc(var(--header-h) + var(--evnav-h, 52px) + 12px); }

/* przyciski: pigułki, bez wersalików (tylko na stronie wydarzenia) */
.ui .btn {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: -0.005em;
  font-size: 1rem;
  font-weight: 600;
  padding-inline: 1.5em;
}
.ui .btn--lg { min-height: 54px; font-size: 1.05rem; }
.ui .btn:hover { transform: none; }

/* ------------------------------------------------------------------ hero */
.evhero {
  position: relative;
  min-height: min(84vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.evhero__media { position: absolute; inset: 0; }
.evhero__media picture { display: block; width: 100%; height: 100%; }
.evhero__media img { width: 100%; height: 100%; object-fit: cover; }
.evhero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(10, 10, 11, 0.78) 26%, rgba(10, 10, 11, 0.22) 60%, rgba(10, 10, 11, 0.4) 100%),
    linear-gradient(to right, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0) 55%);
}
.evhero__inner { text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35); }
.evhero__inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: clamp(44px, 7vw, 96px);
}
.evhero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--yellow);
}
.evhero__badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 5px 11px;
  border-radius: 999px;
}
.evhero__title {
  font-size: clamp(2.6rem, 7.2vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  max-width: 13ch;
  margin: 0;
  text-wrap: balance;
}
.evhero__tagline {
  font-size: clamp(1.12rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
  margin: 20px 0 0;
  max-width: 38ch;
}
.evhero__meta { margin-top: 24px; color: rgba(255, 255, 255, 0.94); font-weight: 500; }
.evhero__cta { margin-top: 30px; }
.evhero--plain {
  min-height: auto;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(244, 188, 20, 0.1), transparent 60%),
    var(--ink-2);
}

/* ----------------------------------------------- lokalne menu sekcji */
.evnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(10, 10, 11, 0.74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.evnav__inner { display: flex; align-items: center; gap: 28px; min-height: var(--evnav-h); }
.evnav__title { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; margin-right: auto; }
.evnav__links { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.evnav__links::-webkit-scrollbar { display: none; }
.evnav__links a { font-size: 0.86rem; color: var(--fog); white-space: nowrap; padding: 6px 0; transition: color 0.2s var(--ease); }
.evnav__links a:hover,
.evnav__links a[aria-current] { color: var(--white); }
.evnav__cta {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}
.evnav__cta:hover { background: var(--yellow-bright); }
@media (max-width: 760px) {
  .evnav__title { display: none; }
  .evnav__inner { gap: 16px; }
  .evnav__links { margin-right: auto; gap: 18px; }
}

/* ---------------------------------------------------------- sekcje */
.evsec { padding-block: clamp(72px, 9vw, 132px); }
.evsec--stage { background: var(--ink-2); }
.evhead { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.evhead__eyebrow,
.ui .section-head .kicker {
  display: block;
  color: var(--yellow);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 10px;
}
.ui .section-head .kicker::before { display: none; }
.evhead__title,
.ui .section-head .display {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.evhead__intro {
  color: var(--fog);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  margin: 16px 0 0;
  max-width: 52ch;
}

/* ------------------------------------------------------ o wydarzeniu */
.evabout__single { max-width: 840px; }
.evlead {
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.evbody { font-size: 1.1rem; line-height: 1.7; color: var(--fog); max-width: 64ch; margin: 0 0 1em; }
.evbody--strong { color: var(--white); }
.evblock { margin-top: clamp(52px, 6vw, 80px); }
.evblock__title { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 20px; }
.evfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0 36px;
  margin: 0;
}
.evfacts__item { border-top: 1px solid var(--line-strong); padding: 16px 0 24px; }
.evfacts dt { font-size: 0.84rem; color: var(--fog-2); margin: 0 0 6px; }
.evfacts dd {
  margin: 0;
  font-size: clamp(1.12rem, 1.6vw, 1.38rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
  text-wrap: pretty;
}
.evfacts dd a { color: var(--yellow); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.evfacts dd a:hover { text-decoration-thickness: 2px; }
.evlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 36px; }
.evlist li {
  display: flex;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--fog);
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.evlist li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  margin-top: 0.62em;
  flex-shrink: 0;
}
.ui .event-org { margin-top: clamp(48px, 6vw, 72px); }
.ui .event-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 6vw, 88px); }
.ui .event-aside { top: calc(var(--header-h) + var(--evnav-h) + 20px); }
.ui .form-card { border-radius: 24px; background: var(--surface); }
.evform__eyebrow { color: var(--yellow); font-weight: 600; font-size: 0.92rem; margin: 0 0 6px; }
.evform__title { font-weight: 700; font-size: 1.65rem; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }
.evform__note { color: var(--fog); font-size: 0.95rem; line-height: 1.55; margin: 0 0 18px; }
.ui .info-badge { border-radius: 999px; }
.ui .entrance-callout { border-radius: 18px; }
.ui .faq { border-radius: 18px; }

/* --------------------------------------------------------------- galeria
   Flex zamiast kolumn masonry: kolejność czytana WIERSZAMI (= chronologia
   dnia), równe kadry 3:2, ostatni niepełny wiersz rozciąga się do pełnej
   szerokości — bez pustych pól. Pełne, nieprzycięte zdjęcie w lightboxie. */
.gallery--grid {
  columns: unset;
  display: flex;
  flex-wrap: wrap;
  gap: var(--ev-gap, 12px);
}
.gallery--grid .gallery__item {
  flex: 1 1 300px;
  /* niepełny ostatni wiersz rośnie najwyżej do połowy szerokości — przy małej
     galerii (np. 4 zdjęcia) pojedynczy kadr nie rozlewa się na cały ekran */
  max-width: calc(50% - var(--ev-gap, 12px) / 2);
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
}
/* 2 albo 4 zdjęcia: równa siatka 2 kolumn zamiast 3 + samotnego kadru */
.gallery--grid:has(> .gallery__item:nth-child(2):last-child) .gallery__item,
.gallery--grid:has(> .gallery__item:nth-child(4):last-child) .gallery__item { flex-basis: 40%; }
.gallery--grid .gallery__item picture { display: block; width: 100%; height: 100%; }
.gallery--grid .gallery__item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .gallery--grid .gallery__item { flex-basis: 150px; border-radius: 10px; }
}

/* ------------------------------------------------------------------ film */
.evfilm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(36px, 7vw, 112px);
  align-items: center;
}
.evfilm__text { max-width: 520px; }
.evfilm__media { margin: 0; }
.evfilm__media .video-card__player,
.ui .videos--row .video-card__player {
  border: 0;
  border-radius: 28px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
}
.evfilm__media .video-card__player { height: min(78vh, 760px); width: auto; max-width: 100%; }
.ui .videos--row { justify-content: center; grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); }
@media (max-width: 820px) {
  .evfilm { grid-template-columns: 1fr; }
  .evfilm__media .video-card__player { height: auto; width: 100%; max-width: 420px; margin-inline: auto; }
}

/* ------------------------------------------------------------- partnerzy */
/* Grupy w jednym rzędzie (małe obok siebie, n > 2 kafelki = cały wiersz) —
   przy 1–2 logo na grupę pionowy stos zostawiał pustą prawą połowę sekcji. */
.evpgroups { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(40px, 5vw, 64px) 64px; }
.evpgroup { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.evpgroup--wide { flex-basis: 100%; }
.evpgroup__label { font-size: 0.88rem; font-weight: 600; color: var(--fog-2); margin: 0 0 16px; }
.ui .ptiles { gap: 12px; }
.ui .ptile {
  background: var(--ev-tile);
  border-radius: 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ui a.ptile:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
.ui .ptile--dark { background: var(--ev-tile-dark); box-shadow: inset 0 0 0 1px var(--line); }
.ui .ptile picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ui .ptile img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.ui .ptile--main { width: 360px; height: 180px; padding: 30px 40px; }
.ui .ptile--tier1,
.ui .ptile--patron { width: 264px; height: 132px; padding: 24px 30px; }
.ui .ptile--other { width: 172px; height: 92px; padding: 16px 20px; }
.evpmain { display: inline-flex; flex-direction: column; gap: 14px; }
.evpmain__name { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.ui a.evpmain:hover .ptile { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); }
.ui .ptile--patron + .evpmain__name { max-width: 264px; }
/* Współtwórcy: ten sam kafel 264×132 co patronaty i partnerzy (wcześniej 220 px). */
.ui .contribs { margin-top: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ui .contrib { align-items: flex-start; text-align: left; width: 264px; }
.ui .contrib__logo { background: var(--ev-tile); border-radius: 16px; aspect-ratio: auto; height: 132px; padding: 24px 30px; }
.ui .contrib__logo picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ui .link-arrow { text-transform: none; letter-spacing: -0.005em; font-size: 1rem; font-weight: 600; }
.ui .contrib__name { font-weight: 600; }
.evpartners__more { margin: clamp(40px, 5vw, 64px) 0 0; }
@media (max-width: 560px) {
  .ui .ptile--main { width: 100%; height: 150px; }
  .ui .ptile--tier1,
  .ui .ptile--patron { width: calc(50% - 6px); height: 104px; padding: 18px; }
  .ui .ptile--other { width: calc(50% - 6px); height: 80px; }
  .ui .contribs { max-width: none; }
  .ui .contrib { width: calc(50% - 6px); }
  /* Telefon: dwie kolumny; grupa z 1 kafelkiem = pół szerokości, reszta = cały wiersz. */
  .evpgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .evpgroup { grid-column: 1 / -1; }
  .evpgroup--single { grid-column: auto; }
  .evpgroup--main { grid-column: 1 / -1; }
  .ui .evpmain { width: calc(50% - 6px); }
  .ui .evpmain .ptile,
  .ui .evpgroup--single .evpmain,
  .ui .evpgroup--single .contrib,
  .ui .evpgroup--main .evpmain { width: 100%; }
  .ui .ptile--patron + .evpmain__name { max-width: none; }
}

/* ---------------------------------------------------------- pas na końcu */
.evend {
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 100%, rgba(244, 188, 20, 0.13), transparent 70%),
    var(--ink-2);
}
.evend__inner { max-width: 780px; }
.evend__title { font-weight: 700; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.032em; line-height: 1.05; margin: 0; text-wrap: balance; }
.evend__text { color: var(--fog); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; margin: 18px auto 0; max-width: 46ch; }
.evend__cta { justify-content: center; margin-top: 34px; }

/* =============================================================================
   WSPÓLNY JĘZYK „.ui" — dodatki ogólne (strony wydarzeń + strona główna)
   ========================================================================== */
.ui .kicker {
  display: block;
  color: var(--yellow);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 10px;
}
.ui .kicker::before { display: none; }
.ui h2.display.h2 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.ui .section-head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.ui .section-head .muted,
.ui .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--fog);
  margin-top: 16px;
  max-width: 52ch;
}
.ui .section-head.center .muted { margin-inline: auto; }
.ui .section { padding-block: clamp(72px, 9vw, 132px); }

/* karty wydarzeń */
.ui .ecard { border: 0; border-radius: 22px; background: var(--surface); }
.ui .ecard:hover { transform: translateY(-4px); }
.ui .ecard__badge { border-radius: 999px; font-size: 0.7rem; padding: 5px 11px; letter-spacing: 0.06em; }
.ui .ecard__kind { font-size: 0.86rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.ui .ecard__title { font-family: var(--font-body); text-transform: none; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.15; }
.ui .ecard__body { gap: 8px; padding: 22px 24px 24px; }

/* pigułki */
.ui .pill {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 7px 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* formularze */
.ui .field label { font-size: 0.86rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.ui .field input[type="text"],
.ui .field input[type="email"],
.ui .field input[type="tel"],
.ui .field textarea { border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.ui .check input { border-radius: 6px; }
.ui .form__status { border-radius: 14px; }

/* logotypy partnerów marki */
.ui .plogo,
.ui .plogo--main { background: var(--ev-tile, #f5f5f7); border-radius: 16px; opacity: 1; }
.ui .plogo--dark { background: var(--ev-tile-dark, #1d1d20); }

/* mapa + Strava */
.ui .locsec__map { border: 0; border-radius: 20px; }
.ui .locsec__mapbtn { text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 600; }
.ui .strava-route,
.ui .strava-route__ph { border-radius: 20px; }

/* =============================================================================
   STRONA GŁÓWNA (.home)
   ========================================================================== */

/* ------------------------------------------------------------------ hero */
.home .hero { min-height: min(94vh, 860px); border-bottom: 0; }
.home .hero__media::after {
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(10, 10, 11, 0.7) 28%, rgba(10, 10, 11, 0.15) 62%, rgba(10, 10, 11, 0.45) 100%),
    linear-gradient(to right, rgba(10, 10, 11, 0.6) 0%, rgba(10, 10, 11, 0) 60%);
}
.home .hero__inner {
  max-width: var(--wrap);
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(56px, 9vw, 112px);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}
.hero__eyebrow { color: var(--yellow); font-weight: 600; font-size: 1.05rem; margin: 0 0 18px; }
.home .hero__title {
  font-size: clamp(2.8rem, 7.6vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  max-width: 11ch;
  margin: 0;
}
.home .hero__title .accent { display: inline; }
.hero__lead {
  font-size: clamp(1.12rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34ch;
  margin: 24px 0 0;
}
.home .hero .btn-row { margin-top: 34px; }

/* ----------------------------------------------- wyróżnione wydarzenie
   Duży kafel z grafiką na całą szerokość i tekstem na dole (zamiast
   dwukolumnowej karty z ramką). */
.home-featured { padding-block: clamp(24px, 4vw, 48px) clamp(72px, 9vw, 132px); }
.home .feature-event {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(460px, 56vw, 640px);
  border: 0;
  border-radius: 28px;
  background: var(--surface);
}
.home .feature-event__media { position: absolute; inset: 0; min-height: 0; }
.home .feature-event__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.92) 0%, rgba(10, 10, 11, 0.4) 45%, rgba(10, 10, 11, 0) 75%);
}
.home .feature-event__body { position: relative; z-index: 1; padding: clamp(28px, 5vw, 64px); max-width: 760px; }
.home .feature-event__title {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.012em;
  margin: 0;
}
.home .feature-event__tag { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: rgba(255, 255, 255, 0.88); margin: 16px 0 0; }
.home .feature-event__date {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin: 12px 0 26px;
}
.home .feature-event .signup-counter { margin: -10px 0 22px; }

/* -------------------------------------- najbliższy bieg + start + trasa */
.home .nextrun { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.home .nextrun .section-head { margin-bottom: 0; }
.home .nextrun .pill-row { margin-top: 24px; }
.home .nextrun__card {
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  padding: clamp(28px, 4vw, 44px);
}
.home .nextrun__card .kicker { font-size: 0.95rem; }
.home .nextrun__date {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1;
  margin: 4px 0 8px;
}
.home .nextrun__meta { gap: 0 32px; margin: 26px 0; }
.home .nextrun__meta div { border-top: 1px solid var(--line-strong); padding-top: 12px; }
.home .nextrun__meta dt { font-size: 0.82rem; letter-spacing: 0; text-transform: none; }
.home .nextrun__meta dd { font-size: 1.15rem; }
.home .nextrun__note { border-top: 0; padding-top: 0; margin: 18px 0 0; }
.home-tue__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  margin-top: clamp(64px, 8vw, 112px);
  align-items: start;
}
.home-tue__grid > div > .wrap { padding-inline: 0; max-width: none; }
.home-tue__grid .section-head { margin-bottom: 24px; }
.home-tue__grid h2.display.h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.home-tue__grid .locsec__grid { grid-template-columns: 1fr; gap: 16px; }
.home-tue__grid .locsec__pin { margin: 0; }
.home-tue__grid .strava-route { margin-top: 0; max-width: none; }
.home-tue__grid #trasa-strava .muted { margin: -12px 0 16px !important; font-size: 1rem; }
@media (max-width: 900px) {
  .home .nextrun,
  .home-tue__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- jak to działa */
.ui .steps { gap: clamp(28px, 4vw, 56px); }
.ui .step { background: none; border: 0; border-radius: 0; padding: 22px 0 0; border-top: 1px solid var(--line-strong); }
.ui .step::before { font-size: 3rem; margin-bottom: 18px; }
.ui .step h3 { font-family: var(--font-body); text-transform: none; letter-spacing: -0.02em; font-weight: 700; font-size: 1.5rem; margin-bottom: 10px; }
.ui .step p { font-size: 1.05rem; line-height: 1.6; }

/* -------------------------------------------------------------- wydarzenia */
.home-events__past { margin-top: clamp(72px, 9vw, 120px); }
.home-more { margin-top: clamp(28px, 4vw, 40px); }

/* ------------------------------------------------------------ run the beat */
.ui .rtb__grid { gap: clamp(36px, 7vw, 104px); }
.ui .rtb__media { border-radius: 28px; }
.home .home-kolekcja .rtb__media { aspect-ratio: 4 / 3; }
.ui .stats { background: none; border: 0; border-radius: 0; gap: 0 32px; margin-top: 32px; }
.ui .stat { background: none; padding: 16px 0 22px; border-top: 1px solid var(--line-strong); }
.ui .stat__value { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.ui .stat__label { font-weight: 500; font-size: 0.95rem; }
.home-note { font-size: 0.88rem; margin: 6px 0 28px; }
.home #run-the-beat .muted:not(.muted-2) { font-size: 1.02rem; color: var(--fog-2); }
@media (max-width: 940px) {
  .ui .rtb__grid { grid-template-columns: 1fr; }
  .ui .rtb__media { aspect-ratio: 4 / 3; }
}

/* ------------------------------------------------------------- partnerzy */
.ui .plogos { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ui .plogos--lg { margin-bottom: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ------------------------------------------------------------------ ludzie */
.ui .team__about {
  font-size: clamp(1.4rem, 2.6vw, 2.05rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 30ch;
  margin: 0 0 40px;
}
.ui .team__list { background: none; border: 0; border-radius: 0; gap: 0 36px; }
.ui .team__person { background: none; padding: 16px 0 20px; border-top: 1px solid var(--line-strong); }
.ui .team__name { font-size: 1.15rem; }
.ui .team__sep { display: none; }
.home #ludzie .wrap--narrow { max-width: var(--wrap); }

/* ---------------------------------------------------- vibes list + social */
.home-vibes {
  background:
    radial-gradient(70% 90% at 50% 100%, rgba(244, 188, 20, 0.12), transparent 70%),
    var(--ink-2);
}
.home-vibes .section-head { text-align: center; }
.home-vibes__card { max-width: 520px; margin-inline: auto; }
.home-social { text-align: center; margin-top: clamp(64px, 8vw, 104px); }
.home-social__title { font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; margin: 0 0 22px; }
.home .social-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: none; }
.home .social-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  transition: background 0.2s var(--ease);
}
.home .social-cta a:hover { background: rgba(255, 255, 255, 0.14); transform: none; }
.home .social-cta svg { width: 20px; height: 20px; }
.home .social-cta span { display: inline; font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--fog); font-weight: 500; }

/* ------------------------------------------- nagłówek strony: przycisk-pigułka */
.site-header .btn {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: -0.005em;
  font-size: 0.9rem;
  font-weight: 600;
}
.site-header .btn:hover { transform: none; }

/* --- poprawki po przeglądzie strony głównej --- */
.ui .btn--sm { min-height: 42px; font-size: 0.9rem; padding: 0.55em 1.15em; }
.home .nextrun__meta { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); }
.home .nextrun__card .btn-row { gap: 8px; }
.home-tue__grid .locsec__info { display: flex; flex-direction: column; gap: 16px; }
.ui .rtb__grid h2 + p { margin-top: 16px; }
.ui .rtb__grid .btn-row { margin-top: 28px; }
@media (max-width: 520px) {
  .home .nextrun__meta { grid-template-columns: 1fr 1fr; }
  .home .nextrun__meta div:first-child { grid-column: 1 / -1; }
}

/* stopka i baner cookies: ten sam przycisk-pigułka co w nagłówku (cały serwis) */
.site-footer .btn,
.cookie .btn {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: -0.005em;
  font-weight: 600;
  font-size: 0.9rem;
}
.site-footer .btn:hover,
.cookie .btn:hover { transform: none; }
.footer-mini-form input { border-radius: 12px; }
.cookie { border-radius: 22px; }
@media (max-width: 640px) {
  .home .feature-event { min-height: 600px; }
  .ui .plogos,
  .ui .plogos--lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* grafika zawsze na całą wysokość kafla/hero (nadpisuje mobilne reguły starego układu) */
.home .hero__media picture,
.home .feature-event__media picture { display: block; width: 100%; height: 100%; }
.home .feature-event__media { aspect-ratio: auto; }
.home .feature-event__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home .feature-event__body { max-width: 980px; }

/* =============================================================================
   PODSTRONY (.ui.page) — partnerzy, kolekcja, wolontariat, wydarzenia, dokumenty
   ========================================================================== */
/* hero ze zdjęciem / bez: treść przy lewej krawędzi .wrap (wcześniej wąska,
   wyśrodkowana kolumna), większy tytuł, spokojny lead */
.ui .event-hero { min-height: min(80vh, 720px); border-bottom: 0; }
.ui .event-hero--plain { min-height: auto; }
.ui .event-hero__media picture { display: block; width: 100%; height: 100%; }
.ui .event-hero__media::after {
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(10, 10, 11, 0.75) 30%, rgba(10, 10, 11, 0.2) 65%, rgba(10, 10, 11, 0.45) 100%),
    linear-gradient(to right, rgba(10, 10, 11, 0.6) 0%, rgba(10, 10, 11, 0) 60%);
}
.ui .event-hero__inner {
  max-width: var(--wrap);
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: clamp(48px, 7vw, 96px);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.3);
}
.ui .event-hero__title {
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  max-width: 14ch;
  margin: 0 0 24px;
  text-wrap: balance;
}
.ui .event-hero .lead { color: rgba(255, 255, 255, 0.88); font-size: clamp(1.12rem, 1.8vw, 1.4rem); max-width: 40ch; margin-top: 0; }
.ui .event-hero .btn-row { margin-top: 30px; }

/* tytuł strony bez zdjęcia (wydarzenia, dokumenty, 404) */
.ui h1.display.h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 0.95; letter-spacing: -0.015em; text-wrap: balance; margin-bottom: 20px; }

/* duże cytaty / wyróżnienia w krótkich kartach */
.ui .display.h3 { font-family: var(--font-body); font-weight: 700; text-transform: none; letter-spacing: -0.02em; line-height: 1.2; }

/* listy punktowe (wolontariat i in.) — linie zamiast pudełek */
.ui .onsite-list { border: 0; border-radius: 0; background: none; gap: 0; }
.ui .onsite-list li {
  background: none;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 1.05rem;
  color: var(--white);
}
.ui .onsite-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); margin-top: 0.62em; }

/* karty produktów (kolekcja) */
.ui .product-card { border: 0; border-radius: 22px; }
.ui .product-card__title { font-family: var(--font-body); text-transform: none; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.15; }
.ui .product-card__price { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.02em; }

/* dokumenty (polityka prywatności, zasady udziału) */
.ui .prose { font-size: 1.05rem; line-height: 1.7; }
.ui .prose h2 {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  margin: 2.4em 0 0.7em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}
.ui .prose h3 { font-size: 1.1rem; letter-spacing: -0.01em; }

/* karty z treścią (np. formaty biegów, możliwości współpracy) */
.ui .cards .ecard { min-height: 0; }
/* Telefon/tablet: jedna kolumna na stronie wydarzenia (reguła .ui wyżej nadpisywała
   mobilne `.event-layout { 1fr }` — formularz zapisu wchodził na tekst). */
@media (max-width: 940px) {
  .ui .event-layout { grid-template-columns: minmax(0, 1fr); }
  .ui .event-aside { position: static; }
}
