/* REMA TIP TOP - formularz targowy. Tokeny z DESIGN.md katalogu 2026:
   biała kanwa, jeden krój Pill Gothic (200 / 300 / 600), czerń i jedna czerwień,
   linie zawsze kropkowane 1 px, zero cieni, zero zaokrągleń. */
@font-face { font-family: "Pill Gothic"; src: url("../fonts/pillgothic-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Pill Gothic"; src: url("../fonts/pillgothic-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Pill Gothic"; src: url("../fonts/pillgothic-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #231f20;
  --muted: #6b6d72;
  --accent: #ed1c24;
  --accent-ciemny: #c4141b;
  --rule: #898b8e;
  --tlo: #ffffff;
  --ph: #f6f6f6;
  --bok: 1.25rem;
  --kolumna: 34rem;
  --pole-wys: 3.25rem;
  --linia: 1px dotted var(--rule);
  --linia-akcent: 1px dotted var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tlo);
  color: var(--ink);
  font-family: "Pill Gothic", "Barlow", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2 { margin: 0; }
b { font-weight: 600; }
i { font-style: normal; font-weight: 600; color: var(--accent); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline dotted var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px dotted var(--accent); outline-offset: 2px; }

.ukryte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pulapka { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline dotted var(--accent); text-underline-offset: 0.2em; cursor: pointer; }
.link:hover { color: var(--accent); }
.nr { color: var(--accent); font-weight: 600; }
.drobne { font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.opcja { font-size: 0.85rem; color: var(--muted); }

/* logo: samo albo w oryginalnym układzie z claimem (jeden plik wektorowy, bez składania claimu z tekstu) */
.logo { display: block; flex: none; width: 4.5rem; height: auto; }

/* żywa pagina z czerwoną zakładką */
.pagina { position: relative; padding: 1.5rem 0 0.9rem; border-bottom: var(--linia-akcent); font-weight: 200; font-size: 1.25rem; line-height: 1.25; }
.pagina .l1 { text-transform: uppercase; }
.pagina .l2 { min-height: 1.25em; }
.zakladka {
  position: absolute; top: 100%; right: calc(-1 * var(--bok));
  display: flex; align-items: center; justify-content: flex-end;
  width: 3.4rem; height: 2.1rem; padding-right: 0.9rem;
  background: var(--accent); color: #fff; font-weight: 200; font-size: 1.25rem; line-height: 1;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.tytul { margin: 2.75rem 0 0.9rem; font-weight: 200; font-size: 1.75rem; line-height: 1.2; color: var(--accent); text-wrap: balance; }
.opis { margin: 0 0 1.5rem; }
.sekcja { margin: 2rem 0 0.6rem; font-weight: 300; font-size: 1rem; line-height: 1.3; color: var(--accent); }

/* tabela jak w katalogu: czerwone linie nad i pod, szare między wierszami i kolumnami */
.tabela { width: 100%; border-collapse: collapse; border-top: var(--linia-akcent); border-bottom: var(--linia-akcent); font-size: 0.94rem; line-height: 1.35; }
.tabela th { font-weight: 300; text-align: left; }
.tabela th, .tabela td { padding: 0.6rem 0.5rem; border-bottom: var(--linia); vertical-align: top; }
.tabela th + th, .tabela td + td, .tabela th + td { border-left: var(--linia); }
.tabela tbody tr:last-child > * { border-bottom: 0; }
.tabela .nazwa { font-weight: 600; }

/* formularz złożony jak tabela katalogu: etykieta | wartość */
.pola { border-top: var(--linia-akcent); border-bottom: var(--linia-akcent); }
.pole { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); border-bottom: var(--linia); }
.pole:last-child { border-bottom: 0; }
.pole > label, .pole > .etykieta { display: flex; align-items: center; min-height: var(--pole-wys); padding: 0 0.5rem; border-right: var(--linia); font-size: 0.94rem; }
.pole input, .pole select, .pole .wartosc {
  grid-column: 2; width: 100%; min-width: 0; min-height: var(--pole-wys); margin: 0; padding: 0 0.6rem;
  border: 0; border-radius: 0; background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 1.0625rem; appearance: none; -webkit-appearance: none;
}
.pole .wartosc { display: flex; align-items: center; }
.pole input::placeholder { font-weight: 200; color: var(--muted); opacity: 1; }
.pole input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 100px #fff inset; }
.pole:focus-within { background: var(--ph); }
.pole:focus-within > label { color: var(--accent); }
.pole input:focus-visible, .pole select:focus-visible { outline: 2px dotted var(--accent); outline-offset: -2px; }
.pole .blad, .pole .sugestia { grid-column: 1 / -1; padding: 0.45rem 0.5rem; border-top: var(--linia); }
.pole--blad > label { color: var(--accent); }
.blad { color: var(--accent); font-weight: 600; font-size: 0.9rem; line-height: 1.35; }
.sugestia { font-size: 0.9rem; }
.sugestia .link { font-weight: 600; }

/* pole wyboru */
.wybor { position: relative; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.75rem; align-items: start; min-height: 2.75rem; padding: 0.8rem 0; cursor: pointer; }
.wybor input { position: absolute; top: 0.8rem; left: 0; width: 1.6rem; height: 1.6rem; margin: 0; opacity: 0; cursor: pointer; }
.kratka { position: relative; display: block; width: 1.6rem; height: 1.6rem; border: 1.5px solid var(--ink); background: #fff; }
.wybor input:checked + .kratka { border-color: var(--accent); background: var(--accent); }
.wybor input:checked + .kratka::after { content: ""; position: absolute; top: 0.16rem; left: 0.5rem; width: 0.42rem; height: 0.85rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.wybor input:focus-visible + .kratka { outline: 2px dotted var(--accent); outline-offset: 3px; }
.wybor-tekst { padding-top: 0.08rem; font-size: 0.94rem; line-height: 1.45; }

/* ramka-notatka (czerwona kropkowana, jak „DOBÓR PRASY NA ZAPYTANIE”) */
.ramka { margin: 1.5rem 0; padding: 0.4rem 1rem 0.9rem; border: var(--linia-akcent); }
.ramka--blad { border-width: 2px; }
.ramka--info { padding: 1rem; }
.ramka .blad { margin: 0 0 0.6rem; }
.komunikat { margin: 0 0 1rem; padding: 0.7rem 0.9rem; border: var(--linia-akcent); color: var(--accent); font-weight: 600; font-size: 0.94rem; line-height: 1.4; }

/* przyciski */
.przycisk {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 3.5rem; padding: 0.6rem 1.25rem;
  border: 2px solid var(--accent); border-radius: 0; background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; text-decoration: none;
  cursor: pointer; appearance: none; -webkit-appearance: none;
}
.przycisk:hover { border-color: var(--accent-ciemny); background: var(--accent-ciemny); color: #fff; }
.przycisk:disabled { opacity: 0.6; cursor: progress; }
.przycisk--obrys { border-color: var(--ink); background: #fff; color: var(--ink); }
.przycisk--obrys:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.przycisk--maly { width: auto; min-height: 2.75rem; padding: 0.3rem 1rem; font-size: 0.85rem; }

.wstazka { margin: 0; padding: 0.35rem var(--bok); background: var(--ink); color: #fff; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; }
