/* Projekt: Cech Rzemieślników i Przedsiębiorców w Radomiu - strona WWW
   Autor: KamikStudio - Patryk Dariusz Kowalski (ps. Kamik)
   Web: https://kamikstudio.pl, Email: biuro@kamikstudio.pl
   Data: 2026-09-28, Wersja: 1.1
   Opis: Tokeny, typografia, siatka, przyciski, dostępność.
   Kolory z logo Cechu (plik SVG od projektanta): zieleń #366337 i czerń konturów. */

:root {
  --zielen: #366337;
  --zielen-ciemna: #264a28;
  --zielen-jasna: #edf3ec;
  --atrament: #1a1f1c;
  --tekst-cichy: #4d5550;
  --linia: #d9e0db;
  --tlo: #ffffff;
  --tlo-szare: #f3f5f4;
  --obrys-pola: #6b736e;
  --blad: #b3261e;
  --blad-tekst: #8c1d18;
  --blad-tlo: #fbeaea;
  --sukces-tekst: #1f4d25;
  --sukces-tlo: #e6efe4;
  --wys-naglowka: 85px;
  --akcja: var(--zielen);
  --r-maly: 4px;
  --r: 8px;
  --r-duzy: 12px;
  --szer: 1200px;
  --naglowki: "Barlow Condensed", "Arial Narrow", sans-serif;
  --tekst: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--zielen) var(--tlo-szare); }
body { margin: 0; background: var(--tlo); color: var(--atrament); font: 400 1.0625rem/1.6 var(--tekst); overflow-x: clip; }
body.menu-otwarte { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--naglowki); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); }
h3, .h3 { font-size: 1.4rem; line-height: 1.2; font-weight: 600; }
p { margin: 0; max-width: 66ch; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--zielen); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--zielen-ciemna); text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
strong { font-weight: 700; }
::selection { background: var(--zielen); color: var(--tlo); }
:focus-visible { outline: 3px solid var(--atrament); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.ukryty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pomin { position: absolute; left: -999px; top: 8px; z-index: 60; padding: 12px 16px; background: var(--atrament); color: var(--tlo); border-radius: var(--r); }
.pomin:focus { left: 8px; color: var(--tlo); }

.srodek { width: min(100% - 48px, var(--szer)); margin-inline: auto; }
[id] { scroll-margin-top: calc(var(--wys-naglowka) + 24px); }
.sekcja { padding-block: clamp(48px, 3vw + 32px, 88px); }
.sekcja--szara { background: var(--tlo-szare); }
.sekcja--zielona { background: var(--zielen-jasna); }
.sekcja__naglowek { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(24px, 2.5vw, 40px); }
.sekcja__naglowek p { color: var(--tekst-cichy); margin-top: 10px; }
.lid { font-size: clamp(1.12rem, 1.02rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--tekst-cichy); }

/* Przyciski: zieleń Cechu, obrys jako drugi wybór */
.przycisk { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border: 2px solid var(--akcja); border-radius: var(--r); background: var(--akcja); color: var(--tlo); font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.przycisk .ikona { width: 20px; height: 20px; flex: none; }
.przycisk:hover { background: var(--zielen-ciemna); border-color: var(--zielen-ciemna); color: var(--tlo); }
.przycisk--jasny { background: var(--tlo); color: var(--zielen); }
.przycisk--jasny:hover { background: var(--zielen-jasna); color: var(--zielen-ciemna); border-color: var(--zielen); }
.przycisk--odwrocony { background: var(--tlo); border-color: var(--tlo); color: var(--zielen); }
.przycisk--odwrocony:hover { background: var(--zielen-jasna); border-color: var(--zielen-jasna); color: var(--zielen-ciemna); }
.przyciski { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.lacze { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.lacze .ikona { width: 18px; height: 18px; }

.ikona { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 560px) {
  .srodek { width: min(100% - 32px, var(--szer)); }
  .przyciski .przycisk { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
