/* ==========================================================================
   Piadina w Polsce — style.css  (v1.0, 2026-10-10)
   Nakładka na assets/css/bootstrap.min.css (Bootstrap 5.3.3, wersja trimowana).
   Mobile first od 360 px. Zero zewnętrznych fontów i zasobów.
   Spis: 1 fonty · 2 tokeny · 3 baza · 4 nagłówek/nawigacja · 5 hero · 6 sekcje
         7 karty · 8 treść długa (.prose) · 9 FAQ · 10 CTA · 11 reklamy
         12 formularze · 13 stopka · 14 baner zgód · 15 narzędzia · 16 print
   ========================================================================== */

/* 1. FONTY (lokalne, tylko nagłówki; treść = systemowy krój) ---------------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-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: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-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;
}
/* fallback o zbliżonych metrykach — ogranicza CLS przy podmianie fontu */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* 2. TOKENY ----------------------------------------------------------------- */
:root {
  --pl-red: #B5412B;
  --pl-red-dark: #9E3522;
  --pl-green: #3E6B48;
  --pl-green-dark: #2F5237;
  --pl-cream: #FBF7F0;
  --pl-cream-2: #F4ECDF;
  --pl-wheat: #E9CF98;
  --pl-ink: #231B16;
  --pl-text: #3A312B;
  --pl-muted: #6B6159;
  --pl-line: #E8DFD3;
  --pl-white: #fff;
  --pl-radius: .75rem;
  --pl-shadow: 0 1px 2px rgba(35, 27, 22, .06), 0 6px 18px rgba(35, 27, 22, .06);
  --pl-header-h: 4rem;
  --pl-measure: 72ch;
}

/* 3. BAZA ------------------------------------------------------------------- */
html { scroll-padding-top: calc(var(--pl-header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--pl-white); color: var(--pl-text); overflow-wrap: break-word; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5.2vw + .6rem, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw + .8rem, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.2vw + .9rem, 1.45rem); }
a { text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--pl-green); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; }
main { overflow-x: clip; } /* zabezpieczenie przed poziomym przewijaniem (ujemne marginesy .row) */
.icon { width: 1.1em; height: 1.1em; fill: currentColor; vertical-align: -.16em; flex: none; }
.icon-lg { width: 1.6em; height: 1.6em; }
.skip-link { position: absolute; left: .75rem; top: -4rem; z-index: 2000; background: var(--pl-ink); color: #fff; padding: .6rem 1rem; border-radius: .5rem; text-decoration: none; }
.skip-link:focus { top: .75rem; color: #fff; }
::selection { background: var(--pl-wheat); color: var(--pl-ink); }

/* 4. NAGŁÓWEK I NAWIGACJA --------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--pl-line); }
.site-header::before { /* delikatna trójkolorowa nitka */
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--pl-green) 0 33.3%, var(--pl-cream-2) 33.3% 66.6%, var(--pl-red) 66.6% 100%);
}
.site-header .navbar { min-height: var(--pl-header-h); padding-top: .35rem; padding-bottom: .35rem; }
.navbar-brand { display: inline-flex; align-items: center; margin-right: 1rem; padding: 0; }
.navbar-brand img { display: block; width: auto; height: 2.5rem; }
.navbar-toggler { border-radius: .5rem; padding: .4rem .6rem; line-height: 1; }
.navbar-toggler .icon { width: 1.5rem; height: 1.5rem; vertical-align: middle; }
.navbar-nav .nav-link { font-weight: 600; font-size: .98rem; padding: .7rem .6rem; color: var(--pl-text); position: relative; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link[aria-current="page"] { color: var(--pl-red); }
.navbar-nav .nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .3rem; height: 2px; background: var(--pl-red); border-radius: 2px;
}
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; padding: .5rem .6rem; }
.lang-switch a { color: var(--pl-muted); text-decoration: none; padding: .1rem .3rem; border-radius: .25rem; }
.lang-switch a[aria-current="true"] { color: var(--pl-ink); background: var(--pl-cream-2); }
@media (max-width: 991.98px) {
  .navbar-collapse { padding-bottom: 1rem; }
  .navbar-nav .nav-link[aria-current="page"]::after { display: none; }
  .navbar-nav .nav-link { border-bottom: 1px solid var(--pl-line); }
  .site-header .btn { width: 100%; margin-top: .75rem; }
}
@media (min-width: 992px) {
  .navbar-nav { gap: .1rem; }
  .navbar-nav .nav-link { padding: .6rem .5rem; font-size: .95rem; }
}
@media (min-width: 1200px) { .navbar-nav .nav-link { padding: .6rem .7rem; font-size: 1rem; } }

/* Okruszki */
.breadcrumbs { font-size: .9rem; padding: 1rem 0 0; }
.breadcrumbs .breadcrumb { flex-wrap: wrap; row-gap: .1rem; }
.breadcrumbs a { color: var(--pl-muted); }

/* 5. HERO ------------------------------------------------------------------- */
.hero { background: var(--pl-cream); border-bottom: 1px solid var(--pl-line); padding: 2.5rem 0 2.75rem; position: relative; overflow: hidden; }
.hero--home { padding: 2.75rem 0 3rem; }
.hero__eyebrow, .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--pl-green-dark); margin-bottom: .75rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero__lead { font-size: 1.15rem; line-height: 1.65; color: var(--pl-text); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero__art { margin-top: 2rem; }
.hero__art svg, .hero__art img { width: 100%; height: auto; display: block; }
.hero__meta { margin-top: 1.5rem; font-size: .92rem; color: var(--pl-muted); display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
@media (min-width: 992px) {
  .hero { padding: 3.75rem 0 4rem; }
  .hero--home { padding: 4.5rem 0 5rem; }
  .hero__art { margin-top: 0; }
}
.byline { display: flex; align-items: center; gap: .75rem; font-size: .93rem; color: var(--pl-muted); margin-top: 1.25rem; }
.byline__avatar {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--pl-green); color: #fff; display: grid; place-items: center;
  font-family: var(--bs-headings-font-family); font-weight: 600; flex: none;
}
.byline strong { color: var(--pl-ink); }
.byline a { color: inherit; }

/* 6. SEKCJE ----------------------------------------------------------------- */
.section { padding: 3rem 0; }
.section--cream { background: var(--pl-cream); border-top: 1px solid var(--pl-line); border-bottom: 1px solid var(--pl-line); }
.section--tight { padding: 2rem 0; }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { color: var(--pl-muted); font-size: 1.08rem; margin-bottom: 0; }
@media (min-width: 992px) { .section { padding: 4.5rem 0; } .section--tight { padding: 2.75rem 0; } }
.answer {
  border-left: 4px solid var(--pl-green); background: var(--pl-cream); padding: 1.1rem 1.25rem;
  border-radius: 0 var(--pl-radius) var(--pl-radius) 0; font-size: 1.12rem; line-height: 1.65; color: var(--pl-ink); margin: 0 0 1.75rem;
}
.answer strong:first-child { color: var(--pl-green-dark); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 1.1rem; height: .6rem; border-left: 3px solid var(--pl-green); border-bottom: 3px solid var(--pl-green);
  transform: rotate(-45deg) translateY(-30%);
}
.facts { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.facts li { background: #fff; border: 1px solid var(--pl-line); border-radius: var(--pl-radius); padding: 1.1rem 1.25rem; }
.facts strong { display: block; font-family: var(--bs-headings-font-family); font-size: 1.15rem; color: var(--pl-ink); margin-bottom: .25rem; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* 7. KARTY ------------------------------------------------------------------ */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.topic-card, .article-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pl-line); border-radius: var(--pl-radius);
  padding: 1.5rem; height: 100%; transition: border-color .2s, transform .2s, box-shadow .2s; text-decoration: none; color: inherit;
}
.topic-card:hover, .article-card:hover { border-color: var(--pl-red); box-shadow: var(--pl-shadow); transform: translateY(-2px); color: inherit; }
.topic-card__icon {
  width: 3rem; height: 3rem; border-radius: .75rem; background: var(--pl-cream-2); color: var(--pl-red);
  display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.4rem;
}
.topic-card h3, .article-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.topic-card p, .article-card p { color: var(--pl-muted); margin-bottom: 1rem; font-size: 1rem; }
.topic-card__more, .article-card__more { margin-top: auto; font-weight: 600; color: var(--pl-red-dark); }
.article-card__meta { font-size: .85rem; color: var(--pl-muted); margin-bottom: .5rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--pl-green-dark); background: #E7F0E8; border-radius: 99px; padding: .15rem .65rem; }
.related { border-top: 1px solid var(--pl-line); margin-top: 3rem; padding-top: 2rem; }

/* 8. TREŚĆ DŁUGA (.prose) --------------------------------------------------- */
.layout-article { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1200px) {
  .layout-article { grid-template-columns: 17rem minmax(0, var(--pl-measure)); justify-content: center; gap: 3.5rem; align-items: start; }
  .layout-article .toc { position: sticky; top: calc(var(--pl-header-h) + 1.5rem); max-height: calc(100vh - var(--pl-header-h) - 3rem); overflow: auto; }
}
.prose { max-width: var(--pl-measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 3rem; margin-bottom: 1rem; padding-top: .5rem; }
.prose h3 { margin-top: 2rem; margin-bottom: .75rem; }
.prose h4 { margin-top: 1.5rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15rem; }
.prose li { margin-bottom: .4rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose a { color: var(--pl-red-dark); font-weight: 500; }
.prose a:hover { color: var(--pl-red); }
.prose blockquote { margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--pl-wheat); color: var(--pl-ink); font-size: 1.1rem; }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .9rem; color: var(--pl-muted); margin-top: .5rem; }
.prose img { border-radius: var(--pl-radius); }
.prose code { background: var(--pl-cream-2); padding: .1em .4em; border-radius: .3rem; font-size: .92em; color: var(--pl-ink); }
.prose hr { margin: 2.5rem 0; border-color: var(--pl-line); opacity: 1; }
.note, .warn {
  border: 1px solid var(--pl-line); border-left-width: 4px; border-radius: .6rem; padding: 1rem 1.15rem; margin: 1.5rem 0; background: var(--pl-cream); font-size: 1rem;
}
.note { border-left-color: var(--pl-green); }
.warn { border-left-color: var(--pl-red); }
.note > :last-child, .warn > :last-child { margin-bottom: 0; }
.note__title, .warn__title { display: block; font-weight: 700; color: var(--pl-ink); margin-bottom: .25rem; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--pl-line); border-radius: var(--pl-radius); -webkit-overflow-scrolling: touch; }
.table-wrap table { margin: 0; min-width: 34rem; font-size: .96rem; }
.table-wrap caption { caption-side: top; padding: .75rem 1rem; font-weight: 600; color: var(--pl-ink); }
.table-wrap th { background: var(--pl-cream-2); color: var(--pl-ink); white-space: nowrap; }
.table-wrap th, .table-wrap td { padding: .7rem 1rem; vertical-align: top; border-color: var(--pl-line); }
.steps { list-style: none; counter-reset: step; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.25rem 3.2rem; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--pl-red); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.steps > li::after { content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: .2rem; width: 2px; background: var(--pl-line); }
.steps > li:last-child::after { display: none; }
.steps strong:first-child { display: block; color: var(--pl-ink); }
.toc { background: var(--pl-cream); border: 1px solid var(--pl-line); border-radius: var(--pl-radius); padding: 1.15rem 1.25rem; font-size: .95rem; }
.toc__title { font-family: var(--bs-headings-font-family); font-weight: 600; color: var(--pl-ink); font-size: 1.05rem; margin: 0 0 .6rem; display: block; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; }
.toc a { display: block; padding: .32rem 0 .32rem .2rem; color: var(--pl-text); text-decoration: none; border-left: 2px solid transparent; padding-left: .75rem; }
.toc a::before { content: counter(toc) ". "; color: var(--pl-muted); }
.toc a:hover { color: var(--pl-red); }
.toc a.is-active { color: var(--pl-red-dark); font-weight: 600; border-left-color: var(--pl-red); }
@media (max-width: 1199.98px) {
  .toc ol { columns: 1; }
  .toc details > summary { cursor: pointer; font-weight: 600; color: var(--pl-ink); }
}
.sources { font-size: .92rem; color: var(--pl-muted); border-top: 1px solid var(--pl-line); margin-top: 2.5rem; padding-top: 1.25rem; }
.sources h2 { font-size: 1.2rem; margin: 0 0 .6rem; padding: 0; }
.sources li { margin-bottom: .3rem; }
.updated { font-size: .9rem; color: var(--pl-muted); }

/* 9. FAQ (natywne <details>, bez JS) ---------------------------------------- */
.faq { margin: 0; }
.faq details { border: 1px solid var(--pl-line); border-radius: var(--pl-radius); background: #fff; margin-bottom: .75rem; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.25rem; font-weight: 600; color: var(--pl-ink); position: relative; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%; width: .6rem; height: .6rem; margin-top: -.45rem;
  border-right: 2px solid var(--pl-red); border-bottom: 2px solid var(--pl-red); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -.2rem; }
.faq details[open] { border-color: var(--pl-green); }
.faq .faq__body { padding: 0 1.25rem 1.1rem; }
.faq .faq__body > :last-child { margin-bottom: 0; }

/* 10. CTA ------------------------------------------------------------------- */
.cta { background: var(--pl-green-dark); color: #F4F1EA; border-radius: 1rem; padding: 2rem 1.5rem; display: grid; gap: 1.25rem; align-items: center; }
.cta h2, .cta h3 { color: #fff; margin-bottom: .5rem; }
.cta p { margin: 0; color: #E8EDE6; }
.cta .btn { white-space: normal; }
.cta .btn-light { color: var(--pl-green-dark); font-weight: 700; }
@media (min-width: 768px) { .cta { grid-template-columns: 1fr auto; padding: 2.5rem 2.75rem; } }

/* 11. REKLAMY (zarezerwowana wysokość = zero CLS; nigdy na stronach transakcyjnych) */
.ad-slot {
  position: relative; margin: 2rem auto; max-width: 100%; min-height: 280px; background: var(--pl-cream); border: 1px dashed var(--pl-line);
  border-radius: var(--pl-radius); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; contain: layout paint;
}
@media (min-width: 768px) { .ad-slot { min-height: 280px; } }
.ad-slot__label { position: absolute; top: .4rem; left: .75rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-muted); }
.ad-slot__note { font-size: .88rem; color: var(--pl-muted); max-width: 28rem; padding: 0 1rem; margin: 0; }
.ad-slot ins.adsbygoogle { display: block; width: 100%; min-height: 250px; }
.ad-slot.is-filled .ad-slot__note { display: none; }
.ad-slot.is-filled { background: transparent; border-color: transparent; }

/* 12. FORMULARZE ------------------------------------------------------------ */
.form-card { background: #fff; border: 1px solid var(--pl-line); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--pl-shadow); }
@media (min-width: 768px) { .form-card { padding: 2.25rem; } }
.form-hint { font-size: .88rem; color: var(--pl-muted); margin-top: .35rem; }
.form-control, .form-select { background-color: #fff; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.cf-turnstile, .turnstile-slot { min-height: 65px; margin: 1rem 0; }
.form-status { border-radius: .6rem; padding: .9rem 1.1rem; margin-bottom: 1.25rem; }
.form-status--error { background: #FBEAEA; border: 1px solid #E6B8B8; color: #7A1F1F; }
.form-status--ok { background: #E7F0E8; border: 1px solid #B9D2BD; color: #24432B; }
button[disabled], .btn.is-loading { opacity: .65; cursor: progress; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .75rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-list .icon { margin-top: .3rem; color: var(--pl-red); }
.contact-list a { color: inherit; font-weight: 600; }

/* 13. STOPKA ---------------------------------------------------------------- */
.site-footer { background: var(--pl-cream); border-top: 1px solid var(--pl-line); padding: 3rem 0 1.5rem; font-size: .96rem; margin-top: 0; }
.site-footer h2 { font-family: var(--bs-body-font-family); font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pl-ink); margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--pl-text); text-decoration: none; }
.site-footer a:hover { color: var(--pl-red); text-decoration: underline; }
.footer-brand img { height: 2.75rem; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--pl-muted); max-width: 26rem; }
.footer-legal { border-top: 1px solid var(--pl-line); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: var(--pl-muted); display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 768px) { .footer-legal { flex-direction: row; justify-content: space-between; gap: 1.5rem; } }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--pl-line); background: #fff; color: var(--pl-text); }
.social a:hover { color: #fff; background: var(--pl-red); border-color: var(--pl-red); text-decoration: none; }
.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1020; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; background: var(--pl-ink); color: #fff;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; cursor: pointer;
}
.back-to-top.is-visible { opacity: .92; visibility: visible; transform: none; }
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--pl-red); z-index: 1100; pointer-events: none; }

/* 14. BANER ZGÓD (consent.js — klasy używane w Fazie 2) --------------------- */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; background: #fff; border-top: 3px solid var(--pl-green);
  box-shadow: 0 -8px 30px rgba(35, 27, 22, .15); padding: 1rem; max-height: 90vh; overflow: auto;
}
.cc-banner__inner { max-width: 1140px; margin: 0 auto; display: grid; gap: 1rem; }
.cc-banner h2 { font-size: 1.1rem; margin: 0 0 .35rem; font-family: var(--bs-body-font-family); font-weight: 700; }
.cc-banner p { margin: 0; font-size: .93rem; color: var(--pl-text); }
.cc-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cc-actions .btn { flex: 1 1 10rem; padding: .6rem 1rem; font-size: .95rem; }
.cc-panel { display: grid; gap: .6rem; margin-top: .5rem; }
.cc-panel[hidden] { display: none; }
.cc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border: 1px solid var(--pl-line); border-radius: .6rem; padding: .75rem .9rem; background: var(--pl-cream); }
.cc-row strong { display: block; color: var(--pl-ink); font-size: .95rem; }
.cc-row span { font-size: .85rem; color: var(--pl-muted); }
.cc-switch { position: relative; flex: none; width: 2.9rem; height: 1.6rem; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch i { position: absolute; inset: 0; background: #CFC4B6; border-radius: 99px; transition: background .2s; }
.cc-switch i::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; background: #fff; border-radius: 50%; transition: transform .2s; }
.cc-switch input:checked + i { background: var(--pl-green); }
.cc-switch input:checked + i::after { transform: translateX(1.3rem); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + i { opacity: .6; }
.cc-switch input:focus-visible + i { outline: 3px solid var(--pl-green); outline-offset: 2px; }
@media (min-width: 992px) { .cc-banner__inner { grid-template-columns: 1fr auto; align-items: center; } .cc-actions .btn { flex: 0 0 auto; } .cc-panel { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); } }
.cc-link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* 15. NARZĘDZIA ------------------------------------------------------------- */
.lead-sm { font-size: 1.1rem; color: var(--pl-muted); }
.max-60 { max-width: 60ch; }
.bg-cream { background: var(--pl-cream) !important; }
.text-ink { color: var(--pl-ink) !important; }
.text-red { color: var(--pl-red) !important; }
.text-green { color: var(--pl-green) !important; }
.thank { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.page-404 .code { font-family: var(--bs-headings-font-family); font-size: clamp(4rem, 18vw, 8rem); line-height: 1; color: var(--pl-red); }
[hidden] { display: none !important; }

/* 16. DRUK ------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .cc-banner, .back-to-top, .read-progress, .ad-slot, .cta, .toc, .skip-link, .hero__actions { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; }
  .hero { background: none; border: 0; padding: 0; }
}
