/* ==========================================================================
   panpawilon.pl — marka PanPawilon (POWER Rubber); baza wspólna z wycinanieuszczelek.pl
   Kolory i czcionki: company/identyfikacja.md
   Wygląd B „Od golasa do góry” i jedna czcionka (Figtree): pawilony.css
   ========================================================================== */

@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-ext.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@view-transition { navigation: auto; }

:root {
  --blue: #005CAB;
  --blue-dark: #00488a;
  --red: #ED1944;
  --yellow: #FFCB08;
  --graphite: #34394D;
  --graphite-2: #262a3a;
  --sky: #E5EEF6;
  --sky-2: #f3f7fb;
  --ink: #0b0d14;
  --muted: #545867;
  --grey: #767676;
  --line: #d8e1ea;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 40, 90, .35);
  --shadow-sm: 0 6px 18px -8px rgba(0, 40, 90, .25);
  --wrap: 1200px;
  --skew: 3.2vw;
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Figtree", system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
picture { display: contents; } /* <picture> (WebP) nie zmienia układu — img zachowuje się jak bez otoczki */
img { height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
h1, h2, h3 { font-family: "Figtree", system-ui, sans-serif; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 10px; box-sizing: border-box; border: 1px solid #000; background: linear-gradient(#fff 50%, var(--red) 50%); transform: skewX(-30deg); flex: none; } /* flaga biało-czerwona w czarnej ramce — decyzja właściciela 2026-10-15 */
.eyebrow-light { color: #fff; }
.eyebrow-light::before { background: linear-gradient(#fff 50%, var(--red) 50%); } /* bez żółtego (nie nawiązujemy do barw Ukrainy) — 2026-10-15 */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-alt { background: var(--sky-2); }
.section-head { max-width: 820px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.answer { font-size: 1.1rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 200; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font: 700 1rem/1.15 "Figtree", sans-serif; padding: 16px 24px; min-height: 48px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, color .2s, border-color .2s; text-align: center; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 92, 171, .8); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .6); }
.btn-sm { padding: 11px 18px; min-height: 44px; font-size: .92rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Nagłówek ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-head.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4); }
.site-head .wrap { max-width: 1400px; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--blue); position: relative; overflow: hidden; flex: none; }
.brand-mark::before { content: ""; position: absolute; left: 8px; top: 6px; width: 11px; height: 18px; background: #fff; transform: skewX(-14deg); }
.brand-mark::after { content: ""; position: absolute; left: 21px; top: 6px; width: 5px; height: 18px; background: var(--red); transform: skewX(-14deg); }
.brand-name { font-family: "Figtree", sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -.03em; white-space: nowrap; }
.brand-name span { color: var(--red); }
.brand-name em { font-style: normal; color: var(--blue); }
.brand-light { color: #fff; }
.brand-light .brand-name em { color: #8cc2f2; }

.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 10px 8px; border-radius: 8px; white-space: nowrap; }
.nav-list > li > a:hover, .nav-list > li > a.active, .nav-list > li > a[aria-current] { color: var(--blue); }
.nav-list > li > a.active { box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
.sub-toggle { width: 24px; height: 32px; margin-left: 0; border: 0; background: none; cursor: pointer; position: relative; } /* min. 24 × 24 px bez nachodzenia na link (PageSpeed 2026-10-21) */
.sub-toggle::before { content: ""; position: absolute; left: 7px; top: 11px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.sub { position: absolute; left: 0; top: 100%; min-width: 250px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.sub a:hover, .sub a[aria-current] { background: var(--sky); color: var(--blue); }
@media (min-width: 1281px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
}
.nav-mobile-extra { display: none; }
.head-cta { display: flex; align-items: center; gap: 14px; }
.head-btn { white-space: nowrap; }
.head-phone { font-weight: 700; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.head-phone svg { width: 18px; height: 18px; color: var(--blue); }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1440px) { .head-phone span { display: none; } }
@media (max-width: 1280px) {
  .burger { display: block; }
  .nav { position: fixed; top: var(--head-h); left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; padding: 12px 20px calc(72px + env(safe-area-inset-bottom)); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .25s ease, transform .25s ease, visibility .25s; visibility: hidden; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: 15px 4px; font-size: 1.08rem; }
  .nav-list > li > a.active { box-shadow: none; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; }
  .sub-toggle::before { left: 18px; top: 17px; }
  .sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); top: 21px; }
  .sub { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 8px; display: none; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .nav-mobile-extra { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
  .nav-tel { font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; text-align: center; }
  /* Otwarte menu: blokada przewijania strony także na iOS (body „przypięte”, pozycję przywraca main.js),
     nagłówek nad dolnym paskiem (60) i banerem cookies (90), by nic nie zasłaniało listy. */
  body.nav-open { position: fixed; left: 0; right: 0; width: 100%; overflow: visible; }
  /* backdrop-filter tworzy blok odniesienia dla position:fixed — przy otwartym menu wyłączamy go, inaczej menu ma wysokość nagłówka */
  body.nav-open .site-head { z-index: 100; backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  body.nav-open .mobile-bar, body.nav-open .cookie { visibility: hidden; }
}
@media (max-width: 640px) {
  .head-btn { display: none; }
  .head-phone { width: 46px; height: 46px; justify-content: center; border-radius: 12px; background: var(--sky); }
  .brand-name { font-size: 1.08rem; }
}

/* ---------- Hero strony głównej ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--sky-2) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: min(640px, 82vh); }
.hero-text { padding: clamp(36px, 6vw, 80px) 0 clamp(70px, 8vw, 110px); position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.7rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-bottom: 20px; }
.hero h1 .accent { color: var(--blue); display: block; }
.hero-lead { font-size: clamp(1.06rem, 1.5vw, 1.24rem); color: #262a36; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: .88rem; }
.hero-facts li b { color: var(--blue); }
.hero-media { position: absolute; top: 0; bottom: 0; right: 0; width: 54%; z-index: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--sky-2) 0%, rgba(243, 247, 251, 0) 26%); z-index: 1; }
.hero-media::after { content: ""; position: absolute; left: -2px; bottom: 0; width: 34%; height: 46%; background: var(--blue); clip-path: polygon(0 100%, 0 38%, 100% 100%); opacity: .95; z-index: 2; }
.hero-badge { position: absolute; z-index: 3; right: 24px; top: 26px; background: var(--red); color: #fff; font-weight: 800; font-family: "Figtree", sans-serif; padding: 10px 16px; border-radius: 12px; transform: rotate(-3deg); box-shadow: var(--shadow-sm); font-size: .95rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-media { position: relative; width: auto; margin: 0 -20px; height: 300px; }
  .hero-media::before { background: linear-gradient(180deg, var(--sky-2) 0%, rgba(243, 247, 251, 0) 30%); }
  .hero-text { padding-bottom: 28px; }
}

/* ---------- Hero podstron ---------- */
.page-hero { background: linear-gradient(180deg, #fff 0%, var(--sky-2) 100%); padding: 22px 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-hero.no-img .page-hero-grid { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; margin: 14px 0 16px; }
.page-hero .lead { font-size: clamp(1.04rem, 1.4vw, 1.18rem); color: #262a36; margin-bottom: 24px; }
.page-hero .lead p:last-child { margin-bottom: 0; }
.page-hero-img { margin: 0; position: relative; }
.page-hero-img img, .page-hero-img .img-ph { border-radius: 22px; box-shadow: var(--shadow); width: 100%; }
.page-hero-img::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 38%; height: 36%; background: var(--blue); clip-path: polygon(100% 0, 100% 100%, 0 100%); border-radius: 0 0 22px 0; z-index: -1; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } .page-hero-img::after { right: -8px; bottom: -8px; } }

.img-ph { aspect-ratio: 3 / 2; background: repeating-linear-gradient(-45deg, var(--sky) 0 14px, var(--sky-2) 14px 28px); border: 2px dashed #b8cde0; border-radius: 18px; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-weight: 600; font-size: .9rem; }

/* ---------- Blok „cięcie na wymiar” ---------- */
.cut { background: var(--blue); color: #fff; position: relative; overflow: hidden; clip-path: polygon(0 var(--skew), 100% 0, 100% calc(100% - var(--skew)), 0 100%); padding: calc(var(--skew) + 34px) 0 calc(var(--skew) + 34px); margin: -6px 0; }
.cut::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-60deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 30px); pointer-events: none; }
.cut-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 34px; align-items: center; position: relative; z-index: 1; }
.cut h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 10px; }
.cut p { color: rgba(255, 255, 255, .9); margin-bottom: 14px; }
.cut-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cut-list a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
.cut-list a:hover { background: #fff; color: var(--blue); }
.cut-facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.cut-facts li { padding-left: 26px; position: relative; color: rgba(255, 255, 255, .92); }
.cut-facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }
.cut-facts b { color: #fff; }
@media (max-width: 860px) { .cut-in { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* ---------- Treść ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .35em; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.pic { margin: 0; }
.pic img, .pic .img-ph { border-radius: 18px; box-shadow: var(--shadow-sm); width: 100%; }
.pic figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* Rysunki SVG {{rys:nazwa|alt|podpis}} */
.rys { margin: 24px 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.rys img { display: block; width: 100%; height: auto; }
.rys figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; text-align: center; }
.section-alt .rys { background: #fff; }
.card-img .rys { margin: 0; border: 0; border-radius: 0; padding: 14px; background: var(--sky); }
.card-img .rys img { aspect-ratio: auto; object-fit: contain; max-height: 180px; }
.prose .rys:first-child { margin-top: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b9cfe4; }
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 10px; }
.card .more { margin-top: auto; font-weight: 700; color: var(--blue); font-size: .93rem; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; }
.card-img { margin: -22px -22px 16px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-img img, .card-img .img-ph { border-radius: 0; border: 0; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.section-alt .card { background: #fff; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; position: relative; }
.steps li::before { content: counter(s); font-family: "Figtree", sans-serif; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--blue); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.facts li { background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 20px; }
.facts b { display: block; font-family: "Figtree", sans-serif; font-size: 1.7rem; line-height: 1.1; color: #fff; margin-bottom: 4px; }
.facts span { color: rgba(255, 255, 255, .8); font-size: .93rem; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 15px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.crosses li::before { border: 0; width: 14px; height: 3px; background: var(--red); transform: rotate(45deg); top: .75em; box-shadow: none; }
.crosses li::after { content: ""; position: absolute; left: 2px; top: .75em; width: 14px; height: 3px; background: var(--red); transform: rotate(-45deg); }

.note { background: #E5EEF6; border-left: 4px solid #005CAB; border-radius: 10px; padding: 14px 18px; margin: 1em 0; font-size: .96rem; }
.note-blue { background: var(--sky); border-left-color: var(--blue); }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 1em 0 1.4em; background: #fff; -webkit-overflow-scrolling: touch; }
.tbl-wrap.tall { max-height: 440px; overflow-y: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--graphite); color: #fff; font-weight: 700; position: sticky; top: 0; white-space: nowrap; }
tbody tr:nth-child(even) { background: var(--sky-2); }
tbody tr:last-child td { border-bottom: 0; }
caption { caption-side: bottom; text-align: left; font-size: .84rem; color: var(--muted); padding: 10px 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1em; padding: 0; }
.chips li, .chips a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Realizacje ---------- */
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.ref { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--blue); }
.ref .where { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.ref h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ref p { font-size: .94rem; color: var(--muted); margin-bottom: 10px; }
.ref dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: .88rem; }
.ref dt { color: var(--grey); font-weight: 600; }
.ref dd { margin: 0; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 17px 54px 17px 20px; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005CAB' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/13px no-repeat; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > div { padding: 0 20px 16px; color: #2b2f3c; }
.faq-item > div p:last-child { margin-bottom: 0; }

/* ---------- Linki miast ---------- */
.city-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.city-links a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.city-links a:hover { border-color: var(--blue); color: var(--blue); }
.city-links small { display: block; color: var(--muted); font-weight: 500; font-size: .82rem; }

.nap { background: var(--graphite); color: #fff; border-radius: var(--radius); padding: 24px; }
.nap a { color: #fff; }
.nap h3 { color: #fff; }
.map-link { display: inline-flex; margin-top: 10px; }

/* ---------- Formularze ---------- */
.form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: .93rem; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1.5px solid #c4d1de; border-radius: 12px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(0, 92, 171, .14); }
.field .err { color: #b00020; font-size: .85rem; font-weight: 600; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #b00020; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg.ok { color: #0a7a3c; }
.form-msg.bad { color: #b00020; }
.form .btn { justify-self: start; }

.wizard-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0 0 6px; padding: 0; counter-reset: w; }
.wizard-progress li { counter-increment: w; font-size: .8rem; font-weight: 700; color: var(--muted); border-top: 4px solid var(--line); padding-top: 8px; }
.wizard-progress li::before { content: counter(w) ". "; }
.wizard-progress li.done, .wizard-progress li.cur { border-color: var(--blue); color: var(--ink); }
.js .step[hidden] { display: none; }
.step { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.step > legend { font-family: "Figtree", sans-serif; font-weight: 800; font-size: 1.3rem; margin-bottom: 4px; padding: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tile span { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 14px; font-weight: 700; text-align: center; transition: border-color .2s, background .2s; min-height: 64px; display: grid; place-items: center; }
.tile small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.tile input:checked + span { border-color: var(--blue); background: var(--sky); color: var(--blue); }
.tile input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.wizard-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.drop { border: 2px dashed #b8cde0; border-radius: 14px; padding: 18px; text-align: center; background: var(--sky-2); }
.drop input { font-size: .9rem; max-width: 100%; }
.drop p { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.js .no-js-only { display: none; }
html:not(.js) [data-prev], html:not(.js) [data-next], html:not(.js) .wizard-progress { display: none; }
.wizard-nav [hidden] { display: none; }

/* ---------- Narzędzia ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-out { background: var(--graphite); color: #fff; border-radius: 22px; padding: clamp(20px, 3vw, 30px); position: sticky; top: calc(var(--head-h) + 16px); }
.tool-out h3 { color: #fff; }
.tool-out .big { font-family: "Figtree", sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1.05; margin: 4px 0 10px; }
.tool-out p, .tool-out li { color: rgba(255, 255, 255, .88); }
.tool-out a { color: #9fd0ff; }
.tool-out .note { color: var(--ink); }
@media (max-width: 860px) { .tool { grid-template-columns: minmax(0, 1fr); } .tool-out { position: static; } }
.mat-result { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.mat-result li { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px; }
.mat-result li b { color: #fff; }
.mat-result .no { opacity: .55; }

/* ---------- CTA końcowe ---------- */
.cta-final { background: var(--sky-2); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.cta-contact { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.cta-contact li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.cta-contact span { color: var(--muted); font-weight: 600; font-size: .9rem; } /* --grey na jasnym tle sekcji miał za mały kontrast (PageSpeed 2026-10-21) */
.cta-contact a { font-weight: 700; color: var(--ink); }
@media (max-width: 860px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Blog ---------- */
.post-meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.toc { background: var(--sky-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 0 0 2em; }
.toc p { font-weight: 800; margin-bottom: 6px; }
.toc ol { margin: 0; }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--sky-2); border-radius: var(--radius); padding: 20px; margin-top: 2em; }
.author-box .av { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: "Figtree", sans-serif; font-weight: 800; font-size: 1.3rem; flex: none; }

/* ---------- Stopka ---------- */
.site-foot { background: var(--graphite-2); color: rgba(255, 255, 255, .78); padding: 64px 0 96px; font-size: .94rem; }
.site-foot a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin: 14px 0; }
.foot-brand address { font-style: normal; line-height: 1.75; }
.foot-brand b { color: #fff; }
/* Nazwa serwisu w stopce mieści się w kolumnie (była szersza niż kolumna i nachodziła na „Usługi”) — 2026-10-15 */
.foot-brand { container-type: inline-size; }
.foot-brand .brand-name { font-size: min(1.1rem, calc((100cqi - 44px) / 18.5)); }
.foot-h { color: #fff; font-weight: 800; font-family: "Figtree", sans-serif; margin-bottom: 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; justify-content: space-between; font-size: .84rem; }
.foot-bottom p { margin: 0; }
.foot-logo { width: 170px; height: auto; background: #fff; padding: 8px 10px; border-radius: 8px; box-sizing: content-box; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.mobile-bar { display: none; }
@media (max-width: 640px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .3); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 800; text-decoration: none; color: var(--ink); border: 2px solid var(--line); }
  .mobile-bar svg { width: 18px; height: 18px; color: var(--blue); }
  .mobile-bar .mb-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
  .cookie { bottom: 76px; }
}

/* ---------- Baner cookies ---------- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 90; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45); padding: 18px 20px; font-size: .9rem; }
.cookie p { margin-bottom: 10px; }
.cookie-prefs { display: grid; gap: 8px; margin-bottom: 12px; }
.cookie-prefs[hidden], .cookie[hidden] { display: none; }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 480px) { .cookie { left: 8px; right: 8px; max-width: none; } }

/* ---------- Ruch ---------- */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* odbojnice-gumowe.pl: narzędzia */
.form [hidden], .tool [hidden] { display: none !important; }
.wizard-progress.w3 { grid-template-columns: repeat(3, 1fr); }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-label { margin: 0; font-size: .93rem; }
.field-label small { font-weight: 500; color: var(--muted); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 6px; }
.opts { gap: 8px; }
.opts .check { color: var(--ink); font-size: .95rem; }
.kat-firma { display: grid; gap: 14px; }
.form .check + .check { margin-top: -4px; }
.prose .facts { margin: 0 0 1.2em; }
.tool-out .mat-result a { color: #fff; text-decoration: underline; }
.tool-out .calc-formula { font-size: .9rem; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 10px 12px; font-variant-numeric: tabular-nums; }
.dl-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.dl-page form { margin: 1.2em 0; }
@media (max-width: 420px) { .tiles-2 { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   panpawilon.pl — kierunek B „Od golasa do góry” (decyzja właściciela 2026-10-24)
   Jedna czcionka: Figtree (nagłówki 800, lekko ściśnięte); Syne tylko w logo (krzywe w SVG).
   Ciemny grafit w nagłówku strony i nagłówkach podstron, czerwień #D4113B pod białym tekstem.
   ========================================================================== */
:root {
  --dark: #2a2f3e;
  --dark-2: #343a4c;
  --red-txt: #D4113B;
  --red-hover: #B30E32;
  --on-dark: #dfe5ee;
  --on-dark-muted: #b4bccb;
}
h1, h2, h3 { font-family: "Figtree", system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; }
h3 { letter-spacing: -.01em; }

/* ---------- Przyciski ---------- */
.btn-red { background: var(--red-txt); color: #fff; box-shadow: 0 10px 24px -12px rgba(212, 17, 59, .8); }
.btn-red:hover { background: var(--red-hover); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; }

/* ---------- Nagłówek strony (ciemny) ---------- */
.site-head { background: rgba(42, 47, 62, .97); }
.site-head.scrolled { border-color: #3b4153; }
.brand-logo { height: 34px; width: auto; }
.nav-list > li > a { color: var(--on-dark); }
.nav-list > li > a:hover, .nav-list > li > a.active, .nav-list > li > a[aria-current] { color: #fff; }
.nav-list > li > a.active { box-shadow: inset 0 -3px 0 var(--red); }
.sub-toggle::before { border-color: var(--on-dark-muted); }
.burger { background: transparent; border-color: #4a5166; }
.burger span { background: #fff; }
@media (max-width: 1280px) {
  .nav { background: var(--dark); }
  .nav-list > li { border-bottom-color: #3b4153; }
  .sub a { color: var(--on-dark); }
  .sub a:hover, .sub a[aria-current] { background: var(--dark-2); color: #fff; }
  .nav-tel { color: #fff; }
}

/* ---------- Nagłówek podstrony (ciemny, niebieski klin) ---------- */
.page-hero { background: var(--dark); color: #fff; padding-bottom: clamp(44px, 6vw, 76px); }
.page-hero::before { content: ""; position: absolute; top: 0; bottom: -20%; left: 52%; right: -20%; background: var(--blue); transform: skewX(-14deg); opacity: .32; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: var(--on-dark); }
.page-hero .lead strong { color: #fff; }
.page-hero .lead a { color: #9fcbf3; }
.page-hero .crumbs ol, .page-hero .crumbs a { color: var(--on-dark-muted); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs li + li::before { color: #5b6377; }
.page-hero-img::after { display: none; }
.page-hero-rys img { background: #E5EEF6; }

/* ---------- Blok „Od golasa do góry” ---------- */
.golas { background: #fff; padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.golas-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.golas h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.golas p { color: var(--muted); }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: w; }
.layers li { counter-increment: w; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: center; background: var(--sky-2); border-radius: 14px; padding: 12px 16px; }
.layers li::before { content: counter(w); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; }
.layers li.add { background: #fde8ec; }
.layers li.add::before { background: var(--red-txt); }
.layers b { font-weight: 800; }
.layers span { color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .golas-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sekcja kontaktu na końcu (ciemna) ---------- */
.cta-final { background: var(--dark); color: var(--on-dark); }
.cta-final h2 { color: #fff; }
.cta-final .cta-text a { color: #9fcbf3; }
.cta-final .cta-contact span { color: var(--on-dark-muted); }
.cta-final .cta-contact a { color: #fff; }
.cta-final .form { background: #fff; color: var(--ink); }

/* ---------- Pasek telefonu ---------- */
.mobile-bar .mb-primary { background: var(--red-txt); border-color: var(--red-txt); }

/* ---------- Rysunek w karcie ---------- */
.card-img .rys { padding: 0; }
.card-img .rys img { max-height: none; }

/* ---------- Strona główna ---------- */
.home-hero { background: var(--dark); color: #fff; position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.home-hero::before { content: ""; position: absolute; top: -10%; bottom: -30%; left: 50%; right: -25%; background: var(--blue); transform: skewX(-14deg); opacity: .35; pointer-events: none; }
.home-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.home-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; margin: 12px 0 16px; }
.home-hero .hero-lead { color: var(--on-dark); max-width: 560px; }
.home-hero figure { margin: 0; }
.home-hero figure img { border-radius: 18px; width: 100%; }
.home-hero figcaption { font-size: .8rem; color: var(--on-dark-muted); margin-top: 6px; }
.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; background: #fff; border-radius: 18px; padding: 8px; max-width: 580px; margin-top: 8px; }
.picker label { display: grid; gap: 2px; padding: 4px 12px; border-right: 1px solid var(--line); font: 700 .72rem/1.2 "Figtree", sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.picker select { border: 0; background: transparent; font: 700 1rem "Figtree", sans-serif; color: var(--ink); padding: 4px 0; min-height: 32px; width: 100%; cursor: pointer; }
.picker .btn { min-height: 52px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.hero-chips li { border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: .86rem; color: var(--on-dark); }
@media (max-width: 900px) { .home-hero .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .picker { grid-template-columns: minmax(0, 1fr); } .picker label { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; } }

.dims-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 170px); gap: 12px; overflow-x: auto; padding: 4px 2px 14px; list-style: none; margin: 0; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.dims-strip li { scroll-snap-align: start; }
.dims-strip a { display: grid; gap: 4px; justify-items: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-decoration: none; color: var(--ink); height: 100%; }
.dims-strip a:hover { border-color: var(--blue); }
.dims-strip img { width: 100%; height: auto; }
.dims-strip b { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.dims-strip span { color: var(--muted); font-size: .86rem; font-variant-numeric: tabular-nums; }
.dims-strip .dims-wide a { background: var(--sky); border-color: var(--sky); align-content: center; }

.private { background: var(--sky); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.duo-box { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: grid; gap: 10px; align-content: start; }
.duo-box h2 { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0; }
.duo-box p { margin: 0; }
.duo-box .btn { justify-self: start; }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cena w nagłówku strony wymiaru ---------- */
.hero-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 10px 14px; margin: -6px 0 22px; color: var(--on-dark); font-size: .98rem; }
.hero-price b { color: #fff; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hero-price span { color: var(--on-dark-muted); }
.hero-price a { color: #9fcbf3; font-weight: 700; }
