/* ==========================================================================
   Kancelaria Radców Prawnych B&J — Bąk, Janocha
   Design system — granat + złoto
   ========================================================================== */

/* --- 1. Tokeny ---------------------------------------------------------- */
:root {
  /* Marka */
  --ink:          #101A2C;
  --navy:         #1E3153;
  --navy-700:     #17263F;
  --navy-900:     #0D1626;
  --navy-soft:    #2B4472;

  /* Złoto tekstowe przyciemnione do kontrastu 4.5:1 na jasnym tle (WCAG AA) */
  --gold:         #886934;
  --gold-400:     #C6A468;
  --gold-200:     #E3D2AE;
  --gold-50:      #F5EEE0;

  --paper:        #FBFAF8;
  --paper-2:      #F4F1EB;
  --line:         #E3DED4;
  --line-strong:  #CFC7B8;

  --text:         #1C2331;
  --text-muted:   #5C6679;
  --text-faint:   #656F80;
  --on-dark:      #EEF1F6;
  --on-dark-mut:  #A9B4C8;

  /* Typografia */
  --serif: "Lora", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Skala */
  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0:  clamp(1rem, 0.96rem + 0.19vw, 1.09rem);
  --step-1:  clamp(1.19rem, 1.11rem + 0.36vw, 1.4rem);
  --step-2:  clamp(1.42rem, 1.29rem + 0.63vw, 1.8rem);
  /* Dolne progi obniżone tak, by nagłówki mieściły się na ekranach 320–360 px */
  --step-3:  clamp(1.5rem, 1.15rem + 1.7vw, 2.31rem);
  --step-4:  clamp(1.7rem, 1.15rem + 2.7vw, 2.97rem);
  --step-5:  clamp(1.95rem, 1.1rem + 4.1vw, 3.82rem);
  --step-6:  clamp(2rem, 0.85rem + 5.6vw, 4.9rem);

  /* Rytm */
  --gutter: clamp(1.25rem, 0.9rem + 1.7vw, 2.5rem);
  --wrap: 1280px;
  --wrap-narrow: 900px;
  --sec-y: clamp(4.5rem, 3rem + 6vw, 9rem);

  /* Ruch */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.33, 1, .68, 1);
  --dur: .55s;

  /* Cienie — barwione granatem, nigdy czyste czarne */
  --sh-1: 0 1px 2px rgba(16, 26, 44, .05), 0 4px 14px -8px rgba(16, 26, 44, .12);
  --sh-2: 0 2px 6px rgba(16, 26, 44, .05), 0 18px 40px -22px rgba(16, 26, 44, .3);
  --sh-3: 0 30px 70px -35px rgba(16, 26, 44, .45);

  --header-h: 76px;
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Blokada poziomego przewijania na mobile.
   `clip` (w odróżnieniu od `hidden`) nie tworzy kontenera przewijania,
   więc nie da się „przesunąć" strony w bok, a sticky header dalej działa. */
html, body { overflow-x: clip; max-width: 100%; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
main, .section, .cta, .footer, .hero { overflow-x: clip; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }

/* Zabezpieczenie przed poziomym przepełnieniem na wąskich ekranach —
   długie polskie wyrazy (np. „zadośćuczynienie") potrafią rozepchnąć layout. */
body, h1, h2, h3, h4, h5, p, li, dd, a, span { overflow-wrap: break-word; }
@media (max-width: 600px) {
  .prose p, .lead, .acc__inner p { hyphens: auto; }
}

::selection { background: var(--gold-200); color: var(--navy-900); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- 3. Layout ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--navy-900); color: var(--on-dark); }

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
  background: var(--navy); color: #fff; padding: .75rem 1.5rem; z-index: 200;
  border-radius: 0 0 6px 6px; transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* --- 4. Typografia ------------------------------------------------------ */
.display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.04;
}
.d-1 { font-size: var(--step-6); }
.d-2 { font-size: var(--step-5); }
.d-3 { font-size: var(--step-4); }
.d-4 { font-size: var(--step-3); }
.d-5 { font-size: var(--step-2); }

.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  flex-wrap: wrap; min-width: 0;
  font-family: var(--sans);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; flex: none; width: 34px; height: 1px; background: currentColor; opacity: .65;
}
@media (max-width: 600px) {
  .eyebrow { letter-spacing: .16em; gap: .55rem; }
  .eyebrow::before { width: 22px; }
}
.eyebrow--center::after {
  content: ""; width: 34px; height: 1px; background: currentColor; opacity: .65;
}
.section--ink .eyebrow { color: var(--gold-400); }

.lead {
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 62ch;
}
.section--ink .lead { color: var(--on-dark-mut); }

.muted { color: var(--text-muted); }
.measure { max-width: 68ch; }

/* Ozdobny cytat / motto */
.motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--navy);
}

/* --- 5. Przyciski ------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1rem 1.9rem;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--gold); box-shadow: var(--sh-2); }
.btn:hover::after { transform: scaleX(1); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #fff; }
.btn--gold::after { background: var(--navy); }
.btn--gold:hover { border-color: var(--navy); }
.btn--light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.34); }
.btn--light:hover { border-color: var(--gold); }
.btn--sm { padding: .72rem 1.3rem; font-size: .7rem; }

/* Link ze złotą kreską */
.link-u {
  position: relative;
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .78rem;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--navy);
  padding-bottom: .3rem;
}
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold);
  transform: scaleX(1); transform-origin: right;
  transition: transform .4s var(--ease);
}
.link-u:hover::after { transform: scaleX(0); }
.link-u .ico { transition: transform .35s var(--ease); }
.link-u:hover .ico { transform: translateX(5px); }
.section--ink .link-u { color: var(--gold-400); }

.ico { flex: none; }

/* --- 6. Górny pasek ----------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: var(--on-dark-mut);
  font-size: .78rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 42px; flex-wrap: wrap;
}
.topbar__list { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.topbar__list li { display: flex; align-items: center; gap: .45rem; }
.topbar a { transition: color .25s var(--ease); }
.topbar a:hover { color: var(--gold-400); }
.topbar .ico { opacity: .55; }
.topbar__right { display: flex; align-items: center; gap: 1.35rem; }
.topbar__cta {
  color: var(--gold-400); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; font-size: .68rem;
}
@media (max-width: 900px) { .topbar { display: none; } }

/* --- 7. Nagłówek -------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 250, 248, .82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.header.is-stuck {
  border-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(16, 26, 44, .5);
}
.header__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: clamp(178px, 20vw, 218px); transition: width .4s var(--ease); }
.header.is-stuck .brand img { width: clamp(160px, 17vw, 188px); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__link {
  position: relative;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-700);
  padding-block: .4rem;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--gold); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 1080px) { .header__cta .btn { display: none; } }
@media (max-width: 980px) { .nav { display: none; } }

/* Hamburger */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  background: none; border: 1px solid var(--line-strong); border-radius: 2px;
  cursor: pointer;
  transition: border-color .3s var(--ease);
}
.burger:hover { border-color: var(--gold); }
.burger span {
  display: block; height: 1.5px; width: 100%; background: var(--navy);
  transition: transform .4s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 980px) { .burger { display: flex; } }

/* Menu mobilne */
.mobile {
  position: fixed; inset: 0; z-index: 95;
  background: var(--navy-900); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 1.1rem var(--gutter) 2.5rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s;
  overflow-y: auto;
}
.mobile.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile__head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.mobile__head img { width: 190px; }
.mobile__close {
  width: 46px; height: 46px; background: none; border: 1px solid rgba(255,255,255,.25);
  border-radius: 2px; color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: border-color .3s var(--ease);
}
.mobile__close:hover { border-color: var(--gold-400); }
.mobile__nav { display: flex; flex-direction: column; justify-content: center; gap: .1rem; }
.mobile__nav a {
  font-family: var(--serif); font-size: clamp(1.6rem, 7vw, 2.4rem);
  padding-block: .55rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(14px);
  transition: color .25s var(--ease);
}
.mobile.is-open .mobile__nav a {
  animation: m-in .6s var(--ease) forwards;
  animation-delay: calc(var(--i) * 55ms + 100ms);
}
@keyframes m-in { to { opacity: 1; transform: none; } }
.mobile__nav a:hover { color: var(--gold-400); }
.mobile__nav .n { font-family: var(--sans); font-size: .7rem; color: var(--gold-400); letter-spacing: .1em; }
.mobile__foot { display: grid; gap: .6rem; font-size: .9rem; color: var(--on-dark-mut); padding-top: 1.5rem; }
.mobile__foot a:hover { color: var(--gold-400); }

body.is-locked { overflow: hidden; }

/* --- 8. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--navy-900) 0%, rgba(13,22,38,.96) 34%, rgba(13,22,38,.72) 55%, rgba(13,22,38,.35) 78%, rgba(13,22,38,.55) 100%),
    linear-gradient(to top, var(--navy-900) 2%, transparent 30%);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: clamp(560px, 88vh, 860px);
  padding-block: clamp(4rem, 9vw, 7rem);
}
.hero__title { font-size: var(--step-6); letter-spacing: -.03em; }
.hero__title .amp { color: var(--gold-400); font-style: italic; }
.hero__sub {
  display: block; margin-top: .35rem;
  font-size: var(--step-5); color: var(--gold-400);
}
.hero__cities {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  margin-top: 2rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-mut); font-weight: 600;
}
.hero__cities li { display: flex; align-items: center; gap: .8rem; }
.hero__cities li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-400); }

/* Na wąskich ekranach kropki-separatory po zawinięciu wiersza lądowały
   na jego początku i wyglądały jak błąd. Zastępujemy je etykietami. */
@media (max-width: 760px) {
  .hero__cities { gap: .5rem; letter-spacing: .14em; font-size: .74rem; }
  .hero__cities li {
    padding: .5rem .85rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 2px;
    background: rgba(255, 255, 255, .04);
  }
  .hero__cities li + li::before { display: none; }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

/* Karta „scorecard” w hero */
.hero__card {
  position: relative;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 3px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), var(--sh-3);
}
.hero__card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 2px; background: var(--gold);
}
.hero__card dl { display: grid; gap: 1.35rem; }
.hero__card dt {
  font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: .3rem;
}
.hero__card dd { font-size: .96rem; line-height: 1.55; color: var(--on-dark); }
.hero__card dd a:hover { color: var(--gold-400); }
.hero__card .row + .row { padding-top: 1.35rem; border-top: 1px solid rgba(255,255,255,.1); }

/* --- Hero na urządzeniach mobilnych ------------------------------------ */
/* Zdjęcie przestaje być ledwie widocznym tłem i staje się osobnym,
   pełnoszerokim kadrem między nagłówkiem a kartą kontaktową.            */
@media (max-width: 980px) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: 2.8rem 3.2rem;
    gap: clamp(1.8rem, 5vw, 2.6rem);
  }
  .hero__media {
    position: relative; inset: auto; z-index: 0;
    margin-inline: calc(var(--gutter) * -1);
    border-top: 2px solid var(--gold-400);
    overflow: hidden;
  }
  .hero__media img {
    width: 100%;
    height: clamp(230px, 58vw, 380px);
    object-position: 56% 48%;
  }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(13,22,38,.34) 0%, rgba(13,22,38,.06) 40%, rgba(13,22,38,.62) 100%);
  }
  .hero__title { letter-spacing: -.026em; }
  .hero__actions { gap: .7rem; }
  .hero__cities { margin-top: 1.6rem; padding-top: 1.4rem; }
  .hero__card { padding: 1.6rem 1.4rem; }
}

@media (max-width: 520px) {
  /* Przyciski na pełną szerokość — równa krawędź czyta się porządniej
     niż dwa bloki o przypadkowej długości. */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* --- 9. Filary (3 x numer) ---------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.pillar {
  padding: clamp(2rem, 3.4vw, 3.2rem) clamp(1.2rem, 2.4vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar__n {
  font-family: var(--serif); font-size: 2.6rem; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-400);
  margin-bottom: 1.4rem;
}
.pillar h3 { font-family: var(--serif); font-size: var(--step-1); margin-bottom: .7rem; color: var(--navy); }
.pillar p { color: var(--text-muted); font-style: italic; font-family: var(--serif); line-height: 1.6; }
.pillar::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--gold);
  transition: width .6s var(--ease);
}
.pillar:hover::after { width: 100%; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar + .pillar { border-left: 0; }
}

/* --- 10. Blok „split” --------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split--wide-l { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--wide-r { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: 2px; box-shadow: var(--sh-2); }
.split__frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border: 1px solid var(--gold-400); border-radius: 2px;
}
.split__frame { position: relative; z-index: 1; }
.split__badge {
  position: absolute; right: -18px; bottom: -18px;
  background: var(--navy); color: #fff;
  padding: 1.15rem 1.5rem; border-radius: 2px;
  box-shadow: var(--sh-2); max-width: 230px;
}
.split__badge strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--gold-400); }
.split__badge span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mut); }
@media (max-width: 900px) {
  .split, .split--wide-l, .split--wide-r { grid-template-columns: minmax(0, 1fr); }
  .split--rev .split__media { order: -1; }
  .split__frame::before { inset: 16px -16px -16px 16px; }
  .split__badge { right: 0; bottom: -14px; }
}

/* --- 11. Panel informacyjny (godziny / adresy) -------------------------- */
.infogrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  border: 1px solid var(--line);
  background: #fff;
}
.infogrid__cell { padding: 1.6rem 1.5rem; border-right: 1px solid var(--line); }
.infogrid__cell:last-child { border-right: 0; }
.infogrid__cell h4 {
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
.infogrid__cell p, .infogrid__cell a { font-size: .95rem; line-height: 1.65; color: var(--text); }
.infogrid__cell a:hover { color: var(--gold); }
@media (max-width: 720px) {
  .infogrid__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .infogrid__cell:last-child { border-bottom: 0; }
}

/* --- 12. Kafle usług (bento) -------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile {
  grid-column: span 2;
  position: relative;
  display: flex; flex-direction: column; gap: .8rem;
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
  background: #fff;
  isolation: isolate;
  overflow: hidden;
  transition: color .4s var(--ease);
}
.tile--wide { grid-column: span 3; }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--navy-900);
  transform: translateY(100%);
  transition: transform .5s var(--ease);
}
.tile:hover { color: #fff; }
.tile:hover::before { transform: translateY(0); }
.tile__ico { color: var(--gold); transition: transform .5s var(--ease); }
.tile:hover .tile__ico { transform: translateY(-3px) scale(1.06); color: var(--gold-400); }
.tile h3 { font-family: var(--serif); font-size: var(--step-1); color: inherit; }
.tile p { font-size: .9rem; color: var(--text-muted); transition: color .4s var(--ease); }
.tile:hover p { color: var(--on-dark-mut); }
.tile__go {
  margin-top: auto; padding-top: .8rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: .5rem;
}
.tile:hover .tile__go { color: var(--gold-400); }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile, .tile--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile--wide { grid-column: span 1; }
}

/* --- 13. Kroki (proces online) ------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.step { padding: 2.2rem 1.6rem 0 0; position: relative; }
.step__n {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%;
  font-family: var(--serif); font-size: 1.1rem; color: var(--gold);
  background: var(--paper);
  position: relative; z-index: 2; margin-bottom: 1.3rem;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.step:hover .step__n { background: var(--gold); color: #fff; transform: translateY(-3px); }
.step::before {
  content: ""; position: absolute; left: 23px; top: calc(2.2rem + 23px); right: 0; height: 1px;
  background: var(--line-strong); z-index: 1;
}
.step:last-child::before { display: none; }
.step p { font-size: .95rem; color: var(--text-muted); padding-right: 1rem; }
.section--ink .step__n { background: var(--navy-900); color: var(--gold-400); border-color: var(--gold-400); }
.section--ink .step:hover .step__n { background: var(--gold-400); color: var(--navy-900); }
.section--ink .step p { color: var(--on-dark-mut); }
.section--ink .step::before { background: rgba(255,255,255,.16); }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 0 0 2.2rem 4.2rem; }
  .step__n { position: absolute; left: 0; top: 0; margin: 0; }
  .step::before { left: 23px; top: 46px; right: auto; bottom: 0; width: 1px; height: auto; }
  .step:last-child { padding-bottom: 0; }
}

/* --- 14. Wpisy bloga ---------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.post {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.post__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__cat {
  position: absolute; left: 0; bottom: 0;
  background: var(--navy-900); color: var(--gold-400);
  padding: .5rem .9rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.post__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.post__date { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.post__title { font-family: var(--serif); font-size: var(--step-1); line-height: 1.25; color: var(--navy); }
.post:hover .post__title { color: var(--gold); }
.post__title a::after { content: ""; position: absolute; inset: 0; }
.post { position: relative; }
.post__excerpt { font-size: .92rem; color: var(--text-muted); }
.post__more {
  margin-top: auto; padding-top: .6rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: .5rem;
}

/* Wpis wyróżniony */
.post--feature { grid-column: 1 / -1; flex-direction: row; }
.post--feature .post__media { flex: 0 0 52%; aspect-ratio: auto; }
.post--feature .post__body { padding: clamp(1.8rem, 3.2vw, 3rem); justify-content: center; gap: 1rem; }
.post--feature .post__title { font-size: var(--step-3); }
.post--feature .post__excerpt { font-size: var(--step-0); }
@media (max-width: 860px) {
  .post--feature { flex-direction: column; }
  .post--feature .post__media { flex: none; aspect-ratio: 16 / 9; }
}

/* --- 15. Pas CTA -------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: #fff;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background: radial-gradient(120% 160% at 88% 20%, var(--gold) 0%, transparent 55%);
}
.cta__in {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(3.5rem, 6vw, 6rem);
}
.cta__contacts { display: grid; gap: 1.1rem; }
.cta__contact {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
.cta__contact:last-child { border-bottom: 0; padding-bottom: 0; }
.cta__contact .ico { color: var(--gold-400); }
.cta__contact small { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-mut); }
.cta__contact b { font-family: var(--serif); font-size: var(--step-1); font-weight: 600; }
.cta__contact a:hover { color: var(--gold-400); }
@media (max-width: 900px) { .cta__in { grid-template-columns: minmax(0, 1fr); } }

/* --- 16. Stopka --------------------------------------------------------- */
.footer { background: var(--navy-900); color: var(--on-dark-mut); font-size: .92rem; }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.footer__logo { width: 218px; margin-bottom: 1.4rem; }
.footer h4 {
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 1.15rem;
}
.footer ul { display: grid; gap: .65rem; }
.footer a { transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer a:hover { color: #fff; }
.footer__nav a:hover { padding-left: 5px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: .82rem; color: var(--text-faint);
}
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: 2px;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.footer__social a:hover { border-color: var(--gold); color: var(--gold-400); transform: translateY(-2px); }
@media (max-width: 900px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }

/* --- 17. Nagłówek podstrony -------------------------------------------- */
.pagehead {
  position: relative; background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate;
}
.pagehead__media { position: absolute; inset: 0; z-index: -2; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, var(--navy-900) 12%, rgba(13,22,38,.86) 52%, rgba(13,22,38,.6) 100%);
}
.pagehead__in { padding-block: clamp(3.5rem, 7vw, 6.5rem); max-width: 780px; }
.pagehead h1 { font-size: var(--step-5); margin-top: 1rem; }
.pagehead p { margin-top: 1.2rem; color: var(--on-dark-mut); font-size: var(--step-1); max-width: 60ch; }

.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-mut); }
.crumbs li::after { content: "/"; margin-left: .5rem; opacity: .45; }
.crumbs li:last-child::after { display: none; }
.crumbs a:hover { color: var(--gold-400); }
.crumbs [aria-current] { color: var(--gold-400); }

/* --- 18. Akordeon usług ------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; gap: 1.2rem;
  padding: clamp(1.2rem, 2vw, 1.7rem) 0;
  background: none; border: 0; text-align: left; cursor: pointer;
  transition: color .3s var(--ease);
}
.acc__btn:hover { color: var(--gold); }
.acc__n {
  font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  color: var(--gold); flex: none; width: 2.2rem;
}
.acc__ttl { font-family: var(--serif); font-size: var(--step-2); font-weight: 600; flex: 1; color: inherit; }
.acc__ico {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: transform .45s var(--ease), border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.acc__btn:hover .acc__ico { border-color: var(--gold); }
.acc__btn[aria-expanded="true"] .acc__ico { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); color: #fff; }
.acc__btn[aria-expanded="true"] { color: var(--gold); }
.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__inner { padding: 0 0 2rem calc(2.2rem + 1.2rem); max-width: 74ch; }
.acc__inner > * + * { margin-top: 1rem; }
@media (max-width: 640px) { .acc__inner { padding-left: 0; } }

/* Lista wypunktowana ze złotym znacznikiem */
.ticks { display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--text-muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg);
}
.ticks--cols { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: .6rem 2rem; }

/* --- 19. Zespół --------------------------------------------------------- */
.person {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.person--rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.person--rev .person__media { order: 2; }
.person__media { position: relative; }
.person__media img { width: 100%; border-radius: 2px; box-shadow: var(--sh-2); }
.person__media::before {
  content: ""; position: absolute; inset: -18px -18px 40% 18px; z-index: -1;
  background: var(--paper-2); border-top: 2px solid var(--gold);
}
.person__role {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  margin-top: .7rem;
}
.person__body > * + * { margin-top: 1.15rem; }
.person__body p { color: var(--text-muted); }
.person__body a { color: var(--navy); border-bottom: 1px solid var(--gold-400); transition: color .25s var(--ease); }
.person__body a:hover { color: var(--gold); }
.person__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .06em;
  padding: .4rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--text-muted);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
a.tag:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 860px) {
  .person, .person--rev { grid-template-columns: minmax(0, 1fr); }
  .person--rev .person__media { order: 0; }
  .person__media { max-width: 420px; }
}

/* --- 20. Artykuł -------------------------------------------------------- */
.progress {
  position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 99;
  background: transparent; pointer-events: none;
}
.progress__bar { height: 100%; width: 0; background: var(--gold); transform-origin: left; }

.article__hero { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.article__hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 2px; box-shadow: var(--sh-2); }
.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint);
}
.article__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.article__meta a { color: var(--gold); }

.prose { max-width: 72ch; margin-inline: auto; }
.prose > * + * { margin-top: 1.35rem; }
.prose p { color: var(--text-muted); line-height: 1.78; }
.prose strong { color: var(--text); font-weight: 700; }
.prose h2 {
  font-family: var(--serif); font-size: var(--step-3); color: var(--navy);
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.prose h3 { font-family: var(--serif); font-size: var(--step-2); color: var(--navy); margin-top: 2.4rem; }
.prose h4 { font-family: var(--serif); font-size: var(--step-1); color: var(--navy); margin-top: 2rem; }
.prose ul { display: grid; gap: .65rem; margin-left: 0; }
.prose ul li { position: relative; padding-left: 1.6rem; color: var(--text-muted); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg);
}
.prose ol { display: grid; gap: .8rem; counter-reset: n; }
.prose ol li { position: relative; padding-left: 2.2rem; color: var(--text-muted); counter-increment: n; }
.prose ol li::before {
  content: counter(n) "."; position: absolute; left: 0; top: 0;
  font-family: var(--serif); color: var(--gold); font-weight: 600;
}
.prose a { color: var(--navy); border-bottom: 1px solid var(--gold-400); }
.prose a:hover { color: var(--gold); }
.prose figure { margin-block: 2.5rem; }
.prose figure img { width: 100%; border-radius: 2px; box-shadow: var(--sh-2); }
.prose figcaption {
  margin-top: .8rem; font-size: .82rem; font-style: italic;
  color: var(--text-faint); text-align: center; font-family: var(--serif);
}
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding: .3rem 0 .3rem 1.6rem;
  font-family: var(--serif); font-style: italic; font-size: var(--step-1);
  color: var(--navy);
}
.prose .callout {
  background: var(--gold-50); border: 1px solid var(--gold-200);
  padding: 1.4rem 1.6rem; border-radius: 2px;
}
.prose .callout p { color: var(--navy-700); }

.postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.postnav a { background: #fff; padding: 1.6rem; display: grid; gap: .5rem; transition: background .35s var(--ease); }
.postnav a:hover { background: var(--paper-2); }
.postnav small { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.postnav b { font-family: var(--serif); font-weight: 600; font-size: var(--step-0); color: var(--navy); }
.postnav .next { text-align: right; }
.postnav .empty { background: var(--paper-2); }
@media (max-width: 640px) { .postnav { grid-template-columns: minmax(0, 1fr); } .postnav .next { text-align: left; } }

/* --- 21. Kontakt / formularz ------------------------------------------- */
.field { display: grid; gap: .5rem; }
.field label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.field .hint { font-size: .8rem; color: var(--text-faint); }
.field input, .field textarea, .field select {
  width: 100%; padding: .9rem 1rem;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 2px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169,131,65,.14);
}
.field textarea { min-height: 160px; resize: vertical; }
.field .err { font-size: .8rem; color: #A6402F; display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #A6402F; }
.field.is-invalid .err { display: block; }
.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .84rem; color: var(--text-muted); }
.check input { width: 18px; height: 18px; margin-top: .22rem; accent-color: var(--gold); flex: none; }
.form__note { font-size: .84rem; color: var(--text-faint); }
.form__status { display: none; padding: 1rem 1.2rem; border-radius: 2px; font-size: .9rem; }
.form__status.is-on { display: block; }
.form__status--ok { background: var(--gold-50); border: 1px solid var(--gold-200); color: var(--navy-700); }

.mapbox { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--paper-2); }
.mapbox iframe { display: block; width: 100%; height: clamp(320px, 44vh, 460px); border: 0; }

.contact-card {
  border: 1px solid var(--line); background: #fff; padding: clamp(1.5rem, 2.6vw, 2.2rem);
  display: grid; gap: 1.1rem; border-radius: 2px;
  transition: border-color .35s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.contact-card:hover { border-color: var(--gold-200); transform: translateY(-3px); box-shadow: var(--sh-1); }
.contact-card h3 { font-family: var(--serif); font-size: var(--step-1); color: var(--navy); }
.contact-card .row { display: flex; gap: .9rem; align-items: flex-start; }
.contact-card .ico { color: var(--gold); margin-top: .18rem; }
.contact-card a:hover { color: var(--gold); }

/* --- 22. Filtr bloga ---------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .55rem 1.05rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); background: none; cursor: pointer;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty-state {
  display: none; text-align: center; padding: 4rem 1rem;
  border: 1px dashed var(--line-strong); border-radius: 2px; color: var(--text-muted);
}
.empty-state.is-on { display: block; }
.empty-state .ico { margin: 0 auto 1rem; color: var(--line-strong); }

/* --- 23. Baner cookies -------------------------------------------------- */
.cookies {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 120;
  width: min(430px, calc(100vw - var(--gutter) * 2));
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold);
  border-radius: 2px; padding: 1.5rem;
  box-shadow: var(--sh-3);
  display: grid; gap: 1rem;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.cookies.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cookies h4 { font-family: var(--serif); font-size: var(--step-1); color: var(--navy); }
.cookies p { font-size: .86rem; color: var(--text-muted); }
.cookies__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* --- 24. Animacje ------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .95s var(--ease);
  transition-delay: calc(var(--i, 0) * 85ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-26px); }
[data-reveal="right"] { transform: translateX(26px); }
[data-reveal="scale"] { transform: scale(.965); }

/* Na wąskich ekranach animacje boczne rozpychają layout — wjazd od dołu. */
@media (max-width: 900px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(22px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --- 25. Pomocnicze ----------------------------------------------------- */
.stack > * + * { margin-top: 1.2rem; }
.stack-lg > * + * { margin-top: 2rem; }
.stack-xl > * + * { margin-top: clamp(2.5rem, 4vw, 4rem); }
.row-end { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }
.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;
}
.rule { height: 1px; background: var(--line); border: 0; }
.gold-rule { width: 54px; height: 2px; background: var(--gold); border: 0; }

/* Pływający guzik „do góry” */
.totop {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 80;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--navy); color: #fff; border: 0; border-radius: 2px; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease), background .3s var(--ease);
  box-shadow: var(--sh-2);
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--gold); }
@media (max-width: 560px) { .totop { display: none; } }

/* Druk */
@media print {
  .header, .topbar, .footer, .cookies, .totop, .mobile, .progress, .cta { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
}
