/* Chmury Ozonu — modern layer on top of the design-system inline styles. */
:root {
  --ink: #0B1B33; --muted: #51607A; --navy: #0B1B33; --ozone: #3372B7; --ozone-deep: #245A97; --ozone-light: #7FB0E6;
  --sky: #EAF2FB; --line: #E1E7F0; --field: #7B8BA5; --spark: #F2A33A; --spark-ink: #1B1206;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 2px 6px rgba(11, 27, 51, .06), 0 8px 24px rgba(11, 27, 51, .06);
  --shadow-lg: 0 10px 30px rgba(11, 27, 51, .10), 0 30px 60px rgba(11, 27, 51, .10);
  --font: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; font-family: var(--font); color: var(--ink); background: #F6F8FB; }
::selection { background: var(--ozone); color: #fff; }
/* Two-tone focus ring: visible on white, blue and navy (≥3:1 everywhere). */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
footer :focus-visible, .topbar :focus-visible, .pz-final :focus-visible, .pz-dark :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px var(--ink); }
img { max-width: 100%; }
main h1, main h2, main h3 { text-wrap: balance; }
main h2, main h3 { line-height: 1.15; }
main:focus { outline: none; }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--ozone); pointer-events: none; }

/* ---------- Header ---------- */
.topbar { font-family: var(--font); }
.topbar a { display: inline-block; padding: 4px 0; }
.site-header { position: sticky; top: 0; z-index: 60; background: #fff !important; transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 27, 51, .08); }
.site-header img { transition: transform .4s var(--ease); }
.site-header a:hover img { transform: rotate(-4deg) scale(1.04); }
.site-header > div { flex-wrap: nowrap !important; }
.main-nav a { position: relative; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--ozone); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--ozone-deep) !important; }
.main-nav .nav-call { display: none; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer; flex: none; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }

/* Eight menu links: until the header reaches its full width (1240 px) the gaps and the call button get tighter, so the
   row never wraps; at 1080 px and below the menu folds into the toggle. The band starts right above 1080 px, not at
   1081: with browser zoom or display scaling the screen can be 1080.8 px wide, and the full spacing wraps there. */
@media (min-width: 1080.02px) and (max-width: 1239.98px) {
  .site-header > div { gap: 12px 16px !important; }
  .main-nav { gap: 4px 16px !important; }
  .site-header a.header-call { padding: 0 16px !important; }
}
@media (max-width: 1080px) {
  .site-header > div { position: relative; gap: 10px !important; }
  .site-header .nav-toggle { order: 3; }
  .site-header a.header-call { order: 2; margin-left: auto; min-height: 44px !important; padding: 0 14px !important; font-size: 15px; }
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); flex-direction: column !important; flex-wrap: nowrap !important;
    gap: 0 !important; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    /* a menu taller than the screen (short phones, landscape) scrolls inside instead of running off it: --nav-max is
       the space from the menu's top to 16 px above the screen's bottom, set by site.js on opening, scroll and resize */
    box-sizing: border-box; max-height: var(--nav-max, calc(100vh - 108px)); overflow-y: auto; overscroll-behavior: contain; }
  .js .main-nav a { padding: 14px 4px !important; font-size: 17px; border-bottom: 1px solid var(--line); }
  .js .main-nav a::after { display: none; }
  .js .main-nav .nav-call { display: flex; justify-content: center; margin: 12px 0 6px; min-height: 52px; border-radius: 12px; border: 0;
    background: var(--spark); color: var(--spark-ink) !important; font-weight: 800; align-items: center; }
  .site-header.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .site-header a.header-call { font-size: 0 !important; gap: 0 !important; width: 44px; padding: 0 !important; justify-content: center; }
  .site-header a.header-call svg { width: 20px; height: 20px; }
}

/* ---------- Buttons & links ---------- */
main a[style*="min-height: 5"], main a[style*="min-height: 6"], main button, .site-header a[href^="tel:"], footer a[style*="min-height"], .btn, .pz-btn {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, filter .25s; }
main a[style*="min-height: 5"]:hover, main a[style*="min-height: 6"]:hover, main button[style*="background"]:hover, .site-header a[href^="tel:"]:hover,
footer a[style*="min-height"]:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 27, 51, .18); }
main a[style*="min-height: 5"]:active, main button:active, .btn:active { transform: translateY(0) scale(.98); }
main a[style*="min-height: 5"], main a[style*="min-height: 6"] { min-height: 56px !important; border-radius: 12px !important; }
/* The hero phone CTA pulses a few times to draw the eye, then rests. */
.page-hero a[style*="background: #F2A33A"] { position: relative; isolation: isolate; }
.page-hero a[style*="background: #F2A33A"]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; animation: ping 2.8s var(--ease) 1s 3; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(242, 163, 58, .45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(242, 163, 58, 0); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 12px; font-weight: 800;
  font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-call { background: var(--spark); color: var(--spark-ink) !important; }
.btn-ghost { background: #fff; border: 2px solid #C9D6EA; color: var(--ink) !important; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.trust-line { margin: 0; font-size: 15px; font-weight: 600; opacity: .95; }
.trust-line [role="img"] { color: var(--spark); letter-spacing: 1px; margin-right: 4px; }
.page-hero[style*="#0B1B33"] .trust-line a, .page-hero[style*="#3372B7"] .trust-line a { color: #fff; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip-rating { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink) !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.chip-rating span { color: #C7801C; }
.note { margin: 0; color: var(--muted); font-size: 15px; }
.related { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); margin: 8px 0 16px; }

/* ---------- Cards ---------- */
main a[style*="border-radius: 2"], main [style*="display: grid"] > div[style*="border-radius"], main [style*="display: grid"] > a {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
main a[style*="border-radius: 2"]:hover, main [style*="display: grid"] > a:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #C9D6EA !important; }
main a[style*="border-radius: 2"]:hover svg { transform: translateX(3px); }
main a[style*="border-radius: 2"] svg { transition: transform .4s var(--ease); }
/* Key/value rows (prices, "W skrócie") */
main [style*="justify-content: space-between"] > :first-child { flex: 0 1 auto; min-width: 0; }
main [style*="justify-content: space-between"] > :last-child:not(:first-child) { text-align: right; }

/* ---------- Hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none;
  animation: drift 18s ease-in-out 2 alternate; }
.page-hero::before { width: 520px; height: 520px; right: -140px; top: -180px; background: rgba(127, 176, 230, .32); }
.page-hero::after { width: 420px; height: 420px; left: -160px; bottom: -220px; background: rgba(51, 114, 183, .16); animation-delay: -9s; }
.page-hero[style*="#0B1B33"]::before { background: rgba(127, 176, 230, .2); }
.page-hero[style*="#3372B7"]::before, .page-hero[style*="#3372B7"]::after { display: none; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
.page-hero h1 { animation: lift .7s var(--ease) both; }
@keyframes lift { from { transform: translateY(14px); } to { transform: none; } }

.hero-visual { margin: 8px 0 0; border-radius: 28px; overflow: hidden; position: relative; aspect-ratio: 2 / 1; box-shadow: var(--shadow-lg); background: var(--sky); }
.hero-visual img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 70%; display: block; will-change: transform; }
.pz-hero .hero-visual { aspect-ratio: 3 / 2; }
@media (max-width: 640px) { .hero-visual { aspect-ratio: 4 / 3; border-radius: 20px; } }

/* Home: illustration fills the navy panel, quote form floats on top. */
.panel-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 15%; }
.glass-form { animation: lift .9s .1s var(--ease) both; box-shadow: var(--shadow-lg); }
@media (max-width: 640px) {
  .page-main .page-hero [style*="min-height: 560px"] { min-height: 0 !important; padding: 0 0 16px !important; }
  .page-main .page-hero .panel-art { position: static; height: auto; aspect-ratio: 3 / 2; border-radius: 28px 28px 0 0; object-position: 30% 20%; }
  .page-main .page-hero form#wycena { margin: -32px 12px 0; padding: 20px !important; }
}

/* Placeholder slots replaced by illustrations. */
.media-slot { min-height: 240px; }
.media-card { min-height: 0 !important; height: auto !important; aspect-ratio: 3 / 2; }
.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a:hover .media-fill { transform: scale(1.05); }
.contact-map { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 3 / 2; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.process-art { margin: 8px auto 12px; max-width: 920px; width: 100%; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 7; }
.process-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero--plain > section { position: relative; }
.page-kontakt main form { align-self: flex-start; }

/* Home service cards: illustration column + chips. */
.svc-card { position: relative; overflow: hidden; }
.card-art { margin: 0; flex: 0 1 300px; min-width: 0; align-self: stretch; border-radius: 20px; overflow: hidden; background: var(--sky); }
.card-art img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.svc-card:hover .card-art img { transform: scale(1.06); }
.svc-card li { overflow-wrap: anywhere; min-width: 0; }
.svc-card li.chip-link { padding: 0 !important; }
.svc-card li.chip-link a { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 14px 16px; color: inherit; text-decoration: none; border-radius: 12px; }
.svc-card li.chip-link a::after { content: "→"; opacity: .6; transition: transform .25s var(--ease); }
.svc-card li.chip-link a:hover::after { transform: translateX(3px); }
.svc-card li.chip-tag { background: transparent !important; border: 1px solid currentColor; border-color: rgba(127, 176, 230, .45); font-weight: 500 !important; }
@media (max-width: 900px) { .card-art { flex-basis: 100%; aspect-ratio: 16 / 9; } }
@media (max-width: 600px) { .svc-card { padding: 24px !important; gap: 24px !important; } }
main span[style*="font-size: 32px"] { white-space: nowrap; }

/* ---------- Layout fixes ---------- */
@media (min-width: 600px) and (max-width: 1100px) {
  main [style*="minmax(min(220px"], main [style*="minmax(min(240px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 1100px) { main section [style*="minmax(min(260px"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
/* Service-page hero: text left, compact illustration + summary card right. */
.page-hero .hero-row { align-items: center !important; }
.hero-side { flex: 0 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-side > [style*="flex: 0 1"] { flex: none !important; width: 100%; box-sizing: border-box; }
.hero-visual--side { margin: 0; aspect-ratio: 16 / 10; border-radius: 20px; box-shadow: 0 18px 40px -18px rgba(5, 13, 25, .55); }
.hero-visual--side img { height: 100%; object-position: 50% 60%; }
@media (max-width: 1199px) {
  .hero-side { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
  .hero-visual--side { aspect-ratio: auto; min-height: 220px; }
}
@media (max-width: 700px) {
  .hero-side { grid-template-columns: 1fr; }
  .hero-visual--side { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 640px) {
  main section > div[style*="padding: 104px"], main section > div[style*="padding: 96px"], main section[style*="padding: 104px"], main section[style*="padding: 96px"] {
    padding-top: 56px !important; padding-bottom: 56px !important; }
  main [style*="padding: 40px"] { padding: 24px !important; }
  .page-hero [style*="flex: 0 1 340px"], .page-hero [style*="flex: 0 1 380px"] { padding: 20px !important; }
}
@media (max-width: 760px) { footer > div { padding-bottom: 104px !important; } }
footer h2.footer-h { margin: 0; font-size: 15px; font-weight: 700; color: #fff; font-family: var(--font); }
@media (max-width: 600px) {
  footer nav a, footer div > a:not([style*="min-height"]) { display: inline-flex; align-items: center; min-height: 40px; }
  nav[aria-label="Ścieżka"] a, .pz-crumbs a { display: inline-block; padding: 10px 0; }
}

/* ---------- Scroll reveal (below the fold only) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal="zoom"] { transform: scale(.96); }
.js [data-reveal].is-in, .js [data-reveal]:focus-within { opacity: 1; transform: none; }

/* ---------- FAQ (native details) ---------- */
details.faq-item > summary, .pz-faq summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details.faq-item > summary span[aria-hidden], .pz-faq summary span { display: inline-block; transition: transform .3s var(--ease); flex: none; }
details[open] > summary span[aria-hidden], .pz-faq details[open] summary span { transform: rotate(45deg); }
details.faq-item > summary:hover { color: var(--ozone-deep) !important; }
details[open] > .faq-a { animation: unfold .35s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Forms ---------- */
main input, main select, main textarea { font-size: 16px !important; width: 100%; box-sizing: border-box; border-color: var(--field) !important;
  transition: border-color .2s, box-shadow .2s; }
main input:focus, main select:focus, main textarea:focus { outline: none; border-color: var(--ozone) !important; box-shadow: 0 0 0 2px var(--ozone), 0 0 0 5px rgba(51, 114, 183, .2); }
main input.touched[aria-invalid="true"] { border-color: #B3261E !important; box-shadow: 0 0 0 1px #B3261E; }
main form .req { color: #B3261E; }
main form .opt { color: var(--muted); font-weight: 500; }
.field-error { margin: 2px 0 0; color: #B3261E; font-size: 14px; font-weight: 600; }
.form-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; grid-column: 1 / -1; }
.form-hint { margin: 0; color: var(--muted); font-size: 14px; grid-column: 1 / -1; }
main form > [data-if] { grid-column: 1 / -1; }
.form-status p { margin: 0; padding: 12px 14px; border-radius: 12px; background: #E4F4EC; color: #0F5A3C; font-weight: 600; }
.form-status[data-kind="error"] p { background: #FDECEA; color: #8C1D18; }
.form-status:focus { outline: none; }
main form .btn-submit { min-height: 56px !important; background: var(--spark) !important; color: var(--spark-ink) !important; font-weight: 800 !important; }
main form .btn-submit:disabled { opacity: .7; cursor: progress; }
form[id] { scroll-margin-top: 88px; }

/* ---------- Floating call button (mobile) ---------- */
.fab-call { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: none; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px; border-radius: 999px; background: var(--spark); color: var(--spark-ink); font-weight: 800;
  font-family: var(--font); text-decoration: none; box-shadow: 0 12px 30px rgba(11, 27, 51, .28);
  transform: translateY(calc(100% + 32px)); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
.fab-call.show { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
.fab-call.show svg { animation: ring 3.2s ease-in-out 1s 2; }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 88%, 92%, 96% { transform: rotate(-14deg); } 90%, 94%, 98% { transform: rotate(14deg); } }
@media (max-width: 1080px) { .fab-call { display: inline-flex; } html { scroll-padding-bottom: 96px; } }
/* Hidden while the menu is open (it would cover menu rows; the menu has its own call button). */
.nav-menu-open .fab-call.show { transform: translateY(calc(100% + 32px)); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
details.faq-item > summary { box-sizing: border-box; }
.pz-form p.form-hint, .pz-form p.form-note { color: #51607A; }
.pz-form p.field-error { color: #B3261E; }
.pz-form .form-status p { color: #0F5A3C; }
.pz-form .form-status[data-kind="error"] p { color: #8C1D18; }

/* Image boxes: height comes only from aspect-ratio (or the row), never from the image itself —
   Safari otherwise sizes stretched flex items from the image's intrinsic height. */
.card-art, .hero-visual, .contact-map, .process-art { position: relative; }
.card-art img, .hero-visual--side img, .contact-map img, .process-art img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.hero-visual:not(.hero-visual--side) img { position: absolute; top: 0; left: 0; width: 100%; height: 115%; }
.card-art { min-height: 220px; }
@media (max-width: 900px) {
  .card-art { flex: 0 0 100%; align-self: auto; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}

/* Safari/WebKit: the side picture (grid item with aspect-ratio, width:auto, only an absolutely positioned <img>) is
   stretched to its grid row, and WebKit takes the auto width from that stretched height through aspect-ratio; the row
   gets its height from this same empty box, so the picture ends up 0x0 at <=700px. A definite width lets the height follow it. */
@media (max-width: 1199px) { .hero-visual--side { width: 100%; } }

/* Safari/WebKit: a stretched flex item with aspect-ratio takes its height from a stale cached value instead of the ratio:
   the service-card art came out 1031px tall (layout done before this stylesheet arrived) or 0 after rotating from the
   desktop layout. Start-aligned, its height is width x 9/16, as in Chrome. */
@media (max-width: 900px) { .card-art { align-self: flex-start; } }

/* Safari/WebKit: the same stale-height bug hits the featured post on /blog/ (a stretched aspect-ratio item in a wrapping
   flex row): its picture came out 1024px tall, the <img> height from a layout done before this stylesheet arrived.
   Start-aligned it stays 3:2; the text beside it is shorter, so the row is the same as in Chrome. */
[style*="flex-wrap: wrap"] > .media-card { align-self: flex-start; }

/* Blog posts ported 1:1 from the old site (blog.mjs): same look as the three design articles. */
.post-sec { background: #fff; }
.post { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.75; color: var(--ink); }
.post-crumbs { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.post-crumbs a { color: inherit; }
.post-kicker { color: var(--ozone); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.post h1 { margin: 0; font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-weight: 800; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -.03em; overflow-wrap: break-word; }
.post-body { display: flex; flex-direction: column; gap: 14px; overflow-wrap: break-word; }
.post-body h2 { margin: 18px 0 0; font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.25; letter-spacing: -.02em; scroll-margin-top: 96px; }
.post-body h3, .post-body h4 { margin: 10px 0 0; font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-weight: 700; font-size: 21px; line-height: 1.3; scroll-margin-top: 96px; }
.post-body p, .post-body ul, .post-body ol { margin: 0; }
.post-body ul, .post-body ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.post-body a { color: var(--ozone-deep); text-underline-offset: 3px; }
.post-body img, .post-cover img { display: block; width: 100%; height: auto; border-radius: 20px; background: var(--sky); }
.post-figure, .post-cover { margin: 8px 0; }
.post-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.post-body blockquote { margin: 0; padding: 16px 20px; border-left: 4px solid var(--ozone); border-radius: 0 16px 16px 0; background: #F6F8FB; }
.post-body hr { width: 100%; border: 0; border-top: 1px solid var(--line); }
.post-cta { margin: 6px 0; }
.post-cta .btn { min-height: 52px; height: auto; padding: 12px 24px; text-align: center; white-space: normal; line-height: 1.3; }
.post-meta { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.post-meta:empty { display: none; }
.post-cta-box { margin-top: 12px; padding: 32px; border-radius: 24px; background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.post-cta-box > div { flex: 1 1 280px; }
.post-cta-box strong { font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-size: 22px; }
.post-cta-box p { margin: 6px 0 0; color: #C9D6EA; font-size: 16px; }
.post-back { font-weight: 700; }
@media (max-width: 600px) { .post { padding: 32px 16px 72px; } .post-cta-box { padding: 24px; } }
/* Lists of posts: /blog, /blog/categories/*, /en/blog */
.post-cards { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.post-card img { height: 170px; }
.post-card .post-card-meta { color: var(--ozone); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.post-card strong { font-size: 17px; line-height: 1.35; }
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 20px; font-size: 14px; }
.post-cats strong { margin-right: 4px; }
.post-cats a, .post-cats span[aria-current] { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; }
.post-cats a:hover { border-color: var(--ozone); }
.post-cats span[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Referencje: certificate scans in the design's 3:4 boxes. */
.cert-scan { padding: 12px !important; background: #fff !important; }
.cert-scan a, .cert-scan img { display: block; width: 100%; height: 100%; }
.cert-scan img { object-fit: contain; }
/* Language switch (PL ⇄ EN): topbar on desktop, inside the menu on phones. */
.lang-switch { margin-left: 14px; padding: 2px 8px !important; border: 1px solid rgba(255, 255, 255, .5); border-radius: 6px; color: #FFFFFF !important; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.nav-lang { display: none !important; }
@media (max-width: 1080px) { .main-nav .nav-lang { display: block !important; } }

/* ---------- Owner sections (Wix CMS "10 · Sekcje", cms/sections/*.mjs) ----------
   Blocks the owner adds to his pages or after a section of a built page. The design pages style their sections inline,
   so their look is repeated here as classes: a white text card, a tile grid, numbered step cards, a checklist on sky,
   a photo beside text, the navy call band (orange only on its phone button, .btn-call). "section.sekcja" outranks the
   pest pages' .pz-root h2/h3/p rules, which load later; inside the pest article column (.pz-main) a section sits like
   that column's own sections. Photos take their height from aspect-ratio only (Safari, see the image boxes above). */
section.sekcja { padding: 48px 0; font-size: 17px; line-height: 1.6; color: var(--ink); }
.sekcja-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 28px; }
section.sekcja h2 { margin: 0; font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); overflow-wrap: break-word; }
section.sekcja h3 { margin: 0; font-family: inherit; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--ink); overflow-wrap: break-word; }
section.sekcja h4 { margin: 0; font-family: inherit; font-size: 17px; font-weight: 700; color: var(--ink); }
section.sekcja p, section.sekcja ul, section.sekcja ol { margin: 0; }
section.sekcja a:not(.btn) { color: var(--ozone-deep); text-underline-offset: 3px; }
section.sekcja ul, section.sekcja ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.sekcja-text, .sekcja-head, .sekcja-card, .sekcja-panel, .sekcja-tile, .sekcja-steps > li { display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow-wrap: break-word; }
.sekcja-text { color: #2B3A55; }
.sekcja-card .sekcja-text, .sekcja-head { max-width: 760px; }
.sekcja-head > p { color: var(--muted); }
.sekcja-card { padding: 40px; border-radius: 28px; background: #FFFFFF; border: 1px solid var(--line); }
.sekcja-link a { font-weight: 700; }
.sekcja-link a::after { content: "→"; display: inline-block; margin-left: 6px; text-decoration: none; }
/* Kafelki */
.sekcja-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.sekcja-tile { gap: 8px; padding: 26px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); }
.sekcja-tile p, .sekcja-tile li { color: var(--muted); }
/* Kroki */
section.sekcja .sekcja-steps { list-style: none; padding: 0; counter-reset: krok; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.sekcja-steps > li { counter-increment: krok; gap: 10px; padding: 28px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); }
.sekcja-steps > li::before { content: counter(krok); width: 44px; height: 44px; border-radius: 12px; background: var(--ozone); color: #FFFFFF; font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sekcja-steps p, .sekcja-steps li li { color: var(--muted); font-size: 15px; }
/* Lista */
.sekcja-panel { padding: 40px; border-radius: 28px; background: var(--sky); }
section.sekcja .sekcja-checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px 28px; max-width: 820px; color: #2B3A55; }
.sekcja-checks > li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.sekcja-checks > li::before { content: ""; flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23245A97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
/* Zdjęcie z tekstem */
.sekcja-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sekcja-photo { position: relative; margin: 0; width: 100%; aspect-ratio: 3 / 2; border-radius: 28px; overflow: hidden; background: var(--sky); }
.sekcja-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Wezwanie */
.sekcja-band { padding: 40px; border-radius: 28px; background: var(--navy); color: #FFFFFF; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.sekcja-band .sekcja-text { flex: 1 1 420px; color: #C9D6EA; }
section.sekcja .sekcja-band h2 { color: #FFFFFF; font-size: clamp(26px, 3vw, 34px); }
section.sekcja .sekcja-band a:not(.btn) { color: #FFFFFF; }
.sekcja-ctas { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.sekcja-band-link { font-weight: 700; }
/* On the pest pages: the cluster's H2 size; inside their article column, like the column's own sections. */
.pz-root section.sekcja h2 { font-size: clamp(26px, 3vw, 36px); }
.pz-main section.sekcja { padding: 40px 0; border-bottom: 1px solid var(--line); }
.pz-main .sekcja-wrap { max-width: none; padding: 0; }
@media (max-width: 860px) { .sekcja-split { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 600px) {
  section.sekcja { padding: 32px 0; }
  .sekcja-wrap { padding: 0 16px; gap: 20px; }
  .sekcja-card, .sekcja-panel, .sekcja-band { padding: 24px; border-radius: 20px; }
  .sekcja-photo { border-radius: 20px; }
  .sekcja-tile, .sekcja-steps > li { padding: 22px; }
  .sekcja-band .btn { width: 100%; }
}
