/* ProwizjaZero: shared styles for the landing page and the policy pages. */
:root {
  --ink: #0b1b2b;
  --ink-2: #2c3e50;
  --muted: #566573;
  --line: #e2e8ef;
  --bg: #ffffff;
  --bg-alt: #f2f7f4;
  --brand: #047857;
  --brand-hover: #065f46;
  --brand-bright: #10b981;
  --brand-soft: #e7f7ef;
  --bad: #b4410c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 43, .06), 0 10px 30px rgba(11, 27, 43, .08);
  --max: 1120px;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Components below set display values that would otherwise override the hidden attribute. */
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.25em; border: 2px solid var(--brand); border-radius: 10px;
  background: var(--brand); color: #fff; font: inherit; font-weight: 650; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-hover); }
.btn-sm { padding: .45em .9em; font-size: .95rem; }
.btn-lg { padding: .9em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.15rem; font-weight: 750; text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo svg { width: 32px; height: 32px; flex: none; }
.header-inner .logo { margin-right: auto; }
.logo b { color: var(--brand); font-weight: 750; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: .97rem; font-weight: 550; text-decoration: none; }
.nav a:hover { color: var(--brand); }
@media (max-width: 860px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 420px) { .header-cta { display: none; } }

/* Hero */
.hero { padding: 64px 0 72px; background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 1.2em; padding: .25em .75em; border: 1px solid #bfe8d3; border-radius: 999px; background: #fff; color: var(--brand); font-size: .9rem; font-weight: 650; }
.lead { max-width: 36em; color: var(--ink-2); font-size: 1.15rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.checks, .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li, .ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before, .ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) var(--tick) center / 12px no-repeat;
}
.savings-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.card-label { margin-bottom: 12px; color: var(--muted); font-weight: 650; }
.savings-card dl { margin: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.row dt, .row > span { color: var(--ink-2); }
.row dd { margin: 0; font-weight: 700; white-space: nowrap; }
.row strong { white-space: nowrap; }
.row.bad dd, .row.bad strong { color: var(--bad); }
.row.total { padding-top: 16px; border-bottom: 0; }
.row.total dt, .row.total > span { color: var(--ink); font-weight: 700; }
.row.total dd, .row.total strong { color: var(--brand); font-size: 1.9rem; letter-spacing: -.01em; }
.fine { margin: 12px 0 0; color: var(--muted); font-size: .86rem; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-lead { max-width: 44em; margin-bottom: 36px; color: var(--ink-2); font-size: 1.1rem; }
@media (max-width: 640px) { .section { padding: 56px 0; } }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 750; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.calc-inputs, .calc-result { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.calc-inputs { display: grid; gap: 22px; }
.calc-result { box-shadow: var(--shadow); }
.calc-result .btn { margin-top: 20px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 10px; padding: 0; font-weight: 650; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; font-weight: 650; }
.label-row output { color: var(--ink); font-size: 1.35rem; font-weight: 750; white-space: nowrap; }
input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--brand); }
.price-input { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: var(--muted); font-size: .95rem; }
.price-input input[type="number"] { width: 150px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: inline-block; padding: .5em 1em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-hover); }
.seg input:focus-visible + span { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: .15em 0 0; accent-color: var(--brand); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 28px; margin: 0; padding: .25em .8em; border-radius: 999px; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; }
.plan-for { min-height: 3.2em; color: var(--muted); font-size: .97rem; }
.price { margin: 4px 0 16px; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.ticks { flex: 1; gap: 10px; margin-bottom: 24px; }
.ticks li { font-size: .98rem; }
.addons { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.addons ul { list-style: none; margin: 0; padding: 0; }
.addons li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.addons li:last-child { border-bottom: 0; }
.addons strong { color: var(--ink); white-space: nowrap; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan-for { min-height: 0; }
}

/* Inheritance callout */
.callout { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px; border-radius: 24px; background: var(--ink); color: #fff; }
.callout h2 { color: #fff; }
.callout p { max-width: 40em; margin: 0; color: #cbd5df; }
.callout .btn { flex: none; border-color: var(--brand-bright); background: var(--brand-bright); color: var(--ink); }
.callout .btn:hover { border-color: #34d399; background: #34d399; color: var(--ink); }
@media (max-width: 860px) { .callout { flex-direction: column; align-items: flex-start; padding: 28px; } }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { color: var(--muted); font-size: .95rem; font-weight: 650; }
.compare tbody th { width: 22%; color: var(--ink); font-weight: 650; }
.compare td { color: var(--ink-2); }
.compare .us { background: var(--brand-soft); color: var(--brand-hover); font-weight: 650; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 0; font-size: 1.05rem; font-weight: 650; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* Contact form */
.contact { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.lead-form { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .95rem; font-weight: 600; }
.full { grid-column: 1 / -1; }
input:not([type]), input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="url"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; padding: .7em .85em; border: 1.5px solid #cdd6df; border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }
textarea { resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; }
.form-status.ok { color: var(--brand); }
.form-status.error { color: var(--bad); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .lead-form, .calc-inputs, .calc-result, .savings-card, .plan { padding: 22px; }
}

/* Footer */
.site-footer { padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-inner p { max-width: 32em; margin: 12px 0 0; color: var(--muted); font-size: .95rem; }
.footer-nav { display: flex; gap: 20px; }
.footer-bottom p { margin: 24px 0 0; color: var(--muted); font-size: .85rem; }

/* Mobile call-to-action bar */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, .96);
  transform: translateY(110%); transition: transform .2s ease;
}
.sticky-cta.show { transform: none; }
@media (min-width: 761px) { .sticky-cta { display: none; } }

/* Policy and error pages */
.doc { padding: 56px 0 72px; }
.doc .container { max-width: 780px; }
.doc h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem); }
.doc h2 { margin-top: 2em; font-size: 1.3rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: .4em; }
.updated { color: var(--muted); }
.todo { padding: 0 .3em; border-radius: 4px; background: #fff3c4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Shared helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.hint { margin: 6px 0 14px; color: var(--muted); font-size: .92rem; }
.link-btn { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--brand); }
.two-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 28px; }
.subhead { margin: 36px 0 18px; font-size: 1.3rem; }
.narrow-form { max-width: 860px; }

/* Price list on the landing page */
.price-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.price-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.price-item:last-child { border-bottom: 0; }
.price-item small { grid-column: 1; color: var(--muted); font-size: .9rem; }
.price-item strong { grid-row: 1; grid-column: 2; white-space: nowrap; }
.tiers { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .94rem; }
.tiers th, .tiers td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.tiers thead th { color: var(--muted); font-weight: 650; }
.tiers tbody tr:last-child th, .tiers tbody tr:last-child td { border-bottom: 0; }
.sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.set { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.set h3 { margin-bottom: 6px; }
.set p { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.set .price { margin: 0; color: var(--ink); font-size: 1.7rem; }
.cta-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-block h2 { margin: 0 0 6px; }
.cta-block p { margin: 0; color: var(--ink-2); }
.ask { margin-top: 56px; }

/* Questionnaire */
.wizard-page { min-height: 70vh; padding: 40px 0 72px; background: var(--bg-alt); }
.wizard-container { max-width: 860px; }
.wizard-page h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); }
.progress { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; padding: 0; counter-reset: step; scroll-margin-top: 90px; }
.progress li { counter-increment: step; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .88rem; font-weight: 600; }
.progress li::before { content: counter(step); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: .78rem; }
.progress li.done::before { content: "✓"; background: var(--brand-soft); color: var(--brand); }
.progress li.current { border-color: var(--brand); color: var(--brand-hover); }
.progress li.current::before { background: var(--brand); color: #fff; }
.progress li { cursor: pointer; }
.progress li:hover { border-color: #b9c6d2; }
.progress li button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.progress li button:focus-visible { outline: none; }
.progress li:focus-within { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.progress li.missing { border-color: #e0a100; color: #6b5000; }
.progress li.missing::before { content: "!"; background: #fff3c4; color: #6b5000; }
@media (max-width: 640px) { .progress li:not(.current) { gap: 0; padding: 6px; font-size: 0; } }
.wizard-notice { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #f5dfa0; border-radius: 12px; background: #fffaeb; }
.wizard-notice ul { margin: 8px 0 0; padding-left: 18px; }
.wizard-notice li { margin: 4px 0; color: var(--ink-2); }
.wizard-notice .link-btn { color: var(--brand); font-weight: 650; }
.wizard, .result { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.step { display: none; }
.step.active { display: block; }
.step h2, .result h2 { margin-bottom: 18px; font-size: 1.5rem; }
.q { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.q > legend { display: block; margin-bottom: 10px; padding: 0; font-weight: 650; }
.q.field { display: grid; gap: 6px; margin: 0 0 22px; }
.q.field > span { font-weight: 650; }
.grid-2 > .q.field { margin: 0; }
.q.invalid > legend, .q.invalid > span { color: var(--bad); }
.q.invalid input, .q.invalid select, .q.invalid .opt span { border-color: var(--bad); }
.q.invalid:not(:has(.field-error))::after { content: "Uzupełnij to pole."; display: block; margin-top: 6px; color: var(--bad); font-size: .88rem; font-weight: 600; }
.field-error { display: block; margin-top: 4px; color: var(--bad); font-size: .86rem; font-weight: 600; }
.form-grid > .field-error { grid-column: 1 / -1; margin-top: -10px; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options-stack { flex-direction: column; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opt span { display: block; padding: .65em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background-color .15s; }
.opt b { color: var(--ink); font-weight: 600; }
.opt small { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; }
.opt:hover span { border-color: #b9c6d2; }
.opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.opt input:focus-visible + span { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.q-group { margin: 0 0 22px; padding: 16px 18px 2px; border-left: 3px solid var(--brand-soft); border-radius: 0 12px 12px 0; background: #fafcfb; }
.wizard-nav { display: flex; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.wizard-nav #next { margin-left: auto; }
.restart { margin: 14px 0 0; text-align: right; }
.result-summary { margin-bottom: 4px; color: var(--ink-2); font-weight: 650; }
.result-time { color: var(--brand-hover); font-weight: 650; }
.result h3 { margin-top: 28px; font-size: 1.2rem; }
.alerts { display: grid; gap: 10px; }
.alert { margin: 0; padding: 14px 16px; border: 1px solid; border-radius: 12px; }
.alert strong { display: block; }
.alert p { margin: 4px 0 0; color: var(--ink-2); font-size: .96rem; }
.alert-level { display: inline-block; margin-bottom: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.alert-blokada { border-color: #f3c2b6; background: #fff4f2; }
.alert-blokada .alert-level { color: #b42318; }
.alert-uwaga { border-color: #f5dfa0; background: #fffaeb; }
.alert-uwaga .alert-level { color: #8a4b05; }
.alert-info { border-color: #c9dcf2; background: #f2f7fd; }
.alert-info .alert-level { color: #1d5fa6; }
.docs { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .94rem; }
.docs th, .docs td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs th { color: var(--muted); font-size: .86rem; font-weight: 650; }
.docs tr:last-child td { border-bottom: 0; }
.badge-have, .badge-rec { display: inline-block; padding: .1em .5em; border-radius: 999px; font-size: .74rem; font-weight: 700; vertical-align: middle; }
.badge-have { background: var(--brand-soft); color: var(--brand-hover); }
.badge-rec { background: #fff3c4; color: #6b5000; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: .45em .9em; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand-hover); }
.modules { display: grid; gap: 8px; }
.module { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.module:has(input:checked) { border-color: var(--brand); background: #f6fcf9; }
.module input { width: 20px; height: 20px; margin: .15em 0 0; accent-color: var(--brand); }
.module-text small { display: block; margin-top: 2px; color: var(--muted); font-size: .88rem; }
.module-price { font-weight: 700; white-space: nowrap; }
.quote { margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--bg-alt); }
.quote-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.quote-row.total { margin-top: 6px; padding-top: 12px; border-top: 1px dashed #c9d3dc; font-size: 1.25rem; }
.quote-row.total strong { color: var(--brand); }
.quote .fine { margin: 6px 0 0; }
.send-form { margin-top: 28px; background: #fbfdfc; box-shadow: none; }
.send-form h3 { margin-top: 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
@media (max-width: 560px) {
  .wizard, .result { padding: 20px; }
  .module { grid-template-columns: auto 1fr; }
  .module-price { grid-column: 2; }
}

/* Admin panel */
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.admin .header-inner { justify-content: space-between; }
.admin-main { padding-top: 28px; padding-bottom: 60px; }
.login-form { display: grid; gap: 14px; max-width: 380px; margin: 40px auto; }
.login-form h1 { margin: 0; font-size: 1.6rem; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tabs { display: flex; gap: 6px; }
.tab { padding: .5em 1em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); font: inherit; font-weight: 650; cursor: pointer; }
.tab[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-hover); }
.admin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-filters .field { display: block; }
.admin-filters input[type="search"] { min-width: 260px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .93rem; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.admin-table th { position: sticky; top: 0; background: #f7faf8; color: var(--muted); font-weight: 650; }
.admin-table tbody tr { cursor: pointer; }
.admin-table tbody tr:hover, .admin-table tbody tr:focus { background: #f3faf6; outline: none; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(560px, 100%); overflow-y: auto; border-left: 1px solid var(--line); background: #fff; box-shadow: -10px 0 30px rgba(11, 27, 43, .12); }
.drawer-inner { padding: 24px; }
.drawer-close { float: right; }
.drawer h2 { margin-right: 90px; font-size: 1.4rem; }
.facts { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: .94rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }
.detail-list { margin: 0 0 12px; padding-left: 20px; font-size: .94rem; }
.drawer-form { display: grid; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Printing the questionnaire result ("Zapisz jako PDF") */
@media print {
  .site-header, .site-footer, .skip, .wizard, .progress, .send-form, .result-actions, .presets, .sticky-cta, .wizard-page .lead { display: none !important; }
  .wizard-page { padding: 0; background: #fff; }
  .result { padding: 0; border: 0; box-shadow: none; }
  .module:not(:has(input:checked)) { display: none; }
}
