/* Kancelaria Radcy Prawnego Radosław Wtorek — system wizualny
   Granat/ciemny błękit = kolor żabotu togi radcy prawnego (rozp. MS z 27.11.2000).
   Brąz/mosiądz = akcent nawiązujący do pieczęci i tłoków urzędowych. */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --granat: #132544;
  --granat-2: #0b1830;
  --ink: #15161a;
  --brass: #96702a;
  --brass-light: #b58c3f;
  --paper: #faf9f6;
  --paper-2: #f1efe8;
  --graphite: #2a2a27;
  --line: #ddd9cd;
  --line-dark: rgba(250, 249, 246, 0.16);
  --white: #ffffff;
  --shadow: 0 1px 2px rgba(19,37,68,0.04), 0 8px 24px rgba(19,37,68,0.07);
  --shadow-lift: 0 4px 10px rgba(19,37,68,0.06), 0 16px 32px rgba(19,37,68,0.10);

  --serif: "Source Serif 4", Georgia, "Iowan Old Style", serif;
  --display: "Lexend", "Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius: 3px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--graphite);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--granat); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--brass); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.35rem, 1.7rem + 2.6vw, 3.55rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.4rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.45vw, 1.4rem); font-weight: 600; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: 62ch; }
p.lead { font-size: 1.2rem; color: var(--ink); max-width: 54ch; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--paper-2); }
.section--dark {
  background: linear-gradient(100deg, rgba(11,24,48,0.93) 0%, rgba(11,24,48,0.80) 55%, rgba(11,24,48,0.62) 100%), url('/img/hero-bg.jpg') center/cover no-repeat, var(--granat);
  color: rgba(250,249,246,0.92);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(250,249,246,0.82); }
.section--dark a:not(.btn) { color: var(--brass-light); }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass);
  margin: 0 0 0.4em;
}

/* ---------- Nagłówek §-numeracja (spis treści aktu, nie kolejność ważności) ---------- */
.para-mark {
  font-family: var(--serif);
  color: var(--brass);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ---------- Header / nawigacja ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 12px 24px -8px rgba(11,24,48,0.14);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  padding-left: 168px;
  min-height: 84px;
}
.brand__logo {
  position: absolute;
  top: 12px;
  left: 0;
  height: 160px;
  width: auto;
  z-index: 5;
  filter: drop-shadow(0 10px 16px rgba(11,24,48,0.35));
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__role {
  font-size: 0.78rem;
  color: var(--graphite);
  opacity: 0.72;
  letter-spacing: 0.005em;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav__list a {
  font-family: var(--display);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 400;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--granat); border-color: var(--brass); }
.nav__phone {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--granat);
  text-decoration: none;
  white-space: nowrap;
  background: rgba(19,37,68,0.06);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav__phone:hover { background: var(--brass); color: var(--white); }
.nav-toggle { display: none; }

.mobile-nav { display: none; }

@media (max-width: 900px) {
  .nav__list { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--ink);
  }
  .site-header__row { height: 68px; }
  .brand { gap: 8px; min-width: 0; padding-left: 0; min-height: 0; }
  .brand__logo { position: static; height: 42px; filter: none; }
  .brand__text { min-width: 0; }
  .brand__name {
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand__role { display: none; }
  .nav__phone { display: none; }

  .mobile-nav {
    display: block;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav .container { padding: 0 24px; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 10px 0 18px; }
  .mobile-nav li { border-top: 1px solid var(--line); }
  .mobile-nav li:first-child { border-top: none; }
  .mobile-nav a {
    display: block;
    padding: 14px 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
  }
  .mobile-nav li:last-child a { color: var(--brass); font-weight: 600; }
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--brass { background: var(--brass); color: var(--white); box-shadow: 0 2px 6px rgba(150,112,42,0.25); }
.btn--brass:hover { background: var(--brass-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(150,112,42,0.32); }
.btn--outline { border-color: var(--line-dark); color: var(--white); background: transparent; }
.btn--outline:hover { border-color: var(--brass-light); color: var(--brass-light); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--granat); color: var(--granat); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--granat);
  color: var(--white);
  overflow: hidden;
  min-height: clamp(560px, 74vh, 760px);
  display: grid;
}
.hero h1, .hero .hero__title { color: var(--white); }
.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

/* ---------- Slider hero ---------- */
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 1.6s cubic-bezier(0.42, 0, 0.22, 1),
              transform 1.9s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 1.6s;
  background: linear-gradient(100deg, rgba(11,24,48,0.94) 0%, rgba(11,24,48,0.82) 45%, rgba(11,24,48,0.55) 100%), url('/img/hero-bg.jpg') center/cover no-repeat, var(--granat);
}
.hero-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.hero-slide--bg {
  align-items: center;
  background:
    linear-gradient(100deg, rgba(8,17,34,0.92) 0%, rgba(9,19,38,0.72) 38%, rgba(9,19,38,0.30) 68%, rgba(9,19,38,0.12) 100%),
    var(--slide-image) var(--slide-pos, center)/cover no-repeat,
    var(--granat);
}
.hero-slide--bg .hero__inner { padding: 96px 0; max-width: 700px; }
@media (min-width: 901px) {
  .hero__inner--shift-up-left { transform: translate(-70px, -70px); }
}

.hero__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  display: flex;
  gap: 10px;
}
.hero__dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(250,249,246,0.3);
  cursor: pointer;
  transition: background-color 0.25s ease, width 0.25s ease;
}
.hero__dots button.is-active { background: var(--brass-light); width: 52px; }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 32px;
  align-items: end;
  width: 100%;
}
.hero__portrait {
  position: relative;
  margin: 0;
  align-self: end;
  justify-self: center;
  max-width: 620px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero__portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  /* krawędzie rozpuszczone w tle hero — brak widocznego styku kadru */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero__portrait figcaption {
  position: absolute;
  left: 4%;
  bottom: 30px;
  z-index: 2;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(4,10,24,0.95);
}
.hero__portrait figcaption span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--brass-light);
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero { padding: 72px 0 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__portrait { max-width: 300px; justify-self: start; }
  .hero__portrait figcaption { display: none; }
}
.hero__statute {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero__statute p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.5;
  color: rgba(250, 249, 246, 0.10);
  white-space: normal;
  max-width: none;
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
@media (max-width: 960px) {
  .hero__statute { display: none; }
}
.hero__inner { position: relative; z-index: 1; max-width: 680px; padding: 88px 0 84px; }
.hero__inner.reveal { animation: hero-in 0.7s ease-out both; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero p.lead { color: rgba(250,249,246,0.86); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__meta {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(250,249,246,0.72);
}
.hero__meta strong { color: var(--white); display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 2px; }

/* ---------- Spis specjalizacji (nie karty SaaS — lista aktu prawnego) ---------- */
.statute-list {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.statute-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 26px 24px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.statute-item:last-child { border-bottom: none; }
.statute-item:hover { background: var(--paper-2); border-left-color: var(--brass); }
.statute-item:hover .statute-item__title { color: var(--brass); }
.statute-item__title { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.01em; }
.statute-item__desc { margin: 0; color: var(--graphite); max-width: 60ch; font-size: 0.98rem; }
.statute-item__go { align-self: center; color: var(--line); font-size: 1.3rem; font-family: var(--serif); transition: transform 0.18s ease, color 0.18s ease; }
.statute-item:hover .statute-item__go { color: var(--brass); transform: translateX(4px); }

@media (max-width: 640px) {
  .statute-item { grid-template-columns: 40px 1fr; }
  .statute-item__go { display: none; }
}

/* ---------- Dwukolumnowa sekcja (o kancelarii) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 64px;
  align-items: start;
}
.split--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .split, .split--3col { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .split--3col { gap: 32px; }
}
.portrait-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 20px 20px 26px;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.portrait-card img {
  width: calc(100% + 40px);
  max-width: none;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  margin: -20px -20px 18px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.portrait-card__caption { margin: 0; font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.portrait-card__caption span { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.85rem; color: var(--graphite); opacity: 0.75; margin-top: 3px; }

/* ---------- Karta z konkretami (strona główna) ---------- */
.facts-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}
.facts-card dl { margin: 0 0 24px; }
.facts-card dt {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--brass);
  font-weight: 600;
  margin-top: 18px;
}
.facts-card dt:first-child { margin-top: 0; }
.facts-card dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
}
.facts-card dd a { color: var(--ink); text-decoration: none; }
.facts-card dd a:hover { color: var(--brass); }
.facts-card .btn { width: 100%; justify-content: center; }

/* ---------- Zasady rozliczeń / karty modeli wynagrodzenia ---------- */
.fee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.fee-card {
  background: var(--white);
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fee-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.fee-card h3 { margin-bottom: 0.6em; }
@media (max-width: 780px) { .fee-grid { grid-template-columns: 1fr; } }

/* ---------- Obszar działania ---------- */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.area-list li {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--graphite);
  border-radius: 999px;
}

/* ---------- Blog / artykuły ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 24px; margin-top: 36px; }
.post-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(150,112,42,0.35); }
.post-row time {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brass);
  background: rgba(150,112,42,0.09);
  border-radius: 999px;
  padding: 5px 13px;
  align-self: flex-start;
  line-height: 1.5;
}
.post-row h3 { margin: 0; line-height: 1.3; }
.post-row h3 a { color: var(--ink); text-decoration: none; }
.post-row:hover h3, .post-row:hover h3 a { color: var(--granat); }
.post-row p { margin: 0; font-size: 0.95rem; color: var(--graphite); }
.post-row__date { font-size: 0.82rem; color: var(--graphite); opacity: 0.6; margin-top: auto; padding-top: 4px; }

.article-body { max-width: 68ch; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.3em; }
.article-body ul, .article-body ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.article-body li { margin-bottom: 0.4em; }
.article-header { max-width: 68ch; margin-bottom: 12px; }
.article-meta { display: flex; gap: 18px; align-items: center; font-size: 0.88rem; color: var(--graphite); opacity: 0.7; margin-bottom: 18px; }
.article-callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  background: var(--white);
  padding: 22px 26px;
  margin: 1.8em 0;
  font-size: 0.96rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.article-callout p:last-child { margin-bottom: 0; }
.article-disclaimer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--graphite);
  opacity: 0.75;
  max-width: 68ch;
}

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.faq-item[open] { border-color: rgba(150,112,42,0.4); }
.faq-item:hover { box-shadow: var(--shadow-lift); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  color: var(--brass);
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
  transition: transform 0.18s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 24px 22px; margin: 0; color: var(--graphite); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 36px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-card { border: 1px solid var(--line); background: var(--white); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-card dt { font-size: 0.82rem; text-transform: none; color: var(--graphite); opacity: 0.65; margin-top: 18px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.contact-card dd a { color: var(--ink); text-decoration: none; }
.contact-card dd a:hover { color: var(--brass); }
.map-frame { border: 1px solid var(--line); width: 100%; height: 330px; display: block; border-radius: var(--radius-lg); }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 0.9rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(150,112,42,0.15);
  outline: none;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .consent { font-size: 0.82rem; opacity: 0.75; display: flex; gap: 8px; align-items: flex-start; }
.contact-form .consent input { width: auto; margin-top: 4px; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: rgba(250,249,246,0.72); padding: 56px 0 30px; }
.site-footer a { color: rgba(250,249,246,0.9); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-mark { width: 64px; height: 64px; margin-bottom: 18px; opacity: 0.9; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(250,249,246,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ---------- Nagłówek podstrony ---------- */
.page-head { padding: 48px 0 44px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 16px; }
.page-head p.lead { margin-bottom: 0; }
.page-head--narrow .lead { max-width: 60ch; }

.page-head--dark {
  position: relative;
  border-bottom: none;
  padding: 66px 0 72px;
  background:
    linear-gradient(100deg, rgba(8,17,34,0.95) 0%, rgba(9,19,38,0.84) 45%, rgba(9,19,38,0.55) 100%),
    url('/img/hero-bg.jpg') center/cover no-repeat,
    var(--granat);
}
.page-head--dark h1 { color: var(--white); max-width: 22ch; }
.page-head--dark .lead { color: rgba(250,249,246,0.85); max-width: 60ch; }
.page-head--dark .crumbs { color: rgba(250,249,246,0.62); }
.page-head--dark .crumbs a { color: rgba(250,249,246,0.82); }
.page-head--dark .crumbs a:hover { color: var(--brass-light); }
.page-head--dark .para-mark { color: var(--brass-light); display: inline-block; margin-bottom: 6px; }
.page-head--dark .eyebrow { color: var(--brass-light); }
.page-head--dark .article-meta { color: rgba(250,249,246,0.75); opacity: 1; }
/* Logo wystaje 88 px pod nagłówek (top 12 + 160 − 84) — ścieżka musi zaczynać się niżej */
@media (min-width: 901px) {
  .page-head, .page-head--dark { padding-top: 112px; }
}

/* ---------- Układ: treść + pasek boczny ---------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 60px;
  align-items: start;
}
.page-main { min-width: 0; }
.page-side { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 20px; }

.side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}
.side-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.side-card h4 { margin-bottom: 14px; }
.side-card p { font-size: 0.93rem; margin-bottom: 18px; }
.side-card .btn { width: 100%; justify-content: center; }
.side-card--cta { border-color: rgba(150,112,42,0.35); }
.side-card__mail {
  display: block;
  margin-top: 12px;
  font-size: 0.86rem;
  text-align: center;
  color: var(--graphite);
  text-decoration: none;
  word-break: break-all;
}
.side-card__mail:hover { color: var(--brass); }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: none; }
.side-list a {
  display: block;
  padding: 10px 0;
  font-size: 0.93rem;
  color: var(--ink);
  text-decoration: none;
}
.side-list a:hover { color: var(--brass); }

@media (max-width: 980px) {
  .page-layout { grid-template-columns: 1fr; gap: 44px; }
  .page-side { position: static; }
}

.related-box {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.related-box h4 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 14px; }
.related-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.related-box a { text-decoration: none; color: var(--ink); font-weight: 500; }
.related-box a:hover { color: var(--brass); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.85rem; color: var(--graphite); opacity: 0.7; margin-bottom: 18px; }
.crumbs a { color: inherit; }

/* ---------- Utylity ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.88rem; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brass); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }
