/* SKY PONG – strona główna: SKY Events + Poznaj Sky Pong (SPBF 0.15) */
.spbf-home { background: var(--sp-green, #0B3931); color: var(--sp-cream, #F3EBDD); }
.spbf-hx { position: relative; overflow: hidden; isolation: isolate; }
.spbf-hx + .spbf-hx { border-top: 1px solid rgba(243,235,221,.12); }
.spbf-hx__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; filter: blur(28px) saturate(1.1); transform: scale(1.15); opacity: .38; }
.spbf-hx__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,57,49,.96) 0%, rgba(11,57,49,.78) 55%, rgba(11,57,49,.55) 100%); }
.spbf-hx__bg--photo { filter: none; transform: none; opacity: 1; }
.spbf-hx__bg--photo::after { background: linear-gradient(90deg, rgba(11,57,49,.95) 0%, rgba(11,57,49,.86) 50%, rgba(11,57,49,.72) 100%); }

.spbf-hx__viewport { overflow: hidden; }
.spbf-hx__viewport { transition: height .45s ease; }
.spbf-hx__track { display: flex; align-items: flex-start; transition: transform .6s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.spbf-hx__slide { position: relative; flex: 0 0 100%; min-width: 100%; isolation: isolate; overflow: hidden; }

.spbf-hx__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas: "head media" "body media";
  grid-template-rows: auto 1fr;
  column-gap: clamp(36px, 6vw, 92px);
  align-items: start;
  padding-block: 28px 44px;
  align-content: center;
}
.spbf-hx__slide--16x9 .spbf-hx__grid,
.spbf-hx--about .spbf-hx__grid.is-wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.spbf-hx__head { grid-area: head; align-self: end; }
.spbf-hx__body { grid-area: body; }
.spbf-hx__media { grid-area: media; align-self: center; margin: 0; position: relative; justify-self: center; width: 100%; }
.spbf-hx__media--4x5 { max-width: min(400px, calc((100svh - var(--sp-header-height, 82px) - 150px) * .8)); }
.spbf-hx__media--16x9 { max-width: min(100%, calc((100svh - var(--sp-header-height, 82px) - 150px) * 1.778)); }

.spbf-hx__badge {
  display: inline-block; margin: 0 0 14px; padding: 7px 14px;
  border: 1.5px solid var(--sp-orange, #FD5526); border-radius: 999px;
  color: var(--sp-orange, #FD5526); font-family: var(--sp-copy, Jost, sans-serif);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
}
.spbf-hx__title {
  margin: 0 0 14px; font-family: var(--sp-display, "Arial Black", sans-serif); font-weight: 400;
  text-transform: uppercase; line-height: .98; letter-spacing: -.005em; color: var(--sp-cream, #F3EBDD);
  font-size: clamp(30px, 3.7vw, 54px); overflow-wrap: anywhere; hyphens: auto;
}
.spbf-hx__title--xl { font-size: clamp(48px, 6.4vw, 92px); line-height: .9; }
.spbf-hx__tag {
  margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--sp-orange, #FD5526);
  color: var(--sp-orange, #FD5526); font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; line-height: 1.3;
}
.spbf-hx__text { max-width: 560px; font-size: 16px; line-height: 1.5; color: rgba(243,235,221,.86); }
.spbf-hx__text p { margin: 0 0 6px; }
.spbf-hx__text p:last-child { margin-bottom: 0; }
.spbf-hx__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(243,235,221,.18); }
.spbf-hx__btn { min-height: 46px; padding-inline: 26px; }
.spbf-hx__ghost {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid rgba(243,235,221,.55); color: var(--sp-cream, #F3EBDD); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; font-size: 14px; transition: border-color .2s, background .2s;
}
.spbf-hx__ghost:hover { border-color: var(--sp-cream, #F3EBDD); background: rgba(243,235,221,.08); }
.spbf-hx__more { color: rgba(243,235,221,.75); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.spbf-hx__more:hover { color: var(--sp-cream, #F3EBDD); }
.spbf-hx__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.spbf-hx__stats li { padding: 10px 14px; border: 1px solid rgba(243,235,221,.2); border-radius: 10px; background: rgba(243,235,221,.04); }
.spbf-hx__stats b { display: block; font-family: var(--sp-display, "Arial Black", sans-serif); font-weight: 400; color: var(--sp-orange, #FD5526); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.05; text-transform: uppercase; white-space: nowrap; }
.spbf-hx__stats span { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,235,221,.7); }

/* Ramka mediów */
.spbf-hx__frame {
  position: relative; overflow: hidden; border: 3px solid var(--sp-orange, #FD5526); border-radius: 16px;
  background: #0a2a24; box-shadow: 18px 18px 0 rgba(0,0,0,.32); aspect-ratio: 4 / 5;
}
.spbf-hx__media--16x9 .spbf-hx__frame { aspect-ratio: 16 / 9; }
.spbf-hx--events .spbf-hx__frame > img { object-position: 50% 0; }
.spbf-hx__frame > video, .spbf-hx__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spbf-hx__label {
  position: absolute; left: -16px; bottom: -20px; z-index: 3; max-width: calc(100% - 20px);
  padding: 12px 20px; background: var(--sp-orange, #FD5526); color: var(--sp-cream, #F3EBDD);
  font-family: var(--sp-display, "Arial Black", sans-serif); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
  box-shadow: 6px 6px 0 rgba(0,0,0,.25);
}

/* Pokaz zdjęć */
.spbf-hx__show .spbf-hx__sl { opacity: 0; transition: opacity .9s ease; }
.spbf-hx__show .spbf-hx__sl.is-on { opacity: 1; }
.spbf-hx__show { touch-action: pan-y; }
.spbf-hx__sarrow {
  position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%;
  background: rgba(11,57,49,.72); color: var(--sp-cream, #F3EBDD); font-size: 26px; line-height: 40px; cursor: pointer; opacity: 0; transition: opacity .25s, background .2s;
}
.spbf-hx__show:hover .spbf-hx__sarrow, .spbf-hx__sarrow:focus-visible { opacity: 1; }
.spbf-hx__sarrow:hover { background: var(--sp-orange, #FD5526); }
.spbf-hx__sarrow--prev { left: 12px; } .spbf-hx__sarrow--next { right: 12px; }
.spbf-hx__sdots { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: flex; gap: 6px; }
.spbf-hx__sdots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(243,235,221,.5); transition: background .2s, width .2s; }
.spbf-hx__sdots i.is-on { width: 22px; border-radius: 4px; background: var(--sp-orange, #FD5526); }

/* Przełącznik w linii etykiety slajdu */
.spbf-hx__top { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 0 0 14px; }
.spbf-hx__top .spbf-hx__badge { margin: 0; }
.spbf-hx__pager {
  display: inline-flex; align-items: center; padding: 0 3px; border: 1.5px solid var(--sp-orange, #FD5526); border-radius: 999px;
  color: var(--sp-orange, #FD5526); font-size: 12px; font-weight: 600; letter-spacing: .1em; line-height: 1;
}
.spbf-hx__count { padding: 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spbf-hx__arrow {
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--sp-orange, #FD5526); font-size: 19px; line-height: 22px; cursor: pointer; transition: color .2s, background .2s;
}
.spbf-hx__arrow:hover, .spbf-hx__arrow:focus-visible { color: var(--sp-cream, #F3EBDD); background: var(--sp-orange, #FD5526); outline: none; }

@media (max-width: 900px) {
  .spbf-hx__grid, .spbf-hx__slide--16x9 .spbf-hx__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "media" "body";
    grid-template-rows: auto;
    min-height: 0; padding-block: 16px 28px; row-gap: 0;
  }
  .spbf-hx__top { margin-bottom: 8px; gap: 6px; flex-wrap: nowrap; }
  .spbf-hx__top .spbf-hx__badge { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .spbf-hx__opt { display: none; }
  .spbf-hx__pager { flex: 0 0 auto; }
  .spbf-hx__pager { font-size: 10px; }
  .spbf-hx__arrow { width: 22px; height: 20px; font-size: 17px; line-height: 18px; }
  .spbf-hx__head { align-self: start; }
  .spbf-hx__badge { margin-bottom: 8px; padding: 5px 10px; font-size: 10px; letter-spacing: .1em; }
  .spbf-hx__title { margin-bottom: 12px; font-size: clamp(24px, 7vw, 32px); }
  .spbf-hx__title--xl { font-size: clamp(38px, 12vw, 52px); }
  .spbf-hx__media { margin: 0 0 22px; }
  .spbf-hx__media--4x5 { max-width: min(90%, 340px, calc((100svh - 70px - 210px) * .8)); }
  .spbf-hx__media--16x9 { max-width: 100%; }
  .spbf-hx__frame { box-shadow: 8px 8px 0 rgba(0,0,0,.3); border-width: 2px; border-radius: 12px; }
  .spbf-hx__label { left: -8px; bottom: -12px; font-size: 10px; padding: 7px 11px; }
  .spbf-hx__tag { font-size: 16px; margin-bottom: 8px; padding-left: 12px; }
  .spbf-hx__text { font-size: 15px; line-height: 1.45; }
  .spbf-hx__cta { margin: 14px 0 14px; padding-bottom: 14px; gap: 8px 10px; }
  .spbf-hx__btn, .spbf-hx__ghost { flex: 1 1 0; justify-content: center; min-height: 42px; padding-inline: 12px; font-size: 13px; white-space: nowrap; }
  .spbf-hx__more { flex: 0 0 auto; font-size: 13px; }
  .spbf-hx__stats { gap: 6px; }
  .spbf-hx__stats li { padding: 8px 9px; border-radius: 8px; }
  .spbf-hx__stats b { font-size: 17px; }
  .spbf-hx__stats span { font-size: 9.5px; letter-spacing: .08em; margin-top: 3px; }
  .spbf-hx__sarrow { opacity: 1; width: 32px; height: 32px; margin-top: -16px; font-size: 20px; line-height: 30px; }
  .spbf-hx__sdots { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .spbf-hx__track, .spbf-hx__show .spbf-hx__sl { transition: none; }
}
