/*
Theme Name: Błękitna Kancelaria
Theme URI: https://faxonline.com.pl/
Author: AA
Version: 1.0.0
Text Domain: aa-faxonline-kancelaria
*/
/* =====================================================================
   faxonline.com.pl — arkusz wspólny
   Kierunek: atrament + mosiądz, dostojna prostota (stacjonarka prawnicza)
   Jeden świadomy, jasny świat wizualny (papier + tusz), bez zasobów zdalnych.
   ===================================================================== */

/* ---------- Design system: zmienne ---------- */
:root {
  /* Atrament — głębokie granatowe czernie */
  --ink-900: #14212C;
  --ink-800: #1B2C39;
  --ink-700: #2B4152;
  --ink-500: #45596B;
  --ink-400: #5C6E7D;

  /* Papier — ciepła kremowa neutralność z lekkim ochrowym biasem */
  --paper:      #F2ECDF;
  --paper-2:    #F7F2E8;
  --card:       #FCF8F0;
  --card-ink:   #16242F; /* panel na tle papieru */

  /* Mosiądz */
  --brass-700: #7A5C22; /* drobny tekst na papierze — kontrast AA */
  --brass-600: #8F6E2C;
  --brass-500: #A9873C;
  --brass-400: #C4A25A;
  --brass-300: #D8BE84;

  /* Linie i tła pomocnicze */
  --rule:       #D8CDB6;
  --rule-soft:  #E6DDCB;
  --rule-ink:   rgba(196, 162, 90, 0.42);

  /* Semantyka tekstu */
  --text:        var(--ink-800);
  --text-soft:   var(--ink-500);
  --text-invert: #F3EBDA;
  --text-invert-soft: #C6BBA4;

  /* Typografia */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Skala i rytm */
  --measure: 66ch;
  --shell: 76rem;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(20, 33, 44, 0.06);
  --shadow-md: 0 10px 30px -18px rgba(20, 33, 44, 0.45);
  --shadow-lg: 0 26px 60px -32px rgba(20, 33, 44, 0.55);

  --step: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset lekki ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.965rem + 0.18vw, 1.09rem);
  line-height: 1.72;
  color: var(--text);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(196, 162, 90, 0.07), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(43, 65, 82, 0.05), transparent 46%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink-800); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Dostępność ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink-900);
  color: var(--text-invert);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top var(--step);
}
.skip-link:focus { top: 1rem; color: var(--text-invert); }

:focus-visible {
  outline: 3px solid var(--brass-500);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-ink :focus-visible { outline-color: var(--brass-300); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Kontener ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.75rem);
}

/* =====================================================================
   NAGŁÓWEK + NAWIGACJA
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 236, 223, 0.9);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
}

/* Marka */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-800);
}
.brand__seal {
  flex: none;
  width: 2.7rem;
  height: 2.7rem;
  color: var(--brass-600);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-900);
}
.brand__kicker {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin-top: 0.18rem;
}

/* Menu — details/summary działa bez JS */
.menu { position: relative; }
.site-header nav { position: relative; } /* kotwica listy rozwijanej — lista jest rodzeństwem <details> (poprawka 2026-09-08) */
.menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { border-color: var(--brass-400); }
.menu__burger { width: 1.1rem; height: 1.1rem; color: var(--brass-600); }
.menu__list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  min-width: 17rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none; /* telefon: ukryta, dopóki <details> nie jest otwarty */
  gap: 0.15rem;
}
.menu[open] + .menu__list { display: grid; }
.menu__list a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink-800);
  font-weight: 500;
  transition: background var(--step), color var(--step);
}
.menu__list a:hover,
.menu__list a:focus-visible { background: var(--paper-2); color: var(--ink-900); }
.menu__list a[aria-current="page"] {
  color: var(--brass-700);
  box-shadow: inset 3px 0 0 var(--brass-500);
}

@media (min-width: 900px) {
  .menu { display: none; }
  .menu__list {
    position: static;
    display: flex;
    gap: 0.3rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
  }
  .menu__list a { padding: 0.55rem 0.85rem; font-size: 0.95rem; }
  .menu__list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass-500); }
}

/* =====================================================================
   HERO — panel z atramentu
   ===================================================================== */
.hero {
  position: relative;
  color: var(--text-invert);
  background:
    linear-gradient(155deg, var(--ink-800), var(--ink-900) 65%);
  overflow: hidden;
}
.hero::before {
  /* delikatna „siatka faksymile" w tle */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg, rgba(196, 162, 90, 0.05) 0 1px, transparent 1px 26px);
  opacity: 0.7;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.35fr 1fr; align-items: center; }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-300);
  margin: 0 0 1.25rem;
}
.hero__eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--brass-400);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
  color: #F6EFDF;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-invert-soft);
  max-width: 46ch;
  margin: 0 0 2rem;
}
.hero__rule {
  width: 5.5rem;
  height: 0;
  border: 0;
  border-top: 2px solid var(--brass-500);
  border-bottom: 1px solid rgba(196, 162, 90, 0.4);
  padding-bottom: 3px;
  margin: 0 0 1.6rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Karta-pieczęć w hero */
.hero__card {
  position: relative;
  background: rgba(252, 248, 240, 0.04);
  border: 1px solid var(--rule-ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.1rem;
  box-shadow: var(--shadow-md);
}
.hero__card h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0;
  color: #F1E7D3;
}
.hero__card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.hero__card li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--text-invert-soft);
  font-size: 0.96rem;
}
.hero__card li svg { width: 1.35rem; height: 1.35rem; color: var(--brass-400); margin-top: 0.15rem; }

/* =====================================================================
   PRZYCISKI
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--step), background var(--step), border-color var(--step), color var(--step);
}
.btn svg { width: 1.05rem; height: 1.05rem; }
.btn--brass {
  background: linear-gradient(180deg, var(--brass-400), var(--brass-500));
  color: var(--ink-900);
  box-shadow: var(--shadow-md);
}
.btn--brass:hover { transform: translateY(-2px); color: var(--ink-900); }
.btn--ghost {
  background: transparent;
  border-color: var(--brass-400);
  color: var(--brass-300);
}
.btn--ghost:hover { background: rgba(196, 162, 90, 0.12); color: #F1E7D3; }
.btn--outline {
  background: var(--card);
  border-color: var(--rule);
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover { border-color: var(--brass-400); color: var(--ink-900); transform: translateY(-2px); }

/* =====================================================================
   SEKCJE OGÓLNE
   ===================================================================== */
main { display: block; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--paper2 { background: var(--paper-2); border-block: 1px solid var(--rule-soft); }

.section__head { max-width: var(--measure); margin: 0 auto clamp(1.8rem, 4vw, 2.8rem); text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin: 0 0 0.9rem;
  font-weight: 600;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--brass-400);
}
.section__head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem);
  line-height: 1.14;
  margin: 0;
  color: var(--ink-900);
  text-wrap: balance;
}
.section__head p { color: var(--text-soft); margin: 0.9rem auto 0; max-width: 54ch; }

/* Ornament centralny */
.fleuron {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--brass-500);
  margin: 0 auto;
}
.fleuron::before, .fleuron::after {
  content: "";
  height: 1px;
  width: min(9rem, 24vw);
  background: linear-gradient(90deg, transparent, var(--brass-400));
}
.fleuron::after { background: linear-gradient(270deg, transparent, var(--brass-400)); }
.fleuron svg { width: 1.4rem; height: 1.4rem; }

/* =====================================================================
   ARTYKUŁ / TREŚĆ CZYTELNA
   ===================================================================== */
.prose {
  max-width: var(--measure);
  margin-inline: auto;
}
.prose > * + * { margin-top: 1.35rem; }
.prose p { margin: 0; }
.prose p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  padding: 0.06em 0.14em 0 0;
  color: var(--brass-600);
  font-weight: 600;
}
.prose a { font-weight: 600; }

/* =====================================================================
   KARTY (siatka stron / indeks)
   ===================================================================== */
.card-grid {
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.7rem);
  grid-template-columns: 1fr;
  max-width: var(--shell);
  margin-inline: auto;
}
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform var(--step), box-shadow var(--step), border-color var(--step);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brass-500), var(--brass-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--step);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brass-400); }
.card:hover::before { transform: scaleX(1); }
.card__num {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--brass-700);
}
.card__icon { width: 2.4rem; height: 2.4rem; color: var(--brass-600); }
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
  color: var(--ink-900);
  line-height: 1.2;
}
.card p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.card__more {
  margin-top: auto;
  padding-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brass-700);
}
.card__more svg { width: 1rem; height: 1rem; transition: transform var(--step); }
.card:hover .card__more svg { transform: translateX(4px); }

/* =====================================================================
   CHIPY / INDEKS ODNOŚNIKÓW
   ===================================================================== */
.index-panel {
  max-width: var(--shell);
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.index-panel h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 1.1rem;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.index-panel h3 svg { width: 1.2rem; height: 1.2rem; color: var(--brass-600); }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  color: var(--ink-800);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color var(--step), background var(--step), transform var(--step);
}
.chip::before {
  content: "";
  width: 0.42rem; height: 0.42rem;
  border-radius: 50%;
  background: var(--brass-500);
  flex: none;
}
.chip:hover { border-color: var(--brass-400); background: var(--card); transform: translateY(-2px); color: var(--ink-900); }

/* Lista definicyjna META / fakty */
.factlist {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  gap: 0.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .factlist { grid-template-columns: repeat(2, 1fr); gap: 0.4rem 2.5rem; } }
.factlist div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid var(--rule-soft);
}
.factlist dt { color: var(--text-soft); font-size: 0.92rem; }
.factlist dd { margin: 0; font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; }

/* =====================================================================
   UKŁAD ARTYKUŁU Z BOCZKIEM (wpis / podstrona)
   ===================================================================== */
.article-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  max-width: var(--shell);
  margin-inline: auto;
}
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; }
}
.article-head { margin-bottom: 2rem; }
.article-head .eyebrow { justify-content: flex-start; }
.article-head .eyebrow::after { display: none; }
.article-head h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.1;
  margin: 0.4rem 0 1rem;
  color: var(--ink-900);
  text-wrap: balance;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--rule);
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.article-meta svg { width: 1rem; height: 1rem; color: var(--brass-600); }

/* Boczek */
.aside { display: grid; gap: 1.4rem; position: sticky; top: 5.6rem; }
@media (max-width: 999px) { .aside { position: static; } }
.aside__box {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.aside__box h2, .aside__box h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  margin: 0 0 0.9rem;
  color: var(--ink-900);
}
.aside__box.on-ink {
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  border-color: var(--rule-ink);
  color: var(--text-invert-soft);
}
.aside__box.on-ink h2, .aside__box.on-ink h3 { color: #F1E7D3; }
.aside nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.aside nav a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink-700);
  font-size: 0.93rem;
  border-left: 2px solid transparent;
  transition: background var(--step), border-color var(--step), color var(--step);
}
.aside nav a:hover { background: var(--paper-2); border-left-color: var(--brass-500); color: var(--ink-900); }
.aside nav a[aria-current="page"] { color: var(--brass-700); border-left-color: var(--brass-500); font-weight: 600; }

/* Placeholder OBRAZ */
.figure-ph { margin: 2rem 0 0; }
.img-ph {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg, rgba(196,162,90,0.06) 0 10px, transparent 10px 20px),
    var(--card);
  display: grid;
  place-items: center;
  padding: 2.2rem 1.5rem;
  text-align: center;
  gap: 0.9rem;
}
.img-ph svg { width: 3rem; height: 3rem; color: var(--brass-500); }
.img-ph figcaption, .figure-ph figcaption {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-style: italic;
}

/* =====================================================================
   PAGINACJA
   ===================================================================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 2.8rem auto 0;
}
.pagination a, .pagination span {
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color var(--step), background var(--step), color var(--step);
}
.pagination a:hover { border-color: var(--brass-400); color: var(--ink-900); }
.pagination [aria-current="page"] {
  background: var(--ink-800);
  border-color: var(--ink-800);
  color: var(--text-invert);
}
.pagination .is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* =====================================================================
   CALL-OUT WSTĘGA
   ===================================================================== */
.ribbon {
  max-width: var(--shell);
  margin-inline: auto;
  background: linear-gradient(155deg, var(--ink-800), var(--ink-900));
  color: var(--text-invert-soft);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: grid;
  gap: 1.6rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.ribbon::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(196,162,90,0.05) 0 1px, transparent 1px 24px);
  pointer-events: none;
}
@media (min-width: 820px) { .ribbon { grid-template-columns: 1fr auto; } }
.ribbon h2 { font-family: var(--serif); color: #F2E8D4; margin: 0 0 0.6rem; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
.ribbon p { margin: 0; max-width: 52ch; position: relative; }
.ribbon .btn { position: relative; }

/* =====================================================================
   STOPKA
   ===================================================================== */
.site-footer {
  background: var(--ink-900);
  color: var(--text-invert-soft);
  border-top: 3px solid var(--brass-500);
  margin-top: clamp(3rem, 8vw, 6rem);
}
.site-footer__top {
  display: grid;
  gap: 2.2rem;
  padding-block: clamp(2.6rem, 6vw, 4rem);
}
@media (min-width: 780px) { .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 1rem; max-width: 34ch; }
.footer-brand .brand__name { color: #F1E7D3; }
.footer-brand .brand__kicker { color: var(--brass-300); }
.footer-brand p { margin: 0; font-size: 0.92rem; color: var(--text-invert-soft); }
.footer-col h3 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-300);
  margin: 0 0 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--text-invert-soft); text-decoration: none; font-size: 0.93rem; }
.footer-col a:hover { color: #F1E7D3; text-decoration: underline; }

.footer-rss { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--brass-300); text-decoration: none; }
.footer-rss:hover { color: #F1E7D3; }
.footer-rss svg { width: 1.5rem; height: 1.5rem; }

.site-footer__bottom {
  border-top: 1px solid rgba(196, 162, 90, 0.24);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-invert-soft);
}
.site-footer__bottom a { color: var(--text-invert-soft); }
.site-footer__bottom a:hover { color: #F1E7D3; }
.footer-tp { opacity: 0.85; }

/* Utility */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* =========================================================================
   Skala powyżej 1366 px (przegląd przed K4, Fable 2026-09-08)
   Pismo rośnie płynnie 16 → 20 px, kontener trzyma ~95 px marginesu
   bocznego aż do 1920 px; kolumny boczne w rem, żeby rosły z pismem.
   ========================================================================= */
@media (min-width: 1367px) {
  html { font-size: clamp(1rem, 0.384rem + 0.722vw, 1.25rem); }  /* 16 px przy 1366 → 20 px przy 1920 */
  :root { --shell: max(76rem, min(100vw - 190px, 1730px)); }
}

/* =========================================================================
   Menu główne POZA <details> (poprawka Fable 2026-09-08, przegląd przed K4)
   Zamknięty <details> nie renderuje swojej zawartości, więc menu trzymane
   w środku było NIEWIDOCZNE na desktopie (przycisk ukryty, lista w zamkniętym
   details). Teraz <details> jest tylko przełącznikiem, a lista jego
   rodzeństwem: telefon — rozwijana przez .menu[open] + lista (bez JS),
   desktop — lista statyczna, przycisk ukryty.
   ========================================================================= */
/* (reguły naniesione w blokach „Menu” powyżej) */
