:root {
  --bg: #ffffff;
  --paper: #f5f6f8;
  --ink: #141a27;
  --ink-2: #4b5363;
  --ink-3: #7c8492;
  --line: #dfe3ea;
  --blue: #1d4ea5;
  --blue-dark: #163d84;
  --blue-soft: #e8eef9;
  --ok: #1d7a4c;
  --warn: #a8650a;
  --bad: #b3322a;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.08rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo img { height: 26px; width: auto; }
@media (min-width: 720px) { .logo img { height: 30px; } }
.nav { display: none; gap: 26px; margin-left: auto; font-size: .95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.header-actions .login { color: var(--ink); text-decoration: none; display: none; }
@media (min-width: 560px) { .header-actions .login { display: inline; } }
@media (min-width: 940px) { .nav { display: flex; } .header-actions { margin-left: 8px; } }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 6px; border: 0;
  background: var(--blue); color: #fff; font: inherit; font-weight: 650; font-size: .97rem;
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }

/* Hero */
.hero { padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1fr 460px; gap: 72px; } .hero { padding: 88px 0 96px; } }
.hero .lead { font-size: 1.18rem; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero-cta span { color: var(--ink-2); font-size: .95rem; }

/* Report sheet */
.sheet {
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(20, 26, 39, .22);
  padding: 26px 26px 22px; font-size: .84rem; line-height: 1.45;
  font-variant-numeric: tabular-nums; width: 100%; max-width: 460px; justify-self: center;
  transform: rotate(.6deg);
}
.sheet-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.sheet-top b { font-size: .95rem; letter-spacing: .01em; }
.sheet-top span { color: var(--ink-3); font-size: .78rem; }
.sheet-car { margin: 14px 0 16px; }
.sheet-car strong { font-size: 1.12rem; display: block; }
.sheet-car span { color: var(--ink-2); }
.sheet h4 { margin: 16px 0 6px; font-size: .8rem; letter-spacing: .01em; color: var(--ink-3); font-weight: 650; }
.sheet table { width: 100%; border-collapse: separate; border-spacing: 0; }
.sheet td { padding: 5px 0; border-bottom: 1px solid #eef0f4; vertical-align: top; }
.sheet td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.t-ok { color: var(--ok); font-weight: 600; }
.t-warn { color: var(--warn); font-weight: 600; }
.t-bad { color: var(--bad); font-weight: 600; }
.sheet-verdict { margin-top: 18px; padding: 12px 14px; background: var(--paper); border-left: 3px solid var(--warn); }
.sheet-verdict b { display: block; font-size: .92rem; }
.sheet-verdict span { color: var(--ink-2); }

/* Sections */
section { padding: 80px 0; }
.paper { background: var(--paper); }
.head { max-width: 680px; margin-bottom: 44px; }
.head p { color: var(--ink-2); font-size: 1.08rem; }

/* Feature rows */
.rows { border-top: 1px solid var(--ink); }
.rows > div { display: grid; gap: 4px 40px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .rows > div { grid-template-columns: 260px 1fr; padding: 22px 0; } }
.rows h3 { margin: 0; }
.rows p { margin: 0; color: var(--ink-2); max-width: 44em; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.steps li { border-top: 3px solid var(--blue); padding-top: 16px; }
.steps li::before { counter-increment: s; content: counter(s) "."; display: block; font-weight: 750; color: var(--blue); margin-bottom: 6px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* Two columns */
.cols { display: grid; gap: 40px; }
@media (min-width: 800px) { .cols { grid-template-columns: 1fr 1fr; gap: 64px; } }
.cols ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--ink-2); }
.cols li { margin-bottom: 6px; }
.cols li::marker { color: var(--blue); }

.facts { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.facts p { color: var(--ink-2); margin: 0; }

/* Pricing */
.price-band { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .price-band { grid-template-columns: 1fr 1fr; gap: 64px; } }
.price { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0 0 10px; }
.price small { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 820px; margin: 0; }
.faq dt { font-weight: 700; margin-top: 26px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--ink-2); }

/* Contact */
.contact { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.15fr; gap: 72px; } }
.contact address { font-style: normal; color: var(--ink-2); margin-top: 24px; line-height: 1.9; }
.contact address b { color: var(--ink); }
form { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #c9ced8; border-radius: 5px; padding: 10px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: var(--ink-2); margin: 4px 0 20px; }
.consent input { margin-top: 5px; }
.form-msg { font-size: .92rem; margin: 14px 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: .92rem; color: var(--ink-2); }
.footer .wrap { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { margin: 0 0 8px; color: var(--ink); font-size: .95rem; }
.footer p { margin: 0 0 4px; }
.footer a { color: var(--ink-2); }
.footer .logo img { height: 24px; margin-bottom: 12px; }
.copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; color: var(--ink-3); font-size: .85rem; }

/* Legal page */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 800px; }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-2); }

/* Raport w hero: kolor werdyktu i animacja wypełniania */
.sheet-verdict.v-ok { border-left-color: var(--ok); }
.sheet-verdict.v-bad { border-left-color: var(--bad); }
.sheet.is-filling { transform: translateY(14px) rotate(0deg); opacity: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
.sheet.is-filled { transform: rotate(.6deg); opacity: 1; }
.sheet .reveal { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.sheet.is-filled .reveal { opacity: 1; transform: none; }
.sheet .reveal td:last-child { transition: opacity .3s ease; }
.sheet:not(.is-filled) .reveal td:last-child { opacity: 0; }
.sheet .sheet-verdict.reveal { transform: scale(.97); transform-origin: left center; }
.sheet.is-filled .sheet-verdict.reveal { transform: none; }

/* Polityka prywatności: tabele i miejsca do uzupełnienia */
.legal table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 12px 0 20px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 650; border-bottom: 1px solid var(--ink); }
.legal .table-scroll { overflow-x: auto; }
.legal .table-scroll table { min-width: 560px; }
.legal h3 { margin-top: 1.4em; font-size: 1.02rem; }
mark.todo { background: #fff1b8; color: #6b4a00; padding: 1px 4px; border-radius: 3px; }

/* Zgody cookies */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 40px -12px rgba(20, 26, 39, .35);
  max-width: 760px; margin: 0 auto; font-size: .92rem;
}
.cc-inner { padding: 20px 22px; max-height: 70vh; overflow: auto; }
.cc-banner h2, .cc-panel h2 { font-size: 1.12rem; margin: 0 0 8px; }
.cc-banner p, .cc-panel p { color: var(--ink-2); margin: 0 0 10px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cc-btn {
  flex: 1 1 160px; padding: 10px 14px; border-radius: 6px; cursor: pointer;
  font: inherit; font-weight: 650; font-size: .92rem;
  background: #fff; color: var(--ink); border: 1.5px solid var(--ink);
}
.cc-btn:hover { background: var(--paper); }
.cc-btn:focus-visible, .cc-switch input:focus-visible + span { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.cc-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(20, 26, 39, .45); display: grid; place-items: center; padding: 16px; }
.cc-panel { background: #fff; border-radius: 8px; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; font-size: .93rem; }
.cc-panel h2:focus { outline: none; }
.cc-row { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.cc-row h3 { font-size: .98rem; margin: 0 0 4px; }
.cc-row p { margin: 0; font-size: .88rem; }
.cc-row .cc-na { color: var(--ink-3); margin-top: 4px; font-style: italic; }
.cc-always { font-size: .82rem; color: var(--ink-3); white-space: nowrap; padding-top: 2px; }
.cc-switch { position: relative; flex: 0 0 auto; width: 44px; height: 26px; margin-top: 2px; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch span { position: absolute; inset: 0; background: #c9ced8; border-radius: 999px; transition: background .15s; pointer-events: none; }
.cc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .15s; }
.cc-switch input:checked + span { background: var(--blue); }
.cc-switch input:checked + span::after { transform: translateX(18px); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + span { opacity: .5; }
.cc-links { font-size: .86rem; border-top: 1px solid var(--line); padding-top: 12px; }
.cc-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 220; transform: translate(-50%, 20px);
  width: calc(100% - 32px); max-width: 520px; background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 6px; font-size: .9rem; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.cc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.footer .linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Logowanie */
.auth-page { background: var(--paper); }
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.auth .logo img { height: 32px; margin-bottom: 28px; }
.auth-card { width: 100%; max-width: 400px; padding: 28px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 18px; }
.auth-alert { background: #fbe9e7; color: var(--bad); border-left: 3px solid var(--bad); padding: 10px 12px; font-size: .92rem; margin: 0 0 16px; border-radius: 3px; }
.auth-remember { display: flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--ink-2); margin: 2px 0 18px; }
.auth-submit { width: 100%; }
.auth-submit:disabled { opacity: .7; cursor: progress; }
.auth-help { font-size: .87rem; color: var(--ink-2); margin: 16px 0 0; }
.auth-foot { margin: 22px 0 0; font-size: .95rem; color: var(--ink-2); }
.auth-legal { margin: 10px 0 0; font-size: .85rem; color: var(--ink-3); }
.auth-legal a, .auth-legal .linklike { color: var(--ink-3); }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
