/* ============================================================
   TysiacRMG — light stylesheet
   ============================================================ */

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

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-serif: 'Fraunces', Georgia, serif;
}

body {
  font-family: var(--font-sans);
  background-color: #f6f5f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* ---- NAV ---- */
.nav {
  margin: 0 0 2.5rem;
  border-bottom: 1px solid #e2e2e2;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  flex: 1;
}
.nav-brand em { font-style: normal; }
.nav-brand:hover { opacity: 0.7; }
.nav-sep { color: #ccc; font-size: 0.7rem; }
.nav-section { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; color: #555; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  transition: color 0.12s;
}
.nav-link:hover { color: #111; }
.nav-link.active { color: #111; }
.nav-source {
  flex: 1;
  text-align: right;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #ccc;
  text-transform: uppercase;
}
.nav-theme {
  font-family: inherit; font-size: 0.875rem; line-height: 1;
  background: none; border: none; cursor: pointer; color: #c4c4c4; padding: 0;
}
.nav-theme:hover { color: #777; }

/* ---- SECTION NAV ---- */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -1rem;
  padding: 0 1rem;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  font-size: 0.7rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.65rem 1rem;
  border-right: 1px solid #ddd;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-nav a:first-child { padding-left: 0; }
.section-nav a:hover { color: #000; background: #f8f8f8; }

/* ── Manifest quote ── */
.manifest-quote {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid #eee;
}
.manifest-quote-text {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 1.25rem;
}
.manifest-quote-link {
  font-size: 0.8125rem;
  color: #999;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
}
.manifest-quote-link:hover { color: #111; border-color: #999; }

/* ---- HERO BANNER ---- */
/* ================================================================
   HERO
================================================================ */
.hb {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  padding: 5rem 0 5rem;
  border-bottom: 1px solid #eee;
  align-items: start;
}

/* ── Hero manifest — czysta klasa, bez konfliktu z .hb ── */
.hero-manifest {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3.5rem;
  padding: 4rem 0 5rem;
  border-bottom: 1px solid #eee;
}

.hm-left {
  flex: 1;
  min-width: 0;
}

.hm-portrait {
  flex-shrink: 0;
  width: clamp(150px, 18vw, 220px);
  height: auto;
  display: block;
  padding-top: 0.5rem;
}

.hm-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbb;
  margin: 0 0 1rem;
}

/* Licznik — używa istniejących .hb-fraction* */
.hero-manifest .hb-fraction {
  margin: 0 0 2.25rem;
  line-height: 0.82;
}

.hero-manifest .hb-fraction-n {
  font-size: clamp(7rem, 20vw, 17rem);
}

.hero-manifest .hb-fraction-sep,
.hero-manifest .hb-fraction-d {
  font-size: clamp(2.5rem, 7vw, 6rem);
}

/* Manifest — 4 linie */
.hm-manifesto {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 2.5rem;
}

.hm-l1 {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 400;
  color: #444;
  line-height: 1.45;
  margin: 0;
}

.hm-l2 {
  font-size: clamp(1.05rem, 1.8vw, 1.275rem);
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  margin: 0;
}

.hm-l3 {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: #999;
  font-style: italic;
  line-height: 1.45;
  margin: 0;
}

.hm-l4 {
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0.25rem 0 0;
}

.hm-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
}
.hb-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hb-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbb;
  margin-bottom: 0.75rem;
}

/* 231 / 1000 — główny headline strony */
.hb-fraction {
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  margin: 0 0 1rem;
}
.hb-fraction-n {
  font-family: var(--font-mono);
  font-size: clamp(6rem, 16vw, 14rem);
  font-weight: 800;
  color: #111;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.hb-fraction-sep {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  color: #ccc;
  margin: 0 0.1em;
  line-height: 1;
}
.hb-fraction-d {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: #ccc;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* Tagline — H2 */
.hb-tagline-text {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: #111;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.hb-tagline-sub {
  font-size: 0.875rem;
  color: #aaa;
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}

.hb-description {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.hb-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
}
.hb-cta-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 1px;
  line-height: 1;
}
.hb-cta-link:hover { color: #555; border-bottom-color: #555; }
.hb-cta-link--muted {
  color: #999;
  font-weight: 400;
  border-bottom-color: #ddd;
}
.hb-cta-link--muted:hover { color: #555; border-bottom-color: #999; }

/* Prawa kolumna: portret + meta */
.hb-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hb-portrait-wrap {
  width: 260px;
  max-width: 100%;
  flex-shrink: 0;
}
.hb-portrait-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.hb-portrait {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
}
.hb-meta-card {
  width: 100%;
  border: 1px solid #eee;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hb-statrow {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.hb-statrow-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
}
.hb-statrow-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
}

/* Statement — prawa kolumna hero, zamiast stats */
.hb-statement {
  width: 100%;
  padding-top: 1.75rem;
  border-top: 1px solid #ebebeb;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hb-statement-line {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0;
}

.hb-statement-line strong {
  font-weight: 800;
}

.hb-statement-line--muted {
  color: #999;
  font-weight: 400;
}

.hb-statement-punch {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #111;
  margin: 0.5rem 0 0;
}

/* legacy — karta bohatera (nie używana w hero, zachowana dla zgodności) */
.hb-logo {
  display: block;
  align-self: center;
  margin: 0.5rem auto 1.5rem;
  max-width: 260px;
  width: 100%;
  height: auto;
}
.hb-card {
  width: 100%;
  border: 1px solid #d8d8d8;
  padding: 1.25rem 1.5rem;
}
.hb-count-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  margin-bottom: 0.1rem;
}
.hb-count {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  color: #111;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hb-count-sub {
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
}
.hb-progress {
  height: 3px;
  background: #eee;
  margin-bottom: 0.6rem;
  width: 100%;
}
.hb-progress-fill {
  height: 100%;
  background: #111;
}
.hb-statrows {
  border-top: 1px solid #eee;
  margin-top: 1.25rem;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hb-bio {
  margin-bottom: 1.25rem;
}
.hb-bio p { font-size: 0.875rem; color: #555; line-height: 1.7; margin-bottom: 0.5rem; }
.hb-bio p:last-child { margin-bottom: 0; }
.hb-bio strong { color: #111; font-weight: 600; }
.hb-name {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 1rem;
}

/* ---- About Project (O co tu chodzi?) ---- */
.about-project .home-section-head { margin-bottom: 1.75rem; }
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
.about-card {
  border-top: 2px solid #111;
  padding-top: 1rem;
}
.about-card-eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbb;
  margin-bottom: 0.6rem;
}
.about-card-text {
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .about-cards { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---- Why I Return (Dlaczego wracam?) ---- */
.why-i-return .home-section-head h2 {
  font-family: 'Bebas Neue', var(--font-sans);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.why-quote {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  color: #111;
  border-left: 3px solid #111;
  padding-left: 1.25rem;
  margin: 0 0 1.5rem;
}
.why-text {
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.75;
  max-width: 680px;
}
.why-text p { margin-bottom: 0.875rem; }
.why-text p:last-child { margin-bottom: 0; }

/* ---- Hero responsive ---- */
@media (max-width: 720px) {
  .hb {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hb-fraction-n { font-size: clamp(4rem, 18vw, 6rem); }
  .hb-fraction-sep, .hb-fraction-d { font-size: clamp(1.75rem, 8vw, 2.75rem); }
  .hb-right { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem; }
  .hb-portrait { max-width: 120px; }
  .hb-meta-card { flex: 1; min-width: 160px; }
  .hb-card { padding: 1.25rem; }
  .hb-logo { max-width: 200px; margin: 0.5rem auto 1rem; }

  /* hero-manifest mobile */
  .hero-manifest {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem 0 3.5rem;
  }
  .hm-portrait { width: clamp(70px, 18vw, 100px); padding-top: 0; }
  .hero-manifest .hb-fraction-n { font-size: clamp(5rem, 22vw, 9rem); }
  .hero-manifest .hb-fraction-sep,
  .hero-manifest .hb-fraction-d { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hm-manifesto { gap: 0.5rem; margin-bottom: 2rem; }
}
.hero-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #888;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: 'Inter', var(--font-sans);
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}
.hero h1 .line-white { display: inline; color: #111; }
.hero h1 .line-amber { display: inline; color: #111; }
.hero-byline { margin-top: 0.2rem; font-size: 0.75rem; color: #bbb; }

/* ---- CHAPTER BLOCKS ---- */
.chapter {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 3rem;
  padding: 3.5rem 0;
  border-top: 1px solid #eee;
  align-items: start;
}
.chapter-anchor {
  padding-top: 0.15rem;
}
.chapter-anchor-num {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: #e4e4e4;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: block;
}
.chapter-anchor-unit {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ccc;
  display: block;
  margin-top: 0.4rem;
}
.chapter-body {
  min-width: 0;
}
.chapter-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  margin-bottom: 0.875rem;
}

/* chapter--lead: pierwsza sekcja, licznik uderza mocniej */
.chapter--lead .chapter-anchor-num {
  font-size: clamp(4rem, 9vw, 7.5rem);
  color: #111;
}
.chapter--lead .chapter-anchor-unit {
  font-size: 0.8125rem;
  color: #aaa;
}
.chapter--lead .chapter-kicker {
  margin-top: 0.5rem;
}

/* ---- NS-SECTION: następne starty — hero (foto|info) + tabela ---- */
.ns-section {
  padding: 7rem 0 3.5rem;
  border-top: 1px solid #eee;
}
.ns-col-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbb;
  margin: 0 0 0.75rem;
}
.ns-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1rem;
  overflow: hidden;
}
.ns-hero-photo {
  position: relative;
  line-height: 0;
  background: #f5f5f5;
  min-width: 0;
  overflow: hidden;
}
.ns-hero-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.ns-hero-photo--empty {
  aspect-ratio: 4 / 3;
  background: #f0efec;
  border: 1px solid #e6e4df;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ns-hero-photo-empty-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
}
.ns-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 4rem 1.75rem 1.25rem;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.9) 100%);
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
}
.ns-hero-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 1.75rem 0;
}
.ns-hero-left {
  min-width: 0;
}
.ns-hero-info {
  min-width: 0;
}
.ns-featured-place {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.ns-featured-place-left {
  font-size: 1.25rem;
}
.ns-featured-place-venue {
  font-weight: 700;
  color: #111;
}
.ns-featured-place-city {
  font-weight: 400;
  color: #555;
}
.ns-featured-place-formula {
  font-size: 1.25rem;
  font-weight: 700;
  color: #888;
  text-decoration: none;
  white-space: nowrap;
}
.ns-featured-place-formula:hover { color: #111; }
.ns-featured-big {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.ns-hero-countdown .ns-featured-big { color: #111; }
.ns-featured-unit {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  line-height: 1;
}
.ns-hero-countdown .ns-featured-unit { color: #bbb; }
.ns-loc-results {
  margin-top: 1.25rem;
}
.ns-loc-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: #999;
  text-decoration: none;
}
.ns-loc-more:hover { color: #111; }
.ns-loc-table {
  width: 100%;
  border-collapse: collapse;
}
.ns-loc-table td {
  padding: 0.35rem 0.5rem 0.35rem 0;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
  font-size: 0.8125rem;
}
.ns-loc-table tr:first-child td { border-top: 1px solid #f5f5f5; }
.ns-loc-date {
  color: #bbb;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ns-loc-formula {
  color: #555;
  width: 100%;
}
.ns-loc-time {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #111;
  text-align: right;
  white-space: nowrap;
}
.ns-upcoming {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}
.ns-card-name {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-decoration: none;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}
.ns-card-name:hover { color: #555; }
.ns-card-meta {
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 0.25rem;
}
.ns-card-city {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 0.5rem 0 0;
  line-height: 1.1;
}
.ns-card-venue {
  font-size: 0.875rem;
  color: #888;
  margin: 0.2rem 0 0;
}
.ns-card-rows {
  display: flex;
  flex-direction: column;
}
.ns-table {
  width: 100%;
  border-collapse: collapse;
}
.ns-table td {
  padding: 0.5rem 0.5rem 0.5rem 0;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: middle;
  white-space: nowrap;
}
.ns-table tr:first-child td { border-top: 1px solid #f5f5f5; }
.ns-t-days {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-right: 0.5rem;
}
.ns-card-row-unit {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ccc;
  margin-left: 0.05rem;
}
.ns-t-date {
  font-size: 0.75rem;
  color: #bbb;
  font-variant-numeric: tabular-nums;
  padding-right: 0.75rem;
}
.ns-t-formula { padding-right: 0.5rem; font-size: 0.875rem; }
.ns-t-city {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111;
  padding-right: 0.75rem;
}
.ns-t-loc { text-align: right; }
.ns-card-row-loc {
  font-size: 0.75rem;
  font-weight: 500;
  color: #999;
  text-decoration: none;
  white-space: nowrap;
}
.ns-card-row-loc:hover { color: #111; }
.ns-card-row-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  line-height: 1.2;
}
.ns-card-row-name:hover { color: #111; }
.ns-card-row-city {
  font-size: 0.75rem;
  font-weight: 700;
  color: #111;
}
.ns-card-city-real {
  font-weight: 400;
  color: #aaa;
}
.ns-map-btn {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border: 1px solid #ddd;
  padding: 0.35rem 0.75rem;
  letter-spacing: 0.02em;
}
.ns-map-btn:hover {
  border-color: #111;
}

/* ---- MEGA COUNT ---- */
.mega-count {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 800;
  color: #111111;
  line-height: 0.85;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  margin: 0.75rem 0 0;
  text-align: center;
}

/* ---- PROGRESS BAR ---- */
.progress-wrap { margin: 1.75rem 0 2.5rem; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}
.progress-meta .pct { font-weight: 700; color: #111111; font-size: 0.9375rem; }
.progress-track {
  height: 4px;
  background: #e8e8e8;
  overflow: hidden;
}
.progress-fill { height: 100%; background: #111111; }

/* ---- GLOBAL STATS ---- */
.global-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.1rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
  padding: 0.7rem 0;
}
.gs-item {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.15rem 0;
}
.gs-item + .gs-item::before {
  content: '·';
  color: #d0d0d0;
  font-size: 1.1rem;
  margin: 0 0.85rem;
}
.gs-label {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #888;
  letter-spacing: 0;
}
.gs-value {
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #2a2a2a;
  line-height: 1;
}
.gs-value.amber { color: #111111; }

/* ---- DASH SECTION ---- */
.dash-section { margin-bottom: 1.5rem; background: #ffffff; border: 1px solid #e0e0e0; padding: 1.25rem 1.5rem; }
.dash-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #f0f0f0;
}
.dash-section-head h2 {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aaa;
}
.dash-section-head a { font-size: 0.75rem; color: #bbb; }
.dash-section-head a:hover { color: #111111; }

/* ---- GRIDS ---- */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.two-col--cards { gap: 1rem; margin-bottom: 0; }
.two-col--cards > .home-section { margin-bottom: 1.5rem; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
  .chapter {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 2.5rem 0;
  }
  .chapter-anchor-num {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }
  .ns-hero { grid-template-columns: 1fr; }
}

/* ---- INFO ROWS ---- */
.info-rows { font-size: 0.8125rem; }
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #efefef;
}
.info-row:last-child { border-bottom: none; }
.info-row dt { color: #aaa; flex-shrink: 0; }
.info-row dd { color: #444; text-align: right; }
.info-row dd.amber { font-family: var(--font-mono); color: #111111; font-weight: 700; }
.info-row dd.ok { color: #6a9; font-weight: 600; }

/* ---- BUTTONS ---- */
.btn {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border: 1px solid #d0d0d0;
  background: transparent;
  color: #777;
  cursor: pointer;
  display: inline-block;
  letter-spacing: 0.02em;
}
.btn:hover { border-color: #888; color: #1a1a1a; }
.btn-primary { border-color: #111111; background: #111111; color: #f5f5f5; font-weight: 700; }
.btn-primary:hover { background: #111111; border-color: #111111; }
.btn-amber { border-color: rgba(17,17,17,0.06); color: #111111; }
.btn-amber:hover { border-color: #111111; background: rgba(17,17,17,0.06); }
.btn-row { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }

/* ---- TABLE (generic) ---- */
table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
thead th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbb;
  padding: 0 0.5rem 0.75rem 0;
  border-bottom: 1px solid #eee;
}
tbody td {
  padding: 0.45rem 0.5rem 0.45rem 0;
  border-bottom: 1px solid #efefef;
  color: #555;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f7f7f7; }
td a { color: #444; }
td a:hover { color: #111111; }
.td-name { color: #0f0f0f; font-weight: 600; }
.td-muted { color: #bbb; }
.td-amber { color: #111111; font-weight: 700; }
.td-ok { color: #6a9; font-weight: 600; }
.td-num { font-variant-numeric: tabular-nums; }

/* ---- FILTER ROW ---- */
.filter-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1.5rem; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group.grow { flex: 1; min-width: 180px; }
.filter-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #aaa; }
.filter-input, .filter-select {
  font-family: inherit; font-size: 0.8125rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ddd; background: #f5f5f5; color: #444; outline: none;
}
.filter-input:focus, .filter-select:focus { border-color: #aaa; }
.filter-input::placeholder { color: #bbb; }

/* ---- EMPTY STATE ---- */
.empty-state { padding: 3rem 0; text-align: center; font-size: 0.875rem; color: #bbb; }

/* ---- FOOTER ---- */
footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #efefef;
  font-size: 0.75rem;
  color: #d0d0d0;
}

/* ---- MISC ---- */
.muted { color: #aaa; }
.num { font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 0.6rem; color: #888; border: 1px solid #ddd; padding: 0.1rem 0.4rem; }
.tag-amber { color: #111111; border-color: rgba(17,17,17,0.06); }

/* ================================================================
   RACE LIST
   ================================================================ */
/* filter row na liście biegów */
/* ═══════════════════════════════════════════════════════
   FILTER SYSTEM — fl-*
   ═══════════════════════════════════════════════════════ */

.fl-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

/* ── Duże pole tekstowe ───────────────────────────────── */
.fl-search-row {
  display: flex;
  gap: 0;
}

.fl-search-input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid #d0d0d0;
  border-right: none;
  background: #fff;
  color: #111;
  outline: none;
  min-width: 0;
}

.fl-search-input:focus { border-color: #aaa; }
.fl-search-input::placeholder { color: #bbb; }

.fl-search-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.25rem;
  border: 1px solid #d0d0d0;
  background: #111;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.fl-search-btn:hover { background: #333; }

/* ── Pasek dropdownów ─────────────────────────────────── */
.fl-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.fl-select {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border: 1px solid #d8d8d8;
  background: #fafafa;
  color: #444;
  outline: none;
  cursor: pointer;
}

.fl-select:focus { border-color: #aaa; }

/* ── Multi-select dropdown ────────────────────────────── */
.fl-drop {
  position: relative;
}

.fl-drop-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border: 1px solid #d8d8d8;
  background: #fafafa;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.fl-drop-btn:hover { border-color: #aaa; }
.fl-drop--open .fl-drop-btn { border-color: #999; background: #fff; }

.fl-drop-arrow { font-size: 0.6rem; opacity: 0.5; }

.fl-drop-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #ddd;
  z-index: 200;
  padding: 0.5rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.fl-drop--open .fl-drop-panel { display: block; }

.fl-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: #444;
  transition: background 0.1s;
}

.fl-check:hover { background: #f5f5f5; }

.fl-check input[type=checkbox] {
  accent-color: #111;
  cursor: pointer;
  flex-shrink: 0;
}

.fl-check input:checked + span { color: #111; font-weight: 600; }

.fl-drop-footer {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #eee;
  margin-top: 0.3rem;
}

.fl-drop-apply {
  background: #111;
  color: #fff;
  border: none;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-mono);
}

.fl-drop-apply:hover { background: #333; }

.fl-drop-clear {
  background: none;
  color: #999;
  border: 1px solid #e2e2e2;
  padding: 0.3rem 0.6rem;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: var(--font-mono);
}

.fl-drop-clear:hover { color: #555; }

/* ── Wyczyść wszystko ─────────────────────────────────── */
.fl-clear-all {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #bbb;
  text-decoration: none;
  padding: 0.4rem 0.25rem;
  margin-left: 0.25rem;
  transition: color 0.15s;
}

.fl-clear-all:hover { color: #555; }

/* ── Aktywne chipy ────────────────────────────────────── */
.fl-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-top: 0.1rem;
}

.fl-active-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: #111;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}

.fl-active-chip:hover { background: #555; }

/* ── Licznik wyników ──────────────────────────────────── */
.fl-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.fl-count strong { color: #333; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 720px) {
  .fl-search-row { flex-direction: column; }
  .fl-search-input { border-right: 1px solid #d0d0d0; border-bottom: none; }
  .fl-search-btn { width: 100%; }
  .fl-drop-panel { min-width: 160px; }
}

/* Legacy .rl-filters kept for fallback */
.rl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.rl-filters .filter-select {
  font-family: inherit; font-size: 0.8125rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #ddd; background: #f5f5f5; color: #444; outline: none;
}
.rl-filters .filter-select:focus { border-color: #aaa; }
.rl-filter-q {
  font-family: inherit; font-size: 0.8125rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #ddd; background: #f5f5f5; color: #1a1a1a;
  outline: none; flex: 1; min-width: 160px;
}
.rl-filter-q:focus { border-color: #aaa; outline: none; }
.rl-filter-q::placeholder { color: #bbb; }

.rl-search-wrap {
  display: flex;
  flex: 1;
  min-width: 160px;
}

.rl-search-wrap .rl-filter-q {
  flex: 1;
  min-width: 0;
  border-right: none;
}

.rl-search-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border: 1px solid #ddd;
  background: #f0f0ee;
  color: #555;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.rl-search-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}
.rl-filter-btn {
  font-family: inherit; font-size: 0.8125rem; font-weight: 700;
  padding: 0.45rem 1rem;
  border: 1px solid #111111; background: #111111; color: #f5f5f5; cursor: pointer;
  white-space: nowrap;
}
.rl-filter-btn:hover { background: #111111; }
.rl-filter-clear {
  font-size: 0.75rem; color: #aaa; text-decoration: none;
  padding: 0.45rem 0.25rem;
}
.rl-filter-clear:hover { color: #111111; }

/* ── Race list — new row-based design ─────────────────── */
.rl-list {
  margin-top: 0.5rem;
}
.rl-list-header,
.rl-row {
  display: grid;
  grid-template-columns: 3.5rem 7rem 1fr 7rem 5rem;
  align-items: center;
  gap: 0 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid #eee;
}
.rl-row:last-child { border-bottom: 1px solid #eee; }
.rl-list-header {
  padding: 0 0 0.5rem;
  border-top: none;
  border-bottom: 1px solid #ccc;
}
.rl-list-header span {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
}
/* clickable row */
.rl-row {
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
  cursor: pointer;
}
.rl-row:hover { background: rgba(0,0,0,0.025); }

/* latest row highlight */
.rl-row--latest {
  background: rgba(0,0,0,0.012);
}

/* career number — visual anchor */
.rl-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
}
.rl-row--latest .rl-num { font-size: 1.2rem; }

/* date */
.rl-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #999;
}

/* formula tag + venue */
.rl-col-name {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  min-width: 0;
}
.rl-tag {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #111;
}
.rl-row--latest .rl-tag { font-size: 0.85rem; }
.rl-venue {
  font-size: 0.72rem;
  color: #aaa;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.rl-badge-latest {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: #111;
  padding: 0.15rem 0.4rem;
  line-height: 1.4;
}

/* time */
.rl-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
}

/* place */
.rl-col-place { text-align: right; }
.rl-place {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #bbb;
}

/* year stat — above table when year filter active */
.rl-year-stat {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.04em;
  margin: 1rem 0 1.5rem;
}

/* year separator */
.rl-year-sep {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 2rem 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #444;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.1rem;
}
.rl-year-sep:first-child { padding-top: 0; }
.rl-year-now {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: #111;
  padding: 0.15rem 0.45rem;
  line-height: 1.4;
}

/* old rl-item kept for fallback */
.rl-item { display: flex; align-items: stretch; border-bottom: 1px solid #efefef; }
.rl-item:last-child { border-bottom: none; }
.rl-item:hover { background: #f8f8f8; }

.rl-item-date {
  width: 5.5rem; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0.75rem 0.5rem;
  border-right: 1px solid #efefef; background: #f5f5f5;
}
.rl-date-year { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 800; line-height: 1; color: #0f0f0f; font-variant-numeric: tabular-nums; }
.rl-date-mon  { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #aaa; margin-top: 0.25rem; }
.rl-date-day  { font-family: var(--font-mono); font-size: 0.6rem; color: #777; font-variant-numeric: tabular-nums; }

.rl-item-body { flex: 1; padding: 0.75rem 1rem; min-width: 0; }
.rl-item-name {
  font-size: 0.9375rem; font-weight: 700; color: #0f0f0f;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-item-name:hover { color: #111111; }
.rl-item-meta { font-size: 0.75rem; color: #aaa; margin-top: 0.2rem; display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; }
.rl-chip { display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.1rem 0.4rem; border: 1px solid #ddd; color: #aaa; }
.rl-chip-done { border-color: rgba(17,17,17,0.06); color: #111111; }
.rl-chip-upcoming { border-color: #e2e2e2; color: #bbb; }

.rl-item-result { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 0.75rem 1rem; gap: 0.15rem; }
.rl-result-place { font-size: 0.6875rem; color: #aaa; }
.rl-result-time { font-family: var(--font-mono); font-size: 0.9375rem; font-weight: 800; color: #111111; font-variant-numeric: tabular-nums; }
.rl-result-done { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6a9; }

/* ================================================================
   RACE DETAIL
   ================================================================ */
.rd-back { font-size: 0.8125rem; color: #aaa; display: inline-block; margin-bottom: 1.5rem; }
.rd-back:hover { color: #1a1a1a; }
.rd-header { margin-bottom: 2rem; }
.rd-title { font-family: var(--font-mono); font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; color: #0a0a0a; line-height: 1.1; margin: 0 0 0.3rem; letter-spacing: 0.01em; }
.rd-title-city { color: #bbb; font-weight: 400; }
.rd-loc-sub { font-size: 0.9375rem; color: #999; margin: 0 0 1.25rem; }
.rd-loc-sub-sep { color: #ccc; margin: 0 0.2rem; }
.rd-meta { font-size: 0.875rem; color: #888; display: flex; flex-wrap: wrap; gap: 0.3rem 0.75rem; }
.rd-meta-sep { color: #d0d0d0; }

/* Panel wyniku */
.rd-result-panel { }
.rd-photo-card { text-align: center; }
.rd-photo-card img { display: inline-block; max-width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.loc-map-fullwidth { margin: 2rem 0 0; border-top: 1px solid #eee; }
.loc-map-fullwidth #map { height: 380px; width: 100%; }
.loc-formula-group { margin-bottom: 2rem; }
.loc-formula-group:last-child { margin-bottom: 0; }
.loc-formula-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
}
.loc-formula-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.loc-formula-count {
  font-size: 0.8125rem;
  color: #bbb;
}
.loc-formula-best {
  font-size: 0.8125rem;
  color: #999;
  margin-left: auto;
}
.loc-formula-table { width: 100%; }
.rd-photo-caption { font-size: 0.75rem; color: #bbb; margin-top: 0.75rem; font-style: italic; }
.rd-result-body { }
.rd-result-label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: #111111; margin-bottom: 0.75rem; }
.rd-ok   { color: #5a9 !important; font-weight: 700; }
.rd-miss { color: #c55 !important; font-weight: 700; }
.rd-notes { margin-top: 1rem; font-size: 0.8125rem; color: #888; font-style: italic; }

.badge { display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.15rem 0.45rem; border: 1px solid #d0d0d0; color: #888; }
.badge-elite { border-color: rgba(17,17,17,0.06); color: #111111; }
.badge-open  { border-color: #ddd; color: #aaa; }

.rd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px; background: #e0e0e0; border: 1px solid #e0e0e0; overflow: hidden; margin-bottom: 2rem; }
.rd-card { background: #ffffff; padding: 0.875rem 1rem; }
.rd-card-lbl { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #aaa; margin-bottom: 0.3rem; }
.rd-card-val { font-size: 0.9375rem; font-weight: 700; color: #0f0f0f; }
.rd-card-sub { font-size: 0.75rem; color: #aaa; margin-top: 0.15rem; }

/* ================================================================
   HOME — single-column sections
   ================================================================ */

.section-split {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  align-items: start;
}
.section-wow-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #111;
  letter-spacing: -0.03em;
}
.section-wow-label {
  display: block;
  font-size: 0.8125rem;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.section-wow-sublabel {
  display: block;
  font-size: 1rem;
  color: #999;
  margin-top: 0.5rem;
}
/* rotator */
.wow-rotator { position: relative; overflow: hidden; }
.wow-rotator--full {
  border-bottom: 1px solid #eee;
  padding: 0 10% 2rem 10%;
  margin-bottom: 2rem;
}
.wow-rotator--full .section-wow-num { font-size: 3.75rem; }
@media (max-width: 720px) {
  .wow-rotator--full .section-wow-num { font-size: 2.75rem; }
}
.wow-slide {
  position: absolute;
  top: 0; left: 0; width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}
.wow-slide.wow-active  { transform: translateX(0);     opacity: 1; }
.wow-slide.wow-below   { transform: translateX(110%);  opacity: 0; }
.wow-slide.wow-above   { transform: translateX(-110%); opacity: 0; }
.wow-hidden { visibility: hidden; }
@media (max-width: 720px) {
  .section-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .section-wow-num { font-size: 2.5rem; }
}

.home-section {
  padding: 6.5rem 0 3rem;
  border-top: 1px solid #eee;
}

.section-intro {
  font-size: 1rem;
  color: #555;
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 2rem;
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.home-section-head h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #111;
}
.home-section-head a {
  font-size: 0.8125rem;
  color: #999;
  text-decoration: none;
}
.home-section-head a:hover { color: #111; }

/* Countdown (następny start) */
.next-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.next-countdown-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: #111111;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.next-countdown-lbl {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- INTRO: dwie kolumny 50/50 ---- */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.intro-content {
}
.intro-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #888;
  margin-bottom: 0.6rem;
}
.intro-bigname {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0a0a0a;
  line-height: 1.0;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
.intro-since {
  font-size: 0.75rem;
  color: #c4c4c4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}
.intro-divider {
  height: 1px;
  background: #e2e2e2;
  margin-bottom: 1.25rem;
  max-width: 260px;
}
.intro-next-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #aaa;
  margin-bottom: 0.4rem;
}
.intro-next-countdown {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111111;
  line-height: 1;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.intro-next-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.04em;
}
.intro-next-empty { font-size: 0.875rem; color: #bbb; }

/* ---- Wyróżniony pierwszy start ---- */
.ns-featured {
  padding-bottom: 0.875rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #e8e8e8;
  text-align: center;
}
.ns-featured-countdown {
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2em;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.ns-featured-num {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  letter-spacing: 0;
}
.ns-featured-word {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0;
}
.ns-featured-pre {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  align-self: flex-end;
  padding-bottom: 0.3em;
}
.ns-featured-unit {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  align-self: flex-end;
  padding-bottom: 0.3em;
}
.ns-featured-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  margin-bottom: 0.15rem;
}
.ns-featured-name:hover { text-decoration: underline; }
.ns-featured-meta { font-size: 0.8125rem; color: #888; }
.ns-formula-label {
  color: #bbb;
}

/* ---- Lista następnych startów ---- */
.next-starts {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.next-start {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.8125rem;
  color: #888;
}
.next-start:last-child { border-bottom: none; }
.next-start--first { font-size: 1rem; }

/* Dni */
.next-start-days { flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.days-pre { color: #aaa; }
.days-num { font-weight: 700; color: #777; }
.days-suf { color: #aaa; }
.next-start--first .days-pre { color: #555; }
.next-start--first .days-num { color: #111111; font-weight: 800; }
.next-start--first .days-suf { color: #555; }

/* Info — jedna linia: data · nazwa · miejsce */
.next-start-info { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-start-date { color: #aaa; }
.next-start-date::after { content: " · "; color: #d0d0d0; }
.next-start-info a { color: #555; text-decoration: none; font-weight: 500; }
.next-start--first .next-start-date { color: #777; }
.next-start--first .next-start-info a { color: #222; font-weight: 600; }
.next-start-info a:hover { color: #111111; }
.next-start-place { color: #3a3a3a; }
.next-start--first .next-start-place { color: #888; }
.intro-bio-text {
  margin-top: 1.25rem;
}
.intro-bio-text p {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.8;
  letter-spacing: 0.025em;
  margin-bottom: 0.75rem;
}
.intro-bio-text p:last-child { margin-bottom: 0; }
.intro-bio-text strong { color: #111; font-weight: 700; }

.intro-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.intro-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.intro-social-link:hover { color: #111; }
.intro-social-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .intro-section { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Formula breakdown */
.formula-list { border-top: 1px solid #eeeeee; }
.formula-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #f5f5f5;
  gap: 1rem;
  overflow: hidden;
}
.formula-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--pct, 0%);
  background: #111111;
  opacity: 0.25;
  z-index: 0;
}
.formula-item:last-child { border-bottom: none; }
.formula-name {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  color: #555;
  flex: 1;
}
.formula-link { color: inherit; text-decoration: none; border-bottom: 1px solid #bbb; }
.formula-link:hover { color: #bbb; border-bottom-color: #888; }
.formula-count {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 800;
  color: #111111;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.formula-pct {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: #999;
  font-variant-numeric: tabular-nums;
  margin-right: 0.5rem;
}
.formula-sup  { font-size: 0.6rem; color: #111111; vertical-align: super; margin-left: 1px; }
.formula-note { font-size: 0.7rem; color: #aaa; margin-top: 0.4rem; padding-left: 0.2rem; }

/* Fact grid (ciekawostki) */
.fact-table .fact-dt {
  color: #999;
  font-size: 0.8125rem;
  white-space: nowrap;
  padding-right: 1.5rem;
  vertical-align: top;
}
.fact-table .fact-dd {
  font-size: 0.875rem;
  color: #111;
}
.fact-sub {
  display: block;
  font-size: 0.75rem;
  color: #bbb;
  margin-top: 0.1rem;
}
.fact-details { margin-top: 0.4rem; }
.fact-details summary {
  font-size: 0.7rem; color: #bbb; cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.fact-details summary::-webkit-details-marker { display: none; }
.fact-details summary::before { content: '▸'; font-size: 0.6rem; color: #ccc; transition: transform 0.15s; }
.fact-details[open] summary::before { transform: rotate(90deg); }
.fact-details summary:hover { color: #777; }
.fact-sub-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.75rem; color: #777; padding: 0.15rem 0; }
.formula-rare { border-top: 1px solid #eeeeee; }
.formula-rare-summary {
  font-size: 0.75rem;
  color: #777;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
}
.formula-rare-summary::-webkit-details-marker { display: none; }
.formula-rare-summary:hover { color: #111; text-decoration-color: #999; }
.formula-rare[open] .formula-rare-summary { color: #555; }

/* Formula time breakdown */
.formula-time-details {
  margin-top: 1rem;
}
.formula-time-details > summary {
  font-size: 0.8125rem;
  color: #bbb;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.formula-time-details > summary::after {
  content: "↓";
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.formula-time-details[open] > summary::after { transform: rotate(180deg); }
.formula-time-details > summary::-webkit-details-marker { display: none; }
.formula-time-details > summary:hover { color: #888; }
.formula-time-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.formula-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  border-bottom: 1px solid #f4f4f4;
  padding-bottom: 0.35rem;
}
.formula-time-row dt { color: #555; }
.formula-time-row dd { font-family: var(--font-mono); color: #111; font-weight: 600; }

/* Fun facts — expandable top list */
.info-row--expandable dd { flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.fact-top { margin-top: 0.25rem; }
.fact-top summary {
  font-size: 0.7rem;
  color: #777;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc;
}
.fact-top summary::-webkit-details-marker { display: none; }
.fact-top summary:hover { color: #111; text-decoration-color: #999; }
.fact-top[open] summary { color: #555; }
.fact-top-list { margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.15rem; }
.fact-top-item { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.75rem; }
.fact-top-name  { color: #aaa; }
.fact-top-count { color: #777; font-variant-numeric: tabular-nums; }

/* Fun facts — place (miasto / lokalizacja) */
.fact-place-name   { color: #0f0f0f; }
.fact-place-counts { font-size: 0.8125rem; color: #888; display: flex; gap: 0.4rem; align-items: baseline; }
.fact-place-sep    { color: #d0d0d0; }
.fact-place-link   { color: #111111; text-decoration: none; }
.fact-place-link:hover { text-decoration: underline; }

/* Fun facts — seria z rzędu */
.info-row--block { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.info-row--block dd { text-align: left; display: flex; flex-direction: column; gap: 0.2rem; }
.fact-streak-row { display: flex; align-items: baseline; gap: 0.75rem; font-size: 0.8125rem; }
.fact-streak-lbl   { color: #aaa; min-width: 6rem; }
.fact-streak-count { color: #111111; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 4rem; }
.fact-streak-range { color: #bbb; font-size: 0.75rem; }

/* Rok po roku — mini pasek */
.year-bar-col { width: 8rem; padding: 0 0.75rem; }
.year-bar { height: 3px; background: #111111; opacity: 0.6; min-width: 2px; }

/* Last 10 results table */
.results-table { }
.results-table .td-idx   { color: #d0d0d0; font-variant-numeric: tabular-nums; width: 1.5rem; }
.results-table .td-date  { color: #888; white-space: nowrap; }
.results-table .td-name  { color: #444; }
.results-table .td-formula { color: #aaa; font-size: 0.75rem; }
.results-table .td-time  {
  font-family: var(--font-mono);
  color: #111111;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.results-table .td-place { color: #aaa; text-align: right; }

/* ── Side-by-side sections (Formuły | Rok po roku) ── */
.two-col-sbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col-sbs-col {
  min-width: 0;
}
@media (max-width: 720px) {
  .two-col-sbs { grid-template-columns: 1fr; }
}

/* ── Split: Ostatni bieg | Następny start ── */
.split-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.split-card {
  min-width: 0;
}
.split-card-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 0.75rem;
}
.split-card-photo {
  min-width: 0;
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
  background: #f5f5f5;
  line-height: 0;
}
.split-card-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.split-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.split-card-title a:hover { text-decoration: underline; }
.split-card-note {
  font-size: 0.8125rem;
  font-style: italic;
  color: #888;
  margin: 0.75rem 0 0.25rem;
}
.split-card-anchor {
  display: block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border: 1px solid #ddd;
  padding: 0.65rem 1rem;
  text-align: center;
}
.split-card-anchor:hover { color: #111; border-color: #999; background: #fafafa; }
@media (max-width: 720px) {
  .split-now { grid-template-columns: 1fr; }
}

/* Last race — layout z/bez zdjęcia */
.last-bieg-wrap {
  display: block;
}
.last-bieg-wrap--photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 680px) {
  .last-bieg-wrap--photo {
    grid-template-columns: 1fr;
  }
}

.last-bieg-photo {
  aspect-ratio: 464 / 340;
  overflow: hidden;
}
.last-bieg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.last-bieg-caption {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 0.5rem;
  font-style: italic;
}
.last-bieg-data { }

/* ================================================================
   WIKI INFO BOXES — home page (legacy, zachowane)
   ================================================================ */
.wiki-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 820px) { .wiki-grid { grid-template-columns: 1fr; } }

.wiki-box { border: 1px solid #e2e2e2; margin-bottom: 1.25rem; }
.wiki-box:last-child { margin-bottom: 0; }

.wiki-head {
  background: #161616;
  color: #555;
  padding: 0.45rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e2e2;
}
.wiki-head.amber { background: #1a1400; color: #111111; border-bottom-color: #2a1f00; }
.wiki-head a { color: rgba(255,255,255,0.2); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.wiki-head a:hover { color: #111111; }

.wiki-countdown {
  text-align: center;
  padding: 1.25rem 1rem 1.125rem;
  background: #120f00;
  border-bottom: 1px solid #1e1a00;
  line-height: 1;
}
.wiki-countdown-num {
  font-size: 3rem;
  font-weight: 800;
  color: #111111;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.wiki-countdown-lbl {
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: #111111; opacity: 0.4; margin-top: 0.4rem;
}

.wiki-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.wiki-table th {
  text-align: left; font-weight: 600; color: #aaa;
  font-size: 0.8125rem; padding: 0.45rem 0.875rem;
  border-bottom: 1px solid #efefef; background: #f5f5f5;
  width: 38%; white-space: nowrap; vertical-align: top;
}
.wiki-table td {
  padding: 0.45rem 0.875rem;
  border-bottom: 1px solid #efefef;
  color: #bbb; vertical-align: top;
}
.wiki-table tr:last-child th,
.wiki-table tr:last-child td { border-bottom: none; }
.wiki-table td a { color: #444; }
.wiki-table td a:hover { color: #111111; }
.wiki-table td.amber { color: #111111; font-weight: 700; }
.wiki-table td.ok { color: #6a9; font-weight: 600; }
.wiki-table td.num { font-variant-numeric: tabular-nums; }

.wiki-avatar-row {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem; border-bottom: 1px solid #efefef; background: #f5f5f5;
}
.wiki-avatar-sq {
  width: 52px; height: 52px; background: #1a1400;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #111111;
  flex-shrink: 0; letter-spacing: 0.04em;
}
.wiki-avatar-name { font-size: 0.9375rem; font-weight: 700; color: #0f0f0f; line-height: 1.25; }
.wiki-avatar-bio  { font-size: 0.75rem; color: #888; margin-top: 0.2rem; line-height: 1.55; }

.wiki-text {
  padding: 0.875rem; font-size: 0.8125rem; color: #777;
  line-height: 1.8; border-bottom: 1px solid #efefef;
}
.wiki-text:last-child { border-bottom: none; }
.wiki-text strong { color: #111111; font-weight: 700; }
.wiki-text p + p { margin-top: 0.6rem; }

.wiki-fact { padding: 0.5rem 0.875rem; border-bottom: 1px solid #efefef; font-size: 0.8125rem; }
.wiki-fact:last-child { border-bottom: none; }
.wiki-fact-title { color: #777; font-weight: 500; }
.wiki-fact-val   { color: #bbb; font-size: 0.75rem; margin-top: 0.1rem; }

.wiki-actions {
  padding: 0.6rem 0.875rem; background: #f5f5f5; border-top: 1px solid #e8e8e8;
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .rl-item-date { width: 4rem; }
  .gs-item { padding: 0.75rem 1rem; }
  .mega-count { line-height: 0.9; }
}

/* ---- PROGNOZY ---- */
.proj-desc {
  font-size: 0.75rem;
  color: #bbb;
  line-height: 1.7;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}
.proj-desc strong { color: #999; font-weight: 600; }
.proj-done td { opacity: 0.4; }
.proj-table td:first-child strong { font-size: 1rem; }

/* Milestone cards (next + finish) */
.proj-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #eee;
  border: 1px solid #eee;
  margin-bottom: 2.25rem;
}
.proj-card {
  background: #fff;
  padding: 1.25rem 1.5rem 1.125rem;
}
.pcrd-eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  margin-bottom: 0.25rem;
}
.pcrd-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3.25rem;
  font-weight: 700;
  color: #111;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.pcrd-sub {
  font-size: 0.8125rem;
  color: #bbb;
  margin-bottom: 0.875rem;
}
.pcrd-rows {
  border-top: 1px solid #f0f0f0;
  padding-top: 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.pcrd-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8125rem;
}
.pcrd-pace {
  color: #ccc;
  font-size: 0.6875rem;
  min-width: 7.5rem;
}
.pcrd-yr {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #111;
}
.pcrd-age {
  color: #bbb;
  font-size: 0.75rem;
}

/* Milestone trail */
.proj-trail-outer {
  margin: 0 0 2rem;
  padding: 0 2%;
  overflow: hidden;
}
.proj-bar-row {
  position: relative;
  height: 1.75rem;
}
.proj-bar-bg {
  position: absolute;
  top: 1.125rem;
  left: 0; right: 0;
  height: 1px;
  background: #eee;
}
.proj-bar-fill {
  position: absolute;
  top: 1.125rem;
  left: 0;
  height: 1px;
  background: #111;
}
.proj-bar-tick {
  position: absolute;
  top: 0.875rem;
  width: 1px;
  height: 0.5rem;
  background: #e0e0e0;
  transform: translateX(-50%);
}
.proj-bar-tick.ptick--done { background: #999; }
.proj-bar-tick.ptick--next { background: #444; height: 0.75rem; top: 0.75rem; }
.proj-here-above {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}
.proj-here-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c00;
  white-space: nowrap;
  line-height: 1;
  display: block;
}
.proj-here-arrow {
  display: block;
  width: 1px;
  height: 0.625rem;
  background: #c00;
  margin: 0.1rem auto 0;
}
.proj-labels-row {
  position: relative;
  height: 2.75rem;
  margin-top: 0.125rem;
}
.proj-ms-lbl {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  top: 0;
}
.pml-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #ddd;
  line-height: 1.3;
}
.pml-yr {
  font-size: 0.5rem;
  color: #ddd;
  white-space: nowrap;
}
.proj-ms-lbl.pml--done .pml-num { color: #888; }
.proj-ms-lbl.pml--done .pml-yr  { color: #bbb; }
.proj-ms-lbl.pml--next .pml-num { color: #111; font-size: 0.6875rem; }
.proj-ms-lbl.pml--next .pml-yr  { color: #555; font-size: 0.5625rem; }
.proj-ms-lbl.pml--final .pml-num { color: #888; }
.proj-ms-lbl.pml--final .pml-yr  { color: #bbb; }

/* Proj details toggle */
.proj-details {
  margin-top: 1.25rem;
}
.proj-details summary {
  font-size: 0.75rem;
  color: #bbb;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.proj-details summary::-webkit-details-marker { display: none; }
.proj-details summary::before {
  content: '▸';
  font-size: 0.625rem;
  color: #ccc;
  transition: transform 0.15s;
}
.proj-details[open] summary::before { transform: rotate(90deg); }
.proj-details summary:hover { color: #777; }
.proj-details .proj-desc { margin-top: 0.75rem; }

/* All starts expandable */
.ns-all-details {
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}
.ns-all-details summary {
  font-size: 0.75rem;
  color: #bbb;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ns-all-details summary::-webkit-details-marker { display: none; }
.ns-all-details summary::before {
  content: '▸';
  font-size: 0.625rem;
  color: #ccc;
  transition: transform 0.15s;
}
.ns-all-details[open] summary::before { transform: rotate(90deg); }
.ns-all-details summary:hover { color: #777; }
.ns-all-table { margin-top: 0.75rem; }

@media (max-width: 720px) {
  .proj-cards { grid-template-columns: 1fr; }
  .pcrd-big { font-size: 2.5rem; }
  .proj-trail-outer { padding: 0; overflow-x: auto; }
  .proj-bar-row, .proj-labels-row { min-width: 500px; }
}


/* ---- FORMULA MULTI-SELECT DROPDOWN ---- */
.fms-wrap { position: relative; display: inline-block; }
.fms-btn { display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; min-width: 160px; text-align: left; cursor: pointer; }
.fms-arrow { font-size: 0.65rem; opacity: 0.5; flex-shrink: 0; }
.fms-dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0;
  z-index: 200; min-width: 200px; background: #fff; border: 1px solid #e2e2e2;
  border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); padding: 0.25rem 0; }
.fms-wrap.open .fms-dropdown { display: block; }
.fms-option { display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem; cursor: pointer; font-size: 0.8125rem; color: #888; }
.fms-option:hover { background: #f5f5f5; color: #1a1a1a; }
.fms-option input { accent-color: #111111; cursor: pointer; flex-shrink: 0; }
.fms-option input:checked + span { color: #111111; font-weight: 600; }
.fms-footer { display: flex; gap: 0.5rem; padding: 0.5rem 0.75rem;
  border-top: 1px solid #eeeeee; margin-top: 0.25rem; }
.fms-apply { background: #111111; color: #fff; border: none; border-radius: 3px;
  padding: 0.3rem 0.75rem; font-size: 0.75rem; font-weight: 700; cursor: pointer; }
.fms-clear  { background: none; color: #888; border: 1px solid #e2e2e2; border-radius: 3px;
  padding: 0.3rem 0.75rem; font-size: 0.75rem; cursor: pointer; }
.fms-clear:hover { color: #555; }

/* ---- CTA BRIDGE ---- */
.cta-bridge {
  border-top: 1px solid #eee;
  padding: 2.5rem 0;
  margin-top: 1rem;
}
.cta-bridge-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta-bridge-stat {
  font-size: 0.8125rem;
  color: #bbb;
  letter-spacing: 0.02em;
}
.cta-bridge-links {
  display: flex;
  gap: 1.5rem;
}
.cta-bridge-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.cta-bridge-links a:hover { color: #555; }

/* ---- STATS PAGE ---- */
.stats-page-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid #eee;
}
.stats-page-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-transform: uppercase;
  color: #111;
  margin: 0.4rem 0 0.3rem;
}
.stats-page-sub {
  font-size: 0.875rem;
  color: #999;
}
.hs-more-link {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}
.hs-more-link a { color: #999; text-decoration: none; }
.hs-more-link a:hover { color: #111; }
.nav-link--active { color: #111 !important; }

@media (max-width: 720px) {
  .cta-bridge-inner { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   MANIFEST PAGE
   ================================================================ */
.mf-wrap {
  max-width: 640px;
  padding: 4rem 0 6rem;
}
.mf-header {
  margin-bottom: 4rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 3rem;
}
.mf-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 1.5rem;
}
.mf-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 0.75rem;
}
.mf-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: #888;
  letter-spacing: -0.02em;
}
.mf-body {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.mf-chapter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mf-chapter p, .mf-chapter ul {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #333;
}
.mf-chapter em { font-style: italic; color: #555; }
.mf-chapter-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbb;
  margin-bottom: 0.25rem;
}
.mf-lead {
  font-size: 1.1875rem !important;
  font-weight: 500;
  color: #111 !important;
  line-height: 1.65 !important;
}
.mf-pullquote {
  border-left: 3px solid #111;
  padding-left: 1.5rem;
  margin-left: 0;
}
.mf-pullquote p {
  color: #555 !important;
}
.mf-big {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
  font-weight: 800;
  color: #111 !important;
  letter-spacing: -0.03em;
  line-height: 1.1 !important;
}
.mf-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mf-list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #333;
}
.mf-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #bbb;
}
.mf-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}
.mf-back {
  font-size: 0.8125rem;
  color: #999;
  text-decoration: none;
}
.mf-back:hover { color: #111; }

/* ================================================================
   STORYTELLING COMPONENTS (no tables)
   ================================================================ */

/* ── Upcoming checkpoints ─────────────────────────────── */
.upcoming-checkpoints { display: flex; flex-direction: column; }
.checkpoint-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f2f2f2;
}
.checkpoint-card:last-child { border-bottom: none; }
.checkpoint-card--grouped { border-left: 2px solid #ddd; padding-left: 0.75rem; margin-left: -0.75rem; }
.checkpoint-days {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: #111;
  white-space: nowrap;
  flex-shrink: 0;
  width: 4.5rem;
  padding-top: 0.1rem;
}
.checkpoint-info { flex: 1; min-width: 0; }
.checkpoint-main { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.1rem; }
.checkpoint-formula {
  font-weight: 600;
  font-size: 0.875rem;
  color: #333;
  text-decoration: none;
}
.checkpoint-formula:hover { color: #111; text-decoration: underline; }
.checkpoint-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  border: 1px solid #e0e0e0;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
}
.checkpoint-sub {
  font-size: 0.775rem;
  color: #aaa;
  display: block;
}
.checkpoint-sub a { color: #888; text-decoration: none; }
.checkpoint-sub a:hover { text-decoration: underline; }

/* ── Recent timeline ──────────────────────────────────── */
.recent-timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0 1.25rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f2f2f2;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #ccc;
  font-weight: 600;
  text-align: right;
}
.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.timeline-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-name:hover { text-decoration: underline; }
.timeline-meta { font-size: 0.75rem; color: #aaa; }
.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #111;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Fact cards ───────────────────────────────────────── */
.fact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1px;
  background: #eee;
  border: 1px solid #eee;
}
.fact-card {
  background: #fff;
  padding: 1.25rem 1.25rem 1rem;
}
.fact-card-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: #111;
  letter-spacing: -0.03em;
}
.fact-card-unit {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: #bbb;
  margin-left: 0.2rem;
  letter-spacing: 0;
}
.fact-card-label {
  font-size: 0.75rem;
  color: #999;
  margin: 0.5rem 0 0;
  line-height: 1.4;
}
.fact-card-sub {
  font-size: 0.72rem;
  color: #bbb;
  margin: 0.2rem 0 0;
  font-family: var(--font-mono);
}
.fact-card-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #111;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.fact-card-place {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #555;
  margin: 0.35rem 0 0;
  text-decoration: none;
}
.fact-card-place:hover { color: #111; }

/* ── Record list ──────────────────────────────────────── */
.record-list { display: flex; flex-direction: column; }
.record-card {
  display: grid;
  grid-template-columns: 8.5rem 5.5rem 1fr;
  gap: 0 1.25rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f2f2f2;
}
.record-card:last-of-type { border-bottom: none; }
.record-formula {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #333;
}
.record-time {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}
.record-time:hover { text-decoration: underline; }
.record-meta { font-size: 0.75rem; color: #aaa; }
.record-meta a { color: #888; text-decoration: none; }
.record-meta a:hover { text-decoration: underline; }

/* ── Year list ────────────────────────────────────────── */
.year-list { display: flex; flex-direction: column; }
.year-item {
  display: grid;
  grid-template-columns: 3rem 1fr 2.5rem auto;
  gap: 0 1rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f2f2f2;
}
.year-item:last-child { border-bottom: none; }
.year-item-year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: #111;
}
.year-item-bar-wrap { height: 3px; background: #f0f0f0; }
.year-item-bar { height: 100%; background: #111; min-width: 2px; }
.year-item-count {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: #111;
  text-align: right;
}
.year-item-meta { font-size: 0.72rem; color: #aaa; white-space: nowrap; }

/* ── Location results list ────────────────────────────── */
.ns-loc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ns-loc-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr auto;
  gap: 0 0.75rem;
  align-items: baseline;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f8f8f8;
  font-size: 0.8rem;
}
.ns-loc-item:last-child { border-bottom: none; }
.ns-loc-item .ns-loc-date { color: #bbb; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ns-loc-item .ns-loc-formula { color: #777; }
.ns-loc-item .ns-loc-time { font-family: var(--font-mono); font-weight: 700; color: #111; white-space: nowrap; }

/* ── Checkpoint group header ──────────────────────────── */
.checkpoint-group-header {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  padding: 1.1rem 0 0.4rem;
  border-top: 1px solid #eee;
  margin-top: 0.25rem;
}
.checkpoint-group-header:first-child { border-top: none; padding-top: 0; }

/* ── Weekend companions in featured card ──────────────── */
.ns-companions {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}
.ns-companion-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0 0.75rem;
  align-items: baseline;
  padding: 0.3rem 0;
  font-size: 0.8125rem;
  border-bottom: 1px solid #f8f8f8;
}
.ns-companion-row:last-child { border-bottom: none; }
.ns-companion-date { color: #bbb; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ns-companion-formula { color: #111; font-weight: 600; text-decoration: none; }
.ns-companion-formula:hover { text-decoration: underline; }
.ns-companion-loc { color: #aaa; font-size: 0.75rem; text-align: right; }

/* ── Year note ────────────────────────────────────────── */
.year-item-note {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: #bbb;
  font-style: italic;
  padding-top: 0.15rem;
  line-height: 1.4;
}

/* ── Featured timeline item ───────────────────────────── */
.timeline-item--featured {
  padding: 0.875rem 0;
  background: #fafafa;
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-bottom: 1px solid #eee;
}
.timeline-item--featured .timeline-idx { color: #999; font-size: 0.85rem; }
.timeline-item--featured .timeline-name { font-size: 1rem; color: #111; }
.timeline-item--featured .timeline-time { font-size: 1rem; }
.timeline-item--featured .timeline-meta { color: #888; }

/* ── About hook ───────────────────────────────────────── */
.about-hook {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: #111;
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 520px;
}
.about-hook strong {
  font-family: var(--font-mono);
  font-size: 1.15em;
  font-weight: 800;
}

/* ── Progress narrative ───────────────────────────────── */
.progress-narrative {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 700;
  color: #444;
  line-height: 1.45;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

/* ── Career story — full-width horizontal snap scroll ──── */
.career-story {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  background: #0a0a0a;
}

.career-scroll {
  display: block;
}

/* ── Era card — cinematic, full-width, text on photo ── */
.era-card {
  position: relative;
  width: 100%;
  height: clamp(300px, 32vw, 440px);
  overflow: hidden;
  background: var(--era-accent, #0a0a0a);
  display: block;
}

/* klikalna karta — overlay link */
.era-card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

/* layer 1: usunięty global dark base — zastąpiony gradientami kierunkowymi */
.era-card::before {
  content: none;
}

/* layer 2: lewy gradient (pod tekst) + dolny gradient (pod puentę)
   — tylko tam gdzie tekst, reszta zdjęcia żyje */
.era-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,  rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.22) 38%, rgba(0,0,0,0) 58%),
    linear-gradient(0deg,   rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.20) 22%, rgba(0,0,0,0) 44%);
  z-index: 1;
}

/* photo — absolute background */
.era-visual {
  position: absolute;
  inset: 0;
  min-height: unset;
}
.era-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(1.08) contrast(1.04) saturate(1.06);
}
.era-portrait-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1c1c1c 0%, #0a0a0a 100%);
}

/* content: left side, centered vertically, ON the photo */
.era-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 62%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 5rem);
}

.era-years {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.era-title {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.6);
  max-width: 480px;
}

.era-subtitle {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
  font-style: italic;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.era-body {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  max-width: 42ch;
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.75);
}

/* tagi — inline chips pod tytułem, wewnątrz era-content */
.era-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.era-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  white-space: nowrap;
}

/* lokalizacja — ciemna pigułka na samym dole */
.era-location {
  position: absolute;
  bottom: clamp(1rem, 1.8vw, 1.4rem);
  left: clamp(2rem, 5vw, 5rem);
  z-index: 2;
}

/* count — full-width bottom punchline */
.era-count {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  background: none;
  border-top: none;
  margin: 0;
}
.era-count-label {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 3px 14px rgba(0,0,0,0.75);
}

/* Navigation dots */
.era-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
}
.era-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #444;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.era-dot--active {
  background: #fff;
  transform: scale(1.3);
}

/* ── Marcel w trasie section ──────────────────────────── */
.rc-section {
  margin-top: 4rem;
  padding: 1.5rem 2.5rem 3rem;
  border: 1px solid #c8c8c8;
}

/* Section title — Bebas Neue, spójne z portal-tile-header */
.rc-section-title {
  font-family: 'Bebas Neue', var(--font-sans);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #111;
  margin: 0 0 0.3rem;
}

/* Następne starty — lista pod kartą */
.rc-next-list {
  margin-top: 1.75rem;
}
.rc-next-list-label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111;
  margin-bottom: 0.5rem;
}
.rc-next-row {
  display: grid;
  grid-template-columns: 7rem 1fr auto auto;
  align-items: baseline;
  gap: 0 1.25rem;
  padding: 0.5rem 0;
  border-top: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}
.rc-next-row:last-child { border-bottom: 1px solid #eee; }
.rc-next-row:hover .rc-next-row-name { color: #111; }
.rc-next-row:first-child .rc-next-row-name { font-weight: 900; color: #111; }
.rc-next-row:first-child .rc-next-row-days { color: #111; }
.rc-next-row-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: #999;
  white-space: nowrap;
}
.rc-next-row-name {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #333;
  transition: color 0.12s;
}
.rc-next-row-venue {
  font-size: 0.75rem;
  font-weight: 400;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.rc-next-row-days {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
  text-align: right;
}

/* Editorial card — Metallica style */
.rc-editorial {
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 0;
  margin-bottom: 0;
  align-items: start;
}
.rc-editorial--text-only {
  grid-template-columns: 1fr;
  padding-left: 58%;
}

.rc-editorial-photo {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #e0deda;
}
.rc-editorial-photo::before {
  content: none;
}
.rc-editorial-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 38%, rgba(0,0,0,0) 58%),
    linear-gradient(0deg,  rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.18) 22%, rgba(0,0,0,0) 44%);
  z-index: 1;
  pointer-events: none;
}
.rc-editorial-caption {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  z-index: 2;
  pointer-events: none;
}
.rc-editorial-caption-loc {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 0.15rem;
}
.rc-editorial-caption-city {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  display: block;
}

/* ---- Unified photo caption — used on all photo overlays ---- */
.photo-caption-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  display: inline-block;
  padding: 0.35rem 0.65rem;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: none;
}
.rc-editorial-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.08) contrast(1.04) saturate(1.06);
}
.rc-editorial-photo-empty {
  width: 100%; height: 100%; background: #e0deda;
}
.rc-editorial-body {
  padding: 0 0 0 2.5rem;
}
.rc-editorial--text-only .rc-editorial-body {
  padding: 0;
}
.rc-editorial-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111;
  margin-bottom: 0.5rem;
}
.rc-editorial-eyebrow a { color: inherit; text-decoration: none; }
.rc-editorial-eyebrow a:hover { opacity: 0.6; }
.rc-editorial-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 0.4rem;
}
.rc-editorial-title a { color: inherit; text-decoration: none; }
.rc-editorial-title a:hover { opacity: 0.75; }
.rc-editorial-sub {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
  margin: 0;
}

.rc-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #444;
  margin-bottom: 0.6rem;
}
.rc-label a { color: #999; text-decoration: none; }
.rc-label a:hover { color: #111; }

.rc-name {
  font-family: 'Bebas Neue', var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: #111;
  margin-bottom: 0.25rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
}
.rc-name a { color: inherit; text-decoration: none; }
.rc-name a:hover { text-decoration: underline; }

.rc-location {
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 0.2rem;
}

.rc-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 0;
}

/* wynik (ostatni start) */
.rc-result {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}
.rc-time {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1;
}
.rc-place {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #aaa;
}

.rc-data {
  display: flex;
  flex-direction: column;
  margin: 0.75rem 0 1.25rem;
}
.rc-data-row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #e8e7e4;
}
.rc-data-row:first-child { border-top: 1px solid #e8e7e4; }
.rc-data-row--highlight .rc-data-val {
  font-size: 1.1rem;
  color: #111;
}
.rc-data-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #111;
}
.rc-data-desc {
  font-size: 0.78rem;
  color: #888;
}

.rc-note {
  font-size: 0.8rem;
  color: #aaa;
  font-style: italic;
  margin-top: auto;
  padding-top: 1rem;
}

/* odliczanie (następny start) */
.rc-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}
.rc-days {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1;
}
.rc-days-unit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rc-career {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #bbb;
  margin-top: 0.5rem;
}

/* companions */
.rc-companions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}
.rc-companions-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  margin-bottom: 0.4rem;
}
.rc-companion-row {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.2rem;
}
.rc-companion-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #bbb;
  flex-shrink: 0;
}
.rc-companion-row a { color: #333; text-decoration: none; font-weight: 600; }
.rc-companion-row a:hover { text-decoration: underline; }
.rc-companion-loc { color: #aaa; font-size: 0.75rem; }

/* editorial underline link */
.rc-btn {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #bbb;
  transition: color 0.12s, text-decoration-color 0.12s;
}
.rc-btn:hover { color: #111; text-decoration-color: #111; }
.rc-btn--full {
  display: inline-block;
  margin-top: 1.75rem;
}
.rc-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
}
.rc-link:hover { color: #111; text-decoration: underline; }

.rc-empty { color: #aaa; font-size: 0.875rem; }

/* ── Milestones section (homepage) ── */
.milestones-section .home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.milestones-all-link {
  font-size: 0.8rem;
  color: #888;
  text-decoration: none;
  font-weight: 500;
}
.milestones-all-link:hover { color: #111; text-decoration: underline; }

.milestones-footer {
  margin-top: 2rem;
  text-align: center;
}
.milestones-cta {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  border: 1px solid #ddd;
  padding: 0.6rem 1.5rem;
  display: inline-block;
}
.milestones-cta:hover { border-color: #111; }

/* ── /historia/ page ── */
/* ── Home era carousel ───────────────────────────────── */
.home-era-carousel {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: #0a0a0a;
}
.era-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.era-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
/* override career-story full-vw breakout — already handled by carousel */
.home-era-carousel .career-story {
  width: 100%;
  margin-left: 0;
  height: 100%;
}
.home-era-carousel .era-card {
  height: 100%;
}
/* hide start count on home */
.home-era-carousel .era-count { display: none; }

/* dots */
.era-carousel-dots {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}
.era-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.era-carousel-dot.is-active { background: #fff; }

.historia-eras {
  /* stary wrapper — fallback gdy brak historia_items */
  margin: 2.5rem 0;
  overflow: hidden;
}

/* pojedynczy wrapper momentu */
.historia-moment {
  overflow: hidden;
  margin-bottom: 1rem;
}
.historia-moment:last-of-type { margin-bottom: 0; }

/* ---- Separator epoki ---- */
.history-era {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 5rem 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e8e8;
}
.history-era__avatar {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex: 0 0 auto;
}
.history-era__range {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.4rem;
}
.history-era__title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #111;
  margin: 0 0 0.5rem;
}
.history-era__subtitle {
  font-size: 0.9375rem;
  color: #777;
  line-height: 1.5;
  margin: 0;
  max-width: 52ch;
}

/* pierwsze wystąpienie — mniej miejsca nad, bo jest zaraz po headerze */
.historia-items > .history-era:first-child {
  margin-top: 2.5rem;
}

@media (max-width: 720px) {
  .history-era { margin: 3.5rem 0 1.5rem; gap: 1.25rem; }
  .history-era__avatar { width: 64px; height: 64px; }
  .history-era__title { font-size: 1.5rem; }
}

/* override full-vw breakout wewnątrz kontenera */
.historia-eras .career-story,
.historia-moment .career-story {
  width: 100%;
  margin-left: 0;
}

/* karty na historii — niższe, bardziej editorial */
.historia-eras .era-card,
.historia-moment .era-card {
  height: clamp(220px, 24vw, 320px);
}

.historia-back {
  padding: 2rem 0;
  border-top: 1px solid #eee;
}

/* historia header — zwężony jak reszta contentu */
.historia-header {
  max-width: 760px;
  padding-bottom: 0;
}
.historia-back a {
  font-size: 0.875rem;
  color: #888;
  text-decoration: none;
}
.historia-back a:hover { color: #111; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 720px) {
  .timeline-item { grid-template-columns: 2.5rem 1fr auto; }
  .record-card { grid-template-columns: 7rem 5rem 1fr; }
  .year-item { grid-template-columns: 3rem 1fr 2.5rem; }
  .year-item-meta { display: none; }
  .fact-cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .ns-loc-item { grid-template-columns: 5.5rem 1fr auto; }
  /* career story mobile */
  .era-card { height: clamp(280px, 70vw, 380px); }
  .era-content { width: 85%; padding: 1.5rem 1.25rem 1rem; }
  .era-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .era-body { max-width: none; }

  .era-count { padding-bottom: 1.25rem; }
  .era-count-label { font-size: clamp(0.85rem, 4vw, 1.2rem); letter-spacing: 0.06em; }

  .rc-editorial { grid-template-columns: 1fr; }
  .rc-editorial--text-only { padding-left: 0; }
  .rc-editorial-photo { height: 240px; }
  .rc-editorial-body { padding: 1rem 0 0; }
  .home-era-carousel { height: 260px; }
  .rc-next { grid-template-columns: 1fr; }
  .rc-next-countdown { padding: 0 0 1.5rem; }
  .rc-next-info { border-left: none; border-top: 1px solid #e8e7e4; padding: 1.5rem 0 0; }
  .rc-days { font-size: clamp(1.5rem, 8vw, 2rem); }
}

/* ── Progress strip (pod hero) ── */
.progress-strip {
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid #eee;
}
.progress-strip-track {
  height: 3px;
  background: #eee;
  position: relative;
  margin-bottom: 0.75rem;
}
.progress-strip-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: #111;
}
.progress-strip-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #bbb;
}
.progress-strip-done  { color: #111; font-weight: 700; }
.progress-strip-pct   { font-weight: 700; color: #999; }
.progress-strip-remaining { color: #bbb; }

/* ── ETA strip — kiedy meta ── */
.eta-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}
.eta-strip-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbb;
  white-space: nowrap;
  flex-shrink: 0;
}
.eta-strip-items {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  flex: 1;
}
.eta-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #999;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}
.eta-item strong {
  font-weight: 700;
  color: #555;
}
.eta-item em {
  font-style: normal;
  color: #bbb;
}
.eta-item--done strong { color: #111; }
.eta-item--done em    { color: #999; }
.eta-item--final {
  padding-left: 0.75rem;
  border-left: 1px solid #eee;
}
.eta-item--final strong { color: #111; font-weight: 900; }
.eta-item--final em     { color: #999; }
.eta-strip-link {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.eta-strip-link:hover { color: #111; }

/* ── Portal — Metallica-style editorial cards ── */
.portal-section {
  padding: 2.5rem 0 4rem;
}
.portal-section-title {
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #999;
  margin: 0 0 2rem;
}
.portal-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.section-thread {
  font-size: 0.8rem;
  color: #bbb;
  font-style: italic;
  margin: 0 0 0.35rem;
}

.portal-tile-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid #d8d8d8;
  padding: 1.1rem 2rem 2rem;
}

/* ── Najważniejsze momenty — cinematic, więcej powietrza ── */
.portal-tile-wrap--featured {
  border-color: #e0e0e0;
  padding: 4rem 2rem 3rem;
}
.portal-tile-wrap--featured .home-era-carousel {
  margin-top: 2rem;
  height: 400px;
}
.portal-tile-wrap--featured .rc-btn {
  margin-top: 1.5rem;
}

/* ── Historia moich startów — otwarta, separator zamiast boksu ── */
.portal-tile-wrap--story {
  border: none;
  border-top: 1px solid #e0e0e0;
  padding: 2.5rem 0 2rem;
}

/* ── Dane i statystyki — bez ramki, naturalny ogon strony ── */
.portal-tile-wrap--data {
  border: none;
  border-top: 1px solid #e0e0e0;
  padding: 2.5rem 0 3rem;
}

.portal-data-text {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-data-numbers {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.portal-data-numbers em {
  font-style: normal;
  color: #bbb;
  font-weight: 400;
}

.portal-data-desc {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.55;
  max-width: 560px;
  margin: 0;
}

/* Lead — wspólny styl dla wszystkich intro */
.portal-tile-wrap .portal-tile-intro {
  font-size: 1.125rem;
  font-weight: 400;
  color: #777;
  line-height: 1.6;
  margin: 0.2rem 0 0;
  max-width: 560px;
}

/* Odstęp między intro a tilem/carousel */
.portal-tile-wrap--featured .home-era-carousel,
.portal-tile-wrap .portal-tile-intro + .portal-tile,
.portal-tile-wrap .portal-tile-intro + a.portal-tile {
  margin-top: 1.75rem;
}
.portal-tile-header {
  font-family: 'Bebas Neue', var(--font-sans);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111;
  margin: 0;
  line-height: 1;
}
.portal-tile {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 360px;
  text-decoration: none;
  color: #111;
  background: #f6f5f2;
  overflow: hidden;
  transition: opacity 0.15s;
}
.portal-tile--flip { grid-template-columns: 38% 62%; }
.portal-tile:hover { opacity: 1; }

/* zdjęcie */
.portal-tile-img {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}
.portal-tile-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  filter: brightness(1.08) contrast(1.04) saturate(1.06);
}
.portal-tile-img-empty {
  position: absolute;
  inset: 0;
  background: #ebebeb;
}
/* story photo — same gradient as rc-editorial-photo */
.portal-tile-img--story::before {
  content: none;
}
.portal-tile-img--story::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 38%, rgba(0,0,0,0) 58%),
    linear-gradient(0deg,  rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.18) 22%, rgba(0,0,0,0) 44%);
  z-index: 2;
  pointer-events: none;
}
.portal-tile-caption--story {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  z-index: 3;
  pointer-events: none;
}

/* dark foto cell (statystyki) */
.portal-tile-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2.5rem 1rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.portal-tile-img--dark {
  background: #1c1c1c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.portal-tile-img--dark .portal-tile-img-pct {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.portal-tile-img--dark .portal-tile-img-empty { display: none; }
.portal-tile-img-pct {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.portal-tile-img-pct em {
  font-style: normal;
  font-size: 0.5em;
  color: #555;
}
.portal-tile-img-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* tabelka statystyk wewnątrz kafla */
.portal-tile-rows {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
}
.portal-tile-row {
  display: grid;
  grid-template-columns: 5rem 1fr;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.portal-tile-row:first-child { border-top: 1px solid #f0f0f0; }
.portal-tile-row-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}
.portal-tile-row-desc {
  font-size: 0.8rem;
  color: #666;
}

/* intro zdanie nad faktami */
.portal-tile-hook {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* facts — liczby jak o człowieku, nie tabela */
.portal-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
  margin-bottom: 2rem;
}
.portal-fact {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.portal-fact-desc {
  font-size: 0.68rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.portal-fact-val {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: #111;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* subtelny overlay na zdjęciu */
.portal-tile-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
  z-index: 1;
  pointer-events: none;
}

/* tekst */
.portal-tile-body {
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.portal-tile--flip .portal-tile-body {
  padding-left: 0;
}
.portal-tile-eyebrow {
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.portal-tile-title {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #111;
  margin: 0 0 0.9rem;
}
.portal-tile-sub {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  max-width: 36ch;
}
.portal-tile-btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111;
  border: 1px solid #111;
  padding: 0.45rem 1rem;
  transition: background 0.12s, color 0.12s;
  align-self: flex-start;
}
.portal-tile:hover .portal-tile-btn {
  background: #111;
  color: #fff;
}

@media (max-width: 720px) {
  .portal-tile,
  .portal-tile--flip { grid-template-columns: 1fr; min-height: auto; }
  .portal-tile--flip .portal-tile-body { order: -1; }
  .portal-tile-img { height: 200px; }
  .portal-tile-body { padding: 1.5rem; }
  .portal-tile-title { font-size: 1.75rem; }
  .portal-tile-header { font-size: 1.5rem; }
  .portal-tile-row { grid-template-columns: 4.5rem 1fr; }
  /* mobile — mniejszy oddech między sekcjami */
  .ns-section    { padding-top: 4.5rem; }
  .home-section  { padding-top: 4rem; }
  .rc-section    { margin-top: 2.5rem; padding: 1.75rem 1.25rem 2rem; }
  .portal-section { padding-top: 3rem; }
  .portal-tile-wrap { padding: 1.5rem 1.25rem 1.75rem; }
  .portal-tile-wrap--featured { padding: 2.5rem 1.25rem 2rem; }
  .portal-tile-wrap--featured .home-era-carousel { height: 260px; margin-top: 1.25rem; }
  .portal-tile-wrap--story { padding: 2rem 0 1.5rem; }
  .portal-tile-wrap--data { padding: 1.5rem 1.25rem 1.75rem; }
}

/* ============================================================
   RACE DETAIL — rd-hero
   ============================================================ */
.rd-hero {
  position: relative;
  width: 100%;
  height: clamp(340px, 58vh, 660px);
  overflow: hidden;
  background: #111;
  margin-bottom: 0;
}
.rd-hero--nophoto {
  height: clamp(180px, 28vh, 280px);
  background: #1a1a1a;
}

.rd-hero-photo {
  position: absolute;
  inset: 0;
}
.rd-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.08) contrast(1.04) saturate(1.06);
}

/* base dimming — usunięty, zastąpiony gradientami */
.rd-hero-overlay {
  display: none;
}

/* cinematic gradients — tylko tam gdzie tekst */
.rd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.20) 38%, transparent 58%),
    linear-gradient(to top,   rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.20) 22%, transparent 44%);
  z-index: 2;
  pointer-events: none;
}

/* content layer */
.rd-hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.rd-hero-back {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
  font-family: var(--font-mono);
}
.rd-hero-back:hover { color: rgba(255,255,255,0.95); }

.rd-hero-body { }

/* #number — prominent, spins the whole project */
.rd-hero-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin-bottom: 0.6rem;
}

.rd-hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* one-sentence tagline — the experience, not the event */
.rd-hero-tagline {
  font-size: clamp(0.875rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,0.72);
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  max-width: 56ch;
}

.rd-hero-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.58);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

/* ---- narrow content wrapper ---- */
.rd-body {
  max-width: 760px;
  padding-top: 0;
}

/* ---- Quick Stats strip ---- */
.rd-stats {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 3rem;
}
.rd-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 2.5rem 2rem 0;
  margin-right: 2.5rem;
  border-right: 1px solid #e0e0e0;
}
.rd-stat:last-child {
  border-right: none;
}
.rd-stat-val {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #111;
  line-height: 1;
  letter-spacing: -0.02em;
}
.rd-stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #666;
  margin-top: 0.4rem;
}

/* ---- Race detail: 2-column info grid ---- */
.rd-result-panel {
  padding-top: 0;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
}
.rd-result-panel-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.rd-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3.5rem;
}
.rd-info-col { }
.rd-info-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.rd-info-item:last-child { border-bottom: none; }
.rd-info-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aaa;
  margin-bottom: 0.2rem;
}
.rd-info-value {
  font-size: 0.9375rem;
  color: #111;
  font-weight: 500;
  line-height: 1.35;
}
.rd-info-value a { color: #111; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ccc; }
.rd-info-value a:hover { text-decoration-color: #666; }

/* ---- Other starts — narracja, nie filtr ---- */
.rd-other-section {
  padding-top: 2.5rem;
  margin-top: 0;
  padding-bottom: 2rem;
}
.rd-other-label {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.rd-other-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rd-other-row {
  display: grid;
  grid-template-columns: 7rem 1fr 7rem;
  gap: 0 1rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
  color: #333;
  transition: background 0.1s;
}
.rd-other-row:hover { background: #fafafa; }
.rd-other-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #888;
}
.rd-other-name {
  font-weight: 600;
  color: #111;
}
.rd-other-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #333;
  text-align: right;
}
.rd-other-place {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #aaa;
  text-align: right;
}

/* rmgdb link */
.rd-rmgdb-link {
  font-size: 0.8rem;
  color: #bbb;
  margin-top: 2rem;
  display: block;
}
.rd-rmgdb-link a { color: #bbb; text-decoration: underline; text-underline-offset: 3px; }
.rd-rmgdb-link a:hover { color: #555; }

@media (max-width: 720px) {
  .rd-hero { height: clamp(280px, 50vw, 400px); }
  .rd-hero-title { font-size: 2rem; }
  .rd-stats { flex-wrap: wrap; gap: 0; }
  .rd-stat { padding: 1.25rem 1.5rem 1.25rem 0; margin-right: 1.5rem; }
  .rd-stat-val { font-size: 1.75rem; }
  .rd-info-grid { grid-template-columns: 1fr; gap: 0; }
  .rd-other-row { grid-template-columns: 6rem 1fr 5.5rem; }
}

/* ============================================================
   STORY PAGE — układ narracyjny / storytelling
   ============================================================ */

/* ---------- ACT 3: PRZEJŚCIE ---------- */
.act-transition {
  padding: 6rem 0 5rem;
  border-top: 1px solid #eee;
}
.act-transition-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.act-transition-inner p {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.35;
  color: #aaa;
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  transition: none;
}
.act-transition-inner p:nth-child(2) { color: #888; }
.act-transition-inner p:nth-child(3) { color: #555; }
.act-transition-inner p:last-child   {
  color: #111;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}

/* ---------- ACT 4: EPIZODY ---------- */
.act-episodes {
  margin-left: -2rem;
  margin-right: -2rem;
  border-top: 1px solid #eee;
}

.act-episodes-header {
  padding: 3rem 2rem 2rem;
}
.act-episodes-header h2 {
  font-family: 'Bebas Neue', var(--font-sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #111;
  margin: 0;
}

/* Separator epoki */
.episode-era {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 3rem 2rem 2rem;
  border-top: 1px solid #eee;
}
.episode-era + .episode { border-top: none; }
.episode-era-years {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #bbb;
  margin: 0 0 0.3rem;
}
.episode-era-title {
  font-family: 'Bebas Neue', var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: #111;
  margin: 0 0 0.25rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.episode-era-body {
  font-size: 0.9375rem;
  color: #888;
  margin: 0;
  font-style: italic;
}

/* Karta epizodu */
.episode {
  border-top: 1px solid #eee;
}
.episode-card {
  display: block;
  position: relative;
  width: 100%;
  min-height: 460px;
  overflow: hidden;
  text-decoration: none;
  background: #1a1a1a;
}
.episode-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.06) saturate(1.08);
  transition: transform 0.5s ease;
  display: block;
}
.episode-card:hover img {
  transform: scale(1.025);
}
.episode-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.42) 38%,
    rgba(0,0,0,0)   72%
  );
  pointer-events: none;
}
.episode-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 3rem;
  max-width: 56%;
}
.episode-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,.55);
  margin: 0 0 0.5rem;
}
.episode-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.episode-body {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: rgba(255,255,255,.85);
  line-height: 1.55;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.episode-tags {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.4);
  margin: 0 0 1.25rem;
}
.episode-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 2px;
  align-self: flex-start;
}
.episode-card:hover .episode-cta {
  border-bottom-color: rgba(255,255,255,.8);
}

/* Stopka epizodów */
.act-episodes-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid #eee;
}

/* ---------- ACT 5: DANE ---------- */
.act-data {
  padding: 5rem 0 3rem;
  border-top: 1px solid #eee;
}
.act-data-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 400;
  color: #444;
  line-height: 1.5;
  margin: 0 0 2.75rem;
  max-width: 520px;
}
.act-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 2.5rem;
  border-top: 1px solid #e8e8e8;
}
.act-stat {
  padding: 1.5rem 0 1.5rem;
  border-bottom: 1px solid #e8e8e8;
  padding-right: 1.5rem;
}
.act-stat-val {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #111;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.act-stat-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  margin-top: 0.4rem;
}
.act-data-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* ---------- Responsive: story elements ---------- */
@media (max-width: 720px) {
  .act-transition { padding: 4rem 0 3.5rem; }
  .act-transition-inner p { font-size: clamp(1rem, 4vw, 1.2rem); }
  .act-transition-inner p:last-child { font-size: clamp(1.2rem, 5vw, 1.5rem); }

  .act-episodes { margin-left: -1.5rem; margin-right: -1.5rem; }
  .act-episodes-header { padding: 2rem 1.5rem 1.5rem; }
  .episode-era { padding: 2rem 1.5rem 1.5rem; }
  .act-episodes-footer { padding: 2rem 1.5rem; }

  .episode-card { min-height: 340px; }
  .episode-card::after {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0)   30%,
      rgba(0,0,0,.72) 100%
    );
  }
  .episode-overlay {
    max-width: 100%;
    padding: 1.5rem;
    justify-content: flex-end;
  }
  .episode-title { font-size: clamp(1.25rem, 5vw, 1.75rem); }

  .act-data { padding: 3.5rem 0 2rem; }
  .act-data-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   HOME — jasny minimal layout
   ══════════════════════════════════════════════════════════════ */
.home-minimal {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 3rem;
  background: #f6f5f2;
}

.home-minimal-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.home-minimal-left {
  display: flex;
  flex-direction: column;
}

.home-minimal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1rem;
}

.home-minimal-headline {
  font-family: 'Bebas Neue', var(--font-sans);
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: #111;
  margin-bottom: 1.75rem;
}

.home-minimal-counter {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: 0.5rem;
}

.home-minimal-num {
  font-family: 'Bebas Neue', var(--font-sans);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 1;
  color: #111;
  letter-spacing: 0.02em;
}

.home-minimal-sep {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #bbb;
  padding: 0 0.4rem;
}

.home-minimal-denom {
  font-family: 'Bebas Neue', var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  color: #bbb;
  letter-spacing: 0.02em;
}

.home-minimal-counter-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.75rem;
}

.home-minimal-progress {
  height: 2px;
  background: #e0ddd8;
  width: 100%;
  margin-bottom: 0.5rem;
}

.home-minimal-fill {
  height: 100%;
  background: #111;
}

.home-minimal-pct {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #999;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}

.home-minimal-manifesto {
  max-width: 480px;
}

.home-minimal-manifesto p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 0.9rem;
}

.home-minimal-manifesto p:last-child { margin-bottom: 0; }

.hmm-contrast {
  font-size: 0.88rem !important;
  color: #888 !important;
  border-left: 2px solid #ddd;
  padding-left: 1rem;
}

.hmm-kicker {
  color: #111 !important;
  font-weight: 600;
}

.hmm-sig {
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  color: #aaa !important;
}

.home-minimal-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.home-minimal-portrait img {
  width: 100%;
  max-width: 440px;
  height: auto;
}

/* Przyciski pod portretem */
.home-minimal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.hma-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #333;
  border: 1px solid #ccc;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.hma-btn:hover {
  border-color: #111;
  color: #111;
}

/* ── Droga do 1000 — pełnoszerokie pod hero ─────────────────────── */
.hm-road {
  border-top: 1px solid #e8e8e8;
  background: #fff;
  padding: 2.5rem 2rem;
}
.hm-road-inner {
  max-width: 960px;
  margin: 0 auto;
}
.hm-road-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  margin: 0 0 0.75rem;
}
.hm-road-cards {
  display: flex;
  gap: 1px;
  background: #e8e8e8;
  border: 1px solid #e8e8e8;
  margin-bottom: 1.25rem;
}
.hm-road-card {
  flex: 1;
  background: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.hm-road-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
}
.hm-road-big {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
}
.hm-road-sub {
  font-size: 0.72rem;
  color: #999;
}
.hm-road-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #111;
  margin-top: 0.4rem;
}
.hm-road-age {
  font-weight: 400;
  color: #999;
  font-size: 0.72rem;
}

/* Pasek postępu */
.hm-road-track {
  position: relative;
  height: 4px;
  background: #eee;
  margin: 0.5rem 0 0;
}
.hm-road-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: #111;
}
.hm-road-tick {
  position: absolute;
  top: -3px;
  width: 1px;
  height: 10px;
  background: #ccc;
  transform: translateX(-50%);
}
.hm-road-tick--done { background: #555; }
.hm-road-tick--next { background: #111; width: 2px; height: 12px; top: -4px; }
.hm-road-here {
  position: absolute;
  top: -18px;
  transform: translateX(-50%);
}
.hm-road-here-n {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #d00;
}
.hm-road-track-labels {
  position: relative;
  height: 2rem;
  margin-top: 2px;
}
.hm-road-lbl {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #bbb;
  line-height: 1.2;
}
.hm-road-lbl--done { color: #888; }
.hm-road-lbl--next { color: #111; font-weight: 700; }
.hm-road-lbl-yr { display: block; font-size: 0.55rem; color: #bbb; }
.hm-road-lbl--next .hm-road-lbl-yr { color: #999; }
.hm-road-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #999;
  text-decoration: none;
}
.hm-road-more:hover { color: #111; }

@media (max-width: 720px) {
  .home-minimal { padding: 3rem 1.5rem; }
  .home-minimal-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .home-minimal-right { order: -1; }
  .home-minimal-portrait img { max-width: 200px; }
}

/* ============================================================
   SUBPAGE SECTIONS — shared between race_list, statystyki etc.
   ============================================================ */

/* ── Statystyki page sections ─────────────────────────── */

/* Two-column grid: formuły | rok po roku */
.st-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
  padding-bottom: 1rem;
}

/* ── Nawigacja podstron statystyk ─────────────────────────────────── */
.st-subnav {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.st-subnav-home {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #999;
  text-decoration: none;
  flex-shrink: 0;
}
.st-subnav-home:hover { color: #111; }
.st-subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.st-subnav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #999;
  text-decoration: none;
}
.st-subnav-link:hover,
.st-subnav-link--active { color: #111; }
.st-subnav-link--active { font-weight: 700; }

/* ── Karty podstron (mini-landing) ──────────────────────────────────── */
.st-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: #e8e8e8;
  border: 1px solid #e8e8e8;
  margin-bottom: 0;
}
.st-sub-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.5rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.st-sub-card:hover { background: #fafafa; }
.st-sub-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
}
.st-sub-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin-top: 0.4rem;
}
.st-sub-desc {
  font-size: 0.78rem;
  color: #999;
  line-height: 1.4;
}
.st-sub-arrow {
  font-size: 1rem;
  color: #bbb;
  margin-top: auto;
  padding-top: 0.75rem;
}
.st-sub-card:hover .st-sub-arrow { color: #111; }

/* record-card hero (formula detail) */
.record-card--hero .record-time {
  font-size: 2.5rem;
}

.st-two-col .st-section {
  border-top: none;
  padding-top: 0;
}

/* Base section block */
.st-section {
  padding: 0 0 3.5rem;
}

/* Sections below the two-col get a ruled top border */
.st-section--ruled {
  border-top: 1px solid #e2e2e2;
  padding-top: 3.5rem;
}

/* Section header: big number + label */
.st-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.st-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 1.6rem;
}

.st-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #555;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.st-section-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: #bbb;
  letter-spacing: 0.06em;
  text-transform: none;
  text-decoration: none;
  transition: color 0.15s;
}

.st-section-link:hover { color: #555; }

/* Projections table */
.st-proj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 2rem;
}

.st-proj-th {
  text-align: center;
  padding: 0.4rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  border-bottom: 1px solid #e8e8e8;
}

.st-proj-th:first-child { text-align: left; }

.st-proj-row { border-bottom: 1px solid #f5f5f5; }
.st-proj-row:last-child { border-bottom: none; }
.st-proj-row--done { color: #bbb; }

.st-proj-td {
  padding: 0.4rem 0.5rem;
  font-family: var(--font-mono);
}

.st-proj-td--milestone { font-weight: 700; }
.st-proj-row--done .st-proj-td--milestone { font-weight: 400; }
.st-proj-td--center { text-align: center; }

.st-proj-est { color: #ccc; }

.st-proj-note {
  font-size: 0.72rem;
  color: #bbb;
  margin-top: 1rem;
}

/* Responsive: stack two-col on mobile */
@media (max-width: 720px) {
  .st-two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .st-two-col .st-section:last-child {
    border-top: 1px solid #e2e2e2;
    padding-top: 3rem;
    margin-top: 0;
  }
}

/* ============================================================
   RACE LIST PAGE — dark hero + diagonal separator + light body
   ============================================================ */

/* Remove grain texture on the race list page */
body.rl-page {
  background-image: none;
  background-color: #f6f5f2;
}

/* ── DARK HERO ─────────────────────────────────────────────── */
.rl-hero {
  background: #111;
  color: #fff;
  padding: 0 0 5rem;
}

.rl-hero-nav {
  padding: 1.25rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rl-hero-brand {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.rl-hero-brand:hover {
  color: rgba(255,255,255,0.85);
}

.rl-hero-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 3rem 0;
}

.rl-hero-portrait {
  flex-shrink: 0;
  width: 160px;
}

.rl-hero-portrait img {
  width: 100%;
  height: auto;
  display: block;
  /* slight desaturation to blend with dark bg */
  filter: grayscale(20%) brightness(0.92);
}

.rl-hero-content {
  flex: 1;
  min-width: 0;
}

.rl-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}

.rl-hero-title {
  font-family: 'Bebas Neue', var(--font-sans);
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.rl-hero-desc {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
}

/* ── DIAGONAL SEPARATOR ────────────────────────────────────── */
/*
  The wedge is a thin div rendered in dark colour (#111),
  then clipped with clip-path so the bottom edge is diagonal.
  The light body below starts immediately after, giving
  a clean angled handoff from dark to light.
*/
.rl-wedge {
  background: #181715;
  height: 80px;
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%);
  margin-bottom: -1px; /* prevent 1px gap in some browsers */
}

/* ── LIGHT BODY ────────────────────────────────────────────── */
.rl-light-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 3rem 5rem;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .rl-hero { padding-bottom: 3rem; }
  .rl-hero-nav { padding: 1rem 1.5rem; }
  .rl-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem 1.5rem 0;
  }
  .rl-hero-portrait { width: 100px; }
  .rl-hero-title { font-size: clamp(3.5rem, 14vw, 5rem); }
  .rl-wedge { height: 48px; }
  .rl-light-body { padding: 1.5rem 1.5rem 4rem; }
}

/* ── STATYSTYKI — NARRACJA ──────────────────────────────────── */
.st-narrative {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
  max-width: 620px;
  margin-bottom: 2rem;
}

/* Karty "W skrócie" */
.st-quick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: #e8e8e8;
  border: 1px solid #e8e8e8;
  margin-bottom: 0.5rem;
}
.st-quick-card {
  background: #fff;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.st-quick-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
}
.st-quick-unit {
  font-size: 1rem;
  font-weight: 400;
  color: #999;
  margin-left: 0.2rem;
}
.st-quick-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  font-weight: 600;
}
.st-quick-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #bbb;
}
.st-quick-link { color: #111; text-decoration: underline; text-underline-offset: 2px; }
.st-quick-link:hover { color: #555; }

/* Rok po roku — klikalny rok */
.st-link-filter {
  color: #111;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}
.st-link-filter:hover { text-decoration: underline; text-underline-offset: 2px; }

/* CTA — wejdź w archiwum */
.st-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.st-cta-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #111;
  border: 1px solid #ccc;
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  transition: border-color 0.1s, background 0.1s;
}
.st-cta-link:hover { border-color: #111; background: #111; color: #fff; }

@media (max-width: 720px) {
  .st-quick-cards { grid-template-columns: 1fr 1fr; }
}

/* ── FORMULA CHIPS BAR (race list) ─────────────────────────── */
.fchips-bar {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
}
.fchips-kicker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #bbb;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.fchip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid #e0e0e0;
  background: transparent;
  color: #555;
  cursor: pointer;
  text-align: left;
  transition: color 0.1s, border-color 0.1s;
}
.fchip:hover { color: #111; border-color: #999; }

/* "Wszystkie" — pogrubiony */
.fchip--all { color: #333; font-weight: 700; }

/* Aktywny — odwrócone kolory */
.fchip--active { color: #fff; background: #111; }
.fchip--active::before { display: none; }
.fchip--active:hover { background: #333; color: #fff; }

/* "+ pozostałe" */
.fchip--more {
  list-style: none;
  color: #bbb;
  font-size: 0.72rem;
  border-style: dashed;
  border-color: #ddd;
}
.fchip--more:hover { color: #555; border-color: #999; }
.fchip--more::before { display: none; }

.fchip-name {
  position: relative;
  z-index: 1;
  flex: 1;
}
.fchip-count {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  color: #999;
  line-height: 1;
  flex-shrink: 0;
}
.fchip--active .fchip-count { color: rgba(255,255,255,0.7); }
.fchip--all .fchip-count { color: #bbb; font-weight: 400; }

/* "Pozostałe" dropdown */
.fchip-more { display: inline-block; }
.fchip-more summary { display: inline-block; }
.fchip-more summary::-webkit-details-marker { display: none; }
.fchip-more[open] summary.fchip--more { background: #f5f5f5; border-color: #999; border-style: dashed; color: #555; }
.fchip-more-panel {
  position: absolute;
  z-index: 100;
  background: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 360px;
  margin-top: 0.25rem;
}

@media (max-width: 720px) {
  .fchip-more-panel { max-width: 280px; }
}


/* ============================================================
   NOWA STRONA GŁÓWNA — komponenty jasnego motywu
   (home.html v2 — rmg-light.css)
   ============================================================ */

/* Pomocnicze */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 1.75rem;
  white-space: nowrap;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: #111;
  flex-shrink: 0;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* Wariant z dwoma etykietami: lewa ─── prawa */
.section-label-split {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-label-left,
.section-label-right {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333;
  white-space: nowrap;
}
.section-label-left::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: #111;
  margin-right: 0.75rem;
  vertical-align: middle;
}
.section-label-line {
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 1rem;
}

/* ---- SITE NAV (nowa strona główna, nie wchodzi w konflikt z _nav.html) ---- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 245, 242, 0.95);
  border-bottom: 1px solid #e2e2e2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Nav ciemny — dla stron z czarnym hero */
.site-nav--dark {
  background: rgba(24, 23, 21, 0.98);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav--dark .site-nav-brand { color: rgba(255,255,255,0.9); }
.site-nav--dark .site-nav-brand:hover { color: #fff; }
.site-nav--dark .site-nav-link { color: rgba(255,255,255,0.4); }
.site-nav--dark .site-nav-link:hover { color: rgba(255,255,255,0.9); }
.site-nav--dark .site-nav-link--active { color: #fff; }
.site-nav--dark .site-nav-link--muted { color: rgba(255,255,255,0.2); }
.site-nav--dark .site-nav-link--muted:hover { color: rgba(255,255,255,0.5); }
.site-nav--dark .site-nav-sep { color: rgba(255,255,255,0.15); }

.site-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 3rem;
}

.site-nav-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.site-nav-brand:hover { color: #555; }

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.site-nav-link {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav-link:hover { color: #111; }
.site-nav-link.active { color: #111; }
.site-nav-link--muted { color: #ccc; }
.site-nav-link--muted:hover { color: #888; }
.site-nav-sep { color: #ddd; font-size: 0.7rem; }


/* ---- HERO ---- */

.hero {
  background: #181715;
  padding: 4rem 0 1.5rem;
  border-bottom: none;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.hero-left  { min-width: 0; }
.hero-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
}
.hero-eyebrow-sep {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.25);
}
.hero-eyebrow-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

/* h1 inside hero — override legacy .hero h1 rule */
.hero .hero-name {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 2rem;
}

.hero-fraction {
  display: flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.hero-fraction-n {
  font-family: var(--font-mono);
  font-size: clamp(6rem, 16vw, 13rem);
  font-weight: 800;
  color: #fff;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.hero-fraction-sep {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  margin: 0 0.1em;
  line-height: 1;
}

.hero-fraction-d {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: rgba(255,255,255,0.18);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-fraction-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.hero-fraction-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-top: 0.35rem;
  margin-bottom: 1.5rem;
}

.hero-progress {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 0.5rem;
}

.hero-progress-fill {
  height: 100%;
  background: #fff;
}

.hero-progress-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.5rem;
}

.hero-progress-label strong { color: rgba(255,255,255,0.75); }

/* Hero — score-line "237 / 1000" + linia kontekstu ─────────────── */
.hero-count {
  margin-bottom: 1.75rem;
}
.hero-count-ratio {
  display: inline-flex;
  align-items: baseline;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}
.hero-count-n {
  font-family: var(--font-mono);
  font-size: clamp(5.5rem, 14vw, 10rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.05em;
}
.hero-count-slash {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  margin: 0 0.05em 0 0.1em;
}
.hero-count-d {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  letter-spacing: -0.04em;
}
.hero-count-sub {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.005em;
  margin: 0.85rem 0 0;
  line-height: 1.4;
}
.hero-count-sub strong { color: #fff; font-weight: 700; }

/* Tagline na górze (nad nazwiskiem) — mono uppercase, mała ─────── */
.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin: 0 0 1rem;
  line-height: 1.4;
}

/* Hero-meta: pełna szerokość, centered linia sezonów + statystyki */
.hero-meta {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 1.25rem;
}
.hero-meta-line {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.01em;
  margin: 0 0 0.4rem;
  line-height: 1.4;
}
.hero-meta-line strong {
  color: #fff;
  font-weight: 800;
}
.hero-meta-sep { color: rgba(255,255,255,0.25); margin: 0 0.5rem; }

/* Statystyki — pełna szerokość, centered, lista mono z separatorami */
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
}
.hero-stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}
.hero-stat-n {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.hero-narrative {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.hero-narrative-n {
  font-family: var(--font-mono);
  font-style: italic;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}

.hero-cta-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 1px;
  line-height: 1;
  text-decoration: none;
}
.hero-cta-link:hover { color: rgba(255,255,255,0.7); border-bottom-color: rgba(255,255,255,0.3); }

.hero-cta-link--ghost {
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  border-bottom-color: rgba(255,255,255,0.2);
}
.hero-cta-link--ghost:hover { color: rgba(255,255,255,0.7); border-bottom-color: rgba(255,255,255,0.4); }

.hero-portrait { width: clamp(200px, 28vw, 340px); }
.hero-portrait img { width: 100%; height: auto; display: block; }


/* ---- NASTĘPNY START ---- */

.next-section {
  padding: 2.5rem 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.next-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.next-featured-card {
  padding: 1.75rem 2rem;
  background: #fff;
}

.next-days-big {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  color: #111;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.next-days-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbb;
  margin-bottom: 1.25rem;
}

.next-formula {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 0.25rem;
}

.next-meta { font-size: 0.8125rem; color: #888; }

.next-companions {
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid #eee;
}
.next-companion-row {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.2rem;
}

/* -- Grid: countdown | szczegóły startu ----------------------- */
.next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
  border: 1px solid #eee;
}

/* -- Prawa kolumna: szczegóły startu ----------------------- */
.next-detail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.75rem 2rem;
  border-left: 1px solid #eee;
  background: #fff;
}

.next-detail-formula {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.next-detail-meta {
  font-size: 0.8125rem;
  color: #888;
}

.next-detail-race {
  font-size: 0.75rem;
  color: #ccc;
  margin-top: 0.1rem;
}

/* -- Tabela kolejnych startów ------------------------------ */
.next-table-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.next-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 0.8125rem;
}

.next-table thead tr {
  border-bottom: 1px solid #e8e8e8;
}

.next-table th {
  font-family: var(--font-mono);
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  padding: 0 0 0.6rem;
  text-align: left;
}

.next-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f4f4f4;
  vertical-align: baseline;
}

.next-table tr:last-child td { border-bottom: none; }

.next-table-days {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  width: 3rem;
  font-variant-numeric: tabular-nums;
}

.next-table-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #aaa;
  width: 7rem;
  font-variant-numeric: tabular-nums;
}

.next-table-name { color: #333; font-weight: 500; }
.next-table-loc  { color: #bbb; font-size: 0.75rem; text-align: right; }


/* ---- DROGA DO 1000 ---- */

/* ---- MOST NARRACYJNY ---- */

.bridge-section {
  background: #fff;
  padding: 7rem 0 6rem;
  border-bottom: 1px solid #eee;
  position: relative;
  overflow: hidden;
}
.bridge-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: #111;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  pointer-events: none;
}

.bridge-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bridge-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #111;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.bridge-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  font-weight: 300;
  color: #555;
  line-height: 1.75;
}

/* ---- DROGA DO 1000 ---- */

.road-section {
  padding: 2.5rem 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.road-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Road finish line ── */
.road-finish {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.road-finish-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
}

.road-finish-date {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
  letter-spacing: -0.04em;
}

.road-finish-age {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #999;
}

/* ── Timeline ── */
.road-track-wrap { margin-bottom: 0.5rem; }

.road-track {
  position: relative;
  height: 6px;
  background: #e8e8e8;
  width: 100%;
  border-radius: 0;
}

.road-track-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: #111;
}

.road-tick {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 12px;
  background: #d0d0d0;
  transform: translateX(-50%);
}

.road-tick--done { background: #999; }
.road-tick--next {
  background: #111;
  width: 2px;
  height: 16px;
  top: -5px;
}

.road-here {
  position: absolute;
  top: 0;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.road-here-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  padding: 0.18rem 0.4rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}
.road-here-n {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
  margin-bottom: 0.2rem;
  white-space: nowrap;
}
.road-here-connector {
  width: 2px;
  height: 11px;
  background: #111;
}

.road-labels {
  position: relative;
  height: 2.75rem;
  width: 100%;
  margin-top: 0.4rem;
}

.road-lbl {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.road-lbl span:first-child {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #bbb;
  font-variant-numeric: tabular-nums;
}

.road-lbl-yr { font-family: var(--font-mono); font-size: 0.6rem; color: #ccc; display: block; text-align: center; }
.road-lbl--done  span:first-child { color: #ccc; }
.road-lbl--next  span:first-child { color: #111; font-size: 0.8rem; }

.road-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  font-weight: 300;
  color: #666;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 2rem;
}

.road-tagline strong {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #111;
}

.road-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: #999;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1px;
}
.road-more:hover { color: #111; border-bottom-color: #111; }

/* ── Statystyki pod timelineem ── */
.road-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
}

.road-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.road-stat-n {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.road-stat-label {
  font-size: 0.6875rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ---- OSTATNI BIEG ---- */

/* ---- TERAZ NA TRASIE ---- */

.now-section {
  padding: 2.5rem 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.now-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #eee;
}

/* Kolumna — wspólna struktura: label → visual → data */
.now-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #eee;
  min-width: 0;
  overflow: hidden;
}
.now-col--right { border-right: none; }

.now-col-label {
  font-family: var(--font-mono);
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  padding: 1.25rem 1.5rem 0.75rem;
}

/* Blok wizualny — ta sama proporcja w obu kolumnach */
.now-visual {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.now-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 0;
}

/* Wariant ciemny: odliczanie zamiast zdjęcia */
.now-visual--dark {
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.5rem 1.75rem;
}

.now-visual-days {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  color: #fff;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.now-visual-days-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}

.now-companions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  align-self: stretch;
}

.now-companion-row {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.15rem;
}

/* Dane pod wizualizacją */
.now-data {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.now-data-name {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.now-data-meta {
  font-size: 0.8125rem;
  color: #888;
}

.now-data-race {
  font-size: 0.75rem;
  color: #ccc;
}

/* Wyniki ostatniego biegu */
.now-results {
  display: flex;
  gap: 0 1.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.now-result-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.now-result-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
}

.now-result-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}

.now-result-val--accent { color: #111; }

.now-data .road-more {
  margin-top: auto;
  padding-top: 1rem;
}

/* ---- OSTATNI BIEG (zachowane) ---- */

.last-section {
  padding: 2.5rem 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.last-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.last-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
  border: 1px solid #eee;
}

.last-photo-wrap {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #f0f0f0;
}

.last-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.last-data {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  border-left: 1px solid #eee;
  gap: 1.25rem;
}

.last-race-name {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.last-race-meta { font-size: 0.8rem; color: #999; margin-top: 0.2rem; }

/* Grid stat-cells: etykieta nad wartością */
.info-rows {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 1.25rem;
  justify-content: start;
  column-gap: 2rem;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.info-row-label {
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
}

.info-row-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.info-row-value--accent { color: #111; }

.last-next-goal {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid #f0f0f0;
}
.last-next-label {
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
}
.last-next-n {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.04em;
  line-height: 1;
}
.last-next-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #888;
  margin-top: 0.1rem;
}
.last-next-age { color: #bbb; }

.last-cta { display: flex; gap: 1rem; margin-top: 0.25rem; }


/* ---- AKTY KARIERY (scrollytelling) ---- */

.acts-section {
  padding: 3rem 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.acts-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.acts-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.acts-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.acts-header-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.acts-subtitle { font-size: 0.875rem; color: #666; line-height: 1.65; }

.acts-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  font-weight: 300;
  color: #999;
  line-height: 1.5;
}

/* Link-wrapper karty aktu */
.act-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.act-card-link:hover .act-card { border-color: #bbb; }
.act-card-link:hover .act-title { color: #333; }

/* Karta aktu — foto + tekst */
.act-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #eee;
  margin-bottom: 1px;
  min-height: 260px;
}

.act-card:hover { border-color: #ccc; }

.act-photo {
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.act-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.act-card:hover .act-photo img { transform: scale(1.02); }

.act-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: #f5f5f5;
}

.act-body {
  padding: 2rem 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid #eee;
  background: #fff;
}

.act-order {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #aaa;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.act-years {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 0.4rem;
}

.act-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.act-subtitle { font-size: 0.8125rem; color: #999; font-style: italic; margin-bottom: 1rem; }

.act-body-text { font-size: 0.875rem; color: #555; line-height: 1.7; flex: 1; margin-bottom: 1.25rem; }

.act-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #bbb;
  font-variant-numeric: tabular-nums;
}

.act-meta { font-size: 0.6875rem; color: #ccc; letter-spacing: 0.05em; margin-top: 0.25rem; }

/* Foto po prawej (naprzemiennie) */
.act-card--flip .act-photo { order: 2; border-left: 1px solid #eee; }
.act-card--flip .act-body  { order: 1; border-left: none; }

.acts-cta { margin-top: 2.5rem; text-align: center; }


/* ---- STOPKA STRONY GŁÓWNEJ ---- */

.home-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid #eee;
}

.home-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-footer-brand {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
}

.home-footer-links { display: flex; gap: 1.25rem; }

.home-footer-link { font-size: 0.75rem; color: #bbb; text-decoration: none; }
.home-footer-link:hover { color: #111; }

.home-footer-copy { font-size: 0.6875rem; color: #ccc; width: 100%; text-align: right; }


/* ---- RESPONSIVE ---- */

@media (max-width: 720px) {
  .site-nav-links { gap: 1.1rem; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-right { display: none; }
  .hero-fraction-n { font-size: clamp(5rem, 22vw, 8rem); }

  .next-grid  { grid-template-columns: 1fr; }
  .next-detail { border-left: none; border-top: 1px solid #eee; }

  .now-grid { grid-template-columns: 1fr; }
  .now-col  { border-right: none; border-bottom: 1px solid #eee; }
  .now-col--right { border-bottom: none; }

  .last-grid { grid-template-columns: 1fr; }
  .last-photo-wrap { min-height: 240px; }
  .last-data { border-left: none; border-top: 1px solid #eee; }

  .act-card { grid-template-columns: 1fr; }
  .act-photo { min-height: 200px; }
  .act-card--flip .act-photo { order: 0; border-left: none; border-top: 1px solid #eee; }
  .act-card--flip .act-body  { order: 0; }
  .act-body { border-left: none; border-top: 1px solid #eee; }
  .acts-header { grid-template-columns: 1fr; }

  .road-stats { grid-template-columns: repeat(2, 1fr); }

  .home-footer-inner { flex-direction: column; align-items: flex-start; }
  .home-footer-copy { text-align: left; }
}


/* ============================================================
   /DROGA/ — kronika sezonów
   ============================================================ */

/* -- Aktywny link w site-nav -------------------------------- */
.site-nav-link--active { color: #111; font-weight: 600; }

/* -- Page hero ---------------------------------------------- */
.droga-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid #eee;
}
.droga-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}
.droga-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.75rem;
}
.droga-hero-title {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 1rem;
}
.droga-hero-sub {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  max-width: 480px;
}

/* -- Sezony lista ------------------------------------------- */
.droga-seasons {
  padding: 3rem 0 4rem;
}
.droga-seasons-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* -- Karta sezonu ------------------------------------------- */
.season-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
  align-items: start;
}
.season-card--empty {
  opacity: 0.45;
}
.season-card:last-child { border-bottom: none; }

.season-card-year {
  padding-top: 0.2rem;
  text-align: right;
}
.season-year-n {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1;
}
.season-year-count {
  display: block;
  font-size: 0.75rem;
  color: #bbb;
  margin-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.season-year-count--none { color: #ddd; }

.season-card-body { padding-top: 0.1rem; }

.season-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.season-title--empty {
  color: #ccc;
  font-weight: 400;
}

.season-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.65;
  margin-bottom: 0.75rem;
  max-width: 560px;
}

.season-stats {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.75rem;
}
.season-stat {
  font-size: 0.75rem;
  color: #aaa;
  font-variant-numeric: tabular-nums;
}

.season-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 1px;
}
.season-more:hover { color: #555; border-color: #555; }
.season-more--ghost {
  color: #bbb;
  border-color: #e0e0e0;
  font-weight: 400;
}
.season-more--ghost:hover { color: #888; border-color: #aaa; }

@media (max-width: 720px) {
  .season-card {
    grid-template-columns: 80px 1fr;
    gap: 0 1.5rem;
    padding: 1.5rem 0;
  }
  .season-year-n { font-size: 1.5rem; }
  .droga-hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
}


/* ============================================================
   /DROGA/<ROK>/ — pojedynczy sezon
   ============================================================ */

/* -- Year hero ---------------------------------------------- */
.year-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid #eee;
}
.year-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.year-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.5rem;
}
.year-hero-n {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.05em;
  line-height: 0.85;
  margin-bottom: 0.5rem;
}
.year-hero-title {
  font-size: 1.1rem;
  color: #555;
  font-weight: 400;
  max-width: 360px;
  line-height: 1.4;
}

.year-hero-right {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  padding-bottom: 0.5rem;
  flex-shrink: 0;
}
.year-hero-stat { text-align: right; }
.year-hero-stat-n {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1;
}
.year-hero-stat-label {
  display: block;
  font-size: 0.7rem;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* -- Narracja ----------------------------------------------- */
.year-narrative {
  padding: 2.5rem 0;
  border-bottom: 1px solid #eee;
}
.year-narrative-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}
.year-narrative-text {
  max-width: 660px;
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
}
.year-narrative-text p { margin-bottom: 1.1rem; }
.year-narrative-text p:last-child { margin-bottom: 0; }

/* -- Sekcja generyczna (formuły, lista startów) ------------- */
.year-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid #eee;
}
.year-section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* -- Formuły ------------------------------------------------ */
.year-formulae {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 560px;
}
.year-formula-row {
  display: grid;
  grid-template-columns: 140px 1fr 2rem;
  gap: 0.75rem;
  align-items: center;
}
.year-formula-name {
  font-size: 0.8125rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.year-formula-bar-wrap {
  height: 3px;
  background: #f0f0f0;
  position: relative;
}
.year-formula-bar {
  display: block;
  height: 100%;
  background: #111;
  min-width: 4px;
}
.year-formula-cnt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #888;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* -- Tabela startów ----------------------------------------- */
.year-results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.8125rem;
}
.year-results-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
  padding: 0 0 0.6rem;
  border-bottom: 1px solid #eee;
}
.th-right { text-align: right; }
.year-results-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f4f4f4;
  vertical-align: middle;
}
.year-results-table tr:last-child td { border-bottom: none; }

.td-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #bbb;
  white-space: nowrap;
  padding-right: 1rem;
  font-variant-numeric: tabular-nums;
}
.yr-race-link { color: #111; text-decoration: none; font-weight: 500; }
.yr-race-link:hover { color: #555; }
.td-formula { color: #888; }
.td-city { color: #aaa; font-size: 0.75rem; }
.td-time {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #888;
  font-variant-numeric: tabular-nums;
}

/* -- Nawigacja po latach ------------------------------------ */
.year-nav {
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
}
.year-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.year-nav-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}
.year-nav-link:hover { color: #555; }
.year-nav-back {
  font-size: 0.8rem;
  color: #bbb;
  text-decoration: none;
}
.year-nav-back:hover { color: #555; }

@media (max-width: 720px) {
  .year-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .year-hero-right {
    padding-bottom: 0;
    gap: 1.5rem;
  }
  .year-hero-stat-n { font-size: 2rem; }
  .year-formula-row { grid-template-columns: 110px 1fr 2rem; }
  .year-results-table .td-formula,
  .year-results-table .td-city { display: none; }
}


/* ============================================================
   /1000/ — manifest celu
   ============================================================ */

/* -- Hero --------------------------------------------------- */
.m1k-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid #eee;
}
.m1k-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.m1k-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 1rem;
}
.m1k-big-number {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.05em;
  line-height: 0.85;
  margin-bottom: 1rem;
}
.m1k-sub {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

.m1k-hero-right { flex-shrink: 0; text-align: right; }
.m1k-counter {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}
.m1k-counter-n {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.04em;
}
.m1k-counter-sep {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: #ccc;
  margin: 0 0.1em;
}
.m1k-counter-d {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 400;
  color: #ccc;
  letter-spacing: -0.02em;
}
.m1k-progress-wrap {
  height: 3px;
  background: #f0f0f0;
  width: 240px;
  margin: 0 0 0.5rem auto;
}
.m1k-progress-fill {
  height: 100%;
  background: #111;
  min-width: 2px;
}
.m1k-progress-label {
  font-size: 0.8rem;
  color: #888;
  text-align: right;
}

/* -- Manifest ----------------------------------------------- */
.m1k-manifest {
  padding: 3rem 0;
  border-bottom: 1px solid #eee;
}
.m1k-manifest-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}
.m1k-manifest-text {
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}
.m1k-manifest-text p { margin-bottom: 1.1rem; }
.m1k-manifest-text p:last-child { margin-bottom: 0; }

/* -- Absurd policzony --------------------------------------- */
.m1k-math {
  padding: 3rem 0;
  border-bottom: 1px solid #eee;
}
.m1k-math-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}
.m1k-math-grid {
  display: flex;
  gap: 3rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.m1k-math-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.m1k-math-n {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.04em;
  line-height: 1;
}
.m1k-math-label {
  font-size: 0.8125rem;
  color: #888;
  line-height: 1.5;
}
.m1k-math-sub { color: #bbb; }

/* -- Następny cel ------------------------------------------- */
.m1k-next {
  padding: 3rem 0;
  border-bottom: 1px solid #eee;
}
.m1k-next-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}
.m1k-next-card {
  margin-top: 1.25rem;
  border: 1px solid #e8e8e8;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: baseline;
  gap: 2rem;
  max-width: 560px;
}
.m1k-next-n {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
}
.m1k-next-meta {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.7;
}

/* -- Kamienie milowe ---------------------------------------- */
.m1k-milestones {
  padding: 3rem 0;
  border-bottom: 1px solid #eee;
}
.m1k-milestones-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}
.m1k-milestone-track {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
}
.m1k-ms-row {
  display: grid;
  grid-template-columns: 3rem 1fr 160px;
  gap: 0 1.5rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f4f4f4;
}
.m1k-ms-row:last-child { border-bottom: none; }

.m1k-ms-n {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: #ccc;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.m1k-ms-row--done .m1k-ms-n  { color: #111; }
.m1k-ms-row--next .m1k-ms-n  { color: #111; }

.m1k-ms-bar-wrap {
  position: relative;
  height: 3px;
  background: #f4f4f4;
}
.m1k-ms-bar {
  display: block;
  height: 100%;
  background: #e0e0e0;
  min-width: 2px;
}
.m1k-ms-row--done .m1k-ms-bar { background: #111; }
.m1k-ms-row--next .m1k-ms-bar { background: #888; }
.m1k-ms-done-dot {
  position: absolute;
  right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  background: #111;
  border-radius: 50%;
}

.m1k-ms-date {
  font-size: 0.8rem;
  color: #bbb;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.m1k-ms-row--done .m1k-ms-date { color: #555; }
.m1k-ms-row--next .m1k-ms-date { color: #111; font-weight: 600; }
.m1k-ms-age { color: #ccc; font-size: 0.75rem; }
.m1k-ms-row--done .m1k-ms-age { color: #aaa; }
.m1k-ms-row--next .m1k-ms-age { color: #888; }

/* -- CTA ---------------------------------------------------- */
.m1k-cta {
  padding: 3rem 0;
  border-bottom: 1px solid #eee;
}
.m1k-cta-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* -- Responsive --------------------------------------------- */
@media (max-width: 720px) {
  .m1k-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .m1k-hero-right { text-align: left; }
  .m1k-progress-wrap { margin: 0 0 0.5rem 0; }
  .m1k-progress-label { text-align: left; }
  .m1k-counter { justify-content: flex-start; }
  .m1k-math-grid { gap: 2rem; }
  .m1k-next-card { flex-direction: column; gap: 0.75rem; }
  .m1k-ms-row { grid-template-columns: 3rem 1fr; }
  .m1k-ms-date { display: none; }
}


/* ============================================================
   /DROGA/ — long-scroll narracja (v2)
   ============================================================ */

/* -- Intro -------------------------------------------------- */
.droga-intro {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid #eee;
}
.droga-intro-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}
.droga-intro-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 0.75rem;
}
.droga-intro-title {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 1.25rem;
}
.droga-intro-lead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.65;
}

/* -- Marker aktu -------------------------------------------- */
.ds-act-marker {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ds-act-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
}
.ds-act-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #888;
}
.ds-act-years {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #ccc;
  letter-spacing: 0.04em;
}

/* -- Sezon -------------------------------------------------- */
.ds-season {
  border-bottom: 1px solid #eee;
  padding: 4rem 0;
}
.ds-season-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* -- Nagłówek sezonu ---------------------------------------- */
.ds-season-head {
  margin-bottom: 2rem;
}
.ds-year {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.05em;
  line-height: 0.85;
  margin-bottom: 0.5rem;
}
.ds-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.ds-head-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ds-meta-pill {
  font-size: 0.75rem;
  color: #888;
  background: #f4f4f4;
  padding: 0.2rem 0.6rem;
  font-variant-numeric: tabular-nums;
}
.ds-meta-pill--light { color: #bbb; background: #fafafa; }

/* -- Zajawka ------------------------------------------------ */
.ds-short-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* -- Bloki narracji ----------------------------------------- */
.ds-blocks { display: flex; flex-direction: column; gap: 0; }

.ds-text-block {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin: 1.5rem 0;
}
.ds-text-block p { margin-bottom: 1rem; }
.ds-text-block p:last-child { margin-bottom: 0; }
.ds-lead {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  line-height: 1.65;
  margin-bottom: 1.25rem !important;
}

.ds-photo-block {
  margin: 2.5rem auto;
  max-width: 560px;
}
.ds-photo {
  width: 100%;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.ds-photo-caption {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-style: italic;
  color: #999;
  margin-top: 0.625rem;
  line-height: 1.5;
  text-align: center;
}

/* -- Stopka sezonu ------------------------------------------ */
.ds-season-foot {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f0;
}
.ds-stats-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #bbb;
  text-decoration: none;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1px;
}
.ds-stats-link:hover { color: #555; border-color: #aaa; }

/* -- Koniec drogi ------------------------------------------- */
.droga-end {
  padding: 5rem 0 4rem;
  text-align: center;
}
.droga-end-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}
.droga-end-n {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.droga-end-of {
  font-size: 0.45em;
  color: #ccc;
  font-weight: 400;
}
.droga-end-sub {
  font-size: 0.875rem;
  color: #bbb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.droga-end-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .ds-season { padding: 2.5rem 0; }
  .ds-photo { aspect-ratio: 4/3; }
}


/* ============================================================
   ARCHIWUM — losowe zdjęcie historyczne
   ============================================================ */

.archive-section {
  line-height: 0;
}
.archive-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3/1;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 220px;
  max-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.archive-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  pointer-events: none;
}
.archive-caption {
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.archive-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.archive-race {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.archive-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 720px) {
  .archive-photo { aspect-ratio: 16/9; max-height: none; }
  .archive-caption { padding: 1rem 1.25rem; }
}


/* ============================================================
   BLOG
   ============================================================ */

/* ---- Nagłówek strony /blog/ ---- */
.blog-page-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 3rem 0 2.5rem;
}
.blog-page-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.blog-page-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.5rem 0 0.75rem;
}
.blog-page-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  font-weight: 300;
  color: #888;
  line-height: 1.5;
}

/* ---- Lista wpisów ---- */
.blog-list-wrap {
  background: #fff;
  padding: 2.5rem 0 5rem;
}
.blog-list-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.blog-empty {
  font-family: var(--font-serif);
  font-style: italic;
  color: #aaa;
  grid-column: 1 / -1;
  padding: 2rem 0;
}

/* ---- Karta wpisu ---- */
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card-link:hover .blog-card { border-color: #bbb; }
.blog-card-link:hover .blog-card-title { color: #000; }

.blog-card {
  border: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.15s;
}
.blog-card-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0f0f0;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.blog-card-cat {
  font-family: var(--font-mono);
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
}
.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  transition: color 0.15s;
}
.blog-card-lead {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.55;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.75rem;
}
.blog-card-date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #aaa;
}
.blog-card-year { font-size: 0.6875rem; color: #aaa; }
.blog-card-sep  { color: #ddd; font-size: 0.75rem; }
.blog-card-tag  { font-size: 0.6875rem; color: #bbb; }

/* ---- Okładka wpisu ---- */
.post-cover {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: #111;
  max-height: 480px;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Artykuł ---- */
.post-wrap {
  background: #fff;
  padding: 3.5rem 0 4rem;
}
.post-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Nagłówek wpisu ---- */
.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.post-date {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #aaa;
}
.post-season-link {
  font-size: 0.6875rem;
  color: #aaa;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-season-link:hover { color: #111; }

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #111;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.post-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  font-weight: 300;
  color: #666;
  line-height: 1.65;
}

/* ---- Powiązany bieg ---- */
.post-linked-race {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: #f8f8f8;
  border-left: 3px solid #eee;
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
}
.post-linked-race-label {
  font-family: var(--font-mono);
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
}
.post-linked-race-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #333;
}
.post-linked-race-date {
  font-size: 0.75rem;
  color: #aaa;
}

/* ---- Treść (prose) ---- */
.prose { color: #222; line-height: 1.8; font-size: 1.0625rem; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.2;
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  margin: 2rem 0 0.5rem;
}
.prose p { margin-bottom: 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 700; color: #111; }
.prose em { font-style: italic; color: #444; }
.prose a { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #000; }
.prose blockquote {
  border-left: 3px solid #ddd;
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.75rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  font-weight: 300;
  color: #555;
  line-height: 1.65;
}
.prose blockquote p { margin-bottom: 0; }
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2.5rem 0;
}
.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: #f4f4f4;
  padding: 0.1em 0.35em;
  border-radius: 2px;
}
.prose pre {
  background: #f4f4f4;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.prose pre code { background: none; padding: 0; }

/* ---- Tagi ---- */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.post-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #999;
  background: #f4f4f4;
  padding: 0.3rem 0.65rem;
}

/* ---- Link na Błotnik ---- */
.post-blotnik {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #eee;
  font-size: 0.8125rem;
}
.post-blotnik-label { color: #999; }
.post-blotnik-link { color: #111; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post-blotnik-link:hover { color: #555; }

/* ---- Nawigacja między wpisami ---- */
.post-nav {
  background: #f8f8f8;
  border-top: 1px solid #eee;
  padding: 2rem 0;
}
.post-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.post-nav-prev,
.post-nav-next { display: flex; flex-direction: column; }
.post-nav-prev a,
.post-nav-next a { display: flex; flex-direction: column; gap: 0.25rem; text-decoration: none; }
.post-nav-next { align-items: flex-end; text-align: right; }
.post-nav-dir {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbb;
}
.post-nav-title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}
.post-nav-prev a:hover .post-nav-title,
.post-nav-next a:hover .post-nav-title { color: #111; }
.post-nav-list a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
  white-space: nowrap;
}
.post-nav-list a:hover { color: #111; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .blog-list-inner { grid-template-columns: 1fr; }
  .post-cover { aspect-ratio: 16/9; max-height: none; }
  .post-nav-inner { grid-template-columns: 1fr; gap: 1rem; }
  .post-nav-next { align-items: flex-start; text-align: left; }
  .post-nav-list { display: none; }
}


/* ---- Wpis w "Teraz na trasie" ---- */
.now-post-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.now-post-link:hover { border-color: #bbb; background: #f4f4f4; }
.now-post-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
}
.now-post-title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}
.now-post-arrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #aaa;
  margin-top: 0.15rem;
}
.now-post-link:hover .now-post-arrow { color: #333; }

/* ---- Wyróżniony wpis (standalone section) ---- */
.featured-post-section {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 2.5rem 0;
}
.featured-post-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.featured-post-link {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
  margin-top: 1.25rem;
}
.featured-post-link:hover { border-color: #bbb; }
.featured-post-cover {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0f0;
}
.featured-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-post-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}
.featured-post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #111;
  line-height: 1.25;
}
.featured-post-link:hover .featured-post-title { color: #000; }
.featured-post-lead {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.55;
}
.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.featured-post-read {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #aaa;
  margin-left: auto;
}
.featured-post-link:hover .featured-post-read { color: #333; }

.featured-post-race {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}
.featured-post-race-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ccc;
}
.featured-post-race-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
}
.featured-post-race-date {
  font-size: 0.75rem;
  color: #bbb;
}

@media (max-width: 720px) {
  .featured-post-link { grid-template-columns: 1fr; }
  .featured-post-cover { aspect-ratio: 16/9; }
}

/* ── LISTA WSZYSTKICH BIEGÓW (home — minimalna kompaktowa) ────────── */
.runs-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  border-top: 1px solid #eee;
}
.runs-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.runs-section-head .section-label {
  margin: 0;
}
.runs-section-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #999;
}
.runs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #333;
}
.runs-table thead th {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  text-align: left;
  padding: 0 0.75rem 0.5rem;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}
.runs-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #f4f4f4;
  vertical-align: baseline;
}
.runs-table tr:hover td { background: #fafafa; }
.runs-table td:first-child,
.runs-table th:first-child { padding-left: 0; }
.runs-table td:last-child,
.runs-table th:last-child  { padding-right: 0; text-align: right; }
.runs-idx {
  color: #bbb;
  font-weight: 600;
  width: 3.5rem;
  white-space: nowrap;
}
.runs-date {
  color: #888;
  white-space: nowrap;
  width: 6rem;
}
.runs-name {
  color: #111;
  font-weight: 600;
}
.runs-formula {
  color: #777;
  white-space: nowrap;
  font-size: 0.75rem;
}
.runs-city {
  color: #999;
  white-space: nowrap;
  font-size: 0.75rem;
}
.runs-time {
  color: #555;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .runs-section { padding: 3rem 1rem 4rem; }
  .runs-table { font-size: 0.7rem; }
  .runs-table thead th,
  .runs-table td { padding: 0.4rem 0.4rem; }
  .runs-formula,
  .runs-city { display: none; }
  .runs-table th.runs-th-formula,
  .runs-table th.runs-th-city { display: none; }
}

/* ── Collapse listy biegów ──────────────────────────────────────── */
.runs-table tbody.runs-collapsed tr:nth-child(n+11) { display: none; }
.runs-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.runs-toggle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #111;
  background: #fff;
  border: 1px solid #111;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.runs-toggle:hover { background: #111; color: #fff; }

/* ── Finale pod timelineem Drogi do 1000 (typograficzne) ─────────── */
.road-finale {
  margin-top: 3rem;
  text-align: center;
}
.road-finale-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #888;
  margin: 0 0 1rem;
}
.road-finale-when {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
  line-height: 1;
  margin: 0;
}
.road-finale-ast {
  color: #bbb;
  text-decoration: none;
  font-size: 0.5em;
  font-weight: 600;
  margin-left: 0.1em;
  vertical-align: super;
}
.road-finale-ast:hover { color: #111; }
.road-finale-sub {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #888;
  margin: 0.625rem 0 2rem;
  letter-spacing: 0.01em;
}
.road-finale-strong {
  color: #111;
  font-weight: 700;
}
.road-finale-rest {
  display: inline-flex;
  gap: 0.875rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #666;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.road-finale-rest strong { color: #111; font-weight: 700; }
.road-finale-sep { color: #ccc; }

@media (max-width: 720px) {
  .road-finale-when { font-size: 2.5rem; }
  .road-finale-rest {
    flex-direction: column;
    gap: 0.25rem;
    border-top: none;
    padding-top: 0.5rem;
  }
  .road-finale-sep { display: none; }
}

/* ── INTRO — hook „co to za miejsce" tuż po hero ──────────────────── */
.home-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.home-intro-eyebrow {
  margin: 0 0 1.5rem;
  text-align: center;
}
.home-intro-eyebrow-mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  padding: 0.45rem 0.85rem;
}
.home-intro-headline {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #111;
  line-height: 1.15;
  margin: 0 0 1.75rem;
}
.home-intro-mark {
  position: relative;
  display: inline-block;
  padding: 0 0.15em;
  background: #111;
  color: #fff;
}
.home-intro-body {
  font-size: 1.0625rem;
  font-weight: 400;
  color: #555;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.home-intro-body strong { color: #111; font-weight: 700; }
.home-intro-body--cta {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #888;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
}
@media (max-width: 720px) {
  .home-intro { padding: 2.5rem 1rem 2rem; }
  .home-intro-headline { font-size: 1.25rem; }
}

/* Intro — closer line (tagline jako podsumowanie wyjaśnienia) ──── */
.home-intro-closer {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #111;
  line-height: 1.25;
  margin: 2rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 720px) {
  .home-intro-closer { font-size: 0.95rem; }
}

/* Caption pod portretem hero ─────────────────────────────────────── */
.hero-portrait-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255,255,255,0.4);
  margin: 0.875rem 0 0;
}
.hero-portrait-caption-sep { color: rgba(255,255,255,0.2); margin: 0 0.4em; }

/* Aside pod prognozą — komentarz z dystansem ───────────────────── */
.road-finale-aside {
  font-family: var(--font-serif, Georgia, serif);
  font-style: italic;
  font-size: 1.0625rem;
  font-weight: 400;
  color: #888;
  line-height: 1.5;
  margin: 1.25rem auto 0;
  max-width: 480px;
  letter-spacing: -0.005em;
}

/* Intro — facts (sezon + statystyki przeniesione z hero) ─────────── */
.home-intro-facts {
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #eee;
  max-width: 720px;
  text-align: center;
}
.home-intro-facts-line {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  color: #666;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  line-height: 1.4;
}
.home-intro-facts-line strong { color: #111; font-weight: 800; }
.home-intro-facts-sep { color: #ccc; margin: 0 0.4rem; }

.home-intro-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #888;
}
.home-intro-stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}
.home-intro-stat-n {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
}


/* ============================================================
   HOMEPAGE BETA — spokojna warstwa redakcyjna
   ============================================================ */

/* Pierwszy ekran odpowiada kolejno: co to jest, po co i dokąd iść. */
.hero {
  padding: clamp(4.5rem, 8vw, 7rem) 0 3.25rem;
}

.hero-inner {
  max-width: 1080px;
  padding: 0 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}

.hero-eyebrow {
  margin: 0 0 1.35rem;
}

.hero-eyebrow-tag {
  color: rgba(255,255,255,0.72);
}

.hero-eyebrow-name {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.38);
}

.hero .hero-project-title {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.9rem, 6.3vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-transform: none;
  color: #f5f2ea;
}

.hero-definition {
  max-width: 700px;
  margin: 2.15rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 2.3vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.28;
  color: rgba(255,255,255,0.92);
}

.hero-purpose {
  max-width: 650px;
  margin: 0.85rem 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
}

.hero-progress-summary {
  max-width: 650px;
  margin-top: 2.35rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.hero-progress-summary .hero-count {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 0.8rem;
}

.hero-progress-summary .hero-count-ratio {
  line-height: 1;
}

.hero-progress-summary .hero-count-n {
  font-size: clamp(3rem, 6vw, 4.8rem);
  letter-spacing: -0.06em;
}

.hero-progress-summary .hero-count-slash {
  margin-left: 0.12em;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.hero-progress-summary .hero-count-d {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  color: rgba(255,255,255,0.48);
}

.hero-count-caption {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.hero-goal-progress {
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: rgba(255,255,255,0.13);
}

.hero-goal-progress span {
  display: block;
  height: 100%;
  background: #f5f2ea;
}

.hero-goal-note {
  margin: 0.6rem 0 0;
  font-size: 0.73rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.36);
}

.hero-goal-note strong { color: rgba(255,255,255,0.75); }

.hero-paths {
  max-width: 760px;
  margin-top: 2.65rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,0.18);
}

.hero-path {
  position: relative;
  min-width: 0;
  padding: 1rem 1rem 1rem 0;
  border-right: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

.hero-path + .hero-path { padding-left: 1rem; }
.hero-path:last-child { border-right: 0; }

.hero-path-index {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.28);
}

.hero-path strong {
  display: block;
  padding-right: 1.2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
}

.hero-path small {
  display: block;
  margin-top: 0.32rem;
  padding-right: 1rem;
  font-size: 0.65rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.38);
}

.hero-path-arrow {
  position: absolute;
  top: 2.6rem;
  right: 0.85rem;
  color: rgba(255,255,255,0.42);
  transition: transform 0.18s ease, color 0.18s ease;
}

.hero-path:hover strong { color: #fff; }
.hero-path:hover .hero-path-arrow { color: #fff; transform: translateX(3px); }

.hero-right {
  position: sticky;
  top: 1.5rem;
  padding-top: 2.2rem;
  align-items: stretch;
}

.hero-portrait {
  width: 100%;
  overflow: hidden;
  background: #222;
}

.hero-portrait img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.04);
}

.hero-portrait-caption {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
}

.hero-portrait-caption span {
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255,255,255,0.28);
}

#o-projekcie { scroll-margin-top: 2rem; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 210px; gap: 2.5rem; }
  .hero .hero-project-title { font-size: clamp(3.7rem, 9vw, 5.5rem); }
  .hero-paths { grid-template-columns: 1fr; }
  .hero-path { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-left: 0; }
  .hero-path + .hero-path { padding-left: 0; }
}

@media (max-width: 680px) {
  .hero { padding: 3.5rem 0 2.5rem; }
  .hero-inner { display: block; padding: 0 1.25rem; }
  .hero-right { display: none; }
  .hero .hero-project-title { font-size: clamp(2.7rem, 11.5vw, 3.25rem); }
  .hero-definition { margin-top: 1.75rem; font-size: 1.25rem; }
  .hero-purpose { font-size: 0.96rem; }
  .hero-progress-summary .hero-count { align-items: flex-end; flex-direction: column; gap: 0.45rem; }
  .hero-count-caption { align-self: flex-start; }
  .hero-paths { margin-top: 2.1rem; }
}

.story-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a5372f;
  margin: 0 0 1.25rem;
}

.home-story {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  border-bottom: 1px solid #deddd8;
}

.home-story-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: block;
}

.home-story-copy { max-width: none; }

.story-title,
.project-note-title,
.now-heading-title,
.archive-heading-title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.032em;
  text-wrap: balance;
  color: #171717;
}

.story-title {
  max-width: 840px;
  font-size: clamp(2.25rem, 4.4vw, 3.65rem);
  line-height: 1.02;
  margin: 0 0 2.25rem;
}

.story-prose {
  max-width: 780px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  line-height: 1.78;
  color: #4b4a46;
}

.story-prose p + p { margin-top: 1.15rem; }
.story-prose strong { color: #171717; font-weight: 700; }

.story-quote {
  max-width: 620px;
  margin: 2.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #cfcec8;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.45;
  color: #77746c;
}

.home-story-facts {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #cfcec8;
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(0, 4fr);
  gap: 2.5rem;
  align-items: end;
}

.home-story-season {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.15;
  color: #1d1d1d;
  margin-bottom: 0;
}

.home-story-season strong { font-size: 1.5em; }
.home-story-season span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #8b8982;
  letter-spacing: 0.04em;
}

.home-story-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

.home-story-stats div { min-width: 0; }
.home-story-stats dt {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #171717;
  font-variant-numeric: tabular-nums;
}
.home-story-stats dd {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: #8b8982;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-note {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background: #eae8e1;
  border-bottom: 1px solid #d8d5cd;
}

.project-note-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

.project-note-title {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
  margin: 0 0 2rem;
}

.project-note-prose {
  columns: 2;
  column-gap: 3rem;
  column-rule: 1px solid #d2cfc6;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.04rem;
  line-height: 1.75;
  color: #55524c;
}

.project-note-prose p {
  break-inside: avoid;
  margin: 0 0 1.1rem;
}

/* Ostatni i następny start: zdjęcia prowadzą, metryka jest spokojniejsza. */
.now-section { padding: clamp(4rem, 7vw, 6rem) 0; }
.now-inner { max-width: 1120px; padding: 0 2rem; }

.now-heading {
  max-width: 700px;
  margin: 0 0 2.75rem;
}

.now-heading-title {
  font-size: clamp(1.95rem, 3.8vw, 3.1rem);
  line-height: 1.06;
  margin: 0 0 1rem;
}

.now-heading-copy {
  max-width: 590px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #77746d;
}

.now-grid {
  gap: clamp(1.5rem, 3vw, 2.5rem);
  border: 0;
}

.now-col,
.now-col--right {
  border: 0;
  overflow: visible;
}

.now-col-label {
  padding: 0 0 0.75rem;
  color: #77746d;
}

.now-visual { aspect-ratio: 4 / 3; }
.now-visual--placeholder { background: #e7e5df; }
.now-visual--next { position: relative; }
.now-visual--next img { filter: saturate(0.88) contrast(1.02); }

.now-visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06) 20%, rgba(0,0,0,0.75) 100%);
}

.now-visual-countdown {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.now-data { padding: 1.15rem 0 0; }
.now-data-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Losowy kadr historyczny: duży obraz, bez banerowego kadrowania. */
.archive-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  line-height: 1.6;
  background: #171717;
}

.archive-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.archive-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.archive-heading .story-kicker { color: #d8786f; }
.archive-heading-title {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.04;
  color: #f5f2ea;
}

.archive-photo-link { display: block; }
.archive-photo {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  background: #0d0d0d;
}

.archive-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.archive-photo-link:hover .archive-photo img {
  transform: scale(1.015);
  filter: brightness(0.92);
}

.archive-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: flex;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
}

.archive-race {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.archive-meta { font-size: 0.72rem; }
.archive-open {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

@media (max-width: 760px) {
  .home-story { padding: 4rem 0; }
  .home-story-inner {
    padding: 0 1.25rem;
  }
  .story-title { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .story-prose { font-size: 1.04rem; line-height: 1.72; }
  .home-story-facts {
    margin: 2.75rem 0 0;
    padding: 1.75rem 0 0;
    border-top: 1px solid #cfcec8;
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .home-story-stats { grid-template-columns: 1fr 1fr; }

  .project-note-inner { padding: 0 1.25rem; }
  .project-note-prose {
    columns: 1;
    column-rule: 0;
    font-size: 1rem;
  }

  .now-inner { padding: 0 1.25rem; }
  .now-grid { gap: 3rem; }
  .now-col { border-bottom: 0; }
  .now-visual { aspect-ratio: 4 / 3; }

  .archive-inner { padding: 0 1.25rem; }
  .archive-photo { aspect-ratio: 4 / 3; }
  .archive-caption { align-items: flex-start; flex-direction: column; }
  .archive-open { margin-left: 0; }
}

/* ── SEZONY — spis treści osobistej kroniki ─────────────────────── */
.chapters-section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: #eae8e1;
  border-top: 1px solid #d8d5cd;
  border-bottom: 1px solid #d8d5cd;
}
.chapters-inner { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.chapters-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
}
.chapters-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.4vw, 3.55rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.032em;
  text-wrap: balance;
  color: #171717;
}
.chapters-intro {
  max-width: 430px;
  margin: 0 0 0.25rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #67645e;
}
.chapters-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #c8c5bc;
}
.chapter-row {
  display: grid;
  grid-template-columns: 3.5rem 7rem minmax(9rem, 1.2fr) minmax(7rem, 0.8fr) minmax(6rem, 0.7fr) 4.5rem;
  gap: 1rem;
  align-items: baseline;
  min-height: 4.45rem;
  padding: 1rem 0.75rem 1rem 0;
  border-bottom: 1px solid #d0cdc4;
  color: #242321;
  text-decoration: none;
  transition: color 0.16s ease, background 0.16s ease, padding 0.16s ease;
}
.chapter-row:hover { padding-left: 0.75rem; background: rgba(255,255,255,0.46); color: #a5372f; }
.chapter-row--current { background: #171717; color: #f4f1e9; border-bottom-color: #171717; }
.chapter-row--current:hover { background: #242424; color: #fff; }
.chapter-order,
.chapter-range,
.chapter-count,
.chapter-cities,
.chapter-mark {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.chapter-order { color: #9b978e; }
.chapter-year {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}
.chapter-range { color: #858179; }
.chapter-count { font-weight: 700; }
.chapter-cities { color: #77736c; }
.chapter-mark {
  justify-self: end;
  color: #a5372f;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chapter-row--current .chapter-order,
.chapter-row--current .chapter-range,
.chapter-row--current .chapter-cities { color: rgba(255,255,255,0.48); }
.chapter-row--current .chapter-mark { color: #e68b80; }
.chapters-all {
  display: inline-block;
  margin-top: 2rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #8d8980;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #171717;
  text-decoration: none;
}
.chapters-all:hover { color: #a5372f; border-color: #a5372f; }
.chapters-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.chapters-all--muted { color: #6f6b64; border-color: #b4b0a6; }

@media (max-width: 820px) {
  .chapters-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .chapters-intro { max-width: 620px; }
  .chapter-row { grid-template-columns: 2.5rem 5.5rem minmax(7rem, 1fr) minmax(5.5rem, 0.7fr) 3.5rem; }
  .chapter-cities { display: none; }
}
@media (max-width: 560px) {
  .chapters-inner { padding: 0 1.25rem; }
  .chapters-title { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .chapter-row {
    grid-template-columns: 2rem 4.6rem 1fr auto;
    gap: 0.65rem;
    min-height: 4rem;
    padding-right: 0.25rem;
  }
  .chapter-order { font-size: 0.58rem; }
  .chapter-year { font-size: 1.4rem; }
  .chapter-range { display: none; }
  .chapter-count { font-size: 0.64rem; }
  .chapter-mark { font-size: 0.58rem; }
}
