/* =========================================================
   programkonserwatorski.pl — arkusz stylów
   Kierunek: dokument konserwatorski, nie firma budowlana.
   Paleta wyprowadzona z materiałów zawodu:
   patyna miedzi, pulment (bolus), wapień, tusz archiwalny.
   ========================================================= */

/* ---------- 1. TOKENY ---------- */
:root {
  /* kolor */
  --ink:          #14181a;
  --slate:        #39464a;
  --mute:         #66757a;
  --line:         #dcd9d1;
  --line-soft:    #eae7e0;
  --paper:        #fcfcfa;
  --limestone:    #efede6;
  --patina:       #2f5e50;
  --patina-deep:  #16332b;
  --patina-tint:  #e6efeb;
  --bole:         #a03a22;
  --bole-deep:    #7d2c19;
  --gold:         #b08a3e;

  /* typografia */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* rytm */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  --wrap: 1180px;
  --measure: 68ch;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(20,24,26,.04), 0 8px 24px -12px rgba(20,24,26,.14);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--patina); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bole); }
:focus-visible { outline: 2px solid var(--bole); outline-offset: 3px; }

/* ---------- 3. TYPOGRAFIA ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); letter-spacing: -.022em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: -.012em; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p  { margin: 0 0 var(--sp-4); max-width: var(--measure); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.25rem); line-height: 1.6; color: var(--slate); }
strong { color: var(--ink); font-weight: 600; }

/* etykieta monospace — język kart ewidencyjnych */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--patina);
  margin: 0 0 var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  flex: none;
}

/* ---------- 4. UKŁAD ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band--stone { background: var(--limestone); }
.band--dark  { background: var(--patina-deep); color: #cfdad5; }
.band--dark h2, .band--dark h3 { color: #fff; }
.band--dark .eyebrow { color: var(--gold); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(2rem,5vw,4.5rem); align-items: start; }

/* ---------- 5. SYGNATURA: STRATYGRAFIA ----------
   Poziomy przekrój warstw — to, co konserwator widzi w odkrywce.
   Używana jako znacznik sekcji i element hero. */
.strat { display: flex; width: 100%; height: 10px; overflow: hidden; border-radius: 1px; }
.strat span { display: block; height: 100%; transform-origin: left; }
.strat--hero { height: 14px; margin-top: var(--sp-6); max-width: 520px; }
.strat--rule { height: 5px; max-width: 180px; margin-bottom: var(--sp-6); }

.strat span:nth-child(1) { flex: 3;   background: var(--patina-deep); }
.strat span:nth-child(2) { flex: 1.2; background: var(--gold); }
.strat span:nth-child(3) { flex: 2;   background: var(--bole); }
.strat span:nth-child(4) { flex: 1;   background: var(--limestone); }
.strat span:nth-child(5) { flex: 2.4; background: var(--patina); }
.strat span:nth-child(6) { flex: .8;  background: var(--slate); }

.strat--anim span { animation: layerIn .7s cubic-bezier(.2,.7,.3,1) both; transform: scaleX(0); }
.strat--anim span:nth-child(1) { animation-delay: .05s; }
.strat--anim span:nth-child(2) { animation-delay: .15s; }
.strat--anim span:nth-child(3) { animation-delay: .25s; }
.strat--anim span:nth-child(4) { animation-delay: .35s; }
.strat--anim span:nth-child(5) { animation-delay: .45s; }
.strat--anim span:nth-child(6) { animation-delay: .55s; }
@keyframes layerIn { to { transform: scaleX(1); } }

.strat-legend {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--mute);
  margin-top: var(--sp-3);
  max-width: 520px;
}

/* ---------- 6. NAGŁÓWEK ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252,252,250,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.head-in { display: flex; align-items: center; gap: var(--sp-5); min-height: 68px; }
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; margin-right: auto; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.1;
}
.brand-sub { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: block; }

.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav a { font-size: .93rem; color: var(--slate); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--patina); }
.head-tel {
  font-family: var(--font-mono); font-size: .9rem; font-weight: 500;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.head-tel:hover { color: var(--bole); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; cursor: pointer; font-family: var(--font-mono); font-size: .75rem; color: var(--ink); }

/* ---------- 7. PRZYCISKI ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; line-height: 1;
  padding: .95rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--bole); color: #fff; }
.btn--primary:hover { background: var(--bole-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: #fff; color: var(--patina-deep); }
.btn--light:hover { background: var(--limestone); color: var(--patina-deep); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* ---------- 8. HERO ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line-soft); }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 60ch; }

.trustbar { border-top: 1px solid var(--line); margin-top: clamp(2.5rem,5vw,3.5rem); padding-top: var(--sp-5); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.trust-item { }
.trust-item dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: var(--sp-2); }
.trust-item dd { margin: 0; font-size: .95rem; color: var(--ink); font-weight: 500; line-height: 1.4; }

/* ---------- 9. DEFINICJA (blok cytowany z ustawy) ---------- */
.definition {
  border-left: 3px solid var(--gold);
  background: #fff;
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow);
}
.definition p:last-child { margin-bottom: 0; }
.definition .src { font-family: var(--font-mono); font-size: .72rem; color: var(--mute); letter-spacing: .03em; }

/* ---------- 10. LISTY ZAWARTOŚCI ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: cl; }
.checklist li {
  counter-increment: cl;
  display: grid; grid-template-columns: 2.6rem 1fr; gap: var(--sp-4);
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-soft);
}
.checklist li::before {
  content: counter(cl, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .75rem; color: var(--gold); padding-top: .28rem; letter-spacing: .04em;
}
.checklist b { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }
.checklist span { font-size: .95rem; color: var(--mute); }

/* ---------- 11. KARTY USŁUG ---------- */
.card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: var(--line); box-shadow: var(--shadow); }
.card h3 { margin: 0; }
.card p { margin: 0; font-size: .95rem; }
.card-tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* ---------- 12. KARTY EWIDENCYJNE (dla kogo) ---------- */
.record {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.record-head {
  background: var(--patina-tint); border-bottom: 1px solid var(--line);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--patina-deep);
  display: flex; justify-content: space-between; gap: var(--sp-3);
}
.record-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.record-body h3 { margin: 0; font-size: 1.3rem; }
.record-body p { margin: 0; font-size: .95rem; }
.record-list { list-style: none; margin: auto 0 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: var(--sp-2); }
.record-list li { font-size: .9rem; padding-left: 1.1rem; position: relative; color: var(--slate); }
.record-list li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; }

/* ---------- 13. PROCES ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 0; }
.steps li {
  counter-increment: st;
  display: grid; grid-template-columns: 4.5rem 1fr auto; gap: var(--sp-5);
  padding: var(--sp-5) 0; border-top: 1px solid rgba(255,255,255,.14); align-items: baseline;
}
.steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.steps li::before {
  content: counter(st, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .8rem; color: var(--gold); letter-spacing: .06em;
}
.steps h3 { margin: 0 0 var(--sp-2); font-size: 1.25rem; }
.steps p { margin: 0; font-size: .95rem; color: #b8c7c1; max-width: 60ch; }
.step-time { font-family: var(--font-mono); font-size: .72rem; color: #8fa39c; white-space: nowrap; letter-spacing: .04em; }

/* ---------- 14. DOTACJE ---------- */
.grants { width: 100%; border-collapse: collapse; font-size: .93rem; background: #fff; }
.grants caption { text-align: left; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding-bottom: var(--sp-3); }
.grants th, .grants td { text-align: left; padding: var(--sp-4); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.grants thead th { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 500; background: var(--limestone); }
.grants tbody th { font-weight: 600; color: var(--ink); font-family: var(--font-body); font-size: .95rem; }

/* ---------- 15. REALIZACJE ---------- */
.work { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: #fff; }
.work-img { aspect-ratio: 4/3; background: var(--limestone); display: block; width: 100%; object-fit: cover; }
.work-body { padding: var(--sp-5); }
.work-body h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.work-meta { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: var(--sp-3); }
.work-body p { font-size: .92rem; margin: 0; }

/* ---------- 16. FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--sp-5) 3rem var(--sp-5) 0; position: relative;
  font-family: var(--font-display); font-size: clamp(1.05rem,1.8vw,1.25rem); color: var(--ink); font-weight: 500; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.25rem; color: var(--gold); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 0 var(--sp-5); }
.faq-answer p { margin-bottom: var(--sp-3); font-size: .98rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- 17. FORMULARZ ---------- */
.form-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,4vw,2.75rem); box-shadow: var(--shadow); }
.fset { border: 0; padding: 0; margin: 0 0 var(--sp-7); }
.fset:last-of-type { margin-bottom: var(--sp-5); }
.fset legend {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--patina); padding: 0 0 var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); width: 100%;
}
.fset legend::before { content: ""; width: 22px; height: 1px; background: var(--gold); flex: none; }

.field { margin-bottom: var(--sp-4); }
.field label, .field .lbl { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: var(--sp-2); }
.field .hint { font-size: .8rem; color: var(--mute); font-weight: 400; margin-top: -.15rem; margin-bottom: var(--sp-2); display: block; }
.req { color: var(--bole); }

input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: .98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .78rem .9rem; transition: border-color .15s ease, background .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--patina); background: #fff; outline: none; box-shadow: 0 0 0 3px var(--patina-tint); }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2366757a' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* wybór kafelkowy — charakter zlecenia */
.choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice label {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4); cursor: pointer; margin: 0; font-weight: 500; font-size: .92rem;
  transition: border-color .15s ease, background .15s ease;
}
.choice label .sub { display: block; font-size: .78rem; color: var(--mute); font-weight: 400; margin-top: .2rem; }
.choice label:hover { border-color: var(--patina); }
.choice input:checked + label { border-color: var(--patina); background: var(--patina-tint); }
.choice input:focus-visible + label { outline: 2px solid var(--bole); outline-offset: 2px; }

/* checkboxy zakresu */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2) var(--sp-4); }
.check { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: .92rem; cursor: pointer; padding: .3rem 0; }
.check input[type=checkbox] { width: 17px; height: 17px; margin: .22rem 0 0; accent-color: var(--patina); flex: none; cursor: pointer; }

/* przełącznik wykonawców */
.switch-box { border: 1px solid var(--line); background: var(--limestone); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5); }
.switch { display: flex; align-items: flex-start; gap: var(--sp-4); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-ui { width: 44px; height: 25px; border-radius: 25px; background: #c4c0b6; position: relative; flex: none; transition: background .18s ease; margin-top: .1rem; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .switch-ui { background: var(--patina); }
.switch input:checked + .switch-ui::after { transform: translateX(19px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--bole); outline-offset: 3px; }
.switch-txt b { display: block; font-size: .93rem; color: var(--ink); margin-bottom: .15rem; }
.switch-txt span { font-size: .82rem; color: var(--mute); line-height: 1.5; display: block; }

.consent { font-size: .78rem; color: var(--mute); line-height: 1.6; margin: var(--sp-4) 0 0; max-width: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-error { display: none; background: #fdf1ee; border: 1px solid var(--bole); color: var(--bole-deep); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); font-size: .9rem; margin-bottom: var(--sp-4); }
.form-error.is-on { display: block; }

/* ---------- 18. MODAL WYKONAWCÓW ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: var(--sp-4); }
.modal.is-open { display: flex; }
.modal-veil { position: absolute; inset: 0; background: rgba(20,24,26,.55); backdrop-filter: blur(2px); animation: fadeIn .2s ease both; }
.modal-box {
  position: relative; background: #fff; border-radius: var(--radius); max-width: 520px; width: 100%;
  box-shadow: 0 24px 60px -20px rgba(20,24,26,.5); animation: popIn .26s cubic-bezier(.2,.8,.3,1) both;
  max-height: 92vh; overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.modal-strat { height: 6px; }
.modal-in { padding: clamp(1.5rem,4vw,2.25rem); }
.modal-in h2 { font-size: clamp(1.35rem,3vw,1.7rem); margin-bottom: var(--sp-3); }
.modal-in p { font-size: .95rem; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--mute); cursor: pointer; padding: .2rem .45rem; border-radius: var(--radius); }
.modal-close:hover { color: var(--ink); background: var(--limestone); }
.modal-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.modal-actions .btn { flex: 1 1 auto; }

/* ---------- 19. STOPKA ---------- */
.site-foot { background: var(--patina-deep); color: #a9bab4; padding-block: clamp(3rem,6vw,4.5rem) var(--sp-6); font-size: .92rem; }
.site-foot a { color: #d7e2de; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
.foot-grid h4 { color: #fff; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--sp-4); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.foot-brand { font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin-bottom: var(--sp-3); display: block; font-weight: 600; }
.foot-nap { font-style: normal; line-height: 1.8; }
.foot-partners li { padding-bottom: var(--sp-3); border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: var(--sp-1); }
.foot-partners .role { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #7f948d; margin-top: .15rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--sp-7); padding-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; font-size: .82rem; color: #7f948d; }

/* ---------- 20. TREŚĆ ARTYKUŁU ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article h2 { margin-top: var(--sp-8); }
.article h3 { margin-top: var(--sp-6); }
.article ul, .article ol { max-width: var(--measure); padding-left: 1.3rem; }
.article li { margin-bottom: var(--sp-2); }
.crumbs { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--mute); margin-bottom: var(--sp-5); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--patina); }
.byline { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; border-block: 1px solid var(--line); padding-block: var(--sp-4); margin-bottom: var(--sp-6); font-size: .88rem; }
.byline .who { color: var(--ink); font-weight: 600; }
.byline .when { font-family: var(--font-mono); font-size: .74rem; color: var(--mute); }

.cta-inline { background: var(--patina-tint); border-left: 3px solid var(--patina); padding: var(--sp-5); margin-block: var(--sp-6); }
.cta-inline p { margin-bottom: var(--sp-4); }
.cta-inline p:last-child { margin-bottom: 0; }

/* ---------- 21. POMOCNICZE ---------- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .8rem 1.2rem; z-index: 200; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 }
.center-narrow { max-width: 720px; }

/* ---------- 22. RESPONSYWNOŚĆ ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .trustbar { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-3) var(--sp-5) var(--sp-5); }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: block; order: 3; }
  .head-in { position: relative; gap: var(--sp-3); }
  .head-tel { font-size: .82rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row, .choice, .checks { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 3rem 1fr; }
  .step-time { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .btn-row .btn { flex: 1 1 100%; }
  .grants, .grants tbody, .grants tr, .grants td, .grants th { display: block; width: 100%; }
  .grants thead { display: none; }
  .grants tr { border-bottom: 1px solid var(--line); padding: var(--sp-3) 0; }
  .grants td, .grants tbody th { border: 0; padding: var(--sp-2) var(--sp-4); }
  .grants td::before { content: attr(data-l); display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: .2rem; }
}

/* ---------- 23. DRUK ---------- */
@media print {
  .site-head, .modal, .btn, .form-shell, .site-foot { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
}
