:root {
  --bg: #f7f3ec;
  --paper: #fffaf2;
  --ink: #171717;
  --muted: #756f66;
  --line: rgba(23, 23, 23, 0.12);
  --accent: #ff6a3d;
  --accent-2: #7c5cff;
  --accent-3: #10a77f;
  --dark: #111111;
  --white: #ffffff;
  --soft: rgba(255, 255, 255, 0.68);
  --shadow: 0 30px 90px rgba(18, 14, 10, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 106, 61, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(124, 92, 255, 0.15), transparent 30rem),
    radial-gradient(circle at 65% 75%, rgba(16, 167, 127, 0.12), transparent 32rem),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.25'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
}

.top-strip {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 236, 0.78);
  backdrop-filter: blur(20px);
}

.top-strip-inner,
.nav-inner,
.section,
.footer-inner,
.footer-contact {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.top-strip-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.top-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.4);
  transition: 0.2s ease;
}

.top-chip:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(23, 23, 23, 0.22);
}

.top-chip svg {
  flex: none;
}

.top-chip .flag-pl {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 236, 0.78);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 235px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--dark);
  color: var(--white);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(13px, -11px);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--accent-2);
  border-radius: 11px;
  transform: translate(-14px, 14px) rotate(18deg);
}

.brand-symbol {
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

/* Własne logo: bez ciemnego kafla i dekoracji — pokazujemy samą grafikę.
   Logo zawsze skalujemy do wysokości 64px; szerokość zależy od proporcji
   (prostokąt), chyba że obok stoi tekst marki — wtedy wymuszamy kwadrat. */
.brand-mark.has-logo {
  width: auto;
  height: 64px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

/* Logo z tekstem obok → kwadrat 64×64. */
.brand-mark.has-logo.is-square {
  width: 64px;
  height: 64px;
}

.brand-mark.has-logo::before,
.brand-mark.has-logo::after {
  display: none;
}

.footer-brand .brand-mark.has-logo {
  height: 46px;
  background: none;
}

.footer-brand .brand-mark.has-logo.is-square {
  width: 46px;
  height: 46px;
}

.brand-name {
  display: grid;
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.brand-name span:last-child {
  color: var(--muted);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 12px;
  margin-top: 5px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu a {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: #312d27;
  white-space: nowrap;
  transition: 0.22s ease;
}

.menu a:hover {
  background: var(--dark);
  color: var(--white);
}

/* Link „Panel" dla zalogowanego opiekuna/redaktora — wyróżniony akcentem. */
.menu a.menu-panel-link {
  font-weight: 600;
  color: var(--accent, #ff6a3d);
  box-shadow: inset 0 0 0 1.5px var(--accent, #ff6a3d);
}

.menu a.menu-panel-link:hover {
  background: var(--accent, #ff6a3d);
  color: var(--white);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.search-pill {
  width: 168px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 14px;
}

/* Na węższych ekranach (jeszcze przed wersją mobilną) chowamy pole
   szukania, aby sześć pozycji menu zmieściło się bez zawijania. */
@media (max-width: 1160px) {
  .search-pill {
    display: none;
  }
}

.search-pill input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.icon-btn {
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  cursor: pointer;
  transition: 0.22s ease;
}

.icon-btn:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
}

/* Ikona hamburgera rysowana w CSS (trzy idealnie równe kreski) —
   zamiast znaku „☰", który w zależności od fontu renderował się krzywo. */
.mobile-toggle .burger {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-toggle .burger::before,
.mobile-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-toggle .burger::before {
  top: -6px;
}

.mobile-toggle .burger::after {
  top: 6px;
}

.hero {
  width: min(1380px, calc(100% - 36px));
  margin: 30px auto 0;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 44px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(255, 250, 242, 0.72)),
    radial-gradient(circle at 28% 22%, rgba(255, 106, 61, 0.28), transparent 26rem),
    radial-gradient(circle at 82% 36%, rgba(124, 92, 255, 0.22), transparent 30rem),
    radial-gradient(circle at 62% 88%, rgba(16, 167, 127, 0.16), transparent 24rem);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-grid {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
}

.hero-copy {
  padding: clamp(34px, 5vw, 74px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.eyebrow-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.24);
}

.eyebrow-live {
  max-width: 100%;
  padding-right: 15px;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.eyebrow-live:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(23, 23, 23, 0.22);
  transform: translateY(-1px);
}

.eyebrow-live .eyebrow-dot {
  position: relative;
  width: 13px;
  height: 13px;
  flex: none;
  box-shadow: none;
  color: var(--accent);
  background: currentColor;
}

.eyebrow-live .eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: liveRing 2.6s ease-out infinite;
}

@keyframes liveRing {
  0% { transform: scale(0.55); opacity: 0.6; }
  100% { transform: scale(1.65); opacity: 0; }
}

.eyebrow-live-label {
  flex: none;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--accent);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.eyebrow-live-text {
  min-width: 0;
  max-width: min(58vw, 460px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3d3933;
  font-weight: 680;
  letter-spacing: -0.01em;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.eyebrow-live-text::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin-right: 9px;
  vertical-align: -1px;
  background: rgba(23, 23, 23, 0.18);
}

.eyebrow-live.is-out .eyebrow-live-label,
.eyebrow-live.is-out .eyebrow-live-text {
  opacity: 0;
  transform: translateY(5px);
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow-live .eyebrow-dot::after { animation: none; }
  .eyebrow-live-label,
  .eyebrow-live-text { transition: none; }
}

h1 {
  margin: 28px 0 20px;
  font-size: clamp(44px, 6.8vw, 98px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  max-width: 780px;
}

.hero-lead {
  max-width: 650px;
  color: #49443d;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.48;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.24s ease;
  font-weight: 760;
  letter-spacing: -0.02em;
  min-height: 52px;
}

.btn.primary {
  background: var(--dark);
  color: var(--white);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.18);
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--white);
  transform: translateY(-3px);
}

/* Akcja niedostępna — np. „Rezerwuj / Zadzwoń" dla wydarzenia, które już
   się odbyło. Przycisk pozostaje widoczny, ale jest wyszarzony i nieklikalny. */
.btn.is-disabled,
.big-link.is-disabled {
  opacity: 0.45;
  filter: grayscale(0.7);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

/* Notka informująca, że wydarzenie już się odbyło. */
.event-past-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* Rotator treści hero — slajdy nakładają się w jednej komórce siatki, więc
   wysokość trzyma najwyższy slajd (brak skoków przy zmianie), a przejście
   to płynny crossfade. */
.hero-rotator {
  display: grid;
}

.hero-rotator > .hero-slide {
  grid-area: 1 / 1;
  min-width: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* Punkt zaczepienia (np. #kalendarium) bez wpływu na układ. */
.section-anchor {
  display: block;
  height: 0;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
}

.mini-stat {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
}

.mini-stat strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.05em;
  margin-bottom: 5px;
}

.mini-stat span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.hero-stage {
  position: relative;
  min-height: 680px;
  border-left: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.stage-orbit {
  position: absolute;
  inset: 42px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.stage-orbit.two {
  inset: 105px 28px 90px 88px;
  transform: rotate(17deg);
  border-color: rgba(17, 17, 17, 0.1);
}

.stage-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  letter-spacing: -0.06em;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.15);
}

/* Dekoracyjne kształty hero odpowiadają 4 ścieżkom z sekcji „Program":
   kształt i kolor każdej grupy są takie same w obu miejscach.
   sport = fioletowe koło, teatr = pomarańczowy kwadrat,
   zajęcia = zielona pastylka, świetlice = złoty kwadrat. */
.shape.circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--accent-2);
  left: 54px;
  top: 86px;
  transform: rotate(-10deg);
  font-size: 34px;
}

.shape.square {
  width: 196px;
  height: 196px;
  border-radius: 42px;
  background: var(--accent);
  right: 68px;
  top: 146px;
  transform: rotate(9deg);
  font-size: 28px;
}

.shape.pill {
  width: 245px;
  height: 88px;
  border-radius: 999px;
  background: var(--accent-3);
  right: 30px;
  bottom: 240px;
  transform: rotate(-12deg);
  font-size: 28px;
}

.shape.tile {
  width: 156px;
  height: 156px;
  border-radius: 38px;
  background: #f0c247;
  color: var(--dark);
  left: 92px;
  bottom: 200px;
  transform: rotate(-8deg);
  font-size: 23px;
}

.featured-card {
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(20px);
  padding: 22px;
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.12);
}

/* Tytuł wyróżnionego wydarzenia jest odnośnikiem do strony wydarzenia. */
.featured-card h2 a {
  color: inherit;
  text-decoration: none;
}

.featured-card h2 a:hover,
.featured-card h2 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Kafelek ZE ZDJĘCIEM: plakat wydarzenia jest tłem całego kafelka, kadrowanym
   zawsze od góry (pionowy plakat pokazuje górną część). Treść leży na ciemnej
   winiecie, więc pozostaje czytelna na każdym zdjęciu. */
.featured-card.has-photo-bg {
  overflow: hidden;
  background: var(--dark);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  min-height: clamp(320px, 42vh, 470px);
  display: flex;
  flex-direction: column;
}

.featured-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.featured-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.featured-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.24) 0%, rgba(17, 17, 17, 0.5) 52%, rgba(17, 17, 17, 0.85) 100%);
}

.featured-card.has-photo-bg > *:not(.featured-bg) {
  position: relative;
  z-index: 1;
}

/* Treść (tytuł, opis, pasek dolny) dosunięta do dołu — jak na plakacie. */
.featured-card.has-photo-bg .featured-headline {
  margin-top: auto;
}

.featured-card.has-photo-bg h2 {
  color: var(--white);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
}

.featured-card.has-photo-bg p {
  color: rgba(255, 255, 255, 0.86);
}

.featured-card.has-photo-bg .featured-tag {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.featured-card.has-photo-bg .micro-info span {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.featured-card.has-photo-bg .featured-bottom {
  border-top-color: rgba(255, 255, 255, 0.24);
}

.featured-card.has-photo-bg .date-badge {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.featured-tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f1eadf;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-badge {
  width: 90px;
  min-width: 90px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: var(--dark);
  color: var(--white);
  text-align: center;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.date-badge small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.date-badge b {
  font-size: 42px;
}

.featured-card h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 3.5vw, 45px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.featured-card p {
  margin: 0;
  color: #514c44;
  line-height: 1.55;
  max-width: 520px;
}

/* Plakat wyróżnionego wydarzenia: zdjęcie główne, a gdy go brak — placeholder
   (kadr z gradientem marki + ikona zdjęcia). Na desktopie pełnej szerokości
   nad tytułem; na telefonie kompaktowa miniatura obok tytułu (patrz @media). */
.featured-headline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.featured-headline h2 {
  margin: 0;
}

.featured-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 230px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.64)),
    radial-gradient(circle at 24% 26%, var(--accent), transparent 60%),
    radial-gradient(circle at 78% 74%, var(--accent-2), transparent 62%);
}

.featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-media-icon {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.82);
}

.featured-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.micro-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.micro-info span {
  border-radius: 999px;
  padding: 9px 11px;
  background: rgba(17, 17, 17, 0.06);
  font-size: 13px;
  color: #3d3933;
}

/* Szybka akcja pod hero (rezerwacja sali) — element służy tylko
   pełnoekranowemu kafelkowi hero na telefonie i pojawia się wyłącznie,
   gdy rezerwacja sal jest włączona. Na desktopie pozostaje ukryty,
   bo hero ma tam osobny układ z mini-statystykami i sceną graficzną. */
.hero-quick-cta {
  display: none;
}

.quick-dock {
  width: min(var(--max), calc(100% - 36px));
  margin: -52px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dock-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  min-height: 160px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.24s ease;
  overflow: hidden;
  position: relative;
}

.dock-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.13);
}

.dock-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 112px;
  height: 112px;
  border-radius: 38px;
  background: rgba(255, 106, 61, 0.16);
  transform: rotate(18deg);
}

.dock-card:nth-child(2)::after { background: rgba(124, 92, 255, 0.16); }
.dock-card:nth-child(3)::after { background: rgba(16, 167, 127, 0.16); }
.dock-card:nth-child(4)::after { background: rgba(17, 17, 17, 0.1); }

.dock-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: var(--dark);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-family: var(--mono);
}

.dock-card h3 {
  margin: 18px 0 7px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.dock-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 14px;
}

.section {
  padding: 92px 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.45fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--accent);
  font-weight: 860;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 12px;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.section-note {
  color: var(--muted);
  line-height: 1.55;
  font-size: 16px;
}

.calendar-shell {
  border: 1px solid var(--line);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.55fr);
  gap: 18px;
}

.calendar-panel {
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.month-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.055em;
  font-size: 34px;
}

.month-title span {
  color: var(--muted);
  font-size: 17px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.month-controls {
  display: flex;
  gap: 8px;
}

.round-control {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: 0.22s ease;
}

.round-control:hover {
  background: var(--dark);
  color: var(--white);
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.week-row span {
  text-align: center;
  padding: 10px 0;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.day-btn {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 19px;
  font-weight: 860;
  letter-spacing: -0.04em;
  cursor: pointer;
  position: relative;
  transition: 0.22s ease;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 13px;
}

.day-btn:hover,
.day-btn.active {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.18);
}

.day-btn.muted {
  opacity: 0.32;
}

.day-btn.has-event::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 106, 61, 0.16);
}

.day-btn.active.has-event::after {
  background: var(--white);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18);
}

/* Dzień z kilkoma wydarzeniami: zamiast kropki pokazujemy licznik w rogu. */
.day-btn.has-many::after {
  display: none;
}

.day-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #2a1606;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.day-btn.active .day-count {
  background: var(--white);
  color: var(--dark);
}

/* Dzisiejszy dzień — pierścień w kolorze marki, widoczny w każdym widoku
   (także gdy dzień jest wybrany lub ma wydarzenie). */
.day-btn.is-today {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.day-btn.is-today:hover,
.day-btn.is-today.active {
  box-shadow: inset 0 0 0 2px var(--accent), 0 16px 34px rgba(17, 17, 17, 0.18);
}

/* Dni z wydarzeniami archiwalnymi (które już się odbyły) — szara kropka /
   szary licznik. Dzień nadal jest klikalny i prowadzi do treści wydarzenia. */
.day-btn.is-past.has-event::after {
  background: #9b958c;
  box-shadow: 0 0 0 5px rgba(123, 117, 107, 0.16);
}

.day-btn.is-past .day-count {
  background: #7c766d;
  color: var(--white);
}

/* Gdy archiwalny dzień jest wybrany (ciemny kafelek) — czytelna jasna kropka. */
.day-btn.is-past.active.has-event::after {
  background: var(--white);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.day-btn.is-past.active .day-count {
  background: var(--white);
  color: var(--dark);
}

.event-panel {
  border-radius: 28px;
  background: var(--dark);
  color: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  overflow: hidden;
  position: relative;
}

.event-panel::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  top: -80px;
  right: -70px;
}

.event-panel::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 48px;
  background: var(--accent);
  right: -40px;
  bottom: -42px;
  transform: rotate(18deg);
  opacity: 0.8;
}

.event-panel > * {
  position: relative;
  z-index: 2;
}

.event-kind {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--accent);
  color: #2a1606;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.event-date-large {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.event-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 720;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}

.event-meta-chip svg {
  flex: none;
  opacity: 0.72;
}

.event-date-large strong {
  font-size: 96px;
  line-height: 0.86;
  letter-spacing: -0.11em;
}

.event-date-large span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.event-panel h3 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.event-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.58;
}

/* Klikalne pola panelu (data, godzina, miejsce, tytuł) prowadzące do wydarzenia.
   Klasę „is-openable" nadaje skrypt tylko, gdy wydarzenie ma adres. */
.event-panel .is-openable {
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.event-panel .is-openable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.event-panel h3.is-openable:hover,
.event-panel h3.is-openable:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.event-panel .event-date-large.is-openable:hover strong,
.event-panel .event-date-large.is-openable:focus-visible strong {
  color: var(--accent);
}

.event-panel .event-meta-chip.is-openable:hover,
.event-panel .event-meta-chip.is-openable:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Autorotacja wielu wydarzeń tego samego dnia: płynne przejście treści.
   Układ: duża data po LEWEJ, obok (w prawej kolumnie) plakietka rodzaju,
   a pod nią chip godziny; lokalizacja w osobnym wierszu na CAŁEJ szerokości
   panelu — długie nazwy miejsc nie ściskają się w wąskiej kolumnie. */
.event-rotating {
  transition: opacity 0.26s ease, transform 0.26s ease;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
}

.event-rotating .event-kind {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  align-self: end;
  margin: 0 0 10px;
}

.event-rotating .event-date-large {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
}

/* Kontener chipów nie tworzy własnego pudełka — godzina i miejsce
   układają się bezpośrednio w siatce panelu. */
.event-rotating .event-meta {
  display: contents;
}

.event-rotating .event-chip-time {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: start;
}

.event-rotating .event-chip-place {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: stretch;
  margin-top: 12px;
}

.event-rotating h3,
.event-rotating p {
  grid-column: 1 / -1;
}

.event-rotating h3 {
  margin-top: 16px;
}

.event-rotating.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

/* Wskaźnik liczby wydarzeń dnia + ręczne przełączanie (kropki). */
.event-rotator {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}

.event-rotator-label {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.event-rotator-dots {
  display: inline-flex;
  gap: 7px;
}

.event-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.event-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.event-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  .event-rotating { transition: none; }
}

.event-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 9px 12px;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 13px;
}

.filter-chip.active,
.filter-chip:hover {
  background: var(--white);
  color: var(--dark);
}

.big-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 22px;
  background: var(--white);
  color: var(--dark);
  padding: 16px 18px;
  font-weight: 850;
  letter-spacing: -0.03em;
  transition: 0.22s ease;
}

.big-link:hover {
  transform: translateY(-3px);
}

.big-link span:last-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.08);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
}

.story-large,
.story-list,
.program-card,
.gallery-wall,
.contact-card,
.plain-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.story-large {
  padding: 22px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.story-large::before {
  content: "";
  position: absolute;
  inset: 22px 22px auto auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 106, 61, 0.13);
}

/* Kafelek ZE ZDJĘCIEM: fotografia najnowszego wpisu jest tłem całego kafelka,
   kadrowanym od góry. Treść leży na ciemnej winiecie — czytelna na każdym
   zdjęciu. Bez zdjęcia zostaje jasny kafelek z dekoracją (.story-visual). */
.story-large.has-photo-bg {
  background: var(--dark);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.story-large.has-photo-bg::before {
  display: none;
}

.story-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.story-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.3) 0%, rgba(17, 17, 17, 0.52) 55%, rgba(17, 17, 17, 0.84) 100%);
}

.story-large.has-photo-bg > *:not(.story-bg) {
  position: relative;
  z-index: 1;
}

.story-large.has-photo-bg h3 {
  color: var(--white);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
}

.story-large.has-photo-bg p {
  color: rgba(255, 255, 255, 0.86);
}

.story-large.has-photo-bg .story-meta {
  color: rgba(255, 255, 255, 0.92);
}

.story-large.has-photo-bg .story-meta span {
  background: rgba(255, 255, 255, 0.16);
}

.story-large.has-photo-bg .btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.story-visual {
  height: 250px;
  border-radius: 27px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.94), rgba(17, 17, 17, 0.72)),
    radial-gradient(circle at 25% 30%, var(--accent), transparent 12rem),
    radial-gradient(circle at 70% 70%, var(--accent-2), transparent 14rem);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.story-visual span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.story-visual span:nth-child(1) {
  width: 260px;
  height: 260px;
  left: 10%;
  top: -40%;
}

.story-visual span:nth-child(2) {
  width: 160px;
  height: 160px;
  right: 12%;
  bottom: -22%;
}

.story-visual span:nth-child(3) {
  width: 86px;
  height: 86px;
  left: 52%;
  top: 35%;
  background: var(--accent);
  border: 0;
  border-radius: 26px;
  transform: rotate(12deg);
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.story-meta span {
  border-radius: 999px;
  padding: 7px 9px;
  background: rgba(17, 17, 17, 0.06);
}

.story-large h3 {
  margin: 0 0 12px;
  font-size: clamp(27px, 3.5vw, 43px);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 680px;
}

.story-large p,
.story-list p,
.program-card p,
.plain-card p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.story-list {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.story-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid transparent;
  transition: 0.22s ease;
}

.story-item:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
  transform: translateX(4px);
}

.story-thumb {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.story-thumb::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--accent);
  right: -18px;
  top: -12px;
}

.story-thumb::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--accent-2);
  left: 12px;
  bottom: 10px;
  transform: rotate(14deg);
}

.story-item:nth-child(2) .story-thumb::before { background: var(--accent-2); }
.story-item:nth-child(2) .story-thumb::after { background: var(--accent-3); }
.story-item:nth-child(3) .story-thumb::before { background: var(--accent-3); }
.story-item:nth-child(3) .story-thumb::after { background: var(--accent); }
.story-item:nth-child(4) .story-thumb::before { background: #f0c247; }
.story-item:nth-child(4) .story-thumb::after { background: var(--accent-2); }

.story-item h4 {
  margin: 4px 0 8px;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.story-item p {
  font-size: 14px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.program-card {
  padding: 20px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: 0.24s ease;
  position: relative;
}

.program-card:hover {
  transform: translateY(-6px);
}

.program-card .num {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
}

.program-card h3 {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.program-card .mini-shape {
  width: 88px;
  height: 88px;
  border-radius: 30px;
  background: var(--accent);
  transform: rotate(12deg);
  box-shadow: 0 22px 42px rgba(17, 17, 17, 0.13);
}

.program-card:nth-child(2) .mini-shape { background: var(--accent-2); border-radius: 50%; }
.program-card:nth-child(3) .mini-shape { background: var(--accent-3); border-radius: 999px; width: 132px; }
.program-card:nth-child(4) .mini-shape { background: #f0c247; }

/* Wyrównanie kart programu: tytuły i opisy w jednej linii bazowej,
   niezależnie od tego, czy opis ma dwa czy trzy wiersze. */
@media (min-width: 721px) {
  .program-card h3 {
    display: flex;
    align-items: flex-end;
    min-height: 1.96em;
  }

  .program-card p {
    min-height: 4.74em;
  }
}

.split-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
}

.plain-card {
  padding: 28px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plain-card h3 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.links-stack {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.stack-link {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 780;
  transition: 0.22s ease;
}

.stack-link:hover {
  background: var(--dark);
  color: var(--white);
}

.gallery-wall {
  padding: 14px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  grid-auto-rows: 156px;
  gap: 12px;
  min-height: 520px;
}

.tile {
  border-radius: 26px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 18px;
  display: flex;
  align-items: flex-end;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tile::before {
  content: "";
  position: absolute;
  inset: auto auto -40px -36px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.86;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.tile span {
  position: relative;
  z-index: 2;
  max-width: 190px;
}

.tile.big {
  grid-row: span 2;
  font-size: 34px;
}

.tile.wide {
  grid-column: span 2;
  font-size: 28px;
}

.tile:nth-child(2) { background: #211d4d; }
.tile:nth-child(2)::before { background: var(--accent-2); }
.tile:nth-child(3) { background: #0f3c34; }
.tile:nth-child(3)::before { background: var(--accent-3); }
.tile:nth-child(4) { background: #3c2a13; }
.tile:nth-child(4)::before { background: #f0c247; }
.tile:nth-child(5) { background: #2a1b19; }
.tile:nth-child(5)::before { background: var(--accent); }

/* Kafelek „Zobacz więcej" — pojawia się, gdy galerii jest więcej niż
   pokazanych pięć. Wypełnia wolne miejsce w ścianie zdjęć (na desktopie dwa
   pola w ostatnim rzędzie) i prowadzi do pełnego archiwum galerii. */
.tile-more {
  grid-column: span 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tile-more::before,
.tile-more::after {
  display: none; /* Czysty kafelek CTA, bez dekoracyjnych kół. */
}

.tile-more .tile-more-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  max-width: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
  font-size: 27px;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease;
}

.tile-more .tile-more-label {
  max-width: none;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tile-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 106, 61, 0.32);
}

.tile-more:hover .tile-more-arrow {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

/* =====================================================================
   ZDJĘCIA NA STRONIE GŁÓWNEJ — przyciemniony kadr + dekoracyjne koła
   ---------------------------------------------------------------------
   Każde zdjęcie pokazywane na stronie głównej (kafle „Galerie i filmy",
   miniatury oraz duży kadr „Aktualności") dostaje ten sam motyw, co
   kafelki bez zdjęcia: lekko przyciemniony kadr z nałożonym, półprzezro-
   czystym wypełnionym kołem oraz obok obrysem koła. Dzięki temu zdjęcia
   są spójne z placeholderami sekcji galerii.
   ===================================================================== */

/* 1) Lekko przyciemniony kadr zdjęcia. */
#start .tile.has-photo img,
#start .story-thumb.has-photo img,
#start .story-visual.has-photo img {
  filter: brightness(0.72) saturate(1.02);
}

/* 2) Pokaż dekoracyjne kształty nad zdjęciem (domyślnie ukrywane dla
      .has-photo) i umieść je ponad kadrem (obrazek ma z-index:1). */
#start .tile.has-photo::before,
#start .tile.has-photo::after,
#start .story-thumb.has-photo::before,
#start .story-thumb.has-photo::after,
#start .story-visual.has-photo::before,
#start .story-visual.has-photo::after {
  display: block;
  content: "";
  z-index: 2;
}

/* 3) Wypełnione koło — półprzezroczyste, by zdjęcie prześwitywało.
      Kolor i położenie zostają z kafelka (różne odcienie kolejnych pozycji). */
#start .tile.has-photo::before,
#start .story-thumb.has-photo::before {
  opacity: 0.6;
}

/* Obrys koła nad zdjęciem — jaśniejsza, dobrze widoczna obwódka. */
#start .tile.has-photo::after {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Miniatura „Aktualności": drugi kształt (domyślnie kwadrat) zamieniamy na
   obrys koła — spójnie z motywem „wypełnione koło + obrys koła". */
#start .story-thumb.has-photo::after {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.62);
  background: none;
  transform: none;
}

/* Duży kadr „Aktualności" nie ma własnych kształtów — dorysowujemy je tu:
   wypełnione koło (lewy dół) oraz obrys koła (prawy góra). */
#start .story-visual.has-photo::before {
  position: absolute;
  inset: auto auto -38px -32px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

#start .story-visual.has-photo::after {
  position: absolute;
  inset: 18px 18px auto auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: none;
}

/* Tytuł na kafelku galerii zawsze nad kształtami i czytelny na zdjęciu. */
#start .tile.has-photo span {
  z-index: 3;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55);
}

/* Licznik zdjęć na kaflu galerii (sekcja „Galerie i filmy" na stronie
   głównej) — mała plakietka w rogu, nad zdjęciem i kształtami. */
.tile .tile-count {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 16px;
  max-width: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.2;
  text-shadow: none;
}

.contact-section {
  padding-bottom: 92px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-card {
  padding: 30px;
  min-height: 360px;
}

#szybkie-sprawy {
  scroll-margin-top: 104px;
}

.contact-card.dark {
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-card.dark::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -56px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-card h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
}

.contact-list {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.dark .contact-row {
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-row span:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.dark .contact-row span:first-child {
  color: rgba(255, 255, 255, 0.54);
}

.contact-row span:last-child {
  font-weight: 760;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

/* Klikalne dane (telefon, sekretariat, e-mail) w ciemnej karcie kontaktu.
   Ikona + stałe podkreślenie wartości jasno sygnalizują, że to odnośnik —
   numer od razu wygląda na klikalny (można zadzwonić). */
.contact-tel {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.contact-tel svg {
  flex: none;
  opacity: 0.8;
}

.contact-tel-text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.18s ease;
}

.contact-tel:hover,
.contact-tel:focus-visible {
  color: var(--accent);
}

.contact-tel:hover .contact-tel-text,
.contact-tel:focus-visible .contact-tel-text {
  text-decoration-color: var(--accent);
}

/* Odnośniki akcji (Facebook, BIP) na dole ciemnej karty kontaktu. */
.contact-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  font-weight: 760;
  font-size: 13px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.contact-chip:hover,
.contact-chip:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.contact-chip svg {
  color: var(--white);
}

/* =====================================================================
   SEKCJA „NASZA KADRA" — ciemny panel z zespołem (jak karta kontaktu)
   ===================================================================== */
.kadra-panel.dark {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 38px;
  background: var(--dark);
  color: var(--white);
}

/* Dekoracyjne koło akcentowe — echo ciemnej karty kontaktu. */
.kadra-panel.dark::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--accent);
}

.kadra-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 16px;
}

.kadra-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.kadra-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kadra-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--white);
  font-weight: 860;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.kadra-card:nth-child(3n + 2) .kadra-avatar {
  background: var(--accent-2);
}

.kadra-card:nth-child(3n + 3) .kadra-avatar {
  background: var(--accent-3);
}

.kadra-id {
  min-width: 0;
}

.kadra-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.kadra-role {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 760;
  color: rgba(255, 255, 255, 0.56);
}

.kadra-contact {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.kadra-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 680;
  font-size: 14px;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  transition: color 0.18s ease;
}

.kadra-link svg {
  flex-shrink: 0;
  color: var(--accent);
}

.kadra-link:hover,
.kadra-link:focus-visible {
  color: var(--white);
}

footer {
  border-top: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.94);
  color: var(--white);
}

.footer-inner {
  min-height: 170px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer-brand .brand-mark {
  box-shadow: none;
  background: #fff;
  color: #111;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.footer-links a {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.75s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .nav-inner {
    grid-template-columns: auto auto;
  }

  .menu,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    margin-left: auto;
  }

  .hero-grid,
  .calendar-shell,
  .news-grid,
  .split-showcase,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 560px;
  }

  .quick-dock,
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-panel {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .top-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-name strong {
    max-width: 210px;
  }

  .hero,
  .top-strip-inner,
  .nav-inner,
  .section,
  .footer-inner,
  .quick-dock {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    border-radius: 28px;
    margin-top: 18px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-copy {
    padding: 26px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-meta,
  .quick-dock,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 480px;
    padding: 16px;
  }

  .shape.circle {
    width: 118px;
    height: 118px;
    left: 25px;
    top: 60px;
    font-size: 24px;
  }

  .shape.square {
    width: 138px;
    height: 138px;
    right: 22px;
    top: 110px;
    border-radius: 30px;
    font-size: 22px;
  }

  .shape.pill {
    width: 180px;
    bottom: 205px;
    right: 20px;
    font-size: 20px;
  }

  .shape.tile {
    width: 110px;
    height: 110px;
    left: 40px;
    bottom: 185px;
    font-size: 18px;
  }

  .quick-dock {
    margin-top: 18px;
  }

  .section {
    padding-top: 64px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .calendar-shell {
    border-radius: 28px;
    padding: 10px;
  }

  .calendar-panel,
  .event-panel {
    border-radius: 22px;
    padding: 16px;
  }

  .month-title {
    font-size: 27px;
  }

  .round-control {
    width: 42px;
    height: 42px;
  }

  .week-row {
    gap: 4px;
    font-size: 10px;
  }

  .day-grid {
    gap: 5px;
  }

  .day-btn {
    min-height: 54px;
    border-radius: 16px;
    font-size: 16px;
    padding: 9px;
  }

  .day-btn.has-event::after {
    width: 8px;
    height: 8px;
    right: 8px;
    bottom: 8px;
  }

  .story-item {
    grid-template-columns: 72px 1fr;
  }

  .story-thumb {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .gallery-wall {
    grid-template-columns: 1fr;
    grid-auto-rows: 150px;
  }

  .tile.big,
  .tile.wide {
    grid-row: auto;
    grid-column: auto;
    font-size: 26px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* =====================================================================
   MOBILE — sekcje jako pełnoekranowe kafelki (scroll-snap)
   ---------------------------------------------------------------------
   Na telefonie każda sekcja strony głównej wypełnia 100% wysokości okna
   i zachowuje się jak osobny „kafelek". Przewijanie zatrzymuje się na
   kolejnych sekcjach (scroll-snap), więc użytkownik czuje, że przesuwa
   kafelki, a nie swobodnie przewija stronę. Treść każdego kafelka jest
   wyśrodkowana w pionie i przycięta do najważniejszych elementów, aby
   zawsze mieściła się na jednym ekranie.
   ===================================================================== */
@media (max-width: 720px) {
  /* .page staje się jedynym kontenerem przewijania — dzięki temu
     scroll-snap działa przewidywalnie, a nawigacja może „pływać" nad
     kafelkami. Sam dokument (html/body) jest zablokowany. */
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page {
    height: 100vh; /* fallback dla starszych przeglądarek */
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    /* „mandatory": każda sekcja przyciąga się jako pełny panel, więc
       przewijanie zawsze zatrzymuje się równo na kolejnym kafelku (a nie
       w połowie). „proximity" zostało porzucone — przy nim przeglądarka
       przyciągała tylko gdy gest kończył się blisko punktu zaczepienia,
       co dawało nieprzewidywalne zatrzymania (raz pół, raz cały kafelek).
       Problem z odcinaniem dołu wyższych kafelków na Androidzie rozwiązuje
       teraz „justify-content: safe center" niżej (wysoka treść wyrównuje
       się do góry, więc top kafelka jest zawsze osiągalny). */
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Górny pasek kontaktowy chowamy — kontakt jest w całości w kafelku
     „Kontakt" oraz w rozwijanym menu. */
  .top-strip {
    display: none;
  }

  /* Kompaktowa, przyklejona nawigacja nad kafelkami. */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
  }

  .nav-inner {
    min-height: 60px;
    grid-template-columns: 1fr auto;
  }

  /* Rozwijane menu (hamburger) — szybki skok do dowolnego kafelka. */
  .main-nav.open .menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 18px 16px;
    background: rgba(247, 243, 236, 0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(18, 14, 10, 0.16);
  }

  .main-nav.open .menu a {
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 16px;
  }

  /* --- Wspólny kafelek: pełna wysokość okna + punkt zaczepienia --- */
  .hero,
  .quick-dock,
  .section,
  footer {
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* miejsce pod pływającą nawigację u góry + bezpieczne marginesy */
    padding-top: max(72px, env(safe-area-inset-top));
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .hero,
  .section,
  footer {
    display: flex;
    flex-direction: column;
    /* „safe center": treść krótsza od ekranu jest wyśrodkowana, a treść
       wyższa od ekranu wyrównuje się do góry (zamiast wystawać równo u góry
       i u dołu poza okno). W połączeniu ze scroll-snap „proximity" dół kafelka
       jest zawsze osiągalny. Pierwsza linia to zapas dla starszych przeglądarek. */
    justify-content: center;
    justify-content: safe center;
  }

  /* === Kafelek: HERO === */
  .hero {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    /* Treść (pole „na żywo", tytuł, opis, wyróżnione wydarzenie) startuje od
       góry kafelka. Wolną przestrzeń u dołu wypełniają szybkie akcje
       (.hero-quick-cta) przyklejone do spodu przez margin-top: auto. */
    justify-content: flex-start;
  }

  /* Gdy szybkich akcji nie ma (rezerwacja wyłączona), dolna część kafelka
     zostawała pusta — treść jest wtedy wyśrodkowana w pionie, a uwolnione
     miejsce idzie na większe odstępy między blokami (oddech). */
  .hero.no-quick-cta {
    justify-content: center;
    justify-content: safe center;
  }

  .hero-grid {
    min-height: 0;
  }

  .hero-copy {
    padding: 0 22px;
    gap: 16px;
    justify-content: center;
  }

  .hero.no-quick-cta .hero-copy {
    gap: 24px;
  }

  .hero.no-quick-cta h1 {
    margin-top: 16px;
  }

  .hero.no-quick-cta .hero-lead {
    -webkit-line-clamp: 4;
  }

  .hero.no-quick-cta .hero-actions.two-actions {
    margin-top: 20px;
  }

  .hero.no-quick-cta .hero-stage {
    padding-top: 26px;
  }

  .hero.no-quick-cta .featured-card {
    padding: 20px 18px;
  }

  .hero h1 {
    /* Odstęp od pola „na żywo" (eyebrow) nad tytułem — na telefonie pole z
       auto-zmianą treści było zbyt blisko tytułu. Umiarkowany, by hero zmieścił
       się na jednym ekranie razem z szybkimi akcjami u dołu. */
    margin: 10px 0 0;
    font-size: clamp(34px, 9.5vw, 46px);
  }

  /* Bezpiecznik: gdy etykieta „na żywo" zawija się do dwóch linii,
     i tak utrzymujemy wyraźny odstęp od tytułu. */
  .hero .eyebrow-live {
    margin-bottom: 2px;
  }

  /* Skrót opisu dotyczy TYLKO obrotowego hero na stronie głównej — tam
     slajdy się zmieniają i liczy się zwięzła zajawka. Na podstronach
     (.page-hero) opis MUSI być widoczny w całości, dlatego nie skracamy. */
  .hero .hero-lead {
    font-size: 16px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-hero-body .hero-lead {
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 4px;
  }

  /* Dwa przyciski hero na telefonie: para tekstowych odnośników w jednym
     wierszu — lewy wyrównany do lewej, prawy do prawej, rozdzielone pionową
     kreską po środku. Świadomie NIE wyglądają jak zwykłe przyciski. */
  .hero .hero-actions.two-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 14px;
  }

  .hero .hero-actions.two-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    padding: 6px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    font-size: 15px;
    font-weight: 820;
    letter-spacing: -0.02em;
    white-space: normal;
    transform: none;
  }

  .hero .hero-actions.two-actions .btn:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
    color: var(--accent);
  }

  .hero .hero-actions.two-actions .btn.primary {
    justify-content: flex-start;
    text-align: left;
    padding-left: 0;
  }

  .hero .hero-actions.two-actions .btn.ghost {
    justify-content: flex-end;
    text-align: right;
    padding-right: 0;
  }

  /* Pionowa kreska po środku, z lekkim wcięciem góra/dół. */
  .hero .hero-actions.two-actions::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 20px;
    transform: translate(-50%, -50%);
    background: rgba(23, 23, 23, 0.22);
  }

  /* mini-statystyki i dekoracje sceny: ukryte, by kafelek był czytelny */
  .hero-meta,
  .stage-art {
    display: none;
  }

  .hero-stage {
    min-height: 0;
    border-top: 0;
    padding: 10px 22px 0;
    justify-content: center;
  }

  .featured-card {
    padding: 16px;
    border-radius: 22px;
  }

  .featured-top {
    margin-bottom: 10px;
  }

  .featured-card h2 {
    font-size: 23px;
  }

  /* opis wyróżnionego wydarzenia: skracamy — liczy się tytuł i data */
  .featured-card p {
    display: none;
  }

  /* Plakat na telefonie: kompaktowa miniatura obok tytułu (zamiast pełnego
     kadru), aby kafelek hero zmieścił się na jednym ekranie razem z szybkimi
     akcjami u dołu. */
  .featured-headline {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
  }

  .featured-media {
    width: 56px;
    min-width: 56px;
    aspect-ratio: 1;
    max-height: none;
    border-radius: 16px;
  }

  .featured-media-icon svg {
    width: 24px;
    height: 24px;
  }

  .date-badge {
    width: 62px;
    min-width: 62px;
    border-radius: 18px;
  }

  .date-badge b {
    font-size: 30px;
  }

  .featured-bottom {
    margin-top: 10px;
    padding-top: 10px;
  }

  /* === Szybka akcja na dole kafelka hero ===
     Kwadrat „Rezerwacja sali" (widoczny tylko przy włączonej rezerwacji).
     margin-top: auto dosuwa go do dołu, wypełniając wolną przestrzeń. */
  .hero-quick-cta {
    display: grid;
    grid-template-columns: clamp(96px, 26vw, 128px);
    gap: 12px;
    align-items: stretch;
    margin-top: auto;
    padding: 12px 22px 0;
  }

  .hqc-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 22px;
    color: var(--white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .hqc-tile:active {
    transform: translateY(1px);
  }

  /* Kwadrat — akcja główna, akcentowy pomarańcz. */
  .hqc-square {
    aspect-ratio: 1;
    background: var(--accent);
    box-shadow: 0 16px 36px rgba(255, 106, 61, 0.3);
  }

  .hqc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    flex: none;
  }

  .hqc-label {
    font-size: clamp(13px, 3.8vw, 16px);
    font-weight: 820;
    letter-spacing: -0.02em;
    line-height: 1.12;
  }

  /* === Kafelek: SZYBKI DOSTĘP (quick-dock) jako siatka 2×2 === */
  .quick-dock {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 12px;
  }

  .dock-card {
    min-height: 0;
    padding: 16px;
    border-radius: 22px;
  }

  .dock-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .dock-card h3 {
    margin: 12px 0 5px;
    font-size: 18px;
  }

  .dock-card p {
    font-size: 12.5px;
  }

  /* --- Nagłówki sekcji: zwięzłe, bez dłuższego opisu --- */
  .section-head {
    margin-bottom: 18px;
    gap: 10px;
  }

  .section-note {
    display: none;
  }

  .section h2 {
    font-size: clamp(27px, 7.6vw, 38px);
  }

  /* === Kafelek: WYDARZENIA (kalendarz) === */
  #wydarzenia .calendar-shell {
    padding: 8px;
    border-radius: 22px;
    gap: 8px;
  }

  #wydarzenia .calendar-panel {
    padding: 12px;
  }

  #wydarzenia .calendar-toolbar {
    margin-bottom: 10px;
  }

  #wydarzenia .month-title {
    font-size: 22px;
  }

  #wydarzenia .round-control {
    width: 38px;
    height: 38px;
  }

  #wydarzenia .week-row {
    margin-bottom: 4px;
  }

  #wydarzenia .day-btn {
    min-height: 34px;
    border-radius: 12px;
    font-size: 14px;
    padding: 7px;
  }

  #wydarzenia .event-panel {
    min-height: 0;
    padding: 14px;
  }

  #wydarzenia .event-kind {
    margin-bottom: 8px;
  }

  #wydarzenia .event-date-large {
    gap: 12px;
    margin-bottom: 8px;
  }

  #wydarzenia .event-date-large strong {
    font-size: 46px;
  }

  #wydarzenia .event-chip-place {
    margin-top: 8px;
  }

  #wydarzenia .event-panel h3 {
    font-size: 21px;
    margin-bottom: 6px;
  }

  /* opis wydarzenia i filtry: ukryte — na kafelku najważniejszy jest
     wybór dnia, podstawowe info i przejście do szczegółów */
  #wydarzenia .event-panel p,
  #wydarzenia .event-filters {
    display: none;
  }

  /* Kropki rotacji zostają (sygnalizują kilka wydarzeń dnia), ale etykietę
     tekstową chowamy, by kafelek pozostał zwięzły. */
  #wydarzenia .event-rotator {
    margin: 6px 0 0;
  }

  #wydarzenia .event-rotator-label {
    display: none;
  }

  #wydarzenia .big-link {
    padding: 12px 14px;
  }

  /* === Kafelek: AKTUALNOŚCI === */
  #aktualnosci .news-grid {
    gap: 12px;
  }

  #aktualnosci .story-large {
    min-height: 0;
    padding: 16px;
    border-radius: 24px;
  }

  /* Kafelek ze zdjęciem w tle: trochę wyższy, żeby fotografia była widoczna. */
  #aktualnosci .story-large.has-photo-bg {
    min-height: 210px;
  }

  /* duży blok graficzny i dekoracja: ukryte — liczą się nagłówki */
  #aktualnosci .story-visual,
  #aktualnosci .story-large::before {
    display: none;
  }

  #aktualnosci .story-large h3 {
    font-size: 23px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #aktualnosci .story-large p {
    display: none;
  }

  #aktualnosci .story-large .hero-actions {
    margin-top: 12px;
  }

  /* zostawiamy jeden, główny przycisk akcji */
  #aktualnosci .story-large .hero-actions .ghost {
    display: none;
  }

  #aktualnosci .story-list {
    padding: 6px;
    gap: 6px;
  }

  #aktualnosci .story-item {
    grid-template-columns: 54px 1fr;
    gap: 10px;
    padding: 8px;
  }

  #aktualnosci .story-thumb {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  #aktualnosci .story-item h4 {
    margin: 2px 0 4px;
    font-size: 15px;
  }

  /* krótkie opisy pozycji ukrywamy — na kafelku liczą się nagłówki */
  #aktualnosci .story-item p {
    display: none;
  }

  /* === Kafelek: PROGRAM jako siatka 2×2 === */
  #program .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* Wyższe kafelki, by opis trzywierszowy mieścił się swobodnie. */
  #program .program-card {
    min-height: 224px;
    padding: 18px;
    border-radius: 24px;
  }

  /* Kształty i kolory grup takie same jak na desktopie:
     kwadrat, koło, pastylka, kwadrat (różnią się tylko skalą). */
  #program .program-card .mini-shape {
    width: 60px;
    height: 60px;
    border-radius: 20px;
  }

  #program .program-card:nth-child(2) .mini-shape {
    border-radius: 50%;
  }

  #program .program-card:nth-child(3) .mini-shape {
    width: 90px;
    border-radius: 999px;
  }

  #program .program-card h3 {
    margin-bottom: 8px;
    font-size: 19px;
  }

  #program .program-card p {
    font-size: 13px;
    min-height: 4.74em;
  }

  /* === Kafelek: GALERIE — ściana zdjęć na pierwszym planie === */
  #galerie .split-showcase {
    gap: 12px;
  }

  #galerie .gallery-wall {
    order: 1;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 88px;
    gap: 8px;
    padding: 8px;
  }

  #galerie .tile {
    padding: 12px;
    border-radius: 18px;
    font-size: 15px;
  }

  #galerie .tile.big {
    grid-row: span 2;
    font-size: 19px;
  }

  #galerie .tile.wide {
    grid-column: span 2;
    font-size: 17px;
  }

  /* Na telefonie kafelek „Zobacz więcej" wypełnia pojedyncze wolne pole. */
  #galerie .tile-more {
    grid-column: auto;
    gap: 8px;
  }

  #galerie .tile-more .tile-more-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  #galerie .tile-more .tile-more-label {
    font-size: 13px;
  }

  #galerie .tile span {
    max-width: none;
  }

  #galerie .plain-card {
    order: 2;
    min-height: 0;
    padding: 14px;
  }

  /* nagłówek i opis karty galerii ukrywamy — zostają same skróty */
  #galerie .plain-card > div:first-child {
    display: none;
  }

  #galerie .plain-card .links-stack {
    margin-top: 0;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8px;
  }

  #galerie .plain-card .stack-link {
    padding: 11px 10px;
    justify-content: center;
    text-align: center;
    font-size: 12.5px;
  }

  #galerie .plain-card .stack-link span:last-child {
    display: none;
  }

  /* === Kafelek: KONTAKT === */
  #kontakt .contact-layout {
    gap: 12px;
  }

  #kontakt .contact-card {
    min-height: 0;
    padding: 20px;
    border-radius: 24px;
  }

  #kontakt .contact-card h3 {
    margin-bottom: 12px;
    font-size: clamp(22px, 6.8vw, 30px);
  }

  #kontakt .contact-card.dark::after {
    width: 150px;
    height: 150px;
    right: -44px;
    bottom: -44px;
  }

  #kontakt .links-stack {
    margin-top: 14px;
    gap: 8px;
  }

  #kontakt .links-stack .stack-link {
    padding: 12px 14px;
  }

  /* === Kafelek: NASZA KADRA === */
  #kadra {
    justify-content: flex-start;
  }

  #kadra .kadra-panel.dark {
    padding: 16px;
    border-radius: 26px;
  }

  #kadra .kadra-panel.dark::after {
    width: 150px;
    height: 150px;
    right: -48px;
    top: -48px;
  }

  #kadra .kadra-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  #kadra .kadra-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 13px 14px;
    border-radius: 16px;
  }

  #kadra .kadra-card-head {
    flex: 1 1 auto;
    min-width: 0;
    gap: 11px;
  }

  #kadra .kadra-avatar {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  #kadra .kadra-name {
    font-size: 16px;
  }

  #kadra .kadra-role {
    margin-top: 2px;
    font-size: 12px;
  }

  #kadra .kadra-contact {
    width: 100%;
    margin: 0;
    gap: 4px;
  }

  #kadra .kadra-link {
    font-size: 12.5px;
  }

  /* === Kafelek: STOPKA === */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
    align-items: start;
  }

  /* Bez dolnego paddingu stopki linia oddzielająca (górna krawędź bloku
     kontaktu) przywierała do przycisków BIP / Archiwum / Kontakt. Dodajemy
     odstęp, żeby kreska nie dotykała przycisków. */
  .footer-contact {
    margin-top: 16px;
  }
}

/* =====================================================================
   PODSTRONY: pojedyncze wydarzenie i pojedynczy artykuł aktualności
   ---------------------------------------------------------------------
   Widoki szczegółowe korzystają z tych samych założeń co strona główna
   (zaokrąglone karty, kolory akcentowe, geometryczne kształty, szum,
   animacje „reveal"), ale układ jest dopasowany do czytania dłuższej
   treści. Klasa `.subpage` (na <html> i <body>) pozwala wyłączyć na
   telefonie pełnoekranowe kafelki scroll-snap ze strony głównej.
   ===================================================================== */

.subpage main {
  padding: 42px 0 96px;
}

/* Wspólny kontener treści — ta sama szerokość co sekcje strony głównej. */
.detail-shell {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.detail-shell + .detail-shell {
  margin-top: clamp(26px, 5vw, 58px);
}

/* Notka dla redakcji na ukrytej podstronie (widoczna tylko dla zalogowanych
   z prawem edycji — odwiedzający są przekierowywani na stronę główną). */
.page-hidden-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border: 1.5px dashed var(--accent);
  border-radius: 12px;
  background: rgba(255, 106, 61, 0.07);
  color: var(--ink);
  font-size: 14px;
}

.page-hidden-note strong {
  color: var(--accent);
  white-space: nowrap;
}

/* --- Okruszki (ścieżka nawigacji) --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.breadcrumb a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.2s ease;
}

.breadcrumb a:hover {
  background: var(--dark);
  color: var(--white);
  border-color: transparent;
}

.breadcrumb > span[aria-hidden] {
  opacity: 0.45;
}

.breadcrumb [aria-current] {
  color: var(--ink);
  font-weight: 780;
}

/* --- Lekkie „fakty" (data, godzina, miejsce, wstęp) jako pigułki --- */
.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.55);
  color: #3d3933;
  font-weight: 720;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.fact svg {
  flex: none;
  opacity: 0.62;
}

/* =====================================================================
   WYDARZENIE — sekcja hero w formie plakatu
   ===================================================================== */
.event-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2vw, 22px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
}

.event-hero-body {
  padding: clamp(10px, 2vw, 26px) clamp(6px, 1.4vw, 18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.event-hero-body h1 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: none;
}

.event-hero-body .hero-lead {
  margin: 0;
}

/* Plakatowy panel z datą i geometrią — w języku graficznym sceny hero. */
.event-hero-media {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 40vw, 460px);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  background:
    linear-gradient(150deg, #141110, #1d1832 56%, #13110f),
    radial-gradient(circle at 22% 24%, rgba(255, 106, 61, 0.55), transparent 40%),
    radial-gradient(circle at 78% 76%, rgba(124, 92, 255, 0.5), transparent 42%);
}

.event-hero-media::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  top: -74px;
  right: -60px;
}

.event-hero-media::after {
  content: "";
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 46px;
  background: var(--accent);
  left: -52px;
  bottom: -52px;
  transform: rotate(18deg);
  opacity: 0.85;
}

.event-hero-media .date-badge {
  position: relative;
  z-index: 2;
  width: clamp(118px, 16vw, 150px);
  border-radius: 30px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.4);
}

.event-hero-media .date-badge b {
  font-size: clamp(52px, 8vw, 72px);
}

.event-hero-media .date-badge small {
  font-size: 15px;
}

/* Kadr ZE ZDJĘCIEM: wysokość wynika z proporcji dodanego pliku (szablon
   przekazuje --cksir-media-ratio), z górnym limitem wysokości — pionowy plakat
   dostaje pionowy kadr zamiast poziomego wycinka. Bez zdjęcia zostaje
   dekoracyjny panel o stałej wysokości (reguły wyżej). */
.event-hero-media.has-photo {
  aspect-ratio: var(--cksir-media-ratio, 16 / 10);
  min-height: 200px;
  max-height: min(76vh, 720px);
}

/* Układ hero wg orientacji plakatu (klasa nadawana w szablonie):
   POZIOME zdjęcie zajmuje całą szerokość karty — nadtytuł, tytuł i opis
   nad nim, kadr pod spodem; PIONOWE stoi po lewej, a nadtytuł (rodzaj)
   i tytuł wydarzenia siadają po jego prawej stronie. */
.event-hero.is-photo-landscape {
  grid-template-columns: minmax(0, 1fr);
}

.event-hero.is-photo-landscape .event-hero-body {
  padding-bottom: 4px;
}

.event-hero.is-photo-portrait {
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 1fr);
}

.event-hero.is-photo-portrait .event-hero-media {
  order: -1;
}

/* Plakietka z datą na zdjęciu nie zasłania plakatu: mniejsza, w dolnym
   lewym rogu kadru (bez zdjęcia pozostaje duża, na środku panelu). */
.event-hero-media.has-photo .date-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  width: clamp(74px, 9vw, 100px);
  min-width: 0;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.event-hero-media.has-photo .date-badge b {
  font-size: clamp(28px, 4vw, 40px);
}

.event-hero-media.has-photo .date-badge small {
  font-size: 11px;
  margin-top: 3px;
}

.media-tag {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--accent);
  color: #2a1606;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

/* =====================================================================
   Układ treści: główna kolumna + przyklejony panel boczny
   ===================================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
}

#rezerwacja {
  scroll-margin-top: 100px;
}

/* Karta „Informacje praktyczne / W skrócie" (ciemna, jak panel kontaktu). */
.info-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.aside-actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

/* Wariant „big-link" na ciemnym tle — obrysowany zamiast białego. */
.big-link.outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.big-link.outline span:last-child {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.big-link.outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --- Udostępnianie --- */
.share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  padding: 16px 18px;
}

.share-card > span {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.share-row {
  display: flex;
  gap: 8px;
}

.share-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.22s ease;
}

.share-btn:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* Widoczne potwierdzenie skopiowania linku: przycisk ciemnieje, a nad nim
   pojawia się dymek „Skopiowano!" (klasę is-copied nadaje site.js). */
.share-btn.is-copied {
  background: var(--dark);
  color: var(--white);
}

.share-btn.is-copied::after {
  content: "Skopiowano!";
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  z-index: 6;
}

/* =====================================================================
   Treść redakcyjna (.prose) — wspólna dla wydarzenia i artykułu
   ===================================================================== */
.prose {
  color: #3a352e;
  font-size: 21px;
  line-height: 1.75;
  letter-spacing: -0.01em;
}

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

.prose > :first-child {
  margin-top: 0;
}

.prose p {
  /* Własny margines górny — reguła „.prose > * + *" przegrywa specyficznością
     z „.prose p", więc odstęp akapitu musi być ustawiony tutaj wprost. */
  margin: 1.15em 0 0;
}

.prose h2 {
  margin: 1.6em 0 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.prose h3 {
  margin: 1.4em 0 0;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -0.025em;
}

.prose strong {
  font-weight: 820;
  color: var(--ink);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.prose ul {
  margin: 1.15em 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.prose li {
  position: relative;
  padding-left: 26px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* Wyróżniony cytat — ciemny kafel z dużym znakiem cudzysłowu. */
.pullquote {
  margin: 1.6em 0 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--white);
  padding: 30px 30px 26px;
  position: relative;
  overflow: hidden;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 760;
}

.pullquote::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  left: 18px;
  font-size: 130px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.65;
  font-family: Georgia, "Times New Roman", serif;
}

.pullquote::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.55;
}

.pullquote p {
  position: relative;
  z-index: 2;
  margin: 0;
}

.pullquote cite {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.01em;
}

/* Figura graficzna — w tym samym języku co kafle/wizualizacje serwisu. */
.prose figure {
  margin: 1.6em 0 0;
}

.figure-visual {
  position: relative;
  overflow: hidden;
  height: clamp(220px, 36vw, 400px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.94), rgba(17, 17, 17, 0.7)),
    radial-gradient(circle at 25% 30%, var(--accent), transparent 12rem),
    radial-gradient(circle at 72% 72%, var(--accent-2), transparent 14rem);
}

.figure-visual span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.figure-visual span:nth-child(1) { width: 280px; height: 280px; left: 8%; top: -38%; }
.figure-visual span:nth-child(2) { width: 170px; height: 170px; right: 10%; bottom: -26%; }
.figure-visual span:nth-child(3) {
  width: 92px; height: 92px; left: 54%; top: 34%;
  border: 0; border-radius: 26px; background: var(--accent); transform: rotate(12deg);
}

.prose figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

/* =====================================================================
   ARTYKUŁ — nagłówek redakcyjny (wyśrodkowany) + duża grafika
   ===================================================================== */
.article-head {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.article-head h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: none;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.article-lead {
  max-width: 760px;
  margin: 22px auto 0;
  color: #49443d;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.article-figure {
  margin: 0;
}

.article-figure .figure-visual {
  height: clamp(260px, 46vw, 520px);
  border-radius: var(--radius-xl);
}

.article-figure figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

/* Tagi pod treścią artykułu. */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.5);
  color: #3d3933;
  font-size: 13px;
  font-weight: 720;
}

.tag::before {
  content: "#";
  margin-right: 2px;
  color: var(--accent);
  font-weight: 850;
}

/* =====================================================================
   Sekcje „Zobacz też" / „Czytaj dalej"
   ===================================================================== */
.related-section .section-head {
  margin-bottom: 20px;
}

/* Nagłówek sekcji powiązanych — poza kontenerem `.section`, więc nadajemy
   mu skalę zgodną z resztą serwisu (nieco mniejszą niż główne sekcje). */
.related-section .section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* Powiązane wydarzenia — małe karty z datą. */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mini-event {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: 0.24s ease;
}

.mini-event:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.14);
}

.mini-event-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.mini-event .date-badge {
  width: 64px;
  min-width: 64px;
  border-radius: 18px;
}

.mini-event .date-badge b {
  font-size: 28px;
}

.mini-event .date-badge small {
  margin-top: 3px;
  font-size: 11px;
}

.mini-event-kind {
  color: var(--accent);
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}

.mini-event h3 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.mini-event p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Powiązane aktualności — korzystają z gotowego komponentu .story-list. */
.related-news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* =====================================================================
   PODSTRONY — układ na tabletach i telefonach
   ===================================================================== */
@media (max-width: 1040px) {
  .event-hero,
  .event-hero.is-photo-portrait {
    grid-template-columns: 1fr;
  }

  .event-hero-media {
    order: -1;
    min-height: clamp(240px, 52vw, 360px);
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .detail-aside {
    position: static;
  }

  .related-news {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  /* Na podstronach wyłączamy pełnoekranowe kafelki scroll-snap ze strony
     głównej i przywracamy zwykłe, ciągłe przewijanie do czytania treści.
     Panel opiekuna ma własny układ (body bez klasy .subpage, ale z własnym
     <main> przewijanym), dlatego odblokowujemy go osobno — inaczej body
     zostaje z `overflow:hidden` i treści panelu nie da się przewinąć na
     telefonie. */
  html.subpage,
  body.subpage,
  body.cksir-panel-body {
    height: auto;
    overflow: visible;
  }

  body.subpage .page {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  /* Nawigacja przykleja się normalnie (sticky) i przesuwa treść w dół. */
  body.subpage .main-nav {
    position: sticky;
  }

  body.subpage footer {
    min-height: 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    display: block;
  }

  body.subpage .footer-inner {
    padding: 36px 0;
  }

  .subpage main {
    padding: 18px 0 64px;
  }

  .event-hero {
    padding: 12px;
    border-radius: 26px;
  }

  .event-hero-body {
    padding: 8px 8px 12px;
    gap: 16px;
  }

  .event-hero-body h1 {
    font-size: clamp(30px, 8.6vw, 42px);
  }

  .event-hero-media {
    min-height: 220px;
    border-radius: 20px;
  }

  .detail-shell + .detail-shell {
    margin-top: 34px;
  }

  .pullquote {
    padding: 24px 22px 22px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .prose {
    font-size: 19px;
  }
}

/* =====================================================================
   PODSTRONY LISTUJĄCE: Wydarzenia / Aktualności / Galerie / Świetlice
   ---------------------------------------------------------------------
   Wspólne elementy: aktywny link w menu, nagłówek listy (page-hero),
   pasek filtrów, karty oraz pełnoekranowy podgląd zdjęć (lightbox).
   Wszystko w tym samym języku graficznym co strona główna.
   ===================================================================== */

/* Aktywna pozycja w menu (bieżąca podstrona). */
.menu a[aria-current="page"] {
  background: rgba(17, 17, 17, 0.07);
  color: var(--ink);
  font-weight: 720;
}

.menu a[aria-current="page"]:hover {
  background: var(--dark);
  color: var(--white);
}

/* Pomocnicze. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.no-scroll {
  overflow: hidden;
}

/* --- Nagłówek strony listującej --- */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.46fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  /* Więcej powietrza nad i pod tytułem podstrony. */
  padding-top: clamp(10px, 1.8vw, 26px);
  margin-bottom: clamp(40px, 5.4vw, 72px);
}

/* Nagłówek bez kolumny bocznej (np. lista i pojedyncza galeria) —
   tytuł zajmuje wtedy całą szerokość. */
.page-hero-solo {
  grid-template-columns: 1fr;
}

.page-hero-body h1 {
  margin: 12px 0 0;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: none;
}

.page-hero-body .hero-lead {
  margin-top: 18px;
}

.page-hero-aside {
  display: grid;
  gap: 12px;
  align-content: end;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  padding: 16px 18px;
}

.stat-card strong {
  display: block;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 6px;
  /* Numer telefonu ma zostać w JEDNEJ linii — nie łamiemy go między
     grupami cyfr. Tabularne cyfry dają równe odstępy. */
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
}

/* Wariant klikalny — przycisk „zapisy i informacje" (odnośnik do strony lub
   numer telefonu, w zależności od tego co redakcja wpisze w panelu). */
.stat-card-link {
  display: block;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card-link:hover,
.stat-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.12);
}

/* Etykieta przycisku bywa zwykłym tekstem (np. „Zapisy i informacje"), więc
   pozwalamy jej się zawijać i nie powiększamy jej tak jak samego numeru. */
.stat-card-link strong {
  white-space: normal;
  font-size: clamp(19px, 4.4vw, 24px);
  letter-spacing: -0.02em;
}

.stat-card-link span {
  margin-top: 4px;
  font-weight: 760;
  color: var(--accent);
}

.album-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* --- Pasek filtrów (jasny motyw) --- */
.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.01em;
  color: #312d27;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-pill:hover {
  background: #fff;
  transform: translateY(-1px);
}

.filter-pill.active {
  background: var(--dark);
  color: var(--white);
  border-color: transparent;
}

.empty-state {
  margin: 8px 0 0;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.4);
}

/* Nagłówki sekcji wewnątrz podstron (np. „Filmy"). */
.detail-shell .section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* CTA dla strony głównej (np. „Zobacz wszystkie aktualności"). */
.section-cta {
  margin-top: 18px;
}

.section-cta .big-link {
  max-width: 460px;
}

/* =====================================================================
   WYDARZENIA — siatka kart wydarzeń
   ===================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.24s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 72px rgba(17, 17, 17, 0.15);
}

.event-card-media {
  --c: var(--accent);
  position: relative;
  min-height: 168px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  background:
    linear-gradient(150deg, #141110, #1d1832 58%, #13110f),
    radial-gradient(circle at 22% 26%, rgba(255, 106, 61, 0.5), transparent 42%);
}

.event-card-media::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  top: -60px;
  left: -50px;
}

.event-card-media::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 38px;
  background: var(--c);
  right: -36px;
  bottom: -40px;
  transform: rotate(18deg);
  opacity: 0.85;
}

.event-card:nth-child(3n+2) .event-card-media { --c: var(--accent-2); }
.event-card:nth-child(3n+3) .event-card-media { --c: var(--accent-3); }

.event-card-media .media-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--c);
}

.event-card-media .date-badge {
  position: relative;
  z-index: 2;
  width: 74px;
  min-width: 74px;
  border-radius: 20px;
}

.event-card-media .date-badge b {
  font-size: 32px;
}

.event-card-media .date-badge small {
  margin-top: 3px;
  font-size: 11px;
}

.event-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.event-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fact-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(17, 17, 17, 0.06);
  color: #3d3933;
  font-size: 12.5px;
  font-weight: 700;
}

.fact-mini svg {
  flex: none;
  opacity: 0.55;
}

.event-card-body h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.event-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14.5px;
  flex: 1;
}

.event-card-cta {
  color: var(--accent);
  font-weight: 820;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.cta-band-actions .btn,
.event-card:hover .event-card-cta {
  transition: 0.2s ease;
}

/* =====================================================================
   AKTUALNOŚCI — siatka kart wpisów
   ===================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.24s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 72px rgba(17, 17, 17, 0.15);
}

.post-card-media {
  --c: var(--accent);
  position: relative;
  height: 158px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.62)),
    radial-gradient(circle at 26% 28%, var(--c), transparent 60%),
    radial-gradient(circle at 78% 80%, var(--accent-2), transparent 62%);
}

.post-card-media::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: var(--c);
  right: -28px;
  top: -28px;
  transform: rotate(16deg);
  opacity: 0.9;
}

.post-card:nth-child(4n+2) .post-card-media { --c: var(--accent-2); }
.post-card:nth-child(4n+3) .post-card-media { --c: var(--accent-3); }
.post-card:nth-child(4n+4) .post-card-media { --c: #f0c247; }

.post-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card-body .story-meta {
  margin-bottom: 2px;
}

.post-card-body h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.post-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14.5px;
  flex: 1;
}

.post-card-more {
  color: var(--accent);
  font-weight: 820;
  font-size: 14px;
}

/* =====================================================================
   CTA-band — ciemny baner z wezwaniem do działania (na podstronach)
   ===================================================================== */
.cta-band {
  border-radius: var(--radius-xl);
  background: var(--dark);
  color: var(--white);
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.cta-band > * {
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17.5px;
  line-height: 1.55;
  max-width: 520px;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-band-actions .btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.cta-band-actions .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* =====================================================================
   ŚWIETLICE — karty z opisem i orientacyjną mapką
   ===================================================================== */
.swietlice-list {
  display: grid;
  gap: 18px;
}

.swietlica-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0;
}

/* Co druga karta: mapka po prawej stronie. */
.swietlica-card:nth-child(even) .mini-map {
  order: 2;
}

.swietlica-body {
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.swietlica-body h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.swietlica-body > p {
  margin: 0;
  color: #4a453d;
  font-size: 18px;
  line-height: 1.65;
}

.swietlica-facts {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.swietlica-facts li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.swietlica-facts li span:first-child {
  color: var(--muted);
  font-weight: 760;
  font-size: 13px;
}

.swietlica-facts li span:last-child {
  font-weight: 720;
  letter-spacing: -0.01em;
}

.swietlica-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

/* Wariant „big-link" — główne wezwanie (rezerwacja sali). */
.big-link.book {
  background: var(--accent);
  color: #fff;
}

.big-link.book span:last-child {
  background: rgba(255, 255, 255, 0.22);
}

/* Wariant „big-link" na jasnym tle (obrysowany, drugorzędny). */
.big-link.line {
  background: transparent;
  border: 1px solid var(--line);
}

.big-link.line span:last-child {
  background: rgba(17, 17, 17, 0.06);
}

.big-link.line:hover {
  background: #fff;
}

/* Powrót do listy galerii — przeniesiony pod zdjęcia (pojedyncza galeria).
   Wyśrodkowany, zwarty przycisk zamiast paska na całą szerokość. */
.album-back {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.album-back .big-link {
  flex: none;
  justify-content: center;
  gap: 10px;
  min-width: min(280px, 100%);
}

/* =====================================================================
   MAPA — OpenStreetMap + kafelki CARTO (Leaflet)
   ---------------------------------------------------------------------
   Mapy renderuje biblioteka Leaflet na danych OpenStreetMap z warstwą
   kafelków CARTO (Voyager / Dark Matter). Inicjalizacja w js/main.js:
   każdy element [data-map] dostaje mapę i pinezkę w kolorach marki.
   ===================================================================== */
.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  background: #e9e6dd;
  font: inherit;
}

/* Mapa z „cooperative gestures": jeden palec przewija stronę (pan-y), a gest
   dwoma palcami (przesuwanie/zoom) obsługuje Leaflet. */
.map-canvas.map-cooperative {
  touch-action: pan-y !important;
}

/* Pinezka jako element HTML (bez zewnętrznych obrazków) — w kolorze marki. */
.map-marker { background: none; border: 0; }

.map-marker-dot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  position: relative;
}

.map-marker-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: liveRing 2.6s ease-out infinite;
}

/* Etykieta / odnośnik na mapie. */
.map-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: -0.01em;
  backdrop-filter: blur(6px);
  transition: 0.2s ease;
}

.map-chip svg { flex: none; color: var(--accent); }

a.map-chip:hover { transform: translateY(-1px); }

/* Atrybucja (wymagana przez OSM/CARTO) — subtelna i mała. */
.leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.leaflet-control-attribution a { color: #555; }

/* Mapka w karcie świetlicy. */
.mini-map {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #e9e6dd;
  border-right: 1px solid var(--line);
}

.swietlica-card:nth-child(even) .mini-map {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.mini-map .map-chip {
  background: rgba(255, 255, 255, 0.9);
  color: #2a2a2a;
  border: 1px solid var(--line);
}

/* =====================================================================
   GALERIE — siatka albumów + sekcja filmów
   ===================================================================== */
.galleries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.gallery-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.24s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 72px rgba(17, 17, 17, 0.15);
}

.gallery-card.featured {
  grid-column: span 2;
}

.gallery-card-cover {
  position: relative;
  height: 190px;
  overflow: hidden;
  background-color: #15110f;
}

.gallery-card.featured .gallery-card-cover {
  height: 280px;
}

/* Obrys koła w prawym górnym rogu — dokładnie jak .tile::after na stronie
   głównej (a nie maleńki pierścień jak wcześniej). */
.gallery-card-cover::after {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: none;
  z-index: 2;
  pointer-events: none;
}

/* Plakietki na okładce albumu: licznik zdjęć + licznik reakcji (kciuk).
   Trzymane razem w jednym pasku w lewym górnym rogu (nad zdjęciem i kołami). */
.gallery-card-stats {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-card-count,
.gallery-card-reactions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
}

.gallery-card-reactions-emoji {
  font-size: 13px;
  line-height: 1;
}

.gallery-card-reactions-count {
  font-variant-numeric: tabular-nums;
}

.gallery-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-card-body h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.gallery-card.featured .gallery-card-body h3 {
  font-size: clamp(24px, 3vw, 34px);
}

/* ===== Lista galerii: ten sam motyw zdjęć co na stronie głównej =====
   Okładka albumu dostaje te same dwa kształty co kafle „Galerie i filmy"
   na stronie głównej: wypełnione koło w lewym dolnym rogu (::before) oraz
   obrys koła w prawym górnym (::after, zdefiniowany wyżej). Geometria jest
   1:1 z .tile, więc efekt wygląda tak samo jak na stronie głównej. */
.gallery-card-cover::before {
  content: "";
  position: absolute;
  inset: auto auto -40px -36px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.86;
  z-index: 2;
  pointer-events: none;
}

/* Kolor wypełnionego koła zmienia się co kartę — jak kolejne kafle hero. */
.gallery-card:nth-child(4n+2) .gallery-card-cover::before { --accent: #7c5cff; }
.gallery-card:nth-child(4n+3) .gallery-card-cover::before { --accent: #10a77f; }
.gallery-card:nth-child(4n+4) .gallery-card-cover::before { --accent: #f0c247; }

/* Prawdziwe zdjęcie: przyciemnij kadr i pokaż oba koła nad nim (nadpisuje
   regułę .has-photo::before/::after { display: none } z arkusza motywu) —
   dokładnie jak #start .tile.has-photo na stronie głównej. */
.gallery-card-cover.has-photo img {
  filter: brightness(0.72) saturate(1.02);
}
.gallery-card-cover.has-photo::before,
.gallery-card-cover.has-photo::after {
  display: block;
}
.gallery-card-cover.has-photo::before {
  opacity: 0.6;
}
.gallery-card-cover.has-photo::after {
  border-color: rgba(255, 255, 255, 0.6);
}

/* ===== Paginacja listy galerii na telefonie — po 3 albumy na stronę =====
   Pasek z kropkami i strzałkami buduje assets/js/site.js. Na desktopie oraz
   gdy jest tylko jedna strona pozostaje ukryty (atrybut [hidden]). Karty
   spoza bieżącej strony chowamy klasą .gallery-paged-hidden. */
.gallery-paged-hidden {
  display: none !important;
}

.gallery-pager {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gallery-pager[hidden] {
  display: none;
}

.gallery-pager-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.gallery-pager-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gallery-pager-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 23, 23, 0.22);
  cursor: pointer;
  transition: 0.2s ease;
}

.gallery-pager-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Filmy. */
.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.film-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.24s ease;
}

.film-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 72px rgba(17, 17, 17, 0.15);
}

.film-cover {
  position: relative;
  height: 168px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(150deg, #141110, #1d1832 58%, #13110f),
    radial-gradient(circle at 30% 30%, rgba(255, 106, 61, 0.4), transparent 55%);
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #15110f;
  padding-left: 3px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  transition: 0.22s ease;
}

.film-card:hover .play-btn {
  transform: scale(1.08);
  background: #fff;
}

.film-time {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.film-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.film-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* =====================================================================
   POJEDYNCZA GALERIA — siatka zdjęć + pełnoekranowy lightbox
   ===================================================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 12px;
}

.photo {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background-color: #15110f;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.28));
  opacity: 0;
  transition: 0.26s ease;
}

.photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 66px rgba(17, 17, 17, 0.22);
}

.photo:hover::after {
  opacity: 1;
}

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

.photo.feature {
  grid-column: span 2;
  grid-row: span 2;
}

.photo.wide { grid-column: span 2; }
.photo.tall { grid-row: span 2; }

.photo-zoom {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #15110f;
  opacity: 0;
  transform: translateY(-6px);
  transition: 0.26s ease;
}

.photo:hover .photo-zoom,
.photo:focus-visible .photo-zoom {
  opacity: 1;
  transform: translateY(0);
}

/* Plakietka-licznik reakcji na kafelku zdjęcia (gdy ktoś zareagował). */
.photo-reaction {
  position: absolute;
  z-index: 3;
  left: 10px;
  bottom: 10px;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.photo-reaction.is-set {
  display: inline-flex;
}

.photo-reaction-emojis {
  font-size: 15px;
  line-height: 1;
}

.photo-reaction-count {
  font-size: 13px;
  font-weight: 800;
  color: #15110f;
}

/* Kolorystyka kafli — wspólna paleta dla zdjęć i okładek albumów. */
.photo:nth-child(8n+1),
.gallery-card:nth-child(8n+1) .gallery-card-cover,
.album-bg-1 {
  background-image:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.26), transparent 44%),
    linear-gradient(135deg, #ff6a3d, #7c5cff);
}
.photo:nth-child(8n+2),
.gallery-card:nth-child(8n+2) .gallery-card-cover {
  background-image:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.22), transparent 44%),
    linear-gradient(135deg, #10a77f, #7c5cff);
}
.photo:nth-child(8n+3),
.gallery-card:nth-child(8n+3) .gallery-card-cover {
  background-image:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.2), transparent 44%),
    linear-gradient(135deg, #211d4d, #ff6a3d);
}
.photo:nth-child(8n+4),
.gallery-card:nth-child(8n+4) .gallery-card-cover {
  background-image:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.24), transparent 44%),
    linear-gradient(135deg, #ff6a3d, #f0c247);
}
.photo:nth-child(8n+5),
.gallery-card:nth-child(8n+5) .gallery-card-cover {
  background-image:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.2), transparent 44%),
    linear-gradient(135deg, #0f3c34, #10a77f);
}
.photo:nth-child(8n+6),
.gallery-card:nth-child(8n+6) .gallery-card-cover {
  background-image:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.22), transparent 44%),
    linear-gradient(135deg, #3c2a13, #f0c247);
}
.photo:nth-child(8n+7),
.gallery-card:nth-child(8n+7) .gallery-card-cover {
  background-image:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.22), transparent 44%),
    linear-gradient(135deg, #2a1b19, #ff6a3d);
}
.photo:nth-child(8n+8),
.gallery-card:nth-child(8n+8) .gallery-card-cover {
  background-image:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.2), transparent 44%),
    linear-gradient(135deg, #171717, #7c5cff);
}

/* --- Lightbox (pełny ekran) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  background: rgba(12, 9, 7, 0.93);
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
  animation: lbFade 0.28s ease;
}

@keyframes lbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-figure {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* Górny odstęp robi miejsce na przycisk zamknięcia i licznik u góry. */
  padding: clamp(54px, 8vh, 88px) clamp(12px, 4vw, 28px) 10px;
}

/* Pole, w którym mieści się zdjęcie: wypełnia dostępną wysokość, a zawartość
   jest w nim wyśrodkowana i skalowana w CAŁOŚCI (nigdy nie przycięta). */
.lightbox-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: min(1100px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbZoom 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Prawdziwe zdjęcie w pełnych proporcjach: poziome wypełnia szerokość,
   pionowe na szerokim ekranie jest węższe (wyśrodkowane), ale zawsze
   widoczne w całości i bez przycinania. */
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  background-color: #15110f;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

/* Dekoracyjny kafelek (galeria bez wgranych zdjęć) — zachowuje format 3:2. */
.lightbox-fallback {
  width: 100%;
  max-width: min(1100px, 92vw);
  aspect-ratio: 3 / 2;
  max-height: 100%;
  border-radius: var(--radius-lg);
  background-color: #15110f;
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.lightbox-image[hidden],
.lightbox-fallback[hidden] {
  display: none;
}

@keyframes lbZoom {
  from { transform: scale(0.96); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 620;
  text-align: center;
  max-width: 680px;
  line-height: 1.45;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: #fff;
  color: #15110f;
  transform: scale(1.06);
}

.lightbox-close {
  top: clamp(12px, 2.4vw, 22px);
  right: clamp(12px, 2.4vw, 22px);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-nav.prev { left: clamp(8px, 2vw, 26px); }
.lightbox-nav.next { right: clamp(8px, 2vw, 26px); }

.lightbox-counter {
  position: absolute;
  top: clamp(12px, 2.4vw, 22px);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

/* --- Reakcje na zdjęcie w lightboxie — stały pasek na dole ekranu --- */
.lightbox-reactions {
  flex: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reaction-btn {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.reaction-btn .reaction-emoji {
  display: block;
}

/* Licznik kliknięć danej reakcji (ile razy ja kliknąłem). */
.reaction-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.reaction-btn.is-active .reaction-count {
  display: block;
}

.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.reaction-btn.is-active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

.reaction-btn.is-bumped {
  animation: reactionBump 0.34s ease;
}

@keyframes reactionBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.32); }
  100% { transform: scale(1); }
}

.reaction-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Emotka odlatująca w górę i zanikająca (efekt jak w relacjach Instagrama). */
.reaction-float {
  position: fixed;
  z-index: 200;
  font-size: 30px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%);
  animation: reactionFloat 1.15s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  will-change: transform, opacity;
}

@keyframes reactionFloat {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  18% { opacity: 1; transform: translate(-50%, calc(-50% - 14px)) scale(1.15); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift, 0px)), calc(-50% - 220px)) scale(var(--scale, 1.6)) rotate(var(--rot, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .reaction-float { display: none; }
  .reaction-btn.is-bumped { animation: none; }
}

/* =====================================================================
   STOPKA — delikatna mapa + pasek autora
   ===================================================================== */
.footer-map {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: center;
  min-height: 134px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #15130f;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-map .leaflet-container {
  background: #1b1b1b;
}

/* Stopka: mapa jest tylko dekoracyjną miniaturą — nakładkę z atrybucją
   (OpenStreetMap / CARTO) ukrywamy, żeby nie zaśmiecała kadru. */
.footer-map .leaflet-control-attribution {
  display: none;
}

.footer-map .map-chip {
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
}

.footer-contact {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px 0 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px 32px;
  font-size: 13px;
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-contact-label {
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.5);
}

.footer-address {
  font-style: normal;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.footer-contact-link svg {
  flex: none;
  opacity: 0.7;
}

/* Tekst odnośnika podkreślony — numer/e-mail od razu wygląda na klikalny. */
a.footer-contact-link > span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: text-decoration-color 0.2s ease;
}

a.footer-contact-link:hover,
a.footer-contact-link:focus-visible {
  color: #fff;
}

a.footer-contact-link:hover > span,
a.footer-contact-link:focus-visible > span {
  text-decoration-color: currentColor;
}

.footer-contact-static {
  color: rgba(255, 255, 255, 0.55);
}

.footer-base {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-author strong {
  color: #fff;
  font-weight: 820;
  letter-spacing: -0.01em;
}

.footer-author a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: text-decoration-color 0.2s ease;
}

.footer-author a:hover,
.footer-author a:focus-visible {
  text-decoration-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .map-marker-dot::after { animation: none; }
  .lightbox.open,
  .lightbox-stage { animation: none; }
}

/* =====================================================================
   PODSTRONY LISTUJĄCE — responsywność
   ===================================================================== */
@media (max-width: 1040px) {
  .page-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .page-hero-aside {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-content: start;
  }

  .cta-band {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .swietlica-card {
    grid-template-columns: 1fr;
  }

  .mini-map {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .swietlica-card:nth-child(even) .mini-map {
    order: -1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand links"
      "map map";
    row-gap: 22px;
  }

  .footer-brand { grid-area: brand; }
  .footer-links { grid-area: links; }
  .footer-map {
    grid-area: map;
    max-width: none;
    min-height: 120px;
  }
}

@media (max-width: 720px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 8px;
  }

  /* === GALERIE na telefonie — nowa koncepcja: pojedyncza kolumna
     immersyjnych kart. Okładka wypełnia całą kartę, a tytuł i metadane
     leżą na niej (na przyciemnionym dole). Koniec z dwiema nierównymi
     kolumnami i rozciągniętą kartą wyróżnioną. === */
  .galleries-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-card {
    position: relative;
    min-height: 360px;
    border-radius: 26px;
  }

  .gallery-card.featured {
    grid-column: auto;
    min-height: 440px;
  }

  .gallery-card-cover,
  .gallery-card.featured .gallery-card-cover {
    position: absolute;
    inset: 0;
    height: 100%;
    z-index: 0;
  }

  /* Na telefonie okładka wypełnia kartę, a tekst leży na niej — dlatego
     ::after zamiast obrysu koła pełni rolę mocnego gradientu u dołu (tekst
     pozostaje czytelny). Pełny reset geometrii obrysu z widoku desktop oraz
     wymuszenie widoczności także dla kart ze zdjęciem (.has-photo). */
  .gallery-card-cover::after,
  .gallery-card-cover.has-photo::after {
    display: block;
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(8, 6, 5, 0) 30%, rgba(8, 6, 5, 0.55) 64%, rgba(8, 6, 5, 0.88));
  }

  .gallery-card-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 16px 20px 20px;
    gap: 6px;
  }

  .gallery-card-body h3,
  .gallery-card.featured .gallery-card-body h3 {
    color: var(--white);
    font-size: 24px;
  }

  .gallery-card-body .story-meta {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.85);
  }

  .gallery-card-body .story-meta span {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
  }

  /* Dół ekranu zajmuje teraz pasek reakcji, więc strzałki pozostają
     pionowo wyśrodkowane przy krawędziach (mogą nachodzić na brzeg zdjęcia);
     między kadrami można też przechodzić przesunięciem palca. */
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }

  /* Liczniki w nagłówku podstrony: na telefonie dwie kolumny po połowie
     szerokości (nie jedna pod drugą). */
  .page-hero-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
  }

  /* Gdy w nagłówku jest tylko JEDEN kafelek (np. telefon na Siłowni czy
     Rezerwacji), zajmuje pełną szerokość — bez pustego pola obok i bez
     ściskania numeru do dwóch linii. */
  .page-hero-aside:has(.stat-card:only-child) {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 14px 15px;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "map"
      "links";
  }
}

/* =====================================================================
   POWIĄZANIA WYDARZEŃ — artykuł, galeria, mapa
   ---------------------------------------------------------------------
   - przycisk „Przejdź do wydarzenia" doklejany na końcu artykułu,
   - chip „Galeria z wydarzenia" w nagłówku galerii,
   - karta z mapą wydarzenia w kolumnie bocznej (Leaflet + przycisk Map).
   ===================================================================== */

/* Przycisk CTA doklejany na końcu artykułu powiązanego z wydarzeniem. */
.cksir-event-link-wrap {
  margin: 34px 0 0;
}

.cksir-event-link-wrap .big-link {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 32px -18px rgba(255, 106, 61, 0.95);
}

.cksir-event-link-wrap .big-link span:last-child {
  background: rgba(255, 255, 255, 0.22);
}

/* Chip „Galeria z wydarzenia" w nagłówku pojedynczej galerii. */
.album-event-cta {
  margin: 16px 0 0;
}

.album-event-cta a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 820;
  letter-spacing: -0.01em;
  transition: 0.2s ease;
}

.album-event-cta a:hover {
  transform: translateY(-2px);
}

.album-event-cta svg {
  flex: none;
  color: #fff;
}

/* Karta z mapą wydarzenia (kolumna boczna strony wydarzenia). */
.event-map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.event-map-card h3 {
  margin: 4px 4px 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.event-mini-map {
  position: relative;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #e9e6dd;
}

.event-mini-map .map-chip {
  background: rgba(255, 255, 255, 0.92);
  color: #2a2a2a;
  border: 1px solid var(--line);
}

/* =====================================================================
   REZERWACJA SAL — strona /rezerwacja/ (karty sal + dostępność + telefon)
   Karty korzystają z .swietlica-card/.mini-map; poniżej tylko nowe elementy.
   ===================================================================== */
.booking-list {
  gap: 22px;
}

/* Blok dostępności w karcie sali. */
.avail-block {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.avail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.avail-title svg {
  color: var(--accent);
}

.avail-cal {
  min-height: 52px;
}

.avail-fallback {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.avail-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.avail-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.avail-key::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.avail-key.is-free::before {
  background: rgba(16, 167, 127, 0.18);
  border-color: rgba(16, 167, 127, 0.5);
}

.avail-key.is-busy::before {
  background: rgba(255, 106, 61, 0.18);
  border-color: rgba(255, 106, 61, 0.5);
}

/* Pasek rezerwacji telefonicznej. */
.booking-callbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 4px;
}

.btn.primary.booking-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.btn.primary.booking-call svg {
  flex: none;
}

.booking-call-meta {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .btn.primary.booking-call {
    width: 100%;
    justify-content: center;
    padding-block: 14px;
    font-size: 16px;
  }

  .booking-callbar {
    gap: 8px;
  }

  .booking-call-meta {
    width: 100%;
  }
}

/* =====================================================================
   PANEL OPIEKUNA — aplikacja front-endowa pod adresem /panel/
   Mobilna „apka": górny pasek, przewijana treść, dolne zakładki.
   ===================================================================== */
.cksir-panel-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
}

.panel-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
}

/* Górny pasek aplikacji. */
.panel-appbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  padding-top: max(13px, env(safe-area-inset-top));
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.panel-appbar-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-weight: 820;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-logo {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.panel-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.panel-iconbtn:hover {
  background: var(--paper);
}

/* Obszar treści (przewijany). */
.panel-main {
  flex: 1;
  width: 100%;
  /* Wyraźny margines treści po bokach — na telefonie karty i formularze nie
     dotykają krawędzi okna (czytelność). Paski (góra/dół) zostają pełnej
     szerokości celowo. */
  padding: 20px 18px;
  padding-left: calc(18px + env(safe-area-inset-left));
  padding-right: calc(18px + env(safe-area-inset-right));
  padding-bottom: calc(98px + env(safe-area-inset-bottom));
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-section-head h1,
.panel-hello h1 {
  margin: 0;
  font-size: clamp(22px, 6vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.panel-hello p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-h2 {
  margin: 8px 0 -2px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 820;
}

/* Karty sal na pulpicie. */
.panel-cards {
  display: grid;
  gap: 12px;
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.panel-card-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Szybkie kafle dodawania treści. */
.panel-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.panel-quick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
  font-weight: 740;
  font-size: 13px;
  line-height: 1.2;
}

.panel-quick-tile svg {
  color: var(--accent);
}

.panel-quick-tile:hover {
  background: var(--white);
  border-color: rgba(23, 23, 23, 0.2);
}

/* Lista treści użytkownika. */
.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* minmax(0, …) pozwala wierszom się kurczyć — bez tego nieskracalny tytuł
     (white-space: nowrap) rozpycha kolumnę grid i cała strona panelu dostaje
     poziomy scroll, a treść „dotyka" krawędzi ekranu na telefonie. */
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.panel-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.panel-list-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.panel-list-title {
  font-weight: 780;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-list-meta {
  color: var(--muted);
  font-size: 13px;
}

.panel-list-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

/* Przyciski panelu. */
.panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 760;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.panel-btn:hover {
  background: var(--paper);
}

.panel-btn svg {
  flex: none;
}

.panel-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.panel-btn.primary:hover {
  filter: brightness(0.96);
  background: var(--accent);
}

.panel-btn.ghost {
  background: transparent;
}

.panel-btn.ghost:hover {
  background: rgba(23, 23, 23, 0.05);
}

.panel-empty {
  margin: 0;
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
}

/* Komunikaty „flash". */
.panel-flash {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 640;
  font-size: 14px;
  border: 1px solid var(--line);
  transition: opacity 0.5s ease;
}

.panel-flash.is-ok {
  background: rgba(16, 167, 127, 0.12);
  border-color: rgba(16, 167, 127, 0.4);
  color: #0c6b52;
}

.panel-flash.is-err {
  background: rgba(255, 106, 61, 0.13);
  border-color: rgba(255, 106, 61, 0.42);
  color: #b23a17;
}

.panel-flash.is-fading {
  opacity: 0;
}

/* Dolny pasek zakładek (nawigacja aplikacji). */
.panel-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 8px 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 242, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.panel-tab {
  flex: 1 1 0;
  max-width: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
  text-align: center;
}

.panel-tab svg {
  opacity: 0.82;
}

.panel-tab.is-active {
  color: var(--accent);
  background: rgba(255, 106, 61, 0.1);
}

.panel-tab.is-active svg {
  opacity: 1;
}

/* Ekrany logowania / braku dostępu. */
.panel-auth-wrap {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 18px;
}

.panel-auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.panel-logo-lg {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  font-size: 21px;
  margin: 0 auto 2px;
}

.panel-auth-card h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.panel-auth-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14.5px;
}

.panel-auth-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.panel-auth-lost,
.panel-auth-home {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 640;
}

.panel-auth-lost:hover,
.panel-auth-home:hover {
  color: var(--accent);
}

/* Formularz logowania WordPress w naszej skórce. */
.panel-auth-card .login-username,
.panel-auth-card .login-password {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-auth-card label {
  font-weight: 740;
  font-size: 13.5px;
}

.panel-auth-card input[type="text"],
.panel-auth-card input[type="password"] {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 16px;
  font-family: inherit;
}

.panel-auth-card input[type="text"]:focus,
.panel-auth-card input[type="password"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.panel-auth-card .login-remember {
  text-align: left;
  font-size: 13.5px;
  color: var(--muted);
}

.panel-auth-card .login-remember label {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.panel-auth-card .login-submit {
  margin-top: 4px;
}

.panel-auth-card #wp-submit {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 820;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}

.panel-auth-card #wp-submit:hover {
  filter: brightness(0.96);
}

/* Formularze treści w panelu. */
.panel-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-form .cksir-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.panel-form .cksir-field > label,
.panel-form .panel-field-label {
  font-weight: 740;
  font-size: 14px;
}

.panel-form .cksir-field .description {
  color: var(--muted);
  font-size: 12.5px;
}

.panel-form .widefat,
.panel-form input[type="text"],
.panel-form input[type="date"],
.panel-form input[type="datetime-local"],
.panel-form input[type="email"],
.panel-form input[type="url"],
.panel-form textarea,
.panel-form select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
}

.panel-form textarea {
  resize: vertical;
  line-height: 1.5;
  min-height: 88px;
}

.panel-form input:focus,
.panel-form textarea:focus,
.panel-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.panel-grid .cksir-field {
  margin: 0;
}

/* Zaznaczenia rodzajów + przełączniki opcji. */
.panel-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 640;
  cursor: pointer;
}

.panel-check input {
  accent-color: var(--accent);
}

.panel-check.block {
  width: 100%;
  border-radius: 12px;
  justify-content: flex-start;
}

.panel-field-label {
  display: block;
  margin-bottom: 6px;
}

.panel-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* Proste akcje formularza (np. zapis dostępności sali). */
.panel-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.panel-form-actions .panel-btn {
  padding: 12px 18px;
}

/* Wstęp / bilety — segment z ceną widoczną tylko przy biletach. */
.panel-segment {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--bg);
  border-radius: 12px;
}

.panel-segment-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  transition: 0.14s ease;
}

.panel-segment-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.panel-segment-opt.is-on {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.panel-entry-price {
  margin-top: 12px;
}

.panel-entry-price label {
  display: block;
  font-weight: 640;
  font-size: 14px;
  margin-bottom: 6px;
}

/* Artykuł w Aktualnościach — tryb auto / powiąż istniejący / brak. */
.panel-article-opt {
  align-items: flex-start;
  margin-bottom: 8px;
}

.panel-article-opt input {
  margin-top: 3px;
}

.panel-article-opt small {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
}

.panel-article-pick {
  margin: 0 0 10px;
  padding: 10px 12px 12px 34px;
}

.panel-article-pick .description {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.panel-check.inline {
  width: auto;
  border: 0;
  padding: 4px 0 0;
  background: transparent;
  font-weight: 600;
}

/* Pasek publikacji (przyklejony do dołu formularza). */
.panel-publish-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}

.panel-publish-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panel-publish-btn {
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.panel-publish-bar.is-draft .panel-publish-btn {
  background: var(--ink);
  border-color: var(--ink);
}

/* Przełącznik „Szkic". */
.panel-draft-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.panel-draft-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.panel-switch-track {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #c9cbd0;
  transition: background 0.18s ease;
}

.panel-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}

.panel-draft-toggle input:checked + .panel-switch-track {
  background: var(--ink);
}

.panel-draft-toggle input:checked + .panel-switch-track::after {
  transform: translateX(18px);
}

.panel-draft-toggle input:focus-visible + .panel-switch-track {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
}

/* Pole miejsca + mapa „wskaż na mapie" (panel opiekuna). */
.cksir-place-new {
  margin-top: 8px;
}

.cksir-place-room {
  margin-top: 12px;
}

.cksir-lock-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.1);
  color: #5a43c8;
  font-weight: 640;
  font-size: 12.5px;
}

.cksir-lock-note svg {
  width: 13px;
  height: 13px;
}

.cksir-place-room.is-locked select {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
  pointer-events: none;
}

.cksir-map-pick {
  display: grid;
  gap: 10px;
}

.cksir-map-search {
  display: flex;
  gap: 8px;
}

.cksir-map-search input {
  flex: 1 1 auto;
}

.cksir-map-search .panel-btn {
  flex: none;
}

.cksir-map-canvas {
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef1f4;
  z-index: 0;
}

.cksir-map-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.cksir-map-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--ink);
}

.cksir-map-status svg {
  width: 13px;
  height: 13px;
}

.cksir-map-clear {
  border: 0;
  background: none;
  color: #b23a17;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.panel-btn.danger {
  background: transparent;
  border-color: rgba(255, 106, 61, 0.5);
  color: #b23a17;
}

.panel-btn.danger:hover {
  background: rgba(255, 106, 61, 0.1);
}

.panel-delete-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

  .panel-publish-bar {
    gap: 10px;
  }

  .panel-publish-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* =====================================================================
   KALENDARZ DOSTĘPNOŚCI (wolne / zajęte) — strona rezerwacji i panel
   ===================================================================== */
.avail-cal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.avail-cal-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.avail-nav {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
}

.avail-nav:hover {
  background: var(--paper);
}

.avail-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.avail-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
}

.avail-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.avail-cell.is-empty {
  background: transparent;
}

.avail-cell.is-free {
  background: rgba(16, 167, 127, 0.12);
  color: #0c6b52;
  border-color: rgba(16, 167, 127, 0.28);
}

.avail-cell.is-busy {
  background: rgba(255, 106, 61, 0.16);
  color: #b23a17;
  border-color: rgba(255, 106, 61, 0.34);
}

.avail-cell.is-pastday {
  background: rgba(23, 23, 23, 0.04);
  color: var(--muted);
}

/* Edytor terminów zajętości w panelu. */
.avail-form {
  margin-top: 6px;
}

.avail-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.avail-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.avail-row-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.avail-row-field span {
  font-size: 11.5px;
  font-weight: 740;
  color: var(--muted);
}

.avail-row-field input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
}

.avail-row-field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.avail-row-del {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 106, 61, 0.4);
  background: var(--white);
  color: #b23a17;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.avail-row-del:hover {
  background: rgba(255, 106, 61, 0.1);
}

.avail-add {
  align-self: flex-start;
}

@media (max-width: 560px) {
  .avail-row {
    grid-template-columns: 1fr 1fr;
  }

  .avail-row-field.grow {
    grid-column: 1 / -1;
  }

  .avail-row-del {
    grid-column: 1 / -1;
    width: auto;
    justify-self: end;
    padding: 0 16px;
    height: 36px;
  }
}

/* Pola wgrywania zdjęć w panelu. */
.panel-image-field input[type="file"] {
  width: 100%;
  font-size: 14px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}

.panel-thumb {
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}

.panel-thumb img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
}

/* =====================================================================
   PRELOADER ZAPISU + STATUS WGRYWANIA ZDJĘCIA W TLE (panel opiekuna)
   ===================================================================== */

/* Status wgrywania zdjęcia „w tle" pod polem wyboru pliku. */
.panel-upload-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 640;
  color: var(--ink);
}

.panel-upload-status img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.panel-upload-status.is-loading {
  color: var(--muted);
}

.panel-upload-status.is-done {
  border-color: rgba(16, 167, 127, 0.4);
  background: rgba(16, 167, 127, 0.08);
}

.panel-upload-status.is-error {
  border-color: rgba(255, 106, 61, 0.45);
  background: rgba(255, 106, 61, 0.08);
  color: #b23a17;
}

.panel-upload-text {
  min-width: 0;
}

.panel-upload-ok {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-3);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.panel-upload-err {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

/* Kręciołek (spinner). */
.panel-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid rgba(23, 23, 23, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: panel-spin 0.7s linear infinite;
}

.panel-spinner-lg {
  width: 30px;
  height: 30px;
  border-width: 3px;
}

@keyframes panel-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-spinner {
    animation-duration: 1.6s;
  }
}

/* Nakładka „Zapisywanie…" na czas wysyłki formularza. */
.panel-saving-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(247, 243, 236, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: panel-fade-in 0.16s ease;
}

@keyframes panel-fade-in {
  from {
    opacity: 0;
  }
}

.panel-saving-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 34px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(18, 14, 10, 0.22);
  font-weight: 740;
  font-size: 15px;
  color: var(--ink);
  text-align: center;
}
