@import url("/assets/fonts.css");
/* Leadpol – wyroby ołowiane */
:root {
  --czerwony: #b0191e;          /* z logo, kontrast 6.6:1 na białym */
  --czerwony-ciemny: #8d1216;
  --grafit: #1d2126;
  --grafit-2: #2b3138;
  --stal: #e9ecef;
  --stal-2: #f5f6f7;
  --tekst: #22272d;
  --tekst-2: #5b646e;
  --ramka: #dfe3e7;
  --r: 12px;
  --szer: 1200px;
  --cien: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--tekst); font: 400 1rem/1.65 "Inter", "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--czerwony); text-underline-offset: .18em; }
a:hover { color: var(--czerwony-ciemny); }
:focus-visible { outline: 3px solid #f0a202; outline-offset: 2px; }
h1, h2, h3 { color: var(--grafit); line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin: .2em 0 .4em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
address { font-style: normal; }
.w { max-width: var(--szer); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -5rem; z-index: 100; background: var(--grafit); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: .5rem; color: #fff; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; background: var(--czerwony); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--czerwony); transition: background .15s, transform .15s; }
.btn:hover { background: var(--czerwony-ciemny); border-color: var(--czerwony-ciemny); color: #fff; transform: translateY(-1px); }
.btn-obrys { background: transparent; color: var(--czerwony); }
.btn-obrys:hover { background: var(--czerwony); color: #fff; }
.btn-jasny { background: #fff; color: var(--grafit); border-color: #fff; }
.btn-jasny:hover { background: var(--stal); border-color: var(--stal); color: var(--grafit); }
.btn-maly { padding: .5rem 1rem; font-size: .92rem; }

/* Pasek górny i nagłówek */
.topbar { background: var(--grafit); color: #c9ced4; font-size: .85rem; }
.topbar .w { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.3rem; }
.topbar-info { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.jezyki { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.jezyki a { display: block; padding: .15rem .55rem; border-radius: 6px; font-weight: 600; color: #c9ced4; }
.jezyki a[aria-current] { background: var(--czerwony); color: #fff; }
.naglowek { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--ramka); }
.naglowek-w { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.logo { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; }
.logo img { width: 150px; height: auto; }
.logo span { font-size: .78rem; font-weight: 600; color: var(--tekst-2); letter-spacing: .02em; margin-top: .1rem; }
.menu-glowne > ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.menu-glowne a { display: block; padding: .6rem .8rem; border-radius: 8px; color: var(--grafit); font-weight: 600; text-decoration: none; }
.menu-glowne a:hover, .menu-glowne a[aria-current] { color: var(--czerwony); background: var(--stal-2); }
.z-podmenu { position: relative; }
.z-podmenu > a::after { content: ""; display: inline-block; margin-left: .4rem; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.podmenu { position: absolute; top: 100%; left: 0; min-width: 300px; list-style: none; margin: 0; padding: .5rem; background: #fff; border: 1px solid var(--ramka); border-radius: var(--r); box-shadow: var(--cien); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.z-podmenu:hover .podmenu, .z-podmenu:focus-within .podmenu { opacity: 1; visibility: visible; transform: none; }
.podmenu a { font-weight: 500; }
.menu-mobilne { display: none; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #ffffff 0%, transparent 60%), linear-gradient(135deg, var(--stal-2), var(--stal)); border-bottom: 1px solid var(--ramka); }
.hero-w { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.nadtytul { display: inline-block; margin: 0; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--czerwony); }
.lead { font-size: 1.15rem; color: var(--tekst-2); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-img img { border-radius: 20px; box-shadow: var(--cien); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Atuty */
.atuty { background: var(--grafit); color: #dfe3e7; }
.atuty ul { list-style: none; margin: 0; padding: 2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.atuty li { padding-left: 1rem; border-left: 3px solid var(--czerwony); }
.atuty h3 { color: #fff; margin: 0 0 .3rem; font-size: 1rem; }
.atuty p { margin: 0; font-size: .92rem; color: #b8bfc7; }
.atuty-pion { background: var(--grafit); border-radius: var(--r); padding: .5rem 1.5rem; align-self: start; }
.atuty-pion ul { grid-template-columns: 1fr; padding: 1.25rem 0; }

/* Sekcje */
.sekcja { padding: 3.5rem 0; }
.sekcja-szara { background: var(--stal-2); border-top: 1px solid var(--ramka); border-bottom: 1px solid var(--ramka); }
.sekcja-tytul { margin: 0 0 .3rem; }
.sekcja-opis { color: var(--tekst-2); margin: 0 0 1.75rem; }

/* Kafle kategorii */
.kafle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.kafel a { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; background: var(--grafit); box-shadow: var(--cien); text-decoration: none; }
.kafel img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; opacity: .9; }
.kafel a:hover img { transform: scale(1.05); }
.kafel-txt { position: absolute; inset: auto 0 0 0; padding: 1.2rem; background: linear-gradient(transparent, rgba(15,18,22,.88) 45%); color: #fff; display: flex; flex-direction: column; }
.kafel-nazwa { font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.kafel-ile { font-size: .88rem; color: #e1e5e9; margin-top: .25rem; }

/* Karty produktów */
.karty { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.karta a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--ramka); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--tekst); transition: box-shadow .15s, transform .15s; }
.karta a:hover { box-shadow: var(--cien); transform: translateY(-3px); color: var(--tekst); }
.karta-img { position: relative; aspect-ratio: 4/3; background: #fff; border-bottom: 1px solid var(--ramka); overflow: hidden; }
.karta-img picture, .kafel picture { height: 100%; }
.karta-img img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.karta h2, .karta h3 { font-size: 1.02rem; margin: .9rem 1rem .2rem; color: var(--grafit); }
.karta a:hover h2, .karta a:hover h3 { color: var(--czerwony); }
.karta p { margin: 0 1rem 1rem; font-size: .88rem; color: var(--tekst-2); }
.rabat { position: absolute; top: .75rem; left: .75rem; z-index: 2; background: var(--czerwony); color: #fff; font-weight: 800; font-size: .85rem; padding: .25rem .6rem; border-radius: 999px; }
.rabat-duzy { font-size: 1rem; padding: .4rem .9rem; }

/* Nagłówek podstron */
.naglowek-strony { background: linear-gradient(135deg, var(--stal-2), var(--stal)); border-bottom: 1px solid var(--ramka); padding: 1.5rem 0 2rem; }
.naglowek-produkt { padding-bottom: .5rem; }
.okruszki ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 .5rem; padding: 0; font-size: .88rem; color: var(--tekst-2); }
.okruszki li + li::before { content: "/"; margin: 0 .5rem; color: #a6adb4; }
.okruszki a { color: var(--tekst-2); text-decoration: none; }
.okruszki a:hover { color: var(--czerwony); text-decoration: underline; }
.inne-kategorie { margin-top: 3rem; }
.inne-kategorie h2 { font-size: 1.1rem; }
.inne-kategorie ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.inne-kategorie a { display: block; padding: .45rem .9rem; border: 1px solid var(--ramka); border-radius: 999px; text-decoration: none; color: var(--grafit); font-size: .92rem; }
.inne-kategorie a:hover { border-color: var(--czerwony); color: var(--czerwony); }

/* Produkt */
.produkt { padding: 1.5rem 0 3rem; background: linear-gradient(var(--stal) 0 3rem, #fff 3rem); }
.produkt-w { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.produkt-img { position: relative; }
.produkt-img img { width: 100%; border-radius: 16px; box-shadow: var(--cien); background: var(--stal); }
.produkt-info h1 { margin-top: 0; }
.produkt-pod { font-size: 1.12rem; color: var(--grafit-2); font-weight: 500; border-left: 4px solid var(--czerwony); padding-left: 1rem; }
.produkt-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.box-dane { background: var(--stal-2); border: 1px solid var(--ramka); border-radius: var(--r); padding: 1.25rem 1.5rem; }
.box-dane h2 { font-size: 1.05rem; margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .05em; color: var(--czerwony); }
.box-dane h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
.box-dane p { margin: .4rem 0; }
.produkt-opis { padding-top: 0; }
.tresc { max-width: 100%; }
.tresc > p, .tresc > ul, .tresc > ol { max-width: 75ch; }
.tresc img { border-radius: 10px; margin: 1rem 0; }
.tabela { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--ramka); border-radius: var(--r); }
.tabela table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.tabela th, .tabela td { padding: .6rem .8rem; border-bottom: 1px solid var(--ramka); text-align: left; vertical-align: top; }
.tabela th { background: var(--grafit); color: #fff; font-weight: 600; white-space: nowrap; }
.tabela tbody tr:nth-child(even) { background: var(--stal-2); }
.tabela tbody tr:hover { background: #fdf1f1; }

/* O nas, kalkulator */
.dwie-kol { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.kalkulator { border: 1px solid var(--ramka); border-radius: 16px; overflow: hidden; box-shadow: var(--cien); }
.kalk-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--stal); }
.kalk-tabs button { font: inherit; font-weight: 700; padding: 1rem; border: 0; background: transparent; color: var(--tekst-2); cursor: pointer; border-bottom: 3px solid transparent; }
.kalk-tabs button[aria-selected="true"] { background: #fff; color: var(--czerwony); border-bottom-color: var(--czerwony); }
.kalk-panel { padding: 1.5rem; }
.pola { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pole label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.pole-w { display: flex; align-items: center; border: 2px solid var(--ramka); border-radius: 10px; overflow: hidden; }
.pole-w:focus-within { border-color: var(--czerwony); }
.pole { min-width: 0; }
.pole input { flex: 1; width: 100%; min-width: 0; font: inherit; font-size: 1.05rem; padding: .65rem .8rem; border: 0; outline: 0; }
.pole span { padding: 0 .8rem; color: var(--tekst-2); font-size: .9rem; }
.wyniki { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.wynik { background: var(--grafit); color: #fff; border-radius: 12px; padding: 1rem 1.2rem; font-size: 1.05rem; }
.wynik span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #aeb5bd; }
.wynik output { font-size: 1.9rem; font-weight: 800; }
.kalk-info { margin: 0; padding: 0 1.5rem 1.25rem; font-size: .85rem; color: var(--tekst-2); }
.kalk-blad { color: var(--czerwony); font-weight: 600; }

/* Kontakt */
.kontakt-glowny { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.kontakt-duzy { display: block; padding: 1.4rem 1.5rem; border-radius: var(--r); background: var(--grafit); color: #fff; text-decoration: none; }
a.kontakt-duzy:hover { background: var(--czerwony); color: #fff; }
.kontakt-duzy span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #c3c9cf; }
.kontakt-duzy strong { font-size: 1.3rem; word-break: break-word; }
.kontakt-siatka { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.karta-kontakt { border: 1px solid var(--ramka); border-radius: var(--r); padding: 1.4rem 1.5rem; }
.karta-kontakt h2 { font-size: 1.05rem; margin-top: 0; color: var(--czerwony); }

/* CTA i stopka */
.cta { background: linear-gradient(120deg, var(--czerwony-ciemny), var(--czerwony)); color: #fff; }
.cta-w { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.cta h2 { color: #fff; margin: 0 0 .3rem; }
.cta p { margin: 0; color: #f4d9da; }
.cta-przyciski { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta .btn-obrys { color: #fff; border-color: #fff; }
.cta .btn-obrys:hover { background: #fff; color: var(--czerwony); }
.stopka { background: var(--grafit); color: #b8bfc7; font-size: .93rem; }
.stopka-w { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
.stopka-logo { filter: brightness(0) invert(1); opacity: .9; margin-bottom: 1rem; width: 140px; }
.stopka h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; }
.stopka ul { list-style: none; margin: 0; padding: 0; }
.stopka li { margin: .3rem 0; }
.stopka a { color: #e6e9ec; text-decoration: none; }
.stopka a:hover { color: #fff; text-decoration: underline; }
.stopka strong { color: #fff; }
.stopka-dol { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid #353c44; padding-top: 1.1rem; padding-bottom: 1.4rem; font-size: .83rem; }

/* Responsywność */
@media (max-width: 1080px) {
  .menu-glowne, .naglowek .btn-maly { display: none; }
  .menu-mobilne { display: block; position: relative; }
  .menu-mobilne summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; border-radius: 10px; border: 1px solid var(--ramka); }
  .menu-mobilne summary::-webkit-details-marker { display: none; }
  .menu-mobilne summary span { display: block; height: 2px; background: var(--grafit); border-radius: 2px; }
  .menu-mobilne nav { position: absolute; right: 0; top: calc(100% + .5rem); width: min(88vw, 360px); max-height: 75vh; overflow: auto; background: #fff; border: 1px solid var(--ramka); border-radius: var(--r); box-shadow: var(--cien); padding: .5rem; }
  .menu-mobilne ul { list-style: none; margin: 0; padding: 0; }
  .menu-mobilne a { display: block; padding: .65rem .8rem; border-radius: 8px; color: var(--grafit); font-weight: 600; text-decoration: none; }
  .menu-mobilne .podmenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 .75rem; min-width: 0; }
  .menu-mobilne .podmenu a { font-weight: 500; font-size: .95rem; }
  .atuty ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-w, .produkt-w, .dwie-kol { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-w { padding-top: 2rem; padding-bottom: 2rem; }
  .kontakt-glowny, .kontakt-siatka, .stopka-w { grid-template-columns: 1fr; }
  .topbar-info a + a { display: none; }
}
@media (max-width: 520px) {
  .atuty ul, .pola, .wyniki { grid-template-columns: 1fr; }
  .karty { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .karta h2, .karta h3 { font-size: .92rem; margin: .7rem .7rem .2rem; }
  .karta p { display: none; }
  .sekcja { padding: 2.5rem 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .naglowek, .cta, .stopka, .produkt-cta { display: none !important; } }
