/*
Theme Name: Kredkobranie
Theme URI: https://kredkobranie.pl
Author: Fundacja Ignatianum
Description: Motyw strony akcji Kredkobranie – ogólnopolskiej zbiórki przyborów szkolnych dla dzieci i młodzieży na Kresach. Projekt: Figma „Kredkobranie — redesign”.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.51
License: GNU General Public License v2 or later
Text Domain: kredkobranie
*/

/* ---------- Sekcje ---------- */
.kb-section > .wp-block-group, .kb-header > .wp-block-group, .kb-footer > .wp-block-group { max-width: var(--wp--style--global--wide-size) !important; }
.kb-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.kb-section--compact { padding-top: clamp(56px, 6.7vw, 96px); padding-bottom: clamp(56px, 6.7vw, 96px); }
.kb-section > * + * { margin-block-start: var(--wp--preset--spacing--40); }
.kb-section-head > * { margin-block: 0; }
.kb-section-head > * + * { margin-block-start: 16px; }
.kb-section-head h2 { max-width: 22ch; }
:where(.kb-section) p.kb-lead, .kb-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.5; color: var(--wp--preset--color--tekst-pomocniczy); max-width: 62ch; }
.has-kobalt-background-color .kb-lead, .has-granat-background-color .kb-lead { color: rgba(255,255,255,.85); }

/* ---------- Etykieta ---------- */
p.kb-chip { display: inline-block; width: fit-content; margin: 0; padding: 6px 12px; border-radius: 999px;
  background: var(--wp--preset--color--rozowy); color: var(--wp--preset--color--tekst);
  font-size: 13px; line-height: 1.2; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }

/* ---------- Przyciski ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--kobalt); border-color: var(--wp--preset--color--kobalt); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--kobalt); color: #fff; }
.has-kobalt-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.has-granat-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: #fff; color: var(--wp--preset--color--kobalt); border-color: #fff; }
.has-kobalt-background-color .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.7); }
.wp-block-button__link:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid #E04E2E; outline-offset: 3px; border-radius: 6px; }
.wp-block-button.kb-arrow .wp-block-button__link::after, p.kb-arrow a::after { content: "\00a0\2192"; }
.wp-block-button.kb-download .wp-block-button__link::after, p.kb-download a::after { content: "\00a0\2193"; }

/* ---------- Nagłówek ---------- */
.kb-site-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.admin-bar .kb-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.kb-header { padding-top: 14px; padding-bottom: 14px; }
.kb-header .kb-logo img { display: block; height: 50px; width: auto; }
.kb-header .wp-block-navigation .wp-block-navigation-item__content { padding: 8px 0 6px; border-bottom: 3px solid transparent; color: var(--wp--preset--color--tekst-pomocniczy); text-decoration: none; }
.kb-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.kb-header .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--tekst); font-weight: 600; border-bottom-color: var(--wp--preset--color--kobalt); }
.kb-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--tekst); }
.kb-crayons { height: 6px; margin: 0 !important; background: linear-gradient(90deg,
  var(--wp--preset--color--kredka-rozowa) 0 20%, var(--wp--preset--color--kredka-zolta) 20% 40%,
  var(--wp--preset--color--kredka-zielona) 40% 60%, var(--wp--preset--color--kredka-niebieska) 60% 80%, var(--wp--preset--color--kobalt) 80% 100%); }
@media (max-width: 781px) {
  .kb-header .kb-logo img { height: 38px; }
  .kb-header .kb-header-cta .wp-block-button__link { padding: 10px 18px; font-size: 15px; }
}

/* ---------- Hero ---------- */
.kb-hero h1 { max-width: 12ch; }
.kb-hero .kb-photo img, .kb-photo img { border-radius: 20px; width: 100%; height: 100%; object-fit: cover; }
.kb-pill { background: #fff; border-radius: 16px; padding: 18px 24px; width: fit-content; max-width: 100%; }
.kb-pill p { margin: 0; }
.kb-pill .kb-pill-label { color: var(--wp--preset--color--tekst-pomocniczy); font-size: var(--wp--preset--font-size--maly); }
.kb-pill .kb-pill-value { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 22px; }

/* ---------- Tabela faktów ---------- */
.kb-facts { border-top: 1px solid var(--wp--preset--color--linia); }
.kb-facts > .wp-block-group { padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--linia); margin: 0 !important; }
.kb-facts p { margin: 0; }
.kb-facts .kb-fact-label { flex: 0 0 160px; color: var(--wp--preset--color--tekst-pomocniczy); font-size: var(--wp--preset--font-size--maly); }

/* ---------- Karty ---------- */
.kb-card { background: #fff; border-radius: 20px; padding: 32px; height: 100%; color: var(--wp--preset--color--tekst); }
.kb-card > * { margin-block: 0; }
.kb-card > * + * { margin-block-start: 16px; }
.kb-card::before { content: ""; display: block; width: 40px; height: 6px; border-radius: 3px; margin-bottom: 20px; background: var(--kb-akcent, var(--wp--preset--color--kredka-rozowa)); }
.kb-cards > .wp-block-column:nth-child(4n+1) .kb-card { --kb-akcent: var(--wp--preset--color--kredka-rozowa); }
.kb-cards > .wp-block-column:nth-child(4n+2) .kb-card { --kb-akcent: var(--wp--preset--color--kredka-zolta); }
.kb-cards > .wp-block-column:nth-child(4n+3) .kb-card { --kb-akcent: var(--wp--preset--color--kredka-zielona); }
.kb-cards > .wp-block-column:nth-child(4n+4) .kb-card { --kb-akcent: var(--wp--preset--color--kredka-niebieska); }
.kb-card h3 { font-size: 24px; }
.kb-card p { color: var(--wp--preset--color--tekst-pomocniczy); font-size: 16px; }
.kb-card p.kb-card-link { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--wp--preset--color--tekst); }
.kb-card p.kb-card-link a { color: inherit; text-decoration: none; }
.kb-card p.kb-card-link a:hover { text-decoration: underline; }
.kb-card--plain::before { display: none; }

/* ---------- Wiersze (wsparcie, materiały) ---------- */
.kb-rows > * + * { margin-block-start: 16px !important; }
.kb-row { background: #fff; border-radius: 20px; padding: 32px 40px; }
.kb-row h3 { margin: 0; flex: 0 0 240px; }
.kb-row .kb-row-body { flex: 1 1 auto; }
.kb-row .kb-row-body p { margin: 0; }
.kb-row .kb-row-body > * + * { margin-top: 6px; }
.kb-mini { font-size: 13px; color: var(--wp--preset--color--tekst-pomocniczy); }
.kb-copy-value { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 24px; letter-spacing: .3px; }
.kb-row .wp-block-buttons { flex: 0 0 auto; }
@media (max-width: 781px) { .kb-row { padding: 24px; } .kb-row h3 { flex-basis: auto; } }

/* ---------- Kroki ---------- */
.kb-steps .kb-step { border-top: 3px solid var(--wp--preset--color--rozowy); padding-top: 20px; }
.kb-steps .kb-step > * { margin-block: 0; }
.kb-steps .kb-step > * + * { margin-block-start: 10px; }
.kb-step-num { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 40px; line-height: 1; color: var(--wp--preset--color--kobalt); }
.kb-step h3 { font-size: 22px; }
.kb-step p { color: var(--wp--preset--color--tekst-pomocniczy); font-size: 16px; }
.has-kobalt-background-color .kb-step { border-top-color: rgba(255,255,255,.35); }
.has-kobalt-background-color .kb-step p { color: rgba(255,255,255,.85); }

/* ---------- Statystyki ---------- */
.kb-stat { border-top: 4px solid var(--wp--preset--color--kobalt); padding-top: 20px; }
.kb-stat p { margin: 0; }
.kb-stat .kb-number { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: var(--wp--preset--font-size--liczba); line-height: 1; letter-spacing: -1px; }
.kb-stat .kb-number + p { margin-top: 8px; color: var(--wp--preset--color--tekst-pomocniczy); font-size: var(--wp--preset--font-size--maly); }

/* ---------- Partnerzy ---------- */
.kb-partners-group > * + * { margin-block-start: 20px; }
.kb-group-label { font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--wp--preset--color--tekst-pomocniczy); margin: 0; }
.kb-logos { gap: 40px 56px !important; align-items: center; }
.kb-logos .wp-block-image { margin: 0; }
.kb-logos .wp-block-image img { max-width: 100%; height: auto; }
@media (max-width: 781px) { .kb-logos { gap: 24px 28px !important; } .kb-logos .wp-block-image img { zoom: .75; } }

/* ---------- Kontakt ---------- */
.kb-contact-card { background: #fff; border-radius: 20px; padding: 32px; }
.kb-contact-card > * { margin-block: 0; }
.kb-contact-card > * + * { margin-block-start: 8px; }
.kb-contact-card .kb-name { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 26px; }

/* ---------- Pasek koordynatora ---------- */
.kb-banner { background: var(--wp--preset--color--zolty); border-radius: 20px; padding: 40px; }
.kb-banner h2 { font-size: clamp(24px, 2.6vw, 32px); }

/* ---------- FAQ / edycje ---------- */
.wp-block-details summary { font-family: var(--wp--preset--font-family--fredoka); font-weight: 500; font-size: 22px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--kobalt); font-size: 26px; line-height: 1; }
.wp-block-details[open] summary::after { content: "\2013"; }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--tekst-pomocniczy); max-width: 70ch; }
.kb-editions .wp-block-details summary { font-size: 20px; }

/* ---------- Aktualności ---------- */
.kb-news .wp-block-post-featured-image img { border-radius: 16px; }
.kb-news .wp-block-post-date { font-size: var(--wp--preset--font-size--maly); color: var(--wp--preset--color--tekst-pomocniczy); }
.kb-news .wp-block-post-title { font-size: 22px; font-weight: 500; }
.kb-news .wp-block-post-title a { text-decoration: none; color: inherit; }

/* ---------- Stopka ---------- */
.kb-footer { padding-top: 72px; padding-bottom: 40px; color: #fff; }
.kb-footer a { color: #fff; text-decoration: none; }
.kb-footer a:hover { text-decoration: underline; }
.kb-footer p { margin: 0; font-size: 15px; line-height: 1.6; }
.kb-footer .kb-footer-col > * + * { margin-top: 8px; }
.kb-footer .kb-footer-label { font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; opacity: .8; margin-bottom: 8px; }
.kb-footer .kb-footer-logo img { height: 48px; width: auto; }
.kb-footer .kb-footer-org img { height: 40px; width: auto; }
.kb-footer .kb-footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding-top: 24px; margin-top: 48px; opacity: .85; }
.kb-footer .kb-footer-bottom p { font-size: 14px; }

/* ---------- Treść strony / wpisu ---------- */
.kb-prose h2 { font-size: 28px; margin-top: 2em; }
.kb-prose h2:first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

/* ---------- Poprawki 1.0.1 ---------- */
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-block-post-content > .alignfull, main.wp-block-group > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.kb-banner { flex-wrap: nowrap !important; gap: 32px !important; }
.kb-banner > .wp-block-group { flex: 1 1 auto; }
.kb-banner > .wp-block-group > * { margin-block: 0; }
.kb-banner > .wp-block-group > * + * { margin-block-start: 12px; }
.kb-banner .wp-block-buttons { flex: 0 0 auto; }
@media (max-width: 781px) { .kb-banner { flex-wrap: wrap !important; padding: 28px; } }
.kb-card { display: flex; flex-direction: column; }
.kb-card p.kb-card-link { margin-top: auto !important; padding-top: 16px; }
.kb-step p.kb-step-num { font-size: 40px; color: var(--wp--preset--color--kobalt); font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; line-height: 1; }
.has-kobalt-background-color .kb-step p.kb-step-num { color: #fff; }
.kb-section > .wp-block-group > * + * { margin-block-start: var(--wp--preset--spacing--40) !important; }
.kb-section > .wp-block-group > .kb-section-head + * { margin-block-start: clamp(36px, 4.5vw, 64px) !important; }
/* Logotypy partnerów – mniejsze */
.kb-logos .wp-block-image img { zoom: .68; }
.kb-logos { gap: 32px 48px !important; }
.kb-partners-group + .kb-partners-group { margin-block-start: 40px !important; }
@media (max-width: 781px) { .kb-logos .wp-block-image img { zoom: .5; } .kb-logos { gap: 20px 24px !important; } }
/* Skala 1.0.5 – całość nieco mniejsza */
.kb-header { padding-top: 10px; padding-bottom: 10px; }
.kb-header .kb-logo img { height: 42px; }
p.kb-chip { font-size: 12px; padding: 5px 11px; }
.kb-card { padding: 28px; }
.kb-card h3 { font-size: 21px; }
.kb-card p { font-size: 15px; }
.kb-card::before { margin-bottom: 16px; }
.kb-row { padding: 26px 32px; }
.kb-row h3 { flex-basis: 220px; }
.kb-copy-value { font-size: 21px; }
.kb-step p.kb-step-num { font-size: 34px; }
.kb-step h3 { font-size: 19px; }
.kb-step p { font-size: 15px; }
.kb-contact-card { padding: 28px; }
.kb-contact-card .kb-name { font-size: 22px; }
.kb-pill { padding: 14px 20px; }
.kb-pill .kb-pill-value { font-size: 19px; }
.kb-banner { padding: 32px; }
.kb-banner h2 { font-size: clamp(22px, 2.2vw, 28px); }
.wp-block-details summary { font-size: 19px; }
.kb-news .wp-block-post-title { font-size: 19px; }
.kb-footer { padding-top: 56px; padding-bottom: 32px; }
.kb-footer p { font-size: 14px; }
.kb-footer .kb-footer-logo img { height: 42px; }
.kb-footer .kb-footer-org img { height: 34px; }
.kb-facts .kb-fact-label { flex-basis: 140px; }
/* Skala 1.0.6 – pośrednia */
.kb-header { padding-top: 12px; padding-bottom: 12px; }
.kb-header .kb-logo img { height: 46px; }
p.kb-chip { font-size: 12.5px; }
.kb-card { padding: 30px; }
.kb-card h3 { font-size: 22.5px; }
.kb-card p { font-size: 15.5px; }
.kb-row { padding: 28px 36px; }
.kb-copy-value { font-size: 22.5px; }
.kb-step p.kb-step-num { font-size: 37px; }
.kb-step h3 { font-size: 20.5px; }
.kb-step p { font-size: 15.5px; }
.kb-contact-card { padding: 30px; }
.kb-contact-card .kb-name { font-size: 24px; }
.kb-pill .kb-pill-value { font-size: 20.5px; }
.kb-banner { padding: 36px; }
.kb-banner h2 { font-size: clamp(23px, 2.4vw, 30px); }
.wp-block-details summary { font-size: 20.5px; }
.kb-footer .kb-footer-logo img { height: 45px; }
.kb-footer .kb-footer-org img { height: 37px; }
.kb-section-head h2 { max-width: 32ch; }
.kb-row h3 { flex: 0 0 280px; }
@media (max-width: 781px) { .kb-row h3 { flex-basis: auto; } }
/* Co zbieramy – przejrzysta lista (1.0.8) */
.kb-card--lista { padding: clamp(24px, 3vw, 40px); }
.kb-card--lista > h3 { margin-bottom: 8px; }
.kb-cats { gap: 24px 32px !important; margin: 0 !important; }
.kb-cat > * { margin: 0; }
.kb-cat .kb-group-label { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--wp--preset--color--linia); }
.kb-checklist { list-style: none; padding: 0; margin: 0; }
.kb-checklist li { position: relative; padding: 6px 0 6px 30px; font-size: 16.5px; line-height: 1.35; color: var(--wp--preset--color--tekst); }
.kb-checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--wp--preset--color--zielony-jasny) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2345B57E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.kb-rules { gap: 12px !important; margin-top: 24px !important; padding-top: 20px; border-top: 1px solid var(--wp--preset--color--linia); }
.kb-card .kb-rules p.kb-rule { margin: 0; padding: 8px 14px 8px 36px; border-radius: 999px; font-size: 15px; font-weight: 600; position: relative; color: var(--wp--preset--color--tekst); }
.kb-rule::before { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; }
.kb-rule--tak { background: var(--wp--preset--color--zielony-jasny); }
.kb-rule--tak::before { content: "\2713"; color: var(--wp--preset--color--kredka-zielona); }
.kb-rule--nie { background: var(--wp--preset--color--rozowy-jasny); }
.kb-rule--nie::before { content: "\2715"; color: #D9445F; }
.kb-cards--2 { margin-top: 24px !important; }
@media (max-width: 781px) { .kb-cats { display: grid !important; grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .kb-cats { grid-template-columns: 1fr; } }
.kb-card--lista > .kb-cats { margin-top: 28px !important; }

/* Ikony na liście „Co zbieramy” (Lucide, licencja ISC) – 1.0.10 */
.kb-checklist li { padding: 8px 0 8px 42px; }
.kb-checklist li::before { top: 5px; width: 30px; height: 30px; background: var(--wp--preset--color--neutralny); }
.kb-checklist li[class*="kb-ico-"]::after { content: ""; position: absolute; left: 7px; top: 12px; width: 16px; height: 16px; background: var(--wp--preset--color--kobalt); -webkit-mask: var(--kb-ico) center / contain no-repeat; mask: var(--kb-ico) center / contain no-repeat; }
.kb-ico-kredki { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22m9 11-6 6v3h9l3-3%22 /%3E %3Cpath d=%22m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4%22 /%3E %3C/svg%3E"); }
.kb-ico-olowki { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z%22 /%3E %3Cpath d=%22m15 5 4 4%22 /%3E %3C/svg%3E"); }
.kb-ico-dlugopisy { --kb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6v12l-3 6-3-6z'/%3E%3Cpath d='M9 15h6'/%3E%3Cpath d='M15 5h2v5'/%3E%3C/svg%3E"); }
.kb-ico-pisaki { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M13 21h8%22 /%3E %3Cpath d=%22M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z%22 /%3E %3C/svg%3E"); }
.kb-ico-gumki { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21%22 /%3E %3Cpath d=%22m5.082 11.09 8.828 8.828%22 /%3E %3C/svg%3E"); }
.kb-ico-temperowki { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M10 22v-8%22 /%3E %3Cpath d=%22M2.336 8.89 10 14l11.715-7.029%22 /%3E %3Cpath d=%22M22 14a2 2 0 0 1-.971 1.715l-10 6a2 2 0 0 1-2.138-.05l-6-4A2 2 0 0 1 2 16v-6a2 2 0 0 1 .971-1.715l10-6a2 2 0 0 1 2.138.05l6 4A2 2 0 0 1 22 8z%22 /%3E %3C/svg%3E"); }
.kb-ico-zeszyty { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M2 6h4%22 /%3E %3Cpath d=%22M2 10h4%22 /%3E %3Cpath d=%22M2 14h4%22 /%3E %3Cpath d=%22M2 18h4%22 /%3E %3Crect width=%2216%22 height=%2220%22 x=%224%22 y=%222%22 rx=%222%22 /%3E %3Cpath d=%22M16 2v20%22 /%3E %3C/svg%3E"); }
.kb-ico-bloki { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z%22 /%3E %3Cpath d=%22M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12%22 /%3E %3Cpath d=%22M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17%22 /%3E %3C/svg%3E"); }
.kb-ico-bibuly { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z%22 /%3E %3Cpath d=%22M15 3v5a1 1 0 0 0 1 1h5%22 /%3E %3C/svg%3E"); }
.kb-ico-ryzy { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8%22 /%3E %3Cpath d=%22M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z%22 /%3E %3Cpath d=%22M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1%22 /%3E %3C/svg%3E"); }
.kb-ico-teczki { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z%22 /%3E %3C/svg%3E"); }
.kb-ico-farby { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z%22 /%3E %3Ccircle cx=%2213.5%22 cy=%226.5%22 r=%22.5%22 fill=%22black%22 /%3E %3Ccircle cx=%2217.5%22 cy=%2210.5%22 r=%22.5%22 fill=%22black%22 /%3E %3Ccircle cx=%226.5%22 cy=%2212.5%22 r=%22.5%22 fill=%22black%22 /%3E %3Ccircle cx=%228.5%22 cy=%227.5%22 r=%22.5%22 fill=%22black%22 /%3E %3C/svg%3E"); }
.kb-ico-pedzle { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22m14.622 17.897-10.68-2.913%22 /%3E %3Cpath d=%22M18.376 2.622a1 1 0 1 1 3.002 3.002L17.36 9.643a.5.5 0 0 0 0 .707l.944.944a2.41 2.41 0 0 1 0 3.408l-.944.944a.5.5 0 0 1-.707 0L8.354 7.348a.5.5 0 0 1 0-.707l.944-.944a2.41 2.41 0 0 1 3.408 0l.944.944a.5.5 0 0 0 .707 0z%22 /%3E %3Cpath d=%22M9 8c-1.804 2.71-3.97 3.46-6.583 3.948a.507.507 0 0 0-.302.819l7.32 8.883a1 1 0 0 0 1.185.204C12.735 20.405 16 16.792 16 15%22 /%3E %3C/svg%3E"); }
.kb-ico-plastelina { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z%22 /%3E %3Crect x=%223%22 y=%2214%22 width=%227%22 height=%227%22 rx=%221%22 /%3E %3Ccircle cx=%2217.5%22 cy=%2217.5%22 r=%223.5%22 /%3E %3C/svg%3E"); }
.kb-ico-kleje { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z%22 /%3E %3C/svg%3E"); }
.kb-ico-tasmy { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Ccircle cx=%2212%22 cy=%2212%22 r=%221%22 /%3E %3Ccircle cx=%2212%22 cy=%2212%22 r=%2210%22 /%3E %3C/svg%3E"); }
.kb-ico-nozyczki { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Ccircle cx=%226%22 cy=%226%22 r=%223%22 /%3E %3Cpath d=%22M8.12 8.12 12 12%22 /%3E %3Cpath d=%22M20 4 8.12 15.88%22 /%3E %3Ccircle cx=%226%22 cy=%2218%22 r=%223%22 /%3E %3Cpath d=%22M14.8 14.8 20 20%22 /%3E %3C/svg%3E"); }
.kb-ico-geometria { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22m12.99 6.74 1.93 3.44%22 /%3E %3Cpath d=%22M19.136 12a10 10 0 0 1-14.271 0%22 /%3E %3Cpath d=%22m21 21-2.16-3.84%22 /%3E %3Cpath d=%22m3 21 8.02-14.26%22 /%3E %3Ccircle cx=%2212%22 cy=%225%22 r=%222%22 /%3E %3C/svg%3E"); }
.kb-ico-plecaki { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z%22 /%3E %3Cpath d=%22M8 10h8%22 /%3E %3Cpath d=%22M8 18h8%22 /%3E %3Cpath d=%22M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6%22 /%3E %3Cpath d=%22M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2%22 /%3E %3C/svg%3E"); }
.kb-ico-piorniki { --kb-ico: url("data:image/svg+xml,%3Csvg  xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 %3E %3Cpath d=%22M13 7 8.7 2.7a2.41 2.41 0 0 0-3.4 0L2.7 5.3a2.41 2.41 0 0 0 0 3.4L7 13%22 /%3E %3Cpath d=%22m8 6 2-2%22 /%3E %3Cpath d=%22m18 16 2-2%22 /%3E %3Cpath d=%22m17 11 4.3 4.3c.94.94.94 2.46 0 3.4l-2.6 2.6c-.94.94-2.46.94-3.4 0L11 17%22 /%3E %3Cpath d=%22M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z%22 /%3E %3Cpath d=%22m15 5 4 4%22 /%3E %3C/svg%3E"); }

/* Skala całości -5% na komputerach (1.0.11) */
@media (min-width: 782px) { .wp-site-blocks { zoom: .95; } }
/* Gęstszy układ (1.0.12) */
.kb-section--compact { padding-top: clamp(40px, 4.4vw, 64px); padding-bottom: clamp(40px, 4.4vw, 64px); }
.kb-section > .wp-block-group > .kb-section-head + * { margin-block-start: clamp(24px, 2.8vw, 40px) !important; }
.kb-hero .kb-photo img { aspect-ratio: 4 / 3; height: auto; max-height: 420px; }
.kb-photo img { aspect-ratio: 4 / 3; }
.kb-card { padding: 26px; }
.kb-card > * + * { margin-block-start: 12px; }
.kb-row { padding: 22px 32px; }
.kb-banner { padding: 28px 32px; }
.kb-contact-card { padding: 26px; }
.kb-facts > .wp-block-group { padding: 10px 0; }
.kb-footer { padding-top: 48px; padding-bottom: 28px; }
.kb-footer .kb-footer-bottom { margin-top: 36px; }
.kb-checklist li { padding-top: 6px; padding-bottom: 6px; }
.kb-checklist li::before { top: 3px; }
.kb-checklist li[class*="kb-ico-"]::after { top: 10px; }
/* Nagłówek chowany przy przewijaniu (1.0.13) */
.kb-site-header { transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.kb-site-header.kb-header--hidden { transform: translateY(calc(-100% - 40px)); }
@media (prefers-reduced-motion: reduce) { .kb-site-header { transition: none; } }
/* Mapa zbiórki (1.0.14) */
.kb-map-cols { gap: clamp(28px, 4vw, 64px) !important; }
.kb-map-stats > .kb-stat + .kb-stat { margin-top: 22px; }
.kb-map-stats + .wp-block-buttons { margin-top: 28px; }
.kb-map { position: relative; margin: 0; background: var(--wp--preset--color--neutralny); border-radius: 20px; padding: clamp(16px, 2.4vw, 32px); }
.kb-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.kb-map-land { fill: #fff; stroke: #D7DCE8; stroke-width: 1.5; }
.kb-map-pts circle { fill: var(--wp--preset--color--kobalt); fill-opacity: .8; stroke: #fff; stroke-width: 1.5; cursor: pointer; transition: fill-opacity .15s; }
.kb-map-pts circle:hover, .kb-map-pts circle:focus { fill-opacity: 1; stroke: var(--wp--preset--color--tekst); stroke-width: 2; outline: none; }
.kb-map-labels text { fill: #fff; font: 600 11px var(--wp--preset--font-family--instrument-sans); text-anchor: middle; pointer-events: none; }
.kb-map-tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 10px)); background: var(--wp--preset--color--tekst); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 14px; line-height: 1.3; white-space: nowrap; pointer-events: none; }
.kb-map-tip strong { display: block; }
.kb-map figcaption { margin-top: 10px; }
/* Mapa zbiórki 2.0 – województwa (1.0.16) */
.kb-woj { stroke: #fff; stroke-width: 1.2; cursor: pointer; transition: filter .15s; outline: none; }
.kb-woj--0 { fill: #F1F2F6; } .kb-woj--1 { fill: #DCE3F5; } .kb-woj--2 { fill: #B9C6EB; } .kb-woj--3 { fill: #8EA0DB; } .kb-woj--4 { fill: #5E72C4; }
.kb-woj:hover, .kb-woj:focus-visible, .kb-woj.is-active { filter: brightness(.92); stroke: var(--wp--preset--color--tekst); stroke-width: 2; }
.kb-woj-g .kb-woj.is-active, .kb-woj-g .kb-woj:hover, .kb-woj-g .kb-woj:focus-visible { paint-order: stroke; }
.kb-dots { pointer-events: none; }
.kb-dots circle { fill: var(--wp--preset--color--tekst); fill-opacity: .55; stroke: #fff; stroke-width: .8; }
.kb-map-tip em { display: block; font-style: normal; color: #C9CEDD; font-size: 13px; margin-top: 2px; }
.kb-map-tip { white-space: normal; max-width: 260px; text-align: left; }
.kb-map-legend { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--wp--preset--color--tekst-pomocniczy); }
.kb-map-legend i { width: 28px; height: 10px; border-radius: 3px; display: inline-block; }
.kb-map-legend i.kb-woj--1 { background: #DCE3F5; } .kb-map-legend i.kb-woj--2 { background: #B9C6EB; } .kb-map-legend i.kb-woj--3 { background: #8EA0DB; } .kb-map-legend i.kb-woj--4 { background: #5E72C4; }
.kb-map figcaption { margin-top: 6px; }
.kb-rank ol { list-style: none; margin: 14px 0 0; padding: 0; }
.kb-rank li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--wp--preset--color--linia); }
.kb-rank .kb-rank-n { font-weight: 600; }
.kb-rank .kb-rank-c { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 20px; line-height: 1; }
.kb-rank .kb-rank-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--wp--preset--color--neutralny); overflow: hidden; }
.kb-rank .kb-rank-bar i { display: block; height: 100%; background: var(--wp--preset--color--kobalt); border-radius: 3px; }
.kb-rank .kb-rank-rest .kb-rank-n { font-weight: 400; color: var(--wp--preset--color--tekst-pomocniczy); }
.kb-rank + .wp-block-buttons { margin-top: 28px; }
@media (max-width: 781px) { .kb-map-cols > .wp-block-column:first-child { order: 2; } }
/* Poprawki mobile (1.0.17) */
.kb-site-header { will-change: auto; }
.kb-site-header:has(.wp-block-navigation__responsive-container.is-menu-open) { transform: none !important; transition: none; }
@media (max-width: 781px) {
  .kb-header .is-content-justification-space-between > .wp-block-group:first-child { display: contents; }
  .kb-header .kb-logo { order: 1; margin-right: auto; }
  .kb-header .kb-header-cta { order: 2; }
  .kb-header .wp-block-navigation { order: 3; margin-left: 4px; }
  .kb-header .kb-header-cta .wp-block-button__link { white-space: nowrap; padding: 9px 16px; font-size: 15px; }
  .kb-pill { gap: 2px 12px !important; padding: 12px 18px; }
  .kb-logos .wp-block-image img { zoom: .58; }
  .kb-logos:has(img[alt^="Wojewoda"]) .wp-block-image img { zoom: .8; }
  .kb-logos:has(img[alt^="Wojewoda"]) { gap: 18px !important; }
}
/* Menu mobilne */
.wp-block-navigation__responsive-container.is-menu-open { padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0px)) !important; background: #fff !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 72px !important; align-items: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 6px !important; align-items: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 30px !important; line-height: 1.2; padding: 10px 0 !important; color: var(--wp--preset--color--tekst) !important; }
.wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--kobalt) !important; }
.wp-block-navigation__responsive-container-close { top: 22px !important; right: 20px !important; }
.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
.wp-block-navigation__responsive-container.is-menu-open { display: flex !important; flex-direction: column; position: fixed !important; inset: 0 !important; z-index: 100000 !important; overflow: auto; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog, .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { display: flex !important; flex-direction: column; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { display: flex !important; flex-direction: column; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { position: absolute; display: flex !important; }
/* Mapa – przybliżanie województwa (1.0.18) */
.kb-map svg { touch-action: manipulation; }
.kb-woj, .kb-dots circle { vector-effect: non-scaling-stroke; }
.kb-woj { transition: opacity .3s, filter .15s; }
.kb-map.is-zoomed .kb-woj:not(.is-focus) { opacity: .35; }
.kb-map.is-zoomed .kb-woj.is-focus { stroke: var(--wp--preset--color--tekst); stroke-width: 1.5; filter: none; }
.kb-map.is-zoomed .kb-dots circle { opacity: .15; }
.kb-map.is-zoomed .kb-dots circle.is-mine { opacity: 1; pointer-events: auto; cursor: pointer; fill: var(--wp--preset--color--tekst); fill-opacity: .85; stroke-width: 1.5; }
.kb-map.is-zoomed .kb-dots { pointer-events: auto; }
.kb-map .kb-dots circle.is-mine:hover, .kb-map .kb-dots circle.is-mine:focus { fill: var(--wp--preset--color--rozowy); outline: none; }
.kb-map-names text { fill: var(--wp--preset--color--tekst); font-family: var(--wp--preset--font-family--instrument-sans); font-weight: 600; stroke: #fff; paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.kb-map-bar { position: absolute; top: clamp(12px, 2vw, 20px); left: clamp(12px, 2vw, 20px); right: clamp(12px, 2vw, 20px); z-index: 3; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.kb-map-bar[hidden] { display: none; }
.kb-map-back { pointer-events: auto; border: 0; cursor: pointer; background: var(--wp--preset--color--kobalt); color: #fff; border-radius: 999px; padding: 8px 16px; font: 600 14px var(--wp--preset--font-family--instrument-sans); }
.kb-map-back:hover { background: var(--wp--preset--color--kobalt-ciemny, #283B85); }
.kb-map-info { background: #fff; border-radius: 12px; padding: 8px 14px; font-size: 14px; line-height: 1.3; box-shadow: 0 2px 10px rgba(22,26,46,.08); }
.kb-map-info strong { margin-right: 8px; }
.kb-map.is-zoomed .kb-dots circle:not(.is-mine) { pointer-events: none; }
.kb-map svg { overflow: hidden !important; border-radius: 12px; }
.kb-woj { stroke-linejoin: round; }
/* Historia – plakaty edycji (1.0.21) */
.kb-posters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(14px, 1.8vw, 24px); }
.kb-posters > .kb-poster { margin: 0 !important; }
.kb-poster > * { margin: 0; }
.kb-poster-link { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 4px rgba(22,26,46,.06), 0 8px 24px rgba(22,26,46,.10); transition: transform .2s, box-shadow .2s; aspect-ratio: 1 / 1.414; background: var(--wp--preset--color--neutralny); }
.kb-poster-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kb-poster-link:hover, .kb-poster-link:focus-visible { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(22,26,46,.08), 0 16px 32px rgba(22,26,46,.16); }
.kb-poster p.kb-poster-meta { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--wp--preset--color--tekst-pomocniczy); }
.kb-poster p.kb-poster-title { margin-top: 2px; font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--wp--preset--color--tekst); }
@media (max-width: 1080px) { .kb-posters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kb-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kb-poster p.kb-poster-title { font-size: 15px; } }
.kb-lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; overflow: visible; }
.kb-lightbox::backdrop { background: rgba(22,26,46,.82); }
.kb-lightbox img { display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.kb-lightbox button { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--wp--preset--color--tekst); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.kb-lightbox p { margin: 10px 0 0; color: #fff; text-align: center; font-size: 15px; }
.kb-posters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 2.6vw, 40px); }
.kb-poster p.kb-poster-title { font-size: 19px; }
@media (max-width: 600px) { .kb-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } .kb-poster p.kb-poster-title { font-size: 15px; } }
/* Review mobile (1.0.24) */
.kb-copy-value { line-height: 1.25; }
@media (max-width: 781px) {
  .kb-copy-value { font-size: 19px !important; letter-spacing: .01em; }
  #materialy .kb-row { display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px !important; padding: 18px 20px; }
  #materialy .kb-row > h3 { grid-column: 1 / -1; flex: none; font-size: 18px; }
  #materialy .kb-row > .kb-row-body, #materialy .kb-row > p { margin: 0; }
  #materialy .kb-row .wp-block-buttons { margin: 0 !important; justify-content: flex-end; }
  #materialy .kb-row .wp-block-button__link { padding: 8px 16px; font-size: 15px; }
}
.kb-copy-value { text-wrap: balance; }
/* Mapa – lista placówek po kliknięciu punktu, galeria z powiększaniem (1.0.25) */
.kb-map-list { position: absolute; z-index: 4; left: clamp(12px, 2vw, 20px); right: clamp(12px, 2vw, 20px); bottom: clamp(12px, 2vw, 20px); max-height: 55%; display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(22,26,46,.18); overflow: hidden; }
.kb-map-list[hidden] { display: none; }
.kb-map-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 10px 18px; border-bottom: 1px solid var(--wp--preset--color--linia); }
.kb-map-list-head strong { font-family: var(--wp--preset--font-family--fredoka); font-size: 18px; margin-right: 8px; }
.kb-map-list-head span { font-size: 14px; color: var(--wp--preset--color--tekst-pomocniczy); }
.kb-map-list-head button { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--wp--preset--color--neutralny); font-size: 20px; line-height: 1; cursor: pointer; color: var(--wp--preset--color--tekst); }
.kb-map-list ul { list-style: none; margin: 0; padding: 6px 18px 14px; overflow-y: auto; }
.kb-map-list li { padding: 8px 0; border-bottom: 1px solid var(--wp--preset--color--linia); font-size: 15px; line-height: 1.35; }
.kb-map-list li:last-child { border-bottom: 0; }
.kb-map .kb-dots circle.is-picked { fill: var(--wp--preset--color--rozowy) !important; fill-opacity: 1 !important; }
#galeria .kb-photo img.kb-zoomable { cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
#galeria .kb-photo img.kb-zoomable:hover, #galeria .kb-photo img.kb-zoomable:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(22,26,46,.16); }
.kb-lightbox.is-wide { max-width: min(94vw, 1200px); }
.kb-lightbox .kb-lb-close { position: absolute; top: -14px; right: -14px; }
.kb-lightbox .kb-lb-prev, .kb-lightbox .kb-lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--wp--preset--color--tekst); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.kb-lightbox .kb-lb-prev { left: -22px; } .kb-lightbox .kb-lb-next { right: -22px; }
.kb-lightbox.is-single .kb-lb-prev, .kb-lightbox.is-single .kb-lb-next { display: none; }
@media (max-width: 781px) { .kb-lightbox .kb-lb-prev { left: 6px; } .kb-lightbox .kb-lb-next { right: 6px; } .kb-lightbox .kb-lb-close { right: 4px; top: -18px; } }
.kb-lightbox .kb-lb-prev { right: auto; }
.kb-lightbox .kb-lb-next { left: auto; }
/* Nowe strony: Do pobrania, Dla mediów (1.0.25) */
.kb-list-check { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.kb-list-check li { position: relative; padding: 10px 0 10px 40px; font-size: 17px; line-height: 1.5; border-bottom: 1px solid var(--wp--preset--color--linia); }
.kb-list-check li:last-child { border-bottom: 0; }
.kb-list-check li::before { content: ""; position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2334499E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.kb-files + .wp-block-buttons { margin-top: 28px; }
@media (max-width: 781px) {
  .kb-files .kb-row { display: grid !important; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px !important; padding: 18px 20px; }
  .kb-files .kb-row > h3 { grid-column: 1 / -1; flex: none; font-size: 18px; }
  .kb-files .kb-row .wp-block-buttons { margin: 0 !important; justify-content: flex-end; }
  .kb-files .kb-row .wp-block-button__link { padding: 8px 16px; font-size: 15px; }
}
.kb-list-check { margin-left: 0 !important; }
.kb-list-check li::before { background-color: var(--wp--preset--color--neutralny); }
/* WCAG (1.0.26): fokus widoczny na ciemnych tłach, tekst tylko dla czytników */
.has-kobalt-background-color :focus-visible, .kb-footer :focus-visible, .kb-lightbox :focus-visible { outline-color: #FFCD45 !important; }
.kb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Gradient nagłówków – kredkowe plamy (1.0.28) */
.has-zolty-background-color { background: radial-gradient(circle at 94% 4%, rgba(69,181,126,.16), rgba(69,181,126,0) 40%), radial-gradient(circle at 4% 96%, rgba(255,122,146,.20), rgba(255,122,146,0) 36%), radial-gradient(circle at 62% 110%, rgba(106,156,235,.22), rgba(106,156,235,0) 40%), #F0EDFA !important; }
/* Wykres darów w kolejnych edycjach (1.0.29) */
.kb-chart { margin: clamp(32px, 4vw, 48px) 0 0; background: #fff; border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.kb-chart-title { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 20px; margin: 0 0 20px; color: var(--wp--preset--color--tekst); }
.kb-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 18px); align-items: end; height: 240px; }
.kb-bars li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.kb-bar { display: block; width: 100%; max-width: 64px; height: var(--h); min-height: 6px; border-radius: 10px 10px 4px 4px; background: var(--wp--preset--color--kobalt); }
.kb-bars li:last-child .kb-bar { background: var(--wp--preset--color--rozowy); }
.kb-bar-v { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--tekst); white-space: nowrap; }
.kb-bar-y { font-size: 13px; color: var(--wp--preset--color--tekst-pomocniczy); }
@media (max-width: 600px) { .kb-bars { height: 200px; } .kb-bar-v { font-size: 11px; } .kb-bar-y { font-size: 11px; } }
/* Znacznik: zbiórka zakończona (1.0.30) */
.kb-pill--done .kb-pill-label { position: relative; padding-left: 30px; color: #2E7D57; font-weight: 600; }
.kb-pill--done .kb-pill-label::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: #45B57E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.kb-chart-note{margin:14px 0 0;font-size:13px;color:var(--wp--preset--color--tekst-pomocniczy)}
.kb-bar[style*="--h:0%"]{display:none}
/* Historia: więcej liczb i „Co przekazaliśmy” (1.0.42) */
.kb-stats { flex-wrap: wrap !important; }
.kb-gifts { margin: clamp(32px, 4vw, 48px) 0 0; background: #fff; border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.kb-gifts-title { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 20px; margin: 0 0 20px; color: var(--wp--preset--color--tekst); }
.kb-gifts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 16px; }
.kb-gifts-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.kb-gift-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--wp--preset--color--neutralny); position: relative; margin-bottom: 6px; }
.kb-gift-ico::after { content: ""; position: absolute; inset: 12px; background: var(--wp--preset--color--kobalt); -webkit-mask: var(--kb-ico) center / contain no-repeat; mask: var(--kb-ico) center / contain no-repeat; }
.kb-gift-num { font-family: var(--wp--preset--font-family--fredoka); font-weight: 600; font-size: 28px; line-height: 1.1; color: var(--wp--preset--color--tekst); }
.kb-gift-lab { font-size: 15px; color: var(--wp--preset--color--tekst-pomocniczy); }
@media (max-width: 1080px) { .kb-gifts-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kb-gifts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kb-gift-num { font-size: 24px; } }

/* Ukryta tabela danych wykresu nie poszerza strony na telefonie (1.0.48) */
table.kb-sr { display: block !important; clip-path: inset(50%); }
