/* css/results.css, strona wyników badania POMOST */
/* ================================================================
   1. TOKENS (rozszerzenie style.css)
   ================================================================ */
:root {
  --acc-student:    #2a2a2a;
  --acc-architekt:  #c97f4a;
  --acc-teal:       #00E8C8;
  --box-bg:         #FCFAF6;
  --box-bg-dark:    #1a1a1a;
  --audit-fg:       rgba(26, 26, 26, 0.55);
  --box-radius:     4px;
  --box-pad:        clamp(32px, 5vw, 64px);
  --box-gap:        clamp(48px, 8vh, 144px);
  --nav-h:          64px;
}

/* Mobile: niższy nav (zmiana padding/min-height na <640px). Token używany
   przez scroll-margin-top kotwic, dzięki czemu pozostają zgrane z navem. */
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
}

/* ================================================================
   2. BODY + GLOBALS
   ================================================================ */
.results-page {
  background-color: #F8F4EE;
  background-image:
    linear-gradient(rgba(28, 23, 16, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 23, 16, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(28, 23, 16, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 23, 16, 0.11) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px, 110px 110px, 110px 110px;
  background-attachment: fixed;
  color: var(--ink, #1a1a1a);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  .results-page { scroll-behavior: auto; }
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--acc-teal);
  color: #000;
  z-index: 1000;
}

/* ================================================================
   3. STICKY NAV
   Trzykolumnowy grid: brand (lewa) | chapters (srodek) | back-link (prawa).
   Per-chapter accent przez CSS variables, progress bar zmienia kolor
   zgodnie z aktywnym rozdzialem (przez :has()).
   ================================================================ */
.results-nav {
  /* Lokalne mapowanie kolorow rozdzialow do nawigacji.
     Bazowe (jasne tlo) — ciemniejsze warianty zapewniaja kontrast >=4.5:1
     na kremie F8F4EE. is-on-dark — jasniejsze warianty na ciemnym tle. */
  --nav-c1: #1C1710;   /* Studenci, ciemny grafit (~18:1 AAA) */
  --nav-c2: #9C5D2F;   /* Architekci, ciemna rdza (~5.7:1 AA) */
  --nav-c3: #0A7D6A;   /* Podsumowanie, ciemny turkus (~5.0:1 AA) */

  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px 32px;
  min-height: var(--nav-h);
  background: rgba(248, 244, 238, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(28, 23, 16, 0.07);
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease;
}

.results-nav.is-on-dark {
  --nav-c1: #E8E5DD;
  --nav-c2: #E89E68;
  --nav-c3: #00E8C8;

  background: rgba(20, 18, 14, 0.86);
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* --- Lewa kolumna: brand --- */
.results-nav-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
  line-height: 0;
  padding: 6px 8px;
  border-radius: 4px;
  transition: opacity 200ms ease;
}
.results-nav-brand:hover { opacity: 0.7; }
.results-nav-brand:focus-visible {
  outline: 2px solid var(--acc-teal);
  outline-offset: 3px;
}
.results-nav-brand .pomost-logo {
  width: 110px;
  transition: filter 240ms ease;
}
.results-nav.is-on-dark .pomost-logo {
  filter: invert(1) brightness(1.05);
}

/* --- Srodek: chapters (przyciski w segmented-pill) --- */
.results-nav-chapters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  list-style: none;
  margin: 0;
  justify-self: center;
  border-radius: 999px;
  background: rgba(28, 23, 16, 0.045);
  border: 1px solid rgba(28, 23, 16, 0.06);
  transition: background 240ms ease, border-color 240ms ease;
}
.results-nav.is-on-dark .results-nav-chapters {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.results-nav-chapters li { display: inline-flex; }

/* Per-chapter accent — local CSS variable propagated do dziecka */
.results-nav-chapters a[data-chapter="1"] { --chapter-accent: var(--nav-c1); }
.results-nav-chapters a[data-chapter="2"] { --chapter-accent: var(--nav-c2); }
.results-nav-chapters a[data-chapter="3"] { --chapter-accent: var(--nav-c3); }

.results-nav-chapters a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  min-height: 40px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    opacity 240ms ease,
    transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Numer rzymski — zawsze w kolorze sekcji (subtelny indykator nawet bez stanu active) */
.nav-chapter-num {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--chapter-accent);
  opacity: 0.78;
  transition: opacity 240ms ease, transform 240ms ease;
  font-variant-numeric: tabular-nums;
  align-self: center;
}

.nav-chapter-label {
  font-weight: 500;
  align-self: center;
}

/* Hover — pill w kolorze sekcji (subtle alpha tint), pelna nieprzezroczystosc */
.results-nav-chapters a:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--chapter-accent) 10%, transparent);
}
.results-nav-chapters a:hover .nav-chapter-num {
  opacity: 1;
}

/* Active — solidny accent jako kolor tekstu, mocniejsze tlo, weight 600 */
.results-nav-chapters a.is-active {
  opacity: 1;
  font-weight: 600;
  color: var(--chapter-accent);
  background: color-mix(in srgb, var(--chapter-accent) 14%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--chapter-accent) 22%, transparent);
}
.results-nav-chapters a.is-active .nav-chapter-num {
  opacity: 1;
  transform: scale(1.08);
}

/* Focus — wyrazny ring w kolorze sekcji */
.results-nav-chapters a:focus-visible {
  outline: 2px solid var(--chapter-accent);
  outline-offset: 2px;
}

/* Press feedback — drobne scale */
.results-nav-chapters a:active {
  transform: scale(0.97);
}

/* --- Prawa kolumna: back link (balans + funkcjonalnosc) --- */
.results-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 999px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.6;
  border: 1px solid rgba(28, 23, 16, 0.08);
  background: transparent;
  transition:
    opacity 240ms ease,
    background 240ms ease,
    border-color 240ms ease,
    transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.results-nav.is-on-dark .results-nav-back {
  border-color: rgba(255, 255, 255, 0.12);
}
.results-nav-back:hover {
  opacity: 1;
  background: rgba(28, 23, 16, 0.05);
  border-color: rgba(28, 23, 16, 0.18);
}
.results-nav.is-on-dark .results-nav-back:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.results-nav-back:focus-visible {
  outline: 2px solid var(--acc-teal);
  outline-offset: 2px;
  opacity: 1;
}
.results-nav-back:active { transform: scale(0.97); }
.results-nav-back-icon {
  flex-shrink: 0;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.results-nav-back:hover .results-nav-back-icon {
  transform: translateX(-2px);
}

/* --- Progress bar — kolor odpowiada aktualnemu rozdzialowi --- */
.results-nav-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(28, 23, 16, 0.05);
}
.results-nav.is-on-dark .results-nav-progress {
  background: rgba(255, 255, 255, 0.08);
}
.results-nav-progress-fill {
  height: 100%;
  width: 0;
  background: var(--nav-c3);
  transition: width 100ms linear, background 320ms ease;
}
/* Dynamiczny kolor paska zgodny z widoczna sekcja.
   :has() w nowoczesnych przegladarkach (Chrome 105+, FF 121+, Safari 15.4+) */
.results-nav:has(a[data-chapter="1"].is-active) .results-nav-progress-fill {
  background: var(--nav-c1);
}
.results-nav:has(a[data-chapter="2"].is-active) .results-nav-progress-fill {
  background: var(--nav-c2);
}
.results-nav:has(a[data-chapter="3"].is-active) .results-nav-progress-fill {
  background: var(--nav-c3);
}

@media (prefers-reduced-motion: reduce) {
  .results-nav,
  .results-nav-chapters a,
  .results-nav-back,
  .results-nav-back-icon,
  .nav-chapter-num,
  .results-nav-progress-fill,
  .results-nav-brand {
    transition: none !important;
  }
}

/* --- Tablet: mid breakpoint (< 1024px), back-link bez etykiety --- */
@media (max-width: 1023px) {
  .results-nav { gap: 16px; padding: 10px 24px; }
  .results-nav-back-label { display: none; }
  .results-nav-back {
    padding: 8px;
    width: 44px;
    height: 44px;
    justify-content: center;
    letter-spacing: 0;
  }
}

/* --- Mobile: brand + chapters compact, back-link icon-only --- */
@media (max-width: 640px) {
  .results-nav {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 10px 14px;
  }
  .results-nav-brand .pomost-logo {
    width: 84px;
  }
  .results-nav-chapters {
    gap: 2px;
    padding: 3px;
  }
  .results-nav-chapters a {
    padding: 11px 12px;
    min-height: 44px;
    font-size: 12px;
    gap: 6px;
  }
  /* W bardzo waskich nagrywaniach pokazujemy tylko numery rzymskie */
  .nav-chapter-label {
    display: none;
  }
  .nav-chapter-num {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}

/* --- Bardzo wąskie (<380px): zachowaj dotyk, brand minimalny --- */
@media (max-width: 380px) {
  .results-nav { padding: 10px 10px; }
  .results-nav-brand .pomost-logo { width: 70px; }
  .results-nav-chapters a { padding: 11px 8px; }
}

/* ================================================================
   4. MAIN + BOX BASE
   ================================================================ */
.results-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--box-gap) 32px;
}

.box {
  position: relative;
  padding: var(--box-pad);
  margin-bottom: var(--box-gap);
  background: #FFFCF7;
  border-radius: var(--box-radius);
  border: 1px solid rgba(28, 23, 16, 0.08);
  box-shadow: 0 2px 24px rgba(28, 23, 16, 0.04);
  scroll-margin-top: calc(var(--nav-h) + 16px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.anchor { scroll-margin-top: calc(var(--nav-h) + 16px); display: block; }
.box.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .box {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.box-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--audit-fg);
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.box-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
  opacity: 0.6;
}

.box-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 20px 0;
}

/* Logo POMOST inline w tytule - zastepuje slowo "POMOST" optycznie */
.box-title-logo {
  display: inline-block;
  height: 0.72em;
  width: auto;
  vertical-align: -0.06em;
  margin-left: 0.18em;
}

.box-conclusion {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.78);
  border-left: 2px solid var(--acc-teal);
  padding-left: 24px;
  margin: 40px 0 0 0;
  text-align: left;
}

/* Pasek conclusion w kolorze sekcji (chapter accent) */
.box[data-chapter="1"]:not(.box--break) .box-conclusion {
  border-left-color: rgba(26, 26, 26, 0.55);
}
.box[data-chapter="2"]:not(.box--break) .box-conclusion {
  border-left-color: var(--acc-architekt);
}
/* chapter 3 (Podsumowanie) zostaje teal - akcent rozdzialu = teal */

/* ================================================================
   5. STOPKA AUDYTU (ukryta domyślnie, fade-in na hover/focus)
   ================================================================ */
.box-audit {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.4;
  color: var(--audit-fg);
  margin: 24px 0 0 0;
  padding: 12px 0 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.box:hover .box-audit,
.box:focus-within .box-audit {
  opacity: 1;
}
@media (max-width: 768px) {
  .box-audit { opacity: 0.5; }
}

/* ================================================================
   5b. WYRÓŻNIENIE BOXÓW WG CHAPTERA
   - Chapter 1 (Studenci): grafit
   - Chapter 2 (Architekci): pomarańczowy
   - Chapter 3 (Podsumowanie): teal
   Dla zwykłych jasnych boxów: lewy pasek (inset shadow) + barwny eyebrow.
   .box--hero i .box--break mają własny styl, pomijamy.
   ================================================================ */
.box[data-chapter="1"]:not(.box--hero):not(.box--break),
.box[data-chapter="2"]:not(.box--hero):not(.box--break),
.box[data-chapter="3"]:not(.box--hero):not(.box--break) {
  border-left-width: 5px;
  border-left-style: solid;
}
.box[data-chapter="1"]:not(.box--hero):not(.box--break) {
  border-left-color: rgba(26, 26, 26, 0.75);
}
.box[data-chapter="1"]:not(.box--hero):not(.box--break) .box-eyebrow {
  color: rgba(26, 26, 26, 0.78);
}

.box[data-chapter="2"]:not(.box--hero):not(.box--break) {
  border-left-color: var(--acc-architekt);
}
.box[data-chapter="2"]:not(.box--hero):not(.box--break) .box-eyebrow {
  color: var(--acc-architekt);
}

.box[data-chapter="3"]:not(.box--hero):not(.box--break) {
  border-left-color: var(--acc-teal);
}
.box[data-chapter="3"]:not(.box--hero):not(.box--break) .box-eyebrow {
  color: #008873; /* teal contrast, czytelne na jasnym tle */
}

/* Box--break (ciemne tło), zachowujemy oryginalny brak ramki, ale
   dodajemy cienki barwny pasek po lewej dla zachowania spójności. */
.box--break[data-chapter="2"] {
  border-left: 5px solid var(--acc-architekt);
}
.box--break[data-chapter="3"] {
  border-left: 5px solid var(--acc-teal);
}

/* W .box--break (ciemne tło), eyebrow z teal akcentem (Podsumowanie) lub
   pomarańczowym (Architekci q3). Override poniżej dziedziczonych stylów. */
.box--break[data-chapter="2"] .box-eyebrow {
  color: var(--acc-architekt);
}
.box--break[data-chapter="3"] .box-eyebrow {
  color: var(--acc-teal);
}

/* ================================================================
   6. WARIANTY BOXA
   ================================================================ */

/* 6.1. Box-hero (specjalny, pierwszy box) */
.box--hero {
  text-align: center;
  padding: clamp(64px, 10vh, 120px) var(--box-pad);
}
.box--hero .box-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-bottom: 24px;
}
.box--hero .box-subtitle {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: rgba(26, 26, 26, 0.7);
  margin: 0 auto 64px auto;
  max-width: 640px;
}

.box-stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 96px);
  flex-wrap: wrap;
  margin: 48px 0 0 0;
}
/* Bardzo wąskie ekrany: dwie statystyki obok siebie, równomiernie
   wycentrowane w swoich kolumnach. Wariant --main (jedna duża liczba) zostaje
   pojedynczym elementem flex z centrowaniem. */
@media (max-width: 480px) {
  .box-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    justify-items: center;
  }
  .box-stats-row--main {
    display: flex;
    justify-content: center;
  }
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1;
  color: var(--ink, #1a1a1a);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgba(26, 26, 26, 0.65);
  letter-spacing: 0.02em;
  text-align: center;
}

/* Wariant "main" (hero) — wielka liczba sumaryczna n=93 (85 studentów + 8 architektów). */
.stat--main .stat-num {
  font-size: clamp(5rem, 11vw, 9rem);
}
.stat--main .stat-label {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.55);
  margin-top: 4px;
}
/* Wariant "small" (breakdown pod main) — mniejsze liczby studentów / architektów. */
.stat--small .stat-num {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: rgba(26, 26, 26, 0.85);
}
.stat--small .stat-label {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.55);
}
/* Rzędy stats w hero: main zachowuje górny margin, breakdown zwiera się ciaśniej. */
.box-stats-row--main { margin-top: 56px; }
.box-stats-row--breakdown {
  margin-top: 28px;
  gap: clamp(40px, 7vw, 80px);
}

/* 6.2. Box--hak (pojedyncza wielka liczba) */
.box--hak {
  text-align: center;
}
.hak-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(5rem, 11vw, 11rem);
  line-height: 1;
  color: var(--ink, #1a1a1a);
  margin: 24px 0;
}
.hak-num.hak-num--accent {
  color: var(--kc-text);
}
.hak-desc {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  max-width: 540px;
  margin: 0 auto;
}

/* 6.3. Box--wykres (kontener na bary/donuty/ApexCharts) */
.box--wykres .chart-container {
  margin: 32px 0;
  min-height: 100px;
}
/* Donut, niezależnie od kontekstu wycentrowany w swojej kolumnie.
   Wyższa specyficzność niż .box--wykres .chart-container przez .donut. */
.box--wykres .chart-container.donut,
.kontrast-col .chart-container.donut,
.kontrast-col > .donut {
  margin-left: auto;
  margin-right: auto;
}
.kontrast-col {
  /* Donuty mają width:220px i muszą się centrować, zapewniamy minimalny align. */
  display: flex;
  flex-direction: column;
  position: relative;
}
.kontrast-col > h3,
.kontrast-col > p,
.kontrast-col > ul {
  /* tekst pozostaje wyrównany do lewej */
  align-self: stretch;
}
.kontrast-col > .chart-container,
.kontrast-col > .donut,
.kontrast-col > .rating-1to5 {
  align-self: center;
}

/* Tokeny koloru rozdziału dla paneli kontrastowych.
   Każdy rozdział (data-chapter) eksponuje swój akcent jako triplet RGB,
   dzięki czemu panele używają tej samej palety co eyebrow / border-left
   boxa, tylko z różną intensywnością alpha. */
.box {
  /* fallback: ink (chapter 1 + chapter 0) */
  --kc-r: 26; --kc-g: 26; --kc-b: 26;
  --kc-text: var(--acc-student);
}
.box[data-chapter="2"] {
  --kc-r: 201; --kc-g: 127; --kc-b: 74;
  --kc-text: var(--acc-architekt);
}
.box[data-chapter="3"] {
  --kc-r: 0; --kc-g: 232; --kc-b: 200;
  --kc-text: #007e6a; /* głębsza wersja teal — kontrast >=4.5:1 na jasnym panelu */
}

/* Panel-card: aktywny tylko dla kolumn porównawczych z treścią
   (kontrast-col--a/--b oraz wszystkie kolumny w wariancie 3-col).
   Czyste donutowe porównania Yes/No (Q4, Q5) zostają bez panelu —
   same wykresy nadają im już wystarczającą strukturę. */
.kontrast-col--a,
.kontrast-col--b,
.kontrast-grid--3col > .kontrast-col {
  padding: clamp(20px, 2.4vw, 32px);
  background: rgba(var(--kc-r), var(--kc-g), var(--kc-b), 0.05);
  border: 1px solid rgba(var(--kc-r), var(--kc-g), var(--kc-b), 0.15);
  border-top: 3px solid rgba(var(--kc-r), var(--kc-g), var(--kc-b), 0.55);
  border-radius: var(--box-radius);
  /* min-width:0 łamie domyślne min-content grid-itemów. Bez tego
     inline-flex content (np. rating-1to5 w box-23) rozciągał kolumnę
     poza track 1fr, powodując overflow boxa. */
  min-width: 0;
}
@media (max-width: 640px) {
  .kontrast-col--a,
  .kontrast-col--b,
  .kontrast-grid--3col > .kontrast-col {
    padding: 20px;
  }
}

/* 6.4. Box--cytat */
.box--cytat .quote-mark {
  font-family: 'Syne', sans-serif;
  font-size: 6rem;
  line-height: 0.8;
  color: var(--acc-teal);
  margin: 0 0 -16px 0;
  display: block;
}
.box--cytat .quote-synteza {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.45;
  margin: 0 0 24px 0;
}
.box--cytat .quote-fragments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 24px 0 0 0;
}
.box--cytat .frag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 232, 200, 0.12);
  color: rgba(26, 26, 26, 0.85);
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 13px;
  font-style: italic;
}

/* 6.5. .kontrast-grid (dwie kolumny), uniwersalne; używane też w --wykres / --cytat */
.kontrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin: 32px 0;
}
@media (max-width: 640px) {
  .kontrast-grid { grid-template-columns: 1fr; }
}

/* 3-kolumnowy wariant — używany dla 3 donutów / 3 kategorii.
   Zwija się do 1 kolumny wcześniej niż wariant 2-kolumnowy (768 vs 640),
   bo 3 donuty ~180px nie mieszczą się w wąskim tablecie. */
.kontrast-grid--3col { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 768px) {
  .kontrast-grid--3col { grid-template-columns: 1fr; }
}

.kontrast-col h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px 0;
  /* Kropka-wskaźnik przed nagłówkiem (kolor + glif, nie sam kolor —
     spełnia regułę WCAG color-not-only i wzmacnia hierarchię). */
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--kc-text);
}
.kontrast-col h3::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

/* Wariant 2-kolumnowy: A vs B. Obie kolumny tintowane akcentem
   rozdziału — różnicowane przez intensywność (alpha). A = jaśniejszy,
   bardziej "deklaratywny / pozytywny", B = mocniejszy, bardziej
   "realny / cięższy". Dzięki kc-r/g/b automatycznie dopasowują się
   do palety rozdziału. */
.kontrast-col--a {
  background: rgba(var(--kc-r), var(--kc-g), var(--kc-b), 0.04);
  border-top-color: rgba(var(--kc-r), var(--kc-g), var(--kc-b), 0.45);
}
.kontrast-col--b {
  background: rgba(var(--kc-r), var(--kc-g), var(--kc-b), 0.11);
  border-top-color: rgba(var(--kc-r), var(--kc-g), var(--kc-b), 0.95);
}

/* Wariant 3-kolumnowy — wszystkie panele jednolicie w akcencie rozdziału
   (np. Q17 studenci → grafit, Q23 architekci → rust). Odróżnienie A/B/C
   pochodzi z prefiksu literowego w treści nagłówka. */
.kontrast-grid--3col > .kontrast-col {
  background: rgba(var(--kc-r), var(--kc-g), var(--kc-b), 0.06);
  border-top-color: rgba(var(--kc-r), var(--kc-g), var(--kc-b), 0.7);
}

/* W panelach syntetyczny cytat (quote-synteza) i listy cytatów potrzebują
   nieco mniejszego top-marginu — panel sam już zapewnia oddzielenie. */
.kontrast-col .quote-synteza {
  margin: 0 0 16px 0;
}

/* 6.6. Box--zestawienie (tabela porównawcza) */
.zestawienie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
}
.zestawienie-table th,
.zestawienie-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}
.zestawienie-table th {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--audit-fg);
}
.zestawienie-table .col-watek { font-weight: 500; width: 24%; }
.zestawienie-table .col-studenci { color: var(--acc-student); width: 38%; }
.zestawienie-table .col-architekci { color: var(--acc-architekt); width: 38%; }

/* Mobile: tabela jako stacked rows.
   Trzy wąskie kolumny <375px są nieczytelne — każdy wiersz staje się "kartą".
   Etykieta nagłówka pojawia się jako mała wskazówka przed wartością. */
@media (max-width: 640px) {
  .zestawienie-table { font-size: 15px; }
  .zestawienie-table thead { display: none; }
  .zestawienie-table tr {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  .zestawienie-table tr:last-child { border-bottom: 0; }
  .zestawienie-table td {
    display: block;
    border: 0;
    padding: 4px 0;
    width: auto !important;
  }
  .zestawienie-table .col-watek {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.65;
    margin-bottom: 6px;
  }
  /* W ciemnym box--break separator i etykieta wątku muszą zostać widoczne. */
  .box--break .zestawienie-table tr {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
  .box--break .zestawienie-table .col-watek {
    color: rgba(255, 255, 255, 0.55);
    opacity: 1;
  }
}

/* 6.6b. Wspólne komponenty list używane w wielu boxach.
   Wyciągnięte z inline'ów dla jednolitości i responsywności. */

/* Lista cytatów oryginalnych (italic Crimson Pro) — używana w boxach
   z pytaniami otwartymi (Q10, Q15, Q17 studenci; Q7, Q8 architekci). */
.cytat-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.85);
  font-size: clamp(14px, 1.5vw, 15px);
}
.cytat-list li {
  margin-bottom: 6px;
}

/* Numerowana lista argumentów z dużą cyfrą po lewej (box-29: 3 powody
   dlaczego obowiązkowe wynagrodzenie nie wystarczy). Wcześniej inline'y. */
.box-arg-list {
  list-style: none;
  padding: 0;
  counter-reset: arg;
  margin: 32px 0;
}
.box-arg-list li {
  counter-increment: arg;
  margin-bottom: 24px;
  padding-left: 52px;
  position: relative;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
}
.box-arg-list li:last-child {
  margin-bottom: 0;
}
.box-arg-list .arg-num {
  position: absolute;
  left: 0;
  top: 0.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--acc-teal);
  border: 1.5px solid rgba(0, 232, 200, 0.55);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .box-arg-list li { padding-left: 44px; margin-bottom: 20px; }
  .box-arg-list .arg-num { width: 28px; height: 28px; font-size: 13px; }
}

/* 6.7. Box--break (full-bleed, ciemny, kulminacja)
   Full-bleed bez transform/left, niezawodna metoda margin-based:
   margin-left/right = calc(50% - 50vw) rozszerza element symetrycznie
   poza padding rodzica do krawędzi viewportu, niezależnie od scrollbara. */
.box--break {
  width: auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: var(--box-gap);
  margin-bottom: var(--box-gap);
  background: var(--box-bg-dark);
  color: #fff;
  padding: clamp(80px, 15vh, 160px) var(--box-pad);
  border-radius: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  box-sizing: border-box;
}
.box--break .box-eyebrow {
  color: rgba(255, 255, 255, 0.55);
}
.box--break .box-title,
.box--break h2 {
  color: #fff;
}
.box--break .hak-num {
  color: var(--acc-teal);
  font-size: clamp(7rem, 15vw, 14rem);
}
.box--break .box-conclusion {
  color: rgba(255, 255, 255, 0.85);
  border-left-color: var(--acc-teal);
}
.box--break .box-audit {
  color: rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Tabela porównawcza na ciemnym tle (.box--break), wymuszamy jasne kolory.
   Bez tego override .col-studenci dziedziczy var(--acc-student) (#2a2a2a) i
   znika na czarnym tle. */
.box--break .zestawienie-table th,
.box--break .zestawienie-table td {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}
.box--break .zestawienie-table th {
  color: rgba(255, 255, 255, 0.55);
}
.box--break .zestawienie-table .col-watek,
.box--break .zestawienie-table .col-studenci {
  color: rgba(255, 255, 255, 0.92);
}
.box--break .zestawienie-table .col-architekci {
  color: var(--acc-architekt);
}
.box--break .zestawienie-table .col-studenci strong {
  color: #ffffff;
  font-weight: 700;
}
.box--break .zestawienie-table .col-architekci strong {
  color: var(--acc-architekt);
  font-weight: 700;
}
.box--break .zestawienie-table .col-studenci span,
.box--break .zestawienie-table .col-architekci span {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* ================================================================
   8. RESULTS DARK ZONE — całe Część III na ciemnym tle.
   Strefa rozciąga się full-bleed (poza max-width .results-main),
   a każdy box w środku staje się "podniesioną" kartą o powierzchni
   nieco jaśniejszej niż tło strefy (zasada elevation w dark mode:
   wyższy poziom = jaśniejsza powierzchnia, nie cień).
   ================================================================ */
.results-dark-zone {
  /* Full-bleed: rozszerzamy poza max-width: 1240px rodzica
     symetrycznie do krawędzi viewportu. */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: var(--box-gap);
  margin-bottom: calc(var(--box-gap) * -1); /* schowaj pod stopkę */
  background: var(--box-bg-dark);
  color: rgba(255, 255, 255, 0.85);
  /* Wewnętrzny "container" — zawartość ograniczona do tej samej
     szerokości co reszta raportu (~1240px), z paddingiem 32px. */
  padding: clamp(80px, 12vh, 140px) max(32px, calc(50vw - 620px));
  position: relative;
}

/* Kotwica scroll: anchor wewnątrz strefy zachowuje scroll-margin-top. */
.results-dark-zone .anchor {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* Box w strefie ciemnej — "elevated card" (lekko jaśniejsza niż tło). */
.results-dark-zone .box {
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left-width: 5px;
  border-left-style: solid;
  border-left-color: var(--acc-teal); /* akcent rozdziału 3 = teal */
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.85);
}

/* Eyebrow w teal — chapter 3 to teal accent. */
.results-dark-zone .box .box-eyebrow {
  color: var(--acc-teal);
}

/* Tytuły jaśniejsze (≥4.5:1 na #202020). */
.results-dark-zone .box .box-title,
.results-dark-zone .box h2,
.results-dark-zone .box h3 {
  color: #fff;
}

/* Konkluzja — italic Crimson Pro, jaśniejsza wersja na ciemnym tle. */
.results-dark-zone .box .box-conclusion {
  color: rgba(255, 255, 255, 0.85);
  border-left-color: var(--acc-teal);
}

/* Stopka audytu na ciemnym — jasny separator + jasniejszy tekst. */
.results-dark-zone .box .box-audit {
  color: rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Tabele zestawienia (box-27, box-32) — jasny tekst, jasne separatory.
   Reguły wzorowane na .box--break .zestawienie-table, ale niezależne. */
.results-dark-zone .zestawienie-table th,
.results-dark-zone .zestawienie-table td {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}
.results-dark-zone .zestawienie-table th {
  color: rgba(255, 255, 255, 0.55);
}
.results-dark-zone .zestawienie-table .col-watek,
.results-dark-zone .zestawienie-table .col-studenci {
  color: rgba(255, 255, 255, 0.92);
}
.results-dark-zone .zestawienie-table .col-architekci {
  color: var(--acc-architekt);
}
.results-dark-zone .zestawienie-table .col-studenci strong {
  color: #fff;
  font-weight: 700;
}
.results-dark-zone .zestawienie-table .col-architekci strong {
  color: var(--acc-architekt);
  font-weight: 700;
}

/* Panele kontrastowe (box-28) — chapter 3 = teal, ale na ciemnym tle
   potrzebują mocniejszej wyrazistości. A = neutralny "white-on-dark",
   B = teal-tinted (model operacyjny). */
.results-dark-zone .kontrast-col--a {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.5);
}
.results-dark-zone .kontrast-col--b {
  background: rgba(0, 232, 200, 0.07);
  border-color: rgba(0, 232, 200, 0.2);
  border-top-color: var(--acc-teal);
}
.results-dark-zone .kontrast-grid--3col > .kontrast-col {
  background: rgba(0, 232, 200, 0.06);
  border-color: rgba(0, 232, 200, 0.18);
  border-top-color: var(--acc-teal);
}
.results-dark-zone .kontrast-col h3 {
  color: var(--acc-teal);
}
.results-dark-zone .kontrast-col--a h3 {
  color: rgba(255, 255, 255, 0.92);
}
.results-dark-zone .kontrast-col--b h3 {
  color: var(--acc-teal);
}

/* arg-num (numer 1/2/3) zostaje teal — czytelny na ciemnym. */
.results-dark-zone .box-arg-list strong {
  color: #fff;
}

/* Mobile: zmniejszony padding strefy (już mamy max(32px, ...)). */
@media (max-width: 640px) {
  .results-dark-zone {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

.box-break-haks {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vh, 64px);
  list-style: none;
  margin: 48px auto 0 auto;
  padding: 0;
  max-width: 720px;
}
.box-break-haks li {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 40px);
  text-align: left;
}
.box-break-haks .hak-num {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  min-width: 4ch;
  line-height: 1;
}
@media (max-width: 640px) {
  .box-break-haks li {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .box-break-haks .hak-num {
    font-size: clamp(3rem, 14vw, 5rem);
  }
}
.box-break-haks .hak-desc {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ================================================================
   7. ATOMY: bar-row + donut + rating
   ================================================================ */

/* 7.1. Bar-row (poziomy słupek)
   Layout: rank · label ........... pct
           [------- track -------]
*/
.bars-chart {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0;
}
.bar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 8px;
}
.bar-row__rank {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(26, 26, 26, 0.35);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}
.bar-row__label {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(26, 26, 26, 0.92);
}
.bar-row__pct {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--acc-student);
  min-width: 4ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bar-row__track {
  grid-column: 2 / -1;
  height: 14px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}
.bar-row__track::after {
  /* subtelna linia siatki na 50% i 100% */
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(0,0,0,0.06) 50%, transparent calc(50% + 0.5px));
  pointer-events: none;
}
.bar-row__fill {
  height: 100%;
  width: 0;
  min-width: 0;
  background: var(--acc-student);
  border-radius: 7px;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
  position: relative;
  z-index: 1;
}
.box.is-revealed .bar-row__fill {
  width: max(var(--pct, 0%), 4px);
}
@media (prefers-reduced-motion: reduce) {
  .bar-row__fill { transition: none; }
}

/* Akcenty kolorystyczne wg pochodzenia danych */
.bar-row--architekt .bar-row__fill { background: var(--acc-architekt); }
.bar-row--architekt .bar-row__pct { color: var(--acc-architekt); }

.bar-row--student .bar-row__fill { background: var(--acc-student); }
.bar-row--student .bar-row__pct { color: var(--acc-student); }

/* Pierwsza pozycja bez specjalnego wyrózniena - wszystkie wiersze równe */

/* Mobile: pasek 12px, label mniejszy */
@media (max-width: 640px) {
  .bars-chart { gap: 14px; }
  .bar-row { column-gap: 10px; }
  .bar-row__label { font-size: 14px; }
  .bar-row__pct { font-size: 17px; }
  .bar-row__track { height: 12px; }
}

/* 7.2. Donut (yes/no), większy, mocniejszy stroke, semantyczne kolory.
   Layout: .donut to flex-kolumna (.donut__chart na górze + .donut__label
   pod spodem). Etykieta wyrwana z wnętrza pierścienia, w ringu zostaje
   tylko procent — czytelność znacznie wyższa, etykieta nie obcięta przez
   średnicę donuta. */
.donut {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  margin: 24px auto;
}
.donut__chart {
  position: relative;
  width: 220px;
  height: 220px;
  flex: 0 0 auto;
}
.donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  display: block;
}
.donut svg circle.donut__track {
  fill: none;
  stroke: rgba(0, 0, 0, 0.07);
  stroke-width: 14;
}
.donut svg circle.donut__fill {
  fill: none;
  stroke: var(--acc-student);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: var(--circumference, 527.78);
  stroke-dashoffset: var(--circumference, 527.78);
  transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.box.is-revealed .donut svg circle.donut__fill {
  stroke-dashoffset: var(--target-offset, 0);
}
@media (prefers-reduced-motion: reduce) {
  .donut svg circle.donut__fill { transition: none; }
}

/* Warianty: primary (Tak, kolor akcent), muted (Nie, kontrastowy szary), neutral */
.donut--muted svg circle.donut__fill { stroke: rgba(26, 26, 26, 0.55); }
.donut--neutral svg circle.donut__fill { stroke: var(--acc-architekt); }

.donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
}
.donut__pct {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink, #1a1a1a);
  font-variant-numeric: tabular-nums;
}
.donut--muted .donut__pct { color: rgba(26, 26, 26, 0.7); }
.donut__label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.85);
  margin-top: 18px;
  max-width: 24ch;
  line-height: 1.25;
  text-align: center;
}

/* Box-break (ciemne tło), donuty inwersyjnie */
.box--break .donut svg circle.donut__track { stroke: rgba(255, 255, 255, 0.12); }
.box--break .donut svg circle.donut__fill { stroke: var(--acc-teal); }
.box--break .donut__pct { color: #fff; }
.box--break .donut__label { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 640px) {
  .donut { width: 180px; }
  .donut__chart { width: 180px; height: 180px; }
  .donut__pct { font-size: 2.1rem; }
  .donut__label { font-size: 15px; margin-top: 14px; }
}

/* 7.3. Rating 1-5 (kropki), większe, dominujące, semantyczne */
.rating-1to5 {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  padding: 4px 0;
}
.rating-1to5__dots {
  display: flex;
  gap: 10px;
}
.rating-1to5__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) var(--reveal-delay, 0ms),
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) var(--reveal-delay, 0ms);
}
.box.is-revealed .rating-1to5__dot {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .rating-1to5__dot { opacity: 1; transform: none; transition: none; }
}
.rating-1to5__dot.is-filled {
  background: var(--acc-architekt);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.rating-1to5__dot.is-half {
  background: linear-gradient(90deg, var(--acc-architekt) 50%, rgba(0, 0, 0, 0.08) 50%);
}
.rating-1to5__value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink, #1a1a1a);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.rating-1to5__num {
  color: var(--acc-architekt);
}
.rating-1to5__scale {
  font-size: 16px;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.45);
  margin-left: 2px;
}

@media (max-width: 640px) {
  .rating-1to5 { gap: 14px; }
  .rating-1to5__dots { gap: 8px; }
  .rating-1to5__dot { width: 24px; height: 24px; }
  .rating-1to5__value { font-size: 22px; }
}

/* 7.4. ApexCharts override + niestandardowy tooltip */
.apexcharts-tooltip {
  font-family: 'Outfit', sans-serif !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.apexcharts-tooltip-title {
  display: none !important;
}
.apex-tip {
  background: #FFFCF7;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 10px 14px;
  font-family: 'Outfit', sans-serif;
  min-width: 140px;
}
.apex-tip__label {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.6);
  margin-bottom: 4px;
  line-height: 1.3;
}
.apex-tip__value {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.apexcharts-datalabel,
.apexcharts-data-labels text {
  font-family: 'Syne', sans-serif !important;
  font-weight: 700 !important;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.apexcharts-xaxis-title text,
.apexcharts-yaxis-title text {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
}
.apexcharts-yaxis-texts-g text,
.apexcharts-xaxis-texts-g text {
  font-family: 'Outfit', sans-serif !important;
}

/* Container wrapper zapewniający, że wykres ma marginesy */
.box--wykres .chart-container {
  /* ApexCharts mountuje SVG bezpośrednio, daj mu oddech */
  overflow: visible;
}
.bars-chart {
  margin: 8px 0;
}

/* ================================================================
   9. KOLUMNA NEUTRALNA ("Trudno powiedzieć") - mniejsza, wyszarzona
   Trzecia kolumna w trzy-kolumnowych donutach (Q6, Q7) z odpowiedzia
   "Trudno powiedziec" - drugorzedna, nie konkuruje wizualnie z TAK/NIE.
   ================================================================ */
.kontrast-col--neutral {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Bez tla i bez ramek - to nie panel, tylko dopelnienie donutow obok */
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.hak-num--muted {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: rgba(26, 26, 26, 0.4);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.kontrast-col--neutral .donut__label {
  color: rgba(26, 26, 26, 0.45);
  margin-top: 16px;
}

/* ================================================================
   10. HAK-NUM Z SKALA "/5" - rating jako wielka liczba (Q3 architekci)
   ================================================================ */
.hak-num--rating {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}
.hak-num__scale {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.26em;
  letter-spacing: 0.04em;
  color: rgba(26, 26, 26, 0.4);
  margin-left: 0.1em;
  align-self: baseline;
}
.hak-num--accent .hak-num__scale {
  /* Skala /5 nawet przy akcent-color liczby zostaje wyszarzona,
     daje wizualne kotwiczenie (X / 5 = ocena, nie sama liczba) */
  color: rgba(26, 26, 26, 0.42);
}
.nowrap { white-space: nowrap; }

/* Skala "/5" w tabeli zbieznosci (synteza w czesci III, ciemne tlo) */
.zestawienie-table .metric-scale {
  font-weight: 500;
  font-size: 0.78em;
  opacity: 0.55;
  margin-left: 1px;
  letter-spacing: 0.02em;
}

/* ================================================================
   12. OSIE PROBLEMU (box-31) - dwie kolumny: studenci vs architekci
   Zlaczony box w czesci III. Studenci (lewa) = neutralny biel,
   Architekci (prawa) = rust akcent. Lista 3 osi z h4, opisem i diagnoza.
   ================================================================ */
.osie-col {
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--box-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-width: 3px;
  min-width: 0;
}
.osie-col--studenci {
  background: rgba(255, 255, 255, 0.04);
  border-top-color: rgba(255, 255, 255, 0.55);
}
.osie-col--architekci {
  background: rgba(201, 127, 74, 0.08);
  border-color: rgba(201, 127, 74, 0.22);
  border-top-color: var(--acc-architekt);
}

/* H3 - tytul kolumny - przelamuje domyslny teal z dark-zone */
.results-dark-zone .kontrast-col.osie-col--studenci h3 {
  color: rgba(255, 255, 255, 0.92);
}
.results-dark-zone .kontrast-col.osie-col--architekci h3 {
  color: var(--acc-architekt);
}

/* Lista 3 osi - zwarta typografia, separatory hairline */
.osie-list {
  list-style: none;
  counter-reset: osie;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.osie-list li {
  counter-increment: osie;
  position: relative;
  padding: 18px 0 18px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.osie-list li:first-child {
  border-top: 0;
  padding-top: 4px;
}
.osie-list li:last-child {
  padding-bottom: 0;
}
.osie-list li::before {
  content: counter(osie);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  font-variant-numeric: tabular-nums;
  width: 20px;
  text-align: left;
}
.osie-list li:first-child::before {
  top: 4px;
}
.osie-list h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.95);
}
.osie-col--architekci .osie-list h4 {
  color: var(--acc-architekt);
}
.osie-list p {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px 0;
  color: rgba(255, 255, 255, 0.82);
}
.osie-list .osie-data {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 640px) {
  .osie-list li { padding-left: 26px; }
  .osie-list li::before { font-size: 10px; }
}

/* ================================================================
   13. BOX WNIOSKI POMOST (box-28) - syntetyczny box rekomendacji
   Trzy bloki wnioskow z numeracja 01/02/03, kazdy z uzasadnieniem
   na danych z ankiety. Zawiera: dwa modele biur, ostrzezenie 3 punkty,
   propozycje narzedzi.
   ================================================================ */
.box--wnioski .box-lede {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 8px 0;
  max-width: 920px;
}

.wniosek-block {
  margin-top: clamp(48px, 7vh, 80px);
  padding-top: clamp(32px, 5vh, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.wniosek-block:first-of-type {
  margin-top: clamp(32px, 4vh, 48px);
  padding-top: 0;
  border-top: 0;
}

.wniosek-h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: 0.005em;
  margin: 0 0 16px 0;
  color: #fff;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}
.wniosek-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc-teal);
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
}

.wniosek-intro {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 24px 0;
  max-width: 920px;
}

/* Bullety wnioskowe - bez tla, kolor teal jako marker */
.wniosek-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 0;
  font-family: 'Outfit', sans-serif;
  line-height: 1.7;
  font-size: 14px;
}
.wniosek-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.85);
}
.wniosek-bullets li::before {
  content: '·';
  position: absolute;
  left: 4px;
  top: -1px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

/* Cytat w kolumnie modelu biura */
.wniosek-quote {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 16px 0 8px 0;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}
.osie-col--architekci .wniosek-quote {
  border-left-color: rgba(201, 127, 74, 0.55);
}

/* Naglowek kolumny modelu biura */
.wniosek-col-h {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.95);
}
.osie-col--architekci .wniosek-col-h {
  color: var(--acc-architekt);
}

/* Konkluzja wniosku 02 - akcent teal, mniejszy niz box-conclusion */
.wniosek-konkluzja {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 24px 0 0 0;
  padding: 16px 20px;
  background: rgba(0, 232, 200, 0.06);
  border-left: 3px solid var(--acc-teal);
  border-radius: 2px;
}

/* Cytat-klucz dla wniosku 03 - ten ktory wczesniej byl quote-synteza */
.wniosek-key-quote {
  font-family: 'Crimson Pro', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 8px 0 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--acc-teal);
  background: rgba(0, 232, 200, 0.06);
  border-radius: 2px;
}
.wniosek-key-quote strong {
  color: var(--acc-teal);
  font-style: normal;
  font-weight: 700;
}

/* Naglowek listy narzedzi */
.wniosek-tools-h {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 28px 0 14px 0;
}

/* Lista narzedzi reformy - kluczowa czesc podsumowania, powiekszona */
.wniosek-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: tools;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}
/* Gdy lista siedzi bezposrednio pod h3 (bez akapitu intro) - odtworz oddech */
.wniosek-h3 + .wniosek-tools-list {
  margin-top: 24px;
}
.wniosek-tools-list li {
  counter-increment: tools;
  position: relative;
  padding: 22px 0 22px 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
.wniosek-tools-list li:first-child {
  border-top: 0;
}
.wniosek-tools-list li::before {
  content: counter(tools, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--acc-teal);
  font-variant-numeric: tabular-nums;
}
.wniosek-tools-list strong {
  color: #fff;
  font-weight: 700;
  font-size: 1.08em;
}

@media (max-width: 640px) {
  /* Naglowek propozycji - numer "Propozycja 0X" laduje nad tytulem
     zamiast obok, dzieki czemu na waskim ekranie nie lamie sie nieczytelnie. */
  .wniosek-h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .wniosek-num {
    font-size: 10px;
    letter-spacing: 0.16em;
  }
  .wniosek-block {
    margin-top: 36px;
    padding-top: 28px;
  }
  .wniosek-block:first-of-type {
    margin-top: 20px;
  }
  .wniosek-intro {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .wniosek-bullets {
    font-size: 14px;
  }
  .wniosek-quote {
    font-size: 13px;
    padding-left: 10px;
    margin: 14px 0 6px 0;
  }
  .wniosek-konkluzja {
    padding: 12px 14px;
    font-size: 0.98rem;
    margin-top: 20px;
  }
  .wniosek-tools-list { font-size: 15px; }
  .wniosek-tools-list li {
    padding-left: 38px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .wniosek-tools-list li::before {
    top: 18px;
    font-size: 12px;
  }
  /* Logo POMOST inline w tytule "Trzy propozycje POMOST" - mniejsze
     i z bezpiecznym owijaniem na waskim ekranie. */
  .box--wnioski .box-title {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
    line-height: 1.18;
  }
  .box--wnioski .box-title-logo {
    height: 0.6em;
    margin-left: 0.16em;
  }
  /* Box-arg-list (Propozycja 02) - lekko zwarte odstepy. */
  .box-arg-list { margin: 24px 0; }
  /* Tabela synteza-zbieznosc na mobile (stacked rows) - dodaj male
     etykiety "Studenci" / "Architekci" przed tekstem, zeby kazda
     komorka byla samo-opisowa po ukryciu thead. */
  .results-dark-zone .zestawienie-table .col-studenci::before {
    content: 'Studenci';
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 8px 0 4px 0;
  }
  .results-dark-zone .zestawienie-table .col-architekci::before {
    content: 'Architekci';
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(201, 127, 74, 0.85);
    margin: 8px 0 4px 0;
  }
  /* Box conclusion w dark-zone (Synteza, Wnioski) - mniejszy padding-left */
  .results-dark-zone .box .box-conclusion {
    padding-left: 16px;
    font-size: clamp(1.05rem, 4vw, 1.3rem);
  }
}

/* ================================================================
   11. SEPARATOR MIEDZY ROZDZIALAMI - subtelna pozioma linia
   Wystepuje tylko miedzy Czescia I (Studenci) i Czescia II (Architekci);
   przejscie do Czesci III jest juz zaznaczone ciemna strefa (results-dark-zone).
   ================================================================ */
.anchor#czesc-ii::before {
  content: '';
  display: block;
  width: clamp(140px, 26vw, 280px);
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(28, 23, 16, 0.22) 30%,
    rgba(28, 23, 16, 0.22) 70%,
    transparent
  );
}
