/* cyberpatch.pl v2 – motyw „18 łatek”, trzy palety (data-palette na <html>), bez zewnętrznych zasobów. */

/* ---------- Palety ---------- */
:root, [data-palette="grafik"] {
  /* granat i bursztyn – jak aplikacja GRAFIK */
  --bg: #0f1320; --bg2: #121727; --surface: #181d2b; --surface2: #1d2334;
  --line: #2a3144; --line2: #3a4460;
  --text: #e9edf6; --muted: #b3bdd0; --faint: #8f9ab0;
  --accent: #86a5e0; --accent-strong: #5b7dbd; --accent-soft: rgba(91, 125, 189, .16);
  --hl: #f3bb55; --hl2: #e9a93b; --hl-ink: #1b1404; --hl-soft: rgba(233, 169, 59, .14);
  --ok: #3fb06c; --warn: #e9a93b; --bad: #e06464;
  --grad: linear-gradient(90deg, #8fb0ec 0%, #f3bb55 100%);
  --glow1: rgba(77, 111, 174, .32); --glow2: rgba(233, 169, 59, .10);
  --pattern: rgba(154, 166, 189, .08);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
  --hx-ok: #5b7dbd; --hx-ok-ink: #ffffff; --hx-open: #1f2638; --hx-none: #171c29;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --display-weight: 800; --display-track: -.03em;
  color-scheme: dark;
}
[data-palette="ha"] {
  /* grafit, błękit i pomarańcz – jak Home Assistant */
  --bg: #111214; --bg2: #151719; --surface: #1c1e22; --surface2: #23262b;
  --line: #2d3137; --line2: #3c4149;
  --text: #e3e5e8; --muted: #b4b9c1; --faint: #8f959e;
  --accent: #4fc3f7; --accent-strong: #03a9f4; --accent-soft: rgba(3, 169, 244, .14);
  --hl: #ff9800; --hl2: #fb8c00; --hl-ink: #1a0e00; --hl-soft: rgba(255, 152, 0, .13);
  --ok: #4caf50; --warn: #ffb300; --bad: #f44336;
  --grad: linear-gradient(90deg, #4fc3f7 0%, #2196f3 100%);
  --glow1: rgba(3, 169, 244, .22); --glow2: rgba(255, 152, 0, .07);
  --pattern: rgba(255, 255, 255, .05);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --hx-ok: #03a9f4; --hx-ok-ink: #04141d; --hx-open: #24282e; --hx-none: #1a1c20;
  --font: Roboto, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: Roboto, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --display-weight: 700; --display-track: -.02em;
  color-scheme: dark;
}
[data-palette="papier"] {
  /* jasna „urzędowa”: papier, granatowy tusz, zieleń morska */
  --bg: #f6f3ec; --bg2: #efeadf; --surface: #ffffff; --surface2: #fbf9f4;
  --line: #e3ddcf; --line2: #cbc2ae;
  --text: #14213d; --muted: #3f4a60; --faint: #5c6576;
  --accent: #0f766e; --accent-strong: #0f766e; --accent-soft: rgba(15, 118, 110, .09);
  --hl: #14213d; --hl2: #22355f; --hl-ink: #ffffff; --hl-soft: rgba(180, 83, 9, .10);
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
  --grad: linear-gradient(90deg, #0f766e 0%, #1e40af 100%);
  --glow1: rgba(15, 118, 110, .10); --glow2: rgba(180, 83, 9, .06);
  --pattern: rgba(20, 33, 61, .07);
  --shadow: 0 22px 50px -30px rgba(20, 33, 61, .45);
  --hx-ok: #0f766e; --hx-ok-ink: #ffffff; --hx-open: #ebe5d7; --hx-none: #f1ece1;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: Georgia, Cambria, "Times New Roman", serif;
  --display-weight: 700; --display-track: -.01em;
  color-scheme: light;
}

/* ---------- Podstawy ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.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 { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; font: 700 16px/1.1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, background-color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn small { font-weight: 600; font-size: 13px; opacity: .85; }
.btn-hl { background: var(--hl); color: var(--hl-ink); box-shadow: 0 12px 28px -14px var(--hl); }
.btn-hl:hover { background: var(--hl2); color: var(--hl-ink); }
.btn-line { color: var(--text); border-color: var(--line2); background: transparent; }
.btn-line:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.btn-sm { padding: 9px 14px; font-size: 15px; border-radius: 10px; }

/* ---------- Pasek terminu i nagłówek ---------- */
.strip { background: var(--surface2); border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; min-height: 40px; padding: 6px 0; text-align: center; }
.strip b { color: var(--text); font-family: var(--font-display); font-size: 16px; }
.strip .pill { display: inline; }
.strip .pill::before { content: ""; display: inline-block; vertical-align: middle; width: 8px; height: 8px; margin: 0 10px 2px 0; border-radius: 2px; background: var(--hl); transform: rotate(45deg); }
.strip a { font-weight: 700; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 20px/1 var(--font); letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; color: var(--accent); }
.brand .tld { color: var(--faint); font-weight: 600; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 11px; border-radius: 9px; }
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); color: var(--text); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-links .menu-cta { display: none; }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 68px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(var(--pattern) 1.4px, transparent 1.6px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 95%); mask-image: linear-gradient(180deg, #000 40%, transparent 95%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -320px; background: radial-gradient(closest-side, var(--glow1), transparent 70%), radial-gradient(closest-side at 30% 80%, var(--glow2), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-grid > *, .tool > *, .about > *, .contact > *, .check > * { min-width: 0; }
.tagline { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700; font-size: 14.5px; letter-spacing: .02em; }
.tagline svg { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(36px, 4.5vw, 58px); margin: 18px 0 20px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 610px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 28px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14.5px; line-height: 1.35; }
.proof strong { display: block; color: var(--text); font: var(--display-weight) 24px/1.1 var(--font-display); margin-bottom: 2px; }

/* ---------- Tarcza z 18 łatek ---------- */
.shield-card { position: relative; margin: 0; padding: 26px 24px 20px; border-radius: 26px; background: linear-gradient(180deg, var(--surface), var(--surface2)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shield-card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.shield { width: 100%; max-width: 400px; margin: 14px auto 6px; overflow: visible; }
.hx { cursor: default; outline: none; }
.hx polygon { stroke-width: 2; transition: fill .35s, stroke .35s; }
.hx text { font: 700 15px/1 var(--font); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .35s; }
.hx.s-ok polygon { fill: var(--hx-ok); stroke: var(--hx-ok); }
.hx.s-ok text { fill: var(--hx-ok-ink); }
.hx.s-part polygon { fill: var(--hl-soft); stroke: var(--warn); stroke-dasharray: 5 4; }
.hx.s-part text { fill: var(--text); }
.hx.s-open polygon { fill: var(--hx-open); stroke: var(--line2); }
.hx.s-open text { fill: var(--faint); }
.hx.s-none polygon { fill: var(--hx-none); stroke: var(--line); stroke-dasharray: 2 4; }
.hx.s-none text { fill: var(--faint); opacity: .7; }
.hx:hover polygon, .hx:focus-visible polygon, .hx.active polygon { stroke: var(--text); stroke-width: 3; stroke-dasharray: none; }
.hx-core polygon { fill: var(--surface2); stroke: var(--accent); stroke-width: 2.5; }
.hx-core path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.js .shield.play .hx { animation: patch .55s cubic-bezier(.2, .9, .3, 1.3) both; transform-box: fill-box; transform-origin: center; }
@keyframes patch { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
.shield.play .hx:nth-of-type(1) { animation-delay: .05s; } .shield.play .hx:nth-of-type(2) { animation-delay: .1s; }
.shield.play .hx:nth-of-type(3) { animation-delay: .15s; } .shield.play .hx:nth-of-type(4) { animation-delay: .2s; }
.shield.play .hx:nth-of-type(5) { animation-delay: .25s; } .shield.play .hx:nth-of-type(6) { animation-delay: .3s; }
.shield.play .hx:nth-of-type(7) { animation-delay: .35s; } .shield.play .hx:nth-of-type(8) { animation-delay: .4s; }
.shield.play .hx:nth-of-type(9) { animation-delay: .45s; } .shield.play .hx:nth-of-type(10) { animation-delay: .5s; }
.shield.play .hx:nth-of-type(11) { animation-delay: .55s; } .shield.play .hx:nth-of-type(12) { animation-delay: .6s; }
.shield.play .hx:nth-of-type(13) { animation-delay: .65s; } .shield.play .hx:nth-of-type(14) { animation-delay: .7s; }
.shield.play .hx:nth-of-type(15) { animation-delay: .75s; } .shield.play .hx:nth-of-type(16) { animation-delay: .8s; }
.shield.play .hx:nth-of-type(17) { animation-delay: .85s; } .shield.play .hx:nth-of-type(18) { animation-delay: .9s; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .l-ok { background: var(--hx-ok); }
.legend .l-part { background: var(--hl-soft); border: 1.5px dashed var(--warn); }
.legend .l-open { background: var(--hx-open); border: 1.5px solid var(--line2); }
.hx-caption { min-height: 46px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.4; }
.hx-caption b { color: var(--text); }
.shield-note { margin-top: 10px; font-size: 12.5px; color: var(--faint); text-align: center; }

/* ---------- Sekcje ---------- */
.section { padding: 92px 0; position: relative; }
/* skok do sekcji (menu, „O mnie”): nagłówek sekcji ok. 35 px pod paskiem menu, a nie pod całym górnym odstępem */
.section[id] { scroll-margin-top: -92px; }
.section.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec-head { max-width: 780px; margin-bottom: 42px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--hl); border-radius: 2px; }
.sec-head h2 { font-size: clamp(29px, 3.4vw, 42px); margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 18px; }

/* ---------- Nagłówek podstron i pasy z wezwaniem ---------- */
.page-hero { position: relative; padding: 56px 0 46px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(var(--pattern) 1.4px, transparent 1.6px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -220px; top: -380px; background: radial-gradient(closest-side, var(--glow1), transparent 70%); }
.page-hero h1 { font-size: clamp(32px, 4vw, 50px); margin: 14px 0; max-width: 900px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.subnav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.subnav a:hover { color: var(--text); border-color: var(--accent); }
.section:has(.cta-band) { padding: 56px 0; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 30px 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.cta-band p { color: var(--muted); max-width: 640px; }
.cta-band .actions { margin-top: 0; }
.answer.flash { animation: flash .9s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--hl); } 35% { box-shadow: 0 0 0 4px var(--hl-soft); } 100% { box-shadow: var(--shadow); } }
.no-js .unit label { cursor: default; }
.no-js .unit label:hover { border-color: var(--line); }

/* ---------- Usługi ---------- */
#uslugi { border-top: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-grid .card { display: flex; flex-direction: column; gap: 10px; }
.svc-grid h3 { font-size: 19px; margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.svc-grid p { color: var(--muted); font-size: 15.5px; }
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.more { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 15px; text-decoration: none; }

/* ---------- Dla kogo + czy nas dotyczy ---------- */
.check { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.units { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.unit { position: relative; }
.unit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.unit label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 15.5px; line-height: 1.3; transition: border-color .15s, background-color .15s; }
.unit label svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.unit label:hover { border-color: var(--accent); }
.unit input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.unit input:checked + label { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.answer { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: sticky; top: 124px; }
.answer h3 { font-size: 24px; margin: 10px 0 12px; }
.answer p { color: var(--muted); }
.answer p + p { margin-top: 10px; }
.answer .verdict-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.answer .verdict-tag.t-full { background: var(--hl-soft); color: var(--warn); }
.answer .verdict-tag.t-maybe { background: transparent; border: 1px solid var(--line2); color: var(--muted); }
.answer .small { font-size: 13.5px; color: var(--faint); margin-top: 16px; }
.answer .btn { margin-top: 18px; }

/* ---------- Oś czasu proporcjonalna ---------- */
.dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sheet { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.sheet .top { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--surface2); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.sheet .day { font: var(--display-weight) 54px/1 var(--font-display); padding: 16px 16px 4px; letter-spacing: -.03em; }
.sheet h3 { font-size: 17px; padding: 6px 16px 6px; }
.sheet p { color: var(--muted); font-size: 15px; padding: 0 16px 18px; }
.sheet .st { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); }
.sheet.past { opacity: .62; }
.sheet.next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.sheet.next .top { background: var(--accent-soft); color: var(--accent); }
.sheet.next .day { color: var(--accent); }
.rail { position: relative; height: 54px; margin-top: 26px; }
.rail .bar { position: absolute; left: 0; right: 0; top: 24px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.rail .done { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--grad); border-radius: inherit; }
.rail .tick { position: absolute; top: 18px; width: 2px; height: 18px; background: var(--line2); transform: translateX(-1px); }
.rail .now { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--hl); white-space: nowrap; }
.rail .now::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--hl); box-shadow: 0 0 0 5px var(--hl-soft); }
.rail-labels { display: flex; justify-content: space-between; color: var(--faint); font-size: 13px; margin-top: 2px; }

/* ---------- Wymagania ---------- */
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); flex: none; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; }
.count { color: var(--faint); font-size: 14px; font-weight: 600; }
.req-list li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.req-list li span { color: var(--accent); font-weight: 800; font-size: 13px; padding-top: 2px; }
.quote { margin-top: 18px; padding: 26px 28px; border-radius: 18px; border-left: 4px solid var(--hl); background: var(--surface); font: var(--display-weight) clamp(19px, 2vw, 23px)/1.4 var(--font-display); }
.quote small { display: block; margin-top: 10px; font: 500 15px/1.5 var(--font); color: var(--muted); }

/* ---------- Ścieżka usług ---------- */
.path { position: relative; display: grid; gap: 14px; max-width: 940px; counter-reset: step; }
.path::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--line2)); }
.path li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.path li::before { counter-increment: step; content: counter(step); position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; font: var(--display-weight) 22px/1 var(--font-display); color: var(--hx-ok-ink); background: var(--hx-ok); clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.path .body { padding: 20px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.path h3 { font-size: 20px; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.path p { color: var(--muted); font-size: 15.5px; }
.result { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); padding-top: 12px; border-top: 1px dashed var(--line2); }
.result b { color: var(--accent); white-space: nowrap; }
.path-note { margin-top: 22px; color: var(--muted); display: flex; gap: 12px; align-items: center; }

/* ---------- Samoocena ---------- */
.tool { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.tool-side { position: sticky; top: 124px; display: grid; gap: 14px; }
.result-box { padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.score-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.score-num { font: var(--display-weight) 46px/1 var(--font-display); letter-spacing: -.03em; }
.score-sub { color: var(--faint); font-size: 14px; }
.result-box .shield { max-width: 300px; margin: 8px auto 2px; }
.result-box .hx text { font-size: 14px; }
.verdict { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.verdict strong { color: var(--text); }
.gaps { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line2); }
.gaps h3 { font: 800 13px/1.2 var(--font); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.gaps li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15px; color: var(--muted); padding: 4px 0; }
.gaps li::before { content: "!"; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--hl-ink); background: var(--hl); margin-top: 2px; }
[data-palette="papier"] .gaps li::before { background: var(--warn); color: #fff; }
.gaps li.none::before { content: "✓"; background: var(--ok); color: #fff; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tool-actions .btn { padding: 11px 15px; font-size: 15px; }
.privacy { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.privacy svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ok); }
.disclaimer { color: var(--faint); font-size: 13.5px; }
.track { display: block; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width .5s ease; }
.progress-wrap { display: grid; gap: 8px; margin-bottom: 22px; position: sticky; top: 112px; z-index: 5; padding: 12px 14px; border-radius: 12px; background: var(--bg2); background: color-mix(in srgb, var(--bg2) 92%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.progress-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--faint); font-weight: 600; }
.qgroup { margin-bottom: 24px; }
.qgroup > h3 { font: 800 14px/1.2 var(--font); color: var(--accent); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.q { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 10px; background: var(--surface); transition: border-color .2s; }
.q.answered { border-color: var(--accent); }
.q legend { padding: 0; font-weight: 600; font-size: 16px; line-height: 1.45; float: left; width: 100%; margin-bottom: 12px; }
.q legend span { color: var(--faint); font-weight: 700; margin-right: 6px; }
.opts { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts label { cursor: pointer; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line2); color: var(--muted); font-size: 14.5px; font-weight: 600; transition: all .15s; user-select: none; }
.opts label:hover { border-color: var(--accent); color: var(--text); }
.opts input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.opts input:checked + label.a-yes { background: var(--hx-ok); border-color: var(--hx-ok); color: var(--hx-ok-ink); }
.opts input:checked + label.a-part { background: var(--hl-soft); border-color: var(--warn); color: var(--text); border-style: dashed; }
.opts input:checked + label.a-no { background: var(--hx-open); border-color: var(--bad); color: var(--text); }

/* ---------- Jak pracuję ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: start; }
.profile { padding: 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.mono { width: 64px; height: 64px; display: grid; place-items: center; font: var(--display-weight) 28px/1 var(--font-display); color: var(--hx-ok-ink); background: var(--hx-ok); margin-bottom: 18px; clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.profile h3 { font-size: 24px; }
.role { color: var(--accent); font-weight: 700; font-size: 15px; margin: 4px 0 16px; }
.profile p { color: var(--muted); }
.profile p + p { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.principles .card { padding: 22px; }
.principles h3 { font-size: 18px; margin: 14px 0 8px; }
.principles p { color: var(--muted); font-size: 15.5px; }

/* ---------- Pytania ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Kontakt i stopka ---------- */
.contact { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding: clamp(30px, 5vw, 60px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.contact::after { content: ""; position: absolute; z-index: -1; right: -120px; bottom: -160px; width: 460px; height: 460px; background: radial-gradient(closest-side, var(--glow1), transparent 70%); }
.contact h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
.contact p { color: var(--muted); font-size: 18px; }
.contact-box { display: grid; gap: 14px; justify-items: start; }
.mail-big { font: var(--display-weight) clamp(20px, 2.3vw, 26px)/1.2 var(--font-display); color: var(--text); text-decoration: none; word-break: break-all; }
.mail-big:hover { color: var(--accent); }
.contact ul { display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.contact li { display: flex; gap: 10px; align-items: center; }
.contact li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.site-footer { border-top: 1px solid var(--line); padding: 46px 0 40px; color: var(--faint); font-size: 14px; }
.foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.foot p + p { margin-top: 10px; }
.foot h2 { font: 800 13px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sources li { padding: 3px 0; }
.sources a { color: var(--muted); }
.sources a:hover { color: var(--accent); }

/* ---------- Przełącznik palet (tylko podgląd) ---------- */
.palette-switch { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; color: var(--muted); }
.palette-switch button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 700 13px/1 var(--font); cursor: pointer; }
.palette-switch button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.palette-switch i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.sw-grafik { background: linear-gradient(135deg, #0f1320 50%, #e9a93b 50%); }
.sw-ha { background: linear-gradient(135deg, #111214 50%, #03a9f4 50%); }
.sw-papier { background: linear-gradient(135deg, #f6f3ec 50%, #0f766e 50%); border: 1px solid #cbc2ae; }

/* ---------- Animacja wejścia ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* zrzuty ekranu (?zrzut): bez animacji */
.no-anim *, .no-anim *::before, .no-anim *::after { animation: none !important; transition: none !important; }
.no-anim .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px 16px; }
.notfound h1 { font-size: clamp(36px, 6vw, 60px); margin: 18px 0 12px; }
.notfound p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Responsywność ---------- */
@media (max-width: 1000px) {
  .hero-grid, .tool, .about, .contact, .foot, .check { grid-template-columns: 1fr; }
  .tool-side, .answer { position: static; }
  .dates, .svc-grid { grid-template-columns: 1fr 1fr; }
  .shield-card { max-width: 520px; }
}
@media (max-width: 860px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 20px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px;
    font-size: 17px; color: var(--text); background: var(--bg2); border: 1px solid var(--line); }
  .nav-links a::after { content: "›"; font-size: 22px; line-height: 1; color: var(--faint); }
  .nav-links a[aria-current="page"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
  .nav-links .menu-cta { display: block; margin-top: 6px; }
  .nav-links .menu-cta a { justify-content: center; background: var(--hl); color: var(--hl-ink); border-color: var(--hl); font-weight: 800; }
  .nav-links .menu-cta a::after { content: none; }
  .menu-toggle { display: grid; }
  .nav .btn-sm { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .section { padding: 70px 0; }
  .section[id] { scroll-margin-top: -70px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .proof { grid-template-columns: 1fr 1fr; }
  .units, .principles, .dates, .svc-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; justify-content: center; }
  .path li { grid-template-columns: 44px 1fr; gap: 14px; }
  .path li::before { width: 44px; height: 44px; font-size: 18px; }
  .path::before { left: 21px; }
  .progress-wrap { top: 106px; }
  .palette-switch { left: 8px; right: 8px; bottom: 8px; justify-content: center; flex-wrap: wrap; }
  .strip { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Wydruk: samoocena ---------- */
@media print {
  :root, [data-palette] { --bg: #fff; --bg2: #fff; --surface: #fff; --surface2: #fff; --text: #111; --muted: #333; --faint: #555; --line: #ccc; --line2: #aaa; --hx-open: #eee; --hx-none: #f5f5f5; color-scheme: light; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .strip, .site-header, .hero, .page-hero, .cta-band, #uslugi, #dla-kogo, #terminy, #wymagania, #zakres, #o-mnie, #pytania, #kontakt, .site-footer, .tool-actions, .skip, .privacy, .palette-switch, .progress-wrap { display: none !important; }
  .section { padding: 0; }
  .tool { grid-template-columns: 1fr; }
  .tool-side { position: static; }
  .result-box { box-shadow: none; }
  .q { break-inside: avoid; }
  .opts input:checked + label { background: #e5e5e5 !important; color: #000 !important; border: 2px solid #000 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Strona główna: dwie ścieżki ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.paths .card { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.paths .card-top { margin-bottom: 0; }
.paths h3 { font-size: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.paths .who { color: var(--muted); }
.ticks { display: grid; gap: 9px; margin-bottom: 4px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; font-size: 15.5px; line-height: 1.45; }
.ticks li::before { content: ""; width: 12px; height: 12px; margin-top: 5px; background: var(--hx-ok); clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.paths .actions { margin-top: auto; padding-top: 6px; }
.page-hero .chips { margin-top: 20px; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }
.sec-note { margin-top: 22px; max-width: 900px; color: var(--muted); }
.sec-note a { font-weight: 700; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.tool-note.small { margin-top: 12px; font-size: 13.5px; color: var(--faint); }
.no-js [data-copy] { display: none; }
@media print { .tool-note { display: none !important; } }
.consult { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; max-width: 980px; margin-top: 24px; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--hl); background: var(--hl-soft); }
.consult p { max-width: 680px; color: var(--muted); }
.consult strong { color: var(--text); }
.sec-head + .consult { margin: -14px 0 28px; }
@media (max-width: 640px) { .consult .btn { width: 100%; justify-content: center; } }
@media print { .consult { display: none !important; } }

.subnav a { font-weight: 800; color: var(--text); }
