/* ============================================================
   Czcionki hostowane lokalnie (SIL Open Font License 1.1).
   Brak połączeń z serwerami Google — zob. polityka-cookies.html
   Licencje: fonts/LICENSE-Cormorant-Garamond.txt, fonts/LICENSE-DM-Sans.txt
   ============================================================ */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext-500-normal.woff2') format('woff2');
  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: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  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; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/cormorant-garamond-latin-ext-600-normal.woff2') format('woff2');
  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: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  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; }

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/dm-sans-latin-ext-400-normal.woff2') format('woff2');
  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: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2');
  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; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/dm-sans-latin-ext-500-normal.woff2') format('woff2');
  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: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2');
  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; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/dm-sans-latin-ext-700-normal.woff2') format('woff2');
  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: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/dm-sans-latin-700-normal.woff2') format('woff2');
  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; }

/* ============================================================
   HERON KSIĘGOWOŚĆ — identyfikacja wizualna
   Paleta: granat / len / miedź · Cormorant Garamond + DM Sans
   Ostre narożniki, linie włoskowe, charakter kancelaryjny
   ============================================================ */

:root {
  --navy: #12233C;
  --navy-deep: #0C1830;
  --ink: #1E2E47;
  --linen: #F4EEE3;
  --linen-dark: #EBE3D3;
  --paper: #FBF8F1;
  --copper: #9C2945;
  --copper-dark: #7C1F37;
  --muted: #5D6472;
  --hairline: rgba(18, 35, 60, 0.16);
  --hairline-light: rgba(244, 238, 227, 0.22);

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nagłówek ---------- */

.topbar { height: 3px; background: var(--copper); }

header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 50;
}
.site-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: var(--max); margin: 0 auto;
}

.logo { text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.logo img { height: 48px; width: auto; display: block; }
@media (max-width: 820px) { .logo img { height: 40px; width: auto; } }
.logo .heron {
  font-family: var(--serif); font-weight: 600; font-size: 26px;
  letter-spacing: 0.14em; color: var(--navy);
}
.logo .slash { color: var(--copper); font-family: var(--serif); font-size: 26px; font-weight: 500; }
.logo .ksieg {
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.34em; color: var(--muted); text-transform: uppercase;
}

nav.main { display: flex; gap: 34px; align-items: center; }
nav.main a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--copper); color: var(--navy); }
nav.main a:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--hairline); padding: 8px 12px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    flex-direction: column; gap: 0; padding: 8px 24px 16px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--hairline); }
}

/* ---------- Sekcje / typografia ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--copper);
}
.eyebrow::before { content: "/"; font-family: var(--serif); font-size: 18px; line-height: 1; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(30px, 4.3vw, 50px); letter-spacing: 0.01em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }

.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--hairline); }

/* ---------- Hero ---------- */

.hero { background: var(--linen); border-bottom: 1px solid var(--hairline); position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 104px; }
.hero::after {
  content: "";
  position: absolute; right: -4vw; top: 50%; transform: translateY(-50%);
  width: clamp(320px, 46vw, 640px); aspect-ratio: 1528/1152;
  background: url("sygnet.png") no-repeat center / contain;
  opacity: 0.07; pointer-events: none;
}
.hero h1 { max-width: 40ch; margin: 20px 0 24px; text-wrap: balance; }
.hero .lead { margin-bottom: 40px; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-family: var(--sans);
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid var(--navy);
}
.btn:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.btn-solid { background: var(--navy); color: var(--linen); }
.btn-solid:hover { background: var(--navy-deep); }
.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-dark); }

.hero-meta {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--hairline);
  display: flex; gap: 40px; flex-wrap: wrap;
  font-size: 13px; letter-spacing: 0.06em; color: var(--muted);
}
.hero-meta strong { color: var(--navy); font-weight: 500; display: block; font-size: 14px; }

/* ---------- Usługi ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 48px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.cell { background: var(--paper); padding: 36px 32px; }
.cell h3 { margin-bottom: 12px; }
.cell p { color: var(--muted); font-size: 15px; }
.cell .tag { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper); display: block; margin-bottom: 16px; }

/* ---------- Zasady / transparentność ---------- */

.principles { background: var(--navy); color: var(--linen); }
.principles .eyebrow { color: var(--copper); }
.principles h2 { color: var(--linen); }
.principles-list { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 900px) { .principles-list { grid-template-columns: 1fr; gap: 32px; } }
.principle { border-top: 1px solid var(--hairline-light); padding-top: 20px; }
.principle h3 { color: var(--linen); font-size: 21px; margin-bottom: 10px; }
.principle p { color: rgba(244, 238, 227, 0.75); font-size: 15px; }

/* ---------- Cennik ---------- */

.price-note { font-size: 14px; color: var(--muted); max-width: 70ch; }

table.cennik {
  width: 100%; border-collapse: collapse; margin-top: 28px;
  font-variant-numeric: tabular-nums;
}
table.cennik caption {
  text-align: left; font-family: var(--serif); font-size: 24px; font-weight: 600;
  color: var(--navy); padding-bottom: 14px;
}
table.cennik th, table.cennik td {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}
table.cennik thead th {
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--navy); background: transparent;
}
table.cennik td.num, table.cennik th.num { text-align: right; }
table.cennik td.price { text-align: right; color: var(--navy); font-weight: 500; white-space: nowrap; }
table.cennik tr.over td { color: var(--copper-dark); }
table.cennik tbody tr:hover { background: var(--linen); }

.cennik-block { margin-top: 64px; }
.cennik-block:first-of-type { margin-top: 40px; }

.footnotes { margin-top: 20px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--hairline); padding-top: 16px; }
.footnotes p { margin-bottom: 6px; }
.footnotes p::before { content: "/ "; color: var(--copper); }

/* ---------- O firmie ---------- */

.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; margin-top: 40px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-grid .facts { border: 1px solid var(--hairline); padding: 28px; background: var(--linen); }
.facts dt { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { font-size: 15px; color: var(--navy); font-weight: 500; }
.about-copy p { margin-bottom: 18px; color: var(--ink); }

/* ---------- Kontakt ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

form.contact label {
  display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin: 22px 0 8px;
}
form.contact input[type="text"],
form.contact input[type="email"],
form.contact textarea {
  width: 100%; border: 1px solid var(--hairline); background: var(--paper);
  padding: 13px 14px; font-family: var(--sans); font-size: 15px; color: var(--ink);
}
form.contact input:focus, form.contact textarea:focus {
  outline: none; border-color: var(--copper);
}
form.contact .consent { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0; font-size: 13px; color: var(--muted); }
form.contact .consent input { margin-top: 3px; accent-color: var(--copper); }
form.contact button {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 15px 34px; border: 1px solid var(--navy);
  background: var(--navy); color: var(--linen); cursor: pointer;
}
form.contact button:hover { background: var(--navy-deep); }
form.contact button:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.contact-details dt { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 24px; }
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { font-size: 17px; color: var(--navy); }
.contact-details a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--copper); }
.contact-details a:hover { color: var(--copper-dark); }

/* ---------- Stopka ---------- */

footer.site {
  background: var(--navy-deep); color: rgba(244, 238, 227, 0.7);
  padding: 56px 0 40px; font-size: 13.5px;
}
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { footer .cols { grid-template-columns: 1fr; gap: 28px; } }
footer .logo .heron, footer .logo .slash { font-size: 22px; }
footer .logo .heron { color: var(--linen); }
footer .logo .ksieg { color: rgba(244, 238, 227, 0.55); }
footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--linen); margin-bottom: 14px; font-weight: 500; }
footer a { color: rgba(244, 238, 227, 0.7); text-decoration: none; }
footer a:hover { color: var(--linen); }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer .legal {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--hairline-light);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(244, 238, 227, 0.5);
}

/* ---------- Strony wewnętrzne ---------- */

.page-head { background: var(--linen); border-bottom: 1px solid var(--hairline); padding: 72px 0 56px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 18px; max-width: 20ch; }
.page-head .lead { margin-top: 18px; }

.prose { max-width: 76ch; }
.prose h2 { font-size: 26px; margin: 40px 0 14px; }
.prose p, .prose li { color: var(--ink); margin-bottom: 14px; }
.prose ul { padding-left: 22px; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 40px; border-top: 1px solid var(--hairline); }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--copper); font-family: var(--sans); font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }
.faq-list details a { color: var(--copper-dark); }

/* ---------- Lista abonamentowa (cennik) ---------- */
.abonament { list-style: none; margin-top: 24px; border-top: 1px solid var(--hairline); }
.abonament li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--hairline); position: relative; font-size: 15px; color: var(--ink); }
.abonament li::before { content: "/"; position: absolute; left: 4px; color: var(--copper); font-family: var(--serif); font-size: 18px; }

/* ---------- Logo w sekcji o firmie ---------- */
.facts .logo-glowne { display: block; width: min(240px, 70%); height: auto; margin: 0 auto 26px; }

/* ---------- Kalkulator wyceny ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; margin-top: 40px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; gap: 24px; } }

.calc-form { background: #fff; border: 1px solid var(--hairline); padding: 8px 32px; }
@media (max-width: 560px) { .calc-form { padding: 4px 18px; } }

.calc-step { padding: 26px 0; border-top: 1px solid var(--hairline); }
.calc-step:first-child { border-top: none; }

.calc-step-head { display: flex; align-items: baseline; gap: 14px; }
.calc-no {
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--copper);
  min-width: 22px; font-variant-numeric: lining-nums tabular-nums;
}
.calc-title { font-size: 15px; font-weight: 500; color: var(--navy); display: block; }
.calc-title-sm { font-size: 14.5px; color: var(--ink); display: block; }
.calc-hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.calc-step > .calc-hint { margin: 14px 0 0 36px; }

/* wiersz: opis po lewej, kontrolka wyrównana do prawej */
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.calc-row-sub { padding: 14px 0 14px 36px; border-top: 1px dashed var(--hairline); }
.calc-step-head + .calc-row-sub { border-top: none; }
@media (max-width: 560px) { .calc-row-sub { padding-left: 0; } .calc-step > .calc-hint { margin-left: 0; } }

/* przełącznik segmentowy VAT */
.calc-seg {
  display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 0 36px;
  border: 1px solid var(--navy);
}
@media (max-width: 560px) { .calc-seg { margin-left: 0; } }
.calc-seg label { position: relative; cursor: pointer; }
.calc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc-seg span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 8px 12px; font-size: 14px; color: var(--navy);
  transition: background .15s ease, color .15s ease;
}
.calc-seg label + label span { border-left: 1px solid var(--navy); }
.calc-seg input:checked + span { background: var(--navy); color: var(--linen); font-weight: 500; }
.calc-seg label:hover input:not(:checked) + span { background: var(--linen); }
.calc-seg input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; position: relative; z-index: 1; }

/* stepper − liczba + (wszystkie tej samej szerokości) */
.stepper {
  display: grid; grid-template-columns: 40px 60px 40px; height: 44px;
  border: 1px solid var(--hairline); background: var(--paper);
}
.stepper button {
  background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1;
  color: var(--navy); font-family: var(--sans);
}
.stepper button:hover { background: var(--linen); color: var(--copper-dark); }
.stepper input {
  width: 100%; border: none; border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline);
  background: #fff; text-align: center; font-family: var(--sans); font-size: 15px; font-weight: 500;
  color: var(--navy); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--copper); }
@media (max-width: 560px) {
  .stepper { grid-template-columns: 38px 46px 38px; }
  .calc-row { gap: 14px; }
  .calc-seg span { font-size: 13px; padding: 8px; }
}

/* suwak z wypełnieniem */
.calc-slider { margin: 22px 0 0 36px; position: relative; padding-bottom: 22px; }
@media (max-width: 560px) { .calc-slider { margin-left: 0; } }
.calc-slider input[type="range"] {
  --fill: 12.75%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 0;
  background: linear-gradient(to right, var(--copper) 0 var(--fill), var(--linen-dark) var(--fill) 100%);
  cursor: pointer; display: block;
}
.calc-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--navy);
}
.calc-slider input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--navy);
}
.calc-slider input[type="range"]::-moz-range-track { background: transparent; }
.calc-slider input[type="range"]:focus-visible { outline: 3px solid var(--copper); outline-offset: 8px; }
.calc-ticks { position: absolute; left: 10px; right: 10px; bottom: 0; height: 16px; }
.calc-ticks span {
  position: absolute; transform: translateX(-50%); font-size: 11.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* przełącznik PPK */
.switch { position: relative; display: inline-block; width: 50px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch-track {
  position: absolute; inset: 0; background: var(--linen-dark); border: 1px solid var(--hairline);
  border-radius: 14px; transition: background .15s ease;
}
.switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(18,35,60,.3);
  transition: transform .15s ease;
}
.switch input:checked + .switch-track { background: var(--navy); border-color: var(--navy); }
.switch input:checked + .switch-track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--copper); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch-track { opacity: .45; }

.calc-foot { padding: 18px 0 20px; border-top: 1px solid var(--hairline); text-align: right; }
.calc-reset {
  background: none; border: none; padding: 4px 0; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--hairline);
}
.calc-reset:hover { color: var(--copper-dark); border-bottom-color: var(--copper); }

/* panel wyniku */
.calc-result { background: var(--navy); color: var(--linen); padding: 34px 32px 28px; position: sticky; top: 96px; }
@media (max-width: 900px) { .calc-result { position: static; } }
.calc-label { font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(244,238,227,0.65); }
.calc-total {
  font-family: var(--serif); font-size: 60px; font-weight: 600; line-height: 1; margin: 14px 0 10px;
  color: var(--linen); font-variant-numeric: lining-nums tabular-nums; display: flex; align-items: baseline; flex-wrap: wrap;
}
.calc-cur { font-family: var(--sans); font-size: 16px; font-weight: 400; color: rgba(244,238,227,0.75); margin-left: 8px; }
.calc-sub { font-size: 12.5px; color: rgba(244,238,227,0.6); }

.calc-breakdown { list-style: none; margin-top: 24px; border-top: 1px solid var(--hairline-light); }
.calc-breakdown li {
  display: flex; justify-content: space-between; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--hairline-light); font-size: 14px; color: rgba(244,238,227,0.85);
  font-variant-numeric: tabular-nums;
}
.calc-breakdown li span:last-child { color: var(--linen); font-weight: 500; white-space: nowrap; }
.calc-note { margin-top: 14px; font-size: 12.5px; color: #E8B9C6; line-height: 1.5; }
.calc-note:empty { display: none; }
.calc-result .calc-cta {
  display: block; width: 100%; text-align: center; margin-top: 26px;
  background: var(--copper); border-color: var(--copper); color: #fff;
}
.calc-result .calc-cta:hover { background: var(--copper-dark); border-color: var(--copper-dark); }
.calc-phone { margin-top: 14px; text-align: center; font-size: 13.5px; color: rgba(244,238,227,0.75); }
.calc-phone a { color: var(--linen); text-decoration: none; border-bottom: 1px solid rgba(244,238,227,0.4); white-space: nowrap; }
.calc-phone a:hover { border-bottom-color: var(--linen); }
.calc-fine { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline-light); font-size: 11.5px; color: rgba(244,238,227,0.6); text-align: center; }
.calc-fine a { color: rgba(244,238,227,0.85); }

.calc-disclaimer { margin-top: 48px; border: 1px solid var(--hairline); background: var(--linen); padding: 28px 30px; }
.calc-disclaimer h3 { font-size: 19px; margin-bottom: 12px; }
.calc-disclaimer p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; max-width: 88ch; }
.calc-disclaimer p:last-child { margin-bottom: 0; }
.calc-disclaimer strong { color: var(--navy); font-weight: 500; }

/* ---------- Dostępność ---------- */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--linen); padding: 12px 20px;
  font-size: 14px; text-decoration: none; border: 2px solid var(--copper);
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible,
details:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
  border-radius: 1px;
}
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* pola dotykowe min. 44x44 px na urządzeniach dotykowych */
@media (pointer: coarse) {
  nav.main a { min-height: 44px; display: flex; align-items: center; }
  .btn, form.contact button, .nav-toggle { min-height: 44px; }
  .faq-list summary { min-height: 44px; }
}

/* wymagane pola w formularzu */
form.contact .req { color: var(--copper-dark); font-weight: 700; }
form.contact .field-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; text-transform: none; letter-spacing: 0; }

/* klauzula RODO pod formularzem */
.rodo-box { margin-top: 26px; border: 1px solid var(--hairline); background: var(--linen); padding: 0; }
.rodo-box summary {
  cursor: pointer; padding: 16px 18px; font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.rodo-box summary::-webkit-details-marker { display: none; }
.rodo-box summary::after { content: "+"; color: var(--copper); font-size: 20px; }
.rodo-box[open] summary::after { content: "–"; }
.rodo-box .rodo-body { padding: 0 18px 18px; font-size: 13px; color: var(--muted); }
.rodo-box .rodo-body p { margin-bottom: 9px; }
.rodo-box .rodo-body p:last-child { margin-bottom: 0; }

/* ---------- Formularz krokowy (kontakt) ---------- */
.wiz-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .wiz-grid { grid-template-columns: 1fr; gap: 40px; } }

.wiz { background: #fff; border: 1px solid var(--hairline); padding: 30px 34px 26px; scroll-margin-top: 110px; }
@media (max-width: 560px) { .wiz { padding: 22px 18px 20px; } }

.wiz-top { display: none; }
.wiz-js .wiz-top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.wiz-progress { flex: 1; height: 3px; background: var(--linen-dark); }
.wiz-progress span { display: block; height: 100%; width: 25%; background: var(--copper); transition: width .25s ease; }
.wiz-count { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.wiz-prefill { background: var(--linen); border-left: 3px solid var(--copper); padding: 12px 16px; font-size: 13.5px; color: var(--ink); margin-bottom: 22px; }

.wiz .wiz-step { padding: 0; border-top: none; }
.wiz .wiz-step + .wiz-step { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--hairline); }
.wiz-js .wiz-step + .wiz-step { margin-top: 0 !important; padding-top: 0 !important; border-top: none !important; }
.wiz-h { font-size: 28px; margin-bottom: 8px; }
.wiz-h:focus { outline: none; }

.tiles-set { border: none; padding: 0; margin: 22px 0 0; }
.tiles-set legend { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 12px; }
.legend-hint { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .tiles-3, .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile-wide { grid-column: 1 / -1; }
.tile-wide2 { grid-column: span 2; }

.tile { position: relative; cursor: pointer; display: block; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.tile span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 54px; height: 100%; padding: 11px 14px 11px 40px; position: relative;
  border: 1px solid var(--hairline); background: var(--paper);
  transition: border-color .12s ease, background .12s ease;
}
.tile strong { font-size: 14.5px; font-weight: 500; color: var(--navy); line-height: 1.3; }
.tile small { font-size: 12px; color: var(--muted); line-height: 1.35; }
/* znacznik: kółko (radio) lub kwadrat (checkbox) */
.tile span::before {
  content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border: 1.5px solid var(--muted); border-radius: 50%; background: #fff;
}
.tile-check span::before { border-radius: 2px; }
.tile:hover span { border-color: var(--navy); }
.tile input:checked + span { border-color: var(--navy); background: var(--linen); box-shadow: inset 0 0 0 1px var(--navy); }
.tile input:checked + span::before { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 3px #fff; }
.tile-check input:checked + span::before {
  box-shadow: none;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tile input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }

.wiz-warn { margin-top: 12px; padding: 12px 14px; background: #F6E6EA; border-left: 3px solid var(--copper); font-size: 13.5px; color: var(--copper-dark); }

/* pola kontaktowe */
.wiz-fields { margin-top: 22px; }
.wiz-field { margin-top: 18px; }
.wiz-field:first-child { margin-top: 0; }
.wiz-field label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.wiz .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-left: 4px; font-size: 12px; }
.wiz-field input, .wiz textarea {
  width: 100%; height: 48px; border: 1px solid var(--hairline); background: var(--paper);
  padding: 0 14px; font-family: var(--sans); font-size: 16px; color: var(--ink);
}
.wiz textarea { height: auto; padding: 12px 14px; margin-top: 10px; resize: vertical; }
.wiz-field input:focus, .wiz textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); background: #fff; }
.wiz-field input[aria-invalid="true"] { border-color: var(--copper-dark); box-shadow: 0 0 0 1px var(--copper-dark); }
.wiz-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.wiz-row2 .wiz-field { margin-top: 0; }
@media (max-width: 560px) { .wiz-row2 { grid-template-columns: 1fr; } }
.wiz-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.wiz-err { font-size: 12.5px; color: var(--copper-dark); margin-top: 6px; font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.chips-label { font-size: 12.5px; color: var(--muted); margin-right: 2px; }
.chip, .wiz-field .chip { position: relative; cursor: pointer; display: inline-block; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 6px 12px; border: 1px solid var(--hairline); border-radius: 16px; font-size: 13px; color: var(--ink); background: var(--paper); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--linen); }
.chip input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }

.wiz-more { margin-top: 18px; }
.wiz-more summary { cursor: pointer; font-size: 13.5px; color: var(--navy); border-bottom: 1px dashed var(--hairline); display: inline-block; padding-bottom: 2px; }

/* podsumowanie */
.wiz-summary:empty { display: none; }
.wiz-summary { margin-top: 26px; background: var(--linen); border: 1px solid var(--hairline); padding: 18px 20px; }
.wiz-sum-title { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.wiz-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; font-size: 13.5px; }
.wiz-summary dt { color: var(--muted); }
.wiz-summary dd { color: var(--navy); }
.wiz-est { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.wiz-est span { font-size: 13px; color: var(--ink); }
.wiz-est strong { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.wiz-est-note { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.wiz .consent { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.wiz .consent input { margin-top: 3px; accent-color: var(--navy); width: 16px; height: 16px; flex-shrink: 0; }
.wiz .rodo-box { margin-top: 16px; }

/* nawigacja */
.wiz-nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.wiz-back, .wiz-next { display: none; }
.wiz-js .wiz-back, .wiz-js .wiz-next { display: inline-block; }
.wiz-back { margin-right: auto; background: none; border: none; padding: 10px 0; cursor: pointer; font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wiz-back:hover { color: var(--navy); }
.wiz-err-step { margin: 0; text-align: right; }
.wiz-next, .wiz-submit {
  min-height: 48px; padding: 0 34px; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--navy); color: var(--linen); border: 1px solid var(--navy);
}
.wiz-submit { background: var(--copper); border-color: var(--copper); color: #fff; }
.wiz-next:hover { background: var(--navy-deep); }
.wiz-submit:hover { background: var(--copper-dark); border-color: var(--copper-dark); }
@media (max-width: 560px) { .wiz-next, .wiz-submit { width: 100%; } .wiz-err-step { text-align: left; flex-basis: 100%; order: -1; } }

/* ---------- Kalkulator formy opodatkowania ---------- */
.tax { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
@media (max-width: 1000px) { .tax { grid-template-columns: minmax(0, 1fr); } }
.tax-form { background: #fff; border: 1px solid var(--hairline); padding: 6px 28px; }
@media (max-width: 560px) { .tax-form { padding: 4px 18px; } }
.tax-group { padding: 24px 0; border-top: 1px solid var(--hairline); }
.tax-group:first-child { border-top: none; }
.tax-g-title { display: flex; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 14px; }
.tax-g-title label { font-size: 15px; font-weight: 500; color: var(--navy); }
.tax-lbl { font-size: 13.5px; color: var(--ink); }
.tax-seg-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.tax-seg { margin: 0; min-width: 200px; }
@media (max-width: 400px) { .tax-seg-row { flex-wrap: wrap; } .tax-seg { width: 100%; } }
.tax-seg span { min-height: 38px; font-size: 13px; }
.tax-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 480px) { .tax-two { grid-template-columns: 1fr; } }
.tax-field label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.tax-money { display: flex; align-items: stretch; border: 1px solid var(--hairline); background: var(--paper); height: 48px; }
.tax-money:focus-within { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); background: #fff; }
.tax-money input { flex: 1; min-width: 0; width: 100%; border: none; background: transparent; padding: 0 12px; font-family: var(--sans); font-size: 17px; font-weight: 500; color: var(--navy); font-variant-numeric: tabular-nums; text-align: right; }
.tax-money input:focus { outline: none; }
.tax-money span { display: flex; align-items: center; padding: 0 12px; font-size: 13px; color: var(--muted); border-left: 1px solid var(--hairline); }
.tax-money-sm { width: 150px; height: 44px; }
.tax-money-sm input { font-size: 15px; }
.tax-select {
  width: 100%; height: 48px; border: 1px solid var(--hairline); background-color: var(--paper); padding: 0 40px 0 12px;
  font-family: var(--sans); font-size: 14.5px; color: var(--navy); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2312233C' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.tax-select:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); }
.tax-group .calc-hint { margin-top: 8px; }
.tax-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 13px 0; border-top: 1px dashed var(--hairline); }
.tax-g-title + .tax-row { border-top: none; padding-top: 2px; }
.tax-select ~ .tax-row { margin-top: 10px; }
.tax-row-in { padding-left: 16px; border-left: 2px solid var(--linen-dark); }
.tax-row .calc-hint { margin-top: 2px; }

.tax-out { position: sticky; top: 96px; }
@media (max-width: 1000px) { .tax-out { position: static; } }
.tax-win { background: var(--navy); color: var(--linen); padding: 26px 28px; }
.tax-win-lbl { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244,238,227,0.65); }
.tax-win-main { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1.1; margin: 8px 0 10px; color: var(--linen); font-variant-numeric: lining-nums; }
.tax-win-sub { font-size: 14.5px; color: rgba(244,238,227,0.85); line-height: 1.55; }
.tax-win-sub strong { color: #fff; font-weight: 600; white-space: nowrap; }
.tax-win-close { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline-light); font-size: 13px; color: #E8B9C6; }

.tax-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--hairline); border-top: none; }
.tax-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 460px; }
.tax-table th, .tax-table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--hairline); font-size: 14px; white-space: nowrap; }
.tax-table th[scope="row"] { text-align: left; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.tax-table thead th { font-size: 14px; font-weight: 500; color: var(--navy); vertical-align: bottom; padding-top: 16px; }
.tax-table thead th:first-child { text-align: left; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tax-table thead th small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.tax-table td { color: var(--ink); }
.tax-table .is-best { background: var(--linen); }
.tax-table thead th.is-best { box-shadow: inset 0 3px 0 var(--copper); }
.tax-table thead th.is-best::after { content: "najkorzystniej"; display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-dark); margin-top: 3px; }
.tax-table .row-net th, .tax-table .row-net td { font-weight: 600; color: var(--navy); font-size: 15px; border-top: 1px solid var(--navy); }
.tax-table .row-net th[scope="row"] { color: var(--navy); font-weight: 500; }
.tax-table .row-sub td { color: var(--muted); font-size: 13px; }
.tax-table td.na { color: var(--muted); }
.tax-table .row-na td { white-space: normal; font-size: 12px; color: var(--copper-dark); text-align: left; vertical-align: top; }
.tax-table tr:last-child th, .tax-table tr:last-child td { border-bottom: none; }

.tax-notes { margin-top: 18px; background: var(--linen); border: 1px solid var(--hairline); padding: 18px 22px; }
.tax-notes-h { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tax-notes ul { list-style: none; }
.tax-notes li { position: relative; padding: 7px 0 7px 22px; font-size: 13.5px; color: var(--ink); line-height: 1.55; border-top: 1px solid var(--hairline); }
.tax-notes li:first-child { border-top: none; }
.tax-notes li::before { content: "i"; position: absolute; left: 0; top: 9px; width: 15px; height: 15px; border-radius: 50%; background: var(--navy); color: var(--linen); font-size: 10px; font-weight: 700; text-align: center; line-height: 15px; font-family: var(--serif); }
.tax-notes li.n-warn::before { content: "!"; background: var(--copper); color: #fff; font-family: var(--sans); }
.tax-notes-foot { margin-top: 10px; font-size: 12px; color: var(--muted); }
.tax-notes-foot a { color: var(--copper-dark); }

/* tabele cennika na wąskich ekranach */
@media (max-width: 480px) {
  table.cennik th, table.cennik td { padding: 11px 8px; font-size: 14px; }
  table.cennik thead th { letter-spacing: 0.06em; font-size: 11px; }
  table.cennik caption { font-size: 21px; }
}

@media (max-width: 560px) {
  .tax-table { min-width: 0; }
  .tax-table th, .tax-table td { padding: 9px 5px; font-size: 12.5px; }
  .tax-table th:first-child, .tax-table td:first-child { padding-left: 12px; }
  .tax-table th:last-child, .tax-table td:last-child { padding-right: 10px; }
  .tax-table th[scope="row"] { white-space: normal; font-size: 12px; line-height: 1.3; }
  .tax-table thead th { font-size: 13px; }
  .tax-table thead th.is-best::after { font-size: 9px; letter-spacing: 0.08em; }
  .tax-table .row-net th, .tax-table .row-net td { font-size: 13px; }
  .tax-win { padding: 22px 20px; }
  .tax-win-main { font-size: 32px; }
}

@media (max-width: 380px) {
  .tax-table th, .tax-table td { padding: 8px 3px; font-size: 11.5px; }
  .tax-table th[scope="row"] { font-size: 11px; }
  .tax-table th:first-child, .tax-table td:first-child { padding-left: 9px; }
  .tax-table th:last-child, .tax-table td:last-child { padding-right: 8px; }
}

/* ---------- Przejęcie księgowości ---------- */
.handover-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-bottom: 8px; }
@media (max-width: 640px) { .handover-facts { grid-template-columns: 1fr; } }
.handover-facts div { background: var(--linen); padding: 18px 18px 16px; }
.handover-facts strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy); line-height: 1.25; margin-bottom: 6px; }
.handover-facts span { font-size: 13.5px; color: var(--muted); line-height: 1.5; display: block; }

.handover-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 700px) { .handover-split { grid-template-columns: 1fr; } }
.handover-col { border: 1px solid var(--hairline); background: #fff; padding: 20px 22px 8px; }
.handover-col-us { background: var(--navy); border-color: var(--navy); }
.handover-who { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper); margin-bottom: 12px; font-weight: 500; }
.handover-col-us .handover-who { color: #E8B9C6; }
.prose .handover-col ol { list-style: none; padding: 0; counter-reset: krok; }
.prose .handover-col li { counter-increment: krok; position: relative; padding: 0 0 14px 34px; margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.handover-col li::before {
  content: counter(krok); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--navy); color: var(--navy); font-size: 12px; font-weight: 600; text-align: center; line-height: 20px;
}
.prose .handover-col-us li { color: rgba(244,238,227,0.85); }
.handover-col-us li strong { color: var(--linen); }
.handover-col-us li::before { border-color: #E8B9C6; color: #E8B9C6; }
.handover-col a { color: var(--copper-dark); }

.prose ol.timeline { list-style: none; padding: 0; margin: 8px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--hairline); }
.prose .timeline li { position: relative; padding: 0 0 22px 34px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--copper);
}
.timeline li:last-child::before { background: var(--copper); }
.tl-step { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); margin-bottom: 4px; }
.prose .timeline p { margin: 0; font-size: 15px; color: var(--ink); }

.template-box { border: 1px solid var(--hairline); background: #fff; margin-top: 14px; }
.template-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--hairline); background: var(--linen); }
.template-bar span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.template-copy {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 16px; background: var(--navy); color: var(--linen); border: 1px solid var(--navy); cursor: pointer; min-height: 38px;
}
.template-copy:hover { background: var(--navy-deep); }
.template-text {
  margin: 0; padding: 18px 20px; white-space: pre-wrap; word-wrap: break-word; overflow-x: auto;
  font-family: var(--sans); font-size: 14px; line-height: 1.65; color: var(--ink);
}
.prose .template-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.template-note:empty { display: none; }

.checklist { border: 1px solid var(--hairline); background: #fff; margin-top: 14px; }
.checklist label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--hairline); cursor: pointer; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.checklist label:first-child { border-top: none; }
.checklist input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; cursor: pointer; }
.checklist label:has(input:checked) span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--hairline); }
.checklist-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media print {
  body.drukuj-liste * { visibility: hidden; }
  body.drukuj-liste #lista-dokumentow, body.drukuj-liste #checklista, body.drukuj-liste #checklista * { visibility: visible; }
  body.drukuj-liste #lista-dokumentow { position: absolute; left: 0; top: 0; }
  body.drukuj-liste #checklista { position: absolute; left: 0; top: 48px; width: 100%; border: none; }
  body.drukuj-liste #checklista label:has(input:checked) span { text-decoration: none; color: #000; }
}

.tax-sum { margin-top: 12px; padding: 10px 14px; background: var(--linen); border-left: 3px solid var(--copper); font-size: 13px; color: var(--ink); }
.tax-sum strong { color: var(--navy); white-space: nowrap; }
.tax-table th[scope="row"] small { display: block; font-size: 11px; color: var(--muted); }
