@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════════
   Wydruk. Główne zastosowanie: kosztorys z kalkulatora → „Zapisz
   jako PDF” w oknie druku przeglądarki. Zastępuje niedziałający
   przycisk „Pobierz PDF” ze starej strony, bez żadnej biblioteki.
   ═══════════════════════════════════════════════════════════════════ */

@page { margin: 16mm 14mm; }

body {
  background: #fff !important;
  color: #000 !important;
  font-size: 11pt;
  line-height: 1.5;
  padding-bottom: 0 !important;
}

/* Elementy nawigacyjne i dekoracyjne nie idą na papier */
.site-header,
.site-footer,
.dock,
.to-top,
.reading-bar,
.hero,
.page-hero__bg,
.trust,
.marquee,
.nav,
.nav-toggle,
.crumbs,
.share,
.post-nav,
.toc,
.locbox__map,
.hero__scroll,
.btn,
.filters,
.k-actions,
[data-k-add],
[data-k-print],
[data-k-mail],
[data-k-clear],
.calc,
.review--cta,
.empty-note { display: none !important; }

/* Nagłówek dokumentu na wydruku */
.section, .page-hero {
  padding-block: 0 !important;
  background: #fff !important;
  color: #000 !important;
  content-visibility: visible !important;
}
.section--dark, .section--dark-2, .cta {
  background: #fff !important;
  color: #000 !important;
}
.section--dark::before, .section--dark::after,
.cta::before, .page-hero::before, .page-hero::after { display: none !important; }

h1, h2, h3, h4 { color: #000 !important; page-break-after: avoid; }
h1 { font-size: 18pt; }
h2 { font-size: 14pt; margin-top: 10pt; }
h3 { font-size: 12pt; }

a { color: #000 !important; text-decoration: none !important; }
/* Adresy linków w treści — na papierze link bez URL jest bezużyteczny */
.prose a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }

img { max-width: 100% !important; page-break-inside: avoid; }

/* Tabela kosztorysu — najważniejsza rzecz na wydruku */
table { width: 100%; border-collapse: collapse; page-break-inside: auto; }
thead { display: table-header-group; }
tr { page-break-inside: avoid; }
th, td {
  padding: 6pt 8pt !important;
  border: 1px solid #999 !important;
  text-align: left;
  background: #fff !important;
  color: #000 !important;
}
th {
  font-weight: 700;
  background: #eee !important;
  font-size: 10pt;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.k-note { font-size: 9pt; color: #444; font-style: italic; }

/* Stopka wydruku z danymi kontaktowymi */
.print-only { display: block !important; }
.print-head {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12pt;
  padding-bottom: 8pt;
  margin-bottom: 12pt;
  border-bottom: 2pt solid #000;
}
.print-head__brand { font-size: 16pt; font-weight: 700; }
.print-head__meta { font-size: 9.5pt; text-align: right; line-height: 1.45; }
.print-foot {
  display: block !important;
  margin-top: 14pt;
  padding-top: 8pt;
  border-top: 1pt solid #999;
  font-size: 9pt;
  color: #444;
}

/* Ukryj cienie i zaokrąglenia — na papierze to tylko szum */
* {
  box-shadow: none !important;
  text-shadow: none !important;
  border-radius: 0 !important;
  animation: none !important;
  transition: none !important;
}
