﻿/* =============================================================================
   BPM — base.css
   Tokeny kolorów i odstępów (:root), reset, typografia, .page-shell, klasy pomocnicze.
   Ładowany jako pierwszy arkusz na większości podstron.
   ============================================================================= */
    :root {
      --black-950: #030406;
      --text-main: #f7f4ee;
      --text-soft: #d6d1c8;
      --text-muted: #9f9a91;
      --text-faint: #6f6b65;
      --gold-main: #b8973a;
      --gold-light: #b8973a;
      --gold-dark: #b8973a;
      --purple-light: #b26cff;
      --font-sans: 'Inter', system-ui, sans-serif;
      --font-serif: 'Cormorant Garamond', serif;
      /* Jedna szerokość treści dla całej witryny (porównywalna z podstronami). */
      --site-content-max: 1320px;
      --site-content-wide: 1440px;
      --site-content-narrow: 1040px;
      --site-content-text: 760px;
      --site-content-pad-x: clamp(20px, 3.6vw, 48px);

      /*
        Spacing sekcji — bazowy rytm dla kolejnego etapu porządkowania podstron.
        Same tokeny i klasy pomocnicze nie zmieniają obecnego wyglądu, dopóki
        konkretna sekcja nie zostanie na nie przepięta.
      */
      --section-pad-y-compact: clamp(40px, 5.5vh, 72px);
      --section-pad-y: clamp(48px, 7vh, 96px);
      --section-pad-y-large: clamp(56px, 9vh, 112px);
      --section-pad-y-hero: clamp(48px, 8vh, 104px);
      --section-pad-y-cta: clamp(64px, 10vh, 120px);
      --section-gap: clamp(32px, 5vh, 64px);
      --section-gap-tight: clamp(20px, 3vh, 36px);
      --section-gap-wide: clamp(44px, 6vh, 80px);
      --section-header-gap: clamp(14px, 2vh, 24px);
      --section-block-gap: clamp(28px, 4vh, 52px);
      --section-header-max: 780px;
      --section-scroll-margin: 96px;
      /*
        Wysokość „chrome” nad pierwszym hero (pasek donacji + navbar).
        Używane do min-height hero na podstronach z main > article > section.page-section--hero.
      */
      --bpm-subpage-hero-chrome: calc(92px + 88px);
      /* H1 w pierwszej sekcji (hero) — jedna skala na całej witrynie */
      --hero-h1-font-family: var(--font-serif);
      --hero-h1-font-weight: 500;
      --hero-h1-font-size: clamp(36px, 4vw, 56px);
      --hero-h1-line-height: 1.08;
      --hero-h1-letter-spacing: -0.02em;
      /* H2–H5, tekst podstawowy — jedna skala (Cormorant / Inter) */
      --type-h2-font-family: var(--font-serif);
      --type-h2-font-size: clamp(28px, 3.2vw, 40px);
      --type-h2-font-weight: 600;
      --type-h2-line-height: 1.12;
      --type-h2-letter-spacing: -0.02em;
      --type-h3-font-family: var(--font-serif);
      --type-h3-font-size: clamp(20px, 2vw, 28px);
      --type-h3-font-weight: 600;
      --type-h3-line-height: 1.15;
      --type-h3-letter-spacing: -0.015em;
      --type-h4-font-family: var(--font-serif);
      --type-h4-font-size: clamp(17px, 1.65vw, 22px);
      --type-h4-font-weight: 600;
      --type-h4-line-height: 1.2;
      --type-h4-letter-spacing: -0.01em;
      --type-h5-font-family: var(--font-sans);
      --type-h5-font-size: 11px;
      --type-h5-font-weight: 700;
      --type-h5-line-height: 1.35;
      --type-h5-letter-spacing: 0.12em;
      --type-h5-text-transform: uppercase;
      --type-body-font-family: var(--font-sans);
      --type-body-font-size: 15px;
      --type-body-line-height: 1.65;
      --type-body-font-weight: 400;
      --type-body-sm-font-size: 13px;
      --type-body-sm-line-height: 1.55;
      --type-caption-font-size: 12px;
      --type-caption-line-height: 1.45;
      /* Mały nagłówek nad sekcją (np. „Enter the Map” jako h2) — zostaje h2 dla a11y */
      --type-kicker-font-family: var(--font-serif);
      --type-kicker-font-size: 13px;
      --type-kicker-font-weight: 700;
      --type-kicker-line-height: 1.35;
      --type-kicker-letter-spacing: 0.14em;
      --type-kicker-text-transform: uppercase;

      /* Motion — jedno miejsce na czas i easing (wartości jak w dotychczasowych transition) */
      --motion-ease: ease;
      --motion-carousel: 450ms cubic-bezier(0.25, 0.1, 0.22, 1);
      --motion-150: 150ms;
      --motion-160: 160ms;
      --motion-180: 180ms;
      --motion-200: 200ms;
      --motion-220: 220ms;
      --motion-260: 260ms;
      --motion-280: 280ms;

      /* Surfaces — cienie powtarzane 1:1 w kilku arkuszach */
      --shadow-ambient-soft: 0 8px 28px rgba(20, 14, 6, 0.06);
      --shadow-ambient-md: 0 10px 28px rgba(20, 14, 6, 0.08);
      --shadow-dark-lift: 0 8px 28px rgba(0, 0, 0, 0.35);
      --shadow-nav-ledger: 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 26px rgba(20, 14, 6, 0.08);

      /* Promienie — skala z istniejących pikseli (bez zmiany wyglądu) */
      --radius-2: 2px;
      --radius-4: 4px;
      --radius-6: 6px;
      --radius-8: 8px;
      --radius-10: 10px;
      --radius-12: 12px;
      --radius-14: 14px;
      --radius-16: 16px;
      --radius-18: 18px;
      --radius-20: 20px;
      --radius-22: 22px;
      --radius-pill: 999px;

      /* Złote kreski akcentu (np. adv-s2__rule) — jedna szerokość bloku, grubość 1px, wspólny kolor */
      --ui-gold-hairline-h: 1px;
      --ui-gold-hairline-w: 2rem;
      --ui-gold-hairline-bg: var(--gold-main);
      --ui-gold-hairline-soft: rgba(184, 151, 58, 0.5);
      --ui-gold-hairline-vertical: rgba(184, 151, 58, 0.5);

      /*
        Naprzemienne tła sekcji — wyłącznie odcienie już obecne w witrynie
        (homepage sections.css, about / founding / documentary / gallery itd.).
      */
      --surface-cream-a: #f9f6f0;
      --surface-cream-b: #f9f7f2;
      --surface-cream-c: #f9f4e8;
      --surface-cream-d: #f8f5ee;
      --surface-cream-e: #fdfcf7;
      --surface-cream-f: #f5f1e9;
      --surface-cream-g: #f9f5eb;
      --surface-cream-h: #faf8f3;
      /*
        Krawędź między sąsiednimi paskami kremowymi.
        rgba(62,49,23,0.08) na jasnym tle antyaliasingiem wygląda jak cienka „czarna” smuga;
        złoty hairline trzyma czytelny podział bez tego efektu.
      */
      --cream-section-hairline: 1px solid rgba(184, 151, 58, 0.22);
      --surface-taupe: #e8e3d9;
      --surface-taupe-2: #e8e4dc;
      --surface-panel-soft: #f3efe7;
      --surface-stone: #ebe6dd;
      --surface-dark-a: #0d0d0d;
      --surface-dark-b: #0a0a0a;
      --surface-dark-c: #0e0c08;
    }

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

    html {
      background: #ede3d2;
      overscroll-behavior-y: none;
    }

    body {
      font-family: var(--font-sans);
      -webkit-font-smoothing: antialiased;
      background: #ede3d2;
      color: var(--text-main);
      overscroll-behavior-y: none;
    }

    body.modal-open {
      overflow: hidden;
    }

    /* Skip link — pierwszy focus na klawiaturze; widoczny dopiero po :focus-visible */
    .skip-link {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .skip-link:focus {
      position: fixed;
      left: 12px;
      top: 12px;
      z-index: 10001;
      width: auto;
      height: auto;
      margin: 0;
      padding: 12px 18px;
      overflow: visible;
      clip: auto;
      white-space: normal;
      border-radius: var(--radius-10);
      border: 1px solid rgba(69, 54, 27, 0.35);
      background: #f9f6f0;
      color: #2f2717;
      font-family: var(--type-body-font-family);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      box-shadow: var(--shadow-ambient-md);
    }

    .skip-link:focus-visible {
      outline: 2px solid var(--gold-main);
      outline-offset: 2px;
    }

    /* Honeypot dla formularzy (Brevo) — ukryte przed ludźmi, widoczne dla botów */
    .bpm-form-hp {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    #main-content {
      scroll-margin-top: var(--section-scroll-margin);
    }

    .page-shell {
      min-height: 100vh;
      height: auto;
      /* clip zamiast hidden: nie przerywa position:sticky dla navbara przy przewijaniu okna */
      overflow-x: clip;
      overflow-y: visible;
      background:
        radial-gradient(circle at 30% 40%, rgba(119, 84, 30, 0.08), transparent 28%),
        radial-gradient(circle at 84% 60%, rgba(104, 50, 170, 0.10), transparent 32%),
        var(--black-950);
    }

    /*
      Wspólne helpery layoutu sekcji.
      Na tym etapie są pasywne: istniejące sekcje zachowują swoje obecne klasy,
      a te helpery są gotowe do stopniowego przepinania podstron bez dużej regresji.
    */
    .page-section {
      --page-section-pad-top: var(--section-pad-y);
      --page-section-pad-bottom: var(--section-pad-y);
      position: relative;
      padding-block: var(--page-section-pad-top) var(--page-section-pad-bottom);
      scroll-margin-top: var(--section-scroll-margin);
    }

    .page-section--compact {
      --page-section-pad-top: var(--section-pad-y-compact);
      --page-section-pad-bottom: var(--section-pad-y-compact);
    }

    .page-section--large {
      --page-section-pad-top: var(--section-pad-y-large);
      --page-section-pad-bottom: var(--section-pad-y-large);
    }

    .page-section--hero {
      --page-section-pad-top: var(--section-pad-y-hero);
      --page-section-pad-bottom: var(--section-pad-y-hero);
    }

    .page-section--cta {
      --page-section-pad-top: var(--section-pad-y-cta);
      --page-section-pad-bottom: var(--section-pad-y-cta);
    }

    .page-section--flush-top {
      --page-section-pad-top: 0px;
    }

    .page-section--flush-bottom {
      --page-section-pad-bottom: 0px;
    }

    /*
      Pierwszy hero w article (gallery, about, advertising, documentary, OSBW, tap map, …):
      ta sama wysokość ramy (viewport − donation − nav) i wyśrodkowanie treści w pionie.
      Nie dotyczy index (brak article), enter-the-court / scoreboard / founding500 / court (inny markup).
    */
    @media (min-width: 881px) {
      main.page-shell > article > section.page-section.page-section--hero:first-of-type {
        --page-section-pad-top: clamp(18px, 2.8vh, 38px);
        --page-section-pad-bottom: clamp(16px, 2.6vh, 36px);
        min-height: calc(100svh - var(--bpm-subpage-hero-chrome));
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
      }

      main.page-shell > article > section.page-section.page-section--hero:first-of-type > :is(.page-inner, [class*='-inner'].page-inner) {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
      }
    }

    .page-inner {
      width: 100%;
      max-width: calc(var(--site-content-max) + var(--site-content-pad-x) + var(--site-content-pad-x));
      margin-inline: auto;
      padding-inline: var(--site-content-pad-x);
    }

    .page-inner--wide {
      max-width: calc(var(--site-content-wide) + var(--site-content-pad-x) + var(--site-content-pad-x));
    }

    .page-inner--narrow {
      max-width: calc(var(--site-content-narrow) + var(--site-content-pad-x) + var(--site-content-pad-x));
    }

    .page-inner--text {
      max-width: calc(var(--site-content-text) + var(--site-content-pad-x) + var(--site-content-pad-x));
    }

    /*
      Fallback kontenera sekcji:
      jeśli sekcja ma bezpośredni wrapper typu *-inner / *-wrap / *__shell
      bez klasy .page-inner, nadal trzyma globalną szerokość i osie treści.
    */
    .page-shell > section > :where(
      [class$='-inner'],
      [class*='-inner '],
      [class$='-wrap'],
      [class*='-wrap '],
      [class$='__shell'],
      [class*='__shell ']
    ):not(.page-inner) {
      width: 100%;
      max-width: calc(var(--site-content-max) + var(--site-content-pad-x) + var(--site-content-pad-x));
      margin-inline: auto;
      padding-inline: var(--site-content-pad-x);
      box-sizing: border-box;
    }

    .section-header {
      display: grid;
      gap: var(--section-header-gap);
      max-width: var(--section-header-max);
    }

    .section-header--center {
      margin-inline: auto;
      text-align: center;
      justify-items: center;
    }

    .section-header--split {
      max-width: none;
      grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
      align-items: end;
      column-gap: var(--section-gap-wide);
    }

    .section-header > * {
      min-width: 0;
    }

    .section-header + * {
      margin-top: var(--section-block-gap);
    }

    .section-stack {
      display: grid;
      gap: var(--section-block-gap);
    }

    .section-stack--tight {
      gap: var(--section-gap-tight);
    }

    .section-stack--wide {
      gap: var(--section-gap-wide);
    }

    /* Domyślna typografia w treści — specyficzność :where() = 0; klasy sectionowe nadpisują tylko kolor/margin.
       Zgodne rozmiary ustawiają tokeny --type-* / --hero-h1-* w :root. */
    :where(main.page-shell) h1 {
      font-family: var(--hero-h1-font-family);
      font-size: var(--hero-h1-font-size);
      font-weight: var(--hero-h1-font-weight);
      line-height: var(--hero-h1-line-height);
      letter-spacing: var(--hero-h1-letter-spacing);
      color: inherit;
    }

    :where(main.page-shell) h2 {
      font-family: var(--type-h2-font-family);
      font-size: var(--type-h2-font-size);
      font-weight: var(--type-h2-font-weight);
      line-height: var(--type-h2-line-height);
      letter-spacing: var(--type-h2-letter-spacing);
      color: inherit;
    }

    :where(main.page-shell) h3 {
      font-family: var(--type-h3-font-family);
      font-size: var(--type-h3-font-size);
      font-weight: var(--type-h3-font-weight);
      line-height: var(--type-h3-line-height);
      letter-spacing: var(--type-h3-letter-spacing);
      color: inherit;
    }

    :where(main.page-shell) h4 {
      font-family: var(--type-h4-font-family);
      font-size: var(--type-h4-font-size);
      font-weight: var(--type-h4-font-weight);
      line-height: var(--type-h4-line-height);
      letter-spacing: var(--type-h4-letter-spacing);
      color: inherit;
    }

    :where(main.page-shell) h5 {
      font-family: var(--type-h5-font-family);
      font-size: var(--type-h5-font-size);
      font-weight: var(--type-h5-font-weight);
      line-height: var(--type-h5-line-height);
      letter-spacing: var(--type-h5-letter-spacing);
      text-transform: var(--type-h5-text-transform);
      color: inherit;
    }

    :where(main.page-shell) p {
      font-family: var(--type-body-font-family);
      font-size: var(--type-body-font-size);
      line-height: var(--type-body-line-height);
      font-weight: var(--type-body-font-weight);
      color: inherit;
    }

    :where(main.page-shell) li {
      font-family: var(--type-body-font-family);
      font-size: var(--type-body-font-size);
      line-height: var(--type-body-line-height);
    }

    :where(main.page-shell) blockquote {
      font-family: var(--type-body-font-family);
      font-size: var(--type-body-font-size);
      line-height: var(--type-body-line-height);
      font-weight: var(--type-body-font-weight);
      color: inherit;
    }

    :where(main.page-shell) figcaption {
      font-family: var(--type-body-font-family);
      font-size: var(--type-caption-font-size);
      line-height: var(--type-caption-line-height);
    }

    /* Cienka złota kreska pod nagłówkami sekcji H2 — wyrównanie modyfikatorami. */
    .page-h2-rule {
      display: block;
      width: var(--ui-gold-hairline-w);
      height: 0;
      min-height: 0;
      border: 0;
      border-top: 1px solid var(--ui-gold-hairline-soft);
      background: none;
      padding: 0;
      flex-shrink: 0;
      box-sizing: border-box;
      margin: clamp(8px, 1.2vh, 14px) 0 clamp(12px, 1.8vh, 20px);
    }

    .page-h2-rule--align-start {
      margin-left: 0;
      margin-right: auto;
    }

    .page-h2-rule--align-center {
      margin-left: auto;
      margin-right: auto;
    }

    .page-h2-rule--align-end {
      margin-left: auto;
      margin-right: 0;
    }

    /* Mikrokreska (karty, etykiety): ta sama szerokość / kolor / grubość co .page-h2-rule, bez domyślnych marginesów sekcji. */
    .page-h2-rule--inline {
      display: block;
      width: var(--ui-gold-hairline-w);
      height: 0;
      min-height: 0;
      border: 0;
      border-top: 1px solid var(--ui-gold-hairline-soft);
      background: none;
      padding: 0;
      flex-shrink: 0;
      box-sizing: border-box;
      margin: 0;
    }

    /* Dłuższa miękka kreska pod H1 (jak .gal-rule w galerii: max 12rem). */
    .page-h1-rule {
      display: block;
      height: var(--ui-gold-hairline-h);
      margin: clamp(12px, 1.8vh, 18px) 0 clamp(14px, 2vh, 22px);
      padding: 0;
      width: 100%;
      max-width: 12rem;
      background: var(--ui-gold-hairline-soft);
      border: none;
      box-sizing: border-box;
      flex-shrink: 0;
    }

    .page-h1-rule--align-start {
      margin-left: 0;
      margin-right: auto;
    }

    .page-h1-rule--align-center {
      margin-left: auto;
      margin-right: auto;
    }

    .page-h1-rule--align-end {
      margin-left: auto;
      margin-right: 0;
    }

    /* Custom cursor — globalnie (hero.css tylko na index); bez position:fixed podstrony rozpychały transform z app.js. */
    .cursor-dot,
    .cursor-ring {
      position: fixed;
      left: 0;
      top: 0;
      pointer-events: none;
      z-index: 1000;
      transform: translate(-50%, -50%);
    }

    .cursor-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(184, 151, 58, 0.95);
    }

    .cursor-ring {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1px solid rgba(184, 151, 58, 0.62);
      transition: width var(--motion-160) var(--motion-ease), height var(--motion-160) var(--motion-ease), border-color var(--motion-160) var(--motion-ease);
    }

    body.cursor-hover .cursor-ring {
      width: 44px;
      height: 44px;
      border-color: rgba(184, 151, 58, 0.92);
    }

    .welcome-modal {
      position: fixed;
      inset: 0;
      z-index: 1200;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(16px, 3vw, 28px);
    }

    .welcome-modal[aria-hidden='true'] {
      display: none;
    }

    .welcome-modal__backdrop {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 50% 30%, rgba(126, 83, 28, 0.24), transparent 32%),
        rgba(7, 6, 4, 0.72);
      backdrop-filter: blur(8px);
    }

    .welcome-modal__dialog {
      position: relative;
      width: min(100%, 560px);
      padding: clamp(28px, 4vw, 42px);
      border-radius: var(--radius-18);
      border: 1px solid rgba(184, 151, 58, 0.34);
      background: linear-gradient(180deg, rgba(26, 20, 13, 0.96), rgba(16, 12, 8, 0.98));
      box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
      text-align: center;
    }

    .welcome-modal__close {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 42px;
      height: 42px;
      border: 1px solid rgba(184, 151, 58, 0.34);
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.04);
      color: #f7f4ee;
      font-size: 28px;
      line-height: 1;
      cursor: pointer;
    }

    .welcome-modal__eyebrow {
      margin: 0 0 12px;
      font-size: var(--type-caption-font-size);
      line-height: var(--type-caption-line-height);
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(184, 151, 58, 0.9);
    }

    .welcome-modal__title {
      margin: 0;
      font-family: var(--type-h2-font-family);
      font-size: clamp(30px, 4vw, 46px);
      line-height: 1.08;
      letter-spacing: -0.03em;
      color: #f7f4ee;
    }

    .welcome-modal__body {
      margin: 18px auto 0;
      max-width: 34ch;
      color: rgba(247, 244, 238, 0.8);
    }

    .welcome-modal__action {
      margin-top: 24px;
      min-width: 220px;
      min-height: 48px;
      padding: 0 24px;
      border: none;
      border-radius: var(--radius-pill);
      background: var(--gold-main);
      color: #ffffff;
      font-family: var(--type-body-font-family);
      font-size: var(--type-body-sm-font-size);
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      cursor: pointer;
    }

    @media (max-width: 640px) {
      .welcome-modal__dialog {
        padding: 24px 18px 22px;
      }

      .welcome-modal__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
      }

      .welcome-modal__action {
        width: 100%;
        min-width: 0;
      }
    }

/* Full-viewport image lightbox (delegated from #main-content) */
body.bpm-lightbox-open {
  overflow: hidden;
  touch-action: none;
}

.bpm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(16px, env(safe-area-inset-top, 0px) + 8px)
    max(16px, env(safe-area-inset-right, 0px) + 8px)
    max(16px, env(safe-area-inset-bottom, 0px) + 8px)
    max(16px, env(safe-area-inset-left, 0px) + 8px);
  margin: 0;
  border: 0;
  background: rgba(8, 6, 4, 0.92);
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
}

.bpm-lightbox[hidden] {
  display: none !important;
}

.bpm-lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: min(96vw, 1400px);
  max-height: 100%;
  cursor: default;
}

.bpm-lightbox__img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(78vh, calc(100dvh - 9rem));
  object-fit: contain;
  cursor: default;
  border-radius: 2px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.bpm-lightbox__caption {
  margin: 0;
  padding: 0 12px 4px;
  max-width: 42rem;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff7e8;
}

.bpm-lightbox__caption[hidden] {
  display: none !important;
}

.bpm-lightbox__close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(237, 227, 210, 0.95);
  color: #2a2118;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.bpm-lightbox__close:hover {
  background: #f5efe3;
}

.bpm-lightbox__close:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

#main-content img[src]:not([src^="data:"]) {
  cursor: zoom-in;
}

#main-content .navbar img,
#main-content .site-footer img {
  cursor: default;
}

/*
  Section scroll reveal (see window.BPM.initSectionReveal in app.js).
  Wyłączenie na pojedynczej stronie — jeden atrybut:
    <html data-section-reveal="off">
  lub na <body> / <main id="main-content">.
  Alternatywa (przed app.js): window.BPM_SECTION_REVEAL = false;

  Tylko opacity (bez translate): translate3d + osobne warstwy composited obok siebie
  dawały subpikselowe „szczeliny” — na ciemnym .page-shell wyglądały jak cienkie czarne
  paski (Full HD, zmiana szerokości okna). content-visibility: auto na sekcjach
  potęgowało efekt po powrocie scrolla.
*/
html.bpm-reveal-enabled [data-bpm-section-reveal]:not(.is-bpm-revealed) {
  opacity: 0;
}

html.bpm-reveal-enabled [data-bpm-section-reveal] {
  transition: opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

html.bpm-reveal-enabled [data-bpm-section-reveal].is-bpm-revealed {
  opacity: 1;
  content-visibility: visible;
}

html[data-section-reveal="off"] [data-bpm-section-reveal],
body[data-section-reveal="off"] [data-bpm-section-reveal],
#main-content[data-section-reveal="off"] [data-bpm-section-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.bpm-reveal-enabled [data-bpm-section-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   GLOBAL NAVBAR TEXT SIZE + ACTIVE PAGE INDICATOR
   Keep navbar visuals identical across all pages.
========================================================= */
.nav-menu {
  gap: clamp(12px, 1.15vw, 20px) !important;
}

.nav-link,
.nav-dropdown__trigger {
  position: relative !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.105em !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  padding: 13px 0 !important;
  white-space: nowrap !important;
}

.nav-dropdown__link {
  font-size: 0.68rem !important;
  letter-spacing: 0.1em !important;
}

.nav-link.is-active,
.nav-link[aria-current="page"],
.nav-dropdown.is-active > .nav-dropdown__trigger,
.nav-dropdown__trigger.is-active {
  color: #9b7629 !important;
}

.nav-link.is-active::after,
.nav-link[aria-current="page"]::after,
.nav-dropdown.is-active > .nav-dropdown__trigger::after,
.nav-dropdown__trigger.is-active::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 4px !important;
  width: 24px !important;
  height: 2px !important;
  transform: translateX(-50%) !important;
  border-radius: 999px !important;
  background: #b99031 !important;
}

.nav-link:hover,
.nav-dropdown__trigger:hover {
  color: #9b7629 !important;
}

@media (max-width: 900px) {
  .nav-link,
  .nav-dropdown__trigger {
    font-size: 0.76rem !important;
    padding: 12px 0 !important;
  }

  .nav-link.is-active::after,
  .nav-link[aria-current="page"]::after,
  .nav-dropdown.is-active > .nav-dropdown__trigger::after,
  .nav-dropdown__trigger.is-active::after {
    left: 0 !important;
    bottom: 4px !important;
    width: 28px !important;
    transform: none !important;
  }
}

/* =========================================================
   Donation / construction notice bar (jak enter-the-court)
========================================================= */
#main-content > #bpm-donation-bar {
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0;
}

#bpm-donation-bar {
  position: relative;
  z-index: 110;
  background: #0e0c08;
  color: #ffffff;
  padding: 14px 7vw;
  min-height: 92px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 2px 0 rgba(184, 151, 58, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(184, 151, 58, 0.28);
}

#bpm-donation-bar .bpm-donation-message {
  flex: 1 1 auto;
  text-align: left;
  color: #f5f0e4;
  letter-spacing: 0.02em;
}

#bpm-donation-bar .bpm-donation-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #d4af37 0%, #c8a033 55%, #b8973a 100%);
  color: #0e0c08;
  padding: 13px 28px;
  min-width: 360px;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.26);
  border: 1px solid rgba(255, 235, 160, 0.45);
}

#bpm-donation-bar .bpm-donation-heart {
  font-size: 30px;
  line-height: 1;
  color: #0e0c08;
}

#bpm-donation-bar .bpm-donation-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

#bpm-donation-bar .bpm-donation-main {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.045em;
  color: #0e0c08;
}

#bpm-donation-bar .bpm-donation-tagline {
  margin-top: 6px;
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-style: italic;
  font-size: 15px;
  font-weight: 600;
  color: rgba(14, 12, 8, 0.82);
}

@media (max-width: 767px) {
  #bpm-donation-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 14px;
    gap: 10px;
    min-height: 0;
    font-size: 13px;
    line-height: 1.42;
  }

  #bpm-donation-bar .bpm-donation-message {
    letter-spacing: 0.01em;
  }

  #bpm-donation-bar .bpm-donation-cta {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    align-self: stretch;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 14px;
    box-sizing: border-box;
  }

  #bpm-donation-bar .bpm-donation-heart {
    font-size: 22px;
  }

  #bpm-donation-bar .bpm-donation-main {
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  #bpm-donation-bar .bpm-donation-tagline {
    margin-top: 3px;
    font-size: 12px;
  }
}

/* Modal wyboru kwoty darowizny (Stripe) — nad lightboxem */
.bpm-donate-modal[hidden] {
  display: none !important;
}

.bpm-donate-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px) + 8px)
    max(16px, env(safe-area-inset-right, 0px) + 8px)
    max(16px, env(safe-area-inset-bottom, 0px) + 8px)
    max(16px, env(safe-area-inset-left, 0px) + 8px);
  box-sizing: border-box;
}

.bpm-donate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.55);
  cursor: pointer;
}

.bpm-donate-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  padding: clamp(22px, 4vw, 30px) clamp(20px, 4vw, 28px) 26px;
  background: #f9f6f0;
  color: #1a1712;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(184, 151, 58, 0.35);
  outline: none;
}

.bpm-donate-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 12, 8, 0.06);
  color: #2a2118;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.bpm-donate-modal__x:hover {
  background: rgba(14, 12, 8, 0.1);
}

.bpm-donate-modal__x:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

.bpm-donate-modal__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(1.45rem, 3.5vw, 1.75rem);
  font-weight: 600;
  margin: 0 36px 10px 0;
  letter-spacing: 0.02em;
}

.bpm-donate-modal__lead {
  font-family: var(--type-body-font-family, system-ui, sans-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4a4236;
  margin: 0 0 18px;
}

.bpm-donate-modal__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.bpm-donate-modal__chip {
  flex: 1 1 calc(50% - 10px);
  min-width: 0;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(184, 151, 58, 0.45);
  background: #fffdf8;
  color: #1a1712;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
}

.bpm-donate-modal__chip:hover {
  border-color: rgba(184, 151, 58, 0.85);
}

.bpm-donate-modal__chip.is-selected {
  background: linear-gradient(135deg, #d4af37 0%, #b8973a 100%);
  color: #0e0c08;
  border-color: rgba(255, 235, 160, 0.55);
}

.bpm-donate-modal__chip:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

.bpm-donate-modal__custom-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b5f4a;
  margin-bottom: 8px;
}

.bpm-donate-modal__custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.bpm-donate-modal__currency {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2a2118;
}

.bpm-donate-modal__input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(69, 54, 27, 0.25);
  font-size: 1.05rem;
  font-family: inherit;
  background: #fff;
}

.bpm-donate-modal__input:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 1px;
}

.bpm-donate-modal__err {
  font-size: 0.88rem;
  color: #9a3412;
  margin: 0 0 12px;
}

.bpm-donate-modal__submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-family: inherit;
  color: #0e0c08;
  background: linear-gradient(135deg, #d4af37 0%, #c8a033 55%, #b8973a 100%);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
}

.bpm-donate-modal__submit:hover {
  filter: brightness(1.03);
}

.bpm-donate-modal__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.bpm-donate-modal__ghost-form {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Modal Schedule a Call — Brevo schedule_call */
.bpm-schedule-modal[hidden] {
  display: none !important;
}

.bpm-schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px) + 8px)
    max(16px, env(safe-area-inset-right, 0px) + 8px)
    max(16px, env(safe-area-inset-bottom, 0px) + 8px)
    max(16px, env(safe-area-inset-left, 0px) + 8px);
  box-sizing: border-box;
}

.bpm-schedule-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.55);
  cursor: pointer;
}

.bpm-schedule-modal__panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 18px;
  padding: clamp(22px, 4vw, 30px) clamp(20px, 4vw, 28px) 26px;
  background: #f9f6f0;
  color: #1a1712;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(184, 151, 58, 0.35);
  outline: none;
}

.bpm-schedule-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 12, 8, 0.06);
  color: #2a2118;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.bpm-schedule-modal__x:hover {
  background: rgba(14, 12, 8, 0.1);
}

.bpm-schedule-modal__x:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

.bpm-schedule-modal__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(1.45rem, 3.5vw, 1.75rem);
  font-weight: 600;
  margin: 0 36px 10px 0;
  letter-spacing: 0.02em;
}

.bpm-schedule-modal__lead {
  font-family: var(--type-body-font-family, system-ui, sans-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4a4236;
  margin: 0 0 18px;
}

.bpm-schedule-modal__form {
  display: grid;
  gap: 0;
}

.bpm-schedule-modal__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b5f4a;
  margin: 0 0 8px;
}

.bpm-schedule-modal__label-hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: #8a7d68;
}

.bpm-schedule-modal__tz {
  font-family: var(--type-body-font-family, system-ui, sans-serif);
  font-size: 0.84rem;
  line-height: 1.5;
  color: #5c5346;
  margin: -4px 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(184, 151, 58, 0.22);
}

.bpm-schedule-modal__tz strong {
  font-weight: 600;
  color: #3d3528;
}

.bpm-schedule-modal__tz-live {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #6b5f4a;
}

.bpm-schedule-modal__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 0 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(69, 54, 27, 0.25);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.bpm-schedule-modal__input:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 1px;
}

.bpm-schedule-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bpm-schedule-modal__field .bpm-schedule-modal__input {
  margin-bottom: 14px;
}

.bpm-schedule-modal__err {
  font-size: 0.88rem;
  color: #9a3412;
  margin: 0 0 12px;
}

.bpm-schedule-modal__ok {
  font-size: 0.92rem;
  color: #166534;
  margin: 0 0 12px;
  line-height: 1.45;
}

.bpm-schedule-modal__submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-family: inherit;
  color: #0e0c08;
  background: linear-gradient(135deg, #d4af37 0%, #c8a033 55%, #b8973a 100%);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
}

.bpm-schedule-modal__submit:hover {
  filter: brightness(1.03);
}

.bpm-schedule-modal__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 480px) {
  .bpm-schedule-modal__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
