/* HLA4 Transplant: komponenty frontu (rdzeń). Tło sekcji daje motyw; tu tylko kafelki, typografia i układ.
   Czerń, biel i czerwień. Kolory wyłącznie z tokenów semantycznych motywu (--h4-*), z ciemnym fallbackiem. Progi: 480, 720, 960, 1200. */

/* ---------- tokeny i baza ---------- */
.h4c,
.h4c-lightbox,
.h4c-rail {
  --h4c-text: var(--h4-text, #fff);
  --h4c-mute: var(--h4-mute, #b8b8b8);
  --h4c-surface: var(--h4-surface, rgba(255, 255, 255, 0.07));
  --h4c-surface-2: var(--h4-surface-2, rgba(255, 255, 255, 0.12));
  --h4c-line: var(--h4-line, rgba(255, 255, 255, 0.2));
  --h4c-accent: var(--h4-accent, #e0343f);
  --h4c-red: var(--h4-red, #d62f3a);
  --h4c-bg: var(--h4-bg, #000);
  --h4c-ink: var(--h4-accent-ink, #fff);
  --h4c-link: var(--h4-link, #fff);
  --h4c-radius: var(--h4-radius, 8px);
  --h4c-gap: var(--h4-gap, clamp(14px, 2vw, 26px));
  --h4c-font: var(--h4-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --h4c-display: var(--h4-font-display, "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif);
  --h4c-card-bg: linear-gradient(160deg, var(--h4c-surface-2), var(--h4c-surface));
  box-sizing: border-box;
  font-family: var(--h4c-font);
  line-height: 1.55;
  color: var(--h4c-text);
}

.h4c *,
.h4c *::before,
.h4c *::after,
.h4c-lightbox *,
.h4c-lightbox *::before,
.h4c-lightbox *::after {
  box-sizing: inherit;
}

.h4c ul[class],
.h4c ol[class],
.h4c dl[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

.h4c p,
.h4c h2,
.h4c h3,
.h4c figure,
.h4c dd {
  margin: 0;
}

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

.h4c-ico {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}

.h4c .h4c-ph {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.h4c-events + .h4c-events {
  margin-top: calc(var(--h4c-gap) * 2);
}

/* ---------- elementy wspólne ---------- */
.h4c .h4c__title {
  margin: 0 0 var(--h4c-gap);
  font-family: var(--h4c-display);
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--h4c-text);
}

.h4c .h4c__title::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 0.4em;
  background: var(--h4c-red);
  border-radius: 2px;
}

.h4c .h4c__lead {
  max-width: 64ch;
  margin: 0 0 calc(var(--h4c-gap) * 1.2);
  font-size: 1.125rem;
  color: var(--h4c-mute);
}

.h4c .h4c__empty {
  padding: 22px 24px;
  color: var(--h4c-mute);
  background: var(--h4c-surface);
  border: 1px dashed var(--h4c-line);
  border-radius: var(--h4c-radius);
}

.h4c .h4c-card {
  position: relative;
  overflow: hidden;
  background: var(--h4c-card-bg);
  border: 1px solid var(--h4c-line);
  border-radius: var(--h4c-radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.h4c .h4c-card:hover {
  border-color: var(--h4c-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.h4c .h4c-card:has(a:focus-visible) {
  border-color: var(--h4c-accent);
  box-shadow: 0 0 0 2px var(--h4c-accent);
}

.h4c .h4c-chip,
.h4c .h4c-badge {
  display: inline-block;
  padding: 0.12em 0.7em;
  font-family: var(--h4c-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--h4c-text);
  background: var(--h4c-surface);
  border: 1px solid var(--h4c-line);
  border-radius: 3px;
}

.h4c .h4c-chip.is-accent,
.h4c .h4c-badge--cancelled {
  color: var(--h4c-ink);
  background: var(--h4c-red);
  border-color: var(--h4c-red);
}

.h4c .h4c-badge--soldout {
  color: var(--h4c-accent);
  border-color: var(--h4c-accent);
}

.h4c .h4c-badge--postponed {
  color: var(--h4c-mute);
  border-color: var(--h4c-mute);
}

.h4c .h4c-badge--free {
  color: var(--h4c-link);
  border-color: var(--h4c-link);
}

.h4c .h4c-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--h4c-mute);
}

.h4c .h4c-more,
.h4c .h4c-lane__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  color: var(--h4c-accent);
}

.h4c .h4c-more:hover,
.h4c .h4c-lane__all:hover {
  color: var(--h4c-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.h4c .h4c-credit {
  display: block;
  margin-top: 0.4em;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--h4c-mute);
}

.h4c .h4c-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  padding: 0.35em 1em;
  font-weight: 600;
  text-decoration: none;
  color: var(--h4c-text);
  background: var(--h4c-surface);
  border: 1px solid var(--h4c-line);
  border-radius: 999px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.h4c .h4c-pill:hover {
  color: var(--h4c-text);
  border-color: var(--h4c-accent);
  background: var(--h4c-surface-2);
}

/* przyciski: motyw ma własny styl .h4-btn, to tylko zabezpieczenie dla innego motywu (niska swoistość) */
:where(.h4c) .h4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.55em 1.3em;
  font-family: var(--h4c-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--h4c-text);
  background: transparent;
  border: 2px solid var(--h4c-line);
  border-radius: 4px;
  cursor: pointer;
}

:where(.h4c) .h4-btn--primary {
  color: var(--h4c-ink);
  background: var(--h4c-red);
  border-color: var(--h4c-red);
}

.h4c .h4-btn .h4c-ico {
  width: 1.15em;
  height: 1.15em;
}

/* tekst z edytora */
.h4c .h4c-prose {
  max-width: 72ch;
  font-size: 1.0625rem;
}

.h4c .h4c-prose > * + * {
  margin-top: 1em;
}

.h4c .h4c-prose h2,
.h4c .h4c-prose h3 {
  margin-top: 1.6em;
  font-family: var(--h4c-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--h4c-text);
}

.h4c .h4c-prose h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.h4c .h4c-prose h3 {
  font-size: 1.4rem;
}

.h4c .h4c-prose ul,
.h4c .h4c-prose ol {
  padding-left: 1.3em;
}

.h4c .h4c-prose a {
  color: var(--h4c-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.h4c .h4c-prose img {
  border-radius: var(--h4c-radius);
}

.h4c .h4c-prose blockquote {
  margin-inline: 0;
  padding: 0.2em 0 0.2em 1.2em;
  font-size: 1.2rem;
  border-left: 3px solid var(--h4c-accent);
}

/* lista faktów (dl) */
.h4c .h4c-facts {
  margin: 0;
}

.h4c .h4c-facts__row {
  display: grid;
  grid-template-columns: minmax(6.5em, 9em) minmax(0, 1fr);
  gap: 0.2em 1em;
  padding: 0.6em 0;
  border-bottom: 1px solid var(--h4c-line);
}

.h4c .h4c-facts__row dt {
  font-family: var(--h4c-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h4c-mute);
}

.h4c .h4c-facts__row dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* paginacja */
.h4c .h4c-pager {
  margin-top: calc(var(--h4c-gap) * 1.4);
}

.h4c .h4c-pager__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.h4c .h4c-pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--h4c-text);
  background: var(--h4c-surface);
  border: 1px solid var(--h4c-line);
  border-radius: var(--h4c-radius);
}

.h4c a.h4c-pager__link:hover {
  color: var(--h4c-text);
  border-color: var(--h4c-accent);
}

.h4c .h4c-pager__link.is-current {
  color: var(--h4c-ink);
  background: var(--h4c-red);
  border-color: var(--h4c-red);
}

/* siatki */
.h4c .h4c-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--h4c-gap);
}

/* ---------- koncerty ---------- */
.h4c .h4c-events__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: max(14px, calc(var(--h4c-gap) * 0.7));
}

.h4c .h4c-event {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-areas: "date body" "actions actions";
  gap: 14px 16px;
  align-items: center;
  padding: 16px;
}

.h4c .h4c-event__date {
  grid-area: date;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: start;
  min-height: 84px;
  padding: 8px 6px;
  text-align: center;
  line-height: 1;
  color: var(--h4c-ink);
  background: var(--h4c-red);
  border-radius: calc(var(--h4c-radius) - 2px);
}

.h4c .h4c-event__mon {
  font-family: var(--h4c-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.h4c .h4c-event__day {
  margin: 2px 0;
  font-family: var(--h4c-display);
  font-size: 2.5rem;
  font-weight: 800;
}

.h4c .h4c-event__date.is-range .h4c-event__day {
  font-size: 1.7rem;
}

.h4c .h4c-event__year,
.h4c .h4c-event__to {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.h4c .h4c-event__to {
  margin-top: 3px;
  text-transform: uppercase;
}

.h4c .h4c-event.is-past .h4c-event__date,
.h4c .h4c-event.is-cancelled .h4c-event__date {
  color: var(--h4c-mute);
  background: var(--h4c-surface-2);
  border: 1px solid var(--h4c-line);
}

.h4c .h4c-event__body {
  grid-area: body;
  min-width: 0;
}

.h4c .h4c-event__title {
  font-family: var(--h4c-display);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h4c .h4c-event__title a {
  color: var(--h4c-text);
  text-decoration: none;
}

.h4c .h4c-event__title a:hover {
  color: var(--h4c-accent);
}

.h4c .h4c-event.is-cancelled .h4c-event__title a {
  text-decoration: line-through;
  color: var(--h4c-mute);
}

.h4c .h4c-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 6px;
  color: var(--h4c-mute);
}

.h4c .h4c-event__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.h4c .h4c-event__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.h4c .h4c-event__actions .h4-btn {
  flex: 1 1 auto;
}

@media (min-width: 720px) {
  .h4c .h4c-event {
    grid-template-columns: 92px minmax(0, 1fr) auto;
    grid-template-areas: "date body actions";
    padding: 18px 22px;
  }

  .h4c .h4c-event__actions {
    flex-wrap: nowrap;
  }

  .h4c .h4c-event__actions .h4-btn {
    flex: none;
  }
}

/* kafle */
.h4c .h4c-events__list--cards {
  gap: var(--h4c-gap);
}

.h4c .h4c-events__list--cards .h4c-event {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "date" "body" "actions";
  align-items: start;
  padding: 20px;
}

.h4c .h4c-events__list--cards .h4c-event__date {
  width: 88px;
}

.h4c .h4c-events__list--cards .h4c-event__actions {
  align-self: end;
}

@media (min-width: 720px) {
  .h4c .h4c-events__list--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h4c .h4c-events__list--cards .h4c-event {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "date" "body" "actions";
    padding: 20px;
  }
}

@media (min-width: 960px) {
  .h4c .h4c-events__list--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* kompaktowe */
.h4c .h4c-events__list--compact {
  gap: 14px;
}

.h4c .h4c-events__list--compact .h4c-event {
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-areas: "date body";
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
}

.h4c .h4c-events__list--compact .h4c-event__date {
  min-height: 62px;
  padding: 5px 4px;
}

.h4c .h4c-events__list--compact .h4c-event__day {
  font-size: 1.7rem;
}

.h4c .h4c-events__list--compact .h4c-event__date.is-range .h4c-event__day {
  font-size: 1.15rem;
  white-space: nowrap;
}

.h4c .h4c-events__list--compact .h4c-event__year,
.h4c .h4c-events__list--compact .h4c-event__to,
.h4c .h4c-events__list--compact .h4c-event__actions {
  display: none;
}

.h4c .h4c-events__list--compact .h4c-event__title {
  font-size: 1.3rem;
}

.h4c.h4c-events--empty .h4c__empty {
  max-width: 62ch;
}

/* ---------- zespół ---------- */
.h4c .h4c-members__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--h4c-gap);
}

.h4c .h4c-member {
  display: flex;
  flex-direction: column;
  flex: 0 1 100%;
  min-width: 0;
}

@media (min-width: 480px) {
  .h4c .h4c-member {
    flex-basis: calc((100% - var(--h4c-gap)) / 2);
  }

  .h4c .h4c-member__photo {
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 960px) {
  .h4c .h4c-member {
    flex-basis: calc((100% - 2 * var(--h4c-gap)) / 3);
  }
}

@media (min-width: 1200px) {
  .h4c .h4c-member {
    flex-basis: calc((100% - 3 * var(--h4c-gap)) / 4);
  }
}

.h4c .h4c-member__photo {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--h4c-surface-2);
}

.h4c .h4c-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 0.4s ease;
}

.h4c .h4c-member:hover .h4c-member__photo img {
  transform: scale(1.04);
}

.h4c .h4c-member__credit,
.h4c .h4c-festival__credit {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 3px 9px;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-bottom-right-radius: var(--h4c-radius);
}

.h4c .h4c-member__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px 18px;
}

.h4c .h4c-member.is-leader {
  border-color: var(--h4c-accent);
}

.h4c .h4c-member__name {
  font-family: var(--h4c-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h4c .h4c-member__name a {
  color: var(--h4c-text);
  text-decoration: none;
}

.h4c .h4c-member__name a::after,
.h4c .h4c-post__title a::after,
.h4c .h4c-press__title a::after,
.h4c .h4c-album__title a::after,
.h4c .h4c-release__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.h4c .h4c-member__name a:hover,
.h4c .h4c-post__title a:hover,
.h4c .h4c-press__title a:hover,
.h4c .h4c-album__title a:hover,
.h4c .h4c-release__title a:hover {
  color: var(--h4c-accent);
}

.h4c .h4c-member__role {
  font-family: var(--h4c-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h4c-accent);
}

.h4c .h4c-member__bio {
  color: var(--h4c-mute);
}

.h4c .h4c-member .h4c-social {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

/* o zespole, koncert na żywo */
.h4c .h4c-about__lead {
  max-width: 46ch;
  margin-bottom: var(--h4c-gap);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
}

.h4c .h4c-about__acronym {
  max-width: 62ch;
  margin-bottom: var(--h4c-gap);
  padding-left: 1em;
  color: var(--h4c-mute);
  border-left: 3px solid var(--h4c-accent);
}

.h4c .h4c-live__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: max(14px, calc(var(--h4c-gap) * 0.7));
  margin-bottom: var(--h4c-gap);
}

.h4c .h4c-live__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
}

.h4c .h4c-live__label {
  font-family: var(--h4c-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--h4c-accent);
}

.h4c .h4c-live__desc {
  color: var(--h4c-mute);
}

@media (min-width: 720px) {
  .h4c .h4c-live__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .h4c .h4c-live__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- muzyka ---------- */
.h4c .h4c-release {
  display: flex;
  flex-direction: column;
}

.h4c .h4c-release__cover {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--h4c-surface-2);
}

.h4c .h4c-release__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h4c .h4c-release__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 20px 22px;
}

.h4c .h4c-release__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  color: var(--h4c-mute);
}

.h4c .h4c-release__title {
  font-family: var(--h4c-display);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h4c .h4c-release__title a {
  color: var(--h4c-text);
  text-decoration: none;
}

.h4c .h4c-release__credits,
.h4c .h4c-release__excerpt {
  color: var(--h4c-mute);
}

.h4c .h4c-release__listen {
  position: relative;
  z-index: 2;
  width: 100%;
}

.h4c .h4c-release__label {
  margin-bottom: 8px;
  font-family: var(--h4c-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--h4c-mute);
}

.h4c .h4c-release__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h4c .h4c-release .h4c-audio,
.h4c .h4c-release .h4c-yt {
  position: relative;
  z-index: 2;
  width: 100%;
}

.h4c .h4c-release--featured .h4c-release__cover {
  max-width: 560px;
}

@media (min-width: 720px) {
  .h4c .h4c-release--featured {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .h4c .h4c-release--featured .h4c-release__cover {
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .h4c .h4c-release--featured .h4c-release__body {
    justify-content: center;
    padding: clamp(22px, 4vw, 44px);
  }
}

.h4c .h4c-releases__featured + .h4c-grid,
.h4c .h4c-releases__featured + .h4c-rail {
  margin-top: var(--h4c-gap);
}

/* odtwarzacze */
.h4c .h4c-audio {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.h4c .h4c-audio__label {
  font-size: 0.9rem;
  color: var(--h4c-mute);
}

.h4c .h4c-audio__el {
  display: block;
  color-scheme: dark;
  width: 100%;
  height: 44px;
}

.h4-paper .h4c .h4c-audio__el {
  color-scheme: light;
}

.h4c .h4c-yt {
  display: block;
}

.h4c .h4c-yt__play {
  position: relative;
  display: block;
  color: var(--h4c-text);
  text-decoration: none;
}

.h4c .h4c-yt__poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--h4c-surface-2);
  border: 1px solid var(--h4c-line);
  border-radius: var(--h4c-radius);
}

.h4c .h4c-yt__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h4c .h4c-yt__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6));
}

.h4c .h4c-yt__btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: -41px 0 0 -32px;
  color: var(--h4c-ink);
  background: var(--h4c-red);
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.h4c .h4c-yt__btn .h4c-ico {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

.h4c .h4c-yt__play:hover .h4c-yt__btn {
  transform: scale(1.08);
}

.h4c .h4c-yt__note {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--h4c-mute);
}

.h4c .h4c-yt iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--h4c-radius);
  background: #000;
}

/* ---------- galeria ---------- */
.h4c .h4c-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.h4c .h4c-gallery__cell {
  min-width: 0;
}

.h4c .h4c-gallery__item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--h4c-surface-2);
  border: 1px solid var(--h4c-line);
  border-radius: var(--h4c-radius);
  cursor: zoom-in;
}

.h4c .h4c-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.h4c .h4c-gallery__item:hover img {
  transform: scale(1.05);
}

.h4c .h4c-gallery__item:hover {
  border-color: var(--h4c-accent);
}

.h4c .h4c-gallery__credits {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--h4c-mute);
}

.h4c .h4c-gallery__more {
  margin-top: var(--h4c-gap);
}

@media (min-width: 720px) {
  .h4c .h4c-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 960px) {
  .h4c .h4c-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.h4c .h4c-album__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--h4c-surface-2);
}

.h4c .h4c-album__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.h4c .h4c-album:hover .h4c-album__thumb img {
  transform: scale(1.04);
}

.h4c .h4c-album__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}

.h4c .h4c-album__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 0.9rem;
  color: var(--h4c-mute);
}

.h4c .h4c-album__title {
  font-family: var(--h4c-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h4c .h4c-album__title a {
  color: var(--h4c-text);
  text-decoration: none;
}

.h4c .h4c-album__count {
  font-weight: 700;
  color: var(--h4c-accent);
}

/* lightbox (budowany przez front.js) */
html.h4c-lb-open {
  overflow: hidden;
}

.h4c-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.97);
}

.h4c-lightbox[hidden] {
  display: none;
}

.h4c-lightbox__fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.h4c-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.h4c-lightbox__cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 70ch;
  margin-top: 12px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
}

.h4c-lightbox__credit,
.h4c-lightbox__count {
  font-size: 0.85rem;
  color: #d0d0d0;
}

.h4c-lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.h4c-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
}

.h4c-lightbox__btn:focus-visible {
  outline: 3px solid var(--h4c-accent);
  outline-offset: 3px;
}

.h4c-lightbox__btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h4c-lightbox__close {
  top: 6px;
  right: 8px;
}

.h4c-lightbox__prev,
.h4c-lightbox__next {
  top: 50%;
  margin-top: -24px;
}

.h4c-lightbox__prev {
  left: 6px;
}

.h4c-lightbox__next {
  right: 6px;
}

.h4c-lightbox[data-single] .h4c-lightbox__prev,
.h4c-lightbox[data-single] .h4c-lightbox__next {
  display: none;
}

@media (min-width: 720px) {
  .h4c-lightbox {
    padding: 64px 80px 24px;
  }

  .h4c-lightbox__prev {
    left: 18px;
  }

  .h4c-lightbox__next {
    right: 18px;
  }

  .h4c-lightbox__close {
    top: 14px;
    right: 18px;
  }
}

/* ---------- Mówią o nas i wpisy ---------- */
.h4c .h4c-press,
.h4c .h4c-post {
  display: flex;
  flex-direction: column;
}

.h4c .h4c-press__thumb,
.h4c .h4c-post__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--h4c-surface-2);
}

.h4c .h4c-press__thumb img,
.h4c .h4c-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.h4c .h4c-press:hover .h4c-press__thumb img,
.h4c .h4c-post:hover .h4c-post__thumb img {
  transform: scale(1.04);
}

.h4c .h4c-press__body,
.h4c .h4c-post__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 18px 18px;
}

.h4c .h4c-press__meta,
.h4c .h4c-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.9rem;
  color: var(--h4c-mute);
}

.h4c .h4c-press__source {
  font-weight: 700;
  color: var(--h4c-accent);
}

.h4c .h4c-press__title,
.h4c .h4c-post__title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.28;
  font-family: var(--h4c-font);
  letter-spacing: 0;
  text-transform: none;
}

.h4c .h4c-press__title a,
.h4c .h4c-post__title a {
  color: var(--h4c-text);
  text-decoration: none;
}

.h4c .h4c-press__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  padding-left: 12px;
  color: var(--h4c-mute);
  border-left: 2px solid var(--h4c-accent);
}

.h4c .h4c-post__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  color: var(--h4c-mute);
}

.h4c .h4c-press .h4c-more {
  margin-top: auto;
}

/* wiersz (compact / row): miniatura z lewej */
.h4c .h4c-press--compact,
.h4c .h4c-post--row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: stretch;
}

.h4c .h4c-press--compact .h4c-press__thumb,
.h4c .h4c-post--row .h4c-post__thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 92px;
}

.h4c .h4c-press--compact .h4c-press__body,
.h4c .h4c-post--row .h4c-post__body {
  justify-content: center;
  gap: 4px;
  padding: 12px 14px;
}

.h4c .h4c-press--compact .h4c-press__title,
.h4c .h4c-post--row .h4c-post__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 1.05rem;
}

.h4c .h4c-post--row .h4c-post__excerpt {
  display: none;
}

@media (min-width: 480px) {
  .h4c .h4c-press--compact,
  .h4c .h4c-post--row {
    grid-template-columns: 148px minmax(0, 1fr);
  }
}

@media (min-width: 720px) {
  .h4c .h4c-grid--press,
  .h4c .h4c-grid--news,
  .h4c .h4c-grid--releases,
  .h4c .h4c-grid--albums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h4c .h4c-post--row .h4c-post__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

@media (min-width: 960px) {
  .h4c .h4c-grid--press.h4c-grid--cards,
  .h4c .h4c-grid--news,
  .h4c .h4c-grid--releases,
  .h4c .h4c-grid--albums {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.h4c .h4c-news__rows,
.h4c .h4c-news__rest {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: max(14px, calc(var(--h4c-gap) * 0.7));
}

.h4c .h4c-news__lead + .h4c-news__rest {
  margin-top: var(--h4c-gap);
}

@media (min-width: 960px) {
  .h4c.h4c-news--lead {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--h4c-gap);
  }

  .h4c.h4c-news--lead > .h4c__title,
  .h4c.h4c-news--lead > .h4c__lead {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .h4c.h4c-news--lead .h4c-news__lead + .h4c-news__rest {
    margin-top: 0;
  }
}

/* wiadomość wiodąca */
.h4c .h4c-post--lead .h4c-post__body {
  gap: 12px;
  padding: 20px 22px 24px;
}

.h4c .h4c-post--lead .h4c-post__title {
  font-family: var(--h4c-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h4c .h4c-post--lead .h4c-post__excerpt {
  font-size: 1.05rem;
  -webkit-line-clamp: 5;
}

.h4c .h4c-news__lead .h4c-post--lead {
  height: 100%;
}

.h4c .h4c-news__lead .h4c-post--lead .h4c-post__thumb {
  aspect-ratio: 16 / 10;
}

.h4c .h4c-post--lead .h4c-more {
  position: relative;
  z-index: 2;
}

/* newsroom */
.h4c .h4c-tabs {
  margin-bottom: var(--h4c-gap);
}

.h4c .h4c-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h4c .h4c-tabs__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35em 1.2em;
  font-family: var(--h4c-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--h4c-text);
  background: var(--h4c-surface);
  border: 1px solid var(--h4c-line);
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.h4c .h4c-tabs__link:hover {
  color: var(--h4c-text);
  border-color: var(--h4c-accent);
}

.h4c .h4c-tabs__link.is-active {
  color: var(--h4c-ink);
  background: var(--h4c-red);
  border-color: var(--h4c-red);
}

.h4c .h4c-newsroom__lead .h4c-post--lead .h4c-post__thumb {
  aspect-ratio: 16 / 9;
}

@media (min-width: 720px) {
  .h4c .h4c-newsroom__lead .h4c-post--lead {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .h4c .h4c-newsroom__lead .h4c-post--lead .h4c-post__thumb {
    height: 100%;
    min-height: 320px;
    aspect-ratio: auto;
  }

  .h4c .h4c-newsroom__lead .h4c-post--lead .h4c-post__body {
    justify-content: center;
    padding: clamp(22px, 3.4vw, 40px);
  }
}

.h4c .h4c-lane {
  margin-top: calc(var(--h4c-gap) * 2.2);
  scroll-margin-top: calc(var(--h4-header-h, 72px) + 16px);
}

.h4c .h4c-newsroom__lead + .h4c-lane,
.h4c .h4c-tabs + .h4c-lane {
  margin-top: calc(var(--h4c-gap) * 1.4);
}

.h4c .h4c-lane__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: calc(var(--h4c-gap) * 0.8);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--h4c-line);
}

.h4c .h4c-lane__title {
  font-family: var(--h4c-display);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h4c .h4c-lane__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: max(14px, calc(var(--h4c-gap) * 0.8));
}

@media (min-width: 960px) {
  .h4c .h4c-lane__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.h4c .h4c-newsroom__lead {
  margin-bottom: 0;
}

/* autor i data wpisu */
.h4c-postmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.h4c .h4c-postmeta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--h4c-mute);
}

/* ---------- festiwale i Fundacja ---------- */
.h4c .h4c-festivals__list {
  display: grid;
  gap: calc(var(--h4c-gap) * 1.4);
}

.h4c .h4c-festival {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.h4c .h4c-festival__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--h4c-surface-2);
}

.h4c .h4c-festival__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h4c .h4c-festival__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: clamp(20px, 3.6vw, 40px);
}

.h4c .h4c-festival__years {
  font-family: var(--h4c-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--h4c-accent);
}

.h4c .h4c-festival__title {
  font-family: var(--h4c-display);
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h4c .h4c-festival__title a {
  color: var(--h4c-text);
  text-decoration: none;
}

.h4c .h4c-festival__title a:hover {
  color: var(--h4c-accent);
}

.h4c .h4c-festival__text {
  max-width: 62ch;
  color: var(--h4c-mute);
}

.h4c .h4c-festival__hash {
  font-weight: 700;
  color: var(--h4c-link);
}

.h4c .h4c-festival__cta,
.h4c .h4c-foundation__cta,
.h4c .h4c-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

@media (min-width: 960px) {
  .h4c .h4c-festival {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .h4c .h4c-festival__media {
    height: 100%;
    aspect-ratio: auto;
    min-height: 360px;
  }

  .h4c .h4c-festival:nth-child(even) .h4c-festival__media {
    order: 2;
  }

  .h4c .h4c-festival:nth-child(even) .h4c-festival__credit {
    right: 0;
    left: auto;
    border-bottom-left-radius: var(--h4c-radius);
    border-bottom-right-radius: 0;
  }
}

.h4c .h4c-facts-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 4px 0;
}

.h4c .h4c-fact {
  display: flex;
  flex-direction: column;
}

.h4c .h4c-fact__num {
  font-family: var(--h4c-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--h4c-accent);
}

.h4c .h4c-fact__desc {
  font-size: 0.95rem;
  color: var(--h4c-mute);
}

.h4c .h4c-foundation__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: var(--h4c-gap);
}

.h4c .h4c-foundation__logowrap {
  display: block;
  padding: 10px 16px;
  background: #fff;
  border-radius: var(--h4c-radius);
}

.h4c .h4c-foundation__logo {
  width: auto;
  max-height: 64px;
}

.h4c .h4c-foundation__tagline {
  font-family: var(--h4c-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--h4c-accent);
}

.h4c .h4c-foundation__name {
  font-family: var(--h4c-display);
  font-size: clamp(2.2rem, 5.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h4c .h4c-foundation__lead {
  max-width: 52ch;
  margin-bottom: var(--h4c-gap);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
}

.h4c .h4c-foundation__prez {
  margin-top: var(--h4c-gap);
  font-weight: 700;
}

.h4c .h4c-foundation__cta {
  margin-top: var(--h4c-gap);
}

.h4c .h4c-pit {
  max-width: 72ch;
  margin-top: calc(var(--h4c-gap) * 1.6);
  padding: clamp(18px, 3vw, 30px);
  border-left: 4px solid var(--h4c-accent);
}

.h4c .h4c-pit:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--h4c-line);
  border-left-color: var(--h4c-accent);
}

.h4c .h4c-pit__title {
  margin-bottom: 10px;
  font-family: var(--h4c-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---------- rodzina projektów ---------- */
.h4c .h4c-ecosystem__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.h4c .h4c-ecosystem__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "kind go" "name go" "text text";
  align-items: center;
  gap: 2px 12px;
  min-height: 64px;
  padding: 12px 16px;
  color: var(--h4c-text);
  text-decoration: none;
}

.h4c .h4c-ecosystem__link:hover {
  color: var(--h4c-text);
}

.h4c .h4c-ecosystem__kind {
  grid-area: kind;
  font-family: var(--h4c-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--h4c-accent);
}

.h4c .h4c-ecosystem__name {
  grid-area: name;
  font-weight: 700;
  line-height: 1.25;
}

.h4c .h4c-ecosystem__text {
  grid-area: text;
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--h4c-mute);
}

.h4c .h4c-ecosystem__go {
  grid-area: go;
  display: flex;
  color: var(--h4c-mute);
}

.h4c .h4c-ecosystem__link:hover .h4c-ecosystem__go {
  color: var(--h4c-accent);
}

.h4c.h4c-ecosystem--cards .h4c-ecosystem__link {
  min-height: 130px;
  padding: 20px;
  align-content: start;
}

.h4c.h4c-ecosystem--cards .h4c-ecosystem__name {
  font-family: var(--h4c-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (min-width: 720px) {
  .h4c .h4c-ecosystem__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .h4c .h4c-ecosystem__list {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

/* ---------- liczby ---------- */
.h4c .h4c-stats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--h4c-gap);
}

.h4c .h4c-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  text-align: center;
}

.h4c .h4c-stats__num {
  font-family: var(--h4c-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--h4c-accent);
}

.h4c .h4c-stats__label {
  max-width: 22ch;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--h4c-mute);
}

@media (min-width: 720px) {
  .h4c .h4c-stats__list {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* ---------- do pobrania ---------- */
.h4c .h4c-downloads__list {
  display: grid;
  gap: max(14px, calc(var(--h4c-gap) * 0.7));
}

.h4c .h4c-download {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas: "icon body" "action action";
  align-items: center;
  gap: 14px 16px;
  padding: 16px 18px;
}

.h4c .h4c-download:hover {
  transform: none;
}

.h4c .h4c-download__icon {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--h4c-accent);
  background: var(--h4c-surface);
  border: 1px solid var(--h4c-line);
  border-radius: var(--h4c-radius);
}

.h4c .h4c-download__icon .h4c-ico {
  width: 24px;
  height: 24px;
}

.h4c .h4c-download__body {
  grid-area: body;
  min-width: 0;
}

.h4c .h4c-download__title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  font-family: var(--h4c-font);
  letter-spacing: 0;
  text-transform: none;
}

.h4c .h4c-download__info {
  margin-top: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--h4c-accent);
}

.h4c .h4c-download__desc,
.h4c .h4c-download__note {
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--h4c-mute);
}

.h4c .h4c-download__action {
  grid-area: action;
}

.h4c .h4c-download__action .h4-btn {
  width: 100%;
}

@media (min-width: 720px) {
  .h4c .h4c-download {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "icon body action";
    padding: 18px 22px;
  }

  .h4c .h4c-download__action .h4-btn {
    width: auto;
  }
}

/* ---------- ikony społecznościowe ---------- */
.h4c-social {
  --h4c-ico: 22px;
  color: inherit;
}

.h4c .h4c-social__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.h4c .h4c-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-width: 44px;
  min-height: 44px;
  color: var(--h4c-text);
  text-decoration: none;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.h4c .h4c-social__link:hover {
  color: var(--h4c-accent);
  background: var(--h4c-surface);
}

.h4c .h4c-social__link .h4c-ico {
  width: var(--h4c-ico);
  height: var(--h4c-ico);
}

.h4c .h4c-social.has-labels .h4c-social__link {
  padding: 0 14px 0 12px;
  border-radius: 999px;
}

.h4c .h4c-social__label {
  font-weight: 600;
}

/* ---------- strony pojedyncze ---------- */
.h4c .h4c-single__figure {
  margin-bottom: var(--h4c-gap);
}

.h4c .h4c-single__figure img {
  width: 100%;
  border-radius: var(--h4c-radius);
}

.h4c .h4c-single__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--h4c-gap);
  margin-bottom: var(--h4c-gap);
}

.h4c .h4c-single__top .h4c-event__date {
  grid-area: auto;
  width: 120px;
  min-height: 120px;
}

.h4c .h4c-single__top .h4c-event__day {
  font-size: 3.4rem;
}

.h4c .h4c-single__note {
  margin: var(--h4c-gap) 0;
  color: var(--h4c-mute);
}

.h4c .h4c-single__note a {
  color: var(--h4c-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.h4c .h4c-single__actions {
  margin: 0 0 var(--h4c-gap);
}

.h4c.h4c-single--member,
.h4c.h4c-single--release {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: calc(var(--h4c-gap) * 1.4);
}

.h4c .h4c-single__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--h4c-gap);
  min-width: 0;
}

.h4c .h4c-single__main > .h4c-facts,
.h4c .h4c-single__main > .h4c-audio,
.h4c .h4c-single__main > .h4c-yt {
  width: 100%;
  max-width: 640px;
}

.h4c .h4c-single__role {
  font-family: var(--h4c-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h4c-accent);
}

.h4c .h4c-single__lead {
  max-width: 56ch;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
}

.h4c .h4c-single__figure--person img,
.h4c .h4c-single__figure--person .h4c-ph {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}

.h4c .h4c-single__figure--square img,
.h4c .h4c-single__figure--square .h4c-ph {
  aspect-ratio: 1;
  object-fit: cover;
}

.h4c.h4c-single--festival > .h4c-facts-strip,
.h4c.h4c-single--festival > .h4c-facts {
  margin-bottom: var(--h4c-gap);
}

.h4c.h4c-single--festival > .h4c-festival__cta {
  margin: 0 0 var(--h4c-gap);
}

.h4c.h4c-single--album .h4c-event__meta {
  margin: 0 0 var(--h4c-gap);
}

.h4c.h4c-single > .h4c + .h4c,
.h4c.h4c-single > .h4c-prose + .h4c {
  margin-top: calc(var(--h4c-gap) * 2);
}

@media (min-width: 720px) {
  .h4c .h4c-single__top {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .h4c.h4c-single--member,
  .h4c.h4c-single--release {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 960px) {
  .h4c.h4c-single--member,
  .h4c.h4c-single--release {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  }
}

@media (min-width: 1200px) {
  .h4c.h4c-single--member,
  .h4c.h4c-single--release {
    grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  }
}

/* ---------- czytelność mobile ---------- */
.h4c {
  font-size: 1.0625rem;
  line-height: 1.6;
}

.h4c .h4c-event__title,
.h4c .h4c-release__title,
.h4c .h4c-album__title,
.h4c .h4c-festival__title,
.h4c .h4c-member__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.h4c .h4c-press__meta,
.h4c .h4c-post__meta,
.h4c .h4c-album__meta,
.h4c .h4c-download__desc,
.h4c .h4c-download__note,
.h4c .h4c-audio__label {
  font-size: 0.95rem;
}

.h4c .h4c-credit,
.h4c .h4c-yt__note,
.h4c .h4c-gallery__credits {
  font-size: 0.85rem;
}

/* ---------- rail: przesuwane rzędy kart (włącza front.js: telefon albo klasa h4-rail) ---------- */
.h4c-rail {
  position: relative;
  min-width: 0;
}

.h4c-rail__btn,
.h4c-rail__bar {
  display: none;
}

.h4c-rail.is-rail {
  padding-bottom: 22px;
}

.h4c-rail.is-rail > .h4c-rail__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: max(14px, var(--h4c-gap));
  margin: 0;
  padding: 4px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.h4c-rail.is-rail > .h4c-rail__track::-webkit-scrollbar {
  display: none;
}

.h4c-rail.is-rail > .h4c-rail__track > * {
  flex: 0 0 82%;
  width: 82%;
  max-width: 82%;
  min-width: 0;
  scroll-snap-align: start;
}

.h4c-rail.is-rail > .h4c-rail__track:focus-visible {
  outline: 3px solid var(--h4c-accent);
  outline-offset: 2px;
}

.h4c-rail.is-rail > .h4c-rail__btn {
  position: absolute;
  top: calc(50% - 33px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.h4c-rail.is-rail > .h4c-rail__btn:hover {
  background: #000;
  border-color: #fff;
}

.h4c-rail.is-rail > .h4c-rail__btn:focus-visible {
  outline: 3px solid var(--h4c-accent);
  outline-offset: 2px;
}

.h4c-rail.is-rail > .h4c-rail__btn.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.h4c-rail__btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h4c-rail__btn--prev {
  left: 4px;
}

.h4c-rail__btn--next {
  right: 4px;
}

.h4c-rail.is-rail::before,
.h4c-rail.is-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 22px;
  z-index: 2;
  width: 28px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.h4c-rail.is-rail::before {
  left: 0;
  background: linear-gradient(90deg, var(--h4c-bg), rgba(0, 0, 0, 0));
}

.h4c-rail.is-rail::after {
  right: 0;
  background: linear-gradient(270deg, var(--h4c-bg), rgba(0, 0, 0, 0));
}

.h4c-rail.is-rail.can-prev::before,
.h4c-rail.is-rail.can-next::after {
  opacity: 1;
}

.h4c-rail.is-rail > .h4c-rail__bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  height: 3px;
  overflow: hidden;
  background: var(--h4c-line);
  border-radius: 2px;
}

.h4c-rail.is-rail.is-static > .h4c-rail__bar,
.h4c-rail.is-rail.is-static > .h4c-rail__btn {
  display: none;
}

.h4c-rail__thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: var(--h4c-red);
  border-radius: 2px;
}

@media (min-width: 480px) {
  .h4c-rail.is-rail > .h4c-rail__track > * {
    flex-basis: 56%;
    width: 56%;
    max-width: 56%;
  }
}

@media (min-width: 720px) {
  .h4c-rail.is-rail > .h4c-rail__track > * {
    flex-basis: 42%;
    width: 42%;
    max-width: 42%;
  }
}

@media (min-width: 960px) {
  .h4c-rail.is-rail > .h4c-rail__track > * {
    flex-basis: 31%;
    width: 31%;
    max-width: 31%;
  }
}

/* ---------- zwijanie długich tekstów i "Pokaż więcej" ---------- */
.is-collapsible {
  position: relative;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.is-collapsible.is-collapsed {
  max-height: var(--h4c-collapse-h, 20em);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 5.5em), transparent);
  mask-image: linear-gradient(#000 calc(100% - 5.5em), transparent);
}

.h4c-collapse__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  margin-top: 12px;
  padding: 0.5em 1.3em;
  font-family: var(--h4-font-display, "Barlow Condensed", "Arial Narrow", sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--h4-text, #fff);
  background: transparent;
  border: 2px solid var(--h4-line, rgba(255, 255, 255, 0.2));
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.h4c-collapse__btn:hover {
  border-color: var(--h4-accent, #e0343f);
  background: var(--h4-surface, rgba(255, 255, 255, 0.07));
}

.h4c-collapse__btn:focus-visible {
  outline: 3px solid var(--h4-accent, #e0343f);
  outline-offset: 3px;
}

.h4c-collapse__btn svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.h4c-collapse__btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.h4c-events__list.is-trimmed > .is-extra {
  display: none;
}

.h4c .h4c-showmore {
  display: flex;
  justify-content: center;
}

/* ---------- ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  .h4c *,
  .h4c *::before,
  .h4c *::after,
  .h4c-lightbox,
  .h4c-lightbox * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .h4c .h4c-card:hover,
  .h4c .h4c-yt__play:hover .h4c-yt__btn {
    transform: none !important;
  }
}
