/* ==========================================================================
   adwokat-karolczyk.pl — propozycja graficzna
   Układ i typografia z szablonu SupremeCourt (Qode Interactive),
   kolorystyka z logo kancelarii: czerń #000000 + czerwień #E53333.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENY */
:root {
  /* kolory z logo kancelarii: czerń #000000 + czerwień #E53333 */
  --navy:        #121216;  /* główna powierzchnia ciemna */
  --navy-deep:   #000000;  /* czerń z logo — pasek górny, stopka */
  --navy-soft:   #1C1C22;

  /* Czerwień z logo to #E53333. Na jasnym tle daje 4,33:1 — poniżej progu
     WCAG 1.4.3 (4,5:1) dla małego tekstu, dlatego jako kolor UI używamy
     przyciemnionego #CC2222 (5,5:1 na bieli, 5,0:1 na #F4F4F5).
     Różnica jest optycznie nieuchwytna, a spełnia AA. Na ciemnym tle
     odwrotnie — potrzebny jaśniejszy #F23636 (4,77:1 na #121216). */
  --accent:      #CC2222;
  --accent-hi:   #F23636;
  --accent-brand:#E53333;  /* dokładny kolor z logo — duża typografia, dekoracje */
  --accent-dim:  rgba(229, 51, 51, .10);

  --ink:         #101014;
  --ink-muted:   #5C5C66;
  --on-dark:     #FFFFFF;
  --on-dark-dim: #D4D4D8;
  --muted-blue:  #A8A8B0;  /* 8,89:1 na czerni */
  --grey:        #8E8E96;  /* 6,46:1 na czerni */
  --placeholder: #70707A;  /* 4,90:1 na bieli */

  --bg:          #FFFFFF;
  --bg-alt:      #F4F4F5;
  --bg-off:      #FAFAFA;
  --line:        #DCDCE0;  /* linie dekoracyjne */
  --field-line:  #85858E;  /* obramowania pól — SC 1.4.11, min. 3:1 */
  --line-soft:   rgba(220, 220, 224, .7);
  --line-dark:   rgba(255, 255, 255, .13);

  /* typografia */
  --font-display: 'Marcellus', Georgia, 'Times New Roman', serif;
  --font-body:    'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;

  /* rytm */
  --wrap:      1300px;
  --wrap-slim: 1060px;
  --gutter:    clamp(20px, 4vw, 50px);
  --section-y: clamp(72px, 8vw, 130px);

  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, .14);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, .22);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- 2. RESET */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5625;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.09; }
h2 { font-size: clamp(30px, 3.9vw, 50px); line-height: 1.12; }
h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.16; }
h4 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.25; }
h5 { font-family: var(--font-body); font-size: 20px; font-weight: 400; margin: 0 0 .6em; }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* na ciemnych powierzchniach jaśniejszy wariant obrysu (SC 1.4.11) */
.section--dark :focus-visible,
.hero :focus-visible,
.cta :focus-visible,
.footer :focus-visible,
.topbar :focus-visible,
.trust :focus-visible,
.contact-direct :focus-visible,
.sticky-call :focus-visible { outline-color: var(--accent-hi); }

/* nagłówek jest przyklejony — element z fokusem nie może się pod nim chować
   (WCAG 2.2, SC 2.4.11 Focus Not Obscured) */
html { scroll-padding-top: 140px; }

/* -------------------------------------------------------------- 3. UKŁADKA */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--slim { max-width: var(--wrap-slim); }

.section { padding-block: var(--section-y); position: relative; }
.section--alt  { background: var(--bg-alt); }
.section--off  { background: var(--bg-off); }
.section--dark { background: var(--navy); color: var(--on-dark-dim); }
.section--dark h1, .section--dark h2,
.section--dark h3, .section--dark h4 { color: var(--on-dark); }

.section--tight { padding-block: clamp(52px, 5.5vw, 84px); }

/* nagłówek sekcji — wzorzec z szablonu: mała nadtytułowa etykieta + duży H2 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}
/* na ciemnym tle potrzebny jaśniejszy odcień, żeby utrzymać 4,5:1 */
.section--dark .eyebrow,
.hero .eyebrow,
.cta .eyebrow { color: var(--accent-hi); }
.section--dark .eyebrow::before,
.hero .eyebrow::before,
.cta .eyebrow::before { background: var(--accent-hi); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 4.5vw, 66px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p { color: var(--ink-muted); font-size: 17px; }
.section--dark .section-head p { color: var(--on-dark-dim); }

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}
.section-head--split > div { max-width: 660px; }

/* -------------------------------------------------------------- 4. PRZYCISKI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 17px 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--navy); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--accent); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--field-line);   /* obrys przycisku — SC 1.4.11, 3,66:1 */
}
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);   /* ~4,98:1 na ciemnym tle */
}
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--sm { padding: 13px 26px; font-size: 11.5px; }

/* link ze strzałką */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.arrow-link svg { width: 18px; height: 10px; flex: none; }
.arrow-link:hover { gap: 18px; color: var(--navy); }

/* ------------------------------------------------------------ 5. PASEK GÓRNY */
.topbar {
  background: var(--navy-deep);
  color: var(--muted-blue);
  font-size: 13.5px;
  font-weight: 400;          /* waga 300 na czerni robi się nieczytelna */
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  flex-wrap: wrap;
}
.topbar__list { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 9px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--accent-hi); flex: none; }
.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;          /* SC 2.5.8 Target Size (Minimum) */
  transition: color .25s var(--ease);
}
.topbar a:hover { color: #fff; }
.topbar__socials { display: flex; gap: 8px; font-size: 12.5px; letter-spacing: .1em; }
.topbar__socials a { min-width: 24px; justify-content: center; padding: 0 6px; }

/* --------------------------------------------------------------- 6. NAGŁÓWEK */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .35s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 30px rgba(0, 0, 0, .12); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 124px;
  transition: min-height .35s var(--ease);
}
/* po przewinięciu nagłówek się spłaszcza — jak w szablonie */
.header.is-stuck .header__inner { min-height: 86px; }

/* logo kancelarii */
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img {
  height: 92px;
  width: auto;
  display: block;
  transition: height .35s var(--ease), opacity .3s var(--ease);
}
.header.is-stuck .logo img { height: 59px; }
.logo:hover img { opacity: .82; }

.nav { display: flex; align-self: stretch; }
.nav > ul { display: flex; align-items: stretch; }
.nav__item { position: relative; display: flex; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .08em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--navy);
  transition: color .3s var(--ease);
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--accent); }
.nav__link svg { width: 9px; height: 6px; opacity: .6; }

/* stan aktywny w menu
   is-current  — pozycja prowadzi dokładnie do wyświetlanej strony,
   is-ancestor — wyświetlana strona leży w tej gałęzi (np. pojedynczy pozew).
   Sam kolor nie może być jedynym wyróżnikiem (SC 1.4.1), dlatego pod etykietą
   pojawia się kreska w kolorze z logo — 4,33:1 na bieli, próg 3:1 dla elementów
   nietekstowych (SC 1.4.11) jest spełniony z zapasem. */
.nav__item.is-current > .nav__link,
.nav__item.is-ancestor > .nav__link {
  color: var(--accent);
  background-image: linear-gradient(var(--accent-brand), var(--accent-brand));
  background-repeat: no-repeat;
  background-size: calc(100% - 22px) 2px;
  background-position: center calc(50% + 13px);
}

/* pozycja bieżąca w liście rozwijanej — jaśniejszy tekst i myślnik przy krawędzi,
   żeby nie mylił się ze stanem hover */
.nav__sub a[aria-current] { color: #fff; position: relative; padding-left: 33px; }
.nav__sub a[aria-current]::before {
  content: "";
  position: absolute;
  left: 22px; top: 50%;
  width: 7px; height: 1px;
  background: var(--accent-hi);
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 330px;
  background: var(--navy);
  padding: 14px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  box-shadow: var(--shadow-md);
}
/* focus-within otwiera listę także z klawiatury (SC 2.1.1);
   klasa is-closed pozwala zamknąć ją Escape'em (SC 1.4.13) */
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item.is-closed > .nav__sub { opacity: 0; visibility: hidden; transform: translateY(12px); }
.nav__sub a {
  display: block;
  padding: 10px 26px;
  font-size: 13.5px;
  color: var(--on-dark-dim);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.nav__sub a:hover { color: #fff; padding-left: 33px; }

.header__cta { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none;
  width: 46px; height: 46px;
  background: none; border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block; width: 20px; height: 1.5px; background: var(--navy);
  position: relative; transition: background .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px;
  background: var(--navy); transition: transform .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* menu mobilne */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: #fff;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mobile-nav .is-sub { padding-left: 20px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink-muted); }
.mobile-nav a[aria-current] {
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent-brand);
  padding-left: 14px;
}
.mobile-nav .is-sub[aria-current] { padding-left: 32px; color: var(--accent); }
.mobile-nav .btn { width: 100%; margin: 22px 0; }

/* ------------------------------------------------------------------ 7. HERO */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-dark-dim);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 620px at 78% 42%, rgba(229, 51, 51, .17), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: clamp(30px, 5vw, 74px);
  min-height: min(84vh, 760px);
  padding-block: clamp(56px, 6vw, 90px);
}
/* znak wodny — duża litera w tle, jak w szablonie */
.hero__watermark {
  position: absolute;
  right: -3%;
  bottom: -16%;
  font-family: var(--font-display);
  font-size: clamp(220px, 34vw, 520px);
  line-height: .8;
  color: rgba(255, 255, 255, .028);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--accent-hi);
}
.hero__lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--on-dark-dim);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero__phone {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff; font-size: 15px; letter-spacing: .06em;
  padding: 17px 4px;
}
.hero__phone svg { width: 17px; height: 17px; color: var(--accent-hi); }
.hero__phone:hover { color: var(--accent-hi); }

.hero__figure { position: relative; align-self: stretch; display: flex; align-items: flex-end; }
.hero__figure img {
  width: 100%;
  max-height: min(78vh, 720px);
  object-fit: cover;
  object-position: top center;
  filter: saturate(.92) contrast(1.04);
}
/* ramka akcentowa */
.hero__figure::before {
  content: "";
  position: absolute;
  inset: 26px -22px -26px 26px;
  border: 1px solid rgba(229, 51, 51, .5);
  z-index: -1;
}

.hero__badge {
  position: absolute;
  left: -34px;
  bottom: 46px;
  background: #fff;
  color: var(--navy);
  padding: 26px 30px;
  max-width: 268px;
  box-shadow: var(--shadow-lg);
}
.hero__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.18;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ink);
}
/* kreska akcentowa — ten sam motyw co etykiety sekcji */
.hero__badge strong::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--accent-brand);
  margin: 15px 0;
}
.hero__badge span { font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }

/* --------------------------------------------------- 8. PASEK WYRÓŻNIKÓW */
.trust {
  background: var(--navy-deep);
  border-top: 1px solid var(--line-dark);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust__item {
  padding: 40px 34px;
  border-right: 1px solid var(--line-dark);
  color: var(--on-dark-dim);
}
.trust__item:first-child { padding-left: 0; }
.trust__item:last-child  { border-right: 0; padding-right: 0; }
.trust__item svg { width: 30px; height: 30px; color: var(--accent-hi); margin-bottom: 16px; }
.trust__item h4 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.trust__item p  { font-size: 14px; line-height: 1.55; color: var(--muted-blue); }

/* ------------------------------------------------------------------ 9. O NAS */
.about {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(36px, 5.5vw, 84px);
  align-items: center;
}
.about__figure { position: relative; }
.about__figure img { width: 100%; object-fit: cover; }
.about__figure::after {
  content: "";
  position: absolute;
  inset: -22px -22px 22px 22px;
  border: 1px solid var(--accent);
  z-index: -1;
}
.about__quote {
  position: absolute;
  right: -28px;
  bottom: -34px;
  background: var(--navy);
  color: #fff;
  padding: 26px 30px;
  max-width: 290px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.42;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}
.about__quote::before {
  content: "";
  display: block;
  width: 32px; height: 2px;
  background: var(--accent-hi);
  margin-bottom: 15px;
}

.about__body p { color: var(--ink-muted); }
.about__body > p:first-of-type {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
}

/* lista atutów */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 30px;
  margin: 30px 0 34px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 9px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------- 10. OFERTA */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  position: relative;
  background: #fff;
  padding: clamp(30px, 3vw, 44px) clamp(26px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color .4s var(--ease), transform .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover { background: var(--bg-off); }
.card:hover::before { transform: scaleX(1); }

.card__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--accent);
}
.card h3 { font-size: clamp(19px, 1.6vw, 22px); margin: 0; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); flex: 1; }
.card .arrow-link { margin-top: 4px; }

/* --------------------------------------------------------- 11. ETAPY (oś) */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  margin-top: 20px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 29px; left: 10%; right: 10%;
  height: 1px;
  background: var(--line-dark);
}
.step { text-align: center; padding: 0 16px; position: relative; }
.step__dot {
  width: 58px; height: 58px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
  border: 1px solid var(--accent-hi);
  background: var(--navy);
  color: var(--accent-hi);
  font-family: var(--font-display);
  font-size: 20px;
  position: relative;
  z-index: 2;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.step:hover .step__dot { background: var(--accent-hi); color: #101014; }
.step h4 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted-blue); line-height: 1.55; }

/* --------------------------------------------------------- 12. BANKI / POZWY */
.banks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bank:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.bank__name {
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.bank__meta { display: block; font-family: var(--font-body); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink-muted); margin-top: 5px; }
.bank svg { width: 20px; height: 11px; color: var(--accent); flex: none; }

/* ------------------------------------------------------------- 13. ADWOKAT */
.attorney {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.attorney__bio p { color: var(--ink-muted); }
.attorney__bio > p:first-of-type { font-size: 18px; line-height: 1.62; color: var(--ink); }
.attorney__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.attorney__contact a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  letter-spacing: .03em;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.attorney__contact a:hover { color: var(--accent); }
.attorney__contact svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.attorney__contact small {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.member { position: relative; }
.member__photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.member__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  transition: transform .8s var(--ease);
}
.member:hover .member__photo img { transform: scale(1.045); }
.member__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .84) 100%);
}
.member__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 28px;
  z-index: 2;
  color: #fff;
}
.member__role {
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 7px;
}
.member__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 25px);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 10px;
}
.member__phone {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; letter-spacing: .05em;
}
.member__phone svg { width: 14px; height: 14px; color: var(--accent-hi); }
.member__phone:hover { color: var(--accent-hi); }

/* ------------------------------------------------------------- 14. AKORDEON */
.knowledge {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}
.accordion { border-top: 1px solid var(--line); }
.acc {
  border-bottom: 1px solid var(--line);
}
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--navy);
  transition: color .3s var(--ease);
}
.acc__btn:hover { color: var(--accent); }
.acc__icon {
  position: relative;
  width: 16px; height: 16px;
  flex: none;
}
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform .35s var(--ease);
}
.acc__icon::before { left: 0; top: 7.5px; width: 16px; height: 1.5px; }
.acc__icon::after  { top: 0; left: 7.5px; width: 1.5px; height: 16px; }
.acc.is-open .acc__icon::after { transform: scaleY(0); }

.acc__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s var(--ease);
}
.acc__panel > div { padding: 0 0 26px; }
.acc__panel p { font-size: 15px; line-height: 1.68; color: var(--ink-muted); }

.knowledge__intro p { color: var(--ink-muted); }
.knowledge__intro > p:first-of-type { font-size: 18px; line-height: 1.62; color: var(--ink); }
.knowledge__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 34px;
}
.knowledge__stat { background: #fff; padding: 26px 24px; }
.knowledge__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  color: var(--accent-brand);
  margin-bottom: 9px;
}
.knowledge__stat span { font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }

/* ---------------------------------------------------------------- 15. CTA */
.cta {
  position: relative;
  background: var(--navy-deep) url('../img/cta-tlo.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color: var(--on-dark-dim);
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .88) 48%, rgba(18, 18, 22, .76) 100%);
}
.cta .wrap { position: relative; z-index: 2; }
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.cta__text { max-width: 660px; }
.cta h2 { color: #fff; }
.cta p { color: var(--on-dark-dim); font-size: 16.5px; }
.cta__actions { display: flex; flex-direction: column; gap: 14px; }

/* --------------------------------------------------------------- 16. BLOG */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 2.6vw, 36px);
}
.post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.post__tag {
  display: inline-block;
  align-self: flex-start;
  margin: 30px 32px 0;
  padding: 6px 13px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.post__body { padding: 18px 32px 32px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.post h3 { font-size: clamp(18px, 1.5vw, 21px); margin: 0; line-height: 1.28; }
.post p { font-size: 14.5px; line-height: 1.62; color: var(--ink-muted); flex: 1; }

/* ------------------------------------------------------------- 17. KONTAKT */
.contact {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--field-line);
  font-size: 15px;
  font-weight: 400;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 0 1px var(--accent);
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;                 /* Firefox domyślnie przygasza placeholder */
}

/* upload */
.file-drop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px dashed var(--field-line);
  background: #fff;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.file-drop:hover { border-color: var(--accent); background: var(--bg-off); }
.file-drop svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.file-drop__label { font-size: 14.5px; }
.file-drop__label span { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }
.file-drop input { display: none; }

.consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.consent input { margin-top: 1px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* dane kontaktowe */
.offices { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.office { background: #fff; padding: 24px 26px; display: flex; gap: 16px; align-items: flex-start; }
.office svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; flex: none; }
.office__city {
  font-family: var(--font-display);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 5px;
}
.office__addr { font-size: 14.5px; color: var(--ink-muted); }

.contact-direct {
  margin-top: 28px;
  padding: 30px;
  background: var(--navy);
  color: var(--on-dark-dim);
}
.contact-direct h4 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.contact-direct p { font-size: 14.5px; margin-bottom: 20px; }
.contact-direct__row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 16px;
  color: #fff;
  letter-spacing: .04em;
}
.contact-direct__row svg { width: 16px; height: 16px; color: var(--accent-hi); flex: none; }
.contact-direct__row small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-blue); }
.contact-direct__row a:hover { color: var(--accent-hi); }

/* --------------------------------------------------------------- 18. STOPKA */
.footer { background: var(--navy-deep); color: var(--muted-blue); font-size: 14.5px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: clamp(28px, 3.4vw, 54px);
  padding-block: clamp(58px, 6vw, 88px);
}
.footer h4 {
  color: #fff;
  font-size: 15px;
  letter-spacing: .13em;
  margin-bottom: 22px;
}
.footer a { transition: color .25s var(--ease); }
.footer a:hover { color: var(--accent-hi); }
/* SC 2.5.8 — cele dotykowe min. 24 × 24 px */
.footer__links a,
.footer__cities a,
.footer__bottom nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.footer__links li { margin-bottom: 8px; line-height: 1.45; }
.footer__brand p { line-height: 1.68; margin-bottom: 20px; }
.footer__legal { font-size: 13px; color: var(--grey); line-height: 1.8; }
.footer .logo img { height: 92px; }

.footer__cities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  padding-block: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px;
}
.footer__cities strong {
  width: 100%;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: var(--grey);
}
.footer__bottom nav { display: flex; gap: 24px; }

/* ------------------------------------------------- 19. PASEK MOBILNY (CTA) */
.sticky-call {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
}
.sticky-call a {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.sticky-call a + a { border-left: 1px solid var(--line-dark); background: var(--accent); }
.sticky-call svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------- 20. ANIMACJE */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------- 21. RWD */
/* Sześć pozycji menu (m.in. „Porady on-line”) nie mieści się obok logo
   i przycisku poniżej ~1290 px — wcześniej przełączamy na menu rozwijane. */
@media (max-width: 1289px) {
  .nav { display: none; }
  .burger { display: grid; }
}

@media (max-width: 1180px) {
  .nav__link { padding: 0 11px; font-size: 12.2px; }
  .logo img { height: 79px; }
  .header__inner { min-height: 108px; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item { padding: 32px 26px; }
  .trust__item:nth-child(2) { border-right: 0; padding-right: 0; }
  .trust__item:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line-dark); }
  .trust__item:nth-child(4) { border-top: 1px solid var(--line-dark); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .banks { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: grid; }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__figure { max-width: 460px; margin-inline: auto; }
  .hero__figure::before { inset: 20px -16px -20px 20px; }
  .hero__badge { left: -14px; bottom: -26px; }
  .about { grid-template-columns: 1fr; }
  .about__figure { max-width: 520px; }
  .about__quote { right: 0; }
  .knowledge { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .attorney { grid-template-columns: 1fr; }
  .attorney > .member { max-width: 400px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .steps::before { display: none; }
  .cta { background-attachment: scroll; }
}

@media (max-width: 760px) {
  body { padding-bottom: 54px; }
  .topbar__list { gap: 16px; font-size: 12px; }
  .topbar__socials { display: none; }
  .header__inner, .header.is-stuck .header__inner { min-height: 82px; }
  .logo img, .header.is-stuck .logo img { height: 59px; }
  .footer .logo img { height: 84px; }
  .mobile-nav { max-height: calc(100vh - 82px); }
  .checklist { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .banks { grid-template-columns: 1fr; }
  .attorney__contact { flex-direction: column; gap: 16px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step { text-align: left; display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 0; }
  .step__dot { margin: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .knowledge__stats { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
  .sticky-call { display: flex; }
  /* figure jest flex-rowem — bez zmiany osi statyczna plakietka ściska się do zera */
  .hero__figure { flex-direction: column; align-items: stretch; }
  .hero__badge { position: static; max-width: none; margin-top: 22px; box-shadow: var(--shadow-sm); }
  .about__quote { position: static; max-width: none; margin-top: 26px; }
  .about__figure::after { display: none; }

  /* przyciski mogą łamać wiersz zamiast wypychać layout */
  .btn { white-space: normal; text-align: center; padding: 15px 26px; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .section-head--split .btn { width: 100%; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .logo img, .header.is-stuck .logo img { height: 52px; }
  .card { padding: 26px 20px; }
  .contact-direct { padding: 24px 20px; }
  .office { padding: 20px; }
}

/* ----------------------------------------------------------------- 22. DRUK */
@media print {
  .topbar, .header, .sticky-call, .cta__actions, .hero__actions { display: none; }
  body { color: #000; }
  .section { padding-block: 24px; }
}

/* ==========================================================================
   23. PODSTRONY — nagłówek strony, układ z kolumną boczną, tekst ciągły
   ========================================================================== */

/* -------------------------------------------------- nagłówek podstrony */
.page-head {
  position: relative;
  background: var(--navy);
  color: var(--on-dark-dim);
  overflow: hidden;
  padding-block: clamp(46px, 5.5vw, 86px);
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 420px at 82% 30%, rgba(229, 51, 51, .16), transparent 64%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 {
  color: #fff;
  font-size: clamp(29px, 4vw, 52px);
  line-height: 1.1;
  margin: 0;
  max-width: 20ch;
}
.page-head__lead {
  margin-top: 20px;
  max-width: 62ch;
  font-size: clamp(15.5px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--on-dark-dim);
}

/* okruszki */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-blue);
}
.crumbs a { color: var(--muted-blue); min-height: 24px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--accent-hi); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .42); }

/* ------------------------------------------- układ: treść + kolumna boczna */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(36px, 4.5vw, 74px);
  align-items: start;
}
.layout--narrow { grid-template-columns: minmax(0, 1fr) 300px; }

.aside { position: sticky; top: 108px; display: grid; gap: 22px; }
/* zabezpieczenie: gdyby ACF jednak opakował bloki wewnętrzne (filtr w inc/blocks.php),
   opakowanie nie może rozbić siatki ani odstępów w treści */
.layout > .acf-innerblocks-container,
.aside > .acf-innerblocks-container,
.prose > .acf-innerblocks-container,
.section > .wrap > .acf-innerblocks-container,
.note > .acf-innerblocks-container { display: contents; }

.side-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 26px 24px;
}
.side-card h3 {
  font-size: 15px;
  letter-spacing: .13em;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.side-nav li + li { margin-top: 2px; }
.side-nav a {
  display: block;
  padding: 9px 0 9px 20px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-muted);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.side-nav a::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 8px; height: 1px;
  background: var(--line);
  transition: background-color .25s var(--ease), width .25s var(--ease);
}
.side-nav a:hover { color: var(--accent); padding-left: 26px; }
.side-nav a:hover::before { background: var(--accent); width: 14px; }
.side-nav [aria-current] { color: var(--accent); font-weight: 500; }
.side-nav [aria-current]::before { background: var(--accent); width: 14px; }

/* ciemna karta zachęty w kolumnie bocznej */
.side-cta {
  background: var(--navy);
  color: var(--on-dark-dim);
  padding: 30px 26px;
}
.side-cta h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 12px;
}
.side-cta p { font-size: 14.5px; line-height: 1.6; margin-bottom: 22px; }
.side-cta .btn { width: 100%; }
.side-cta__phone {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: #fff;
  font-size: 16px;
  letter-spacing: .03em;
}
.side-cta__phone svg { width: 16px; height: 16px; color: var(--accent-hi); flex: none; }
.side-cta__phone small {
  display: block;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted-blue);
  margin-bottom: 2px;
}
.side-cta__phone a:hover { color: var(--accent-hi); }

/* ------------------------------------------------------ tekst ciągły */
.prose { max-width: 78ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.2;
  margin: 52px 0 18px;
}
.prose h2::before {
  content: "";
  display: block;
  width: 34px; height: 2px;
  background: var(--accent-brand);
  margin-bottom: 20px;
}
.prose h3 {
  font-size: clamp(18px, 1.7vw, 22px);
  margin: 38px 0 14px;
}
.prose p {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-muted);
  margin-bottom: 1.3em;
}
.prose strong { color: var(--ink); font-weight: 500; }
.prose a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose ul { margin: 0 0 1.5em; display: grid; gap: 12px; }
.prose ul li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 15px; height: 8px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.prose ol { counter-reset: n; margin: 0 0 1.5em; display: grid; gap: 12px; }
.prose ol li {
  counter-increment: n;
  position: relative;
  padding-left: 38px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
}
.prose ol li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--accent);
}

/* wyróżniony akapit */
.note {
  border-left: 2px solid var(--accent-brand);
  background: var(--bg-alt);
  padding: 24px 28px;
  margin: 32px 0;
}
.note p { margin: 0; font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.note p + p { margin-top: .9em; }
.note--dark { background: var(--navy); border-left-color: var(--accent-hi); }
.note--dark p { color: var(--on-dark-dim); }

/* --------------------------- karty "to rozwiązanie dla Ciebie, jeśli..." */
.check-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.check-card { background: #fff; padding: clamp(26px, 2.6vw, 36px); }
.check-card__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 20px;
}
.check-card p { font-size: 15.5px; line-height: 1.65; color: var(--ink-muted); margin: 0; }

/* ------------------------------------------------------- liczby (O nas) */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
}
.stat { background: var(--navy); padding: 38px 30px; text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1;
  color: var(--accent-hi);
  margin-bottom: 12px;
}
.stat span { font-size: 14px; line-height: 1.5; color: var(--muted-blue); }

/* ------------------------------------------------- lista miast (kafelki) */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14.5px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.pill-list a:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------ dokument prawny + spis */
.legal { max-width: 82ch; }
.legal section { padding-top: 46px; }
.legal section:first-of-type { padding-top: 0; }
.legal h2 {
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.25;
  margin: 0 0 20px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.legal h2 span { color: var(--accent); font-size: .8em; flex: none; }
.legal p { font-size: 15.5px; line-height: 1.75; color: var(--ink-muted); margin-bottom: 1.1em; }
.legal ul { margin: 0 0 1.4em; display: grid; gap: 10px; }
.legal ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 1px;
  background: var(--accent);
}
.legal ul ul { margin: 12px 0 0; }

.toc ol { counter-reset: t; }
.toc li { counter-increment: t; }
.toc a {
  display: block;
  padding: 8px 0 8px 30px;
  position: relative;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-muted);
  transition: color .25s var(--ease);
}
.toc a::before {
  content: counter(t) ".";
  position: absolute;
  left: 0; top: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
}
.toc a:hover { color: var(--ink); }

/* ------------------------------------------------------- RWD podstron */
@media (max-width: 1024px) {
  .layout, .layout--narrow { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .check-cards { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .aside { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .prose h2 { margin-top: 40px; }
  .page-head h1 { max-width: none; }
}

/* ==========================================================================
   24. BLOG — lista wpisów, paginacja, widok artykułu
   ========================================================================== */

/* lista wpisów obok kolumny bocznej */
.posts--two { grid-template-columns: repeat(2, 1fr); }
.posts--one { grid-template-columns: 1fr; }

/* wariant poziomy — miniatura tekstowa + treść */
.post--wide {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: stretch;
}
.post--wide .post__side {
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 20px 10px;
  text-align: center;
}
.post--wide .post__side span {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-hi);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.post--wide .post__body { padding: 28px 30px; }

/* paginacja */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: clamp(34px, 4vw, 54px);
}
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-size: 14.5px;
  letter-spacing: .04em;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager [aria-current] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.pager .pager__gap { border: 0; min-width: 22px; color: var(--ink-muted); }
.pager__next { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }

/* nagłówek artykułu — etykieta nad tytułem */
.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}

/* lead artykułu */
.article-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.68;
  color: var(--ink);
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* pasek udostępniania */
.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.share__label {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 4px;
}
.share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .1em;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.share a:hover { border-color: var(--accent); color: var(--accent); }

/* nawigacja poprzedni / następny wpis */
.post-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(40px, 4.5vw, 64px);
}
.post-nav a {
  background: #fff;
  padding: 26px 28px;
  transition: background-color .3s var(--ease);
}
.post-nav a:hover { background: var(--bg-off); }
.post-nav a:last-child { text-align: right; }
.post-nav small {
  display: block;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.post-nav strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--ink);
}

/* ------------------------------------------------------------ RWD bloga */
@media (max-width: 1024px) {
  .posts--two { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .posts--two { grid-template-columns: 1fr; }
  .post--wide { grid-template-columns: 1fr; }
  .post--wide .post__side { padding: 12px; }
  .post--wide .post__side span { writing-mode: horizontal-tb; transform: none; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a:last-child { text-align: left; }
}

/* tytuł wpisu jako link — dziedziczy kolor, akcent na hover */
.post h3 a { color: inherit; transition: color .25s var(--ease); }
.post h3 a:hover { color: var(--accent); }

/* ==========================================================================
   25. WORDPRESS — warstwa integracyjna
   Wszystko powyżej pochodzi z propozycji graficznej i pozostaje nietknięte.
   Tutaj tylko to, czego wymaga praca w WordPressie: ikony renderowane inline
   zamiast sprite'a, kontener treści blokowej, pasek administratora, komunikaty
   formularza, bloki podstawowe w tekście ciągłym.
   ========================================================================== */

/* Ikony są wstawiane inline (fk_icon), więc potrzebują rozmiaru bazowego.
   Reguły z sekcji wyżej są bardziej szczegółowe i nadal wygrywają. */
.fk-icon { width: 1em; height: 1em; }

/* -------------------------------------------------- kontener treści strony */
/* Bloki kancelarii renderują własne sekcje pełnej szerokości. Gdyby redaktor
   wstawił blok podstawowy poza sekcją, ta reguła utrzyma go w kolumnie tekstu
   zamiast rozciągać na całą szerokość okna. */
.fk-content > *:not(section):not(.stat-row):not(.page-head):not(.hero):not(.trust):not(.cta):not(.fk-city-list) {
  max-width: var(--wrap-slim);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.fk-content > .alignfull { max-width: none; padding-inline: 0; }
.fk-content > .alignwide { max-width: var(--wrap); }

.wrap--slim { max-width: var(--wrap-slim); }

/* wariant sekcji bez odstępu u góry — układ pod inną sekcją */
.section--no-top { padding-top: 0; }

/* -------------------------------------------------- pasek administratora */
/* Przyklejony nagłówek musi ustąpić paskowi WP, inaczej zasłania logo. */
.admin-bar .header { top: 32px; }
.admin-bar .topbar { margin-top: 0; }
.admin-bar { scroll-padding-top: 152px; }
@media screen and (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}

/* ------------------------------------------------------------ dostępność */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 14px;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto; height: auto;
  clip: auto;
  margin: 0;
}

/* ------------------------------------------------------------- formularz */
/* Pole-pułapka na boty: poza ekranem, ale nie display:none — część botów
   pomija pola ukryte tą właściwością. */
.fk-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-msg {
  padding: 18px 22px;
  margin-bottom: 26px;
  border-left: 2px solid var(--accent-brand);
  background: var(--bg-alt);
  font-size: 15.5px;
  line-height: 1.6;
}
.form-msg--ok { border-left-color: #1F7A3D; }
.form-msg--err { border-left-color: var(--accent); }
.form-msg p { margin: 0; }
.form-msg ul { margin: 10px 0 0; padding-left: 20px; list-style: disc; }
.form-msg li { margin-top: 4px; }

/* --- Contact Form 7 -------------------------------------------------------
   Formularz z wtyczki używa szablonu w klasach motywu (demo/contact-form-7.md),
   więc tutaj zostają wyłącznie elementy, które CF7 dokłada od siebie:
   opakowania pól, komunikat zbiorczy, podpowiedzi walidacji i kręciołek. */

/* CF7 opakowuje każde pole w <span>; w siatce .form-grid i w .field taki
   dodatkowy element tworzyłby własną komórkę, stąd display:contents. */
.form-grid .wpcf7-form-control-wrap { display: contents; }

/* komunikat zbiorczy pod formularzem — wygląd .form-msg */
.wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 26px 0 0;
  padding: 18px 22px;
  border: 0;
  border-left: 2px solid var(--accent);
  background: var(--bg-alt);
  font-size: 15.5px;
  line-height: 1.6;
}
.wpcf7-form.sent .wpcf7-response-output { border-left-color: #1F7A3D; }

/* podpowiedź przy polu, które nie przeszło walidacji */
.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
}
.field input.wpcf7-not-valid,
.field textarea.wpcf7-not-valid { border-color: var(--accent); }
.file-drop .wpcf7-not-valid-tip { margin: 0 0 0 auto; text-align: right; }

/* klauzula zgody: [acceptance] ma własne opakowania, ale ma wyglądać jak
   .consent z formularza wbudowanego */
.form-grid .wpcf7-acceptance { grid-column: 1 / -1; }
.form-grid .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.form-grid .wpcf7-acceptance label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.form-grid .wpcf7-acceptance input {
  margin-top: 1px;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex: none;
}
.form-grid .wpcf7-acceptance a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* kręciołek wysyłki — obok przycisku, nie pod nim */
.wpcf7-spinner { margin: 0 0 0 14px; vertical-align: middle; }

/* przycisk kopiowania linku wygląda jak pozostałe pozycje paska udostępniania */
.share__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: inherit;
  cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.share__copy:hover { border-color: var(--accent); color: var(--accent); }
.share__copy.is-copied { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------- wyszukiwarka i puste */
.search-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.search-form input[type="search"] {
  flex: 1 1 220px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--field-line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
}
.search-form input[type="search"]::placeholder { color: var(--placeholder); }

.fk-empty { padding: 10px 0 40px; }
.fk-empty h2 { margin: 0 0 14px; font-size: clamp(22px, 2.3vw, 31px); }
.fk-empty p { color: var(--ink-muted); font-size: 16px; line-height: 1.7; }

/* --------------------------------------- klasy zamiast stylów w atrybutach */
/* W propozycji te odstępy siedziały w atrybutach style — w motywie znaczniki
   generuje PHP, więc trafiły do arkusza. */
.about__list-title { margin-top: 34px; }
.about__footnote { font-size: 15px; }
.about__footnote strong { font-weight: 500; }
.about__actions { margin-top: 28px; }
.contact__intro {
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 34px;
}

/* tło sekcji CTA można podmienić w bloku; domyślne zostaje w motywie */
.cta { background-image: var(--cta-bg, url('../img/cta-tlo.jpg')); }

/* ------------------------------------------ bloki podstawowe w tekście */
.prose img,
.prose figure { max-width: 100%; height: auto; }
.prose figure { margin: 32px 0; }
.prose figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.prose .wp-block-image { margin: 32px 0; }
.prose blockquote,
.prose .wp-block-quote {
  margin: 32px 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent-brand);
  font-size: 17px;
  line-height: 1.7;
}
.prose blockquote p { color: var(--ink); }
.prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.prose .wp-block-table { margin: 32px 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th,
.prose td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th { font-weight: 500; background: var(--bg-alt); }
.prose .wp-block-separator {
  margin: 44px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.prose .wp-block-buttons { margin: 30px 0; }
.prose .wp-block-embed { margin: 32px 0; }

.article-figure { margin: 0 0 34px; }
.article-figure img { width: 100%; height: auto; }

/* ------------------------------------------------------------ komentarze */
.comments { margin-top: clamp(44px, 5vw, 70px); padding-top: 30px; border-top: 1px solid var(--line); }
.comments__title { font-size: clamp(20px, 2vw, 26px); margin: 0 0 24px; }
.comments__list { list-style: none; margin: 0 0 30px; padding: 0; }
.comments__list ol { list-style: none; padding-left: 26px; }
.comments__list li { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.comments .comment-form label { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.comments .comment-form input:not([type="submit"]),
.comments .comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 18px;
}

/* -------------------------------------------------------- edytor bloków */
/* Podpowiedzi widoczne wyłącznie w podglądzie bloku, nigdy na froncie. */
.fk-editor-hint {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed var(--field-line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* W edytorze sekcje nie animują się przy scrollu — redaktor musi je widzieć. */
.is-editor-preview .reveal,
.editor-styles-wrapper .reveal {
  opacity: 1;
  transform: none;
}
