/* ---------- tokeny ---------- */
@font-face { font-family: "Podpis1"; src: url("/vendor/fonts/great-vibes-pl.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Podpis2"; src: url("/vendor/fonts/alex-brush-pl.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Podpis3"; src: url("/vendor/fonts/la-belle-aurore-pl.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Podpis4"; src: url("/vendor/fonts/sacramento-pl.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Jakarta"; src: url("/vendor/fonts/jakarta-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jakarta"; src: url("/vendor/fonts/jakarta-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; 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 {
  /* marka: granat + turkus, jeden jasny cyjan jako akcent */
  --navy-950: #040f22;
  --navy-900: #061833;
  --navy-800: #0a2548;
  --navy-700: #0d3563;
  --teal-600: #0e8a9c;
  --cyan: #2ee6f0;
  --cyan-ink: #04213a;
  --hero-grad: radial-gradient(900px 420px at 88% 18%, rgb(46 230 240 / .16), transparent 60%), linear-gradient(168deg, #0f8fa0 0%, #0c5a83 32%, #0a2b55 68%, #061833 100%);

  --bg: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #eaf0f6;
  --text: #0b1630;
  --muted: #55627a;
  --line: #dbe3ee;
  --accent: #0b56c4;
  --accent-ink: #ffffff;
  --accent-soft: #e4eefc;
  --focus: #12b8c9;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(6 24 51 / .05), 0 10px 30px -14px rgb(6 24 51 / .22);
  --shadow-lg: 0 2px 4px rgb(6 24 51 / .06), 0 24px 48px -20px rgb(6 24 51 / .35);
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050e1d;
    --surface: #0b1a31;
    --surface-2: #11233f;
    --text: #e8eef8;
    --muted: #93a3bd;
    --line: #1c3152;
    --accent: #5fe3ee;
    --accent-ink: #04213a;
    --accent-soft: #0e2b45;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -14px rgb(0 0 0 / .7);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 24px 48px -20px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #050e1d;
    --surface: #0b1a31;
    --surface-2: #11233f;
    --text: #e8eef8;
    --muted: #93a3bd;
    --line: #1c3152;
    --accent: #5fe3ee;
    --accent-ink: #04213a;
    --accent-soft: #0e2b45;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px -14px rgb(0 0 0 / .7);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 24px 48px -20px rgb(0 0 0 / .8);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }

/* ---------- nagłówek i stopka ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.logo svg { color: var(--accent); }
.site-head nav { display: flex; gap: 20px; }
.site-head nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-head nav a:hover { color: var(--text); }

.site-foot { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 24px; color: var(--muted); font-size: .95rem; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-name { font-weight: 700; color: var(--text); margin: 0 0 4px; }
.others h2 { font-size: 1rem; color: var(--text); margin: 0 0 8px; }
.others ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.others a { display: block; text-decoration: none; }
.others a span { display: block; color: var(--muted); font-size: .9rem; }
.fine { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; }
.foot-tagline { margin: 20px 0 0; font-size: .9rem; max-width: 75ch; line-height: 1.5; color: var(--muted); }

.bmc { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 16px; border-radius: 999px; background: #ffdd00; color: #1c1c1c; font-weight: 600; text-decoration: none; }
.bmc:hover { filter: brightness(.95); }

/* ---------- strona główna ---------- */
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; max-width: 20ch; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin: 0 0 20px; }
.search input { width: 100%; max-width: 560px; padding: 14px 16px; font: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.badges li { background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }

.cat { margin-top: 32px; }
.cat h2, .related h2 { font-size: 1.15rem; margin: 0 0 12px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card a { display: flex; flex-direction: column; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.card a:hover { border-color: var(--accent); transform: translateY(-1px); }
.card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: .93rem; flex: 1; }
.card .go { color: var(--accent); font-weight: 600; font-size: .9rem; }
.empty { color: var(--muted); padding: 24px 0; }

.how { margin-top: 48px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 8px; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .93rem; }

/* ---------- generator ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 16px 0 0; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); white-space: nowrap; }
.crumbs > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 8px 0 8px; letter-spacing: -.01em; }
.page-head .lead { font-size: 1rem; }

.gen { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) {
  .gen { grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr); }
  .preview-pane { position: sticky; top: 16px; }
  .tabs, .only-mobile { display: none !important; }
}
@media (max-width: 999.98px) {
  .gen[data-view="form"] .preview-pane, .gen[data-view="preview"] .form-pane { display: none; }
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius); margin-bottom: 16px; position: sticky; top: 8px; z-index: 5; }
.tabs button { font: inherit; font-weight: 600; font-size: .92rem; border: 0; padding: 10px; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* formularz */
#form { display: grid; gap: 12px; }
#form fieldset { margin: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
#form legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-weight: 700; font-size: .98rem; }
#form legend + * { clear: both; }
#form.locked { opacity: .55; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.half { grid-column: span 1; }
@media (max-width: 420px) { .field.half { grid-column: 1 / -1; } }
.field label { font-size: .86rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.check label { flex-direction: row; display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); font-size: .95rem; cursor: pointer; }
.field.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.help { color: var(--muted); font-size: .8rem; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .86rem; margin: 12px 4px; }
.privacy-note svg { flex: none; margin-top: 3px; color: var(--accent); }

/* przyciski */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.btn { font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.only-mobile { width: 100%; margin-top: 4px; padding: 13px; }
.hint { margin: 0 0 12px; padding: 10px 14px; background: var(--accent-soft); border-radius: 9px; font-size: .9rem; }

/* kartka A4 */
.paper-wrap { background: var(--surface-2); border-radius: var(--radius); padding: 16px; overflow: auto; max-height: calc(100vh - 120px); }
@media (max-width: 999.98px) { .paper-wrap { max-height: none; padding: 8px; } }
.paper {
  --ink: #111;
  background: #fff; color: var(--ink); box-shadow: 0 2px 12px rgb(0 0 0 / .12);
  width: 100%; max-width: 210mm; min-height: 297mm; margin: 0 auto; padding: 18mm 18mm 22mm;
  font: 11.5pt/1.5 var(--serif); text-align: justify; hyphens: auto; overflow-wrap: anywhere;
}
@media (max-width: 600px) { .paper { padding: 22px 18px; min-height: 0; font-size: 10.5pt; text-align: left; } }
.paper.editing { outline: 2px dashed var(--accent); outline-offset: 4px; cursor: text; }
.paper h1, .paper .doc-h1 { font-size: 15pt; font-weight: 700; text-align: center; margin: 1.2em 0 1em; text-transform: uppercase; letter-spacing: .03em; }
.paper h2 { font-size: 12pt; margin: 1.2em 0 .4em; }
.paper h2.center { text-align: center; }
.paper h3 { font-size: 11.5pt; text-align: center; margin: 1.2em 0 .4em; break-after: avoid; }
.paper h3 span { font-weight: 600; }
.paper p { margin: 0 0 .55em; }
.paper ol, .paper ul { margin: 0 0 .55em; padding-left: 1.6em; }
.paper li { margin-bottom: .3em; }
.paper .place { text-align: right; }
.paper .small { font-size: 9.5pt; }
.paper .addr { margin: 0 0 1.4em; text-align: left; }
.paper .addr.to { margin-left: 50%; margin-top: 1.6em; }
.paper table { width: 100%; border-collapse: collapse; margin: .4em 0 1em; text-align: left; }
.paper td, .paper th { border: 1px solid #999; padding: 4px 8px; vertical-align: top; }
.paper th { background: #f1f1f1; }
.paper table.kv td:first-child { width: 38%; }
.paper .ph { color: #8a8a8a; background: #fff6cc; border-radius: 2px; }
.sigs { display: flex; justify-content: space-between; gap: 10%; margin-top: 3.5em; break-inside: avoid; text-align: center; font-size: 9.5pt; color: #444; }
.sigs > div { flex: 1; max-width: 45%; }
.sigs.one { justify-content: flex-end; }
.sigs.many { flex-wrap: wrap; row-gap: 0.5em; }
.sigs.many > div { flex: 0 0 45%; }
.sigs .line { display: block; border-bottom: 1px dotted #333; height: 2.5em; margin-bottom: 4px; }
.pagebreak { break-before: page; height: 0; margin: 2.5em 0; border-top: 1px dashed #bbb; }

/* treść informacyjna */
.prose { overflow-wrap: break-word; }
.prose .meta { color: var(--muted); margin-top: -8px; }
.terms ol { padding-left: 1.4em; }
.terms ol ol { margin-top: 6px; }
.privacy-note a { color: inherit; }
.info { margin-top: 40px; max-width: 820px; }
.prose h1 { font-size: 2rem; margin: 0 0 16px; }
.prose h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose li { margin-bottom: 6px; }
.related { margin-top: 40px; }

/* ---------- druk / PDF ---------- */
@page { size: A4; margin: 18mm 18mm 20mm; }
@media print {
  body { background: #fff; }
  .site-head, .site-foot, .crumbs, .page-head, .tabs, .form-pane, .toolbar, .hint, .info, .related, .terms-box, .alerts-box, .ad-slot { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .gen { display: block !important; }
  .preview-pane { display: block !important; position: static; }
  .paper-wrap { padding: 0; background: none; max-height: none; overflow: visible; }
  .paper { box-shadow: none; padding: 0; max-width: none; min-height: 0; font-size: 11.5pt; outline: none !important; }
  .paper .ph { background: none; color: #000; }
  .pagebreak { border: 0; margin: 0; }
}
@media (max-width: 480px) { .site-head nav { gap: 12px; font-size: .9rem; } }

/* ---------- strona główna: moduły i sprawy ---------- */
.hero h1 { max-width: none; }
.modules { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.module { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
a.module { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
a.module:hover { filter: brightness(1.06); }
.module b { font-size: 1.15rem; }
.module span { font-size: .93rem; opacity: .85; }
.module.soon { color: var(--muted); box-shadow: none; border-style: dashed; }
.module.soon svg { color: var(--muted); }
.module em { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.section-title { font-size: 1.4rem; margin: 40px 0 14px; }
.intents { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.intent { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.intent:hover { border-color: var(--accent); transform: translateY(-1px); }
.intent svg { flex: none; color: var(--accent); background: var(--accent-soft); padding: 9px; width: 46px; height: 46px; border-radius: 12px; }
.intent span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.intent b { font-size: 1.02rem; line-height: 1.3; }
.intent small { color: var(--muted); font-size: .85rem; }
.intent em { font-style: normal; font-weight: 700; color: var(--muted); font-size: .85rem; }
.search input { max-width: none; }
.cat { scroll-margin-top: 16px; }
.cat h2 { display: flex; align-items: center; gap: 10px; }
.cat h2 svg { width: 24px; height: 24px; color: var(--accent); }

/* ---------- wygoda: dane, terminy, walidacja ---------- */
.btn.small { font-size: .84rem; padding: 6px 11px; }
.site-head nav { align-items: center; }
.data-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.small-note { font-size: .78rem; }
.warn { display: block; color: #b45309; font-size: .8rem; margin-top: 3px; }
[aria-invalid] { border-color: #d97706 !important; }
.terms-box { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; }
.terms-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.terms-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.terms-box li { font-size: .92rem; }
.terms-box li.own b { color: #b91c1c; }
.terms-box small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.alerts-box { margin: 0 0 12px; }
.alerts-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alerts-box li { padding: 11px 14px; border-radius: var(--radius); font-size: .9rem; line-height: 1.5; border: 1px solid var(--accent); background: var(--accent-soft); }
.alerts-box li.alert-warn { border-color: #d97706; background: #fef3c7; color: #78350f; }
.alerts-box li.alert-warn a { color: #92400e; font-weight: 700; }
.legal-box { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .92rem; }
.legal-box h2 { margin-top: 0; }
.ad-slot { display: block; min-height: 280px; margin: 24px 0; contain: layout size; background: var(--surface-2); border-radius: var(--radius); }
@media (prefers-color-scheme: dark) {
  .warn { color: #fbbf24; }
  .terms-box li.own b { color: #fca5a5; }
  :root:not([data-theme="light"]) .alerts-box li.alert-warn { border-color: #f59e0b; background: #422006; color: #fde68a; }
  :root:not([data-theme="light"]) .alerts-box li.alert-warn a { color: #fcd34d; }
}
:root[data-theme="dark"] .alerts-box li.alert-warn { border-color: #f59e0b; background: #422006; color: #fde68a; }
:root[data-theme="dark"] .alerts-box li.alert-warn a { color: #fcd34d; }

/* ---------- konwerter ---------- */
.conv-tools { display: grid; gap: 10px; margin: 8px 0 24px; }
.conv-tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.conv-tool summary { cursor: pointer; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.conv-tool summary::-webkit-details-marker { display: none; }
.conv-tool summary b { font-size: 1.05rem; }
.conv-tool summary span { color: var(--muted); font-size: .9rem; }
.conv-tool[open] summary { border-bottom: 1px solid var(--line); }
.conv-body { padding: 16px 18px; display: grid; gap: 12px; }
.conv-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px 16px; text-align: center; color: var(--muted); font-weight: 600; cursor: pointer; background: var(--surface-2); }
.conv-drop:hover, .conv-drop.over { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.conv-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.conv-files li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.conv-files li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.conv-files small { display: block; color: var(--muted); font-size: .8rem; }
.conv-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.conv-status { color: var(--muted); font-size: .9rem; }
.conv-pages { width: 100%; }
@media (max-width: 560px) { .site-head .nav-extra { display: none; } .site-head nav { gap: 14px; } }

/* ---------- narzędzia: wspólne ---------- */
.conv-drop.big { padding: 56px 16px; font-size: 1.05rem; }
.conv-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.conv-opts .field span, .ft-opts .field span { font-size: .86rem; font-weight: 600; color: var(--muted); }
.conv-opts input, .conv-opts select, .ft-opts input, .ft-opts select, .pe-fields input, .pe-fields select, .pe-fields textarea, #we-block, #pe-size {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--text); width: 100%; }
#we-block, #pe-size { width: auto; padding: 5px 8px; font-size: .88rem; }
.tool-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tool-links a { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); }
.tool-links a:hover { border-color: var(--accent); }
.tool-links span { color: var(--muted); font-size: .88rem; }
.center-line { text-align: center; color: var(--muted); margin: 14px 0; }
.grow { flex: 1; }
.print-box { display: none; }
@media print {
  body.print-only-box > *:not(.print-box) { display: none !important; }
  body.print-only-box .print-box { display: block; color: #111; font: 11pt/1.5 Calibri, Carlito, "Segoe UI", Arial, sans-serif; }
  .print-box h1, .print-box h2, .print-box h3, .print-box h4 { line-height: 1.25; margin: 1em 0 .4em; break-after: avoid; }
  .print-box h1 { font-size: 18pt; } .print-box h2 { font-size: 15pt; } .print-box h3 { font-size: 13pt; }
  .print-box p { margin: 0 0 .5em; orphans: 3; widows: 3; }
  .print-box .c { text-align: center; } .print-box .r { text-align: right; } .print-box .j { text-align: justify; }
  .print-box ul, .print-box ol { margin: 0 0 .6em; padding-left: 7mm; }
  .print-box table { border-collapse: collapse; width: 100%; margin: .4em 0 .9em; font-size: 10pt; }
  .print-box tr { break-inside: avoid; }
  .print-box th, .print-box td { border: 1px solid #999; padding: 1.4mm 2mm; vertical-align: top; text-align: left; }
  .print-box th { background: #eee; }
  .print-box td p { margin: 0; }
  .print-box img { max-width: 100%; height: auto; }
  .print-box .page-break { display: block; break-before: page; }
}

/* ---------- edytor PDF ---------- */
.pe-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 12px; margin: 0 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pe-tools, .pe-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pe-size { font-size: .86rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
#pe-pages { display: grid; gap: 22px; justify-items: center; padding: 8px 0 24px; }
.pe-page { display: grid; gap: 6px; max-width: 100%; }
.pe-page-bar { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); }
.pe-page.removed .pe-sheet { opacity: .25; }
.pe-sheet { position: relative; box-shadow: 0 2px 14px rgb(0 0 0 / .18); background: #fff; max-width: 100%; }
.pe-sheet canvas { display: block; }
.pe-layer { position: absolute; inset: 0; }
#pe-pages[data-tool="text"] .pe-layer, #pe-pages[data-tool="date"] .pe-layer { cursor: text; }
#pe-pages[data-tool="check"] .pe-layer, #pe-pages[data-tool="cross"] .pe-layer, #pe-pages[data-tool="white"] .pe-layer, #pe-pages[data-tool="sign"] .pe-layer { cursor: crosshair; }
.pe-ann { position: absolute; color: #000; touch-action: none; }
.pe-ann:hover, .pe-ann:focus-within { outline: 1px dashed #2563eb; }
.pe-text { min-width: 24px; padding: 2px 4px; line-height: 1.25; font-family: "Liberation Sans", Arial, Helvetica, sans-serif; white-space: pre; outline: none; }
.pe-image img { width: 100%; height: 100%; display: block; pointer-events: none; }
.pe-white { background: #fff; outline: 1px dashed #94a3b8; }
.pe-check, .pe-cross { display: grid; place-items: center; cursor: move; }
.pe-mark { line-height: 1; font-family: Arial, sans-serif; pointer-events: none; }
.pe-image { cursor: move; }
.pe-move, .pe-x { position: absolute; top: -20px; width: 20px; height: 20px; display: none; place-items: center; font-size: 12px; border-radius: 5px; border: 1px solid #2563eb; background: #fff; color: #1e3a8a; cursor: move; padding: 0; line-height: 1; }
.pe-move { left: -1px; }
.pe-x { right: -1px; cursor: pointer; color: #b91c1c; border-color: #b91c1c; }
.pe-ann:hover .pe-move, .pe-ann:hover .pe-x, .pe-ann:focus-within .pe-move, .pe-ann:focus-within .pe-x { display: grid; }
.pe-resize { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border-radius: 3px; background: #2563eb; cursor: nwse-resize; display: none; }
.pe-ann:hover .pe-resize { display: block; }
@media (hover: none) { .pe-move, .pe-x { display: grid; } .pe-resize { display: block; } }
.pe-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 12px; }
.pe-form summary { cursor: pointer; padding: 4px 0; }
.pe-fields { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 10px 0; }
.pe-field { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; color: var(--muted); }
.pe-field input[type=checkbox] { width: auto; align-self: flex-start; }
.pe-flat { font-size: .86rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pe-sign { border: 0; border-radius: var(--radius); padding: 18px; width: min(640px, calc(100vw - 24px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.pe-sign::backdrop { background: rgb(0 0 0 / .45); }
.pe-sign h2 { margin: 0 0 4px; font-size: 1.15rem; }
#pe-pad { width: 100%; height: 200px; background: #fff; border: 1px dashed var(--line); border-radius: 9px; touch-action: none; display: block; margin: 10px 0; }
.pe-sign-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- edytor Word ---------- */
.we-paper { min-height: 60vh; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; text-align: left; outline: none; }
.we-paper:focus { box-shadow: 0 0 0 2px var(--focus), 0 2px 12px rgb(0 0 0 / .12); }
.we-paper h1 { font-size: 18pt; text-transform: none; text-align: left; margin: .8em 0 .4em; }
.we-paper h2 { font-size: 15pt; margin: .8em 0 .4em; }
.we-paper h3 { font-size: 13pt; margin: .8em 0 .4em; }
.we-paper .c { text-align: center; } .we-paper .r { text-align: right; } .we-paper .j { text-align: justify; }
.we-paper table { border-collapse: collapse; width: 100%; }
.we-paper td, .we-paper th { border: 1px solid #999; padding: 4px 8px; min-width: 40px; }
.we-paper img { max-width: 100%; height: auto; }
.we-paper .page-break { display: block; border-top: 1px dashed #bbb; margin: 1.5em 0; }

/* ---------- zdjęcie do urzędu ---------- */
.ft-work { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); align-items: start; margin-bottom: 20px; }
.ft-preview { display: grid; gap: 8px; justify-items: start; }
#ft-canvas { max-width: 100%; border-radius: 8px; touch-action: none; cursor: move; background: var(--surface-2); }
.ft-row { display: flex; gap: 10px; align-items: center; width: 100%; font-size: .88rem; color: var(--muted); }
.ft-row input { flex: 1; }
.ft-opts { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.ft-custom { display: grid; gap: 10px; }
.ft-row2 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.ft-out { max-width: 160px; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 760px) { .ft-work { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pe-bar { position: static; } }

/* autor na stronie „O stronie” */
.author { display: flex; gap: 16px; align-items: center; margin: 28px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.author p { margin: 0; }
@media (max-width: 480px) { .author { flex-direction: column; text-align: center; } }

/* blok sezonowy na stronie głównej */
.season { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 18px 20px; margin: 8px 0 0; }
.season h2 { margin: 0 0 12px; font-size: 1.2rem; }
.season ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.season li { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.season li span { color: var(--muted); line-height: 1.45; }
.season a { font-weight: 600; margin-top: 2px; }

/* kalkulatory */
.calc-box { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.calc { display: grid; gap: 10px; }
.calc .field { display: grid; gap: 4px; }
.calc .field span { font-size: .88rem; font-weight: 600; }
.calc input, .calc select { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); width: 100%; box-sizing: border-box; }
.calc [hidden] { display: none; }
.calc-result { border-left: 4px solid var(--accent); padding: 4px 0 4px 14px; }
.calc-result.warn { border-left-color: #b91c1c; }
.calc-result p { margin: 0 0 8px; line-height: 1.5; }
.calc-result .big { font-size: 1.15rem; }
.calc-steps { margin: 0 0 8px; padding-left: 18px; }
.calc-steps li { margin-bottom: 6px; line-height: 1.45; }
.calc-hint { color: var(--muted); font-size: .88rem; }
.calc-links { font-weight: 600; }
.table-scroll { overflow-x: auto; margin: 0 0 8px; }
/* Wykresy kalkulatorów: kolory kategorii sprawdzone walidatorem (CVD, jasność) dla jasnego i ciemnego tła */
:root { --wyk-1: #2a78d6; --wyk-2: #eb6834; --wyk-3: #1baf7a; --wyk-4: #eda100; --wyk-5: #e87ba4; --wyk-6: #6250d6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --wyk-1: #3987e5; --wyk-2: #d95926; --wyk-3: #199e70; --wyk-4: #c98500; --wyk-5: #d55181; --wyk-6: #9085e9; }
}
:root[data-theme="dark"] { --wyk-1: #3987e5; --wyk-2: #d95926; --wyk-3: #199e70; --wyk-4: #c98500; --wyk-5: #d55181; --wyk-6: #9085e9; }
.wykresy { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 12px 0; }
.wyk { margin: 0; min-width: 0; }
.wyk-tytul { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.wyk svg { width: 100%; height: auto; display: block; overflow: visible; }
.wyk-kolowy svg { max-width: 200px; margin: 0 auto; }
.wyk-seg { stroke: var(--surface); stroke-width: 2; }
.wyk-seg:hover { opacity: .85; }
.wyk-1 { fill: var(--wyk-1); stroke: var(--wyk-1); } .wyk-2 { fill: var(--wyk-2); stroke: var(--wyk-2); } .wyk-3 { fill: var(--wyk-3); stroke: var(--wyk-3); }
.wyk-4 { fill: var(--wyk-4); stroke: var(--wyk-4); } .wyk-5 { fill: var(--wyk-5); stroke: var(--wyk-5); } .wyk-6 { fill: var(--wyk-6); stroke: var(--wyk-6); }
.wyk-seg.wyk-1, .wyk-seg.wyk-2, .wyk-seg.wyk-3, .wyk-seg.wyk-4, .wyk-seg.wyk-5, .wyk-seg.wyk-6 { stroke: var(--surface); }
.wyk-srodek { font-size: 15px; font-weight: 700; fill: var(--text); }
.wyk-srodek-maly { font-size: 11px; fill: var(--muted); }
.wyk-legenda { list-style: none; padding: 0; margin: 10px 0 0; font-size: .85rem; }
.wyk-legenda li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.wyk-znak { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--wyk-1); }
.wyk-znak.wyk-2 { background: var(--wyk-2); } .wyk-znak.wyk-3 { background: var(--wyk-3); } .wyk-znak.wyk-4 { background: var(--wyk-4); } .wyk-znak.wyk-5 { background: var(--wyk-5); } .wyk-znak.wyk-6 { background: var(--wyk-6); }
.wyk-nazwa { flex: 1; color: var(--text); }
.wyk-wart { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wyk-siatka { stroke: var(--line); stroke-width: 1; }
.wyk-os { font-size: 10px; fill: var(--muted); }
.wyk-linia { fill: none; stroke-width: 2; stroke-linejoin: round; }
.wyk-znacznik { stroke: var(--surface); stroke-width: 2; }
.wyk-traf { fill: transparent; stroke: none; }
.wyk-pkt:hover .wyk-znacznik { r: 6; }
.calc-table { border-collapse: collapse; font-size: .88rem; width: 100%; font-variant-numeric: tabular-nums; }
/* Symetria pozioma liczb: cyfry o równej szerokości (w Jakarcie „0” ma 732, a „1” 371 jednostek), więc kolumny kwot i wyniki nie skaczą */
.calc-result, .calc input, .meta-table td, .paper table td, .nav-top em, .nav-sub em, .cat-tabs em { font-variant-numeric: tabular-nums; }
.calc-table th, .calc-table td { border-bottom: 1px solid var(--line); padding: 5px 8px; text-align: right; white-space: nowrap; }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; }
@media (max-width: 760px) { .calc-box { grid-template-columns: 1fr; padding: 14px; } }

/* Czy to fair? */
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.faq-nav a { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); font-weight: 600; text-decoration: none; }
.faq-calc { margin: 0 0 28px; }
.faq-calc h2, .faq-group h2 { font-size: 1.25rem; margin: 24px 0 10px; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 8px; }
.faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style-position: inside; }
.faq > div { padding: 0 14px 14px; }
.faq p { margin: 0 0 8px; line-height: 1.55; }
.faq-law { color: var(--muted); font-size: .85rem; }
.home-calc { margin-top: 32px; }
.pe-black { background: #000; }

/* udostępnianie, poradniki, historia zmian */
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; }
.share-msg { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.guide-cta { margin: 0 0 16px; }
.guide-toc { background: var(--accent-soft); border-radius: 12px; padding: 14px 14px 14px 36px; margin: 0 0 24px; }
.guide-toc li { margin: 4px 0; }
.guide-step h2 { display: flex; align-items: center; gap: 10px; }
.step-no { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .95rem; }
.guide-tip { border-left: 4px solid var(--accent); padding: 8px 14px; background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.guide-link { font-weight: 600; }
.changelog h2 { font-size: 1.15rem; }
a.btn { text-decoration: none; display: inline-block; }

/* =========================================================
   Układ aplikacji: górny pasek, panel boczny, dolne zakładki
   ========================================================= */
:root { --top-h: 60px; --side-w: 264px; --tab-h: 64px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.topbar { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .logo { flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.gsearch { position: relative; flex: 1; max-width: 560px; margin: 0 auto; display: flex; align-items: center; }
.gsearch > svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search-input { width: 100%; font: inherit; font-size: .95rem; padding: 9px 70px 9px 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.search-input:focus { background: var(--surface); border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.kbd { position: absolute; right: 10px; font: 600 .72rem var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; background: var(--surface); pointer-events: none; }
.search-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: min(70vh, 480px); overflow: auto; z-index: 50; }
.search-list a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.search-list small { flex: none; color: var(--muted); font-size: .78rem; }
.search-list [aria-selected="true"] a, .search-list a:hover { background: var(--accent-soft); }
.search-none { padding: 10px 12px; color: var(--muted); }
.search-toggle { display: none; }

.shell { display: flex; align-items: flex-start; min-height: calc(100vh - var(--top-h)); }
.sidebar { flex: none; width: var(--side-w); position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 14px 10px 20px; display: flex; flex-direction: column; gap: 8px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.nav-top { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; margin-top: 6px; }
.nav-top svg { color: var(--muted); flex: none; }
.nav-top em, .nav-sub em, .cat-tabs em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.nav-top:hover, .nav-sub a:hover { background: var(--surface-2); }
.nav-top.on { color: var(--accent); }
.nav-top.on svg { color: var(--accent); }
.nav-top[aria-current="page"] { background: var(--accent-soft); }
.nav-sub { list-style: none; margin: 0 0 4px; padding: 0 0 0 30px; }
.nav-sub a { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.nav-sub a[aria-current="page"], .nav-sub a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; }
.nav-foot a { color: var(--muted); text-decoration: none; }
.nav-foot a:hover { color: var(--text); }
.main-col { flex: 1; min-width: 0; container-type: inline-size; }
.main-col .wrap { max-width: 1180px; padding: 0 24px; }
.main-col .wrap.narrow { max-width: 800px; }
.site-foot { margin-top: 56px; padding: 28px 24px 24px; }
.tabbar { display: none; }
.nav-scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .35); z-index: 44; }

/* generator: dwie kolumny zależnie od szerokości obszaru treści, nie okna */
@container (min-width: 940px) {
  .gen { grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr); }
  .preview-pane { position: sticky; top: calc(var(--top-h) + 16px); }
  .tabs, .only-mobile { display: none !important; }
}
@container (max-width: 939.98px) {
  .gen { grid-template-columns: minmax(0, 1fr) !important; }
  .gen .preview-pane { position: static !important; }
  .gen[data-view="form"] .preview-pane, .gen[data-view="preview"] .form-pane { display: none; }
  .gen .tabs { display: grid !important; }
}
.tabs { top: calc(var(--top-h) + 8px); }

/* strona główna jako pulpit */
.home { max-width: 1180px; margin: 0 auto; padding: 8px 24px 0; }
.home .hero { background: none; padding: 28px 0 8px; text-align: left; }
.home .hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 6px; letter-spacing: -.015em; }
.hero-search-btn { display: flex !important; width: 100%; max-width: 720px; align-items: center; gap: 10px; padding: 14px 16px; font: inherit; color: var(--muted); text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); cursor: text; }
.hero-search-btn:hover { border-color: var(--accent); }
.home section { margin-top: 28px; }
.home .section-title { font-size: 1.1rem; margin: 0 0 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .92rem; }
.chips a:hover { border-color: var(--accent); }
.more { margin: 12px 0 0; font-weight: 600; }
.more a { text-decoration: none; }
.home-cols { display: grid; gap: 0 24px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 900px) { .home-cols { grid-template-columns: 1fr 1fr; } }
.home .season { margin-top: 28px; }
.home .wrap { padding: 0; max-width: none; }

/* spisy wzorów */
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 8px; scrollbar-width: thin; }
.cat-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; }
.cat-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cat-tabs a[aria-current="page"] em { background: rgb(255 255 255 / .2); color: inherit; }
.list-filter { margin: 4px 0 8px; }
.cat h2 a { color: inherit; text-decoration: none; }

/* telefon i tablet: panel wysuwany, dolne zakładki */
@media (max-width: 1023.98px) {
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; z-index: 45; transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow); padding-top: 18px; }
  .nav-open .sidebar { transform: none; }
  .gsearch { display: none; }
  .search-toggle { display: inline-grid; }
  .topbar .search-toggle { margin-left: auto; }
  .search-open .gsearch { display: flex; position: absolute; inset: 0; max-width: none; padding: 10px 12px; background: var(--surface); }
  .search-open .gsearch > svg { left: 24px; }
  .search-open .kbd { display: none; }
  .search-open .search-input { padding-right: 12px; }
  .search-open .search-list { left: 12px; right: 12px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 600 .7rem var(--font); color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .tabbar .on { color: var(--accent); }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .main-col .wrap, .home { padding-left: 16px; padding-right: 16px; }
  .site-foot { padding-left: 16px; padding-right: 16px; }
  #btn-install { display: none; }
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
@media (max-width: 380px) { .topbar .logo { font-size: 1rem; } }
@media print {
  .topbar, .sidebar, .tabbar, .nav-scrim, .skip { display: none !important; }
  body { padding: 0 !important; }
  .shell { display: block; }
}
.hero-search-btn svg { flex: none; }
.search-input:focus ~ .kbd, .search-input:not(:placeholder-shown) ~ .kbd { display: none; }

/* ---------- niszczarka metadanych ---------- */
.conv-drop small { display: block; font-weight: 500; font-size: .88rem; margin-top: 4px; }
.sh-opts { display: grid; gap: 8px; margin: 14px 0; }
.sh-opts .check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.sh-opts .check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.sh-opts small { color: var(--muted); }
.sh-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.sh-file { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; justify-items: start; box-shadow: var(--shadow); }
.sh-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; width: 100%; }
.sh-name { min-width: 0; overflow-wrap: anywhere; }
.sh-name small { display: block; color: var(--muted); font-size: .82rem; }
.sh-badge { flex: none; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.sh-badge.ok { background: #dcfce7; color: #166534; }
.sh-badge.err { background: #fee2e2; color: #991b1b; }
.sh-found { width: 100%; }
.sh-found summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.sh-found dl { margin: 8px 0 0; display: grid; gap: 2px; font-size: .88rem; }
.sh-found dl > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px; padding: 5px 8px; border-radius: 6px; }
.sh-found dl > div:nth-child(odd) { background: var(--surface-2); }
.sh-found dl > div.hot { background: #fef3c7; color: #78350f; }
.sh-found dt { color: var(--muted); }
.sh-found .hot dt { color: inherit; font-weight: 600; }
.sh-found dd { margin: 0; overflow-wrap: anywhere; text-decoration: line-through; text-decoration-color: rgb(0 0 0 / .35); }
.sh-none { margin: 0; color: var(--muted); font-size: .9rem; }
.sh-warn { margin: 0; font-size: .88rem; padding: 8px 10px; border-left: 3px solid #b45309; background: var(--surface-2); border-radius: 0 6px 6px 0; }
@media (max-width: 520px) { .sh-found dl > div { grid-template-columns: 1fr; gap: 0; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sh-badge.ok { background: #14532d; color: #bbf7d0; }
  :root:not([data-theme="light"]) .sh-badge.err { background: #7f1d1d; color: #fecaca; }
  :root:not([data-theme="light"]) .sh-found dl > div.hot { background: #422006; color: #fde68a; }
  :root:not([data-theme="light"]) .sh-found dd { text-decoration-color: rgb(255 255 255 / .35); }
}

/* ---------- strona główna: pasek zaufania, jak to działa, pytania ---------- */
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-width: 980px; }
.trust li { display: grid; gap: 2px; padding: 0 0 0 14px; border-left: 3px solid var(--accent); }
.trust b { font-size: .95rem; }
.trust span { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.home-how, .home-faq { margin-top: 32px; }
.home-faq .faq { max-width: 860px; }
.prose details.faq { margin: 16px 0 0; }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr 1fr; gap: 12px; } .trust li { padding-left: 10px; } }

/* ---------- artykuły ---------- */
.tldr { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 18px; margin: 0 0 20px; }
.tldr h2 { font-size: 1rem; margin: 0 0 6px; }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin: 4px 0; }
.guide-toc a { color: inherit; }
.article section { scroll-margin-top: 80px; }
.meta-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 8px 0 12px; }
.meta-table th, .meta-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.meta-table th { background: var(--surface-2); font-size: .85rem; }
.meta-table td:first-child { font-weight: 600; width: 34%; }
@media (max-width: 520px) { .meta-table td:first-child { width: 40%; } .meta-table th, .meta-table td { padding: 6px; } }

/* =========================================================
   Odświeżenie wyglądu 2026: granatowy pasek, turkusowy hero,
   jeden jasny cyjan jako akcent. Formularze zostają jasne.
   ========================================================= */
body { word-spacing: .05em; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -.02em; }
::selection { background: rgb(46 230 240 / .35); }
:focus-visible { outline-color: var(--focus); }

/* górny pasek: granat */
.topbar { background: var(--navy-900); border-bottom: 1px solid rgb(255 255 255 / .06); color: #fff; }
.topbar .logo { color: #fff; font-weight: 800; letter-spacing: -.02em; }
.topbar .logo svg { color: var(--cyan); }
.topbar .icon-btn { color: #dbe7f5; }
.topbar .icon-btn:hover { background: rgb(255 255 255 / .08); }
.topbar .search-input { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .14); color: #fff; }
.topbar .search-input::placeholder { color: #9fb3cc; }
.topbar .search-input:focus { background: rgb(255 255 255 / .12); border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(46 230 240 / .22); }
.topbar .gsearch > svg { color: #9fb3cc; }
.topbar .kbd { background: transparent; border-color: rgb(255 255 255 / .18); color: #9fb3cc; }
.topbar #btn-install { background: transparent; color: #fff; border-color: rgb(255 255 255 / .25); }
@media (max-width: 1023.98px) {
  .search-open .gsearch { background: var(--navy-900); }
}

/* panel boczny */
.sidebar { background: var(--surface); }
.nav-top { border-radius: 10px; }
.nav-top[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--cyan); }
.nav-sub a[aria-current="page"], .nav-sub a.on { box-shadow: inset 3px 0 0 var(--cyan); }

/* przyciski: główna akcja w cyjanie */
.btn { border-radius: 10px; transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s; }
.btn.primary, a.btn.primary { background: var(--cyan); border-color: var(--cyan); color: var(--cyan-ink); box-shadow: 0 6px 18px -8px rgb(14 160 180 / .8); }
.btn.primary:hover { filter: none; background: #5ff0f6; transform: translateY(-1px); }

/* strona główna: turkusowo-granatowy pas od krawędzi do krawędzi */
.home { padding-top: 0; }
.home .hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0 calc(50% - 50cqi); padding: 56px calc(50cqi - 50%) 64px;
  background: var(--hero-grad); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 24px;
}
.home .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.home .hero h1 { color: var(--cyan); font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; max-width: 20ch; text-wrap: balance; }
.home .hero .lead { color: #d6e4f3; font-size: 1.1rem; max-width: 60ch; margin-bottom: 8px; }
.home .hero-search-btn { max-width: 640px; padding: 16px 18px; border: 0; border-radius: 14px; background: #fff; color: #4a5872; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .55), 0 0 0 1px rgb(46 230 240 / .25); font-size: 1.02rem; }
.home .hero-search-btn svg { color: var(--teal-600); }
.home .hero-search-btn:hover { box-shadow: 0 18px 40px -16px rgb(0 0 0 / .55), 0 0 0 2px var(--cyan); }
.home .trust { margin-top: 28px; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 640px; }
.home .trust li { border-left-color: var(--cyan); }
.home .trust b { color: #fff; }
.home .trust span { color: #b5c7dc; }
.hero-art { display: none; width: 100%; max-width: 420px; height: auto; justify-self: center; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .35)); }
@container (min-width: 980px) {
  .home .hero { grid-template-columns: minmax(0, 1fr) 380px; padding-top: 64px; padding-bottom: 72px; }
  .hero-art { display: block; }
}

/* nagłówki sekcji z cyjanową kreską */
.home .section-title, .section-title { font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--cyan), var(--teal-600)); flex: none; }
.home section:not(.hero) { margin-top: 40px; }

/* karty spraw */
.intent { border-radius: 16px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; }
.intent:hover { border-color: var(--cyan); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.intent svg { color: var(--cyan); background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); border-radius: 12px; box-shadow: inset 0 0 0 1px rgb(46 230 240 / .25); }
.intent em { color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.card a { border-radius: 16px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card a:hover { border-color: var(--cyan); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card .go { color: var(--accent); }
.chips a:hover, .cat-tabs a:hover { border-color: var(--cyan); }
.cat-tabs a[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.cat-tabs a[aria-current="page"] em { background: var(--cyan); color: var(--cyan-ink); }
.steps li { border-radius: 16px; box-shadow: var(--shadow); }
.steps li::before { background: var(--cyan); color: var(--cyan-ink); }

/* podstrony: nagłówek jako granatowa karta z gradientem */
.page-head { position: relative; overflow: hidden; isolation: isolate; margin: 10px 0 24px; padding: 26px 28px 24px; border-radius: 20px; background: var(--hero-grad); color: #fff; box-shadow: var(--shadow-lg); }
.page-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgb(46 230 240 / .35); box-shadow: 0 0 0 28px rgb(46 230 240 / .05), 0 0 0 60px rgb(46 230 240 / .04); z-index: -1; }
.page-head h1 { color: #fff; margin-top: 0; font-weight: 800; text-wrap: balance; }
.page-head .lead { color: #d0dff0; margin-bottom: 0; }
.page-head .btn { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .22); color: #fff; margin-top: 16px; }
.page-head .btn:hover { border-color: var(--cyan); }
.page-head a { color: var(--cyan); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 600px) { .page-head { padding: 20px 18px; border-radius: 16px; } }

/* formularz i podgląd: jasno i spokojnie */
#form fieldset { border-radius: 16px; box-shadow: var(--shadow); }
.field input, .field select, .field textarea { border-radius: 10px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgb(46 230 240 / .22); }
.tabs button[aria-selected="true"] { color: var(--accent); }

/* stopka: granat */
.site-foot { background: var(--navy-950); border-top: 0; color: #9fb0c8; }
.site-foot a { color: #d9e6f5; }
.site-foot a:hover { color: var(--cyan); }
.foot-name, .others h2 { color: #fff; }
.others a span { color: #8094b0; }
.fine { border-top-color: rgb(255 255 255 / .1); }
/* Parasolka w stopce: na razie stoi w miejscu (animacja schowana do dopracowania).
   Obrót włącza się klasą .obrot na .foot-team (w build.mjs): pełny obrót w 10 s, ruch jednostajny.
   Przy włączonym „ogranicz ruch” w systemie i tak stoi w miejscu. */
.foot-team { display: flex; justify-content: center; margin: 28px 0 0; }
/* Na razie parasolka TEAM12 jest całkiem schowana. Wraca po dopisaniu klasy .pokaz do .foot-team w build.mjs. */
.foot-team:not(.pokaz) { display: none; }
/* Mała flaga Polski w górnym pasku, tuż przy logo: 8:5, zaokrąglona, z cienkim obrysem. */
.flaga-pl { display: inline-flex; flex: none; align-items: center; margin-left: -4px; }
.flaga-pl .flaga { display: block; border-radius: 2px; }
.foot-team img { display: block; width: 48px; height: 48px; }
.foot-team.obrot img { transform-origin: 50% 50%; will-change: transform; animation: parasolka-obrot 10s linear infinite; }
@keyframes parasolka-obrot { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .foot-team.obrot img { animation: none; will-change: auto; } }

/* dolne zakładki na telefonie */
@media (max-width: 1023.98px) {
  .tabbar .on { color: var(--accent); }
  .tabbar .on svg { filter: drop-shadow(0 0 6px rgb(46 230 240 / .5)); }
  .home .hero { padding-top: 32px; padding-bottom: 36px; }
}

/* hero: małe dokumenciki wynurzające się jak w lampie lava */
.hero-float { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-float i {
  --x: 50%; --s: 1; --d: 26s; --t: 0s; --o: .3; --b: 0px; --sw: 22px;
  position: absolute; left: var(--x); top: 100%; width: calc(26px * var(--s)); height: calc(34px * var(--s));
  filter: blur(var(--b)) drop-shadow(0 0 calc(8px * var(--s)) rgb(46 230 240 / .75));
  opacity: 0; will-change: transform, opacity;
  animation: lava var(--d) cubic-bezier(.45, .05, .55, .95) var(--t) infinite;
}
.hero-float i::before {
  content: ""; position: absolute; inset: 0; border-radius: calc(5px * var(--s));
  background:
    linear-gradient(#0b2d57, #0b2d57) calc(5px * var(--s)) calc(7px * var(--s)) / 45% calc(3px * var(--s)) no-repeat,
    repeating-linear-gradient(180deg, rgb(11 45 87 / .35) 0 calc(2px * var(--s)), transparent calc(2px * var(--s)) calc(5px * var(--s))) calc(5px * var(--s)) calc(14px * var(--s)) / 62% 50% no-repeat,
    linear-gradient(160deg, #ffffff, #bfeef4);
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.hero-float i:nth-child(1)  { --x: 6%;  --s: .8;  --d: 31s; --t: -4s;  --o: .4; --b: 1.5px; }
.hero-float i:nth-child(2)  { --x: 18%; --s: 1.1; --d: 27s; --t: -17s; --o: .3; --b: 2px; --sw: -26px; }
.hero-float i:nth-child(3)  { --x: 34%; --s: .65; --d: 34s; --t: -9s;  --o: .38;  --b: 1px; }
.hero-float i:nth-child(4)  { --x: 49%; --s: .9;  --d: 29s; --t: -22s; --o: .28; --b: 2.5px; --sw: -18px; }
.hero-float i:nth-child(5)  { --x: 62%; --s: 1.3; --d: 24s; --t: -2s;  --o: .6; }
.hero-float i:nth-child(6)  { --x: 71%; --s: .7;  --d: 30s; --t: -14s; --o: .5; --b: 1px; --sw: -30px; }
.hero-float i:nth-child(7)  { --x: 79%; --s: 1;   --d: 26s; --t: -20s; --o: .65; }
.hero-float i:nth-child(8)  { --x: 87%; --s: .6;  --d: 33s; --t: -7s;  --o: .5;  --b: 1px; --sw: -20px; }
.hero-float i:nth-child(9)  { --x: 93%; --s: 1.15; --d: 28s; --t: -25s; --o: .58; }
.hero-float i:nth-child(10) { --x: 56%; --s: .55; --d: 36s; --t: -30s; --o: .4; --b: 1.5px; --sw: 28px; }
@keyframes lava {
  0%   { transform: translate3d(0, 0, 0) rotate(-10deg) scale(.85); opacity: 0; }
  12%  { opacity: var(--o); }
  35%  { transform: translate3d(var(--sw), -260px, 0) rotate(4deg) scale(1); }
  65%  { transform: translate3d(calc(var(--sw) * -.6), -520px, 0) rotate(-6deg) scale(1.04); }
  85%  { opacity: var(--o); }
  100% { transform: translate3d(calc(var(--sw) * .4), -780px, 0) rotate(8deg) scale(.9); opacity: 0; }
}
@container (max-width: 700px) { .hero-float i:nth-child(n+7) { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-float { display: none; }
  .intent, .card a, .btn { transition: none; }
  .intent:hover, .card a:hover, .btn.primary:hover { transform: none; }
}
@media print {
  .page-head { background: none; color: #000; box-shadow: none; padding: 0; }
  .page-head::after { display: none; }
  .page-head h1 { color: #000; }
}

/* =========================================================
   Pomysły 1–9: ikony dwutonowe, pasy z unoszącymi się ikonami,
   prywatność na żywo, postęp, efekty pobrania, przełącznik wyglądu
   ========================================================= */
svg .du { opacity: .38; }
.nav-top.on svg .du, .tabbar .on svg .du { opacity: .45; }

/* przełącznik jasny / ciemny */
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.topbar .theme-btn { flex: none; }
/* Na wąskim telefonie zmieścić przełącznik wyglądu obok lupy i języków bez przewijania paska w bok. */
@media (max-width: 600px) { .topbar { gap: 4px; padding: 0 10px; } .topbar .theme-btn, .topbar .search-toggle { width: 36px; height: 36px; } .topbar .flaga-pl { margin-left: 0; } }
@media (max-width: 380px) { .topbar .theme-btn, .topbar .search-toggle { width: 34px; } .topbar .lang-switch { margin-left: 0; gap: 0; } .topbar .lang-switch a { padding: 4px 3px; } }
@media (max-width: 1023.98px) { .topbar .search-toggle { margin-left: auto; } .topbar .theme-btn { margin-left: 0; } }

/* podstrony: małe ikony sprawy unoszą się w pasie nagłówka */
.head-float { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.head-float i { --x: 70%; --s: 26px; --d: 18s; --t: 0s; --o: .35; --sw: 14px; position: absolute; left: var(--x); top: 100%; width: calc(var(--s) * 1.35); height: calc(var(--s) * 1.35); color: var(--cyan); opacity: 0; filter: drop-shadow(0 0 8px rgb(46 230 240 / .7)); animation: lava-head var(--d) cubic-bezier(.45, .05, .55, .95) var(--t) infinite; }
.head-float svg { width: 100%; height: 100%; display: block; }
.head-float svg .du { opacity: .5; }
.head-float i:nth-child(1) { --x: 58%; --s: 22px; --d: 17s; --t: -3s;  --o: .3; }
.head-float i:nth-child(2) { --x: 68%; --s: 34px; --d: 21s; --t: -12s; --o: .45; --sw: -18px; }
.head-float i:nth-child(3) { --x: 77%; --s: 18px; --d: 15s; --t: -7s;  --o: .35; }
.head-float i:nth-child(4) { --x: 85%; --s: 40px; --d: 24s; --t: -18s; --o: .5;  --sw: -12px; }
.head-float i:nth-child(5) { --x: 92%; --s: 24px; --d: 19s; --t: -9s;  --o: .4; }
.head-float i:nth-child(6) { --x: 45%; --s: 16px; --d: 23s; --t: -15s; --o: .22; --sw: 20px; }
.head-float i:nth-child(7) { --x: 63%; --s: 28px; --d: 16s; --t: -1s;  --o: .4;  --sw: -10px; }
.head-float i:nth-child(8) { --x: 81%; --s: 20px; --d: 14s; --t: -10s; --o: .35; --sw: 16px; }
.head-float i:nth-child(9) { --x: 96%; --s: 30px; --d: 20s; --t: -5s;  --o: .45; --sw: -22px; }
@keyframes lava-head {
  0%   { transform: translate3d(0, 0, 0) rotate(-12deg) scale(.8); opacity: 0; }
  15%  { opacity: var(--o); }
  50%  { transform: translate3d(var(--sw), -180px, 0) rotate(6deg) scale(1); }
  85%  { opacity: var(--o); }
  100% { transform: translate3d(calc(var(--sw) * -.5), -360px, 0) rotate(-4deg) scale(.9); opacity: 0; }
}
@media (max-width: 600px) { .head-float i:nth-child(n+5):not(:nth-child(7)) { display: none; } .head-float i:nth-child(1) { --x: 70%; } .head-float i:nth-child(3) { --x: 84%; } }

/* prywatność na żywo */
.live-privacy { position: relative; margin-top: 16px; display: inline-block; max-width: 100%; }
.live-privacy summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgb(46 230 240 / .12); border: 1px solid rgb(46 230 240 / .45); color: #e6fbfd; font-size: .88rem; font-weight: 600; cursor: pointer; user-select: none; }
.live-privacy summary::-webkit-details-marker { display: none; }
.live-privacy summary b { color: var(--cyan); }
.live-privacy summary:hover { background: rgb(46 230 240 / .2); }
.live-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cyan); opacity: .8; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgb(46 230 240 / .7); animation: live-pulse 2s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px rgb(46 230 240 / 0); } 100% { box-shadow: 0 0 0 0 rgb(46 230 240 / 0); } }
.live-body { margin-top: 10px; padding: 12px 14px; max-width: 560px; border-radius: 12px; background: rgb(4 15 34 / .55); border: 1px solid rgb(46 230 240 / .25); font-size: .88rem; color: #d0dff0; }
.live-body p { margin: 0 0 8px; }
.live-body p:last-child { margin: 0; color: #a9bdd6; }
.live-body b { color: var(--cyan); }
.live-privacy.warn summary { border-color: #ffb547; background: rgb(255 181 71 / .15); }
.live-privacy.warn .live-dot { background: #ffb547; }
.page-head .live-privacy + .share-row { display: inline-flex; vertical-align: top; margin: 0 0 0 8px; }
.page-head .live-privacy + .share-row .btn { margin-top: 16px; }

/* pierścień postępu */
.fill-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: sticky; top: calc(var(--top-h) + 10px); z-index: 4; }
.fill-progress svg { flex: none; transform: rotate(-90deg); }
.fill-progress circle { fill: none; stroke-width: 4; }
.fill-progress .track { stroke: var(--surface-2); }
.fill-progress .bar { stroke: var(--cyan); stroke-linecap: round; transition: stroke-dasharray .35s ease; filter: drop-shadow(0 0 3px rgb(46 230 240 / .6)); }
.fill-progress span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fill-progress b { font-size: .95rem; }
.fill-progress small { color: var(--muted); font-size: .8rem; }
.fill-progress.full { border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(46 230 240 / .18), var(--shadow); }
@container (max-width: 939.98px) { .fill-progress { position: static; } }
.tab-count { font-style: normal; font-size: .72rem; font-weight: 700; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--cyan); color: var(--cyan-ink); }

/* pole świeci w podglądzie */
.paper .glow { animation: field-glow 1.1s ease-out; border-radius: 3px; }
@keyframes field-glow { 0% { background-color: rgb(46 230 240 / .55); box-shadow: 0 0 0 3px rgb(46 230 240 / .35); } 100% { background-color: rgb(46 230 240 / 0); box-shadow: 0 0 0 3px rgb(46 230 240 / 0); } }

/* po pobraniu: dokumenty odlatują w górę, potwierdzenie na dole */
.fly-doc { position: fixed; z-index: 90; width: 52px; height: 68px; pointer-events: none; filter: drop-shadow(0 0 14px rgb(46 230 240 / .9)); animation: fly-up 1.1s cubic-bezier(.3, .1, .3, 1) forwards; }
.fly-doc::before { content: ""; position: absolute; inset: 0; border-radius: 9px; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); background: linear-gradient(#0b2d57, #0b2d57) 10px 14px / 45% 6px no-repeat, repeating-linear-gradient(180deg, rgb(11 45 87 / .35) 0 4px, transparent 4px 10px) 10px 28px / 62% 50% no-repeat, linear-gradient(160deg, #fff, #bfeef4); }
.fly-doc.fly-0 { --r: -18deg; --dx: -40px; animation-delay: .08s; transform: scale(.6); opacity: 0; }
.fly-doc.fly-1 { --r: 6deg; --dx: 0px; }
.fly-doc.fly-2 { --r: 20deg; --dx: 44px; animation-delay: .14s; transform: scale(.6); opacity: 0; }
@keyframes fly-up {
  0% { transform: translate(0, 20px) scale(.4) rotate(0); opacity: 0; }
  20% { opacity: 1; transform: translate(0, 0) scale(1) rotate(calc(var(--r) * .3)); }
  100% { transform: translate(var(--dx), -260px) scale(.7) rotate(var(--r)); opacity: 0; }
}
.fly-ring { position: fixed; z-index: 89; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid var(--cyan); pointer-events: none; animation: ring-out .8s ease-out forwards; }
@keyframes ring-out { from { transform: scale(.5); opacity: 1; } to { transform: scale(9); opacity: 0; } }
.done-toast { position: fixed; z-index: 95; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 18px 12px 14px; border-radius: 14px; background: var(--navy-900); color: #fff; font-size: .92rem; font-weight: 600; box-shadow: 0 0 0 1px rgb(46 230 240 / .4), var(--shadow-lg); animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.3), toast-out .4s ease-in 2.8s forwards; }
.done-toast svg { flex: none; color: var(--cyan-ink); background: var(--cyan); border-radius: 50%; padding: 3px; width: 24px; height: 24px; }
@keyframes toast-in { from { transform: translate(-50%, 20px); opacity: 0; } }
@keyframes toast-out { to { transform: translate(-50%, 12px); opacity: 0; } }
@media (max-width: 1023.98px) { .done-toast { bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
  .head-float, .fly-doc, .fly-ring { display: none; }
  .live-dot { animation: none; }
  .done-toast { animation: none; }
}
@media print {
  .head-float, .live-privacy, .fill-progress, .fly-doc, .fly-ring, .done-toast, .theme-btn { display: none !important; }
}

/* Panel: skrót wyszukiwania i rozwinięta kategoria (wzory i kalkulatory). */
.nav-search { display: block; width: calc(100% - 40px); margin: 2px 10px 8px 30px; padding: 6px 10px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); font: 600 .82rem var(--font); text-align: left; cursor: pointer; }
.nav-search:hover { color: var(--text); }
.nav-kids { list-style: none; margin: 0 0 6px; padding: 0 0 0 12px; }
.nav-kids a { font-size: .84rem; }

/* Kalkulatory: beta, pasek wyniku na telefonie, druk samej karty. */
.badge-beta { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border-radius: 999px; background: #b45309; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: lowercase; }
.card .badge-beta { margin: 0 0 6px; }
/* D. Kafle kalkulatorów: równe wysokości, „Policz →” zawsze na dole, „beta” jako mała plakietka obok tytułu.
   Wszystkie rzędy tej samej wysokości (grid-auto-rows: 1fr, od dwóch kolumn), więc siatka wygląda równo także przy dwulinijkowych tytułach. */
@media (min-width: 700px) { .kalk-karty { grid-auto-rows: 1fr; } }
.kalk-karty .card a { padding: 18px 0 20px !important; }
.kalk-tytul h3 { display: inline; }
.kalk-karty .card h3 { margin: 0; font-size: 1.04rem; line-height: 1.35; letter-spacing: -.005em; text-wrap: balance; }
.kalk-karty .card p { flex: 1; margin: 6px 0 16px; line-height: 1.5; }
.kalk-karty .card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; }
.kalk-karty .badge-beta { margin: 0 0 0 8px; vertical-align: .14em; white-space: nowrap; padding: 1px 7px 0; background: transparent; border: 1px solid color-mix(in srgb, #b45309 45%, transparent); color: #b45309; font-size: .66rem; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; border-radius: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kalk-karty .badge-beta { color: #fbbf24; border-color: rgb(251 191 36 / .4); } }
:root[data-theme="dark"] .kalk-karty .badge-beta { color: #fbbf24; border-color: rgb(251 191 36 / .4); }
.calc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.calc-actions [data-akcja-msg] { color: var(--muted); font-size: .85rem; }
.field-error { color: #b91c1c; font-size: .82rem; }
.calc input[aria-invalid="true"], .calc select[aria-invalid="true"] { border-color: #b91c1c; }
.przyklad { margin: 28px 0; }
.calc-sticky { display: none; }
@media (min-width: 761px) {
  .calc-side { position: sticky; top: calc(var(--top-h) + 16px); }
}
@media (max-width: 760px) {
  .calc-sticky:not([hidden]) { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + 8px + env(safe-area-inset-bottom)); z-index: 30; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--navy-900, #061833); color: #fff; text-align: left; box-shadow: var(--shadow); }
  .calc-sticky span { display: block; font-size: .72rem; opacity: .75; }
  .calc-sticky b { font-size: .95rem; }
}
@media print {
  .calc-page .calc, .calc-actions, .calc-sticky, .badge-beta, .nav-search { display: none !important; }
  .calc-box { display: block; }
}

/* ---------- podpowiedź adresata (src/adresat.js) ---------- */
.adresat { display: grid; gap: 6px; margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.adresat > label { font-size: .86rem; font-weight: 600; color: var(--text); }
.adresat-pole { position: relative; }
.adresat-pole input { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.adresat-pole input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(46 230 240 / .22); }
.adresat-lista { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; max-height: 320px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); }
.adresat-lista li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.adresat-lista li small { color: var(--muted); font-size: .8rem; }
.adresat-lista li:hover, .adresat-lista li[aria-selected="true"] { background: var(--accent-soft); }
.adresat-lista li.pusto { cursor: default; color: var(--muted); }
.adresat-karta { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.adresat-karta p { margin: 0 0 8px; }
.adresat-karta dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; }
.adresat-karta dt { color: var(--muted); }
.adresat-karta dd { margin: 0; overflow-wrap: anywhere; }
.adresat-karta code { font-size: .85rem; }
.adresat-uwaga { color: var(--text); background: var(--accent-soft); padding: 6px 10px; border-radius: 8px; }
.adresat-organ { margin: 8px 0; }
.adresat-us { margin: 6px 0 10px; padding-left: 18px; }
.adresat-us [aria-current] { font-weight: 700; }
.adresat-zrodlo { color: var(--muted); font-size: .8rem; }
.adresat .btn-mini { font: inherit; font-size: .78rem; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.adresat .btn-link { font: inherit; padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; cursor: pointer; }
@media (max-width: 520px) { .adresat-karta dl { grid-template-columns: 1fr; } }
@media print { .adresat { display: none !important; } }
/* ---------- umowa wypełniana przez dwie strony ---------- */
.two-party { margin: 0 0 12px; padding: 14px 16px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); font-size: .92rem; }
.two-party p { margin: 0 0 8px; }
.two-party .kody { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.two-party .kody b, .share-kod b { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .06em; white-space: nowrap; }
.two-party .small-note { color: var(--muted); }
.kod-zmiana { padding: 8px 10px; border-radius: 8px; background: rgb(180 83 9 / .12); color: #92400e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kod-zmiana { color: #fbbf24; } }
:root[data-theme="dark"] .kod-zmiana { color: #fbbf24; }
.field.locked input, .field.locked select, .field.locked textarea { background: var(--surface); border-style: dashed; color: var(--muted); }
.field.locked > label::after { content: " · wpisała druga strona"; font-weight: 500; }
.field.check.locked label::after { content: " (wpisała druga strona)"; color: var(--muted); font-size: .8rem; }
#form fieldset.locked-group .fields { display: none; }
#form fieldset.locked-group legend::after { content: " · wpisała druga strona"; font-weight: 500; color: var(--muted); font-size: .86rem; }
.locked-sum { clear: both; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; font-size: .9rem; }
.locked-sum dt { color: var(--muted); font-size: .8rem; font-weight: 600; }
.locked-sum dd { margin: 0; overflow-wrap: anywhere; }
.paper .kod-kontrolny .kod { white-space: nowrap; font-weight: 600; }
.paper .kod-kontrolny { margin-top: 2.2em; padding-top: .5em; border-top: 1px solid #ccc; font-size: 8pt; color: #555; text-align: left; }

.share-dlg { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.share-dlg::backdrop { background: rgb(6 24 51 / .55); }
.share-in { padding: 18px 20px; display: grid; gap: 14px; }
.share-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.share-head h2 { margin: 0; font-size: 1.15rem; }
.share-opt { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.share-opt legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.share-opt label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.share-opt label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.share-opt input { margin-top: 3px; accent-color: var(--accent); }
.share-opt span { display: grid; gap: 2px; }
.share-opt small { color: var(--muted); font-size: .82rem; }
.share-kto { grid-template-columns: 1fr 1fr; }
.share-kto legend { grid-column: 1 / -1; }
.share-body { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
@media (max-width: 600px) { .share-body { grid-template-columns: 1fr; } }
.share-qr { justify-self: center; padding: 6px; background: #fff; border-radius: 8px; border: 1px solid var(--line); line-height: 0; }
.share-qr svg { display: block; max-width: 100%; height: auto; }
.share-side { display: grid; gap: 10px; min-width: 0; }
.share-kod { margin: 0; padding: 10px 12px; background: var(--accent-soft); border-radius: 9px; font-size: .92rem; }
.share-kod b { font-size: 1.1rem; }
.share-kod small { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; }
.share-url { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.share-url input { width: 100%; font: inherit; font-size: .85rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-dlg-msg { margin: 0; font-size: .86rem; }
.share-in > .small-note { margin: 0; color: var(--muted); }
@media print { .share-dlg, .two-party { display: none !important; } .paper .kod-kontrolny { color: #333; } }

/* ---------- strony „Do kogo piszesz?” (/urzedy/) ---------- */
.urzad-szukaj { margin: 0 0 24px; max-width: 760px; }
.urzad-szukaj .adresat { background: var(--surface); box-shadow: var(--shadow); }
.adresat-pisma-tyt { margin: 10px 0 4px !important; }
.adresat-pisma { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; }
.adresat-pisma small { color: var(--muted); }
.urzedy-h2 { margin: 8px 0 12px; font-size: 1.15rem; }
.urzedy-jak { margin-top: 28px; max-width: 760px; }
/* Odpowiedz na pismo */
.pi-wynik { display: grid; gap: 18px; margin-top: 8px; }
.pi-wynik:has(.pi-podglad:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 860px) { .pi-wynik:has(.pi-podglad:not([hidden])) { grid-template-columns: 1fr; } }
.pi-podglad { position: sticky; top: 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: 82vh; background: #fff; }
.pi-podglad canvas, .pi-podglad img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .pi-podglad { position: static; max-height: 60vh; } }
.pi-dane { display: grid; gap: 14px; min-width: 0; }
.pi-src { font-size: .78rem; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.pi-src b { font-weight: 700; }
.pi-wysoka b { color: #15803d; }
.pi-srednia b { color: #b45309; }
.pi-niska b, .pi-brak { color: #b91c1c; }
.pi-pou small { display: block; color: var(--muted); }
.pi-dor { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; margin: 0; }
.pi-dor legend { font-weight: 700; padding: 0 4px; }
.pi-dor label.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pi-wysoka b { color: #4ade80; }
  :root:not([data-theme="light"]) .pi-srednia b { color: #fbbf24; }
  :root:not([data-theme="light"]) .pi-niska b, :root:not([data-theme="light"]) .pi-brak { color: #f87171; }
}
:root[data-theme="dark"] .pi-wysoka b { color: #4ade80; }
:root[data-theme="dark"] .pi-srednia b { color: #fbbf24; }
:root[data-theme="dark"] .pi-niska b, :root[data-theme="dark"] .pi-brak { color: #f87171; }
.pi-skan { display: grid; gap: 10px; }
.pi-skan p { margin: 0; }
.pi-skan .btn { justify-self: start; }
.pi-ocr-postep { display: flex; align-items: center; gap: 10px; font-size: .86rem; }
.pi-ocr-postep progress { flex: 1; max-width: 260px; accent-color: var(--accent); }
.changelog-links { display: block; margin-top: .2rem; font-size: .9em; }

/* ---------- asystent „Co mam zrobić?” (src/asystent.js) ---------- */
.nav-top em.nav-nowe { background: var(--cyan); color: var(--cyan-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .64rem; }
.hero-asy { display: flex; align-items: center; gap: 14px; max-width: 720px; margin-top: 12px; padding: 12px 14px 12px 12px; border-radius: 14px; text-decoration: none; color: #fff; background: linear-gradient(110deg, rgb(46 230 240 / .2), rgb(46 230 240 / .06)); border: 1px solid rgb(46 230 240 / .55); box-shadow: 0 10px 30px -16px rgb(46 230 240 / .7); transition: transform .15s, border-color .15s, background-color .15s; }
.hero-asy:hover { transform: translateY(-1px); border-color: var(--cyan); background-color: rgb(46 230 240 / .1); }
.hero-asy-ik { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--cyan); color: var(--cyan-ink); }
.hero-asy-ik .du, .asy-opcja .du { opacity: .45; }
.hero-asy-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hero-asy-txt b { font-size: 1rem; }
.hero-asy-txt small { color: #c9dcee; font-size: .86rem; line-height: 1.4; }
.hero-asy em { flex: none; font-style: normal; font-weight: 700; color: var(--cyan-ink); background: var(--cyan); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.hero-asy em i { font-style: normal; }
@media (max-width: 620px) {
  .hero-asy { flex-wrap: wrap; }
  .hero-asy-txt { flex-basis: calc(100% - 64px); }
  .hero-asy em { flex: 1; text-align: center; }
}

.asy { position: relative; margin: 8px 0 12px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; scroll-margin-top: 80px; }
.asy::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--teal-600), var(--navy-700)); }
.asy-pasek { display: flex; align-items: center; gap: 10px; min-height: 34px; margin-bottom: 8px; font-size: .88rem; }
.asy-krok-nr { color: var(--muted); font-weight: 600; }
.asy-gotowe { color: var(--accent); }
.asy-wstecz, .asy-od-nowa { font: inherit; font-weight: 600; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 6px 4px; border-radius: 8px; }
.asy-od-nowa { margin-left: auto; color: var(--muted); }
.asy-wstecz:hover, .asy-od-nowa:hover { text-decoration: underline; }
.asy-sciezka { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; }
.asy-sciezka li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.asy-sciezka li + li::before { content: "›"; color: var(--muted); }
.asy-chip { font: inherit; font-size: .82rem; font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent); cursor: pointer; }
.asy-chip:hover { border-color: var(--accent); }
.asy-pyt { font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.2; margin: 4px 0 6px; letter-spacing: -.01em; outline: none; }
.asy-pomoc { color: var(--muted); margin: 0 0 14px; max-width: 70ch; }
.asy-skrot { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--accent); color: var(--text); text-decoration: none; font-size: .9rem; background: var(--accent-soft); }
.asy-skrot svg { color: var(--accent); flex: none; }
.asy-skrot b { margin-left: auto; color: var(--accent); }
.asy-opcje { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.asy-opcja { display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; min-height: 64px; padding: 12px 14px; font: inherit; text-align: left; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.asy-opcja:hover, .asy-opcja:focus-visible { border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-1px); }
.asy-opcja svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 12px; color: var(--cyan); background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); box-shadow: inset 0 0 0 1px rgb(46 230 240 / .25); }
.asy-opcja span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.asy-opcja b { font-size: 1rem; line-height: 1.3; }
.asy-opcja small { color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.asy-opcja i { font-style: normal; font-size: 1.4rem; color: var(--muted); line-height: 1; }
.asy-opcja:hover i { color: var(--accent); }
.asy-opcje-start .asy-opcja { min-height: 84px; }

.asy-data-pole { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.asy-data-pole input { font: inherit; font-size: 1.05rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); min-width: 190px; }
.asy-data-pole input:focus { border-color: var(--accent); outline: 2px solid var(--focus); outline-offset: 1px; }
.asy-blad { color: #b91c1c; font-size: .88rem; margin: 8px 0 0; }

.asy-kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.asy-opis { margin: 0 0 16px; max-width: 75ch; line-height: 1.55; }
.asy-termin { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 18px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.asy-termin-data { flex: none; display: grid; justify-items: center; width: 92px; padding: 10px 6px; border-radius: 14px; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; box-shadow: var(--shadow); }
.asy-termin-data span { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: var(--cyan); }
.asy-termin-data small { font-size: .8rem; color: #b5c7dc; }
.asy-termin-data em { font-style: normal; font-size: .75rem; font-weight: 600; margin-top: 4px; }
.asy-termin-tresc { min-width: 0; flex: 1; }
.asy-termin-tresc h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.asy-termin-tresc ul { margin: 0 0 8px; padding-left: 18px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.asy-licznik { display: inline-block; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.asy-pilne .asy-licznik, .asy-minal .asy-licznik { background: #fee2e2; color: #991b1b; }
.asy-pilne, .asy-minal { border-color: #fca5a5; }
.asy-ok .asy-licznik { background: #dcfce7; color: #166534; }
.asy-termin-akcje { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.asy-termin-brak { display: block; border-style: dashed; }
.asy-termin-brak p { margin: 0; }
@media (max-width: 520px) { .asy-termin { flex-direction: column; } .asy-termin-data { grid-auto-flow: column; width: auto; gap: 10px; align-items: baseline; padding: 8px 14px; } }

.asy-kroki { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: k; }
.asy-krok { position: relative; display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.asy-krok:not(:last-child)::after { content: ""; position: absolute; left: 29px; top: 48px; bottom: -11px; width: 2px; background: var(--line); }
.asy-nr { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 800; font-size: .9rem; background: var(--accent-soft); color: var(--accent); position: relative; z-index: 1; }
.asy-k-wzor .asy-nr { background: var(--cyan); color: var(--cyan-ink); }
.asy-krok > div { min-width: 0; flex: 1; display: grid; gap: 4px; justify-items: start; }
.asy-rodzaj { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.asy-rodzaj svg { color: var(--accent); }
.asy-krok b { font-size: 1.02rem; line-height: 1.35; }
.asy-krok p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.asy-krok .btn { margin-top: 6px; text-decoration: none; }
.asy-link { font-weight: 600; font-size: .92rem; margin-top: 2px; }
.asy-z-adresatem { font-weight: 600; font-size: .75rem; opacity: .8; }
.asy-finder { width: 100%; margin-top: 6px; }
.asy-finder .adresat { margin: 0; }
.asy-uwagi { margin: 16px 0 0; padding: 12px 14px 12px 34px; border-radius: 12px; background: var(--accent-soft); font-size: .9rem; line-height: 1.5; }
.asy-prawo { margin: 14px 0 0; color: var(--muted); font-size: .8rem; }

.asy-karta.asy-wejscie { animation: asy-in .28s ease-out; }
@keyframes asy-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .asy-karta.asy-wejscie { animation: none; } .asy-opcja, .hero-asy { transition: none; } }

.asy-mapa { margin: 28px 0 8px; }
.asy-mapa .section-title { margin: 0 0 4px; }
.asy-mapa-lead { color: var(--muted); margin: 0 0 12px; }
.asy-grupa { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 8px; }
.asy-grupa summary { cursor: pointer; padding: 12px 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.asy-grupa summary em { font-style: normal; font-size: .75rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
.asy-grupa ul { list-style: none; margin: 0; padding: 0 14px 12px; display: grid; gap: 10px; }
.asy-grupa li { display: grid; gap: 1px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; }
.asy-grupa li > a { font-weight: 600; }
.asy-grupa li span { color: var(--muted); font-size: .84rem; }
@media (max-width: 620px) { .asy { padding: 16px 12px; border-radius: 16px; margin-left: -4px; margin-right: -4px; } .asy-opcje { grid-template-columns: 1fr; } .asy-chip { max-width: 180px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .asy-pilne .asy-licznik, :root:not([data-theme="light"]) .asy-minal .asy-licznik { background: #450a0a; color: #fecaca; }
  :root:not([data-theme="light"]) .asy-pilne, :root:not([data-theme="light"]) .asy-minal { border-color: #7f1d1d; }
  :root:not([data-theme="light"]) .asy-ok .asy-licznik { background: #14532d; color: #bbf7d0; }
  :root:not([data-theme="light"]) .asy-blad { color: #f87171; }
}
:root[data-theme="dark"] .asy-pilne .asy-licznik, :root[data-theme="dark"] .asy-minal .asy-licznik { background: #450a0a; color: #fecaca; }
:root[data-theme="dark"] .asy-pilne, :root[data-theme="dark"] .asy-minal { border-color: #7f1d1d; }
:root[data-theme="dark"] .asy-ok .asy-licznik { background: #14532d; color: #bbf7d0; }
:root[data-theme="dark"] .asy-blad { color: #f87171; }

/* Zmniejsz PDF */
.kp-ustawienia { margin: 12px 0; }
.kp-poziomy { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 10px; display: grid; gap: 6px; }
.kp-poziomy legend { font-weight: 600; padding: 0 4px; }
.kp-wynik { margin: 12px 0; }
.kp-liczby { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin-bottom: 6px; }
.kp-zysk { color: var(--accent); font-size: 1.15rem; }
.kp-pasek { width: 100%; height: 10px; accent-color: var(--accent); }
.kp-podglad { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 12px 0; }
.kp-podglad figure { margin: 0; }
.kp-podglad figcaption { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.kp-podglad canvas { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* ---------- kolory modułów (parasolka w logo) ----------
   Tła zostają bez zmian. Kolor modułu dostają akcenty: ikony, aktywne zakładki, paski i ikony w nagłówku.
   --m-ink: tekst i ikony na jasnym/ciemnym tle (WCAG AA ≥ 4,5:1), --m-hero: akcent na granatowym nagłówku. */
:root { --m-kalk: #B45309; --m-edytor: #D91C84; --m-wnioski: #1E3A8A; --m-artykuly: #047857;
  --mh-kalk: #F59E0B; --mh-edytor: #F472B6; --mh-wnioski: #8FA8FF; --mh-artykuly: #34D399; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --m-kalk: #F59E0B; --m-edytor: #F472B6; --m-wnioski: #8FA8FF; --m-artykuly: #34D399; } }
:root[data-theme="dark"] { --m-kalk: #F59E0B; --m-edytor: #F472B6; --m-wnioski: #8FA8FF; --m-artykuly: #34D399; }
[data-m="kalk"] { --m-ink: var(--m-kalk); --m-hero: var(--mh-kalk); }
[data-m="edytor"] { --m-ink: var(--m-edytor); --m-hero: var(--mh-edytor); }
[data-m="wnioski"] { --m-ink: var(--m-wnioski); --m-hero: var(--mh-wnioski); }
[data-m="artykuly"] { --m-ink: var(--m-artykuly); --m-hero: var(--mh-artykuly); }
.nav-top[data-m] svg { color: var(--m-ink); }
.nav-top.on[data-m] { color: var(--m-ink); }
.nav-top[data-m][aria-current="page"] { box-shadow: inset 3px 0 0 var(--m-ink); }
.tabbar a[data-m].on { color: var(--m-ink); }
.tabbar a[data-m].on svg { filter: none; }
.tabbar a[data-m].on::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--m-ink); }
.tabbar a { position: relative; }
body[data-m] .page-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--m-hero); }
body[data-m] .head-float i { color: var(--m-hero); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--m-hero) 70%, transparent)); }
body[data-m] .page-head::after { border-color: color-mix(in srgb, var(--m-hero) 40%, transparent); box-shadow: 0 0 0 28px color-mix(in srgb, var(--m-hero) 6%, transparent), 0 0 0 60px color-mix(in srgb, var(--m-hero) 4%, transparent); }
body[data-m] .page-head a { color: var(--m-hero); }
body[data-m] .page-head .btn:hover { border-color: var(--m-hero); }
body[data-m] .nav-sub a[aria-current="page"], body[data-m] .nav-sub a.on { color: var(--m-ink); box-shadow: inset 3px 0 0 var(--m-ink); }
@media print { body[data-m] .page-head::before { display: none; } }

/* Wersje językowe: przełącznik PL · UA · EN · RU w górnym pasku i notka „dokument po polsku” */
.lang-switch { display: flex; flex: none; gap: 2px; margin-left: 4px; }
.lang-switch a { padding: 4px 6px; border-radius: 6px; color: #b9c9de; font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; line-height: 1; }
.lang-switch a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.lang-switch a[aria-current] { color: var(--cyan-ink, #04222a); background: var(--cyan); }
.topbar.obcy .gsearch, .topbar.obcy .search-toggle, .topbar.obcy #btn-install { display: none !important; }
.topbar.obcy .lang-switch { margin-left: auto; }
.po-polsku { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--surface); font-size: .92rem; line-height: 1.5; }
@media (max-width: 600px) {
  .lang-switch a { padding: 4px 4px; font-size: .7rem; }
  .topbar:not(.obcy) .lang-switch { order: 5; }
}

/* ---------- pismo w wersji językowej: tłumaczenie do wglądu i umowa dwujęzyczna ---------- */
.widok-pisma { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.widok-pisma[hidden] { display: none; }
.widok-pisma .btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.paper .tlum-uwaga { padding: 6px 10px; border: 1px dashed #999; border-radius: 6px; font-style: italic; }
.paper table.dwu { table-layout: fixed; margin: 0 0 1em; font-size: .92em; }
.paper table.dwu td { width: 50%; border: 0; padding: 0 10px 0 0; }
.paper table.dwu td + td { padding: 0 0 0 10px; border-left: 1px solid #bbb; }
.paper table.dwu .place { text-align: right; }
.paper table.dwu h3 { margin-top: .6em; }
@media screen and (max-width: 600px) {
  .paper table.dwu, .paper table.dwu tbody, .paper table.dwu tr, .paper table.dwu td { display: block; width: auto; }
  .paper table.dwu td + td { padding: 0 0 .6em 10px; margin-bottom: .6em; border-left: 3px solid #bbb; }
}
@media print {
  .po-polsku, .widok-pisma { display: none !important; }
  .paper table.dwu tr { break-inside: avoid; }
}

/* =========================================================
   Próba „ciepły papier” (jasny) i matowy grafit (ciemny).
   Jedna warstwa nadpisań na końcu pliku, łatwa do wycofania.
   ========================================================= */
:root {
  --bg: #f8f7f4; --surface: #ffffff; --surface-2: #f1efe9; --text: #0f172a; --muted: #5b6474; --line: #e5e7eb;
  --accent: #2563eb; --accent-ink: #ffffff; --accent-soft: #eaf0fe; --focus: #2563eb; --ink: #0f172a;
  --tile-r: 20px;
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 4px 14px -6px rgb(15 23 42 / .08);
  --shadow-lg: 0 1px 2px rgb(15 23 42 / .05), 0 14px 32px -14px rgb(15 23 42 / .18);
  --title-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f17; --surface: #121620; --surface-2: #181d29; --text: #e7e9ee; --muted: #9098a8; --line: rgb(255 255 255 / .08);
    --accent: #38bdf8; --accent-ink: #06121f; --accent-soft: rgb(56 189 248 / .1); --focus: #38bdf8; --ink: #e7e9ee;
    --shadow: none; --shadow-lg: 0 0 0 1px rgb(255 255 255 / .1);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f17; --surface: #121620; --surface-2: #181d29; --text: #e7e9ee; --muted: #9098a8; --line: rgb(255 255 255 / .08);
  --accent: #38bdf8; --accent-ink: #06121f; --accent-soft: rgb(56 189 248 / .1); --focus: #38bdf8; --ink: #e7e9ee;
  --shadow: none; --shadow-lg: 0 0 0 1px rgb(255 255 255 / .1);
}
::selection { background: var(--accent-soft); }

/* górny pasek i panel: papier zamiast granatu */
/* Szkło: na komputerze 76% krycia, na telefonie wyraźnie bardziej przejrzyste (58%).
   Im mniej krycia, tym mocniejsze rozmycie, żeby tekst pod paskiem nie mieszał się z logo i językami. */
.topbar { background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); color: var(--text); }
@media (max-width: 767.98px) { .topbar { background: color-mix(in srgb, var(--bg) 58%, transparent); backdrop-filter: saturate(1.7) blur(18px); -webkit-backdrop-filter: saturate(1.7) blur(18px); } }
.topbar .logo { color: var(--text); }
.topbar .logo svg { color: var(--ink); }
.topbar .icon-btn { color: var(--text); }
.topbar .icon-btn:hover { background: var(--surface-2); }
.topbar .search-input { background: var(--surface); border-color: var(--line); color: var(--text); }
.topbar .search-input::placeholder, .topbar .gsearch > svg, .topbar .kbd { color: var(--muted); }
.topbar .search-input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.topbar .kbd { border-color: var(--line); }
.topbar #btn-install { color: var(--text); border-color: var(--line); }
@media (max-width: 1023.98px) { .search-open .gsearch { background: var(--bg); } }
.sidebar { background: var(--bg); border-right-color: var(--line); }
.nav-top svg, .nav-top.on svg { color: currentColor; }
.nav-top.on { color: var(--text); }
.nav-top[aria-current="page"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nav-sub a[aria-current="page"], .nav-sub a.on { box-shadow: none; background: var(--surface); color: var(--text); }
svg .du { opacity: 1; }
.tabbar { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 1023.98px) {
  .tabbar { grid-template-columns: repeat(4, 1fr); }
  .tabbar a { gap: 4px; font-weight: 500; }
  .tabbar .on { color: var(--accent); }
  .tabbar .on svg { filter: none; }
}

/* przyciski: kobalt, bez poświaty */
.btn.primary, a.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: none; }
.btn.primary:hover { background: var(--accent); filter: brightness(1.08); transform: none; }
.section-title::before { display: none; }
.home .section-title, .section-title { font-weight: 700; letter-spacing: -.015em; }

/* karty: biała kartka z cienką ramką */
.intent, .card a, .steps li, #form fieldset, .tool-links a { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); background: var(--surface); }
.intent:hover, .card a:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.intent svg { color: var(--ink); background: var(--surface-2); box-shadow: none; padding: 6px; }
.intent em { color: var(--muted); background: var(--surface-2); }
.steps li::before { background: var(--ink); color: var(--surface); }
.cat-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.cat-tabs a[aria-current="page"] em { background: rgb(255 255 255 / .18); color: inherit; }
.chips a:hover, .cat-tabs a:hover { border-color: var(--accent); }

/* nagłówki podstron: kartka z liniami zamiast gradientu */
.page-head { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); background-image: repeating-linear-gradient(180deg, transparent 0 27px, color-mix(in srgb, var(--line) 70%, transparent) 27px 28px); }
.page-head::after { display: none; }
.page-head::before { content: ""; position: absolute; right: 0; top: 0; width: 28px; height: 28px; background: linear-gradient(225deg, var(--bg) 50%, var(--surface-2) 50%); border-bottom-left-radius: 8px; box-shadow: -1px 1px 0 var(--line); }
.page-head h1 { color: var(--text); font-family: var(--title-serif); font-weight: 600; letter-spacing: -.01em; }
.page-head .lead { color: var(--muted); }
.page-head .btn { background: var(--surface); border-color: var(--line); color: var(--text); }
.page-head a { color: var(--accent); }
.head-float { display: none; }

/* stopka */
.site-foot { background: var(--surface-2); color: var(--muted); border-top: 1px solid var(--line); }
.site-foot a { color: var(--text); }
.site-foot a:hover { color: var(--accent); }
.foot-name, .others h2 { color: var(--text); }
.others a span { color: var(--muted); }
.fine { border-top-color: var(--line); }

/* ---------- strona główna: Bento ---------- */
.home { padding-top: 20px; }
.bento { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 0; }
.home section.bento { margin-top: 0; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--tile-r); box-shadow: var(--shadow); padding: 22px; color: var(--text); text-decoration: none; min-width: 0; }
.t-hero { grid-column: span 8; grid-row: span 2; padding: 40px 40px 34px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate;
  background-image: linear-gradient(var(--surface), var(--surface)), radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--muted) 30%, transparent) 1px, transparent 0); }
.t-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--muted) 22%, transparent) 1px, transparent 0) 0 0 / 22px 22px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 55%); mask-image: linear-gradient(200deg, #000, transparent 55%); }
.t-hero h1 { font-family: var(--title-serif); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 14px; max-width: 16ch; color: var(--text); text-wrap: balance; }
.t-hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 52ch; margin: 0 0 22px; }
.home .t-hero .hero-search-btn { max-width: none; padding: 18px 20px; font-size: 1.08rem; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--muted); box-shadow: inset 0 1px 2px rgb(15 23 42 / .04); }
.home .t-hero .hero-search-btn svg { color: var(--accent); }
.home .t-hero .hero-search-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.pills a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s; }
.pills a:hover { border-color: var(--accent); color: var(--accent); }

.t-asy { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; background: var(--ink); color: #fff; border-color: transparent; }
.t-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #a9b4c7; }
.t-asy h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 16px; color: #fff; letter-spacing: -.01em; }
.scen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scen a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); color: #fff; text-decoration: none; transition: background .15s, border-color .15s; }
.scen a:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .22); }
.scen svg { flex: none; color: #93b4ff; }
.scen span { flex: 1; min-width: 0; }
.scen b { display: block; font-size: .97rem; font-weight: 600; }
.scen small { display: block; color: #a9b4c7; font-size: .82rem; }
.scen i { font-style: normal; color: #a9b4c7; }
.t-more { margin-top: auto; padding-top: 14px; color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; }
.t-more:hover { text-decoration: underline; }

.t-stat { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; transition: border-color .15s, transform .15s; }
.t-stat:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-1px); }
.t-stat svg { grid-row: span 2; color: var(--ink); background: var(--surface-2); border-radius: 12px; padding: 9px; width: 42px; height: 42px; }
.t-stat b { font-size: 1.6rem; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.t-stat span { color: var(--muted); font-size: .88rem; }
.t-priv { grid-column: span 3; display: flex; gap: 12px; align-items: center; background: var(--surface-2); box-shadow: none; }
.t-priv svg { flex: none; color: #059669; }
.t-priv b { display: block; font-size: .95rem; }
.t-priv small { display: block; color: var(--muted); font-size: .83rem; line-height: 1.4; }

@container (max-width: 980px) {
  .t-hero { grid-column: span 12; grid-row: auto; }
  .t-asy { grid-column: span 12; grid-row: auto; }
  .t-stat, .t-priv { grid-column: span 6; }
}
@container (max-width: 560px) {
  .bento { gap: 10px; }
  .tile { padding: 16px; border-radius: 18px; }
  .t-hero { padding: 26px 18px 20px; }
  .t-hero h1 { font-size: 2.05rem; }
  .t-hero .lead { font-size: .98rem; margin-bottom: 16px; }
  .t-stat { grid-column: span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; }
  .t-stat svg { width: 36px; height: 36px; padding: 7px; }
  .t-stat b { font-size: 1.35rem; }
  .t-stat span { font-size: .78rem; line-height: 1.3; }
  .t-priv { grid-column: span 12; }
}

/* ciemny: matowy grafit, jeden akcent */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-asy { background: #151a26; border-color: var(--line); }
  :root:not([data-theme="light"]) .scen svg, :root:not([data-theme="light"]) .t-stat svg, :root:not([data-theme="light"]) .intent svg { color: var(--accent); }
  :root:not([data-theme="light"]) .t-priv svg { color: #10b981; }
  :root:not([data-theme="light"]) .page-head::before { display: none; }
}
:root[data-theme="dark"] .t-asy { background: #151a26; border-color: var(--line); }
:root[data-theme="dark"] .scen svg, :root[data-theme="dark"] .t-stat svg, :root[data-theme="dark"] .intent svg { color: var(--accent); }
:root[data-theme="dark"] .t-priv svg { color: #10b981; }
:root[data-theme="dark"] .page-head::before { display: none; }

/* wersje UA/EN/RU: ten sam układ, wysokości kafelków rosną z tekstem */
.obca .t-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 22ch; overflow-wrap: anywhere; hyphens: auto; }
.obca .t-hero .lead { margin-bottom: 0; }
.scen-kroki li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }
.scen-kroki b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ink); font-size: .85rem; }
.scen-kroki span { font-size: .92rem; line-height: 1.45; color: #e5e9f0; }
.obca .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); align-items: stretch; }
.obca .card a { height: 100%; gap: 6px; }
.obca .card b { overflow-wrap: anywhere; }
.obca .card span { color: var(--muted); font-size: .92rem; }
.obca #wzory h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.bento, .tile, .cards > li { min-height: 0; height: auto; }
.bento { grid-auto-rows: auto; align-items: stretch; }
.tile b, .tile small, .tile span, .pills a { overflow-wrap: anywhere; }
@media (max-width: 1023.98px) { .tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; } }
/* przełącznik języka i logo w nowych barwach */
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--text); background: var(--surface-2); }
.lang-switch a[aria-current] { color: var(--surface); background: var(--ink); }
.topbar .logo svg path:nth-child(1) { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; }
.topbar .logo svg path:nth-child(2) { fill: var(--accent); }
.topbar .logo svg path:nth-child(3) { fill: var(--ink); }
/* kropki w hero tylko w prawym górnym rogu */
.t-hero::before { -webkit-mask-image: radial-gradient(70% 80% at 100% 0, #000, transparent 70%); mask-image: radial-gradient(70% 80% at 100% 0, #000, transparent 70%); }
.t-hero { background-image: none; }
.tile { border: 1px solid #e3e4e8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile { border-color: var(--line); } }
:root[data-theme="dark"] .tile { border-color: var(--line); }
.scen-kroki b { color: #0f172a; }
.obca .t-hero h1 { hyphens: manual; }
@container (max-width: 560px) { .obca .t-hero .lead { font-size: .95rem; line-height: 1.55; } }
/* jeden akcent: bez kolorów modułów i cyjanu */
.nav-top[data-m] svg { color: currentColor; }
.nav-top.on[data-m], body[data-m] .nav-sub a[aria-current="page"], body[data-m] .nav-sub a.on { color: var(--text); }
.nav-top[data-m][aria-current="page"], body[data-m] .nav-sub a[aria-current="page"], body[data-m] .nav-sub a.on { box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.tabbar a[data-m].on { color: var(--accent); }
.tabbar a[data-m].on::before { background: var(--accent); }
body[data-m] .page-head::before { display: none; }
body[data-m] .page-head a { color: var(--accent); }
.nav-top em.nav-nowe { background: var(--accent-soft); color: var(--accent); }
.page-head { background-image: none; }
.page-head::before { display: none; }
.live-privacy summary { background: color-mix(in srgb, #059669 8%, var(--surface)); border-color: color-mix(in srgb, #059669 35%, var(--line)); color: var(--text); }
.live-privacy summary b, .live-tag { color: #059669; }
.live-dot { background: #10b981; }
.t-note { margin: auto 0 10px; padding-top: 16px; color: #a9b4c7; font-size: .86rem; line-height: 1.45; }
.t-more { margin-top: 0; padding: 12px 14px; border-radius: 12px; background: #fff; color: #0f172a; text-align: center; }
.t-more:hover { text-decoration: none; filter: brightness(.95); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-more { background: var(--accent); color: var(--accent-ink); } }
:root[data-theme="dark"] .t-more { background: var(--accent); color: var(--accent-ink); }

/* =========================================================
   Wariant redakcyjny: mniej pudełek, ostre rogi, cienkie linie.
   Jedyny własny znak: czerwony margines jak w zeszycie.
   ========================================================= */
:root { --radius: 4px; --red: #c8372d; --serif-ui: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --red: #e0574b; } }
:root[data-theme="dark"] { --red: #e0574b; }

.home { max-width: 1120px; }
.red-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.red-lead { color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 54ch; margin: 0 0 28px; }
.red-lead b { color: var(--text); font-weight: 700; }

/* hero: tekst + prawdziwa kartka */
.home section.red-hero { margin-top: 0; padding: 40px 0 48px; display: grid; gap: 48px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; border-bottom: 1px solid var(--line); }
.red-hero .red-haslo { font-family: var(--serif-ui); font-weight: 600; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 18px; max-width: 14ch; text-wrap: balance; }
.red-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; border-top: 1px solid var(--text); padding-top: 16px; max-width: 560px; }
.red-demo-tytul { grid-column: 1 / -1; margin: 0; font-weight: 600; font-size: .95rem; }
.red-demo label { display: grid; gap: 2px; }
.red-demo label span { font-size: .8rem; color: var(--muted); }
.red-demo input { font: inherit; font-size: 1rem; padding: 8px 0; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 35%, transparent); border-radius: 0; background: transparent; color: var(--text); }
.red-demo input:focus { outline: none; border-bottom: 2px solid var(--accent); padding-bottom: 7px; }
.red-demo input::placeholder { color: color-mix(in srgb, var(--muted) 60%, transparent); }
.red-szer { grid-column: 1 / -1; }
.red-demo-dalej { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 8px 0 0; }
.red-demo-dalej .btn { border-radius: 4px; padding: 11px 18px; font-weight: 600; }
.red-demo-dalej a:not(.btn) { color: var(--muted); font-size: .92rem; }

.kartka { margin: 0; position: relative; }
.kartka-a4 { position: relative; aspect-ratio: 1 / 1.414; background: #fffefb; color: #1b1b1b; border: 1px solid #e2ded5; border-radius: 2px; box-shadow: 0 1px 0 rgb(0 0 0 / .03), 0 30px 50px -30px rgb(40 30 10 / .35); padding: 9% 9% 8% 15%; font: 400 clamp(.62rem, 1.05vw, .82rem)/1.65 "Times New Roman", Times, "Liberation Serif", serif; overflow: hidden; }
.kartka-a4::before { content: ""; position: absolute; top: 0; bottom: 0; left: 10%; border-left: 1.5px solid var(--red); opacity: .8; }
.kartka-a4 p { margin: 0 0 1em; text-align: justify; }
.kartka-a4 h2 { font: 700 1.25em/1.3 inherit; font-family: inherit; text-align: center; margin: 2.2em 0 1.4em; letter-spacing: 0; }
.k-miejsce { text-align: right !important; }
.k-adr { text-align: right !important; margin-top: 1.6em !important; }
.k-podpis { margin-top: 3em !important; text-align: right !important; font-size: .85em; color: #666; }
.k-podpis span { display: block; margin-left: auto; width: 40%; border-bottom: 1px dotted #444; margin-bottom: 4px; height: 2.4em; }
[data-k] { transition: background-color .3s; }
[data-k].wpisane { background: #fff4c2; box-shadow: 0 0 0 2px #fff4c2; }

/* wyszukiwarka: jedna linia, bez pudełka */
.home section.red-szukaj { margin-top: 0; padding: 28px 0; border-bottom: 1px solid var(--line); }
.home .red-szukaj .hero-search-btn { max-width: none; border: 0; border-bottom: 2px solid var(--text); border-radius: 0; background: transparent; box-shadow: none; padding: 10px 2px; font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--muted); font-family: var(--serif-ui); }
.home .red-szukaj .hero-search-btn:hover { border-bottom-color: var(--accent); box-shadow: none; }
.home .red-szukaj .hero-search-btn svg { color: var(--text); }
.red-czeste { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }
.red-czeste a { color: var(--text); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent); }
.red-czeste a:hover { color: var(--accent); }

/* „Co mam zrobić?” jako pytanie z ankiety */
.home section.red-asy { margin-top: 0; padding: 48px 0; border-bottom: 1px solid var(--line); }
.red-asy h2 { font-family: var(--serif-ui); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 8px; }
.red-asy-pomoc { color: var(--muted); margin: 0 0 22px; }
.ankieta { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 760px; }
.ankieta li { border-bottom: 1px solid var(--line); }
.ankieta a { display: flex; align-items: center; gap: 16px; padding: 16px 4px; color: var(--text); text-decoration: none; }
.ankieta b { display: block; font-size: 1.08rem; font-weight: 600; }
.ankieta small { display: block; color: var(--muted); font-size: .9rem; }
.radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--text) 45%, transparent); position: relative; transition: border-color .15s; }
.ankieta a:hover .radio, .ankieta a:focus-visible .radio { border-color: var(--accent); }
.ankieta a:hover .radio::after, .ankieta a:focus-visible .radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.ankieta a:hover b { color: var(--accent); }

/* nagłówki sekcji: kreska nad tytułem, szeryf */
.home .section-title, .section-title { font-family: var(--serif-ui); font-weight: 600; font-size: 1.6rem; letter-spacing: -.01em; padding-top: 0; margin-bottom: 4px; }
.home section:not(.red-hero):not(.red-szukaj):not(.red-asy) { margin-top: 48px; }

/* listy zamiast kafelków */
.intents { gap: 0 32px !important; }
.intents li { border-top: 1px solid var(--line); }
.intent, .intent:hover { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; transform: none !important; padding: 16px 0 !important; }
.intent:hover b { color: var(--accent); }
.intent svg { background: none !important; padding: 0 !important; width: 24px; height: 24px; color: var(--text) !important; }
.intent em { background: none !important; color: var(--muted) !important; font-style: normal; font-variant-numeric: tabular-nums; }
.cards { gap: 0 32px !important; }
.cards > li { border-top: 1px solid var(--line); }
.card a, .card a:hover { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; transform: none !important; padding: 16px 0 18px !important; }
.card a:hover h3, .card a:hover b { color: var(--accent); }
.tool-links a { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; border-top: 1px solid var(--line) !important; }
.steps { gap: 0 32px !important; }
.steps li { border: 0 !important; border-top: 1px solid var(--text) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; padding: 14px 0 !important; }
.steps li::before { background: none !important; color: var(--red) !important; font-family: var(--serif-ui); font-size: 1.6rem; width: auto; height: auto; display: block; }
.faq { border-radius: 0 !important; box-shadow: none !important; background: transparent !important; border: 0 !important; border-top: 1px solid var(--line) !important; }
.season { border-radius: 0 !important; box-shadow: none !important; }

/* podstrony i formularz: ostre rogi, bez cieni */
.page-head { border-radius: 4px !important; box-shadow: none !important; border: 0 !important; border-left: 2px solid var(--red) !important; background: transparent !important; padding: 8px 0 8px 22px !important; }
#form fieldset { border-radius: 4px !important; box-shadow: none !important; }
.field input, .field select, .field textarea, .btn, .tabs, .tabs button { border-radius: 4px !important; }
.nav-top, .nav-sub a, .search-input, .icon-btn { border-radius: 4px !important; }
.nav-top[aria-current="page"], .nav-top[data-m][aria-current="page"] { box-shadow: inset 2px 0 0 var(--red) !important; background: transparent !important; }
.lang-switch a { border-radius: 3px; }
.live-privacy summary { border-radius: 4px; }

/* UA/EN/RU: ten sam styl, tekst decyduje o wysokości */
.home section.red-obca { margin-top: 0; padding: 40px 0; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); border-bottom: 1px solid var(--line); }
.red-obca h1 { font-family: var(--serif-ui); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 16px; overflow-wrap: break-word; text-wrap: balance; }
.red-obca .red-lead { margin: 0; }
.red-kroki { border-top: 1px solid var(--text); padding-top: 14px; }
.red-kroki ol { list-style: none; counter-reset: k; margin: 0; padding: 0; }
.red-kroki li { counter-increment: k; display: grid; grid-template-columns: 30px 1fr; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.red-kroki li::before { content: counter(k); font-family: var(--serif-ui); font-size: 1.3rem; line-height: 1.1; color: var(--red); }
.obca #wzory h2 { font-family: var(--serif-ui); font-weight: 600; font-size: 1.6rem; }
.obca .card a { gap: 4px; }
.kat-obca { margin-top: 36px; scroll-margin-top: 80px; }
.kat-obca h3 { font-family: var(--serif-ui); font-weight: 600; font-size: 1.25rem; margin: 0; display: flex; align-items: baseline; gap: 10px; }
.kat-obca h3 em { font-style: normal; font-family: var(--sans, inherit); font-size: .85rem; font-weight: 500; color: var(--muted); }
.kat-obca .kat-sub { margin: 4px 0 12px; color: var(--muted); font-size: .95rem; }

@container (max-width: 860px) {
  .home section.red-hero, .home section.red-obca { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; }
  .kartka { max-width: 420px; width: 100%; justify-self: center; }
  .kartka-a4 { font-size: clamp(.55rem, 2.6cqi, .78rem); }
}
@container (max-width: 520px) {
  .red-demo { grid-template-columns: 1fr; }
  .red-hero .red-haslo { font-size: 2.3rem; }
  .red-asy h2 { font-size: 2.1rem; }
  .home section.red-asy { padding: 36px 0; }
}
/* hero: pokaz zamiast formularza, druga kartka pod spodem */
.red-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0; }
.red-cta .btn { border-radius: 4px; padding: 12px 20px; font-weight: 600; }
.red-link { color: var(--text); font-weight: 600; text-underline-offset: 4px; }
.red-link:hover { color: var(--accent); }
.kartka { padding: 0 0 18px 18px; }
.kartka-spod { position: absolute; inset: 18px 0 0 18px; transform: translate(-18px, -18px) rotate(-2.5deg); background: #f3efe6; border: 1px solid #e2ded5; border-radius: 2px; box-shadow: 0 20px 40px -30px rgb(40 30 10 / .35); }
.kartka-spod::before { content: ""; position: absolute; top: 12%; left: 15%; right: 12%; height: 50%; background: repeating-linear-gradient(180deg, #ded8cb 0 3px, transparent 3px 16px); opacity: .6; }
.kartka-a4 { z-index: 1; }
[data-k].pisze::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -2px; background: #1b1b1b; animation: kursor .8s steps(1) infinite; }
@keyframes kursor { 50% { opacity: 0; } }
.k-sig { display: block; width: 70%; height: 100%; margin-left: auto; fill: none; stroke: #1d3a8a; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; }
.kartka.podpisane .k-sig { transition: stroke-dashoffset 1.2s ease; stroke-dashoffset: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kartka-spod { background: #1c2230; border-color: rgb(255 255 255 / .08); } :root:not([data-theme="light"]) .kartka-spod::before { background: repeating-linear-gradient(180deg, rgb(255 255 255 / .08) 0 3px, transparent 3px 16px); } }
:root[data-theme="dark"] .kartka-spod { background: #1c2230; border-color: rgb(255 255 255 / .08); }
@container (max-width: 860px) { .kartka { max-width: 380px; } }
.kartka { max-width: 470px; justify-self: end; width: 100%; }
.kartka-a4 p { text-align: left; }
.red-hero .red-haslo { max-width: 17ch; }
.home section.red-hero { align-items: center; }
.season { border: 0 !important; border-top: 1px solid var(--text) !important; background: transparent !important; padding: 16px 0 0 !important; }
.season h2 { font-family: var(--serif-ui); font-weight: 600; font-size: 1.6rem; }
.home section.red-obca { margin-top: 0 !important; }
.kartka { max-width: 430px; }
@container (max-width: 520px) { .kartka { max-width: 320px; } .home section.red-obca { padding-top: 20px; } }
/* telefon: kartka zaraz pod tytułem, żeby od razu było widać, czym jest strona */
@container (max-width: 520px) {
  .home section.red-hero { gap: 0; }
  .red-lewa { display: contents; }
  .red-lewa > .red-kicker { order: 1; }
  .red-lewa > .red-haslo { order: 2; }
  .red-hero .kartka { order: 3; max-width: 270px; margin: 6px auto 26px; }
  .red-lewa > .red-lead { order: 4; margin-bottom: 20px; }
  .red-lewa > .red-cta { order: 5; }
  .kartka-a4 { font-size: .5rem; }
}

/* ---------- hero „wow”: trzy pisma, podpis atramentem, pieczątka, tilt 3D ---------- */
.kartka { padding: 0; perspective: 1400px; }
.kartka-scena { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 3deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.kartka-spod { inset: 0; transform: translate3d(-22px, 14px, -40px) rotate(-3deg); overflow: hidden; }
.kartka-spod::before { top: 24%; }
.kartka-spod-tytul { position: absolute; top: 15%; left: 15%; right: 12%; text-align: center; font: 700 clamp(.6rem, 1.1vw, .85rem) "Times New Roman", Times, serif; color: #9c958a; }
.kartka-a4 {
  background-color: #fffdf8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(105deg, rgb(255 255 255 / .6), transparent 40%, rgb(120 100 60 / .04));
  box-shadow: 0 1px 1px rgb(60 40 10 / .06), 0 8px 16px -8px rgb(60 40 10 / .18), 0 40px 70px -30px rgb(40 30 10 / .45);
  transition: transform .65s cubic-bezier(.5, 0, .3, 1), opacity .65s;
}
.kartka-a4.przyjazd { animation: kartka-wjazd .7s cubic-bezier(.2, .8, .2, 1); }
.kartka-a4.odjazd { transform: translate3d(60%, -6%, 0) rotate(8deg); opacity: 0; }
@keyframes kartka-wjazd { from { transform: translate3d(-22px, 14px, -40px) rotate(-3deg); opacity: .4; } }
.kartka-tresc .k-r { text-align: right; }
.kartka-tresc h2 { font: 700 1.3em/1.3 "Times New Roman", Times, serif; text-align: center; margin: 1.8em 0 1.2em; }
.k-pole { color: #b9b2a5; letter-spacing: .05em; border-radius: 1px; }
.k-pole.pisze, .k-pole.wpisane { color: #1b1b1b; letter-spacing: 0; }
.k-pole.pisze { background: #fff1b8; box-shadow: 0 0 0 2px #fff1b8; }
.k-pole.wpisane { background: transparent; box-shadow: inset 0 -.35em 0 #fff1b8; transition: box-shadow 1.2s ease; }
.k-pole.pisze::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -2px; background: #1b1b1b; animation: kursor .8s steps(1) infinite; }
.kartka-a4 .k-sig { position: absolute; right: 9%; bottom: 12%; width: 34%; height: auto; margin: 0; fill: none; stroke: #1d3a8a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; filter: drop-shadow(0 0 .3px #1d3a8a); }
.kartka-a4 .k-sig path:nth-child(2) { stroke-width: 1.1; opacity: .7; }
.kartka-a4.podpisane .k-sig { transition: stroke-dashoffset 1.3s cubic-bezier(.6, 0, .3, 1); stroke-dashoffset: 0; }
.k-stempel { position: absolute; left: 22%; bottom: 9%; display: grid; place-items: center; padding: .55em 1.2em .5em; border: .22em double var(--red); border-radius: 6px; color: var(--red); font: 800 clamp(.8rem, 1.5vw, 1.15rem)/1 var(--font); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-11deg) scale(1.9); opacity: 0; mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.55' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.55' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.k-stempel small { font-size: .5em; letter-spacing: .2em; margin-top: .35em; font-weight: 700; }
.kartka-a4.gotowe .k-stempel { animation: stempel .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.kartka-a4.gotowe { animation: drgniecie .3s .12s ease-out; }
@keyframes stempel { 0% { opacity: 0; transform: rotate(-11deg) scale(1.9); } 60% { opacity: .95; transform: rotate(-11deg) scale(.94); } 100% { opacity: .9; transform: rotate(-11deg) scale(1); } }
@keyframes drgniecie { 0%, 100% { translate: 0 0; } 30% { translate: 0 2px; } 60% { translate: 0 -1px; } }
.kartka-podpis { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; font-size: .85rem; color: var(--muted); }
.kartka-nazwa { font-weight: 600; color: var(--text); }
.kartka-kropki { display: flex; gap: 6px; }
.kartka-kropki i { width: 18px; height: 2px; background: var(--line); transition: background .3s; }
.kartka-kropki i.on { background: var(--red); }
@media (prefers-reduced-motion: reduce) { .kartka-scena { transform: none; transition: none; } .k-stempel { opacity: .9; transform: rotate(-11deg); } .kartka-a4 .k-sig { stroke-dashoffset: 0; } }
@container (max-width: 860px) { .kartka-scena { transform: rotateY(-4deg) rotateX(2deg); } }
@container (max-width: 520px) { .kartka-podpis { margin-top: 18px; font-size: .78rem; } .kartka-spod { transform: translate3d(-12px, 10px, -30px) rotate(-3deg); } }
/* ostry tekst: bez stałej warstwy GPU, na telefonie bez 3D */
.kartka-scena { will-change: auto; transform: rotateY(var(--ry, -4deg)) rotateX(var(--rx, 2deg)); }
@media (pointer: coarse), (max-width: 860px) { .kartka { perspective: none; } .kartka-scena { transform: none !important; transition: none; } .kartka-spod { transform: translate(-12px, 10px) rotate(-3deg); } }
h1.red-kicker { font-family: var(--font); line-height: 1.4; max-width: none; }
/* tekst wpisywany atramentem (kobalt jak długopis), bez zakreślacza */
.kartka-a4 { --atrament: #1e3a8a; }
.k-pole.pisze, .k-pole.wpisane { color: var(--atrament); background: none; box-shadow: none; font-style: italic; }
.k-pole.wpisane { box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--atrament) 30%, transparent); transition: none; }
.k-pole.pisze::after { background: var(--atrament); }
.kartka-a4 .k-sig { stroke: var(--atrament); }
.k-pole.wpisane { box-shadow: none; }
/* słowa zamiast liter: miękkie wejście atramentu */
.k-pole.pisze::after { display: none; }
.k-slowo { display: inline-block; animation: slowo .42s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes slowo { from { opacity: 0; filter: blur(3px); transform: translateY(3px); } }
/* wow3: słowa w równym rytmie, z akcentem, bez przeliczania układu */
.k-pole { color: inherit; letter-spacing: 0; background-image: linear-gradient(90deg, #b9b2a5 50%, transparent 0); background-size: 4px 1px; background-repeat: repeat-x; background-position: 0 92%; }
.k-pole.pisze, .k-pole.wpisane { font-style: normal; }
.k-slowo { display: inline-block; color: var(--atrament); font-style: italic; opacity: 0; transform: translateY(2px) scale(1.04); filter: blur(2px); text-shadow: 0 0 10px rgb(37 99 235 / .55); animation: none; }
.pisz .k-slowo { animation: slowo-wejscie .9s cubic-bezier(.22, .8, .25, 1) both; animation-delay: calc(var(--i) * 270ms); }
@keyframes slowo-wejscie {
  0% { opacity: 0; transform: translateY(3px) scale(1.06); filter: blur(3px); color: #2563eb; text-shadow: 0 0 12px rgb(37 99 235 / .6); }
  35% { opacity: 1; transform: translateY(0) scale(1.04); filter: blur(0); color: #2563eb; text-shadow: 0 0 10px rgb(37 99 235 / .45); }
  100% { opacity: 1; transform: none; filter: none; color: var(--atrament); text-shadow: 0 0 0 transparent; }
}
.bez-ruchu .k-slowo { animation: none; opacity: 1; transform: none; filter: none; text-shadow: none; }
/* wow4: płynące czoło wypełnienia (miękka maska + lekkie rozmycie), bez kropek */
.k-pole { background: none; }
.k-slowo { opacity: 1; transform: none; text-shadow: none; filter: none; color: var(--atrament);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(50% - 22px), transparent calc(50% + 22px)); mask-image: linear-gradient(90deg, #000 calc(50% - 22px), transparent calc(50% + 22px));
  -webkit-mask-size: calc(200% + 44px) 100%; mask-size: calc(200% + 44px) 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.pisz .k-slowo { animation: plyn var(--d, 300ms) linear var(--t, 0ms) both, ostrosc calc(var(--d, 300ms) + 380ms) ease-out var(--t, 0ms) both; }
@keyframes plyn { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes ostrosc { from { filter: blur(2.2px); color: #2563eb; } to { filter: blur(0); color: var(--atrament); } }
.bez-ruchu .k-slowo { animation: none; -webkit-mask-position: 0 0; mask-position: 0 0; }

/* Lenis (płynny scroll kółkiem, src/site.js) */
html.lenis, html.lenis body { height: auto; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* podpis imieniem i nazwiskiem z pisma: odręczne pismo odsłaniane od lewej, potem kreska pod spodem.
   Krój, forma podpisu, kreska, nachylenie i miejsce losuje home.js przy każdym piśmie. */
.k-imie { position: absolute; right: var(--sig-r, 9%); bottom: var(--sig-b, 21%); max-width: 44%; display: none; transform: rotate(var(--sig-rot, -4deg)); transform-origin: right bottom; }
.k-imie span { display: block; white-space: nowrap; padding: .1em .3em .15em .3em; margin: -.1em -.3em 0 -.3em; font: 400 var(--sig-fs, 2.5em)/1.15 var(--sig-font, "Podpis1"), "Segoe Script", "Brush Script MT", cursive; color: var(--atrament);
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%); -webkit-mask-size: 240% 100%; mask-size: 240% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.k-kreska { position: absolute; left: 6%; right: -6%; bottom: -.2em; width: 100%; height: 1.1em; overflow: visible; fill: none; stroke: var(--atrament); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.k-kreska path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.kartka-a4.z-imieniem .k-imie { display: block; }
.kartka-a4.z-imieniem .k-sig { display: none; }
.kartka-a4.z-imieniem.podpisane .k-imie span { transition: -webkit-mask-position var(--sig-d, 1.4s) cubic-bezier(.45, .05, .55, .95), mask-position var(--sig-d, 1.4s) cubic-bezier(.45, .05, .55, .95); -webkit-mask-position: 0 0; mask-position: 0 0; }
.kartka-a4.z-imieniem.podpisane .k-kreska path { transition: stroke-dashoffset .5s calc(var(--sig-d, 1.4s) - .15s) cubic-bezier(.3, .6, .3, 1); stroke-dashoffset: 0; }
.kartka-a4.z-imieniem.podpisane .k-kreska path + path { transition-delay: calc(var(--sig-d, 1.4s) + .25s); }
@media (prefers-reduced-motion: reduce) { .k-imie span { -webkit-mask: none; mask: none; } .k-kreska path { stroke-dashoffset: 0; } }

/* ---------- przejścia widoku (src/site.js, zPrzejsciem) ---------- */
/* Lista wzorów: kafelki płyną na nowe miejsca, znikające gasną, nowe wjeżdżają lekko od dołu. */
html.vt-wzory::view-transition-group(*) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
html.vt-wzory::view-transition-group(root) { animation-duration: .2s; }
html.vt-wzory::view-transition-old(*):only-child { animation: vt-zgas .18s ease-in both; }
html.vt-wzory::view-transition-new(*):only-child { animation: vt-wejdz .34s cubic-bezier(.2, .8, .2, 1) .08s both; }
@keyframes vt-zgas { to { opacity: 0; transform: scale(.97); } }
@keyframes vt-wejdz { from { opacity: 0; transform: translateY(10px) scale(.98); } }
/* FAQ: odpowiedź odsłania się od góry (bez rozciągania tekstu), reszta strony zjeżdża razem z nią. */
html.vt-faq::view-transition-group(*) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); overflow: clip; }
html.vt-faq::view-transition-group(root) { animation-duration: .2s; overflow: visible; }
html.vt-faq::view-transition-old(*), html.vt-faq::view-transition-new(*) { height: 100%; object-fit: none; object-position: top; }
html.vt-faq::view-transition-old(root), html.vt-faq::view-transition-new(root) { height: auto; object-fit: fill; }
html.vt-faq::view-transition-old(*) { animation-duration: .16s; }
.faq > summary, .asy-grupa > summary { transition: color .15s; }
.faq > summary:hover, .asy-grupa > summary:hover { color: var(--accent); }

/* ---------- paleta Ctrl+K ---------- */
.cmdk { width: min(640px, calc(100vw - 32px)); max-height: min(72vh, 620px); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgb(6 24 51 / .45), 0 2px 6px rgb(6 24 51 / .08); overflow: hidden; flex-direction: column;
  opacity: 1; transform: none; transition: opacity .16s ease, transform .2s cubic-bezier(.2, .8, .2, 1), overlay .2s allow-discrete, display .2s allow-discrete; }
.cmdk[open] { display: flex; }
@starting-style { .cmdk[open] { opacity: 0; transform: translateY(-8px) scale(.985); } }
.cmdk:not([open]) { opacity: 0; transform: translateY(-4px) scale(.99); }
.cmdk::backdrop { background: rgb(6 14 30 / .38); backdrop-filter: blur(3px); transition: background-color .2s, backdrop-filter .2s, overlay .2s allow-discrete, display .2s allow-discrete; }
@starting-style { .cmdk[open]::backdrop { background: rgb(6 14 30 / 0); backdrop-filter: blur(0); } }
.cmdk-pole { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.cmdk-pole > svg { flex: none; color: var(--muted); }
.cmdk-input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; color: var(--text); font: 500 1.08rem var(--font); outline: none; }
.cmdk-input::-webkit-search-cancel-button { display: none; }
.cmdk-input::placeholder { color: var(--muted); opacity: .85; }
.cmdk-esc, .cmdk-stopka kbd { font: 600 .72rem var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; background: var(--surface-2); }
.cmdk-esc { cursor: pointer; }
.cmdk-esc:hover { color: var(--text); }
.cmdk-filtr { margin: 0; padding: 8px 16px; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cmdk-filtr b { color: var(--text); }
.cmdk-filtr-x { margin-left: auto; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 2px 4px; }
.cmdk-lista { list-style: none; margin: 0; padding: 6px 8px 8px; overflow-y: auto; overscroll-behavior: contain; flex: 1; scroll-padding: 34px 0 8px; }
.cmdk-lista ul { list-style: none; margin: 0; padding: 0; }
.cmdk-naglowek { display: block; padding: 10px 10px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cmdk-lista [role=option] a { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 12px; border-radius: 6px; color: var(--text); text-decoration: none; transition: background-color .12s; }
.cmdk-lista [role=option] b { font-weight: 500; }
.cmdk-lista mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cmdk-lista small { flex: none; color: var(--muted); font-size: .76rem; }
.cmdk-lista [aria-selected="true"] a { background: var(--accent-soft); }
.cmdk-lista [aria-selected="true"] a::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--red, var(--accent)); }
.cmdk-lista [aria-selected="true"] small::after { content: "↵"; }
.cmdk-pusto { padding: 28px 12px; text-align: center; color: var(--muted); }
.cmdk-stopka { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; padding: 9px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .76rem; color: var(--muted); }
.cmdk-stopka span { display: inline-flex; align-items: center; gap: 4px; }
.cmdk-stopka .cmdk-lokalnie { margin-left: auto; }
.cmdk-stopka .cmdk-lokalnie::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; margin-right: 4px; }
body.cmdk-open { overflow: hidden; }
@media (max-width: 640px) {
  .cmdk { margin-top: 8px; max-height: calc(100dvh - 16px); }
  .cmdk-stopka span:not(.cmdk-lokalnie) { display: none; }
  .cmdk-stopka .cmdk-lokalnie { margin-left: 0; }
}

/* ---------- spis treści poradnika: aktywna sekcja ---------- */
.guide-toc a { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: color .2s, text-decoration-color .2s; }
.guide-toc li { position: relative; transition: color .2s; }
.guide-toc li::marker { transition: color .2s; }
.guide-toc li:has(> a[aria-current]) { color: var(--accent); }
.guide-toc a[aria-current] { color: var(--accent); font-weight: 600; text-decoration-color: currentColor; }
.guide-step { scroll-margin-top: 80px; }
/* szeroki ekran: spis treści jako przyklejona kolumna z prawej */
@media (min-width: 1360px) {
  .main-col .wrap.narrow:has(> .toc-wrap) { max-width: 1110px; display: grid; grid-template-columns: minmax(0, 1fr) 250px; column-gap: 48px; align-items: start; }
  .main-col .wrap.narrow:has(> .toc-wrap) > * { grid-column: 1; min-width: 0; }
  .main-col .wrap.narrow:has(> .toc-wrap) > .toc-wrap { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: calc(var(--top-h, 60px) + 24px); max-height: calc(100vh - var(--top-h, 60px) - 48px); overflow-y: auto; overscroll-behavior: contain; padding-top: 4px; }
  .toc-wrap::before { content: "Spis treści"; display: block; margin: 0 0 10px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .toc-wrap .guide-toc { list-style: none; counter-reset: toc; background: none !important; border-radius: 0; padding: 0; margin: 0; border-left: 1px solid var(--line); font-size: .88rem; line-height: 1.4; }
  .toc-wrap .guide-toc li { counter-increment: toc; margin: 0; }
  .toc-wrap .guide-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
  .toc-wrap .guide-toc a:hover { color: var(--text); }
  .toc-wrap .guide-toc a[aria-current] { color: var(--text); font-weight: 600; border-left-color: var(--red, var(--accent)); }
  .toc-wrap .guide-toc li:has(> a[aria-current]) { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  .cmdk, .cmdk::backdrop, .guide-toc a, .guide-toc li, .cmdk-lista [role=option] a { transition: none; }
}

/* =========================================================
   Próba „ryboxx”: reżyseria ruchu zamiast efektów.
   Cztery niezależne bloki (A–D), każdy można usunąć osobno.
   Wszystko w CSS, bez bibliotek; przy prefers-reduced-motion nic się nie rusza.
   ========================================================= */

/* A. Jeden akcent. Atrament (kolor tekstu) na przyciskach i linkach, czerwień marginesu jako jedyny kolor. */
:root { --accent: #16181d; --accent-ink: #fbfaf7; --accent-soft: #ecebe6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: #eceef2; --accent-ink: #0b0f17; --accent-soft: rgb(255 255 255 / .08); } }
:root[data-theme="dark"] { --accent: #eceef2; --accent-ink: #0b0f17; --accent-soft: rgb(255 255 255 / .08); }
.btn.primary, a.btn.primary { transition: background-color .2s, color .2s; }
.btn.primary:hover { background: var(--red); border-color: var(--red); color: #fff; filter: none; }
.red-link, .card .go, .more a { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: color .2s, text-decoration-color .2s; }
.red-link:hover, .card a:hover .go, .more a:hover { color: var(--red); text-decoration-color: var(--red); }
.intent:hover b, .card a:hover h3, .card a:hover b { color: var(--text); }
/* ramki informacyjne: zamiast pełnej ramki w kolorze akcentu cienka linia i czerwony margines, jak na kartce */
.terms-box, .season, .two-party { border: 1px solid var(--line); border-left: 2px solid var(--red); background: var(--surface); border-radius: 2px; }

/* B. Hasło na stronie głównej wchodzi słowo po słowie: spokojnie i miękko.
   Słowo co 120 ms, każde przez 1,2 s wyłania się z lekkiego rozmycia i podpływa o ułamek wysokości litery.
   Krzywa wygasa długo (easeOutExpo), więc ruch nie kończy się szarpnięciem. Tylko opacity, transform i filter:
   przeglądarka liczy to na karcie graficznej, a słowa jako inline-block nie przesuwają reszty układu.
   Odstępy przez :nth-child, bo CSP nie pozwala na atrybut style. Własna nazwa klatek, żeby nie zderzyć się z kartką. */
.red-haslo .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .red-haslo .w { animation: haslo-wejscie 1.2s cubic-bezier(.16, 1, .3, 1) 80ms both; }
  .red-haslo .w:nth-child(2) { animation-delay: 200ms; }
  .red-haslo .w:nth-child(3) { animation-delay: 320ms; }
  .red-haslo .w:nth-child(4) { animation-delay: 440ms; }
  .red-haslo .w:nth-child(5) { animation-delay: 560ms; }
  .red-haslo .w:nth-child(6) { animation-delay: 680ms; }
  .red-haslo .w:nth-child(7) { animation-delay: 800ms; }
  .red-haslo .w:nth-child(8) { animation-delay: 920ms; }
  .red-haslo .w:nth-child(9) { animation-delay: 1040ms; }
  .red-haslo .w:nth-child(n+10) { animation-delay: 1160ms; }
  .red-lead, .red-cta { animation: haslo-dol 1.1s cubic-bezier(.16, 1, .3, 1) .9s both; }
  .red-cta { animation-delay: 1.05s; }
}
@keyframes haslo-wejscie {
  from { opacity: 0; transform: translate3d(0, .3em, 0); filter: blur(8px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}
@keyframes haslo-dol {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* C. Kartka na hoverze: zamiast „fali” od dołu wsuwa się kartka papieru z czerwonym marginesem. */
.cards .card, .intents li { position: relative; isolation: isolate; }
.cards .card > a::before, .intent::before {
  content: ""; position: absolute; inset: 0 -14px; z-index: -1; pointer-events: none;
  background: var(--surface) linear-gradient(var(--red), var(--red)) 7px 0 / 1.5px 100% no-repeat;
  box-shadow: 0 1px 0 rgb(0 0 0 / .03), 0 18px 30px -22px rgb(40 30 10 / .45);
  border-radius: 2px; clip-path: inset(100% 0 0 0); opacity: .6;
  transition: clip-path .45s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
.cards .card > a:hover::before, .intent:hover::before, .cards .card > a:focus-visible::before, .intent:focus-visible::before { clip-path: inset(0 0 0 0); opacity: 1; }
.cards .card > a, .intent { position: relative; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cards .card > a::before, :root:not([data-theme="light"]) .intent::before { box-shadow: 0 0 0 1px rgb(255 255 255 / .08); } }
@media (prefers-reduced-motion: reduce) { .cards .card > a::before, .intent::before { transition: none; } }

/* D. Lekki scrub przy przewijaniu (tylko komputer, tylko strona główna, przeglądarki z animation-timeline).
   Kartka w hero odpływa wolniej niż strona, a tytuły sekcji wsuwają się, gdy wchodzą w widok. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) and (pointer: fine) {
    .home .kartka { animation: kartka-odplywa linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .home .section-title { animation: tytul-wchodzi linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
  }
}
@keyframes kartka-odplywa { to { translate: 0 90px; rotate: -1.5deg; } }
@keyframes tytul-wchodzi { from { opacity: 0; translate: 0 22px; } }
/* Landing języka (/uk/): pasek zalet pod przyciskami w jasnym hero */
.home.obca .trust { margin-top: 32px; }
.home.obca .trust li { border-left-color: var(--red); }
.home.obca .trust b { color: var(--text); }
.home.obca .trust span { color: var(--muted); }
.home.obca .red-hero .trust { order: 6; }
