/* ==========================================================================
   CKM Boanerges Poland — arkusz stylów
   Struktura: tokeny → baza → layout → komponenty → strony → animacje
   ========================================================================== */

/* ---------- Tokeny ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --surface: #17171a;
  --surface-2: #1f1f23;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f0ec;
  --muted: #a4a3a8;
  --dim: #6f6e74;
  --red: #e1262c;
  --red-deep: #a8141a;
  --red-glow: rgba(225, 38, 44, 0.35);
  --steel: #9ba1a8;

  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Lora", Georgia, serif;
  --f-black: "UnifrakturCook", "Old English Text MT", serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

/* ---------- Baza ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtelne ziarno – nowoczesny „analogowy” klimat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.15em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(64px, 10vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--bg-2); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--f-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.section-head--center .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.title {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 4rem);
}
.title em { font-style: normal; color: var(--red); }

.lead {
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
  color: var(--muted);
  line-height: 1.65;
  margin-top: 18px;
}

/* ---------- Przyciski i chipy ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover { border-color: var(--text); transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { --btn-bg: #f0353b; border-color: #f0353b; box-shadow: 0 14px 34px -10px var(--red-glow); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.82rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.chip--red { border-color: rgba(225, 38, 44, 0.45); color: #ff9a9d; background: rgba(225, 38, 44, 0.08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.link-arrow svg { width: 16px; height: 16px; color: var(--red); transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header--solid {
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 46px; height: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__small {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.brand__name { font-family: var(--f-black); font-size: 1.55rem; font-weight: 700; letter-spacing: 0.01em; }

.nav { display: none; }
.nav__list { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  padding: 8px 0;
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, 0.82);
  transition: color 0.25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  position: relative;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.5);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), background 0.2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: rotate(45deg); }
.menu-open .menu-toggle span::after { transform: rotate(-45deg); }

/* Menu mobilne (pełnoekranowe) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background:
    radial-gradient(circle at 85% 15%, rgba(225, 38, 44, 0.18), transparent 50%),
    var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .site-header {
  z-index: 65;
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.menu-open { overflow: hidden; }
.mobile-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-menu li {
  counter-increment: m;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.menu-open .mobile-menu li { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(2) { transition-delay: 0.05s; }
.menu-open .mobile-menu li:nth-child(3) { transition-delay: 0.1s; }
.menu-open .mobile-menu li:nth-child(4) { transition-delay: 0.15s; }
.menu-open .mobile-menu li:nth-child(5) { transition-delay: 0.2s; }
.menu-open .mobile-menu li:nth-child(6) { transition-delay: 0.25s; }
.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 7vw, 2.6rem);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.2;
}
.mobile-menu a::before {
  content: counter(m, decimal-leading-zero);
  font-size: 0.8rem;
  color: var(--red);
  letter-spacing: 0.1em;
}
.mobile-menu a[aria-current="page"] { color: var(--red); }
.mobile-menu__foot { margin-top: 36px; display: grid; gap: 6px; color: var(--muted); font-size: 0.92rem; }
.mobile-menu__foot a { display: inline; border: 0; padding: 0; font-family: var(--f-body); font-size: inherit; text-transform: none; color: var(--text); }
.mobile-menu__foot a::before { content: none; }

/* ---------- Hero (podstrony) ---------- */
.page-hero {
  position: relative;
  min-height: clamp(420px, 68vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease) forwards;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.35) 40%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, 0.7), transparent 70%);
}
.page-hero--plain .page-hero__bg {
  filter: none;
  background:
    radial-gradient(circle at 80% 30%, rgba(225, 38, 44, 0.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(155, 161, 168, 0.08), transparent 40%),
    var(--bg);
}
.page-hero__mark {
  position: absolute;
  right: -6%;
  top: 50%;
  z-index: -1;
  width: min(560px, 70vw);
  opacity: 0.06;
  transform: translateY(-45%) rotate(-8deg);
  filter: grayscale(1);
}
.page-hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2.7rem, 1.5rem + 6vw, 6.4rem);
  letter-spacing: 0.005em;
  line-height: 0.95;
  max-width: 14ch;
}
.page-hero .lead { max-width: 640px; color: rgba(242, 240, 236, 0.78); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 0.82rem; color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span[aria-hidden] { color: var(--red); }

/* ---------- Hero strony głównej ---------- */
.home-hero {
  position: relative;
  min-height: min(100svh, 960px);
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse at 75% 45%, rgba(225, 38, 44, 0.14), transparent 55%);
}
.home-hero__grid { display: grid; gap: 40px; align-items: center; }
.home-hero__media {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}
.home-hero__media img {
  width: 100%;
  aspect-ratio: 560 / 604;
  object-fit: cover;
  border-radius: var(--radius-lg);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.home-hero__badge {
  position: absolute;
  right: -8px;
  top: 24px;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--f-display);
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 20px 40px -12px var(--red-glow);
  animation: float 6s ease-in-out infinite;
}
.home-hero__badge small { display: block; font-size: 0.66rem; letter-spacing: 0.2em; margin-bottom: 4px; }
.home-hero__badge b { font-size: 1.9rem; font-weight: 600; }

.home-hero__kicker {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 1.4rem + 6vw, 6.2rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin-bottom: 28px;
}
.home-hero__kicker span { display: block; }
.home-hero__kicker .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.home-hero__kicker .red { color: var(--red); }

.scripture {
  position: relative;
  margin: 0;
  padding-left: 22px;
  border-left: 2px solid var(--red);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(242, 240, 236, 0.86);
  max-width: 560px;
}
.scripture strong { font-style: normal; font-family: var(--f-display); font-weight: 500; letter-spacing: 0.04em; color: #fff; }
.scripture cite {
  display: block;
  margin-top: 12px;
  font-family: var(--f-display);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  display: none;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--red);
  animation: cue 1.8s var(--ease) infinite;
}

/* ---------- Pasek przewijany (marquee) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 18px;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--steel);
}
.marquee__item::after {
  content: "";
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--red), var(--red)) center / 3px 100% no-repeat,
    linear-gradient(var(--red), var(--red)) center 35% / 100% 3px no-repeat;
}

/* ---------- Bento / intro ---------- */
.bento { display: grid; gap: 16px; }
.tile {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.tile:hover { border-color: var(--line-strong); }
a.tile:hover { transform: translateY(-4px); }
.tile__num {
  font-family: var(--f-display);
  font-size: clamp(3rem, 2rem + 4vw, 5.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}
.tile__num sup { font-size: 0.4em; color: var(--red); vertical-align: top; margin-left: 4px; }
.tile__label { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.tile h3 {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.8rem);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tile p { color: var(--muted); }
.tile--red {
  background: linear-gradient(140deg, var(--red) 0%, var(--red-deep) 100%);
  border-color: transparent;
}
.tile--red p, .tile--red .tile__label { color: rgba(255, 255, 255, 0.86); }
.tile--red .link-arrow svg { color: #fff; }
.tile--img { padding: 0; min-height: 260px; }
.tile--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 0.8s var(--ease), filter 0.6s; }
.tile--img:hover img { transform: scale(1.05); filter: grayscale(0.3); }
.tile--img .tile__overlay {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(0deg, rgba(10, 10, 11, 0.95), transparent);
}
.tile__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(225, 38, 44, 0.12);
  color: var(--red);
}
.tile__icon svg { width: 26px; height: 26px; }

/* ---------- Karty historii ---------- */
.stories-grid { display: grid; gap: 20px; }
.story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.story-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.story-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.story-card:hover .story-card__media img { transform: scale(1.06); filter: grayscale(0); }
.story-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(23, 23, 26, 0.95) 100%);
}
.story-card__tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.story-card__body { display: flex; flex-direction: column; flex: 1; padding: 0 22px 24px; margin-top: -42px; position: relative; z-index: 1; }
.story-card__name { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; text-transform: uppercase; }
.story-card__role { margin-top: 4px; font-size: 0.86rem; color: var(--red); font-weight: 500; }
.story-card__quote {
  margin: 16px 0 22px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.story-card__link::before { content: ""; position: absolute; inset: 0; z-index: 2; }

/* filtr chapterów */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.filter-btn .count { opacity: 0.6; margin-left: 4px; }
.story-card.is-hidden { display: none; }

/* ---------- Werset (pas) ---------- */
.verse-band {
  position: relative;
  padding-block: clamp(72px, 11vw, 140px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.verse-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(225, 38, 44, 0.16), transparent 60%),
    var(--bg-2);
}
.verse-band__cross {
  width: 34px;
  height: 46px;
  margin: 0 auto 28px;
  background:
    linear-gradient(var(--red), var(--red)) center / 6px 100% no-repeat,
    linear-gradient(var(--red), var(--red)) center 30% / 100% 6px no-repeat;
}
.verse-band blockquote {
  margin: 0 auto;
  max-width: 980px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.45rem, 1rem + 2.2vw, 2.6rem);
  line-height: 1.35;
}
.verse-band cite {
  display: block;
  margin-top: 26px;
  font-family: var(--f-display);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
}

/* ---------- Split (tekst + obraz) ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(225, 38, 44, 0.45);
  border-radius: var(--radius-lg);
}

/* ---------- Proza (teksty) ---------- */
.prose { font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem); line-height: 1.85; color: rgba(242, 240, 236, 0.88); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 {
  margin-top: 2.2em;
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}
.prose h2::before { content: ""; flex: 0 0 22px; height: 2px; background: var(--red); }
.prose--dropcap > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--f-display);
  font-size: 4.2em;
  font-weight: 600;
  line-height: 0.82;
  color: var(--red);
}
.prose strong { color: #fff; }
.prose a { color: #ff8a8e; text-decoration: underline; text-underline-offset: 3px; }

.etymology {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.etymology__greek {
  font-family: var(--f-serif);
  font-size: clamp(2.4rem, 1.6rem + 3.5vw, 4.2rem);
  line-height: 1;
  color: var(--red);
}
.etymology__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.etymology p { color: var(--muted); }
.etymology::after {
  content: "Βοανηργες";
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-family: var(--f-serif);
  font-size: 9rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

/* ---------- Oś czasu ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--red), transparent); }
.timeline li { position: relative; padding: 0 0 32px 44px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.timeline__year { font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; color: var(--red); }
.timeline h3 { font-family: var(--f-display); font-size: 1.15rem; text-transform: uppercase; margin: 4px 0 6px; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- W co wierzymy ---------- */
.beliefs { display: grid; gap: 18px; counter-reset: b; }
.belief {
  counter-increment: b;
  position: relative;
  padding: clamp(28px, 3.5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.belief:hover { border-color: rgba(225, 38, 44, 0.5); transform: translateY(-4px); }
.belief::before {
  content: counter(b, decimal-leading-zero);
  position: absolute;
  right: 22px;
  top: 10px;
  font-family: var(--f-display);
  font-size: 5.5rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  transition: color 0.4s;
}
.belief:hover::before { color: rgba(225, 38, 44, 0.14); }
.belief h2 {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.belief p { color: rgba(242, 240, 236, 0.8); }
.belief p strong { color: var(--red); font-weight: 600; }
.refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* ---------- Biblia / Band – listy cech ---------- */
.features { display: grid; gap: 16px; }
.feature { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature .tile__icon { margin: 0; flex-shrink: 0; }
.feature h3 { font-family: var(--f-display); font-size: 1.15rem; text-transform: uppercase; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.callout {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, var(--red) 0%, var(--red-deep) 100%);
  overflow: hidden;
  isolation: isolate;
}
.callout::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  z-index: -1;
  width: 320px;
  height: 320px;
  background: url("../img/logo-vector.png") center / contain no-repeat;
  opacity: 0.12;
  filter: grayscale(1) brightness(2);
}
.callout h2, .callout h3 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.callout p { color: rgba(255, 255, 255, 0.9); max-width: 620px; margin-top: 12px; }
.callout .btn { border-color: rgba(255, 255, 255, 0.6); }
.callout .btn:hover { background: #fff; color: var(--red-deep); border-color: #fff; }

.contact-card { display: grid; gap: 14px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s;
  word-break: break-word;
}
a.contact-line:hover { border-color: var(--red); background: var(--surface-2); }
.contact-line svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }
.contact-line small { display: block; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-line b { font-weight: 600; }

/* ---------- Dobrowskaz ---------- */
.partner { display: grid; gap: 28px; align-items: center; }
.partner__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.partner__img img { width: 100%; transition: transform 0.8s var(--ease); }
.partner__img:hover img { transform: scale(1.03); }

/* ---------- Formularz ---------- */
.contact-layout { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.form h2 { font-family: var(--f-display); text-transform: uppercase; font-size: 1.8rem; margin-bottom: 24px; }
.field { position: relative; margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.field label span { color: var(--red); }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(225, 38, 44, 0.18); }
.field.has-error input,
.field.has-error textarea { border-color: #ff5a5f; }
.field__error { display: none; margin-top: 6px; font-size: 0.82rem; color: #ff7b80; }
.field.has-error .field__error { display: block; }
.field--grid { display: grid; gap: 18px; }
.hp { position: absolute; left: -9999px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 24px; font-size: 0.86rem; color: var(--muted); line-height: 1.55; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--bg); cursor: pointer; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check.has-error input { border-color: #ff5a5f; }

.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-size: 0.92rem; }
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(46, 160, 67, 0.12); border: 1px solid rgba(46, 160, 67, 0.4); color: #8fe3a1; }

/* Akordeon RODO */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--f-body);
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.accordion[open] summary::after { transform: rotate(45deg); background: var(--red); border-color: var(--red); }
.accordion__body { padding: 0 26px 26px; font-size: 0.93rem; color: var(--muted); line-height: 1.75; }
.accordion__body ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.accordion__body li { margin-bottom: 6px; }
.accordion__body h3 { font-family: var(--f-display); font-size: 1rem; text-transform: uppercase; color: var(--text); margin: 1.6em 0 0.5em; letter-spacing: 0.04em; }
.accordion__body a { color: #ff8a8e; text-decoration: underline; }

/* ---------- Strona historii ---------- */
.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  height: 3px;
  width: 100%;
  background: var(--red);
  transform-origin: left;
  transform: scaleX(0);
}
.story-hero {
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.story-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 80% 20%, rgba(225, 38, 44, 0.16), transparent 50%);
}
.story-hero__grid { display: grid; gap: 32px; align-items: end; }
.story-hero__photo { width: min(280px, 70%); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.story-hero__photo img { width: 100%; aspect-ratio: 229 / 335; object-fit: cover; }
.story-hero h1 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2.5rem, 1.5rem + 5vw, 5.4rem); line-height: 0.95; }
.story-hero__title { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); color: var(--red); margin-top: 14px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.story-quote {
  margin: 0 0 48px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border-left: 3px solid var(--red);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.55;
}
.story-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.story-nav { display: grid; gap: 16px; margin-top: 32px; }
.story-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.story-nav a:hover { border-color: var(--red); transform: translateY(-2px); }
.story-nav img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.story-nav small { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.story-nav b { font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; text-transform: uppercase; }
.story-nav .next { justify-content: flex-end; text-align: right; }
.story-cta { margin-top: 64px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: clamp(56px, 8vw, 96px) 0 28px; border-top: 1px solid var(--line); background: #070708; overflow: hidden; }
.site-footer__big {
  font-family: var(--f-black);
  font-size: clamp(3.4rem, 12vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  margin-bottom: clamp(32px, 5vw, 56px);
  user-select: none;
}
.footer-grid { display: grid; gap: 36px; }
.footer-col h3 {
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.footer-col p,
.footer-col li { color: var(--muted); font-size: 0.94rem; line-height: 1.8; margin: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a:hover { color: var(--text); }
.footer-brand img { width: 84px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 0.92rem; color: var(--muted); }
.dl dt { color: var(--dim); }
.dl dd { margin: 0; font-variant-numeric: tabular-nums; }
.account { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.account code { font-family: var(--f-body); font-size: 0.92rem; font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: 0.02em; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--text); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.is-copied { color: #8fe3a1; border-color: rgba(46, 160, 67, 0.6); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.25s;
}
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--dim);
}
.to-top { color: var(--muted); }
.to-top:hover { color: var(--text); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transform: translate(-50%, 140%);
  transition: transform 0.4s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Animacje ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes heroZoom { to { transform: scale(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(-4deg); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsywność ---------- */
@media (min-width: 560px) {
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
  .field--grid { grid-template-columns: 1fr 1fr; }
  .story-nav { grid-template-columns: 1fr 1fr; }
  .story-nav .only { grid-column: 1 / -1; }
}

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .span-2 { grid-column: span 2; }
  .bento .span-3 { grid-column: span 3; }
  .bento .span-4 { grid-column: span 4; }
  .bento .span-6 { grid-column: span 6; }
  .beliefs { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .story-hero__grid { grid-template-columns: auto 1fr; gap: 48px; }
  .story-hero__photo { width: 260px; }
  .scroll-cue { display: block; }
}

@media (min-width: 980px) {
  .nav { display: block; }
  .menu-toggle,
  .mobile-menu { display: none; }
  .home-hero__grid { grid-template-columns: 0.95fr 1.05fr; gap: 64px; }
  .home-hero__media { margin: 0; max-width: none; }
  .home-hero__media img {
    -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 55%, transparent 100%);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
  .home-hero__badge { right: 12%; }
  .stories-grid { grid-template-columns: repeat(3, 1fr); }
  .stories-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .partner { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .contact-layout { grid-template-columns: 1.15fr 0.85fr; }
  .contact-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .beliefs { grid-template-columns: repeat(6, 1fr); }
  .beliefs .belief { grid-column: span 2; }
  .beliefs .belief--wide { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr; }
}

@media (min-width: 1200px) {
  .stories-grid:not(.stories-grid--4) { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 420px) {
  .brand__small { display: none; }
  .brand__name { font-size: 1.3rem; }
  .brand img { width: 40px; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Druk ---------- */
@media print {
  body::before, .site-header, .mobile-menu, .marquee, .site-footer, .progress, .story-actions, .story-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { color: #000; }
}
