/* =========================================================
   KP Blog – style w stylu karolprzybysz.pro
   ========================================================= */

@font-face { font-family: "Acorn"; src: url("https://karolprzybysz.pro/wp-content/uploads/2026/10/Acorn-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("https://karolprzybysz.pro/wp-content/uploads/2026/10/HankenGrotesk-VariableFont_wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("https://karolprzybysz.pro/wp-content/uploads/2026/10/InterTight-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --kp-accent: #E8BD3F;
  --kp-accent-2: #F7DE8E;
  --kp-grad: linear-gradient(135deg, #E8BD3F 0%, #F7DE8E 100%);
  --kp-ink: #272727;
  --kp-bg: #FAF9F5;
  --kp-muted: #5C5A53;
  --kp-text: #3A3935;
  --kp-line: #E4E1D6;
  --kp-skel: #F1EEE3;
  --kp-ok: #2BB673;
  --kpb-head: 68px;
  --kpb-pad: clamp(16px, 4vw, 24px);
}
@media (max-width: 700px) { :root { --kpb-head: 60px; } }

html { scroll-padding-top: calc(var(--kpb-head) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body.kpb {
  margin: 0 !important;
  padding: var(--kpb-head) 0 0 !important;
  background: var(--kp-bg) !important;
  color: var(--kp-ink) !important;
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.kpb *, body.kpb *::before, body.kpb *::after { box-sizing: border-box; }
body.kpb img { max-width: 100%; height: auto; }
body.kpb a:focus-visible, body.kpb button:focus-visible, body.kpb summary:focus-visible { outline: 3px solid var(--kp-ink); outline-offset: 3px; }
.kpb .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pasek przewijania w kolorach brandu */
html::-webkit-scrollbar { width: 12px; background: var(--kp-bg); }
html::-webkit-scrollbar-thumb { background: var(--kp-accent); border: 3px solid transparent; background-clip: padding-box; border-radius: 999px; min-height: 48px; }
html::-webkit-scrollbar-thumb:hover { background: var(--kp-ink); }
@supports (-moz-appearance: none) { html { scrollbar-width: thin; scrollbar-color: var(--kp-accent) var(--kp-bg); } }

/* ================= NAGLOWEK (staly) ================= */
.kph {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: var(--kpb-head); margin: 0; padding: 0;
  background: #fff; border-bottom: 1.2px solid var(--kp-line);
}
.admin-bar .kph { top: 32px; }
@media (max-width: 782px) { .admin-bar .kph { top: 46px; } }
.kph .kph-in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(calc(1240px + 2 * var(--kpb-pad)), 100%); height: 100%;
  margin: 0 auto; padding: 0 var(--kpb-pad);
}
.kph a { text-decoration: none !important; }
.kph a.kph-logo { font-family: "Acorn", Georgia, serif; font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -0.02em; color: var(--kp-ink); white-space: nowrap; transition: opacity .2s ease; }
.kph a.kph-logo:hover { opacity: .75; color: var(--kp-ink); }
.kph .kph-links { display: none; }
.kph a.kph-tel { position: relative; display: flex; flex-direction: column; gap: 3px; margin: 0 0 0 auto; line-height: 1; white-space: nowrap; color: var(--kp-ink); }
.kph .kph-tel-l { font-size: 11px; font-weight: 600; color: var(--kp-muted); }
.kph .kph-tel-n { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--kp-ink); }
.kph a.kph-tel::after,
.kph .kph-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px; border-radius: 2px; background: var(--kp-accent); transform: scaleX(0); transform-origin: left center; transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.kph a.kph-tel:hover::after, .kph .kph-links a:hover::after, .kph .kph-links a[aria-current]::after { transform: scaleX(1); }
.kph a.kph-cta {
  display: none; align-items: center; flex: none; height: 44px; padding: 0 24px;
  border-radius: 999px; background: var(--kp-grad); color: var(--kp-ink);
  font-size: 16px; font-weight: 600; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease;
}
.kph a.kph-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(232,189,63,.95); color: var(--kp-ink); }
.kpb-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.kpb-progress i { display: block; height: 100%; width: 100%; background: var(--kp-accent); transform: scaleX(0); transform-origin: left center; }
@media (min-width: 701px) {
  .kph a.kph-logo { font-size: 26px; }
  .kph .kph-links { display: flex; align-items: center; gap: 32px; margin: 0 0 0 auto; padding: 0 28px 0 0; }
  .kph .kph-links a { position: relative; padding: 10px 0; color: var(--kp-ink); font-size: 17px; font-weight: 500; }
  .kph .kph-links a::after { bottom: 5px; }
  .kph a.kph-tel { margin: 0 24px 0 0; }
  .kph .kph-tel-l { font-size: 12px; }
  .kph .kph-tel-n { font-size: 18px; }
  .kph a.kph-cta { display: inline-flex; }
}
@media (min-width: 701px) and (max-width: 960px) { .kph .kph-links { display: none; } .kph a.kph-tel { margin-left: auto; } }

/* ================= WSPOLNE ================= */
.kpb-eyebrow { margin: 0 0 18px !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1 !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--kp-muted) !important; }
.kpb-btn, .kpb-btn:visited {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px;
  border-radius: 999px; font-size: 18px; font-weight: 600; line-height: 1; text-decoration: none !important; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.kpb-btn--y, .kpb-btn--y:visited, .kpb-btn--y:hover { background: var(--kp-grad); color: var(--kp-ink) !important; }
.kpb-btn--y:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(232,189,63,.95); }
.kpb-btn--o, .kpb-btn--o:visited { border: 2px solid rgba(250,249,245,.5); color: var(--kp-bg) !important; background: transparent; }
.kpb-btn--o:hover { background: var(--kp-bg); color: var(--kp-ink) !important; border-color: var(--kp-bg); transform: translateY(-2px); }
.kpb-btn--s { min-height: 46px; padding: 0 22px; font-size: 16px; }

/* ================= HERO WPISU ================= */
.kpb-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--kp-bg); }
.kpb-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.kpb-blob { position: absolute; aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.kpb-blob--1 { width: 60%; left: -15%; top: -45%; background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 68%); animation: kpb-drift-a 18s ease-in-out infinite alternate; }
.kpb-blob--2 { width: 52%; right: -16%; top: -10%; background: radial-gradient(circle, rgba(232,189,63,.24) 0%, rgba(232,189,63,0) 68%); animation: kpb-drift-b 24s ease-in-out infinite alternate; }
@keyframes kpb-drift-a { to { transform: translate3d(22%, 14%, 0) scale(1.18); } }
@keyframes kpb-drift-b { to { transform: translate3d(-20%, 10%, 0) scale(1.1); } }

.kpb-hero-in { width: min(1140px, 100%); margin: 0 auto; padding: 56px var(--kpb-pad) 56px; }
.kpb-hero-in > * { max-width: 860px; }

.kpb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 28px; font-size: 14px; font-weight: 500; color: var(--kp-muted); }
.kpb-crumbs a, .kpb-crumbs a:visited { color: var(--kp-muted) !important; text-decoration: none !important; }
.kpb-crumbs a:hover { color: var(--kp-ink) !important; text-decoration: underline !important; text-decoration-color: var(--kp-accent) !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }
.kpb-crumbs span { color: #B5B1A4; }

.kpb-chip, .kpb-chip:visited { display: inline-flex; align-items: center; margin: 0 0 18px; padding: 8px 14px; border-radius: 999px; background: var(--kp-grad); color: var(--kp-ink) !important; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none !important; }

.kpb .kpb-h1 {
  margin: 0 !important; padding: 0 !important;
  font-family: "Acorn", Georgia, serif !important; font-weight: 700 !important;
  font-size: clamp(2.3rem, 5.4vw, 4.25rem) !important; line-height: 1.03 !important; letter-spacing: -0.03em !important;
  color: var(--kp-ink) !important; text-wrap: balance;
}
.kpb-intro { margin: 28px 0 0; }
.kpb-intro p, .kpb-lead { margin: 0 0 12px !important; font-size: clamp(18px, 2vw, 21px) !important; line-height: 1.6 !important; color: var(--kp-muted) !important; }
.kpb-intro p:last-child { margin-bottom: 0 !important; }
.kpb-lead { margin-top: 24px !important; max-width: 52ch; }

.kpb-meta { display: flex; align-items: center; gap: 14px; margin: 32px 0 0; padding: 18px 0 0; border-top: 1px solid var(--kp-line); }
.kpb-meta-av { flex: none; width: 48px !important; height: 48px !important; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--kp-accent); }
.kpb-meta-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpb-meta-t b { font-size: 16px; font-weight: 700; color: var(--kp-ink); }
.kpb-meta-t > span { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--kp-muted); }
.kpb-meta-i { display: inline-flex; align-items: center; gap: 6px; }
.kpb-meta-i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Zdjecie wpisu */
.kpb-cover { position: relative; width: min(1140px, calc(100% - 2 * var(--kpb-pad))); margin: 0 auto 8px !important; padding: 0 18px 18px 0 !important; }
.kpb-cover::before { content: ""; position: absolute; inset: 18px 0 0 18px; border-radius: 28px; background: var(--kp-accent); }
.kpb-cover img { position: relative; display: block; width: 100% !important; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 28px; margin: 0 !important; }

/* ================= UKLAD: TRESC + PANEL BOCZNY ================= */
.kpb-wrap {
  display: grid; grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; gap: 72px;
  width: min(1140px, 100%); margin: 0 auto; padding: 64px var(--kpb-pad) 120px;
}
.kpb-body { min-width: 0; }
@media (max-width: 1080px) {
  .kpb-wrap { grid-template-columns: minmax(0, 1fr); max-width: 808px; gap: 0; padding-top: 48px; padding-bottom: 96px; }
  .kpb-side { display: none; }
}

/* Spis tresci */
.kpb-toc { margin: 0 0 56px; padding: clamp(22px, 3vw, 32px); background: #fff; border: 2px solid var(--kp-line); border-radius: 24px; }
.kpb-toc-h { display: flex; align-items: center; gap: 12px; margin: 0 0 18px !important; font-family: "Inter Tight", "Hanken Grotesk", system-ui, sans-serif !important; font-weight: 700 !important; font-size: 22px !important; line-height: 1.2 !important; color: var(--kp-ink) !important; }
.kpb-toc-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--kp-grad); }
.kpb-toc-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--kp-ink); stroke-width: 2; stroke-linecap: round; }
.kpb-toc ol { list-style: none !important; counter-reset: kpbtoc; margin: 0 !important; padding: 0 !important; display: grid; gap: 2px; }
.kpb-toc ol > li { counter-increment: kpbtoc; position: relative; margin: 0 !important; padding: 0 0 0 42px !important; list-style: none !important; }
.kpb-toc ol > li::before { content: counter(kpbtoc); position: absolute; left: 0; top: 7px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--kp-skel); font-size: 13px; font-weight: 700; color: var(--kp-ink); font-variant-numeric: tabular-nums; }
.kpb-toc li::marker { content: ""; }
.kpb-toc a, .kpb-toc a:visited { display: inline-block; padding: 8px 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--kp-ink) !important; text-decoration: none !important; background: linear-gradient(var(--kp-accent), var(--kp-accent)) left calc(100% - 6px) / 0 3px no-repeat; transition: background-size .28s cubic-bezier(.2,.7,.2,1); }
.kpb-toc a:hover { background-size: 100% 3px; }
.kpb-toc ul { list-style: none !important; margin: 0 0 6px !important; padding: 0 0 0 2px !important; }
.kpb-toc ul li { margin: 0 !important; padding: 0 0 0 16px !important; position: relative; list-style: none !important; }
.kpb-toc ul li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--kp-accent); }
.kpb-toc ul a, .kpb-toc ul a:visited { padding: 4px 0; font-size: 15px; font-weight: 500; color: var(--kp-muted) !important; }

/* ================= TYPOGRAFIA TRESCI ================= */
.kpb-content { font-size: 19px; line-height: 1.7; color: var(--kp-text); overflow-wrap: break-word; }
.kpb-content > *:first-child { margin-top: 0 !important; }
.kpb-content p { margin: 0 0 22px !important; font-size: 19px !important; line-height: 1.7 !important; color: var(--kp-text) !important; }
.kpb-content strong, .kpb-content b { font-weight: 700; color: var(--kp-ink); }
.kpb-content h2 {
  position: relative; margin: 80px 0 22px !important; padding: 22px 0 0 !important;
  font-family: "Inter Tight", "Hanken Grotesk", system-ui, sans-serif !important; font-weight: 700 !important;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem) !important; line-height: 1.14 !important; letter-spacing: -0.02em !important;
  color: var(--kp-ink) !important; text-transform: none !important; text-wrap: balance;
}
.kpb-content h2::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 5px; border-radius: 3px; background: var(--kp-grad); }
.kpb-content h3 {
  margin: 44px 0 14px !important; padding: 0 !important;
  font-family: "Inter Tight", "Hanken Grotesk", system-ui, sans-serif !important; font-weight: 700 !important;
  font-size: clamp(1.3rem, 2.2vw, 1.55rem) !important; line-height: 1.25 !important; letter-spacing: -0.012em !important;
  color: var(--kp-ink) !important; text-transform: none !important;
}
.kpb-content h4 { margin: 32px 0 10px !important; font-size: 19px !important; font-weight: 700 !important; color: var(--kp-ink) !important; }
.kpb-content h2 + h3 { margin-top: 24px !important; }
.kpb-content a, .kpb-content a:visited { color: var(--kp-ink) !important; font-weight: 600; text-decoration: underline !important; text-decoration-color: var(--kp-accent) !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; transition: background-color .2s ease; }
.kpb-content a:hover { background: rgba(232,189,63,.22); }

.kpb-content ul, .kpb-content ol { margin: 0 0 26px !important; padding: 0 !important; list-style: none !important; display: grid; gap: 10px; }
.kpb-content li { position: relative; margin: 0 !important; padding: 0 0 0 34px !important; font-size: 19px; line-height: 1.6; color: var(--kp-text); list-style: none !important; }
.kpb-content li::marker { content: ""; }
.kpb-content ul > li::before { content: ""; position: absolute; left: 8px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--kp-accent); box-shadow: 0 0 0 4px rgba(232,189,63,.22); }
.kpb-content ol { counter-reset: kpbol; }
.kpb-content ol > li { counter-increment: kpbol; padding-left: 42px !important; }
.kpb-content ol > li::before { content: counter(kpbol); position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--kp-ink); color: var(--kp-accent); font-size: 14px; font-weight: 700; }
.kpb-content li > ul, .kpb-content li > ol { margin: 10px 0 0 !important; }

.kpb-content blockquote, .kpb-content .wp-block-quote {
  margin: 36px 0 !important; padding: 26px 28px 26px 32px !important; border: 0 !important; border-left: 5px solid var(--kp-accent) !important;
  border-radius: 0 20px 20px 0; background: #fff;
}
.kpb-content blockquote p { margin: 0 0 10px !important; font-size: 20px !important; font-weight: 500; color: var(--kp-ink) !important; }
.kpb-content blockquote p:last-child { margin: 0 !important; }
.kpb-content blockquote cite { font-size: 15px; font-style: normal; color: var(--kp-muted); }

.kpb-content img { display: block; border-radius: 20px; }
.kpb-content figure { margin: 36px 0 !important; }
.kpb-content figcaption { margin-top: 10px; font-size: 14px; color: var(--kp-muted); text-align: center; }
.kpb-content hr { margin: 56px 0; border: 0; height: 2px; background: var(--kp-line); }
.kpb-content code { padding: 2px 7px; border-radius: 6px; background: var(--kp-skel); font-size: .88em; }

/* Ramka wyrozniajaca: dodaj klase "kpb-box" do akapitu/grupy w edytorze (Zaawansowane > Dodatkowe klasy CSS) */
.kpb-content .kpb-box { margin: 32px 0 !important; padding: 24px 28px !important; border-radius: 20px; background: var(--kp-grad); color: var(--kp-ink) !important; }
.kpb-content .kpb-box p { color: var(--kp-ink) !important; }
.kpb-content .kpb-box > :last-child { margin-bottom: 0 !important; }

/* Tabele (checklista) */
.kpb-content .wp-block-table { margin: 36px 0 !important; overflow: visible; }
.kpb-table { margin: 32px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 2px solid var(--kp-line); border-radius: 22px; }
.wp-block-table .kpb-table { margin: 0; }
.kpb-table table { width: 100%; min-width: 560px; margin: 0 !important; border: 0 !important; border-collapse: collapse !important; border-spacing: 0; font-size: 16px; line-height: 1.5; }
.kpb-table th, .kpb-table thead td {
  padding: 16px 20px !important; border: 0 !important; background: var(--kp-ink) !important; color: var(--kp-bg) !important;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; vertical-align: middle;
}
.kpb-table td { padding: 16px 20px !important; border: 0 !important; border-top: 1px solid var(--kp-line) !important; color: var(--kp-text); vertical-align: top; text-align: left; }
.kpb-table tbody tr:first-child td { border-top: 0 !important; }
.kpb-table tbody tr:nth-child(even) td { background: #FCFBF8; }
.kpb-table tbody tr:hover td { background: rgba(232,189,63,.1); }
.kpb-table td:first-child { font-weight: 700; color: var(--kp-ink); }
.kpb-table td p { margin: 0 !important; font-size: 16px !important; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: transparent; }
.kpb-content .wp-block-table figcaption { text-align: left; }

/* ================= FAQ ================= */
.kpb .kpb-sec-h {
  position: relative; margin: 96px 0 28px !important; padding: 22px 0 0 !important;
  font-family: "Acorn", Georgia, serif !important; font-weight: 700 !important;
  font-size: clamp(2rem, 4.2vw, 3rem) !important; line-height: 1.04 !important; letter-spacing: -0.03em !important; color: var(--kp-ink) !important;
}
.kpb .kpb-sec-h::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 5px; border-radius: 3px; background: var(--kp-grad); }
.kpb-faq-list { display: grid; gap: 12px; }
.kpb-q { background: #fff; border: 2px solid var(--kp-line); border-radius: 20px; transition: border-color .2s ease, box-shadow .2s ease; }
.kpb-q:hover { border-color: #CFCBBD; }
.kpb-q[open] { border-color: var(--kp-ink); box-shadow: 0 18px 36px -26px rgba(39,39,39,.45); }
.kpb-q summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--kp-ink); }
.kpb-q summary::-webkit-details-marker { display: none; }
.kpb-q summary::marker { content: ""; }
.kpb-q-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--kp-skel); transition: transform .3s cubic-bezier(.2,.7,.2,1), background-color .2s ease; }
.kpb-q-ico svg { width: 16px; height: 16px; fill: none; stroke: var(--kp-ink); stroke-width: 2.4; stroke-linecap: round; }
.kpb-q[open] .kpb-q-ico { transform: rotate(45deg); background: var(--kp-accent); }
.kpb-a { padding: 0 22px 22px; }
.kpb-a p { margin: 0 0 10px !important; font-size: 17px !important; line-height: 1.65 !important; color: var(--kp-muted) !important; }
.kpb-a p:last-child { margin: 0 !important; }

/* ================= PODSUMOWANIE + CTA ================= */
.kpb-sum-t { margin-bottom: 40px; }
.kpb-cta {
  position: relative; margin: 40px 0 0; padding: clamp(32px, 5vw, 52px);
  border-radius: 32px; background: #232323; color: var(--kp-bg); isolation: isolate; overflow: visible;
}
.kpb-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120% 90% at 100% 0%, rgba(232,189,63,.28) 0%, rgba(232,189,63,0) 55%), linear-gradient(to top right, #3B3727 0%, #232323 60%); }
.kpb-cta-in { position: relative; max-width: 560px; }
.kpb-cta-k { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px !important; padding: 8px 14px; border-radius: 999px; background: rgba(250,249,245,.08); font-size: 14px !important; font-weight: 600; color: #D9D6CA !important; }
.kpb-dot { width: 8px; height: 8px; border-radius: 50%; background: #5BD27A; box-shadow: 0 0 0 0 rgba(91,210,122,.5); animation: kpb-pulse 2s ease-in-out infinite; }
@keyframes kpb-pulse { 50% { box-shadow: 0 0 0 6px rgba(91,210,122,0); } }
.kpb .kpb-cta-h { margin: 0 !important; font-family: "Acorn", Georgia, serif !important; font-weight: 700 !important; font-size: clamp(1.9rem, 4vw, 2.8rem) !important; line-height: 1.06 !important; letter-spacing: -0.03em !important; color: var(--kp-bg) !important; text-wrap: balance; }
.kpb-cta-p { margin: 16px 0 0 !important; font-size: 18px !important; line-height: 1.6 !important; color: #D9D6CA !important; }
.kpb-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.kpb-cta-tel, .kpb-cta-tel:visited { display: inline-block; margin: 20px 0 0; font-size: 15px; color: #BDB9AC !important; text-decoration: none !important; }
.kpb-cta-tel b { color: var(--kp-bg); }
.kpb-cta-tel:hover b { color: var(--kp-accent); }
.kpb-cta .kp-bee { position: absolute; right: clamp(8px, 4vw, 48px); top: calc(var(--kp-bee-w) * -0.55); }

/* Pszczolka */
.kp-bee {
  --kp-bee-w: clamp(64px, 9vw, 110px);
  --kp-face: -1; --kp-flap: 16deg;
  --kp-wl-x: 42%; --kp-wl-y: 50%; --kp-wr-x: 58%; --kp-wr-y: 50%;
  width: var(--kp-bee-w); z-index: 2; pointer-events: none;
  animation: kp-hover 7s ease-in-out infinite;
}
.kp-bee-flip { transform: scaleX(calc(var(--kp-face) * -1)); }
.kp-bee-bob { animation: kp-bob 1.4s ease-in-out infinite alternate; }
.kp-bee-art { position: relative; width: 100%; aspect-ratio: 1; }
.kp-bee-art img { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; user-select: none; }
.kp-bee-art .kp-bee-body { z-index: 2; }
.kp-bee-art .kp-wing--left { z-index: 1; transform-origin: var(--kp-wl-x) var(--kp-wl-y); animation: kp-flap-left .1s ease-in-out infinite alternate; }
.kp-bee-art .kp-wing--right { z-index: 3; transform-origin: var(--kp-wr-x) var(--kp-wr-y); animation: kp-flap-right .1s ease-in-out infinite alternate; animation-delay: -.05s; }
@keyframes kp-hover { 0%, 100% { transform: translate3d(0,0,0); } 25% { transform: translate3d(14px,-7px,0); } 50% { transform: translate3d(2px,-13px,0); } 75% { transform: translate3d(-14px,-5px,0); } }
@keyframes kp-bob { from { transform: translateY(-5px) rotate(-4deg); } to { transform: translateY(5px) rotate(3deg); } }
@keyframes kp-flap-left { from { transform: rotate(calc(var(--kp-flap) * -1)); } to { transform: rotate(calc(var(--kp-flap) * .6)); } }
@keyframes kp-flap-right { from { transform: rotate(var(--kp-flap)); } to { transform: rotate(calc(var(--kp-flap) * -.6)); } }

/* ================= PANEL BOCZNY ================= */
.kpb-side-in { position: sticky; top: calc(var(--kpb-head) + 32px); display: grid; gap: 20px; }
.admin-bar .kpb-side-in { top: calc(var(--kpb-head) + 64px); }
.kpb-stoc { max-height: calc(100vh - var(--kpb-head) - 320px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--kp-accent) transparent; }
.kpb-stoc-h { margin: 0 0 12px !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--kp-muted) !important; }
.kpb-stoc ol { list-style: none !important; margin: 0 !important; padding: 0 !important; border-left: 2px solid var(--kp-line); }
.kpb-stoc li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.kpb-stoc li::marker { content: ""; }
.kpb-stoc a, .kpb-stoc a:visited { position: relative; display: block; padding: 7px 0 7px 16px; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--kp-muted) !important; text-decoration: none !important; transition: color .2s ease; }
.kpb-stoc a::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--kp-accent); transform: scaleY(0); transition: transform .25s ease; }
.kpb-stoc a:hover { color: var(--kp-ink) !important; }
.kpb-stoc a.is-on { color: var(--kp-ink) !important; font-weight: 700; }
.kpb-stoc a.is-on::before { transform: scaleY(1); width: 4px; left: -3px; border-radius: 2px; }

.kpb-scard { padding: 24px; border-radius: 24px; background: #232323; color: var(--kp-bg); }
.kpb-scard img { display: block; width: 56px !important; height: 56px !important; border-radius: 50%; object-fit: cover; border: 3px solid #232323; box-shadow: 0 0 0 2px var(--kp-accent); }
.kpb-scard-h { margin: 16px 0 6px !important; font-family: "Inter Tight", "Hanken Grotesk", system-ui, sans-serif !important; font-weight: 700 !important; font-size: 21px !important; line-height: 1.2 !important; color: var(--kp-bg) !important; }
.kpb-scard-p { margin: 0 0 18px !important; font-size: 15px !important; line-height: 1.5 !important; color: #BDB9AC !important; }
.kpb-scard .kpb-btn { width: 100%; }

/* ================= KARTY WPISOW ================= */
.kpb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 960px) { .kpb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kpb-grid { grid-template-columns: 1fr; } }
.kpb-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: 24px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.kpb-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(39,39,39,.45); }
.kpb-card-img { display: block; aspect-ratio: 1200 / 670; overflow: hidden; background: var(--kp-skel); }
.kpb-card-img img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.kpb-card:hover .kpb-card-img img { transform: scale(1.04); }
.kpb-card-ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--kp-grad); font-family: "Acorn", Georgia, serif; font-size: 72px; color: var(--kp-ink); }
.kpb-card-b { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.kpb-card-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px !important; font-size: 13px !important; font-weight: 600; color: var(--kp-muted) !important; }
.kpb-card-c { padding: 5px 10px; border-radius: 999px; background: var(--kp-skel); color: var(--kp-ink); }
.kpb .kpb-card-h { margin: 0 !important; font-family: "Inter Tight", "Hanken Grotesk", system-ui, sans-serif !important; font-weight: 700 !important; font-size: 21px !important; line-height: 1.25 !important; letter-spacing: -0.01em !important; }
.kpb-card-h a, .kpb-card-h a:visited { color: var(--kp-ink) !important; text-decoration: none !important; }
.kpb-card-h a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kpb-card-p { margin: 10px 0 18px !important; font-size: 16px !important; line-height: 1.55 !important; color: var(--kp-muted) !important; }
.kpb-card-more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font-size: 15px; font-weight: 700; color: var(--kp-ink); }
.kpb-card-more i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--kp-grad); }
.kpb-card-more svg { width: 15px; height: 15px; fill: none; stroke: var(--kp-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.kpb-card:hover .kpb-card-more svg { transform: translate(2px, -2px); }

/* Przeczytaj tez */
.kpb-rel { background: #F3F1EA; }
.kpb-rel-in { width: min(1140px, 100%); margin: 0 auto; padding: 104px var(--kpb-pad) 120px; }
.kpb .kpb-rel-h { margin: 0 0 44px !important; font-family: "Acorn", Georgia, serif !important; font-weight: 700 !important; font-size: clamp(2.2rem, 5vw, 3.6rem) !important; line-height: 1 !important; letter-spacing: -0.03em !important; color: var(--kp-ink) !important; }

/* ================= LISTA WPISOW ================= */
.kpb-hero--list .kpb-hero-in { padding-top: 88px; padding-bottom: 64px; }
.kpb-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.kpb-cats a, .kpb-cats a:visited { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 2px solid var(--kp-ink); border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--kp-ink) !important; text-decoration: none !important; transition: background-color .2s ease, color .2s ease; }
.kpb-cats a:hover { background: var(--kp-accent); border-color: var(--kp-accent); }
.kpb-cats a[aria-current] { background: var(--kp-ink); color: var(--kp-bg) !important; }
.kpb-list-in { width: min(1140px, 100%); margin: 0 auto; padding: 64px var(--kpb-pad) 128px; }
.kpb-empty { padding: 48px 0; font-size: 20px; color: var(--kp-muted); }
.kpb-pag { display: flex; justify-content: center; margin: 64px 0 0; }
.kpb-pag .page-numbers { display: inline-grid; place-items: center; min-width: 48px; height: 48px; margin: 0 4px; padding: 0 10px; border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--kp-ink) !important; text-decoration: none !important; background: #fff; }
.kpb-pag a.page-numbers:hover { background: var(--kp-accent); }
.kpb-pag .page-numbers.current { background: var(--kp-ink); color: var(--kp-accent) !important; }
.kpb-pag .page-numbers.dots { background: transparent; }
.kpb-pag svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ================= PASEK Z MAILEM ================= */
.kpm { display: flex; align-items: center; justify-content: center; height: 80px; padding: 0 16px; background: var(--kp-accent); }
.kpm a.kpm-mail, .kpm a.kpm-mail:visited { padding-bottom: 3px; color: var(--kp-ink) !important; font-size: clamp(18px, 5vw, 26px); font-weight: 600; line-height: 1.2; text-decoration: none !important; background: linear-gradient(var(--kp-ink), var(--kp-ink)) left bottom / 0 2px no-repeat; transition: background-size .3s ease; }
.kpm a.kpm-mail:hover { background-size: 100% 2px; }

/* ================= STOPKA ================= */
.kpf-mark { --kpf-out: 33%; margin: 0 0 -1px; line-height: 0; overflow: hidden; background: linear-gradient(to bottom, var(--kp-bg) 0, var(--kp-bg) var(--kpf-out), #232323 var(--kpf-out), #232323 100%); }
.kpf-mark img { display: block; width: 100% !important; max-width: none !important; height: auto; margin: 0 !important; border-radius: 0 !important; }
.kpf { background: #232323; color: #D9D6CA; }
.kpf .kpf-inner { width: min(1140px, 100%); margin: 0 auto; padding: 136px var(--kpb-pad) 32px; }
.kpf .kpf-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px 64px; }
.kpf .kpf-h { margin: 0 !important; max-width: 16ch; font-family: "Inter Tight", "Hanken Grotesk", system-ui, sans-serif !important; font-weight: 700 !important; font-size: clamp(2.2rem, 5vw, 3.75rem) !important; line-height: 1.04 !important; letter-spacing: -0.03em !important; color: var(--kp-bg) !important; }
.kpf .kpf-p { margin: 20px 0 0 !important; max-width: 40ch; font-size: 18px !important; line-height: 1.55 !important; color: #D9D6CA !important; }
.kpf a.kpf-cta, .kpf a.kpf-cta:visited { display: inline-flex; align-items: center; margin: 32px 0 0; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--kp-grad); color: var(--kp-ink) !important; font-size: 18px; font-weight: 600; line-height: 1; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.kpf a.kpf-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(232,189,63,.95); }
.kpf .kpf-label { margin: 0 0 16px !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 1.2px !important; text-transform: uppercase !important; color: #8E8C84 !important; }
.kpf .kpf-list { list-style: none !important; display: grid; gap: 4px; margin: 0 !important; padding: 0 !important; }
.kpf .kpf-list li { margin: 0 !important; padding: 0 !important; }
.kpf .kpf-list li::marker { content: ""; }
.kpf .kpf-list a, .kpf .kpf-list a:visited { display: inline-block; padding: 6px 0; font-size: 18px; font-weight: 500; color: var(--kp-bg) !important; text-decoration: none !important; transition: color .2s ease; }
.kpf .kpf-list a:hover { color: var(--kp-accent) !important; }
.kpf .kpf-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 72px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(250,249,245,.12); font-size: 14px; color: #8E8C84; }
.kpf .kpf-bottom p { margin: 0 !important; font-size: 14px !important; color: #8E8C84 !important; }
.kpf .kpf-bottom a, .kpf .kpf-bottom a:visited { color: #8E8C84 !important; text-decoration: none !important; }
.kpf .kpf-bottom a:hover { color: var(--kp-accent) !important; }
.kpf .kpf-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 900px) {
  .kpf .kpf-inner { padding-top: 96px; }
  .kpf .kpf-top { grid-template-columns: 1fr; gap: 48px; }
  .kpf .kpf-bottom { margin-top: 56px; }
}

/* ================= POPUP: WYCEN PROJEKT ================= */
html.kpz-lock, html.kpz-lock body { overflow: hidden !important; }
.kpz[hidden] { display: none !important; }
.kpz { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.kpz.is-on { opacity: 1; }
.kpz .kpz-back { position: absolute; inset: 0; background: rgba(39,39,39,.55); backdrop-filter: blur(3px); }
.kpz .kpz-card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 36px 32px 32px; background: var(--kp-bg); color: var(--kp-ink); border-radius: 28px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); transform: translateY(14px) scale(.98); transition: transform .25s ease; }
.kpz.is-on .kpz-card { transform: none; }
.kpz button.kpz-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--kp-ink); font-size: 30px; line-height: 1; cursor: pointer; }
.kpz button.kpz-x:hover { background: rgba(39,39,39,.08); }
.kpz .kpz-title { margin: 0 0 22px !important; padding: 0 36px !important; font-family: "Acorn", Georgia, serif !important; font-weight: 700 !important; font-size: clamp(2rem, 8vw, 2.5rem) !important; line-height: 1.05 !important; letter-spacing: -0.03em !important; color: var(--kp-ink) !important; text-align: center; text-wrap: balance; }
.kpz label.kpz-l { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--kp-ink); }
.kpz input.kpz-i { display: block; width: 100%; height: 52px; margin: 0; padding: 0 16px; border: 2px solid var(--kp-line); border-radius: 14px; background: #fff; color: var(--kp-ink); font-family: inherit; font-size: 17px; box-shadow: none; outline: 0; -webkit-appearance: none; appearance: none; }
.kpz input.kpz-i::placeholder { color: #A7A498; opacity: 1; }
.kpz input.kpz-i:focus { border-color: var(--kp-ink); }
.kpz input.kpz-i.is-bad { border-color: #C0392B; }
.kpz input.kpz-web { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kpz label.kpz-c { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--kp-muted); }
.kpz label.kpz-c input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--kp-ink); }
.kpz label.kpz-c.is-bad { color: #C0392B; }
.kpz label.kpz-c a { color: var(--kp-ink); text-decoration: underline; text-decoration-color: var(--kp-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.kpz p.kpz-err { min-height: 20px; margin: 14px 0 0 !important; font-size: 14px !important; font-weight: 600; color: #C0392B !important; }
.kpz button.kpz-send { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 10px 0 0; padding: 0 28px; border: 0; border-radius: 999px; background: var(--kp-grad); color: var(--kp-ink); font-family: inherit; font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer; text-transform: none; letter-spacing: normal; transition: transform .2s ease, box-shadow .2s ease; }
.kpz button.kpz-send:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(232,189,63,.95); }
.kpz button.kpz-send:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.kpz .kpz-okp { margin: 0 0 8px !important; font-size: 18px !important; line-height: 1.5 !important; color: var(--kp-muted) !important; text-align: center; }
@media (max-width: 520px) {
  .kpz { align-items: flex-end; padding: 0; }
  .kpz .kpz-card { width: 100%; border-radius: 28px 28px 0 0; max-height: 94vh; padding: 30px 20px 24px; }
}

/* ================= TELEFON ================= */
@media (max-width: 700px) {
  .kpb-hero-in { padding-top: 32px; padding-bottom: 40px; }
  .kpb-crumbs { margin-bottom: 20px; font-size: 13px; }
  .kpb-hero--list .kpb-hero-in { padding-top: 56px; padding-bottom: 40px; }
  .kpb .kpb-h1 { font-size: clamp(2.1rem, 9.6vw, 2.9rem) !important; line-height: 1.06 !important; }
  .kpb-cover { padding: 0 10px 10px 0 !important; }
  .kpb-cover::before { inset: 10px 0 0 10px; border-radius: 20px; }
  .kpb-cover img { border-radius: 20px; aspect-ratio: 4 / 3; }
  .kpb-wrap { padding-top: 40px; padding-bottom: 80px; }
  .kpb-toc { margin-bottom: 40px; border-radius: 20px; }
  .kpb-toc a { font-size: 16px; }
  .kpb-content, .kpb-content p, .kpb-content li { font-size: 17.5px !important; }
  .kpb-content h2 { margin-top: 64px !important; }
  .kpb-content h3 { margin-top: 36px !important; }
  .kpb-table { margin-left: calc(-1 * var(--kpb-pad)); margin-right: calc(-1 * var(--kpb-pad)); border-radius: 0; border-left: 0; border-right: 0; }
  .wp-block-table .kpb-table { margin-left: calc(-1 * var(--kpb-pad)); margin-right: calc(-1 * var(--kpb-pad)); }
  .kpb-table th, .kpb-table td { padding: 13px 14px !important; }
  .kpb .kpb-sec-h { margin-top: 72px !important; }
  .kpb-q summary { padding: 18px; font-size: 17px; }
  .kpb-a { padding: 0 18px 18px; }
  .kpb-cta { margin-top: 64px; border-radius: 26px; }
  .kpb-cta-btns { flex-direction: column; }
  .kpb-cta-btns .kpb-btn { width: 100%; }
  .kpb-rel-in { padding: 80px var(--kpb-pad) 96px; }
  .kpb-list-in { padding-top: 40px; padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .kpb-blob, .kp-bee, .kp-bee-bob, .kp-wing, .kpb-dot { animation: none !important; }
}
