@font-face {
  font-family: 'Inter';
  src: url('/themes/bieg-theme/vite/fonts/Inter-Regular-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/themes/bieg-theme/vite/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('/themes/bieg-theme/vite/fonts/Inter-Medium-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/themes/bieg-theme/vite/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('/themes/bieg-theme/vite/fonts/Inter-SemiBold-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/themes/bieg-theme/vite/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('/themes/bieg-theme/vite/fonts/Inter-Bold-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/themes/bieg-theme/vite/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  src: url('/themes/bieg-theme/vite/fonts/Outfit-SemiBold-latin.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  src: url('/themes/bieg-theme/vite/fonts/Outfit-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  src: url('/themes/bieg-theme/vite/fonts/Outfit-Bold-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  src: url('/themes/bieg-theme/vite/fonts/Outfit-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  src: url('/themes/bieg-theme/vite/fonts/Outfit-ExtraBold-latin.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  src: url('/themes/bieg-theme/vite/fonts/Outfit-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg-base: #fff;
  --bg-surface: #f8fafc;
  --color-primary: #172238;
  --color-accent-red: #e5234d;
  --color-accent-yellow: #d97706;
  --color-accent-blue: #1476b8;
  --text-main: #172238;
  --text-muted: #64748b;
  --border-glass: rgba(23, 34, 56, .09);
  --radius-xl: 18px;
  --radius-full: 999px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(20, 118, 184, .55); outline-offset: 3px; }
.container { width: min(100% - 48px, 1160px); margin: 0 auto; }
.section-padding { padding: 76px 0; }
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 34px;
  letter-spacing: -.04em;
  color: var(--color-primary);
}
.gradient-text {
  background: linear-gradient(100deg, var(--color-accent-red), var(--color-accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glass-panel {
  background: #fff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 36px rgba(23, 34, 56, .045);
}
.impact-section { padding: 0 0 34px; }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e9edf3;
  border-radius: 16px;
}
.impact-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 22px 16px; text-align: center; }
.impact-stat + .impact-stat { border-left: 1px solid #e4e9f0; }
.impact-number { font-family: 'Outfit', sans-serif; color: var(--color-accent-red); font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 800; line-height: 1.15; }
.impact-label { color: #64748b; font-size: .76rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.split-layout { display: flex; align-items: center; gap: 3rem; padding: 2.5rem; }
.split-text { flex: 1; }
.split-text h2 { font-family: 'Outfit', sans-serif; font-size: 1.8rem; line-height: 1.2; font-weight: 800; margin-bottom: 1.1rem; color: var(--color-primary); letter-spacing: -.03em; }
.split-text p { font-size: 1rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.split-image-wrapper, .split-layout > .split-image { flex: 1; min-width: 0; }
.split-image { width: 100%; min-height: 280px; aspect-ratio: 4 / 3; background-color: #e2e8f0; background-size: cover; background-position: center; border-radius: 14px; }
.split-section { padding: 72px 0; }
.bg-gray-box { background: #f8fafc; }
.split-layout.reverse { flex-direction: row-reverse; }
.split-image-box { width: 100%; min-height: 280px; aspect-ratio: 4 / 3; border-radius: 14px; background-size: cover; background-position: center; }
.steps-list { list-style: none; display: grid; gap: 20px; margin-top: 25px; }
.steps-list li { display: flex; align-items: flex-start; gap: 15px; }
.step-num { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: var(--color-accent-red); background: #fff0f3; font-weight: 800; }
.steps-list h3 { font-size: 1rem; margin-bottom: 3px; }
.steps-list p { font-size: .94rem; color: var(--text-muted); }
.theme-manager { position: fixed; right: 12px; bottom: 12px; z-index: 1200; display: none; }
@media (max-width: 800px) {
  .container { width: min(100% - 36px, 1160px); }
  .section-padding { padding: 56px 0; }
  .split-layout, .split-layout.reverse { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
  .split-image-wrapper, .split-layout > .split-image { width: 100%; }
  .split-image, .split-image-box { min-height: 220px; }
  .split-section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .impact-section { padding-bottom: 20px; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-stat { padding: 15px 12px; }
  .impact-stat + .impact-stat { border-left: 0; border-top: 1px solid #e4e9f0; }
  .impact-label { font-size: .7rem; }
}
/* Navbar wyrównany do szerokości 1220px */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  padding: 10px max(24px, calc((100vw - 1220px) / 2));
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  border-radius: 8px;
}

.brand-symbol {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  transition: transform 0.2s ease;
}

.brand:hover .brand-symbol {
  transform: translateY(-1px);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  white-space: nowrap;
  font-family: 'Outfit', 'Inter', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.brand-title-run {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  color:#123d70;
  font-size: 16px;
  font-weight: 800;
}

.brand-title-faculty {
  color:#123d70;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 36px);
}

.nav-links a {
  position: relative;
  color: #64748B;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: '';
  background: #E11D48;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #0F172A;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Przycisk dopasowany 1:1 do .btn-primary z Hero */
.nav-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #E11D48;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
  background: #be123c;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.35);
  transform: translateY(-2px);
}

.brand:focus-visible,
.nav-links a:focus-visible,
.nav-btn:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.5);
  outline-offset: 4px;
}

/* ==========================================================================
   Pasek redakcyjny – widoczny wyłącznie dla zalogowanych
   ========================================================================== */
.editor-session-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  min-height: 42px;
  background: #123d70;
  color: #fff;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 12px;
}

.editor-session-bar__inner {
  width: min(1220px, calc(100% - 40px));
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.editor-session-bar__identity,
.editor-session-bar__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.editor-session-bar__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48d597;
  box-shadow: 0 0 0 3px rgba(72, 213, 151, 0.16);
}

.editor-session-bar__user {
  color: rgba(255, 255, 255, 0.72);
}

.editor-session-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: inherit;
}

.editor-session-timer strong {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.editor-session-timer.is-warning {
  color: #f59e0b;
  border-color: #f59e0b;
}

.editor-session-timer.is-expired {
  color: #ef4444;
  border-color: #ef4444;
}

.editor-session-bar__link,
.editor-session-bar__logout button {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.editor-session-bar__link:hover,
.editor-session-bar__logout button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.editor-session-bar__logout {
  margin: 0;
}

body:has(.editor-session-bar) {
  padding-top: 42px;
}

.navbar.navbar--editor-session {
  top: 42px;
}

/* ==========================================================================
   Responsywność (RWD)
   ========================================================================== */
@media (max-width: 1120px) {
  .navbar { gap: 18px; }
  .brand { gap: 9px; }
  .brand-symbol { flex-basis: 58px; width: 58px; height: 42px; }
  .nav-links { gap: 18px; }
  .nav-btn { padding-inline: 16px; }
}

@media (max-width: 760px) {
  .navbar { min-height: 70px; gap: 12px; padding: 8px 18px; }
  .nav-links { display: none; }
  .brand-symbol { flex-basis: 54px; width: 54px; height: 40px; }
  .brand-title-run { font-size: 15px; }
  .brand-title-faculty { font-size: 11px; }
  .nav-btn { min-height: 40px; padding: 0.55rem 1.2rem; font-size: 0.85rem; }
}

@media (max-width: 650px) {
  .editor-session-bar {
    position: fixed;
    inset: 0 0 auto;
    height: 42px;
    overflow: hidden;
  }

  .editor-session-bar__inner {
    width: calc(100% - 16px);
    height: 42px;
    min-height: 42px;
    padding: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }

  .editor-session-bar__identity {
    flex-wrap: nowrap;
    gap: 7px;
    font-size: 10px;
  }

  .editor-session-bar__user,
  .editor-session-bar__link[href="/admin"] {
    display: none;
  }

  .editor-session-bar__actions {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .editor-session-bar__link,
  .editor-session-bar__logout button {
    padding: 4px 6px;
    font-size: 10px;
    white-space: nowrap;
  }

  body:has(.editor-session-bar) {
    padding-top: 42px;
  }

  .navbar.navbar--editor-session {
    top: 42px;
  }
}

@media (max-width: 420px) {
  .navbar { min-height: 64px; padding: 7px 12px; gap: 8px; }
  .brand { gap: 6px; }
  .brand-symbol { flex-basis: 46px; width: 46px; height: 36px; }
  .brand-title-run { font-size: 13px; }
  .nav-btn { min-height: 36px; padding: 0.45rem 0.9rem; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-symbol, .nav-links a, .nav-links a::after, .nav-btn { transition: none; }
}
/* Hero — uporządkowany CSS. Zachowuje obsługę obu wariantów ilustracji:
   1) .hero-background bezpośrednio w .hero + .hero-visual/.hero-illustration
   2) .hero-art z .hero-background i .hero-runners
*/

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(690px, calc(100svh - 72px));
  padding: 84px 0 64px;
  overflow: hidden;
  background: #fff;
}

/* Tło budynku może być warstwą całego hero albo częścią .hero-art. */
.hero > .hero-background,
.hero-art > .hero-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: .28;
  pointer-events: none;
  user-select: none;
}

.hero > .hero-background {
  opacity: 0.38;

  -webkit-mask-image: radial-gradient(
    ellipse 32% 72% at 70% 52%,
    #000 0%,
    rgba(0, 0, 0, 0.85) 48%,
    rgba(0, 0, 0, 0.38) 73%,
    transparent 100%
  );

  mask-image: radial-gradient(
    ellipse 32% 72% at 70% 52%,
    #000 0%,
    rgba(0, 0, 0, 0.85) 48%,
    rgba(0, 0, 0, 0.38) 73%,
    transparent 100%
  );
}

.hero-art > .hero-background {
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 58% 48%, #000 42%, rgba(0, 0, 0, .72) 61%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 58% 48%, #000 42%, rgba(0, 0, 0, .72) 61%, transparent 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  width: min(100% - 48px, 1220px);
  margin-inline: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 610px;
  padding: 12px 0 22px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
  color: #e62950;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Zapas dla starszego markupu, w którym kicker jest zwykłym pierwszym <p>. */
.hero-content > p:first-child:not(.hero-desc):not(.hero-note) {
  margin: 0 0 19px;
  color: #e62950;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #e62950;
}

.hero-kicker:not(:has(.hero-kicker-dot))::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #e62950;
}

.hero-title {
  margin: 0 0 22px;
  color: #14233a;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 3.8vw, 3.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.05em;
}

.hero-title-line {
  display: block;
}

/* Celowo jednolita czerwień — bez poprzedniego wielokolorowego gradientu. */
.hero-title .gradient-text {
  margin-top: 5px;

  background: linear-gradient(
    100deg,
    #f3274f 0%,
    #d51e49 35%,
    #92264f 62%,
    #123e70 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-desc {
  max-width: 530px;
  margin: 0 0 28px;
  color: #60728a;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

/* Wspólne cechy obu przycisków; selektory obejmują też starszy markup bez klas. */
.hero .btn-primary,
.hero .btn-secondary,
.hero .hero-actions a,
.hero .hero-content > a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.hero .btn-primary,
.hero .hero-actions a:first-child,
.hero .hero-content > a:first-of-type,
.hero .hero-content a[href*='zapisy'] {
  color: #fff !important;
  background: #ed2450;
  border-color: #ed2450;
  box-shadow: 0 7px 18px rgba(225, 29, 72, .16);
}

.hero .btn-primary:hover,
.hero .hero-actions a:first-child:hover,
.hero .hero-content > a:first-of-type:hover,
.hero .hero-content a[href*='zapisy']:hover {
  color: #fff !important;
  background: #cf1e43;
  border-color: #cf1e43;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(225, 29, 72, .22);
}

.hero .btn-secondary,
.hero .hero-actions a:nth-child(2),
.hero .hero-content > a:nth-of-type(2),
.hero .hero-content a[href*='misja'] {
  color: #14233a !important;
  background: #fff;
  border-color: #dce4ed;
  box-shadow: none;
}

.hero .btn-secondary:hover,
.hero .hero-actions a:nth-child(2):hover,
.hero .hero-content > a:nth-of-type(2):hover,
.hero .hero-content a[href*='misja']:hover {
  color: #14233a !important;
  background: #f7f9fc;
  border-color: #cbd7e5;
  transform: translateY(-2px);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 23px 0 0;
  color: #718096;
  font-size: .86rem;
  line-height: 1.5;
}

.hero-note-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #24a477;
}

/* Ilustracja osadzona w prawej kolumnie. */
.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
}

.hero-illustration {
  position: relative;
  display: block;
  width: min(112%, 660px);
  max-width: none;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transform: translate(1%, 1%);
  pointer-events: none;
  user-select: none;
}

/* Alternatywa: tło i biegacze są dwiema warstwami we wspólnym .hero-art. */
.hero-art {
  position: relative;
  isolation: isolate;
  width: min(122%, 760px);
  max-width: none;
  min-width: 0;
  aspect-ratio: 16 / 9;
  margin-left: -8%;
}

.hero-runners {
  position: absolute;
  z-index: 2;
  right: -1%;
  bottom: -1%;
  display: block;
  width: 80%;
  max-width: none;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 7px 12px rgba(18, 48, 76, .08));
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding: 76px 0 52px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 22px;
  }

  .hero-title {
    font-size: clamp(2.35rem, 4.6vw, 3.1rem);
  }

  .hero-illustration {
    width: 100%;
    transform: translateX(1%);
  }

  .hero-art {
    width: 122%;
    margin-left: -8%;
  }

  .hero-runners {
    width: 80%;
  }

  .hero .btn-primary,
  .hero .btn-secondary,
  .hero .hero-actions a,
  .hero .hero-content > a {
    padding-inline: 16px;
    font-size: .87rem;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 52px 0 36px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: min(100% - 36px, 580px);
  }

  .hero-content {
    max-width: none;
    padding: 8px 0 0;
  }

  .hero-kicker {
    margin-bottom: 15px;
    font-size: .68rem;
    letter-spacing: .055em;
  }

  .hero-title {
    margin-bottom: 17px;
    font-size: clamp(2.3rem, 8.5vw, 3.3rem);
    letter-spacing: -.047em;
  }

  .hero-desc {
    margin-bottom: 21px;
    font-size: .98rem;
    line-height: 1.7;
  }

  .hero-actions {
    width: 100%;
    max-width: 360px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero .btn-primary,
  .hero .btn-secondary,
  .hero .hero-actions a,
  .hero .hero-content > a {
    width: 100%;
    min-height: 49px;
    white-space: normal;
  }

  .hero-note {
    margin-top: 18px;
    font-size: .8rem;
  }

  .hero-visual {
    margin-top: 8px;
  }

  .hero-illustration {
    width: min(100%, 540px);
    transform: none;
  }

  .hero-art {
    width: min(112%, 620px);
    aspect-ratio: 16 / 10;
    margin: 0 auto;
  }

  .hero-art > .hero-background {
    object-position: 72% center;
    -webkit-mask-image: radial-gradient(ellipse 78% 72% at 60% 48%, #000 42%, rgba(0, 0, 0, .72) 65%, transparent 100%);
    mask-image: radial-gradient(ellipse 78% 72% at 60% 48%, #000 42%, rgba(0, 0, 0, .72) 65%, transparent 100%);
  }

  .hero-runners {
    width: 84%;
    right: -1%;
    bottom: 0;
  }
}

@media (max-width: 420px) {
  .hero {
    padding-top: 46px;
  }

  .hero-title {
    font-size: clamp(2.05rem, 8.2vw, 2.45rem);
  }

  .hero-kicker {
    max-width: 310px;
  }

  .hero-illustration {
    width: 100%;
    margin-left: 0;
  }

  .hero-art {
    width: 100%;
    margin-left: 0;
  }

  .hero-runners {
    width: 88%;
    right: -2%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .btn-primary,
  .hero .btn-secondary,
  .hero .hero-actions a,
  .hero .hero-content > a {
    transition: none;
  }
}
.split-layout { display: flex; align-items: center; gap: 4rem; padding: 3rem; }
.split-text { flex: 1; }
.split-text h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--color-primary); }
.split-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.split-image-wrapper { flex: 1; }
.split-image { width: 100%; aspect-ratio: 4 / 3; background-color: #e2e8f0; background-image: url('/themes/bieg-theme/vite/images/a_kanigowski.jpg'); background-size: cover; background-position: center; border-radius: 16px; border: 1px solid var(--border-glass); }

@media (max-width: 1024px) {
  .split-layout { flex-direction: column; gap: 2rem; padding: 2rem; }
  .split-image-wrapper { width: 100%; }
}
.initiator-section {
  padding-block: 4rem 5rem;
}

.initiator-header {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.initiator-eyebrow {
  display: block;
  margin-bottom: 0.7rem;
  color: #d62950;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Karta inicjatora */
.initiator-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  row-gap: 0;

  max-width: 1160px;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);

  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 22px;
  box-shadow: 0 14px 45px rgb(16 32 57 / 5%);
}

/* Elementy intro stają się bezpośrednimi elementami siatki */
.initiator-intro {
  display: contents;
}

/* Zdjęcie po lewej */
.initiator-figure {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;

  width: 100%;
  min-width: 0;
  margin: 0;
}

.initiator-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 15px;
}

.initiator-figure figcaption {
  margin-top: 0.85rem;
  color: #102039;
  font-weight: 750;
}

.initiator-figure figcaption span {
  display: block;
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 500;
}

/* Tekst po prawej */
.initiator-lead {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.initiator-lead p,
.initiator-story p {
  margin: 0 0 1rem;
  color: #526780;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.initiator-lead p:first-child {
  margin-top: 0;
}

.initiator-highlight {
  color: #102039 !important;
  font-size: 1.08rem !important;
  font-weight: 650;
  line-height: 1.65 !important;
}

/* Dalsza historia kontynuuje kolumnę tekstową */
.initiator-story {
  grid-column: 2;
  grid-row: 2;

  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 1.25rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid #e8edf3;
}

.initiator-story h3 {
  margin: 0 0 1rem;
  color: #102039;
  font-size: 1.4rem;
  line-height: 1.35;
}

.initiator-conclusion {
  margin-top: 1.25rem !important;
  padding-left: 0;
  border-left: none;
  color: #102039 !important;
  font-weight: 600;
}
/* Telefon i wąski tablet */
@media (max-width: 700px) {
  .initiator-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .initiator-figure {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  .initiator-photo {
    aspect-ratio: 4 / 3;
    object-position: center 20%;
  }

  .initiator-lead {
    grid-column: 1;
    grid-row: 2;
  }

  .initiator-story {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
    padding-top: 1.25rem;
  }

  .initiator-story h3 {
    font-size: 1.25rem;
  }
}
.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 2rem;
}

.edition-card {
  height: 100%;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
}

.edition-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.edition-year {
  display: inline-block;
  align-self: flex-start;
  padding: 0.4rem 1.2rem;
  margin: 0;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: var(--color-accent-blue);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
}

.edition-card-status {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #64748b;
  background: rgba(248, 250, 252, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.edition-card-status-upcoming {
  color: #a62645;
  border-color: rgba(197, 47, 80, 0.2);
  background: rgba(197, 47, 80, 0.06);
}

.edition-card h3 {
  margin: 0 0 1rem;
  color: var(--color-primary);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.25;
}

.edition-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.edition-card-active {
  border-color: rgba(197, 47, 80, 0.24);
  background-image: linear-gradient(145deg, rgba(197, 47, 80, 0.035), transparent 58%);
}

.gradient-text {
  margin-top: 5px;
  background: linear-gradient(
    100deg,
    #f3274f 0%,
    #d51e49 35%,
    #92264f 62%,
    #123e70 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.edition-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.edition-card-link span {
  color: #c72c4e;
  transition: transform 0.18s ease;
}

.edition-card-link:hover span {
  transform: translate(3px, -3px);
}

.edition-card-link:hover {
  color: #c72c4e;
}

.editions-empty {
  grid-column: 1 / -1;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .editions-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edition-card-link span {
    transition: none;
  }
}

/* Krótka zajawka na karcie edycji */
.edition-card .edition-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: 5.4em;
  max-height: 5.4em;
  line-height: 1.8;
}

/* Zajawka na karcie – maksymalnie trzy linie */
.edition-card .edition-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: 5.4em;
  max-height: 5.4em;
  line-height: 1.8;
}

/* ===== NADCHODZĄCA EDYCJA ===== */

.upcoming-edition-block {
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.upcoming-edition-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.upcoming-edition-eyebrow {
  margin-bottom: 0.8rem;
  color: #c52f50;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.upcoming-edition-heading h2 {
  margin: 0 0 1rem;
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 850;
  line-height: 1.12;
}

.upcoming-edition-intro {
  max-width: 600px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.upcoming-edition-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.upcoming-edition-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
  min-height: 270px;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  overflow: hidden;
  border: 1px solid #dce6ee;
  border-radius: 24px;
  background:
    radial-gradient(
      ellipse at 90% 10%,
      rgba(22, 133, 199, 0.09),
      transparent 42%
    ),
    linear-gradient(120deg, #f8fbfe 0%, #ffffff 75%);
}

.upcoming-edition-card::after {
  content: attr(data-year);
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  color: rgba(18, 61, 112, 0.045);
  font-size: clamp(6rem, 17vw, 12rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.upcoming-edition-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.upcoming-edition-card h3 {
  margin: 1.4rem 0 0.5rem;
  color: var(--color-primary);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 850;
  line-height: 1.2;
}

.upcoming-edition-subtitle {
  margin: 0 0 0.8rem;
  color: #c52f50;
  font-weight: 700;
}

.upcoming-edition-card .edition-card-description {
  max-width: 680px;
  min-height: 0;
  max-height: none;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.upcoming-edition-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  margin-top: 1.5rem;
}

.upcoming-edition-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #52677a;
  font-size: 0.9rem;
  font-weight: 650;
}

.upcoming-edition-meta-item > span:first-child {
  color: #c52f50;
  font-size: 1.1rem;
}

.upcoming-edition-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border: 1px solid #123d70;
  border-radius: 12px;
  background: #123d70;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.upcoming-edition-cta:hover {
  background: #0d315c;
  color: #ffffff;
  transform: translateY(-2px);
}

.upcoming-edition-cta span {
  font-size: 1.1rem;
}

.edition-history-block {
  padding-top: 0.5rem;
}

/* Czerwona obwódka oznacza aktywność, nie fazę wydarzenia. */
.edition-card-active {
  border-color: rgba(197, 47, 80, 0.5);
  background-image:
    linear-gradient(145deg, rgba(197, 47, 80, 0.035), transparent 58%);
}
/* Wyrównanie etykiety nadchodzącej edycji do lewej */
.upcoming-edition-card .edition-card-topline {
  justify-content: flex-start;
}
@media (max-width: 768px) {
  .upcoming-edition-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    min-height: 0;
  }

  .upcoming-edition-cta {
    justify-self: start;
    white-space: normal;
  }

  .upcoming-edition-card::after {
    right: 0.8rem;
    top: 1rem;
    transform: none;
    font-size: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .upcoming-edition-cta {
    transition: none;
  }
}
.schedule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.schedule-card { padding: 2.5rem 1.5rem; text-align: center; }
.sc-time { display: block; font-size: 2.2rem; font-weight: 900; color: var(--color-accent-blue); margin-bottom: 0.5rem; }
.schedule-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--color-primary); }
.schedule-card p { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 1024px) {
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .schedule-grid { grid-template-columns: 1fr; }
}
.footer-section {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-surface);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-branding p {
  margin: 0;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-text span {
  color: var(--color-primary);
  font-weight: 700;
}

.footer-meta {
  margin-top: 0.5rem !important;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Podpis organizatora */
.footer-university {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  width: fit-content;
  max-width: 100%;
  margin-top: 0.25rem;
  padding: 1.5rem 1.25rem 0;

  border-top: 1px solid var(--border-glass);
  text-align: left;
}

.footer-university-logo {
  display: flex;
  flex: 0 0 54px;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-height: 60px;
}

.footer-university-logo img {
  display: block;
  width: auto;
  max-width: 54px;
  max-height: 66px;
  object-fit: contain;
}

.footer-university-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;

  color: var(--color-primary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-university-label {
  color: var(--color-accent-red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-university-copy strong {
  font-size: 0.92rem;
  font-weight: 750;
}

.footer-university-copy > span:last-child {
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .footer-section {
    padding: 2.5rem 0 2rem;
  }

  .footer-container {
    gap: 1.25rem;
  }

  .footer-university {
    gap: 12px;
    padding: 1.25rem 0.5rem 0;
  }

  .footer-university-logo {
    flex-basis: 44px;
    width: 44px;
  }

  .footer-university-logo img {
    max-width: 44px;
    max-height: 56px;
  }

  .footer-university-copy {
    font-size: 0.8rem;
  }

  .footer-university-copy strong {
    font-size: 0.84rem;
  }
}
/* Podstrona misji — wykorzystuje wspólne fonty, kolory i .container serwisu. */
.site-page-main { min-height: 60vh; padding-top: 76px; }
.mission-page { overflow: hidden; background: #fff; }
.mission-hero { position: relative; padding: clamp(3.75rem, 7vw, 6.75rem) 0 clamp(2.5rem, 5vw, 4rem); background: linear-gradient(180deg, #f8fbfe 0%, #fff 100%); }
.mission-hero__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.mission-hero__content { position: relative; z-index: 1; max-width: 690px; }
.mission-eyebrow { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; color: #d62950; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mission-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #d62950; }
.mission-hero h1 { max-width: 700px; margin: 0 0 1.2rem; color: #172238; font-family: 'Outfit', sans-serif; font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.055em; }
.mission-lead { max-width: 650px; margin: 0 0 1rem; color: #233c5c; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; line-height: 1.6; }
.mission-hero__intro { max-width: 620px; margin: 0; color: #64748b; font-size: 1rem; line-height: 1.85; }
.mission-hero__art { display: grid; place-items: center; min-width: 0; }
.mission-hero__art img { display: block; width: 100%; max-width: 520px; height: auto; object-fit: contain; }
.mission-body { padding: clamp(2.5rem, 5vw, 4.5rem) 0 5rem; }
.mission-body__layout { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.mission-aside { position: sticky; top: 110px; padding: 1.5rem; border: 1px solid #e7edf3; border-radius: 18px; background: #f8fafc; }
.mission-aside__label { margin: 0 0 1rem; color: #64748b; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.mission-aside__statement { margin: 0; color: #172238; font-family: 'Outfit', sans-serif; font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 750; line-height: 1.3; letter-spacing: -.035em; }
.mission-aside__rule { display: flex; gap: 5px; margin-top: 1.5rem; }
.mission-aside__rule span { display: block; width: 38px; height: 4px; border-radius: 999px; background: #e5234d; }
.mission-aside__rule span + span { width: 24px; background: #1476b8; }
.mission-article { min-width: 0; }
.mission-section { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 1rem; padding: 0 0 2.2rem; margin: 0 0 2.2rem; border-bottom: 1px solid #e8edf3; scroll-margin-top: 100px; }
.mission-section__number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #fff0f3; color: #d62950; font-size: .85rem; font-weight: 800; }
.mission-section h2 { margin: .1rem 0 .8rem; color: #172238; font-family: 'Outfit', sans-serif; font-size: clamp(1.35rem, 2.3vw, 1.8rem); font-weight: 800; line-height: 1.25; letter-spacing: -.035em; }
.mission-section p { margin: 0 0 1rem; color: #566981; font-size: 1rem; line-height: 1.85; }
.mission-section p:last-child { margin-bottom: 0; }
.mission-closing { position: relative; overflow: hidden; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 20px; background: #f7f9fc; border: 1px solid #e5eaf0; }
.mission-closing::after { position: absolute; top: -55px; right: -35px; width: 170px; height: 170px; border: 18px solid rgba(20,118,184,.06); border-radius: 50%; content: ''; pointer-events: none; }
.mission-closing__mark { display: block; height: 34px; color: #e5234d; font-family: Georgia, serif; font-size: 4rem; line-height: 1; }
.mission-closing p { position: relative; z-index: 1; max-width: 720px; margin: .8rem 0 1.5rem; color: #172238; font-family: 'Outfit', sans-serif; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 700; line-height: 1.5; letter-spacing: -.025em; }
.mission-closing .btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 20px; border-radius: 11px; background: #e5234d; color: #fff; font-size: .92rem; font-weight: 750; text-decoration: none; box-shadow: 0 7px 18px rgba(225,29,72,.16); }
.mission-closing .btn-primary:hover { background: #c91c40; }
.page-not-found { min-height: 55vh; }
.page-not-found h1 { margin-bottom: 1rem; color: #172238; }
.page-not-found p { margin-bottom: 1.5rem; color: #64748b; }

@media (max-width: 850px) {
  .mission-hero__layout { grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: 1rem; }
  .mission-body__layout { grid-template-columns: minmax(150px, .45fr) minmax(0, 1.55fr); gap: 1.75rem; }
  .mission-aside { padding: 1.15rem; }
}
@media (max-width: 680px) {
  .site-page-main { padding-top: 70px; }
  .mission-hero { padding: 2.75rem 0 2rem; }
  .mission-hero__layout { grid-template-columns: minmax(0, 1fr); }
  .mission-hero__art { margin: .5rem auto 0; max-width: 390px; }
  .mission-hero__art img { max-height: 260px; }
  .mission-body { padding: 2rem 0 3rem; }
  .mission-body__layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .mission-aside { position: static; }
  .mission-section { grid-template-columns: 34px minmax(0, 1fr); gap: .75rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
  .mission-section__number { width: 30px; height: 30px; border-radius: 9px; }
  .mission-section p { font-size: .96rem; line-height: 1.78; }
}
.content-page {
  min-height: 60vh;
}

.content-page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 3rem;
}

.content-page-eyebrow {
  margin-bottom: 1rem;
  color: var(--color-primary, #397b65);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.content-page-hero h1 {
    max-width: 700px;
    margin: 0 0 1.2rem;
    color: var(--color-primary);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    letter-spacing: -.04em;
}

.content-page-lead {
  max-width: 780px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.6;
}

.content-page-intro {
  max-width: 780px;
  line-height: 1.7;
}

.content-page-hero-image {
  display: block;
  max-width: 100%;
  max-height: 480px;
  margin-top: 2rem;
  border-radius: 1rem;
  object-fit: cover;
}

.content-page-body {
  padding: 2rem 0 6rem;
}

.content-page-editorial {
  max-width: 820px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-page-editorial h1,
.content-page-editorial h2,
.content-page-editorial h3 {
  margin: 2rem 0 1rem;
  line-height: 1.25;
}

.content-page-editorial p {
  margin-bottom: 1.25rem;
}

.content-page-editorial ul,
.content-page-editorial ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
}

.content-page-editorial blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--color-primary, #397b65);
}

.content-page-editorial a {
  text-decoration: underline;
}
/* Układ strony: treść + panel boczny */

.content-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(240px, 320px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.content-page-layout-aside .content-page-editorial {
  max-width: none;
}

.content-page-aside {
  position: sticky;
  top: 2rem;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--color-surface, #f4f7f5);
}

.content-page-aside-label {
  margin-bottom: 1rem;
  color: var(--color-primary, #397b65);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.content-page-aside-statement {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Układ pełnej szerokości */

.content-page-layout-full-width .content-page-body > .container {
  width: 100%;
  max-width: none;
}

.content-page-layout-full-width .content-page-editorial {
  max-width: none;
}

/* Responsywność */

@media (max-width: 900px) {
  .content-page-layout {
    grid-template-columns: 1fr;
  }

  .content-page-aside {
    position: static;
  }
}

/* Uniwersalne sekcje stron */

.universal-section {
  min-width: 0;
  margin: 0 0 2.5rem;
  scroll-margin-top: 100px;
}

.universal-section h2 {
  margin: 0 0 1rem;
  color: #172238;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.universal-section__content {
  color: #566981;
  font-size: 1rem;
  line-height: 1.85;
}

.universal-section__content p {
  margin: 0 0 1rem;
}

.universal-section__content p:last-child {
  margin-bottom: 0;
}

/* Tekst i zdjęcie */

.universal-section--text-image {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.universal-section--image-right .universal-section__image {
  order: 2;
}

.universal-section--image-right .universal-section__body {
  order: 1;
}

.universal-section--image-left .universal-section__image {
  order: 1;
}

.universal-section--image-left .universal-section__body {
  order: 2;
}

.universal-section__image img,
.universal-section--image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: 18px;
  object-fit: cover;
}

/* Samo zdjęcie */

.universal-section--image {
  margin-top: 2rem;
}

.universal-section--image figcaption {
  margin-top: .65rem;
  color: #64748b;
  font-size: .875rem;
}

/* Cytat */

.universal-section--quote {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-left: 4px solid #e5234d;
  border-radius: 0 18px 18px 0;
  background: #f8fafc;
}

.universal-section--quote .universal-section__content {
  color: #172238;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 650;
  line-height: 1.55;
}

.universal-section--quote footer {
  margin-top: 1rem;
  color: #64748b;
  font-size: .9rem;
  font-weight: 700;
}

/* Blok informacyjny */

.universal-section--info {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid #e5eaf0;
  border-radius: 18px;
  background: #f8fafc;
}

/* Zakończenie dla zwykłych podstron */

.universal-section--closing {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid #e5eaf0;
  border-radius: 20px;
  background: #f7f9fc;
}

.universal-section--closing .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 1.25rem;
  padding: 12px 20px;
  border-radius: 11px;
  background: #e5234d;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

/* Układ bez panelu bocznego */

.mission-body__layout--no-aside {
  grid-template-columns: minmax(0, 1fr);
}

.content-page-layout--no-aside {
  grid-template-columns: minmax(0, 1fr);
}

.content-page-layout--no-aside .content-page-editorial {
  max-width: 820px;
}

.content-page-layout-full-width .content-page-layout--no-aside .content-page-editorial {
  max-width: none;
}

@media (max-width: 680px) {
  .universal-section--text-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .universal-section--image-right .universal-section__image,
  .universal-section--image-right .universal-section__body,
  .universal-section--image-left .universal-section__image,
  .universal-section--image-left .universal-section__body {
    order: initial;
  }
}
/* =========================================================
   PUBLIC GALLERY — LIGHTBOX
   ========================================================= */

.edition-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 90px;
  background: rgba(8, 17, 27, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.edition-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.edition-lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  gap: 14px;
}

.edition-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
}

.edition-lightbox-caption {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.edition-lightbox-counter {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

.edition-lightbox-close,
.edition-lightbox-prev,
.edition-lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.edition-lightbox-close:hover,
.edition-lightbox-prev:hover,
.edition-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.24);
}

.edition-lightbox-close {
  top: 22px;
  right: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.edition-lightbox-prev,
.edition-lightbox-next {
  top: 50%;
  width: 52px;
  height: 64px;
  border-radius: 10px;
  font-size: 3rem;
  line-height: 1;
  transform: translateY(-50%);
}

.edition-lightbox-prev {
  left: 22px;
}

.edition-lightbox-next {
  right: 22px;
}

.edition-lightbox-prev:hover,
.edition-lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.edition-lightbox button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

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

body.edition-lightbox-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .edition-lightbox {
    padding: 60px 12px 35px;
  }

  .edition-lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 170px);
  }

  .edition-lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .edition-lightbox-prev,
  .edition-lightbox-next {
    top: auto;
    bottom: 12px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 2rem;
    transform: none;
  }

  .edition-lightbox-prev {
    left: 20px;
  }

  .edition-lightbox-next {
    right: 20px;
  }

  .edition-lightbox-prev:hover,
  .edition-lightbox-next:hover {
    transform: scale(1.06);
  }

  .edition-lightbox-caption {
    padding: 0 48px;
    font-size: 0.85rem;
  }
}
/* =========================================
   STRONA POJEDYNCZEJ EDYCJI BIEGU
   ========================================= */

.edition-page {
  --ed-ink: #172f4b;
  --ed-muted: #617386;
  --ed-red: #c52f50;
  --ed-blue: #315f83;
  --ed-line: #e2e9ef;
  --ed-pale: #f5f8fa;

  overflow: hidden;
  color: var(--ed-ink);
  background: #fff;
}

.edition-container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.edition-page *,
.edition-page *::before,
.edition-page *::after {
  box-sizing: border-box;
}

.edition-page a {
  text-underline-offset: 4px;
}

.edition-page h1,
.edition-page h2,
.edition-page h3,
.edition-page p {
  overflow-wrap: anywhere;
}

.section-anchor {
  scroll-margin-top: 30px;
}

/* Breadcrumbs */

.edition-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: #7a8998;
  font-size: 0.82rem;
}

.edition-breadcrumbs a {
  color: var(--ed-blue);
  text-decoration: none;
}

.edition-breadcrumbs a:hover {
  text-decoration: underline;
}

/* =========================================
   HERO
   ========================================= */

.edition-hero {
  position: relative;
  padding: 22px 0 64px;
  background:
    radial-gradient(
      ellipse at 83% 38%,
      rgba(207, 224, 237, 0.56),
      transparent 43%
    ),
    linear-gradient(180deg, #f8fbfd 0%, #fff 100%);
  border-bottom: 1px solid #edf1f5;
}

.edition-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.edition-hero-copy {
  max-width: 700px;
}

.edition-eyebrow,
.edition-section-label {
  margin: 0;
  color: var(--ed-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.edition-eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid #ead8de;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.edition-hero h1 {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ed-ink);
  font-size: clamp(2.7rem, 4.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.edition-hero-subtitle {
  margin: 18px 0 0;
  color: var(--ed-blue);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.5;
}

.edition-hero-intro {
  max-width: 570px;
  margin: 16px 0 0;
  color: var(--ed-muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.edition-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.edition-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.edition-button:hover {
  transform: translateY(-2px);
}

.edition-button-primary {
  color: #fff !important;
  background: var(--ed-red);
  box-shadow: 0 8px 20px rgba(197, 47, 80, 0.17);
}

.edition-button-primary:hover {
  color: #fff !important;
  background: #ad2442;
  box-shadow: 0 10px 25px rgba(197, 47, 80, 0.24);
}

.edition-button-outline {
  color: var(--ed-ink);
  background: #fff;
  border-color: #dce5ec;
}

.edition-button-outline:hover {
  color: var(--ed-red);
  border-color: var(--ed-red);
}

.edition-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ed-blue);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.edition-text-link:hover {
  color: var(--ed-red);
}

/* Zdjęcie dziecka */

.edition-hero-photo {
  position: relative;
  width: 100%;
  max-width: 390px;
  justify-self: end;
  isolation: isolate;
}

.edition-photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 0;
  overflow: hidden;

  border: 5px solid #fff;
  border-radius: 18px;

  background: #e9f0f5;
  box-shadow: 0 16px 40px rgba(23, 47, 75, 0.12);
}

.edition-child-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.edition-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  color: #526b81;
  text-align: center;
}

.edition-photo-placeholder strong {
  max-width: 230px;
  font-size: 1rem;
  line-height: 1.5;
}

.edition-photo-placeholder small {
  max-width: 100%;
  color: #7b8b99;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.edition-photo-heart {
  color: var(--ed-red);
  font-size: 3.6rem;
  line-height: 1;
}

.edition-photo-caption {
  position: absolute;
  right: auto;
  bottom: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  background: rgba(19, 43, 66, 0.7);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-align: center;
  backdrop-filter: blur(8px);
}

.edition-hero-decoration {
  position: absolute;
  z-index: 0;
  top: -16px;
  right: -18px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(197, 47, 80, 0.24);
  border-radius: 50%;
  color: rgba(197, 47, 80, 0.13);
  background: rgba(197, 47, 80, 0.035);
  font-size: 2.8rem;
  line-height: 1;
  transform: none;
}

.edition-notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  color: #65788a;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* =========================================
   HISTORIA DZIECKA
   ========================================= */

.edition-story {
  padding: 86px 0;
}

.edition-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: start;
  gap: clamp(40px, 8vw, 105px);
}

.edition-story-copy {
  max-width: 760px;
}

.edition-story-copy h2,
.edition-tax-content h2,
.edition-gallery-heading h2 {
  margin: 14px 0 24px;
  color: var(--ed-ink);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.edition-story-copy > p:not(.edition-section-label) {
  margin: 0 0 20px;
  color: #5e7081;
  font-size: 1.03rem;
  line-height: 1.95;
}

.edition-story-aside {
  padding: 27px;
  border: 1px solid #e4ebf0;
  border-radius: 14px;
  background: #f8fafc;
}

.edition-aside-heart {
  display: block;
  margin-bottom: 12px;
  color: var(--ed-red);
  font-size: 2.6rem;
  line-height: 1;
}

.edition-aside-title {
  margin: 0 0 10px;
  color: var(--ed-ink);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
}

.edition-story-aside > p:not(.edition-aside-title) {
  margin: 0 0 20px;
  color: var(--ed-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* =========================================
   ZBIÓRKA
   ========================================= */

.edition-donation {
  padding: 0 0 78px;
}

.edition-donation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid #ecdde2;
  border-radius: 18px;
  background:
    radial-gradient(
      ellipse at 100% 0,
      rgba(197, 47, 80, 0.09),
      transparent 50%
    ),
    #fff9fa;
}

.edition-donation-copy {
  max-width: 680px;
}

.edition-donation-copy h2 {
  margin: 13px 0 12px;
  color: var(--ed-ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.edition-donation-copy > p:not(.edition-section-label) {
  margin: 0;
  color: var(--ed-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.edition-donation-action {
  flex: 0 0 auto;
}

.edition-donation-action .edition-notice {
  max-width: 270px;
}

/* =========================================
   1,5% PODATKU
   ========================================= */

.edition-tax {
  padding: 70px 0;
  background: var(--ed-pale);
  border-block: 1px solid #e8eef2;
}

.edition-tax-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 6vw, 70px);
}

.edition-tax-badge {
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding: 23px 15px;
  border: 1px solid #ead7dd;
  border-radius: 16px;
  color: var(--ed-red);
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 47, 75, 0.04);
}

.edition-tax-badge span {
  font-size: 2.6rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.07em;
}

.edition-tax-badge small {
  margin-left: 3px;
  font-size: 1.35rem;
  font-weight: 800;
}

.edition-tax-content h2 {
  margin-bottom: 14px;
}

.edition-tax-content > p:not(.edition-section-label) {
  max-width: 750px;
  margin: 0 0 20px;
  color: var(--ed-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.edition-tax-details {
  display: grid;
  gap: 0;
  max-width: 700px;
  margin-top: 24px;
  border: 1px solid var(--ed-line);
  border-radius: 10px;
  background: #fff;
}

.edition-tax-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 19px;
}

.edition-tax-row + .edition-tax-row {
  border-top: 1px solid var(--ed-line);
}

.edition-tax-row span {
  color: #758596;
  font-size: 0.88rem;
}

.edition-tax-row strong {
  color: var(--ed-ink);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

/* =========================================
   GALERIA — ZAJAWKA
   ========================================= */

.edition-gallery-section {
  padding: 86px 0 92px;
}

.edition-gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.edition-gallery-heading h2 {
  margin-bottom: 12px;
}

.edition-gallery-heading > div > p:not(.edition-section-label) {
  max-width: 700px;
  margin: 0;
  color: var(--ed-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.edition-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.edition-gallery-item {
  min-width: 0;
  margin: 0;
}

.edition-gallery-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #eaf0f4;
}

.edition-gallery-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.edition-gallery-item:hover .edition-gallery-image img {
  transform: scale(1.035);
}

.edition-image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #6e8294;
  background:
    linear-gradient(135deg, rgba(49, 95, 131, 0.05), transparent),
    #edf2f5;
  font-size: 0.83rem;
  font-weight: 700;
}

.edition-gallery-item figcaption {
  padding: 10px 2px 0;
  color: var(--ed-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.edition-gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.edition-gallery-empty {
  grid-column: 1 / -1;
  padding: 36px 20px;
  border: 1px dashed #cfdbe4;
  border-radius: 12px;
  color: var(--ed-muted);
  background: #f8fafb;
  text-align: center;
  line-height: 1.7;
}

/* Strona nieznanej edycji */

.edition-not-found {
  padding: 100px 0;
  text-align: center;
}

.edition-not-found h1 {
  margin: 20px 0 28px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}
/*GPX*/


/* ===== TRASA KONKRETNEJ EDYCJI ===== */

.edition-route-section {
  padding: 76px 0 82px;
  background: #f7fafc;
  border-block: 1px solid #e7edf2;
}

.edition-route-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 25px;
}

.edition-route-heading h2 {
  margin: 12px 0;
  color: var(--ed-ink);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.edition-route-heading p:not(.edition-section-label) {
  max-width: 680px;
  margin: 0;
  color: var(--ed-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.edition-route-heading > .edition-button {
  flex: 0 0 auto;
}

.edition-route-map {
  width: 100%;
  height: 430px;
  overflow: hidden;
  border: 1px solid #dce5ec;
  border-radius: 15px;
  background: #eaf0f4;
  box-shadow: 0 12px 35px rgba(23, 47, 75, 0.07);
  z-index: 0;
}

.edition-route-map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
}

.edition-route-map .leaflet-popup-content-wrapper {
  border-radius: 9px;
}

.edition-route-map .leaflet-popup-content {
  font-family: inherit;
  font-size: 0.85rem;
}

.edition-route-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 15px;
  color: #6e8091;
  font-size: 0.8rem;
}

.edition-route-error {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 30px;
  color: #65788a;
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 680px) {
  .edition-route-section {
    padding: 55px 0;
  }

  .edition-route-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .edition-route-map {
    height: 350px;
    border-radius: 10px;
  }

  .edition-route-footer {
    flex-direction: column;
  }
}

/* =========================================
   RESPONSYWNOŚĆ
   ========================================= */

@media (max-width: 900px) {
  .edition-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 30px;
  }

  .edition-photo-frame {
    min-height: 0;
  }

  .edition-story-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 35px;
  }

  .edition-donation-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .edition-tax-grid {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 680px) {
  .edition-container {
    width: calc(100% - 32px);
  }

  .edition-hero {
    padding: 22px 0 48px;
  }

  .edition-breadcrumbs {
    margin-bottom: 30px;
  }

  .edition-hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .edition-hero h1 {
    margin-top: 20px;
    font-size: clamp(2.5rem, 11vw, 3.7rem);
  }

  .edition-hero-intro {
    font-size: 0.98rem;
  }

  .edition-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .edition-hero-photo {
    width: min(100%, 390px);
    justify-self: center;
  }

  .edition-photo-frame {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .edition-hero-decoration {
    right: -8px;
    font-size: 6rem;
  }

  .edition-story {
    padding: 58px 0;
  }

  .edition-story-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .edition-story-copy h2,
  .edition-tax-content h2,
  .edition-gallery-heading h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .edition-donation {
    padding-bottom: 55px;
  }

  .edition-donation-card {
    padding: 25px 21px;
  }

  .edition-donation-action {
    width: 100%;
  }

  .edition-donation-action .edition-button {
    width: 100%;
  }

  .edition-tax {
    padding: 55px 0;
  }

  .edition-tax-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .edition-tax-badge {
    width: 118px;
    justify-self: start;
  }

  .edition-tax-row {
    flex-direction: column;
    gap: 6px;
  }

  .edition-gallery-section {
    padding: 58px 0;
  }

  .edition-gallery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .edition-gallery-image {
    aspect-ratio: 4 / 3;
  }

  .edition-gallery-heading {
    margin-bottom: 22px;
  }

  .edition-gallery-actions .edition-button {
    width: 100%;
  }
}
/* Galeria przyszłej edycji */

.edition-gallery-disabled {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 38px 24px;
  border: 1px dashed #ccd8e2;
  border-radius: 16px;
  background:
    radial-gradient(
      ellipse at center top,
      rgba(207, 224, 237, 0.35),
      transparent 65%
    ),
    #f8fafc;
  text-align: center;
}

.edition-gallery-disabled-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid #dce5ec;
  border-radius: 50%;
  color: #68839a;
  background: #fff;
  font-size: 2rem;
}

.edition-gallery-disabled h3 {
  margin: 0 0 10px;
  color: var(--ed-ink);
  font-size: 1.25rem;
  font-weight: 800;
}

.edition-gallery-disabled > p {
  max-width: 480px;
  margin: 0;
  color: var(--ed-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.edition-gallery-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 12px;
  border: 1px solid #e0e7ed;
  border-radius: 999px;
  color: #718193;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.edition-gallery-status > span {
  color: #a2afbb;
  font-size: 0.6rem;
}
@media (prefers-reduced-motion: reduce) {
  .edition-page *,
  .edition-page *::before,
  .edition-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .edition-button:hover {
    transform: none;
  }
}

/* =========================================================
   NOWY UKŁAD STRONY EDYCJI — hero, statystyki i karty
   ========================================================= */

.edition-page-redesign {
  --ed-red: #df294d;
  --ed-ink: #102744;
  --ed-muted: #607186;
  --ed-line: #e6eaf0;
  background: #fff;
}

.edition-page-redesign .edition-container {
  width: min(1280px, calc(100% - 48px));
}

.edition-page-redesign .edition-hero--wide {
  padding: 14px 0 24px;
  background: #fff;
  border-bottom: 0;
}

.edition-page-redesign .edition-breadcrumbs {
  margin: 0 0 14px;
}

.edition-hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3.2vw, 48px);
  min-height: 390px;
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
  background: linear-gradient(125deg, #183955, #4d728b 58%, #dfe7ee);
}

.edition-hero-background,
.edition-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.edition-hero-background {
  z-index: -2;
  object-fit: cover;
  object-position: center 45%;
}

.edition-hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 28, 48, .88) 0%, rgba(11, 34, 54, .68) 43%, rgba(11, 34, 54, .16) 100%);
}

.edition-hero-stage-copy {
  max-width: 720px;
  color: #fff;
}

.edition-page-redesign .edition-hero-stage .edition-eyebrow {
  color: #152c48;
  background: #fff;
  border-color: rgba(255,255,255,.85);
}

.edition-page-redesign .edition-hero-stage h1 {
  max-width: 740px;
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.edition-page-redesign .edition-hero-stage .edition-hero-subtitle {
  margin-top: 12px;
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
}

.edition-page-redesign .edition-hero-stage .edition-hero-intro {
  max-width: 600px;
  margin-top: 12px;
  color: rgba(255,255,255,.91);
  font-size: 1rem;
  line-height: 1.7;
}

.edition-page-redesign .edition-hero-stage .edition-text-link {
  color: #fff;
}

.edition-page-redesign .edition-hero-stage .edition-text-link:hover {
  color: #ffd9e1;
}

.edition-event-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 25px;
  margin-top: 26px;
}

.edition-event-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 110px;
  color: #fff;
}

.edition-event-fact-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.16);
  font-size: 1.35rem;
}

.edition-event-fact strong,
.edition-event-fact small {
  display: block;
}

.edition-event-fact strong {
  font-size: .92rem;
  line-height: 1.35;
}

.edition-event-fact small {
  margin-top: 2px;
  color: rgba(255,255,255,.78);
  font-size: .74rem;
}

.edition-beneficiary-card {
  align-self: center;
  overflow: hidden;
  border: 5px solid rgba(255,255,255,.96);
  border-radius: 16px;
  color: var(--ed-ink);
  background: #fff;
  box-shadow: 0 18px 45px rgba(6, 22, 38, .24);
}

.edition-beneficiary-photo {
  position: relative;
  display: grid;
  aspect-ratio: 1.4 / 1;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #dce9f0, #f7e5ea);
}

.edition-beneficiary-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.edition-beneficiary-placeholder {
  color: var(--ed-red);
  font-size: 4rem;
}

.edition-beneficiary-copy {
  padding: 14px 14px 16px;
}

.edition-beneficiary-copy h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.edition-beneficiary-role {
  margin: 4px 0 8px;
  color: var(--ed-muted);
  font-size: .78rem;
  font-weight: 700;
}

.edition-beneficiary-copy > p:not(.edition-beneficiary-role) {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 11px;
  color: #47596d;
  font-size: .82rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.edition-beneficiary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ed-red);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}

.edition-beneficiary-link:hover {
  text-decoration: underline;
}

.edition-stats-section {
  padding: 6px 0 14px;
}

.edition-stats-panel {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 26px 32px;
  border: 1px solid #e4e8ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(15, 29, 46, 0.04);
}

.edition-stats-intro h2,
.edition-section-heading-inline h2 {
  margin: 6px 0 0;
  color: var(--ed-ink);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.edition-stats-grid {
  display: grid;
  grid-template-columns: repeat(var(--stats-cols, 2), minmax(0, 1fr));
  gap: 0;
}

.edition-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 24px;
  border-left: 1px solid #e6ebf1;
  min-width: 0;
}

.edition-stat-kicker {
  color: #5c6c80;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.edition-stat-value {
  margin-top: 6px;
  color: var(--ed-ink);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.edition-stat--accent .edition-stat-value {
  color: var(--ed-red, #c81e45);
}

.edition-stat-detail {
  margin-top: 6px;
  color: #6b7b8f;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* =========================================================
   RESULTS TABLE (PODSUMOWANIE)
   ========================================================= */
.edition-results-section {
  padding: 28px 0 36px;
}

.edition-results-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid #e4e8ee;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 29, 46, 0.03);
}

.edition-results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.edition-results-table thead {
  background: #f6f8fb;
  border-bottom: 1px solid #e4e8ee;
}

.edition-results-table th {
  padding: 13px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #526275;
}

.edition-results-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f6;
  color: var(--ed-ink);
  vertical-align: middle;
}

.edition-results-table tbody tr:last-child td {
  border-bottom: 0;
}

.edition-results-table tbody tr:hover {
  background: #fafbfd;
}

.edition-results-table .col-place {
  width: 84px;
  text-align: center;
}

.edition-results-table .col-result {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.edition-place-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-weight: 800;
  font-size: 0.85rem;
}

.edition-place-badge.is-gold {
  background: #fef3c7;
  color: #92400e;
}

.edition-place-badge.is-silver {
  background: #e2e8f0;
  color: #1e293b;
}

.edition-place-badge.is-bronze {
  background: #ffedd5;
  color: #9a3412;
}

.edition-result-name {
  display: block;
  font-weight: 700;
  color: var(--ed-ink);
}

.edition-result-members {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  color: #5c6c80;
}

.edition-result-notes {
  font-size: 0.86rem;
  color: #5c6c80;
}

.edition-stat-copy strong {
  color: var(--ed-ink);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.edition-stat-copy span {
  margin-top: 3px;
  color: #41536a;
  font-size: .79rem;
  line-height: 1.4;
}

.edition-stat-copy small {
  margin-top: 4px;
  color: #7a8997;
  font-size: .7rem;
}

.edition-story--redesign {
  padding: 30px 0 26px;
}

.edition-story-editorial-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 42px);
}

.edition-story-photo {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  aspect-ratio: 4 / 4.2;
  border-radius: 12px;
  background: linear-gradient(135deg, #e4edf2, #fae7ed);
}

.edition-story-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.edition-story-photo-placeholder {
  display: grid;
  height: 100%;
  min-height: 250px;
  place-items: center;
  color: var(--ed-red);
  font-size: 4rem;
}
.edition-page-redesign .edition-story-copy {
  max-width: none;
  width: 100%;
}

.edition-page-redesign .edition-story-copy h2 {
  margin: 6px 0 15px;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.edition-page-redesign .edition-story-copy > p:not(.edition-section-label) {
  margin-bottom: 12px;
  font-size: .91rem;
  line-height: 1.72;
}

.edition-page-redesign .edition-story-more > p {
  margin: 0 0 12px !important;
  color: #5e7081;
  font-size: .91rem;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: normal;
}

.edition-page-redesign .edition-story-copy .edition-button {
  margin-top: 7px;
}

.edition-quote-card {
  padding: 22px 22px 24px;
  border: 1px solid #f4e1e5;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff4f6, #fffafb);
}

.edition-quote-mark {
  display: block;
  height: 37px;
  color: #eaa5b3;
  font-family: Georgia, serif;
  font-size: 4.4rem;
  font-weight: 800;
  line-height: .9;
}

.edition-quote-card blockquote {
  margin: 8px 0 16px;
  color: var(--ed-ink);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.55;
}

.edition-quote-author {
  margin: 0;
  color: var(--ed-muted);
  font-size: .78rem;
}

.edition-details-section {
  padding: 0 0 25px;
}

.edition-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .82fr) minmax(0, .95fr);
  align-items: stretch;
  gap: 16px;
}

.edition-info-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #edf0f3;
  border-radius: 14px;
  background: #f9fafb;
}

.edition-info-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.edition-info-card-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--ed-red);
  background: #fce8ed;
  font-size: 1.25rem;
}

.edition-info-card-heading .edition-section-label {
  font-size: .62rem;
  letter-spacing: .1em;
}

.edition-info-card h3 {
  margin: 2px 0 0;
  color: var(--ed-ink);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.edition-route-card .edition-route-map {
  height: 200px;
  margin-top: 11px;
  border-radius: 10px;
  box-shadow: none;
}

.edition-route-card .edition-route-footer {
  margin-top: 8px;
  font-size: .69rem;
}

.edition-route-description {
  margin: 0;
  color: var(--ed-muted);
  font-size: .82rem;
  line-height: 1.6;
}

.edition-route-download {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  padding: 8px 12px;
  font-size: .78rem;
}

.edition-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edition-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
  padding: 0 0 15px;
}

.edition-timeline li:last-child {
  padding-bottom: 0;
}

.edition-timeline li::before {
  position: absolute;
  top: 7px;
  bottom: -1px;
  left: 3px;
  width: 2px;
  background: #f0bdc8;
  content: '';
}

.edition-timeline li:last-child::before {
  display: none;
}

.edition-timeline li::after {
  position: absolute;
  top: 4px;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ed-red);
  box-shadow: 0 0 0 1px var(--ed-red);
  content: '';
}

.edition-timeline-time {
  padding-left: 14px;
  color: var(--ed-ink);
  font-size: .75rem;
  font-weight: 850;
}

.edition-timeline-copy strong,
.edition-timeline-copy small {
  display: block;
}

.edition-timeline-copy strong {
  color: #283d55;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.45;
}

.edition-timeline-copy small {
  margin-top: 3px;
  color: var(--ed-muted);
  font-size: .7rem;
  line-height: 1.45;
}

.edition-practical-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edition-practical-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #32475e;
  font-size: .78rem;
  line-height: 1.45;
}

.edition-practical-check {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--ed-red);
  background: #fce8ed;
  font-size: .7rem;
  font-weight: 900;
}

.edition-practical-list strong,
.edition-practical-list small {
  display: block;
}

.edition-practical-list strong {
  color: var(--ed-ink);
  font-weight: 750;
}

.edition-practical-list small {
  margin-top: 2px;
  color: var(--ed-muted);
  font-size: .75rem;
}

.edition-help-section {
  padding: 24px 0 35px;
  background: #fff;
}

.edition-section-heading-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.edition-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.edition-help-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 21px;
  border: 1px solid #f1dfe4;
  border-radius: 14px;
  background: #fffafb;
}

.edition-help-registration {
  border-color: #e7edf2;
  background: #fff;
}

.edition-help-donation {
  background: linear-gradient(145deg, #fff5f7, #fffafb);
}

.edition-help-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 50%;
  color: var(--ed-red);
  background: #fce7ec;
  font-size: 1.35rem;
}

.edition-help-card .edition-section-label {
  margin-bottom: 5px;
  font-size: .62rem;
  letter-spacing: .1em;
}

.edition-help-card h3 {
  margin: 0 0 8px;
  color: var(--ed-ink);
  font-size: 1.15rem;
  letter-spacing: -.025em;
}

.edition-help-card p:not(.edition-section-label) {
  margin: 0;
  color: var(--ed-muted);
  font-size: .81rem;
  line-height: 1.6;
}

.edition-help-card > .edition-button {
  min-height: 38px;
  margin-top: auto;
  padding: 8px 12px;
  font-size: .78rem;
}

.edition-help-note {
  margin-top: auto;
  color: var(--ed-muted);
  font-size: .76rem;
}

.edition-help-tax .edition-tax-details {
  width: 100%;
  margin: 0;
}

.edition-help-tax .edition-tax-row {
  gap: 8px;
  padding: 9px 10px;
  font-size: .72rem;
}

.edition-gallery-section--redesign {
  padding: 15px 0 32px;
  background: #fff;
  border: 0;
}

.edition-gallery-section--redesign .edition-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.edition-gallery-section--redesign .edition-gallery-heading h2 {
  margin: 4px 0 5px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.edition-gallery-section--redesign .edition-gallery-heading > div > p:not(.edition-section-label) {
  margin: 0;
  font-size: .82rem;
}

.edition-gallery-section--redesign .edition-gallery-heading > .edition-button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: .78rem;
}

.edition-gallery-section--redesign .edition-gallery-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.edition-gallery-section--redesign .edition-gallery-image {
  aspect-ratio: 1.35 / 1;
  border-radius: 10px;
}

.edition-gallery-section--redesign .edition-gallery-item figcaption {
  font-size: .72rem;
}

.edition-gallery-section--redesign .edition-gallery-disabled {
  min-height: 180px;
}

.edition-gallery-section--redesign .edition-gallery-empty {
  padding: 22px 18px;
  font-size: .85rem;
}

.edition-partners-section {
  padding: 12px 0 36px;
  background: #fff;
}

.edition-partners-section .edition-section-heading-inline {
  margin-bottom: 16px;
}

.edition-partners-section .edition-section-heading-inline h2 {
  font-size: 1.3rem;
}

.edition-partners-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.edition-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 92px;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  color: #687788;
  background: #fbfcfd;
  text-align: center;
  overflow: hidden;
}

.edition-partner-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.edition-partner-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.edition-partner-logo span {
  font-size: .77rem;
  font-weight: 750;
}

/* Ikony w kartach wsparcia */
.edition-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edition-help-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Ikona budynku i wartość 1,5% */
.edition-tax-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.edition-tax-rate svg {
  display: block;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
@media (max-width: 1000px) {
  .edition-hero-stage {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .6fr);
    gap: 22px;
    padding: 30px;
  }
  .edition-story-editorial-grid {
    grid-template-columns: minmax(170px, .7fr) minmax(0, 1.2fr);
  }
  .edition-quote-card {
    grid-column: 2;
  }
  .edition-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .edition-route-card {
    grid-row: span 2;
  }
  .edition-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }
  .edition-partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .edition-page-redesign .edition-container {
    width: calc(100% - 28px);
  }
  .edition-page-redesign .edition-hero--wide {
    padding: 10px 0 18px;
  }
  .edition-hero-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    min-height: 0;
    padding: 25px 18px 18px;
    border-radius: 13px;
  }
  .edition-hero-shade {
    background: linear-gradient(180deg, rgba(8, 28, 48, .9), rgba(11, 34, 54, .62));
  }
  .edition-page-redesign .edition-hero-stage h1 {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }
  .edition-page-redesign .edition-hero-stage .edition-hero-intro {
    font-size: .92rem;
  }
  .edition-event-facts {
    gap: 14px 12px;
    margin-top: 20px;
  }
  .edition-event-fact {
    min-width: calc(50% - 8px);
    align-items: flex-start;
  }
  .edition-event-fact-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 1.1rem;
  }
  .edition-event-fact strong {
    font-size: .8rem;
  }
  .edition-beneficiary-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: stretch;
    border-width: 3px;
  }
  .edition-beneficiary-photo {
    min-height: 150px;
    aspect-ratio: auto;
  }
  .edition-beneficiary-copy {
    padding: 12px;
  }
  .edition-beneficiary-copy h2 {
    font-size: 1.1rem;
  }
  .edition-beneficiary-copy > p:not(.edition-beneficiary-role) {
    -webkit-line-clamp: 4;
    font-size: .75rem;
  }
  .edition-stats-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px 18px;
  }
  .edition-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .edition-stat {
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid #e6ebf1;
  }
  .edition-story--redesign {
    padding: 24px 0;
  }
  .edition-story-editorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }
  .edition-story-photo {
    min-height: 0;
    max-height: 340px;
    aspect-ratio: 1.3 / 1;
  }
  .edition-story-photo-placeholder {
    min-height: 220px;
  }
  .edition-quote-card {
    grid-column: auto;
    padding: 18px;
  }
  .edition-quote-card blockquote {
    font-size: 1rem;
  }
  .edition-details-section {
    padding-bottom: 18px;
  }
  .edition-details-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .edition-route-card {
    grid-row: auto;
  }
  .edition-route-card .edition-route-map {
    height: 240px;
  }
  .edition-help-section {
    padding: 20px 0 25px;
  }
  .edition-help-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .edition-help-card {
    padding: 18px;
  }
  .edition-gallery-section--redesign .edition-gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .edition-gallery-section--redesign .edition-gallery-heading > .edition-button {
    width: 100%;
  }
  .edition-gallery-section--redesign .edition-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .edition-gallery-section--redesign .edition-gallery-image {
    aspect-ratio: 1 / 1;
  }
  .edition-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .edition-page-redesign *,
  .edition-page-redesign *::before,
  .edition-page-redesign *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.edition-story-more {
  margin: 8px 0 14px;
  border-top: 1px solid var(--ed-line);
  border-bottom: 1px solid var(--ed-line);
}

.edition-story-more summary {
  padding: 11px 2px;
  color: var(--ed-red);
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
}

.edition-story-more[open] summary {
  margin-bottom: 10px;
}

.edition-story-more > p {
  margin: 0 0 13px !important;
}

/* Uporządkowana karta 1,5% podatku */
.edition-help-tax {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(197, 47, 80, .16);
  background:
    linear-gradient(145deg, rgba(197, 47, 80, .055), transparent 62%),
    #fff;
}

.edition-tax-heading {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
}

.edition-tax-rate {
  display: grid;
  min-height: 68px;
  place-items: center;
  border-radius: 16px;
  background: #fff0f3;
  border: 1px solid #f5d5dd;
  color: #c72c4e;
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: -.05em;
}

.edition-tax-heading-copy {
  min-width: 0;
}

.edition-tax-heading-copy .edition-section-label {
  margin: 0 0 5px;
}

.edition-tax-heading-copy h3 {
  margin: 0 0 7px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.edition-tax-heading-copy > p:not(.edition-section-label) {
  margin: 0;
  color: var(--ed-muted);
  font-size: .82rem;
  line-height: 1.65;
}

.edition-tax-organization {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #edf0f3;
  border-radius: 10px;
  background: rgba(255, 255, 255, .85);
  font-family: inherit;
}

.edition-tax-organization > span {
  color: var(--ed-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.edition-tax-organization > strong {
  color: var(--ed-ink);
  font-family: inherit;
  font-size: .94rem;
  font-weight: 700;
}

.edition-help-tax .edition-tax-details {
  display: grid;
  width: 100%;
  gap: 8px;
  margin: 0;
}

.edition-help-tax .edition-tax-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #edf0f3;
  border-radius: 9px;
  background: #fff;
  font-size: .78rem;
}

.edition-help-tax .edition-tax-row > span {
  flex: 0 0 auto;
  color: var(--ed-muted);
}

.edition-help-tax .edition-tax-row > strong {
  min-width: 0;
  color: var(--ed-ink);
  font-size: .8rem;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.edition-help-tax > .edition-button {
  align-self: flex-start;
}

@media (max-width: 480px) {
  .edition-help-tax {
    padding: 17px;
  }

  .edition-tax-heading {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 11px;
  }

  .edition-tax-rate {
    min-height: 56px;
    border-radius: 13px;
    font-size: 1.05rem;
  }

  .edition-help-tax .edition-tax-row {
    flex-direction: column;
    gap: 4px;
  }

  .edition-help-tax .edition-tax-row > strong {
    text-align: left;
  }
}

/* Zbiórka – ciepła, neutralna kolorystyka */
.edition-help-donation {
  background: linear-gradient(145deg, #faf8f2 0%, #fff 78%);
  border: 1px solid #e8e0cf;
  box-shadow: 0 8px 24px rgba(35, 50, 70, .035);
}

.edition-help-donation .edition-help-icon {
  color: #927545;
  background: #f1eadc;
  border-color: #e8dfcb;
}

.edition-help-donation .edition-section-label {
  color: #927545;
}

.edition-help-donation h3 {
  color: #173b67;
}

/* 1,5% podatku – spokojny błękit */
.edition-help-tax {
  border: 1px solid #d6e3ed;
  background: linear-gradient(145deg, #f1f6fa 0%, #fff 78%);
  box-shadow: 0 8px 24px rgba(35, 65, 90, .04);
}

.edition-help-tax .edition-help-icon {
  color: #316b91;
  background: #e3edf5;
  border-color: #d3e1ec;
}

.edition-help-tax .edition-section-label {
  color: #316b91;
}

.edition-tax-rate {
  color: #245a86;
  background: #e5eff7;
  border-color: #d0e0ed;
}

.edition-tax-organization,
.edition-help-tax .edition-tax-row {
  border-color: #e1eaf0;
  background: rgba(255,255,255,.85);
}

.edition-tax-organization > span,
.edition-help-tax .edition-tax-row > span {
  color: #718496;
}

.edition-tax-organization > strong,
.edition-help-tax .edition-tax-row > strong {
  color: #173b67;
}


/* Ikony kart pomocy */
.edition-help-icon svg {
  display: block;
  width: 25px;
  height: 25px;
}

.edition-help-donation .edition-help-icon--heart svg {
  width: 25px;
  height: 25px;
}

.edition-tax-rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.edition-tax-rate svg {
  width: 23px;
  height: 23px;
}

.edition-tax-rate span {
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}
/* Rozwijana część historii – typografia taka sama jak główny opis */
.edition-story-more > p {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.edition-story-more summary {
    font-family: inherit;
}

/* Dopracowanie hero bez karty bocznej oraz kadru zdjęcia podopiecznego */
.edition-page-redesign .edition-hero-stage-copy {
  max-width: 680px;
}

.edition-page-redesign .edition-story-photo img {
  object-position: center 20%;
}

/* Typografia i wcięcie pierwszego wiersza akapitów w sekcji podsumowania wydarzenia */
#podsumowanie-relacja .edition-story-copy > p:not(.edition-section-label),
#historia .edition-story-copy > p:not(.edition-section-label) {
  margin: 0 0 1rem;
  color: #526780;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

#podsumowanie-relacja .edition-story-copy > p:not(.edition-section-label):not(.edition-summary-subheading):not([style*="text-align: center"]),
#historia .edition-story-copy > p:not(.edition-section-label):not(.edition-summary-subheading):not([style*="text-align: center"]) {
  text-indent: 1.8em;
}

#podsumowanie-relacja .edition-story-copy > p.edition-summary-subheading,
#historia .edition-story-copy > p.edition-summary-subheading {
  margin-top: 1.4rem;
  margin-bottom: 0.45rem;
  color: var(--ed-ink);
}
.reg-page {
  padding: 2.5rem 0 4.5rem;
  background: var(--bg-soft, #f7f8fa);
  min-height: 75vh;
}

.reg-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.reg-header {
  margin-bottom: 2rem;
}

.reg-breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted, #5c6470);
  margin-bottom: 0.75rem;
}

.reg-breadcrumbs a {
  color: var(--primary, #0055a5);
  text-decoration: none;
}

.reg-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 0.5rem;
}

.reg-subtitle {
  color: var(--text-muted, #4b5563);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.reg-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.5rem;
}

.reg-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 85, 165, 0.08);
  color: var(--primary, #0055a5);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.reg-card h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.reg-hint {
  color: var(--text-muted, #5c6470);
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}

.reg-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.reg-col-12 { grid-column: span 12; }
.reg-col-6 { grid-column: span 6; }
.reg-col-5 { grid-column: span 5; }
.reg-col-2 { grid-column: span 2; }

@media (max-width: 640px) {
  .reg-col-6, .reg-col-5, .reg-col-2 {
    grid-column: span 12;
  }
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.reg-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #1f2937;
}

.reg-field input[type="text"],
.reg-field input[type="email"],
.reg-field input[type="number"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.reg-field input:focus {
  outline: none;
  border-color: var(--primary, #0055a5);
  box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.15);
}

.reg-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.reg-type-option {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.reg-type-option.is-selected {
  border-color: var(--primary, #0055a5);
  background: rgba(0, 85, 165, 0.04);
}

.reg-participant-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.reg-participant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.reg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.reg-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reg-btn-primary {
  background: var(--primary, #0055a5);
  color: #ffffff;
}

.reg-btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.reg-btn-danger-link {
  background: transparent;
  color: #dc2626;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

.reg-alert {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.94rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.reg-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.reg-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.reg-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.reg-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.reg-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #334155;
  margin: 1.25rem 0;
}

.reg-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.reg-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
