/* Serwis Kowalik - demo dla stronaza1000.pl
   Kierunek celowo odwrotny do demo barbera: jasny, techniczny, papierowy.
   Siatka jak z rysunku warsztatowego, monospace przy każdej liczbie, pas ostrzegawczy
   zamiast ozdobników. Zero fotografii - miejsce na zdjęcia klienta zostaje w sekcji
   usług bez zmian w układzie. */

:root {
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --card: #ffffff;
  --ink: #16181d;
  --ink-2: #5b616b;
  --line: #d5d1c8;
  --blue: #1b4dc1;
  --blue-dark: #143a92;
  --signal: #f0a500;
  --green: #2e8b57;

  --font: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; margin: 0; }
a { color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.tag {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 14px;
}

/* --- Pasek demo --------------------------------------------------------- */

.demo-flag {
  background: var(--ink); color: var(--paper);
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center;
  padding: 8px 18px; font-size: 13px; text-align: center;
}
.demo-flag a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }

/* --- Nawigacja ---------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 26px;
  padding: 13px clamp(16px, 4vw, 38px);
  background: rgba(243, 241, 236, .92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; color: var(--blue); display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { display: flex; flex-direction: column; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand-name em {
  font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-top: 2px;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 4px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #143a92; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) clamp(16px, 4vw, 38px) clamp(44px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(26px, 4vw, 56px); align-items: center;
}

/* Siatka rysunku technicznego - tło, które od razu mówi "warsztat" */
.blueprint {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 90% at 30% 30%, #000 30%, transparent 78%);
  opacity: .55;
}

.hero h1 { font-size: clamp(40px, 7vw, 76px); margin-bottom: 20px; }
.hero h1 u {
  text-decoration: none; position: relative; white-space: nowrap;
}
.hero h1 u::after {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: .1em; height: .22em;
  background: var(--signal); z-index: -1;
}
.lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 54ch; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.status { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); margin: 18px 0 0; }
.status b { color: var(--green); }

/* Karta ze wskaźnikami - zamiast zdjęcia, bo niesie realną informację */
.gauge-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 7px 7px 0 var(--ink);
  padding: 20px 22px 16px;
}
.gauge-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: .16em; color: var(--ink-2);
  border-bottom: 1px solid var(--line); padding-bottom: 11px; margin-bottom: 6px;
}
.led {
  width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2);
}
.led.on { background: var(--green); box-shadow: 0 0 0 4px rgba(46, 139, 87, .18); }
.gauge-list { margin: 0; }
.gauge-list div {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.gauge-list dt { color: var(--ink-2); font-size: 14.5px; }
.gauge-list dd { margin: 0; font-weight: 600; font-size: 15px; white-space: nowrap; }
.gauge-foot { font-size: 11.5px; color: var(--ink-2); margin: 12px 0 0; }

/* Pas ostrzegawczy jako przerywnik sekcji */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg, var(--signal) 0 16px, var(--ink) 16px 32px
  );
}

/* --- Sekcje ------------------------------------------------------------- */

.section {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) clamp(16px, 4vw, 38px);
}
.section-tint {
  max-width: none; background: var(--paper-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-tint > * { max-width: var(--wrap); margin-inline: auto; }

.sec-head { margin-bottom: clamp(28px, 4vw, 46px); max-width: 60ch; }
.sec-head h2 { font-size: clamp(28px, 4.2vw, 44px); margin-bottom: 12px; }
.sec-head p { color: var(--ink-2); margin: 0; }

/* --- Karty usług -------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 6px;
  padding: 22px 22px 18px; position: relative;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card:hover {
  border-color: var(--ink); transform: translateY(-3px);
  box-shadow: 5px 5px 0 var(--ink);
}
.card.highlight { border-color: var(--blue); border-width: 2px; }
.card-ico svg {
  width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px;
}
.card h3 { font-size: 19px; margin-bottom: 14px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px dotted var(--line); font-size: 15px;
}
.price-list li:last-child { border-bottom: 0; }
.price-list b { font-size: 14.5px; white-space: nowrap; }
.card-note {
  position: absolute; top: -11px; right: 16px;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 3px; margin: 0;
}

/* --- Sprawdzarka marek -------------------------------------------------- */

.brand-check { margin-bottom: 22px; max-width: 420px; }
.brand-check input {
  width: 100%; font: inherit; font-size: 17px;
  padding: 13px 16px; border: 2px solid var(--ink); border-radius: 5px;
  background: var(--card); color: var(--ink);
}
.brand-check input:focus { outline: none; border-color: var(--blue); }
.brand-result { font-size: 14px; margin: 10px 0 0; min-height: 22px; }
.brand-result.hit { color: var(--green); }
.brand-result.miss { color: var(--ink-2); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 14.5px; transition: background .15s, color .15s, border-color .15s;
}
.chips li.match { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips li.dim { opacity: .35; }

/* --- Zasady ------------------------------------------------------------- */

.rules {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px;
}
.rules li { border-left: 3px solid var(--blue); padding-left: 18px; }
.rule-num { font-size: 12px; color: var(--blue); letter-spacing: .16em; }
.rules h3 { font-size: 19px; margin: 6px 0 8px; }
.rules p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* --- Opinie ------------------------------------------------------------- */

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 18px; }
.reviews figure {
  margin: 0; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 6px; padding: 20px 22px;
}
.stars { color: var(--signal); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.reviews blockquote { margin: 0 0 14px; font-size: 15.5px; }
.reviews figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }

/* --- Kontakt ------------------------------------------------------------ */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
.contact h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 20px; }
.phone-big {
  display: inline-block; font-size: clamp(30px, 4.6vw, 46px); font-weight: 600;
  color: var(--blue); text-decoration: none; margin-bottom: 16px; letter-spacing: -.02em;
}
.phone-big:hover { text-decoration: underline; text-underline-offset: 6px; }
address { font-style: normal; color: var(--ink-2); margin-bottom: 24px; }

.hours { width: 100%; max-width: 360px; border-collapse: collapse; margin-bottom: 14px; }
.hours th, .hours td { text-align: left; padding: 7px 0; font-weight: 400; font-size: 15px; border-bottom: 1px solid var(--line); }
.hours th { color: var(--ink-2); }
.hours td { text-align: right; font-size: 14px; }
.hours tr.today th, .hours tr.today td { font-weight: 600; color: var(--ink); }
.hours tr.today th::before {
  content: "▸ "; color: var(--blue);
}
.small { font-size: 14px; color: var(--ink-2); }

.form {
  background: var(--card); border: 2px solid var(--ink); border-radius: 6px;
  box-shadow: 7px 7px 0 var(--ink); padding: clamp(20px, 3vw, 30px);
}
.form h3 { font-size: 21px; margin-bottom: 6px; }
.form .small { margin: 0 0 18px; }
.form label {
  display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px;
}
.form input, .form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px;
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 4px;
  background: #fbfaf8; color: var(--ink); text-transform: none; letter-spacing: 0;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 77, 193, .14);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { width: 100%; margin-top: 4px; }
.form-note { min-height: 20px; margin: 12px 0 0; font-size: 14px; color: var(--green); }

/* --- Stopka ------------------------------------------------------------- */

.footer {
  border-top: 2px solid var(--ink); background: var(--paper-2);
  padding: 30px clamp(16px, 4vw, 38px) 90px; text-align: center;
  font-size: 14.5px; color: var(--ink-2);
}
.footer a { color: var(--blue); }
.footer p { margin: 6px 0; }
.footer-demo { font-size: 13.5px; }

.callbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-weight: 700; padding: 15px;
  border-radius: 5px; text-decoration: none; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .5);
}

/* --- Responsywność ------------------------------------------------------ */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .contact { grid-template-columns: 1fr; }
  .gauge-card, .form { box-shadow: 4px 4px 0 var(--ink); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav .btn-primary { padding: 9px 14px; font-size: 13.5px; }
  .callbar { display: flex; }
  .row2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}


:root {
  --sub-surface: var(--card);
  --sub-ink: var(--ink);
  --sub-muted: var(--ink-2);
  --sub-line: var(--line);
  --sub-accent: var(--blue);
  --sub-display: var(--font);
  --sub-radius: 6px;
}


:root {
  --sub-surface: var(--card);
  --sub-ink: var(--ink);
  --sub-muted: var(--ink-2);
  --sub-line: var(--line);
  --sub-accent: var(--blue);
  --sub-display: var(--font);
  --sub-radius: 6px;
}

/* Nagłówek podstrony: siatka rysunku technicznego + pas ostrzegawczy */
.page-hero { background: var(--paper-2); }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(100% 90% at 25% 20%, #000 25%, transparent 80%);
  opacity: .7;
}
.page-hero-decor::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, var(--ink) 14px 28px);
}
.page-hero .hero-chips b { font-family: var(--mono); }


:root {
  --sub-surface: var(--card);
  --sub-ink: var(--ink);
  --sub-muted: var(--ink-2);
  --sub-line: var(--line);
  --sub-accent: var(--blue);
  --sub-display: var(--font);
  --sub-radius: 6px;
}

/* Nagłówek podstrony: siatka rysunku technicznego + pas ostrzegawczy */
.page-hero { background: var(--paper-2); }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(100% 90% at 25% 20%, #000 25%, transparent 80%);
  opacity: .7;
}
.page-hero-decor::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, var(--ink) 14px 28px);
}
.page-hero .hero-chips b { font-family: var(--mono); }


/* === Podstrony (generowane przez build_pages.py) =========================
   Zasada: podstrona ma wyglądać jak ta sama witryna co strona główna, a nie jak
   dokument tekstowy. Stąd pełnoszerokościowy nagłówek z dekoracją danego demo,
   wyraźna hierarchia typograficzna i karty zamiast surowych list. */

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--sub-line);
  padding: clamp(26px, 4vw, 44px) 0 clamp(30px, 4.5vw, 52px);
  margin-bottom: clamp(30px, 4vw, 54px);
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: 1120px; margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.page-hero h1 {
  font-family: var(--sub-display);
  font-size: clamp(31px, 5.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  max-width: 20ch;
}
.page-hero .page-lead {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--sub-muted);
  max-width: 58ch;
  margin: 0;
}
.page-kicker {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sub-accent); margin: 0 0 14px; font-weight: 600;
}

.crumbs { font-size: 13px; color: var(--sub-muted); margin-bottom: 20px; opacity: .9; }
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { border-color: currentColor; }
.crumbs span { color: var(--sub-accent); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-chips div {
  border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius, 10px);
  padding: 10px 18px 11px;
  background: var(--sub-surface);
  min-width: 118px;
}
.hero-chips span {
  display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sub-muted); margin-bottom: 3px;
}
.hero-chips b { font-size: 16.5px; }

.subpage {
  max-width: 1120px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px);
}

/* --- Treść --------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose > p { margin: 0 0 18px; }
.prose > p:first-of-type { font-size: 1.06em; }
.prose h2 {
  font-family: var(--sub-display);
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.15; letter-spacing: -0.015em;
  margin: 42px 0 16px; padding-top: 20px;
  border-top: 1px solid var(--sub-line);
  position: relative;
}
.prose h2::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 2px;
  background: var(--sub-accent);
}
.prose h2:first-child { margin-top: 0; }
.post-outro {
  margin-top: 30px; padding: 18px 22px;
  border-left: 3px solid var(--sub-accent);
  background: var(--sub-surface);
  font-style: italic;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq { margin-top: 46px; max-width: 68ch; }
.faq h2 {
  font-family: var(--sub-display); font-size: clamp(21px, 2.4vw, 27px); margin: 0 0 16px;
}
details {
  border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius, 10px);
  background: var(--sub-surface);
  margin-bottom: 10px;
  transition: border-color .18s;
}
details:hover { border-color: var(--sub-accent); }
details summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px;
  font-weight: 600; position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; line-height: 1; color: var(--sub-accent); transition: transform .2s;
}
details[open] summary::after { content: "-"; }
.faq-body { padding: 0 20px 18px; }
.faq-body p { margin: 0 0 10px; color: var(--sub-muted); }
.faq-body p:last-child { margin-bottom: 0; }

/* --- Kafle usług i wpisów ------------------------------------------------ */

.tiles, .post-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.tile, .post-card {
  position: relative; display: block; text-decoration: none;
  background: var(--sub-surface); border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius, 10px); padding: 26px 24px 22px;
  transition: border-color .2s, transform .2s;
  overflow: hidden;
}
.tile:hover, .post-card:hover { border-color: var(--sub-accent); transform: translateY(-3px); }
.tile-num, .post-num {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--sub-display); font-size: 34px; line-height: 1;
  color: var(--sub-accent); opacity: .28;
}
.tile h3, .post-card h3 {
  font-family: var(--sub-display); font-size: 20px; line-height: 1.2;
  margin: 0 0 10px; padding-right: 42px;
}
.tile p, .post-card p { margin: 0 0 16px; color: var(--sub-muted); font-size: 15px; }
.tile-foot {
  display: flex; align-items: baseline; gap: 10px;
  border-top: 1px solid var(--sub-line); padding-top: 12px;
}
.tile-foot b { font-size: 17px; color: var(--sub-accent); }
.tile-foot i { font-style: normal; font-size: 13.5px; color: var(--sub-muted); }
.read { font-size: 14px; color: var(--sub-accent); font-weight: 600; }

/* --- Zasady i kontakt ---------------------------------------------------- */

.rule-cards, .contact-grid {
  display: grid; gap: 16px; margin-top: 34px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.rule-card, .contact-block {
  background: var(--sub-surface); border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius, 10px); padding: 24px;
}
.rule-dot {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sub-accent); margin-bottom: 14px;
}
.rule-card h3, .contact-block h3 {
  font-family: var(--sub-display); font-size: 18px; margin: 0 0 10px;
}
.rule-card p, .contact-block p { margin: 0 0 8px; color: var(--sub-muted); font-size: 15px; }
.contact-block-main { grid-column: span 1; }
.contact-phone {
  display: inline-block; font-family: var(--sub-display); font-size: 30px;
  color: var(--sub-accent); text-decoration: none; margin: 4px 0 10px;
}
.contact-phone:hover { text-decoration: underline; text-underline-offset: 5px; }
.dim { color: var(--sub-muted); font-size: 14px; }
.dim a { color: var(--sub-accent); text-decoration: none; }

/* --- Wezwanie do kontaktu ------------------------------------------------ */

.cta-box {
  margin-top: 50px; padding: 26px 30px;
  border: 1px solid var(--sub-accent);
  border-radius: var(--sub-radius, 10px);
  background: var(--sub-surface);
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
}
.cta-title { font-family: var(--sub-display); font-size: 21px; margin: 0 0 4px; }
.cta-sub { margin: 0; color: var(--sub-muted); font-size: 15px; }

/* --- Linkowanie krzyżowe ------------------------------------------------- */

.related { margin-top: 54px; }
.related h2 {
  font-family: var(--sub-display); font-size: 20px; margin: 0 0 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--sub-line);
}
.rel-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rel-card {
  display: block; text-decoration: none; padding: 16px 18px;
  border: 1px solid var(--sub-line); border-radius: var(--sub-radius, 10px);
  transition: border-color .18s, transform .18s;
}
.rel-card:hover { border-color: var(--sub-accent); transform: translateX(3px); }
.rel-card span {
  display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sub-accent); margin-bottom: 5px;
}
.rel-card b { font-family: var(--sub-display); font-weight: 600; font-size: 16px; line-height: 1.25; }

@media (max-width: 620px) {
  .cta-box { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-box .btn { width: 100%; }
  .page-hero h1 { max-width: none; }
}


/* --- Układ dwukolumnowy podstrony ---------------------------------------- */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.page-main { min-width: 0; }
.page-main .prose { max-width: 66ch; }

.side { position: sticky; top: 92px; display: grid; gap: 14px; }
.side-box {
  background: var(--sub-surface); border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius, 10px); padding: 20px 22px;
}
.side-box-price { border-color: var(--sub-accent); }
.side-label {
  display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sub-muted); margin-bottom: 8px;
}
.side-price {
  font-family: var(--sub-display); font-size: 30px; line-height: 1;
  margin: 0 0 6px; color: var(--sub-accent);
}
.side-time { margin: 0 0 16px; font-size: 14px; color: var(--sub-muted); }
.side-list { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14.5px; }
.side-list li { padding: 7px 0 7px 18px; position: relative; border-top: 1px solid var(--sub-line); }
.side-list li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--sub-accent);
}
.side-box .btn, .side-box a[class*="btn"] { width: 100%; }
.side-links { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.side-links li { border-top: 1px solid var(--sub-line); }
.side-links li:first-child { border-top: 0; }
.side-links a {
  display: block; padding: 9px 0; text-decoration: none; color: var(--sub-muted);
  transition: color .15s, padding-left .15s;
}
.side-links a:hover { color: var(--sub-accent); padding-left: 5px; }

/* Pierwszy wpis szerszy - siatka nie zostawia wtedy sieroty w ostatnim rzędzie */
.post-card.featured { grid-column: span 2; }
.post-card.featured h3 { font-size: 25px; max-width: 22ch; }
.post-card.featured p { font-size: 16px; max-width: 58ch; }

@media (max-width: 980px) {
  .page-grid { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .post-card.featured { grid-column: auto; }
}

/* --- Nawigacja na telefonie ---------------------------------------------
   Podstrony muszą być dostępne także z komórki, dlatego linki nie znikają -
   schodzą pod logo jako przewijalny pasek. Bez hamburgera, bez JS. */
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; row-gap: 10px; padding-bottom: 10px; }
  .nav-links {
    display: flex !important;
    order: 3; width: 100%; margin-left: 0;
    gap: 18px; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 14.5px; }
}

/* Druga droga do podstron - w stopce, na każdym ekranie */
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  margin: 0 0 16px; padding: 0; list-style: none; font-size: 14.5px;
}
.footer-nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.footer-nav a:hover { border-color: currentColor; }
