/* mikroksiegowa.pl: tokeny, układ i komponenty. Widgety S2 mają własny widgets.css (prefiks .w-). */
:root {
  --bg: #F6F5F1; --surface: #FFFFFF; --surface-2: #EEF3F0; --text: #171A1F; --muted: #5C6570;
  --accent: #0E6B54; --accent-hover: #0A553F; --accent-soft: #DDEFE8; --accent-2: #E5A21A; --accent-2-soft: #FBF0D4;
  --border: #E3E6EA; --danger: #B42318; --ok: #1F7A4D;
  --radius: 18px; --radius-sm: 10px; --shadow: 0 10px 30px rgba(20,30,40,.08); --shadow-sm: 0 2px 8px rgba(20,30,40,.06);
  --max: 1160px; --gutter: 24px;
  --on-accent: #FFFFFF; --warn-text: #7A5200; --header-bg: rgba(246,245,241,.78); --band: #0E3B31;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1216; --surface: #171B21; --surface-2: #1E242B; --text: #EDEFF2; --muted: #9AA3AE; --border: #2A313A;
    --accent: #3FB48F; --accent-hover: #5CC7A3; --accent-soft: #12302A; --accent-2-soft: #3A2E12;
    --on-accent: #0B1512; --warn-text: #F2C45C; --header-bg: rgba(15,18,22,.78); --band: #12302A;
    --shadow: 0 10px 30px rgba(0,0,0,.35); --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  }
}
@media (max-width: 600px) { :root { --gutter: 18px; --radius: 16px; } }

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; }
h2, .h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3, .h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--on-accent); }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { color: var(--muted); font-size: .92rem; margin-top: 20px; max-width: 72ch; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px rgba(14,107,84,.22); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-light { background: #fff; color: #0E3B31; }
.btn-light:hover { background: #DDEFE8; color: #0E3B31; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform .18s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- plakietki ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.4; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-sponsored { background: var(--accent-2-soft); color: var(--warn-text); }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.badge-warn { background: var(--accent-2-soft); color: var(--warn-text); white-space: normal; }
.badge-pick { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.badge-sm { font-size: .7rem; padding: 2px 8px; margin-left: 8px; }
.pill-dw { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--accent-2-soft); color: var(--warn-text); font-size: .74rem; font-weight: 600; white-space: nowrap; }

/* ---------- karty, siatki ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand__mark { color: var(--accent); flex: none; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a, .site-nav__sub-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--text); text-decoration: none; font: inherit; font-weight: 500; font-size: .98rem; background: none; border: 0; cursor: pointer; }
.site-nav__list a:hover, .site-nav__sub-toggle:hover { background: var(--surface-2); color: var(--text); }
.site-nav__list > li > a[aria-current="page"], .has-sub.is-current > .site-nav__sub-toggle { color: var(--accent); background: var(--accent-soft); }
.site-nav__caret { transition: transform .15s ease; }
.site-nav__sub-toggle[aria-expanded="true"] .site-nav__caret { transform: rotate(180deg); }
.has-sub { position: relative; }
.menu-kalk { display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60; }
.has-sub.is-open > .menu-kalk { display: block; }
html:not(.js) .has-sub:hover > .menu-kalk, html:not(.js) .has-sub:focus-within > .menu-kalk { display: block; }
.menu-kalk__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.site-nav .menu-kalk__item { display: flex; align-items: flex-start; gap: 12px; min-height: 0; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .95rem; line-height: 1.35; white-space: normal; }
.menu-kalk__item .kalk-ico { flex: none; color: var(--accent); margin-top: 1px; }
.menu-kalk__name { display: block; font-weight: 650; color: var(--text); }
.menu-kalk__q { display: block; color: var(--muted); font-size: .84rem; font-weight: 400; margin-top: 2px; }
.site-nav .menu-kalk__item[aria-current="page"] { background: var(--accent-soft); }
.site-nav .menu-kalk__all { display: flex; justify-content: center; margin-top: 8px; padding: 10px; border-top: 1px solid var(--border); border-radius: 0; font-weight: 650; color: var(--accent); min-height: 0; }
.site-nav .menu-kalk__all:hover { background: var(--surface-2); color: var(--accent); }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__close { display: none; }
.is-open .nav-toggle__open { display: none; }
.is-open .nav-toggle__close { display: inline; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px var(--gutter) 22px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); max-height: calc(100vh - 70px); overflow-y: auto; }
  .js .site-header.is-open .site-nav { display: flex; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a, .site-nav__sub-toggle { width: 100%; font-size: 1.05rem; padding: 0 14px; min-height: 48px; }
  .site-nav__sub-toggle { justify-content: space-between; }
  .menu-kalk { position: static; transform: none; width: auto; padding: 4px 0 8px 12px; border: 0; box-shadow: none; background: none; }
  .menu-kalk__list { grid-template-columns: minmax(0, 1fr); }
  .menu-kalk__q { display: none; }
  .site-nav .menu-kalk__item { align-items: center; min-height: 44px; padding: 6px 12px; }
  .site-nav .menu-kalk__all { justify-content: flex-start; border-top: 0; margin-top: 0; padding: 6px 12px; min-height: 44px; }
  .site-nav__cta { min-height: 48px; }
}

/* ---------- sekcje ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head h2 { margin-bottom: .3em; }
.section-head p:last-child { margin-bottom: 0; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.section-head--row h2 { margin: 0; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(36px, 4vw, 52px); background: radial-gradient(1100px 500px at 85% -10%, var(--accent-soft), transparent 65%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__sub { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--accent); flex: none; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); }
.hero__float { position: absolute; left: -22px; bottom: -22px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; border-radius: var(--radius); }
.hero__float-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.hero__float-date { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__float { left: 14px; bottom: -18px; }
}
.page-hero { padding-block: clamp(32px, 5vw, 64px); background: radial-gradient(900px 420px at 90% -20%, var(--accent-soft), transparent 65%), var(--bg); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.page-hero__media { margin: 0; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.page-hero--text .container { max-width: calc(820px + 2 * var(--gutter)); }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- dział kalkulatorów: lista redakcyjna zamiast siatki kart ---------- */
.kalk-lista { list-style: none; margin: 0; padding: 0; }
.kalk-item { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: clamp(20px, 4vw, 36px); align-items: start; padding-block: clamp(24px, 4vw, 36px); border-top: 1px solid var(--border); }
.kalk-lista > .kalk-item:last-child { border-bottom: 1px solid var(--border); }
.kalk-item__media { margin: 0; }
.kalk-item__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.kalk-item__media figcaption { margin-top: 8px; font-size: .86rem; }
.kalk-item__num { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; font-size: .82rem; letter-spacing: .04em; margin: 0 0 6px; }
.kalk-item__body h3 { margin: 0 0 8px; font-size: 1.28rem; }
.kalk-item__body h3 a { color: inherit; text-decoration: none; }
.kalk-item__body h3 a:hover { color: var(--accent); }
.kalk-item__body p { margin: 0 0 10px; }
@media (max-width: 640px) { .kalk-item { grid-template-columns: minmax(0, 1fr); } }

/* ---------- karty programów ---------- */
.programs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
@media (max-width: 1100px) { .programs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .programs { grid-template-columns: minmax(0, 1fr); } }
.program { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.program:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20,30,40,.12); }
.program--pick { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.program__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); border-bottom: 4px solid var(--brand, var(--accent)); }
.program__media img { width: 100%; height: 100%; object-fit: cover; }
.program__media .badge-pick { position: absolute; top: 12px; left: 12px; }
.program__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 18px; }
.program__name { font-size: 1.3rem; margin: 0 0 6px; color: var(--brand, var(--text)); }
@media (prefers-color-scheme: dark) { .program__name { color: color-mix(in srgb, var(--brand) 55%, #fff); } }
.program__price { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.program__from { font-size: .9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.program__price-note { font-size: .86rem; color: var(--muted); margin: 4px 0 14px; line-height: 1.45; }
.feats { list-style: none; padding: 14px 0 0; margin: 0 0 14px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.feat { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; line-height: 1.4; }
.feat .ico { flex: none; margin-top: 1px; }
.feat__label { display: block; font-weight: 600; }
.feat__sub { display: block; color: var(--muted); font-size: .85rem; }
.feat--no .feat__label { color: var(--muted); font-weight: 500; }
.ico-yes { color: var(--ok); }
.ico-no { color: var(--muted); opacity: .8; }
@media (prefers-color-scheme: dark) { .ico-yes { color: #4FC98E; } }
.program__for { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.program__for strong { color: var(--text); }
.program__body .btn { margin-top: auto; }
.program__aff { margin: 8px 0 0; text-align: center; font-size: .76rem; color: var(--muted); }

/* ---------- tabele ---------- */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.table-wrap:focus-visible { outline-offset: 2px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .96rem; }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--surface); white-space: nowrap; }
.table tbody tr:nth-child(even) > * { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.table tbody tr:nth-child(odd) > * { background: var(--surface); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td, .table th { font-variant-numeric: tabular-nums; }
.table--compare { min-width: 860px; }
.table--compare td, .table--compare th { vertical-align: middle; }
.table-wrap--sticky th:first-child, .table-wrap--sticky td:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--border); }
.table-wrap--sticky thead th:first-child { z-index: 2; }
.wordmark { font-weight: 800; letter-spacing: -.01em; color: var(--brand, var(--text)); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .wordmark { color: color-mix(in srgb, var(--brand) 55%, #fff); } }
.yn { display: inline-flex; align-items: flex-start; gap: 6px; line-height: 1.35; }
.yn .ico { flex: none; margin-top: 1px; }
.yn--no { color: var(--muted); }
.ta-right { text-align: right; }
.ta-center { text-align: center; }

/* ---------- układ split, KSeF ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(40px, 6vw, 72px); }
.split--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
.split--form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.split__media { margin: 0; }
.split__media img, .media-rounded img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-rounded { margin: 24px 0; }
.split__aside { display: grid; gap: 20px; }
@media (max-width: 900px) { .split, .split--wide, .split--form { grid-template-columns: minmax(0, 1fr); } }
.timeline { list-style: none; padding: 0; margin: 22px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline__item { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 10px 0 10px 30px; }
.timeline__item .badge { grid-column: 2; justify-self: start; }
.timeline__item::before { content: ""; position: absolute; left: 0; top: 15px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); }
.timeline__item.is-past::before { background: var(--border); }
.timeline__item.is-now::before { border-color: var(--accent-2); background: var(--accent-2-soft); }
.timeline__item.is-next::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline__date { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline__who { color: var(--muted); font-size: .95rem; }
.is-past .timeline__date { color: var(--muted); }
.is-next .timeline__date, .is-next .timeline__who { color: var(--text); font-weight: 700; }
@media (max-width: 560px) { .timeline__item { grid-template-columns: minmax(0, 1fr); } .timeline__item .badge { grid-column: 1; } }
.widget-card { padding: clamp(20px, 3vw, 32px); }
.steps-card { padding: clamp(8px, 2vw, 16px) 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; min-height: 34px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .95rem; }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.how li { display: flex; gap: 14px; align-items: center; }
.how__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .95rem; }

/* ---------- formularze ---------- */
.form-card { padding: clamp(20px, 3vw, 30px); }
.lead-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field > span { font-weight: 600; font-size: .93rem; }
.field__opt { font-weight: 400; color: var(--muted); }
.input, .select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: 400 1rem/1.4 var(--font); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.checkbox input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.lead-form__foot { display: grid; gap: 12px; margin-top: 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .lead-form__grid { grid-template-columns: minmax(0, 1fr); } }
.sponsor { padding: 20px 22px; border-style: dashed; box-shadow: none; }
.sponsor__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sponsor__icon { color: var(--muted); }
.sponsor__title { font-weight: 700; margin: 0 0 4px; }
.info-card, .contact-card { padding: clamp(20px, 3vw, 28px); margin-top: 24px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%230E6B54' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.feature-card { padding: 26px; }
.feature-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.contact-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- poradniki ---------- */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .guides { grid-template-columns: minmax(0, 1fr); } }
.guide-card { overflow: hidden; transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20,30,40,.12); }
.guide-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.guide-card__link:hover { color: inherit; }
.guide-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.guide-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.guide-card:hover .guide-card__media img { transform: scale(1.03); }
.guide-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.guide-card__title { font-size: 1.12rem; line-height: 1.3; margin: 2px 0 0; }
.guide-card__link:hover .guide-card__title { color: var(--accent); }
.guide-card__desc { font-size: .94rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card__meta { margin: auto 0 0; padding-top: 6px; font-size: .84rem; color: var(--muted); }
.filter-radio { position: absolute; opacity: 0; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); font-weight: 600; font-size: .95rem; cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--accent); }
#kat-wszystkie:checked ~ .chips [for="kat-wszystkie"], #kat-ksef:checked ~ .chips [for="kat-ksef"], #kat-podatki:checked ~ .chips [for="kat-podatki"], #kat-zus:checked ~ .chips [for="kat-zus"], #kat-faktury:checked ~ .chips [for="kat-faktury"], #kat-program:checked ~ .chips [for="kat-program"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter-radio:focus-visible ~ .chips { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
#kat-ksef:checked ~ .guides .guide-card:not([data-cat="ksef"]), #kat-podatki:checked ~ .guides .guide-card:not([data-cat="podatki"]), #kat-zus:checked ~ .guides .guide-card:not([data-cat="zus"]), #kat-faktury:checked ~ .guides .guide-card:not([data-cat="faktury"]), #kat-program:checked ~ .guides .guide-card:not([data-cat="program"]) { display: none; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; min-height: 56px; font-weight: 650; line-height: 1.4; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%230E6B54' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq summary:hover { color: var(--accent); }
.faq__a { padding: 0 20px 16px; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- artykuł ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; padding-top: 22px; font-size: .88rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.article-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 52px); align-items: center; padding-block: clamp(20px, 3vw, 36px) clamp(28px, 4vw, 48px); }
.article-hero h1 { margin-top: 14px; }
.article-hero__media { margin: 0; }
.article-hero__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--muted); }
.article-meta { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .article-hero { grid-template-columns: minmax(0, 1fr); } .article-hero__media { order: -1; } }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(48px, 7vw, 88px); }
.article-aside { position: sticky; top: 90px; display: grid; gap: 18px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-aside { position: static; } }
.toc { padding: 18px 20px; box-shadow: var(--shadow-sm); }
.toc__title { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.toc ol, .toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0; color: var(--text); text-decoration: none; font-size: .94rem; line-height: 1.35; }
.toc a:hover { color: var(--accent); }
.aside-cta { padding: 20px; }
.aside-cta__eyebrow { font-size: .78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.aside-cta__title { font-weight: 800; font-size: 1.12rem; line-height: 1.3; margin: 0 0 6px; }
.prose { max-width: 72ch; min-width: 0; }
.prose > * + h2, .prose .article-block { margin-top: 2em; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); scroll-margin-top: 90px; }
.prose h3 { font-size: 1.18rem; margin-top: 1.6em; scroll-margin-top: 90px; }
.prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--radius-sm); }
.prose .table-wrap { margin: 0 0 1.2em; }
.prose blockquote { margin: 0 0 1em; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.prose--page { margin-inline: auto; padding-bottom: clamp(48px, 7vw, 88px); }
.prose--page h2 { margin-top: 1.8em; }
[id] { scroll-margin-top: 90px; }
.callout { display: block; margin: 0 0 1.2em; padding: 16px 18px 16px 20px; border-radius: var(--radius-sm); border-left: 4px solid var(--accent); background: var(--accent-soft); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-uwaga { border-left-color: var(--accent-2); background: var(--accent-2-soft); }
.callout-wskazowka { border-left-color: var(--accent); background: var(--accent-soft); }
.callout-dw { border-left-color: var(--muted); background: var(--surface-2); }
.sources { padding-left: 1.1em; font-size: .94rem; }
.sources li { overflow-wrap: anywhere; }
.disclaimer { display: flex; gap: 14px; align-items: flex-start; margin-top: 2em; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: .93rem; color: var(--muted); }
.disclaimer svg { flex: none; color: var(--accent-2); margin-top: 2px; }
.disclaimer p { margin: 0; }
.disclaimer strong { color: var(--text); }

/* ---------- pas CTA ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(28px, 4.5vw, 52px); border-radius: calc(var(--radius) + 6px); color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(229,162,26,.28), transparent 70%), linear-gradient(135deg, #0E6B54, var(--band)); }
.cta-band > div { max-width: 640px; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }

/* ---------- stopka ---------- */
.site-footer { margin-top: 0; padding-block: clamp(44px, 6vw, 72px) 28px; background: var(--surface); border-top: 1px solid var(--border); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { max-width: 42ch; margin-top: 14px; }
.footer-nav__title { font-weight: 700; margin: 0 0 10px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }
.footer-legal p { max-width: 90ch; }
.footer-legal__meta { margin-bottom: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding-block: clamp(64px, 10vw, 128px); }
.page-404 .hero__cta { justify-content: center; }

/* ---------- ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn:hover, .program:hover, .guide-card:hover, .guide-card:hover .guide-card__media img { transform: none; }
}

/* Porównanie (zarabia) ma wychodzić tuż pod hero, bez dużej przerwy. */
.hero + .section { padding-top: clamp(16px, 2.5vw, 32px); }

/* Tabela harmonogramu na telefonie: wiersze jako karty (data + status, potem opis). */
@media (max-width: 600px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody { display: block; }
  .table--stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { padding: 0; border: 0; background: transparent !important; }
  .table--stack td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); }
  .table--stack td:nth-child(3) { grid-row: 1; grid-column: 2; }
  .table--stack tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
}

/* ---------- strona kalkulatora: najpierw kalkulator ---------- */
.calc-top { padding-block: clamp(14px, 2.4vw, 28px) clamp(32px, 4vw, 56px); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.calc-top h1 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); margin: 6px 0 6px; letter-spacing: -.02em; }
.calc-top__lead { color: var(--muted); font-size: clamp(.98rem, 1.4vw, 1.08rem); max-width: 80ch; margin: 0 0 18px; }
.calc-top__note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
.calc-top--hub { background: var(--bg); border-bottom: 0; }
.calc-card { padding: clamp(16px, 2.6vw, 28px); box-shadow: var(--shadow-sm); }
.calc-intro { padding-block: clamp(24px, 3vw, 36px) 0; }
.calc-intro__text { color: var(--muted); margin: 0 0 12px; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--border); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); }

/* zakładki: płaska lista wszystkich kalkulatorów nad kalkulatorem */
.calc-tabs { margin: 0 0 14px; }
.calc-tabs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.calc-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 550; white-space: nowrap; }
.calc-tab .kalk-ico { color: var(--accent); }
.calc-tab:hover { border-color: var(--accent); color: var(--text); }
.calc-tab[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.calc-tab[aria-current="page"] .kalk-ico { color: var(--on-accent); }
@media (max-width: 720px) {
  .calc-tabs { margin-inline: calc(-1 * var(--gutter)); }
  .calc-tabs__list { flex-wrap: nowrap; overflow-x: auto; padding: 2px var(--gutter) 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .calc-tabs__list::-webkit-scrollbar { display: none; }
  .calc-tabs__list li { scroll-snap-align: start; }
}

/* kafle kalkulatorów: strona główna i hub */
.calc-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1060px) { .calc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .calc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .calc-tiles { grid-template-columns: minmax(0, 1fr); } }
.calc-tile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.calc-tile:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.calc-tile__ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.calc-tile__name { margin: 0; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; }
.calc-tile__q { color: var(--muted); font-size: .9rem; line-height: 1.45; flex: 1; }
.calc-tile__go { margin-top: 6px; color: var(--accent); font-weight: 650; font-size: .9rem; }
.calc-tile__go::after { content: " \2192"; }
.calc-tiles li:last-child:nth-child(4n + 3) { grid-column: span 2; }
@media (max-width: 1060px) { .calc-tiles li:last-child:nth-child(4n + 3) { grid-column: auto; } }
@media (max-width: 460px) { .calc-tile { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 14px 16px; } .calc-tile__ico { margin: 0; } .calc-tile__name { flex: 1; } .calc-tile__q { flex-basis: 100%; } .calc-tile__go { display: none; } }

/* mobile: pasek z kluczowym wynikiem */
.calc-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px; padding: 10px 16px; border: 0; border-radius: 14px; background: var(--text); color: var(--bg); font: inherit; text-align: left; box-shadow: var(--shadow); cursor: pointer; transform: translateY(160%); transition: transform .2s ease; }
.calc-bar.is-on { transform: none; }
.calc-bar__label { grid-column: 1; grid-row: 1; min-width: 0; font-size: .75rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-bar__val { grid-column: 1; grid-row: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-bar__go { grid-column: 2; grid-row: 1 / 3; font-size: .8rem; font-weight: 700; opacity: .8; }
.calc-bar__go::after { content: " \2193"; }
@media (min-width: 980px) { .calc-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .calc-bar { transition: none; } }
body:has(.site-header.is-open) .calc-bar { display: none; }

/* ---------- promocje ---------- */
.promos { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.promo { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.promo p { margin: 0; }
.promo__opis { font-weight: 600; }
.promo__kod code { background: var(--accent-2-soft); color: var(--warn-text); padding: 3px 10px; border-radius: 6px; font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; }
.promo__do, .promo__zrodlo { font-size: .9rem; color: var(--muted); }
.promo .btn { margin-top: auto; }
