/* Fonty hostowane lokalnie: bez zapytań do Google i bez blokującego @import. */
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/source-sans-3-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/source-sans-3-400-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/source-sans-3-600-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/source-sans-3-600-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/source-sans-3-700-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/source-sans-3-700-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Newsreader";font-style:italic;font-weight:400;font-display:swap;src:url("assets/fonts/newsreader-italic-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Newsreader";font-style:italic;font-weight:400;font-display:swap;src:url("assets/fonts/newsreader-italic-400-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/newsreader-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/newsreader-400-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/newsreader-500-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/newsreader-500-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/newsreader-600-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Newsreader";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/newsreader-600-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --ink: #1b1b1b;
  --ink-soft: #404040;
  --muted: #5f666d;
  --paper: #f5f5f5;
  --paper-2: #e9ecef;
  --card: #ffffff;
  --line: #dee2e6;
  --navy: #005ca9;
  --navy-2: #003b6c;
  --teal: #005ca9;
  --teal-dark: #003b6c;
  --teal-soft: #e6f0f9;
  --gold: #f5a623;
  --gold-soft: #fdf1de;
  --danger: #b30000;
  --danger-soft: #fdeceb;
  --ok: #00796b;
  --ok-soft: #e0f2f1;
  --radius: 6px;
  --shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img { max-width: 100%; display: block; }

a { color: var(--teal-dark); }

h1, h2, h3, h4 {
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px;
  text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Nagłówek ---------- */

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 70px;
}

.brand {
  display: flex; align-items: center;
  text-decoration: none; color: var(--ink);
}

.steps { display: flex; align-items: center; gap: 4px; }

.steps a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 10px; border-radius: 4px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; white-space: nowrap;
}

.steps a span {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper-2); color: var(--ink-soft);
  font-size: 11px; font-weight: 700;
}

.steps a:hover { background: var(--paper-2); color: var(--ink); }
.steps a.is-current { background: var(--navy); color: #fff; }
.steps a.is-current span { background: rgba(255,255,255,.18); color: #fff; }
.steps a.is-done span { background: var(--teal); color: #fff; }
.steps a.is-locked { opacity: .55; }

/* ---------- Strona startowa ---------- */

.landing { padding: clamp(26px, 4.5vw, 54px) 0 clamp(38px, 6vw, 70px); }

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4.5vw, 60px);
  align-items: center;
}

.hero { padding: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-dark);
}

.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); }

.hero h1 {
  font-size: clamp(32px, 4.2vw, 56px);
  margin: 15px 0 0;
  max-width: 15ch;
}

.hero h1 em { font-style: normal; font-weight: 700; color: var(--navy); }

.hero-lead {
  margin-top: 16px; max-width: 48ch;
  font-size: clamp(15.5px, 1.45vw, 18px);
  color: var(--ink-soft);
}

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

.progress-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 20px; padding: 11px 15px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: var(--shadow);
}

.progress-strip b { font-size: 13px; letter-spacing: .02em; }
.progress-strip .track { flex: 1; height: 7px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.progress-strip .track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), #4a9fe0); transition: width .5s ease; }
.progress-strip .pct { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Kafelki 2 × 2 */

.tile-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(10px, 1.5vw, 18px);
}

.tile {
  position: relative; display: flex; flex-direction: column;
  aspect-ratio: 1 / 1;
  padding: clamp(16px, 2.1vw, 26px);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: var(--shadow);
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tile::after {
  content: ""; position: absolute; right: -50px; bottom: -70px; z-index: 0;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--tile-glow, var(--teal-soft)), transparent 68%);
  opacity: .7; pointer-events: none;
}

.tile > * { position: relative; z-index: 1; }

.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -38px rgba(0,59,108,.6); border-color: #b6c9de; }

.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }

.tile-num {
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(23px, 2.5vw, 32px); line-height: 1;
  color: var(--gold);
}

.tile-state {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
  border: 1px solid var(--line); color: var(--muted); background: var(--paper);
}

.tile h3 { margin-top: 12px; font-size: clamp(18px, 1.6vw, 21px); }

/* Kafelek pokazuje sam tytuł. Mniejsze litery (opis i wezwanie do działania)
   odsłaniają się po najechaniu kursorem albo po wejściu klawiaturą. Na
   dotyku, gdzie nie ma najechania, opis jest widoczny od razu. */
.tile-more {
  margin-top: auto; padding-top: 12px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.tile:hover .tile-more,
.tile:focus .tile-more,
.tile:focus-within .tile-more { opacity: 1; transform: none; }

@media (hover: none), (prefers-reduced-motion: reduce) {
  .tile-more { opacity: 1; transform: none; }
}

.tile-kicker { margin-top: 5px; font-size: 11.5px; font-weight: 600; color: var(--teal-dark); letter-spacing: .02em; }

.tile p.desc {
  margin-top: 9px; color: var(--ink-soft); font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}

.tile-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }

.tile-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--navy); }
.tile-cta::after { content: "→"; transition: transform .2s; }
.tile:hover .tile-cta::after { transform: translateX(4px); }


.tile.is-locked { background: #fafafa; box-shadow: none; color: #8a949f; }
.tile.is-locked .tile-num { color: #ced4da; }
.tile.is-locked .tile-cta { color: #9aa4af; }
.tile.is-locked .tile-cta::after { content: "🔒"; font-size: 12px; }
.tile.is-locked:hover { transform: none; box-shadow: none; border-color: var(--line); }
.tile.is-locked ul { opacity: .65; }

.tile.is-done { border-color: var(--teal); }
.tile.is-done .tile-state { background: var(--teal-soft); color: var(--teal-dark); border-color: #cfe3f5; }

.advisor-band { padding: clamp(46px, 7vw, 80px) 0; }

.advisor-card {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--navy); color: #ffffff;
  border-radius: 6px; padding: clamp(26px, 4vw, 46px);
  box-shadow: 0 34px 70px -44px rgba(0,59,108,.85);
}

.advisor-card h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); max-width: 24ch; }
.advisor-card p { color: rgba(255,255,255,.8); margin-top: 12px; max-width: 52ch; }
.advisor-card .advisor-contact { display: grid; gap: 6px; justify-items: start; }
.advisor-card .advisor-contact small { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.advisor-card .advisor-contact b { font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; font-size: 22px; color: #fff; }
.advisor-card .advisor-contact a { color: #f5a623; font-weight: 700; text-decoration: none; font-size: 18px; }

/* ---------- Wspólne elementy modułów ---------- */

.module { padding: clamp(34px, 5vw, 58px) 0 clamp(54px, 7vw, 86px); }

.module-head { max-width: 760px; }
.module-head h1 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 16px; }
.module-head .lead { margin-top: 18px; font-size: 18px; color: var(--ink-soft); max-width: 62ch; }

.benefit {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 26px; padding: 16px 18px;
  background: var(--gold-soft); border-left: 4px solid var(--gold);
  border-radius: 6px; max-width: 68ch;
  font-size: 14.5px; color: #5c4300;
}

.benefit b { color: #3d2c00; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.section-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}

.section-label h2 { font-size: 22px; }
.section-label span { font-size: 13px; color: var(--muted); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 8px; }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field > label, .field-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }

.field input, .field select {
  width: 100%; font: 500 16px/1.3 "Source Sans 3", "Source Sans Pro", Arial, sans-serif; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 6px; padding: 11px 13px;
  min-height: 44px;
}

.field input:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0,92,169,.16); }

.hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }

.choice {
  position: relative; display: inline-flex; align-items: center;
  font-size: 13.5px; font-weight: 500;
}

.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.choice span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 4px;
  border: 1.5px solid var(--line); background: var(--paper);
  color: var(--ink-soft); cursor: pointer; user-select: none;
  transition: all .15s;
}

.choice span::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid #adb5bd; background: transparent;
}

.choice input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }
.choice input:checked + span::before { background: var(--teal); border-color: var(--teal); }
.choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }

.check {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: 6px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-size: 13.5px; cursor: pointer;
}

.check input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--teal); flex: none; }
.check:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.check.is-serious { border-color: #f3c7c3; }

.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

.who-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 6px;
  border: 2px solid var(--line); background: var(--paper); cursor: pointer;
}

.who-card input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.who-card b { display: block; font-size: 15px; }
.who-card span span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.who-card:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  background: var(--navy); color: #fff;
  border: 0; border-radius: 4px; padding: 14px 24px;
  text-decoration: none; cursor: pointer;
  transition: background .18s, transform .18s;
}

.btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn:disabled { background: #adb5bd; cursor: not-allowed; transform: none; }

.btn.accent { background: var(--navy); }
.btn.accent:hover { background: var(--navy-2); }

.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--paper-2); }

.btn.small { padding: 10px 16px; font-size: 13.5px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }

.form-msg { font-size: 14px; color: var(--danger); font-weight: 500; }
.form-msg.ok { color: var(--ok); }

/* ---------- Wyniki ---------- */

.result {
  margin-top: 30px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow);
  scroll-margin-top: 92px;
}

.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; justify-content: space-between; }
.result-title { font-size: clamp(24px, 3vw, 32px); }
.result-lead { margin-top: 6px; color: var(--muted); font-size: 14.5px; max-width: 62ch; }

.ring {
  --pct: 0; position: relative; flex: none;
  width: 108px; height: 108px; border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--pct) * 1%), #e9ecef 0);
  display: grid; place-items: center;
}

.ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--card); }
.ring b { position: relative; font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; font-size: 27px; line-height: 1; }
.ring small { position: relative; display: block; text-align: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.risk-list { display: grid; gap: 16px; margin-top: 26px; }

.risk-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.risk-name { font-weight: 600; font-size: 14.5px; }
.risk-level { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 4px; background: var(--paper-2); white-space: nowrap; }
.risk-level.lvl-low { background: var(--ok-soft); color: var(--ok); }
.risk-level.lvl-mid { background: var(--gold-soft); color: #8a5a00; }
.risk-level.lvl-high { background: var(--danger-soft); color: var(--danger); }

.risk-track { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin: 8px 0 7px; }
.risk-fill { display: block; height: 100%; border-radius: 99px; background: var(--teal); transition: width .5s ease; }
.risk-fill.lvl-low { background: var(--ok); }
.risk-fill.lvl-mid { background: var(--gold); }
.risk-fill.lvl-high { background: var(--danger); }

.risk-hint { font-size: 13px; color: var(--muted); }

.risk-banner {
  margin-top: 24px; background: var(--paper);
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 16px 18px;
}

.risk-banner b {
  display: block; font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; color: var(--navy);
}

.risk-banner p { margin-top: 5px; font-size: 13.5px; color: var(--muted); max-width: 78ch; }

.risk-legend {
  margin-top: 14px; font-size: 13px; color: var(--ink-soft);
  background: var(--paper-2); border-radius: 6px; padding: 11px 14px;
}

.risk-legend b { color: var(--navy); }

.risk-list { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 20px; }

.risk-item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 6px; padding: 18px;
}

.risk-item.status-elevated { border-color: #f2c076; }
.risk-item.status-high { border-color: #f3c7c3; }

.risk-item-top { flex-wrap: wrap; align-items: center; }
.risk-count { font-size: 12px; color: var(--muted); margin: 5px 0 12px; }

.factor-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.factor-list li { font-size: 13px; color: var(--ink-soft); padding-left: 16px; position: relative; }
.factor-list li::before { content: "•"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.factor-list b { display: block; font-size: 13px; }
.factor-list span { display: block; color: var(--muted); margin-top: 1px; }

.risk-none { font-size: 13px; color: var(--muted); }

.bmi-live {
  display: inline-block; margin-top: 14px; padding: 9px 13px;
  border-radius: 6px; border: 1px solid #cfe3f5; background: var(--teal-soft);
  color: var(--teal-dark); font-size: 13.5px; font-weight: 600;
}

.bmi-live.is-risk { border-color: #f2c076; background: var(--gold-soft); color: #8a5a00; }

.bmi-caveat {
  margin-top: 12px; padding: 12px 16px; background: #fbfcfd;
  border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 4px;
}
.bmi-caveat summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--navy); }
.bmi-caveat p { margin: 8px 0 10px; font-size: 13px; color: var(--muted); max-width: 78ch; }
.bmi-caveat .check { background: #fff; padding: 10px 12px; }

.ev {
  display: inline-block; font-style: normal; margin-left: 6px; padding: 2px 7px;
  border-radius: 3px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap;
}
.ev-strong { background: var(--ok-soft); color: var(--ok); }
.ev-moderate { background: var(--gold-soft); color: #8a5a00; }
.ev-limited { background: var(--paper-2); color: var(--muted); }

.cancer-links { margin-top: 28px; }
.cancer-links h3 { font-size: 19px; }
.cancer-links > .hint { margin-top: 6px; }
.cancer-list { list-style: none; display: grid; gap: 12px; margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cancer-list li { padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.cancer-list b { display: block; font-size: 14px; color: var(--navy-2); }
.cancer-list span { display: block; margin: 4px 0 6px; font-size: 12px; font-weight: 600; color: var(--navy); }
.cancer-list p { font-size: 13px; color: var(--muted); }

.sources {
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
}

.sources h2 { font-size: 20px; }
.sources .hint { margin-top: 6px; max-width: 82ch; }

.source-list {
  margin: 12px 0 0; padding-left: 18px;
  display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-soft);
}

.source-list a { color: var(--teal-dark); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 22px; }

.stat {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--teal); border-radius: 6px; padding: 13px 15px;
}

.stat-label { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.stat-value { font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; font-size: 24px; line-height: 1.15; margin-top: 3px; }

.action-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.action-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink-soft); }
.action-list li::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--teal); font-weight: 700;
}

.next-bar {
  margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px;
  background: var(--teal-soft); border: 1px solid #cfe3f5;
  border-radius: 6px; padding: 18px 22px;
}

.next-bar b { display: block; font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; font-size: 18px; }
.next-bar p { font-size: 13.5px; color: var(--teal-dark); }

/* ---------- Moduł 2: wydatki ---------- */

.exp-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.exp-form { display: grid; gap: 16px; }

.exp-cat { border: 1px solid var(--line); border-radius: 6px; background: var(--card); overflow: hidden; }
.exp-cat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; background: #ffffff; border-bottom: 1px solid var(--line);
}
.exp-cat-head h3 { font-size: 17px; }
.exp-cat-head .sub { font-size: 12px; color: var(--muted); }
.exp-cat-head .sum { font-size: 14px; font-weight: 700; color: var(--teal-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }

.exp-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; padding: 14px 18px 18px; }

.exp-row { display: flex; flex-direction: column; gap: 4px; }
.exp-row label { font-size: 12.5px; color: var(--muted); }
.exp-row input {
  width: 100%; font: 600 16px/1.2 "Source Sans 3", "Source Sans Pro", Arial, sans-serif; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper);
  padding: 9px 11px; min-height: 40px;
}
.exp-row input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0,92,169,.16); }

/* ---------- Moduł 2: suma kategorii i rozwijane szczegóły ---------- */

.exp-cat-body { padding: 2px 18px 14px; }
.exp-cat.is-filled { border-color: #c3d9ec; }
.exp-cat.is-missing { border-color: #f5a623; box-shadow: 0 0 0 2px rgba(245, 166, 35, .22); }

.exp-sum-row { display: flex; align-items: center; gap: 14px; padding: 12px 0 4px; }
.exp-sum-row label { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.exp-sum-row input {
  width: 158px; text-align: right; color: var(--ink);
  font: 700 16px/1.2 "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper);
  padding: 8px 11px; min-height: 40px;
}
.exp-sum-row input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0,92,169,.16); }
.exp-sum-row input.is-sum { background: var(--paper-2); border-style: dashed; color: var(--teal-dark); }

.exp-toggle {
  margin: 0; padding: 3px 0; border: 0; background: none; cursor: pointer;
  color: var(--teal-dark); font: 600 13px/1.3 "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  text-decoration: underline; text-underline-offset: 2px;
}
.exp-toggle:hover { color: var(--navy); }
.exp-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 3px; }

.exp-cat-body .exp-rows { padding: 12px 0 2px; margin-top: 10px; border-top: 1px solid var(--line); }

@media (max-width: 520px) {
  .exp-sum-row { gap: 10px; }
  .exp-sum-row input { width: 120px; }
}

.exp-side { position: sticky; top: 92px; display: grid; gap: 16px; }

.total-card { background: var(--navy); color: #fff; border-radius: 6px; padding: 24px; }
.total-card small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.total-card .total { font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; font-size: clamp(34px, 4.4vw, 46px); line-height: 1; margin-top: 8px; color: #fff; }
.total-card .total span { font-size: 16px; font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif; color: rgba(255,255,255,.8); font-weight: 500; }
.total-card p { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 10px; }
.total-card .year { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; color: rgba(255,255,255,.85); }
.total-card .year b { font-size: 18px; color: #f5a623; }

/* ---------- Moduł 3: kalkulator luki ---------- */

.calc-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }

.calc-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.gap-card > .calc-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.calc-section > h2 { font-size: 21px; }
.calc-section > .hint { display: block; margin: 4px 0 16px; }

.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }

.scenario {
  border: 1px solid var(--line); border-radius: 6px; background: var(--card);
  display: flex; flex-direction: column; overflow: hidden;
}

.scenario header { padding: 15px 17px 12px; border-bottom: 1px solid var(--line); background: #ffffff; }
.scenario header h3 { font-size: 17px; }
.scenario header p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.scenario[data-scenario="ill"] { border-top: 4px solid var(--teal); }
.scenario[data-scenario="inv"] { border-top: 4px solid var(--navy-2); }
.scenario[data-scenario="death"] { border-top: 4px solid #125da8; }
.scenario .scenario-body { padding: 14px 17px; display: grid; gap: 12px; }
.scenario.locked { opacity: .5; }
.scenario.locked .scenario-body { pointer-events: none; }

.mini-field { display: grid; gap: 4px; }
.mini-field label { font-size: 12.5px; font-weight: 600; }
.mini-field input { width: 100%; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); padding: 9px 11px; font: 600 15px "Source Sans 3", "Source Sans Pro", Arial, sans-serif; color: var(--ink); }
.mini-field .unit { font-size: 11.5px; color: var(--muted); }
.year-help summary { font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.year-help summary::marker { color: var(--gold); }
.year-help p { margin: 8px 0 2px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.lump-note { display: none; margin: 8px 0 0; }
#expenses-form.is-lump .lump-note { display: block; }
.mini-field input:disabled { cursor: not-allowed; }

.toggle-line { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; cursor: pointer; }
.toggle-line input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--teal); flex: none; }

.scenario .need { background: var(--paper); border-radius: 6px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.scenario .need b { display: block; font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; font-size: 20px; color: var(--ink); margin-top: 2px; }

.cover-bar { height: 7px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.cover-bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .3s; }

.scenario .gap-box { padding: 12px 17px 15px; border-top: 1px solid var(--line); background: var(--paper-2); margin-top: auto; }
.scenario .gap-box.ok { background: var(--ok-soft); }
.scenario .gap-box.small { background: var(--danger-soft); }
.scenario .gap-box label { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.scenario .gap-box b { display: block; font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; font-size: 24px; margin-top: 3px; color: var(--ink); }
.scenario .gap-box.ok b { color: var(--ok); }
.scenario .gap-box.small b { color: var(--danger); }
.scenario .gap-box p { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }

.sum-panel { display: flex; gap: 24px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.sum-panel .ring { width: 116px; height: 116px; }
.sum-panel .sum-text { flex: 1; min-width: 220px; }
.sum-panel h3 { font-size: 23px; }
.sum-panel p { font-size: 13.5px; color: var(--muted); margin-top: 5px; }

/* ---------- Moduł 4: zdolność ---------- */

.cap-result-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 4px; background: var(--paper-2); color: var(--ink-soft); }
.badge-green { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--gold-soft); color: #8a5a00; }
.badge-red { background: var(--danger-soft); color: var(--danger); }

.handoff { margin-top: 30px; background: var(--navy); color: #ffffff; border-radius: 6px; padding: clamp(22px, 3vw, 32px); scroll-margin-top: 92px; }
.handoff h2 { color: #fff; font-size: clamp(24px, 3vw, 30px); }
.handoff p { color: rgba(255,255,255,.8); font-size: 14px; margin-top: 8px; max-width: 60ch; }
.handoff-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.handoff-list li { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(255,255,255,.85); }
.handoff-list li b { color: #fff; font-weight: 600; text-align: right; }
.handoff-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.handoff .btn { background: #f5a623; color: #1b1b1b; }
.handoff .btn:hover { background: #e0951c; }
.handoff .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.handoff .phone { color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }

/* ---------- Moduł 4: ankieta ---------- */

.q-intro { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.q-intro h2 { font-size: clamp(20px, 2.6vw, 25px); margin-top: 6px; }
.q-intro .hint { display: block; margin-top: 8px; max-width: 76ch; }

.q-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.q-block:last-of-type { border-bottom: 0; padding-bottom: 6px; }

.q-head { display: flex; align-items: center; gap: 10px; }
.q-num {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-dark);
  font: 700 12.5px/1 "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
}
.q-head h3 { font-size: 17px; }
.q-text { font-size: 14px; color: var(--ink-soft); margin-top: 8px; max-width: 88ch; line-height: 1.55; }
.q-block > .choices { margin-top: 12px; }

.q-items { display: grid; gap: 10px; margin-top: 14px; }
.q-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 10px 18px;
  padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--paper);
}
.q-item p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.q-item .choices { margin-top: 0; flex-wrap: nowrap; }

/* ---------- Ekran blokady ---------- */

.locked-screen { padding: clamp(48px, 8vw, 100px) 0; }
.locked-card {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: clamp(28px, 5vw, 46px);
  box-shadow: var(--shadow);
}
.locked-card .lock-icon { font-size: 38px; }
.locked-card h1 { font-size: clamp(26px, 3.6vw, 36px); margin-top: 12px; }
.locked-card p { color: var(--muted); margin-top: 12px; }
.locked-card .btn { margin-top: 22px; }

/* ---------- Stopka ---------- */

.foot { border-top: 1px solid var(--line); background: #f5f5f5; padding: 30px 0 34px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; font-size: 12.5px; color: var(--muted); }
.foot p { max-width: 66ch; }
.foot b { color: var(--ink-soft); }
.foot a { color: var(--teal-dark); }
.foot-rights { flex-basis: 100%; font-size: 11.5px; color: var(--muted); }
.reset-link { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- Responsywność ---------- */

@media (max-width: 1020px) {
  .landing-grid { display: flex; flex-direction: column; gap: 28px; }
  .tile-grid { order: -1; width: 100%; max-width: 640px; margin: 0 auto; }
  .hero h1 { max-width: 22ch; }
  .hero-lead { max-width: 62ch; }
  .tile p.desc { -webkit-line-clamp: 3; }
}


@media (max-width: 980px) {
  .exp-layout { grid-template-columns: 1fr; }
  .exp-side { position: static; }
  .advisor-card { grid-template-columns: 1fr; }
  .steps a { font-size: 12px; padding: 6px 7px; }
  .steps a span { display: none; }
}

@media (max-width: 860px) {
  .scenario-grid { grid-template-columns: 1fr; }
  .q-item { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .landing { padding-top: 20px; }
  .landing-grid { gap: 24px; }
  .hero h1 { font-size: clamp(28px, 7.6vw, 38px); }
  .hero-lead { font-size: 15px; margin-top: 12px; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .btn { width: auto; }
  .progress-strip { margin-top: 16px; }
  .tile { padding: 14px; border-radius: 6px; }
  .tile h3 { font-size: clamp(15px, 4vw, 18px); margin-top: 8px; }
  .tile-kicker { font-size: 10.5px; }
  .tile p.desc { font-size: 11.5px; line-height: 1.42; margin-top: 6px; -webkit-line-clamp: 3; }
  .tile-state { font-size: 9px; padding: 3px 7px; letter-spacing: .04em; }
  .tile-cta { font-size: 11.5px; }
  .tile-foot { padding-top: 8px; }
  .steps { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .topbar-in { gap: 10px; min-height: 62px; }
  .result-head { align-items: flex-start; }
  .ring { width: 92px; height: 92px; }
  .ring b { font-size: 23px; }
}

@media (max-width: 400px) {
  .steps a { padding: 6px 7px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .card { padding: 18px; }
  .hero-actions .btn { width: 100%; }
  .form-actions .btn { width: 100%; }
  .next-bar .btn { width: 100%; }
  .tile-num { font-size: 21px; }
  .tile { padding: 12px; }
  .tile h3 { font-size: 15px; }
  .tile p.desc { -webkit-line-clamp: 2; }
}

/* ---------- One-pager do druku (moduł 4) ---------- */

.print-sheet { display: none; }

@media print {
  @page { size: A4; margin: 13mm 14mm; }

  .topbar, .next-bar, .form-actions, .handoff-actions, .foot .reset-link { display: none !important; }
  body { background: #fff; }
  .card, .result, .tile { box-shadow: none; }

  body.printable > *:not(#print-sheet) { display: none !important; }

  body.printable #print-sheet {
    display: block !important;
    margin: 0;
    padding: 0;
    color: #1b1b1b;
    font-size: 10.5pt;
    line-height: 1.45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .ps-head {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 10mm;
    border-bottom: 2px solid #005ca9; padding-bottom: 3mm;
  }
  .ps-brand { font-size: 8.5pt; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #005ca9; }
  .ps-title { font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; font-size: 20pt; line-height: 1.15; margin-top: 1.5mm; color: #1b1b1b; }
  .ps-meta { text-align: right; white-space: nowrap; }
  .ps-meta span { display: block; font-size: 7.8pt; letter-spacing: .12em; text-transform: uppercase; color: #6c757d; }
  .ps-meta b { font-size: 11pt; color: #1b1b1b; }
  .ps-for { margin-top: 3mm; font-size: 10.5pt; color: #4b5c6b; }

  .ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; margin-top: 6mm; }
  .ps-block { border: 1px solid #dee2e6; border-radius: 2mm; padding: 4mm 4.5mm; break-inside: avoid; }
  .ps-num { font-size: 7.8pt; font-weight: 700; letter-spacing: .14em; color: #005ca9; }
  .ps-label { font-size: 8.2pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6c757d; margin-top: 1mm; }
  .ps-block .ps-value { font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; font-size: 14pt; line-height: 1.2; color: #1b1b1b; margin-top: 2mm; }
  .ps-block ul { margin: 2.5mm 0 0; padding-left: 4mm; }
  .ps-block li { font-size: 8.6pt; color: #4b5c6b; margin-top: 1mm; line-height: 1.4; }

  .ps-table { width: 100%; border-collapse: collapse; margin-top: 6mm; font-size: 9pt; break-inside: avoid; }
  .ps-table th {
    text-align: left; font-size: 7.6pt; text-transform: uppercase; letter-spacing: .08em;
    color: #6c757d; border-bottom: 1px solid #005ca9; padding: 0 2mm 1.5mm;
  }
  .ps-table td { padding: 2mm; border-bottom: 1px solid #dee2e6; color: #404040; }
  .ps-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

  .ps-h2 { font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; font-size: 12pt; color: #1b1b1b; margin-top: 6mm; }
  .ps-list { margin: 2mm 0 0; padding-left: 4.5mm; }
  .ps-list li { font-size: 9pt; color: #404040; margin-top: 1.4mm; }

  .ps-foot {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 6mm;
    margin-top: 6mm; padding-top: 3.5mm; border-top: 1px solid #dee2e6; break-inside: avoid;
  }
  .ps-contact b { display: block; font-size: 10.5pt; color: #1b1b1b; }
  .ps-contact span { font-size: 9pt; color: #6c757d; }
  .ps-note { font-size: 7.4pt; line-height: 1.4; color: #6c757d; max-width: 95mm; text-align: right; }
}

/* Zwróć uwagę: pieniądze, które już masz */
.twist-card {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 4px solid var(--accent, #F5A623);
  background: #FBF7EE;
  border-radius: 6px;
}
.twist-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8a6a1f;
  margin: 0 0 4px;
  font-weight: 700;
}
.twist-title {
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--ink, #1B1B1B);
}
.twist-card p { margin: 0 0 10px; line-height: 1.55; color: var(--ink, #404040); }
.twist-amount { font-size: 15px; }
.twist-amount b { color: var(--brand, #005CA9); }

/* 800+ w kategorii dzieci */
.exp-extra { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line, #DEE2E6); }
.exp-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink, #404040); cursor: pointer; }
.exp-check input { width: 16px; height: 16px; }

/* ---------- Poprawki z przeglądu: mostek, koszt, zobowiązanie ---------- */

.progress-strip .eta { font-size: 12.5px; color: var(--muted); }

.bridge {
  margin-top: 22px;
  padding: 15px 18px;
  border: 1px solid #cfe3f5;
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  background: var(--teal-soft);
}
.bridge b {
  display: block;
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  color: var(--navy-2);
}
.bridge p { margin-top: 5px; font-size: 14px; color: var(--ink-soft); max-width: 72ch; }

/* Stos chmurek w prawym dolnym rogu: kolejne chmurki układają się jedna nad drugą. */
.float-bubbles {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
  max-width: min(330px, calc(100vw - 28px));
  pointer-events: none;
}

/* Pływająca chmurka modułu dodatkowego: towarzyszy użytkownikowi przez całą wizytę. */
.float-bubble {
  position: relative;
  z-index: 1;
  width: min(330px, calc(100vw - 28px));
  pointer-events: auto;
  padding: 15px 42px 16px 18px;
  background: #fffdf7;
  border: 1px solid #f0d9a8;
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0, 59, 108, .18);
  transition: box-shadow .2s ease;
  animation: fb-in .5s cubic-bezier(.22, 1.15, .36, 1) both, fb-bob 6s 1s ease-in-out infinite;
}
.float-bubble:hover { box-shadow: 0 20px 42px rgba(0, 59, 108, .24); }

.fb-close {
  position: absolute; top: 7px; right: 7px;
  width: 28px; height: 28px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
  font: 700 17px/1 "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  cursor: pointer;
}
.fb-close:hover { background: #f6ead3; color: #6b4700; }

.fb-kicker {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #8a5a00;
}
.fb-kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  animation: fb-ping 2.2s ease-out infinite;
}

.fb-title { display: block; margin-top: 5px; font-size: 16px; color: var(--navy-2); }
.fb-text { margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.fb-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--navy); }

/* Wariant informacyjny: spokojny niebieski, bez akcentu sprzedażowego. */
.float-bubble.is-note {
  background: #f7fbfe;
  border-color: #cfe3f5;
  border-left-color: var(--navy);
}
.float-bubble.is-note .fb-close:hover { background: #e6f0f9; color: var(--navy-2); }
.float-bubble.is-note .fb-kicker { color: var(--navy); }
.float-bubble.is-note .fb-kicker::before {
  background: var(--navy);
  animation: fb-ping-navy 2.2s ease-out infinite;
}

@keyframes fb-in {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to { opacity: 1; transform: none; }
}
@keyframes fb-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes fb-ping {
  0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, .55); }
  70% { box-shadow: 0 0 0 9px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}
@keyframes fb-ping-navy {
  0% { box-shadow: 0 0 0 0 rgba(0, 92, 169, .45); }
  70% { box-shadow: 0 0 0 9px rgba(0, 92, 169, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 92, 169, 0); }
}

@media (max-width: 640px) {
  .float-bubbles {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: none;
    align-items: stretch;
  }
  .float-bubble {
    width: auto;
    padding: 14px 42px 15px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-bubble { animation: none; }
  .fb-kicker::before { animation: none; }
}

.quick-note {
  padding: 12px 16px;
  border: 1px dashed #b6c9de;
  border-radius: 6px;
  background: #fbfcfd;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.quick-note b { color: var(--navy-2); }

.exp-row input.is-key { border-left: 3px solid var(--navy); }

.calc-notes {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.calc-notes p { font-size: 13px; color: var(--muted); }
.calc-notes b { color: var(--navy-2); }

.cost-card {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 6px;
}
.cost-card b { display: block; font-size: 16px; color: #6b4700; }
.cost-card p { margin-top: 5px; font-size: 13.5px; color: #5c4300; max-width: 74ch; }
.cost-card strong { color: #3d2c00; }

.commit {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  display: grid;
  gap: 8px;
}
.commit-title {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}
.commit label {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13.5px; color: #fff; cursor: pointer;
}
.commit input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--gold); flex: none; }

.link-btn {
  background: none; border: 0; padding: 4px 2px;
  font: 600 13.5px/1.4 "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  color: rgba(255, 255, 255, .85); text-decoration: underline; cursor: pointer;
}
.link-btn:hover { color: #fff; }

.data-tools { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; }
.data-msg { font-size: 12.5px; color: var(--ink-soft); }

@media (max-width: 480px) {
  .tile-kicker { display: none; }
  .tile p.desc { -webkit-line-clamp: 3; }
  .tile-state { font-size: 10px; }
}

/* Nadwyżka ze świadczenia 800+ */
.excess-card {
  margin-top: 16px;
  padding: 20px 22px;
  border-left: 4px solid var(--navy);
  background: var(--teal-soft);
  border-radius: 6px;
}
.excess-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--navy-2);
  margin: 0 0 4px;
  font-weight: 700;
}
.excess-title { font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.excess-card p { margin: 0 0 10px; line-height: 1.55; color: var(--ink-soft); font-size: 14.5px; }
.excess-amount { font-size: 15px; }
.excess-amount b { color: var(--navy); }

/* Wzrost i waga przeniesione z modułu 01 */
.field input.prefilled {
  font-weight: 700;
  background: var(--teal-soft);
  border-color: #b6c9de;
}
.field input.prefilled:focus {
  background: #fff;
}

/* Pytania bez odpowiedzi w module 04 */
.q-block.is-missing {
  background: #fff7f6;
  box-shadow: inset 3px 0 0 var(--danger);
  border-radius: 4px;
}
.q-block.is-missing .choice span {
  border-color: var(--danger);
  color: var(--danger);
}
.q-block.is-missing .choice span::before {
  border-color: var(--danger);
}
.q-block.is-missing .q-num {
  background: var(--danger-soft);
  color: var(--danger);
}
.field.is-missing input {
  border-color: var(--danger);
  background: #fff7f6;
}

/* Moduł 04: krótkie hasła z rozwijanymi szczegółami */
.action-list li.factor-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.action-list li.factor-item::before { content: ""; }
.factor-item b { display: block; font-size: 14.5px; color: var(--ink); }
.factor-more { margin-top: 6px; }
.factor-more summary,
.risk-banner summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.factor-more summary::-webkit-details-marker,
.risk-banner summary::-webkit-details-marker { display: none; }
.factor-more summary::after,
.risk-banner summary::after { content: " ↓"; }
.factor-more[open] summary::after,
.risk-banner details[open] summary::after { content: " ↑"; }
.factor-more p,
.risk-banner details p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.risk-banner.compact p { margin-top: 4px; }

/* Moduł 01: krótkie hasła i rozwijane szczegóły */
.risk-hits { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.risk-hits li { padding-left: 16px; position: relative; }
.risk-hits li::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700; }
.risk-hits b { display: block; font-size: 12.5px; color: var(--ink); }
.risk-hits span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }

.risk-details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.risk-details summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.risk-details summary:hover { text-decoration: underline; }
.risk-details .factor-list { margin-top: 10px; }

.cancer-details { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.cancer-details summary { cursor: pointer; font-size: 19px; font-weight: 700; color: var(--ink); }
.cancer-details summary:hover { color: var(--navy); }
.cancer-details .cancer-list { margin-top: 14px; }

/* ---------- Moduł dodatkowy: koszty leczenia ---------- */

.cost-out {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--teal-soft);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  display: grid;
  gap: 6px;
}
.cost-amount { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
#cost-amount { font-size: 34px; font-weight: 700; color: var(--navy-2); line-height: 1; }
#cost-unit { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.cost-meta p { font-size: 14px; color: var(--ink-soft); }
.cost-meta b { color: var(--navy-2); }

.cost-note {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: #6b4700;
  font-size: 13px;
}

.cost-block { margin-top: 46px; }
.cost-block h2 { font-size: 28px; line-height: 1.18; max-width: 30ch; }

/* ---------- Moduł dodatkowy: rozwijane sekcje (FAQ) ---------- */

.acc-block { margin-top: 14px; }
.acc {
  max-width: 960px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}
.acc summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin: 0 4px 4px 0;
}
.acc[open] summary::after { transform: rotate(225deg); margin: 4px 4px 0 0; }
.acc summary:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 6px; }
.acc[open] summary { border-bottom: 1px solid var(--line); }
.acc-head { display: grid; gap: 5px; }
.acc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }
.acc-title {
  font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--ink);
}
.acc-body { padding: 18px 20px 22px; }
.acc-body > :first-child { margin-top: 0; }
.acc-body h3 { font-size: 17px; }

@media (max-width: 640px) {
  .acc summary { padding: 14px 16px; gap: 12px; }
  .acc-title { font-size: 17.5px; }
  .acc-body { padding: 14px 16px 18px; }
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.benefit-ico {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 10px;
}
.benefit-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.benefit-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.flow-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
  max-width: 760px;
}
.flow-steps li {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  counter-increment: step;
}
.flow-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-steps b { display: block; font-size: 15px; }
.flow-steps span { font-size: 13.5px; color: var(--muted); }

.hosp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.hosp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 18px;
}
.hosp-country { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hosp-card h3 { font-size: 16px; margin: 6px 0 8px; }
.hosp-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.prem-wrap {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  max-width: 560px;
}
.prem-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prem-table th, .prem-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prem-table thead th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.prem-table td { text-align: right; font-weight: 700; color: var(--navy-2); white-space: nowrap; }
.prem-table tbody th { font-weight: 400; color: var(--ink-soft); }
.prem-table tbody tr:last-child th, .prem-table tbody tr:last-child td { border-bottom: 0; }
.prem-table tr.is-active { background: var(--teal-soft); }
.prem-table tr.is-active th, .prem-table tr.is-active td { color: var(--navy-2); font-weight: 700; }

.cost-compare {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--teal-soft);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  max-width: 680px;
}
.cost-compare b { color: var(--navy-2); font-size: 15px; }
.cost-compare p { margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); }

.cost-facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; max-width: 820px; }
.cost-facts li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 13px 16px; font-size: 13.5px; color: var(--muted); }
.cost-facts b { color: var(--ink); }

.cost-cta {
  margin-top: 46px;
  padding: 26px 28px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.cost-cta b { font-size: 19px; }
.cost-cta p { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .82); max-width: 52ch; }
.cost-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cost-cta .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }

.bridge-link { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--navy); }

.extra-band { padding: 0 0 44px; }
.extra-card {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
}
.extra-card h2 { font-size: 19px; margin-bottom: 4px; }
.extra-card p { font-size: 13.5px; color: var(--muted); max-width: 62ch; }
.extra-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.extra-link { font-weight: 700; font-size: 14px; white-space: nowrap; }
.foot-extra a { font-size: 12.5px; }

@media (max-width: 640px) {
  .cost-block h2 { font-size: 22px; }
  #cost-amount { font-size: 28px; }
  .prem-table th, .prem-table td { padding: 9px 12px; }
  .cost-cta { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Oncoindex: liczby w module kosztów leczenia */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
}
.stat b { display: block; font-size: 30px; line-height: 1.05; color: var(--navy-2); }
.stat span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }

.source-line { margin-top: 14px; font-size: 12.5px; color: var(--muted); max-width: 78ch; }
.source-line a { font-weight: 700; }

/* Moduł kosztów leczenia: tabela limitów */
.limit-wrap {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
}
.limit-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; }
.limit-table th, .limit-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.limit-table thead th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.limit-table thead th:nth-child(2), .limit-table thead th:nth-child(3) { white-space: nowrap; }
.limit-table tbody th { font-weight: 400; color: var(--ink-soft); }
.limit-table tbody td { color: var(--ink-soft); }
.limit-table tbody td:nth-last-child(2) { color: var(--navy-2); font-weight: 700; }
.limit-table tbody tr:last-child td, .limit-table tbody tr:last-child th { border-bottom: 0; }
.limit-table .limit-group th {
  background: var(--teal-soft);
  color: var(--navy-2);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Tabela limitów: dwie kolumny, bez przewijania poziomego */
.limit-table { min-width: 0; }
.limit-table tbody td:nth-last-child(2) { color: var(--ink-soft); font-weight: 400; }
.limit-table tbody td:last-child { color: var(--navy-2); font-weight: 700; width: 46%; }
.limit-table thead th:last-child { white-space: normal; }
.limit-sum {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--teal-soft);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 760px;
}
.limit-sum b { color: var(--navy-2); }
@media (max-width: 480px) {
  .limit-table tbody td:last-child { width: 42%; }
  .limit-table th, .limit-table td { padding: 9px 10px; font-size: 13px; }
}

/* Oświadczenie medyczne w module kosztów leczenia */
.decl {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 18px 16px;
  max-width: 860px;
}
.decl summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}
.decl summary::-webkit-details-marker { display: none; }
.decl summary::after { content: " ↓"; }
.decl[open] summary::after { content: " ↑"; }
.decl ol { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 12px; font-size: 13.5px; color: var(--ink-soft); }
.decl ol > li { line-height: 1.55; }
.decl ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.decl-hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); font-style: italic; }

/* Kalkulator składki wewnątrz sekcji cenowej */
.cost-block .cost-calc { margin-top: 20px; }

/* ---------- Moduł dodatkowy: wybór planu dla rodziny ---------- */

.family-form { margin-top: 18px; display: grid; gap: 10px; max-width: 780px; }
.plan-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-size: 14.5px; cursor: pointer; }
.plan-option input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); flex: none; }
.plan-option span { font-weight: 600; color: var(--ink); }
.plan-option:hover { border-color: #b6c9de; }

.plan-person { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) auto; gap: 12px; align-items: end; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.plan-person .field { display: grid; gap: 4px; }
.plan-person label { font-size: 12.5px; color: var(--muted); }
.plan-person input { width: 100%; min-height: 42px; border: 1.5px solid var(--line); border-radius: 6px; background: #ffffff; padding: 9px 11px; font: 600 15px/1.2 "Source Sans 3", "Source Sans Pro", Arial, sans-serif; color: var(--ink); }
.plan-person input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0,92,169,.16); }
.child-remove { border: 0; background: none; padding: 0 0 12px; color: var(--muted); font: 600 12.5px/1.2 "Source Sans 3", "Source Sans Pro", Arial, sans-serif; text-decoration: underline; cursor: pointer; }
.child-remove:hover { color: var(--danger); }
.plan-children { display: grid; gap: 10px; }
#children-list { display: grid; gap: 10px; }
#add-child { justify-self: start; }

.family-sum { margin-top: 22px; max-width: 780px; padding: 18px 20px; border: 1px solid #cfe3f5; border-radius: 6px; background: var(--teal-soft); }
.family-rows { display: grid; gap: 8px; }
.family-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(0,92,169,.16); font-size: 14.5px; }
.family-row span { display: flex; align-items: baseline; gap: 8px; }
.family-row small { color: var(--muted); font-size: 12.5px; }
.family-row b { white-space: nowrap; }
.family-total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 12px; }
.family-total span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-dark); }
.family-total b { font-family: "Source Sans 3", "Source Sans Pro", Arial, sans-serif; font-size: 26px; color: var(--navy); }
.family-sum .hint { margin-top: 6px; }

/* Strona startowa: wybrany plan dodatkowy */
.extra-plan { margin-top: 14px; padding: 12px 14px; border-left: 3px solid #f3dfb4; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.extra-plan p { font-size: 13px; color: rgba(255, 255, 255, .85); margin: 0; }
.extra-plan .extra-plan-title { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f3dfb4; margin-bottom: 5px; }
.extra-plan b { color: #ffffff; }

@media (max-width: 640px) {
  .plan-person { grid-template-columns: 1fr; }
  .child-remove { padding: 0; justify-self: start; }
}

/* Moduł kosztów leczenia: pytania otwierające */
.need-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  counter-reset: need;
}
.need-list li {
  position: relative;
  padding: 18px 18px 18px 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  counter-increment: need;
}
.need-list li::before {
  content: counter(need);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.need-list b { display: block; font-size: 15.5px; line-height: 1.35; color: var(--ink); }
.need-list p { margin-top: 7px; font-size: 13.5px; color: var(--muted); }
.need-close {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--teal-soft);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 760px;
}

/* Pasek "Poza czterema krokami" na niebieskim tle */
.extra-card {
  background: var(--navy);
  border: 0;
  border-left: 4px solid var(--gold);
  color: #fff;
  box-shadow: var(--shadow);
}
.extra-card h2 { color: #fff; }
.extra-card p { color: rgba(255, 255, 255, .86); }
.extra-kicker { color: #f3dfb4; }
.extra-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}
.extra-link:hover { color: var(--gold); }

.extra-card .extra-kicker { color: #f3dfb4; }

/* Pytania otwierające: siatka 2 na 2, żeby czwarte nie zostawało samo */
.need-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .need-list { grid-template-columns: 1fr; }
}

/* Status w module 01 bez oceniania: jeden neutralny kolor zamiast zieleni, żółci i czerwieni */
.risk-level.lvl-neutral { background: var(--teal-soft); color: var(--navy-2); }
.risk-item.status-none,
.risk-item.status-elevated,
.risk-item.status-high { border-color: var(--line); }

/* Moduł 01: statystyki na wejściu */
.module-head .stat-row { margin-top: 20px; }
.module-head .source-line { margin-top: 10px; }

/* Pytanie o zbiórkę na pełną szerokość siatki */
.need-list li.need-wide {
  grid-column: 1 / -1;
  border-left: 4px solid var(--gold);
}

/* Trzy statystyki: na wąskim ekranie pełna szerokość, żeby trzecia nie zostawała sama */
.risk-intro-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .risk-intro-stats { grid-template-columns: 1fr; }
}

/* Kompakt: moduł dodatkowy pod modułami 01-04, wszystko na jednym ekranie */
.landing { padding: clamp(16px, 3vw, 34px) 0 clamp(20px, 3.5vw, 34px); }
.landing-grid { gap: clamp(16px, 3vw, 32px); }
.hero h1 { margin: 10px 0 0; }
.hero-lead { margin-top: 12px; }
.hero-actions { margin-top: 16px; }
.progress-strip { margin-top: 14px; }
.tile { padding: clamp(12px, 1.6vw, 20px); }
.extra-band { padding: 0 0 18px; }
.extra-card { padding: 16px 22px; gap: 18px; margin-top: 0; }
.extra-card h2 { margin-bottom: 2px; }

/* Kompakt v2: wejście na jednym ekranie także przy 800 px wysokości */
.landing { padding: clamp(12px, 2.2vw, 24px) 0 clamp(12px, 2.5vw, 22px); }
.landing-grid { gap: clamp(12px, 2.2vw, 24px); }
.hero h1 { margin: 6px 0 0; }
.hero-lead { margin-top: 8px; }
.hero-actions { margin-top: 10px; }
.progress-strip { margin-top: 8px; }
.tile-grid { gap: clamp(8px, 1.2vw, 14px); }
.tile { padding: clamp(10px, 1.4vw, 16px); }
.extra-band { padding: 0 0 10px; }
.extra-card { padding: 14px 20px; gap: 14px; }
.extra-card h2 { margin: 4px 0 2px; }

/* Kafelek ma rosnąć z treścią: przy dłuższym tytule na dwa wiersze
   stała proporcja ucinała opis. Wysokość wyrównuje siatka. */
.tile { aspect-ratio: auto; }

/* Na szerokich ekranach opis pokazuje się w całości, bez ucinania kropkami. */
@media (min-width: 721px) {
  .tile p.desc { display: block; overflow: visible; -webkit-line-clamp: unset; }
}

/* Na telefonie kafle układają się w jedną kolumnę, żeby opis też był cały. */
@media (max-width: 720px) {
  .tile-grid { grid-template-columns: 1fr; }
  .tile p.desc { display: block; overflow: visible; -webkit-line-clamp: unset; }
}

/* Kompakt v4: trochę większa typografia modułu dodatkowego (kluczowy) */
.extra-card h2 { font-size: 22px; }
.extra-card p { font-size: 14.5px; }
.extra-card .extra-kicker { font-size: 11.5px; }
.extra-card .extra-link { font-size: 14.5px; }

/* ---------- Ekran powitalny: pytania i dwie kolumny priorytetów ---------- */
/* Dopóki trwa sortowanie, plansza z modułami i stopka czekają ukryte. */
body.welcome-open main,
body.welcome-open .foot { display: none; }

.welcome {
  padding: clamp(20px, 3.4vw, 44px) 0 clamp(26px, 3.4vw, 48px);
  background:
    radial-gradient(900px 420px at 10% -10%, #e6f0f9 0%, rgba(230, 240, 249, 0) 70%),
    radial-gradient(760px 420px at 100% 0%, #fdf1de 0%, rgba(253, 241, 222, 0) 65%),
    var(--paper);
}

.welcome-head { max-width: none; margin: 0 auto clamp(16px, 2.4vw, 26px); text-align: center; }
.welcome-head .eyebrow { justify-content: center; }
.welcome-head h1 { font-size: clamp(26px, 3.4vw, 42px); margin: 12px 0 0; }
.welcome-head h1 em { font-style: normal; color: var(--navy); }
.welcome-lead {
  margin: 10px auto 0; max-width: 54ch;
  font-size: clamp(14.5px, 1.3vw, 16.5px); color: var(--ink-soft);
}

.welcome-board {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 2fr) minmax(0, .85fr);
  grid-template-areas: "left stage right";
  gap: clamp(12px, 1.8vw, 22px);
  align-items: start;
}

.welcome-stage {
  grid-area: stage;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 40px) clamp(18px, 2.6vw, 32px);
  min-height: 340px;
}

.welcome-count {
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

.welcome-q {
  font-size: clamp(24px, 3vw, 36px); line-height: 1.12;
  margin: 10px 0 0; max-width: 30ch; text-wrap: balance;
}

.welcome-sub { margin-top: 12px; font-size: 13.5px; color: var(--muted); max-width: 46ch; }

.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.welcome-btn { min-width: 170px; padding: 15px 22px; font-size: 14px; letter-spacing: .04em; }

.welcome-col {
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-height: 120px;
}
.welcome-col.is-left { grid-area: left; border-top: 3px solid var(--navy); }
.welcome-col.is-right { grid-area: right; border-top: 3px solid var(--gold); }
.welcome-col h2 { font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; }
.welcome-col.is-left h2 { color: var(--navy); }
.welcome-col.is-right h2 { color: var(--muted); }

.welcome-cards { display: flex; flex-direction: column; gap: 7px; }

.welcome-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 13.5px; line-height: 1.35;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .05);
  animation: welcome-card-in .26s ease-out both;
}
.welcome-col.is-right .welcome-card { border-left-color: var(--gold); color: var(--ink-soft); }

.welcome-empty { font-size: 12.5px; line-height: 1.4; color: var(--muted); font-style: italic; }

@keyframes welcome-card-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
  .welcome-board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "stage stage" "left right";
  }
  .welcome-stage { min-height: 0; }
}

@media (max-width: 560px) {
  .welcome-board { grid-template-columns: 1fr; grid-template-areas: "stage" "left" "right"; }
  .welcome-actions { flex-direction: column; width: 100%; }
  .welcome-btn { width: 100%; }
}

/* ---------- Pasek priorytetów: niebieski, w przyklejonym nagłówku ---------- */
.priority-bar { background: var(--navy); color: #fff; }

.priority-bar-in {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 5px 12px;
  padding: 7px 22px 8px;
}

.priority-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .72);
}

.priority-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}

.priority-list li {
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .14);
  border-radius: 3px;
  padding: 3px 9px;
  font-size: 12.5px; line-height: 1.35;
}

/* Podczas sortowania priorytety widać w kolumnach, pasek czeka. */
body.welcome-open .priority-bar { display: none; }

@media (max-width: 560px) {
  .priority-bar-in { padding: 6px 16px 7px; }
  .priority-list li { font-size: 12px; }
}

/* ---------- Zapowiedź danych wejściowych i notka „Jak to działa?” ---------- */

.prep-note {
  margin-top: 16px; padding: 10px 14px;
  background: #fbfcfd; border-left: 3px solid var(--navy); border-radius: 4px;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-soft);
  max-width: 78ch;
}
.prep-note b { color: var(--navy); }

/* Notka „Jak to działa” siedzi bezpośrednio pod paskiem postępu i ma jego rozmiar. */
.hero > .how-it-works {
  margin-top: 8px;
  width: 100%;
  max-width: none;
  padding: 9px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.hero > .how-it-works summary { font-size: 13px; }
.hero > .how-it-works p { font-size: 12.5px; max-width: none; margin: 6px 0 0; }
.how-it-works p + p { margin-top: 8px; }

/* ---------- Kroki, duże wyniki, wykres pokrycia i symulacje ---------- */

.step-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.step-count {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-2); font-weight: 700;
}
.step-track {
  flex: 1 1 150px; max-width: 260px; height: 4px;
  background: var(--paper-2); border-radius: 2px; overflow: hidden;
}
.step-track i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .25s ease; }
.step-note { font-size: 12.5px; color: var(--muted); margin-left: auto; }

.risk-step { animation: step-in .22s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .risk-step { animation: none; } }

.step-nav {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px; margin-top: 22px;
}

.result-hero {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 20px; min-width: 210px;
  background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 6px;
}
.result-hero small {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-2); font-weight: 700;
}
.result-hero-value {
  font-size: clamp(30px, 4vw, 44px); line-height: 1.05;
  font-weight: 700; color: var(--navy-2); letter-spacing: -.01em;
}
.result-hero-value.small { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; }
.result-hero > span { font-size: 12.5px; color: var(--muted); max-width: 42ch; }
.result-hero.compact { margin-top: 14px; min-width: 0; padding: 12px 16px; }

.live-count {
  display: block; margin-top: 8px; font-weight: 600; color: var(--navy-2); font-size: 13px;
}

.cover-chart { display: grid; gap: 10px; margin-top: 18px; }
.cover-chart-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto;
  align-items: center; gap: 10px;
}
.cover-chart-label { font-size: 12.5px; color: var(--ink-soft); }
.cover-chart-bars { display: grid; gap: 4px; }
.cover-chart-bar { display: block; height: 9px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.cover-chart-bar i { display: block; height: 100%; border-radius: 4px; }
.cover-chart-bar.need i { width: 100%; background: #cdd8e3; }
.cover-chart-bar.have i { background: var(--teal); }
.cover-chart-row b { font-size: 12.5px; color: var(--ink); }
.cover-chart-legend { display: flex; gap: 16px; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.cover-chart-legend span::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px;
  margin-right: 5px; background: #cdd8e3;
}
.cover-chart-legend .have::before { background: var(--teal); }

.what-if {
  margin-top: 24px; padding: 18px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
}
.what-if h3 { font-size: 17px; }
.what-if-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-btn {
  font: inherit; font-size: 13px; padding: 9px 14px; cursor: pointer;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s ease, background .15s ease;
}
.chip-btn:hover { border-color: var(--teal); }
.chip-btn.is-active { background: var(--teal-soft); border-color: var(--teal); color: var(--navy-2); font-weight: 600; }
.what-if-out { margin-top: 12px; font-size: 14px; color: var(--ink-soft); min-height: 1.4em; }

.summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin: 20px 0 4px;
}
.summary-tile {
  padding: 12px 14px; border-radius: 6px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
}
.summary-tile small {
  display: block; font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}
.summary-tile b { display: block; margin-top: 4px; font-size: 18px; color: #fff; }
.summary-sentence { font-size: 13.5px; color: rgba(255, 255, 255, .75); margin-bottom: 16px; }

.cost-set-aside {
  margin-top: 16px; padding: 14px 16px;
  background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 6px;
}
.cost-set-aside b { display: block; font-size: 17px; color: var(--navy-2); }
.cost-set-aside p { margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); }

.risk-stats-more .stat-row { margin-top: 12px; }

@media (max-width: 640px) {
  .step-note { margin-left: 0; width: 100%; }
  .result-hero { width: 100%; min-width: 0; }
  .cover-chart-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cover-chart-bars { grid-column: 1 / -1; }
  .cover-chart-row b { grid-row: 1; grid-column: 2; }
  .step-nav .btn { width: 100%; }
}

/* ---------- Cytat na ekranie powitalnym ---------- */
/* Cichy, z lewą kreską akcentu: ma zatrzymać na chwilę, nie konkurować z pytaniami. */
.welcome-quote {
  margin: 18px auto 0;
  width: 100%;
  max-width: none;
  padding: 2px 0 2px 18px;
  border-left: 4px solid var(--gold);
  text-align: left;
}
.welcome-quote p {
  margin: 0;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.6;
  font-style: italic;
  color: var(--ink-soft);
}
.welcome-quote footer {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.welcome-quote cite { font-style: normal; }

/* Cytat w nagłówku modułu: ta sama kreska co na powitaniu, mniejszy oddech. */
.module-head .welcome-quote {
  margin: 16px 0 0;
  max-width: 62ch;
}
.module-head .welcome-quote p { font-size: clamp(15px, 1.4vw, 17.5px); }
.module-head .welcome-quote footer { margin-top: 6px; }

/* ---------- Zamknięcie modułu 4: umowa wstępna i trzy pytania ---------- */
/* Krótka agenda rozmowy: czas, role, brak decyzji na miejscu. */
.handoff .handoff-contract {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  color: #fff;
  max-width: 62ch;
}
.handoff .handoff-contract b { font-weight: 600; }

/* Trzy pytania klienta przed rozmową: ból, budżet, decyzja. */
.handoff-questions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.handoff .hq-title {
  margin: 0 0 8px;
  max-width: none;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}
.handoff-questions ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 66ch;
}
.handoff-questions li {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .75);
}
.handoff-questions li b {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Poprawki: kafle, moduł 3, dossier doradcy, jedna kwota w module 2 ---------- */

/* Kafle 1-4 nieco niższe: moduł dodatkowy widać bez przewijania strony. */
.tile-grid { gap: clamp(8px, 1.1vw, 12px); }
.tile { padding: clamp(11px, 1.35vw, 15px); }
.tile h3 { margin-top: 8px; font-size: clamp(16px, 1.45vw, 18.5px); }
.tile-kicker { margin-top: 3px; font-size: 11px; }
.tile p.desc { margin-top: 6px; font-size: 12.5px; line-height: 1.42; }
.tile-more { padding-top: 8px; }
.tile-foot { padding-top: 8px; }

/* Moduł 3: większe nazwy sytuacji, większe kwoty i statystyki pod każdą z nich. */
.scenario header h3 { font-size: clamp(21px, 2.2vw, 25px); }
.scenario header p { font-size: 12.5px; }
.scenario .cover-label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.scenario .gap-box label { font-size: 12.5px; }
.scenario .gap-box b { font-size: 28px; }
.scenario-stats {
  padding: 12px 17px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.scenario-stats summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--navy); }
.scenario-stats p { margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.scenario-stats p b { color: var(--ink-soft); }

/* Moduł 2: tryb jednej kwoty bez rozbijania na kategorie. */
.lump-toggle {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}
.lump-toggle .exp-check { align-items: flex-start; }
.lump-toggle .exp-check span { font-size: 13.5px; color: var(--muted); }
.lump-toggle .exp-check b { color: var(--ink); }
.lump-toggle .exp-row { margin-top: 10px; max-width: 320px; }
#expenses-form.is-lump .exp-cat,
#expenses-form.is-lump .quick-note { display: none; }

/* Moduł 4: dossier doradcy pokazywane po kliknięciu. */
.advisor-dossier {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
}
.advisor-dossier h3 { margin: 2px 0 0; color: #fff; font-size: 22px; }
.advisor-dossier .dossier-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f5c877;
}
.advisor-dossier .dossier-role { margin-top: 3px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.advisor-dossier .dossier-facts { margin: 12px 0 0; display: grid; gap: 8px; }
.advisor-dossier .dossier-facts div { display: grid; gap: 2px; }
.advisor-dossier .dossier-facts dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.advisor-dossier .dossier-facts dd { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .9); }
.advisor-dossier .dossier-facts dd a { color: #f5a623; font-weight: 700; }
.advisor-dossier .dossier-note { margin-top: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .7); max-width: 62ch; }
.advisor-dossier .dossier-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.advisor-dossier .dossier-actions .btn { background: #f5a623; color: #1b1b1b; }
.advisor-dossier .dossier-actions .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.advisor-dossier .dossier-head { display: flex; align-items: center; gap: 14px; }
.advisor-dossier .dossier-photo {
  width: 84px; height: 84px; flex: 0 0 auto;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .35);
  background: #fff;
}
.advisor-dossier .dossier-lead { margin: 14px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .85); max-width: 64ch; }
.advisor-dossier .dossier-services { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.advisor-dossier .dossier-services li { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid rgba(245, 166, 35, .6); }
.advisor-dossier .dossier-services b { color: #fff; font-size: 14px; }
.advisor-dossier .dossier-services span { font-size: 13px; color: rgba(255, 255, 255, .8); max-width: 62ch; }
@media (max-width: 480px) {
  .advisor-dossier .dossier-head { gap: 12px; }
  .advisor-dossier .dossier-photo { width: 64px; height: 64px; }
}

/* =========================================================
   Warstwa 2026: spokojna redakcja i horyzont spokoju
   Ciepłe tło, cienkie linie zamiast cieni, serif tylko
   w nagłówkach, dużych liczbach i cytacie.
   ========================================================= */

:root {
  --paper: #f7f4ee;
  --paper-2: #ece5d7;
  --card: #fffdf9;
  --line: #e3dccd;
  --line-strong: #c9c0ab;
  --gold-deep: #8a5a00;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --shadow: none;
}

body { background: var(--paper); }

h1, h2,
.result-hero-value,
.welcome-quote p,
.summary-tile b,
#exp-total,
.sum-text h3,
.what-if h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
}
h1 { line-height: 1.05; }
h2 { line-height: 1.16; }
h1 em { font-style: italic; }

/* ---------- Znak: 4 etapy, 1 plan ---------- */

.topbar { background: rgba(247, 244, 238, .93); border-bottom: 1px solid var(--line); }

.brand-lockup { display: block; width: 168px; height: auto; }

@media (max-width: 720px) {
  .brand-lockup { width: 144px; }
}

@media (max-width: 400px) {
  .brand-lockup { width: 120px; }
}

.ink-horizon {
  height: 2px;
  width: min(420px, 82%);
  margin: 16px 0 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 38%, rgba(245, 166, 35, .12) 100%);
}

/* ---------- Powierzchnie: linia zamiast cienia ---------- */

.card, .result, .tile, .progress-strip, .total-card,
.scenario, .extra-card, .what-if, .cost-card,
.excess-card, .twist-card, .handoff {
  border: 1px solid var(--line);
  box-shadow: none;
  background: var(--card);
}
.card, .result { border-radius: 8px; }
.result-title::after {
  content: "";
  display: block;
  width: 56px; height: 2px;
  margin-top: 12px;
  background: var(--gold);
}

.result-hero-value { font-size: clamp(38px, 4.6vw, 56px); }

/* ---------- Postęp jako horyzont ---------- */

.progress-strip .track,
.step-track,
.exp-step-track {
  height: 3px;
  border-radius: 0;
  background: var(--paper-2);
}
.progress-strip .track i,
.step-track i,
.exp-step-track i {
  border-radius: 0;
  background: var(--navy);
  transition: width .45s ease;
}

/* ---------- Kafle: haczyk widoczny od razu ---------- */

.tile { background: var(--card); }
.tile:hover, .tile:focus-within { border-color: var(--line-strong); }
.tile-more {
  opacity: 1 !important;
  transform: none !important;
  padding-top: 6px;
}
.tile p.desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.45;
  margin-top: 4px;
}
.tile h3 { margin-top: 6px; }
.tile-num {
  position: relative;
  background: transparent !important;
  color: var(--navy-2) !important;
  padding-bottom: 5px;
  font-family: var(--display);
  font-weight: 500;
}
.tile-num::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 20px; height: 2px; background: var(--gold);
}
.tile-kicker { color: var(--gold-deep); }

@media (min-width: 721px) {
  .tile p.desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* ---------- Priorytety wracają w wynikach ---------- */

.priority-note {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.45;
  color: var(--navy-2);
  border-left: 2px solid var(--gold);
  padding: 2px 0 2px 14px;
  margin: 0 0 20px;
  max-width: 62ch;
}

/* ---------- Mikrokomunikaty w trakcie ---------- */

.micro-note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gold-deep);
  background: rgba(245, 166, 35, .08);
  border: 1px solid rgba(245, 166, 35, .28);
  border-radius: 4px;
  padding: 9px 12px;
  margin-top: 12px;
  max-width: 72ch;
}
#bmi-micro { margin-top: 8px; }

.bmi-sep {
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 2px solid var(--line-strong);
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ---------- Jedna zmiana: co jeśli ---------- */

.what-if {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  background: linear-gradient(180deg, #fffdf9, #fdf8ee);
}
.what-if h3 { font-size: 22px; margin-bottom: 6px; }
.what-if p { font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; max-width: 70ch; }

/* ---------- Kroki: moduł 2 i 4 ---------- */

.step-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.step-count,
.exp-step-count {
  font: 700 11.5px/1.2 "Source Sans 3", Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-2);
}
.step-track { flex: 1 1 90px; min-width: 80px; overflow: hidden; }
.step-track i { display: block; height: 100%; width: 0; }
.step-note, .exp-step-note { font-size: 12.5px; color: var(--muted); }

.exp-step-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.exp-step-track { flex: 1 1 80px; min-width: 70px; }
.exp-step-track i { display: block; height: 100%; width: 33%; }
.exp-step-lead { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.exp-step-nav { display: flex; gap: 10px; margin-top: 4px; }
.exp-done { font-size: 14px; color: var(--gold-deep); }
#expenses-form.is-lump .exp-step-head,
#expenses-form.is-lump .exp-step-nav { display: none; }

.q-steps-head { margin: 20px 0 5px; }
.q-form:not(.q-last) .form-actions { display: none; }
.q-step > .q-block:first-child { margin-top: 0; }

.why-ask { margin-top: 10px; }
.why-ask summary { font-size: 12.5px; color: var(--navy-2); cursor: pointer; }
.why-ask p { font-size: 13px; color: var(--muted); margin-top: 6px; max-width: 72ch; }

/* ---------- Prognoza przed wynikiem ---------- */

.forecast {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.card > .forecast-lead {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.forecast-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.forecast-head label { font-size: 15px; font-weight: 600; max-width: 56ch; }
.forecast-head output {
  font-family: var(--display);
  font-size: 30px; line-height: 1;
  color: var(--navy-2);
}
.forecast input[type="range"] {
  width: 100%; margin-top: 10px;
  accent-color: var(--navy);
}
.forecast-compare {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(245, 166, 35, .1);
  border-left: 2px solid var(--gold);
  font-size: 15px;
  color: var(--navy-2);
  max-width: 70ch;
}
.sum-panel { gap: 0; }

/* ---------- Plan w czterech liczbach: bento ---------- */

.summary-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 10px; }
.summary-tile:first-child { grid-row: span 2; }
.summary-tile b { font-size: clamp(23px, 2.6vw, 32px); line-height: 1.1; }
.summary-sentence { font-family: var(--display); font-size: 19px; line-height: 1.45; }
@media (max-width: 720px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-tile:first-child { grid-row: auto; grid-column: 1 / -1; }
}

/* ---------- Ekran powitalny: bez nawigacji w trakcie pytań ---------- */

body.welcome-open .steps { display: none; }
body.welcome-open .priority-bar { display: none; }

/* ---------- Doradca: domknięcie horyzontu ---------- */

.advisor-card { position: relative; }
.advisor-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(245, 166, 35, 0) 65%);
}

/* ---------- Poprawki po podglądzie: czytelność i spokój ---------- */

.extra-card {
  background: var(--navy-2);
  border: 1px solid var(--navy-2);
  border-left: 4px solid var(--gold);
  color: #fff;
}
.extra-card h2, .extra-card .extra-link { color: #fff; }

.priority-bar {
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid var(--navy-2);
}
.priority-label { color: rgba(255, 255, 255, .78); }
.priority-list li {
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .12);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 11.5px;
  color: #fff;
}

.hero h1 { font-size: clamp(29px, 3.4vw, 45px); max-width: 19ch; }

.tile p.desc { -webkit-line-clamp: 3; }
@media (min-width: 721px) {
  .tile p.desc { -webkit-line-clamp: 3; }
}

.result-hero {
  background: #f2ede1;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}

.handoff {
  background: var(--navy-2);
  border: 1px solid var(--navy-2);
  color: #fff;
}

.handoff .summary-sentence { font-size: 19px; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.summary-tile:nth-child(4) { grid-column: 2 / 4; }
@media (max-width: 720px) {
  .summary-tile:nth-child(4) { grid-column: auto; }
}

/* Na wąskim ekranie najpierw obietnica i przycisk, potem kafle. */
@media (max-width: 1020px) {
  .tile-grid { order: 0; }
}

/* Karta kwoty na jasnym tle: liczby i podpisy w kolorach strony. */
.total-card { color: var(--ink); }
.total-card small { color: var(--muted); }
.total-card .total { color: var(--ink); }
.total-card .total span { color: var(--ink-soft); }
.total-card p { color: var(--ink-soft); }
.total-card .year { border-top-color: var(--line); color: var(--ink-soft); }
.total-card .year b { color: var(--gold-deep); }
