/* ==========================================================================
   WK — Wojciech Kowalski, radca prawny (Pszczyna)
   Minimalist premium: granat + złoto + krem. Mobile-first, WCAG AA.
   Kontrasty policzone: na granacie tekst złoty = --gold-light (5.2:1),
   na kremie tekst złoty = --gold-ink (5.2:1); czyste złoto --gold tylko
   jako linie/ikony/dekor (zgodnie z briefem §4).
   ========================================================================== */

:root {
  /* Marka — hexy z briefu (logo.JPG autorytatywne) */
  --navy: #212F54;
  --navy-deep: #1A2440;
  --gold: #AD8B58;
  --gold-light: #C59759;
  --gold-ink: #7E6136;
  --cream: #F5F2EC;
  --ink: #1C2233;
  --white: #FFFFFF;

  /* Pochodne */
  --muted: #5A6072;            /* tekst drugorzędny na jasnym */
  --mist: #A9B1C7;             /* tekst drugorzędny na granacie */
  --body-on-dark: #D9DDE8;     /* tekst zasadniczy na granacie */
  --line-light: rgba(33, 47, 84, 0.14);
  --line-dark: rgba(245, 242, 236, 0.16);
  --gold-line: rgba(173, 139, 88, 0.5);
  --gold-line-soft: rgba(173, 139, 88, 0.28);
  --shadow-card: 0 1px 2px rgba(28, 34, 51, 0.04), 0 12px 32px -16px rgba(28, 34, 51, 0.18);
  --shadow-card-hover: 0 2px 4px rgba(28, 34, 51, 0.05), 0 20px 44px -18px rgba(28, 34, 51, 0.26);

  /* Typografia */
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --caps: "Montserrat", "Inter", -apple-system, sans-serif;

  /* Rytm */
  --container: 71.25rem; /* 1140px */
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 7.5rem);
  --header-h: 4.5rem;
}

/* --------------------------------------------------------------------------
   Reset + baza
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

a { color: inherit; }

/* Fokus: granat na jasnych tłach, złoto na ciemnych (WCAG 1.4.11 — min. 3:1). */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-light);
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy-deep);
  color: var(--cream);
  font-family: var(--caps);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--gold-line);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* --------------------------------------------------------------------------
   Typografia — nagłówki, eyebrow, linie
   -------------------------------------------------------------------------- */
.h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--cream);
  text-wrap: balance;
}

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
}

.on-dark .h2 { color: var(--cream); }

.h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--navy);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.on-dark .eyebrow { color: var(--gold-light); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head .h2 { margin-top: 1rem; }
.section-head .intro { margin-top: 1.125rem; color: var(--muted); }
.on-dark .section-head .intro { color: var(--mist); }

.section { padding-block: var(--section-y); }
.on-dark { background: var(--navy); color: var(--body-on-dark); }
.on-white { background: var(--white); }

/* --------------------------------------------------------------------------
   Przyciski i linki
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.0625rem 1.875rem;
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn { white-space: nowrap; }
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }

.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-deep); }

.btn-ghost-dark {
  background: transparent;
  border-color: rgba(245, 242, 236, 0.35);
  color: var(--cream);
}
.btn-ghost-dark:hover { border-color: var(--gold-light); color: var(--gold-light); }

.link-quiet {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-quiet:hover { color: var(--gold-ink); border-color: var(--gold-ink); }
.on-dark .link-quiet:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--gold-line-soft);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px -12px rgba(16, 22, 40, 0.55); }

/* Header szerszy niż treść: menu i CTA mieszczą się w jednej linii */
.site-header .container { max-width: 78rem; }

.header-bar {
  display: flex;
  align-items: center;
  gap: 1.375rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--cream);
  margin-right: auto;
}
.brand-mark { width: 2.5rem; height: auto; color: var(--gold); flex: none; }
.brand-name {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.35;
}
.brand-role {
  display: block;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold-light);
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--cream); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--gold-light);
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.header-phone:hover { color: var(--cream); }
.header-phone svg { width: 1rem; height: 1rem; }

.header-cta { padding: 0.75rem 1.375rem; font-size: 0.75rem; }

/* Burger na każdej szerokości (decyzja rundy 4: pozioma lista pozycji przytłaczała
   nagłówek i konkurowała z CTA). W headerze zostaje marka, telefon, CTA i burger. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  flex: none;
}
.nav-toggle:hover { border-color: var(--gold-line); color: var(--gold-light); }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menu jako panel rozwijany spod headera */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--gold-line-soft);
  box-shadow: 0 18px 40px -20px rgba(10, 15, 30, 0.7);
  padding: 0.75rem var(--pad-x) 1.5rem;
}
/* Panel chowamy tylko gdy JS działa; bez JS nav zostaje widoczny, burger znika */
html.js .site-nav { display: none; }
html.js .site-nav.is-open { display: flex; }
html:not(.js) .site-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0.625rem var(--pad-x) 1rem; }
html:not(.js) .site-nav a { border-bottom: 0; padding: 0.25rem 0; }
html:not(.js) .nav-toggle { display: none; }
.site-nav a {
  padding: 0.875rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--line-dark);
}
.site-nav a:last-of-type { border-bottom: 0; }

/* Panel wyrównany do treści strony, nie do krawędzi ekranu */
.site-nav > * { max-width: 78rem; width: 100%; margin-inline: auto; }

@media (max-width: 47.99em) {
  .header-cta { display: none; }
}
@media (max-width: 37.49em) {
  .brand-name { font-size: 0.71rem; letter-spacing: 0.16em; }
  /* Zostaje sama ikona (nazwa dostępna z aria-label); padding = cel dotyku ≥44px */
  .header-phone span { display: none; }
  .header-phone { padding: 0.7rem; margin: -0.7rem; }
  .header-phone svg { width: 1.35rem; height: 1.35rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(168deg, var(--navy) 0%, #1E2A4C 55%, var(--navy-deep) 100%);
  color: var(--body-on-dark);
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-58%);
  width: min(48vw, 40rem);
  color: var(--gold);
  opacity: 0.07;
  pointer-events: none;
}

.hero-main { position: relative; }

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(5rem, 11vw, 8.5rem) 0;
  max-width: 44rem;
}

/* Tekst nigdy nie wchodzi na sylwetkę: dopóki zdjęcie jest widoczne (od 64em),
   kolumna tekstu ma zarezerwowane 60% szerokości i resztę zostawia zdjęciu.
   Poniżej 64em sylwetka znika, więc tekst może zająć całą szerokość. */
@media (min-width: 64em) {
  .hero-inner { max-width: min(44rem, 60%); }
}

/* Sylwetka z sesji wizerunkowej. Bez cienia: rzucał się na monogram w tle
   i brudził znak. Dół opuszczony do linii nad paskiem zaufania (ten sam odstęp,
   co margines .hero-trust), dzięki czemu nogi wygasają dokładnie na niej,
   a głowa nie podbija się ponad nagłówek. */
.hero-portrait {
  position: absolute;
  right: clamp(-1rem, -0.5vw, 0rem);
  bottom: calc(-1 * clamp(3.25rem, 7vw, 5rem));
  height: min(92%, 37rem);
  width: auto;
  z-index: 0;                 /* pod tekstem paska zaufania */
  -webkit-mask-image: linear-gradient(180deg, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 93%, transparent 100%);
  pointer-events: none;
}

/* Poniżej 64em brakuje miejsca obok tekstu, więc sylwetka znika zamiast
   wchodzić pod napisy. Wcześniej chowała się dopiero poniżej 48em i w zakresie
   48-64em kolidowała z nagłówkiem przy zmianie rozmiaru okna. */
@media (max-width: 63.99em) {
  .hero-portrait { display: none; }
}

.hero .h1 { margin-top: 1.375rem; }

.hero-lead {
  margin-top: 1.625rem;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--mist);
}
.hero-lead strong { color: var(--cream); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.375rem;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
  line-height: 1.3;
}
.hero-phone svg { width: 1.375rem; height: 1.375rem; color: var(--gold-light); flex: none; }
.hero-phone .phone-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.hero-phone .phone-number {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.hero-phone:hover .phone-number { border-color: var(--gold-light); }

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 2rem;
  margin-top: clamp(3.25rem, 7vw, 5rem);
  padding-block: 1.75rem clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-dark);
  position: relative;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--mist);
}
.trust-item svg { width: 1.25rem; height: 1.25rem; color: var(--gold); flex: none; margin-top: 0.1rem; }
.trust-item strong { color: var(--body-on-dark); font-weight: 600; display: block; }

@media (max-width: 47.99em) {
  .hero-trust { grid-template-columns: 1fr; gap: 1rem; }
}

/* --------------------------------------------------------------------------
   Obszary praktyki
   -------------------------------------------------------------------------- */
/* Nagłówek sekcji + strzałki karuzeli w jednej linii */
.areas-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.areas-topbar .section-head { margin-bottom: 0; }

.carousel-nav { display: flex; gap: 0.625rem; flex: none; padding-bottom: 0.375rem; }
html:not(.js) .carousel-nav { display: none; }

.carousel-btn {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--gold-ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.carousel-btn svg { width: 1.25rem; height: 1.25rem; }
.carousel-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }

/* Karuzela: jedna linia, równe karty, pętla obsługiwana w JS */
.areas-carousel {
  display: flex;
  gap: 1.375rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0.375rem 0.25rem 1.5rem;
  margin-inline: -0.25rem;
}
.areas-carousel::-webkit-scrollbar { display: none; }

.area-card {
  flex: 0 0 clamp(16.5rem, 26vw, 20.25rem);
  min-height: 20rem;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  padding: 1.875rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-line-soft);
}

.area-card.is-flagship { border-top: 2px solid var(--gold); }

.area-icon { width: 2rem; height: 2rem; color: var(--gold-ink); }

.area-badge {
  align-self: flex-start;
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  border: 1px solid var(--gold-line-soft);
  border-radius: 999px;
  padding: 0.3125rem 0.75rem;
}

.area-problem { color: var(--ink); font-weight: 600; }
.area-how { color: var(--muted); font-size: 0.9375rem; }

.areas-note {
  margin-top: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 46rem;
}

@media (max-width: 47.99em) {
  .areas-topbar { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .area-card { flex-basis: min(78vw, 19rem); min-height: 18rem; }
}

/* --------------------------------------------------------------------------
   O mnie
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* Portret "O mnie": sam kadr z sesji, bez ramki i bez cienia. */
.portrait-framed {
  position: relative;
  margin: 0;
  align-self: start;
  max-width: 26rem;
}
.portrait-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 63.99em) {
  .portrait-framed { margin-inline: auto; }
}

.about-body p + p { margin-top: 1.125rem; }
.about-body { color: var(--body-on-dark); }
.about-body .h2 { margin-top: 1rem; margin-bottom: 1.5rem; }

.about-facts {
  list-style: none;
  padding: 0;
  margin-top: 1.875rem;
  display: grid;
  gap: 0.75rem;
}
.about-facts li { display: flex; align-items: baseline; gap: 0.75rem; font-size: 0.9375rem; color: var(--mist); }
.about-facts svg { width: 0.625rem; height: 0.625rem; color: var(--gold); flex: none; align-self: center; }
.about-facts strong { color: var(--body-on-dark); font-weight: 600; }

@media (max-width: 63.99em) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait-framed { max-width: 22rem; }
}

/* --------------------------------------------------------------------------
   Placeholdery draftu (do usunięcia po uzupełnieniu danych)
   -------------------------------------------------------------------------- */
.todo-chip {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px dashed var(--gold);
  border-radius: 3px;
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  background: rgba(173, 139, 88, 0.08);
  white-space: nowrap;
}
.on-dark .todo-chip { color: var(--gold-light); }

/* --------------------------------------------------------------------------
   Jak wygląda współpraca
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}

.step { position: relative; padding-top: 1.375rem; }
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.step .step-num {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.625rem;
  line-height: 1;
  color: var(--gold-ink);
}
.step .h3 { margin-top: 0.625rem; }
.step p { margin-top: 0.625rem; color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 63.99em) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 37.49em) { .steps-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
/* Pytania w dwóch kolumnach: kadr z sesji po prawej, lista po lewej.
   Kolejność w HTML: figura przed listą, ale w gridzie ląduje w drugiej kolumnie,
   żeby czytnik ekranu i widok bez CSS zaczynały od treści, nie od ozdobnika. */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 3.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;        /* kadr dociągnięty do wysokości listy pytań */
}
.faq-col { grid-column: 1; grid-row: 1; }
.faq-figure {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  /* bez ramki i cienia: ma być sam pionowy kadr */
}
.faq-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 4px;
}

@media (max-width: 63.99em) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-col { grid-column: 1; }
  .faq-figure { display: none; }
}

.faq-list { max-width: 50rem; }

.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item:first-of-type { border-top: 1px solid var(--line-light); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.375rem 0.25rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.3;
  color: var(--navy);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-ink); }

.faq-marker {
  flex: none;
  align-self: center;
  width: 1.75rem;
  height: 1.75rem;
  position: relative;
  color: var(--gold-ink);
}
.faq-marker::before, .faq-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transition: transform 0.25s ease;
}
.faq-marker::before { width: 0.875rem; height: 1px; transform: translate(-50%, -50%); }
.faq-marker::after { width: 1px; height: 0.875rem; transform: translate(-50%, -50%); }
.faq-item[open] .faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-body { padding: 0 3.25rem 1.5rem 0.25rem; color: var(--muted); }
.faq-body p + p { margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}

.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--line-dark);
}
/* Pierwszy kanał bez górnej linii i bez górnego paddingu, żeby lewa kolumna
   startowała dokładnie na wysokości tytułu formularza po prawej. */
.contact-channel:first-of-type { border-top: 0; padding-top: 0; }
.contact-channel > svg { width: 1.375rem; height: 1.375rem; color: var(--gold); flex: none; margin-top: 0.25rem; }

.channel-label {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.channel-value {
  display: block;
  margin-top: 0.25rem;
  color: var(--cream);
  font-size: 1.0625rem;
}
a.channel-value { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; width: fit-content; }
a.channel-value:hover { border-color: var(--gold-light); }

.channel-value.is-phone {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.channel-note { display: block; margin-top: 0.3125rem; font-size: 0.875rem; color: var(--mist); }
.channel-note a { color: var(--gold-light); }

/* Kolumna formularza: bez karty, wprost na granacie */
.contact-card { color: var(--body-on-dark); }

.form-title { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--cream); }
.form-sub { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--mist); }

.form-grid { display: grid; gap: 1.375rem; margin-top: 1.375rem; }

.field label {
  display: block;
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.375rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.625rem 0.125rem;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 242, 236, 0.32);
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-light);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field-hint { display: block; margin-top: 0.4375rem; font-size: 0.8125rem; color: var(--mist); }

.form-rodo { font-size: 0.78rem; line-height: 1.55; color: rgba(169, 177, 199, 0.85); }
.form-rodo a { color: var(--gold-light); }

.form-status { font-size: 0.9rem; color: var(--gold-light); font-weight: 600; }
.form-status:empty { display: none; }

/* Honeypot: poza ekranem, niewidoczny dla ludzi, czytelny dla botów */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 63.99em) { .contact-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Stopka
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--mist);
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand .brand-mark { width: 3.25rem; margin-bottom: 1rem; }
.footer-brand-name {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
}
.footer-brand-role {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-family: var(--caps);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-brand p { margin-top: 1.125rem; max-width: 26rem; font-size: 0.875rem; }

.footer-h {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.125rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.footer-list a { color: var(--mist); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.footer-list a:hover { color: var(--gold-light); border-color: var(--gold-line); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  color: rgba(169, 177, 199, 0.75);
}

@media (max-width: 63.99em) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* --------------------------------------------------------------------------
   Ribbon draftu — USUŃ PO AKCEPTACJI TREŚCI
   -------------------------------------------------------------------------- */
.draft-ribbon {
  position: fixed;
  left: 0.875rem;
  bottom: 0.875rem;
  z-index: 150;
  padding: 0.4375rem 0.875rem;
  background: var(--navy-deep);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  box-shadow: 0 10px 30px -12px rgba(10, 15, 30, 0.6);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Reveal (progressive enhancement — bez JS wszystko widoczne)
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Podstrona prawna (polityka prywatności)
   -------------------------------------------------------------------------- */
.legal-page { padding-block: calc(var(--section-y) * 0.75); }
.legal-page .container { max-width: 50rem; }
.legal-page h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  color: var(--navy);
  margin: 0.75rem 0 0.5rem;
}
.legal-meta { color: var(--muted); font-size: 0.875rem; }
.legal-page h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 2.25rem 0 0.75rem;
}
.legal-page p, .legal-page li { color: var(--ink); font-size: 1rem; }
.legal-page p + p { margin-top: 0.75rem; }
.legal-page ul { padding-left: 1.25rem; margin: 0.75rem 0; display: grid; gap: 0.5rem; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  text-decoration: none;
}
.legal-back:hover { color: var(--navy); }

/* --------------------------------------------------------------------------
   Baza wiedzy — lista wpisów (artykuly.html)
   -------------------------------------------------------------------------- */
.kb-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.kb-title { margin-top: 1rem; font-size: clamp(2.25rem, 5vw, 3.5rem); }
.kb-intro { margin-top: 1.25rem; max-width: 46rem; color: var(--mist); }


.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem;
}

.kb-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.875rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.kb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--gold-line-soft);
}
.kb-card-meta {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.kb-card-link { text-decoration: none; }
/* Cała karta klikalna, a fokus nadal na samym linku */
.kb-card-link::after { content: ""; position: absolute; inset: 0; }
.kb-card { position: relative; }
.kb-card-link:hover { color: var(--gold-ink); }
.kb-card-lead { color: var(--muted); font-size: 0.9375rem; }
.kb-card-more {
  margin-top: auto;
  padding-top: 0.75rem;
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* Stan pusty: zanim pojawi się pierwszy wpis */
.kb-empty {
  max-width: 44rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px dashed var(--gold-line-soft);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
}
.kb-empty-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.625rem;
}
.kb-empty-actions { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Artykuł (artykuly/*.html)
   -------------------------------------------------------------------------- */
.article-page { padding-block: calc(var(--section-y) * 0.7); }
.article-page .container { max-width: 46rem; }
.article-page h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0.75rem 0 0.5rem;
  text-wrap: balance;
}
.article-meta {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-lead {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
}
.article-page h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.625rem;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
}
.article-page p + p { margin-top: 1rem; }
.article-page ul { padding-left: 1.25rem; margin: 1rem 0; display: grid; gap: 0.5rem; }

.article-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--gold);
  background: rgba(173, 139, 88, 0.07);
  border-radius: 0 6px 6px 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.article-cta {
  margin-top: 3rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--navy);
  border-radius: 6px;
  color: var(--body-on-dark);
}
.article-cta-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 1.5rem; }
