/* ============================================================
   CTU.pl — Poradnik ubezpieczeniowy
   Paleta z logo: Niebieski #214992 · Złoty #FECC00 · Biel
   Font: Inter
   ============================================================ */

:root {
  /* Marka (z logo) */
  --brand:        #214992;
  --brand-700:    #1b3c79;
  --brand-800:    #162f5f;
  --brand-600:    #2a57ad;
  --brand-50:     #eef2fb;
  --brand-100:    #dce5f6;
  --accent:       #FECC00;
  --accent-600:   #e6b800;
  --accent-50:    #fffbe6;

  /* Neutralne */
  --ink:          #0f1b33;
  --text:         #1f2a44;
  --text-muted:   #5b6b85;
  --line:         #e4e9f2;
  --line-soft:    #eef1f7;
  --surface:      #ffffff;
  --surface-2:    #f6f8fc;
  --surface-3:    #eef2f8;

  --success:      #10b981;
  --error:        #ef4444;

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow-sm:    0 1px 2px rgba(15,27,51,.06), 0 1px 3px rgba(15,27,51,.05);
  --shadow:       0 4px 18px rgba(15,27,51,.08), 0 2px 6px rgba(15,27,51,.05);
  --shadow-lg:    0 18px 50px rgba(15,27,51,.14), 0 6px 16px rgba(15,27,51,.08);
  --transition:   .2s cubic-bezier(.4,0,.2,1);
  --container:    1180px;
  --container-narrow: 860px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html { scroll-padding-top: 90px; } /* anchor offset pod sticky header */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-700); }
img { max-width: 100%; height: auto; display: block; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--brand); color:#fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color:#fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px; height: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__logo { display: flex; align-items: center; gap: 12px; }
.site-header__logo-img { height: 40px; width: auto; }
.site-header__badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-50);
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--brand-100);
}
.site-header__nav { display: flex; align-items: center; gap: 26px; }
.site-header__nav a { font-size: .92rem; font-weight: 600; color: var(--ink); }
.site-header__nav a:hover { color: var(--brand); }
.site-header__phone {
  display: flex; flex-direction: column; align-items: flex-end;
  font-size: .95rem; font-weight: 700; color: var(--ink);
}
.site-header__phone small { font-size: .68rem; font-weight: 500; color: var(--text-muted); }
.header-menu-btn { display:none; background:none; border:0; cursor:pointer; padding:8px; }
.header-menu-btn svg { width:26px; height:26px; stroke: var(--ink); }

/* ============================================================
   BUTTONS / CHIPS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: all var(--transition); text-decoration: none;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); color:#fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-600); color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background:#fff; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .88rem; font-weight: 600; color: var(--text);
  padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line);
  transition: all var(--transition);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip--active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--active:hover { color:#fff; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(1100px 380px at 85% -10%, rgba(254,204,0,.16), transparent 60%),
    linear-gradient(160deg, var(--brand-800), var(--brand) 70%);
  color: #fff; padding: 64px 0 76px;
  position: relative; overflow: hidden;
}
.hero__inner { max-width: var(--container-narrow); }
.hero__eyebrow {
  display:inline-block; font-size:.8rem; font-weight:700; letter-spacing:.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.1; font-weight: 800; letter-spacing:-.02em; }
.hero p { margin-top: 16px; font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 640px; }
.hero__search { margin-top: 30px; max-width: 560px; }

/* Search */
.search-form { position: relative; }
.search-form input {
  width: 100%; padding: 16px 54px 16px 20px; border-radius: 999px; border: 0;
  font-size: 1rem; font-family: inherit; box-shadow: var(--shadow);
}
.search-form input:focus { outline: 3px solid rgba(254,204,0,.5); }
.search-form button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color:#fff; display:flex; align-items:center; justify-content:center;
}
.search-form button:hover { background: var(--brand-700); }
.search-form svg { width: 20px; height: 20px; }

/* ============================================================
   SECTION / TOOLBAR
   ============================================================ */
.section { padding: 48px 0 72px; }
.section__head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom: 26px; flex-wrap: wrap; }
.section__title { font-size: 1.6rem; font-weight: 800; color: var(--ink); letter-spacing:-.01em; }
.section__subtitle { color: var(--text-muted); margin-top: 4px; }
.filters { margin-bottom: 30px; display:flex; align-items:center; gap: 12px; flex-wrap: wrap; }
.filters__label { font-size:.82rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color: var(--text-muted); }

/* Rozwijany filtr kategorii (własny komponent na <details>) */
.cat-dd { position: relative; }
.cat-dd__toggle {
  display: inline-flex; align-items: center; gap: 10px; list-style: none; cursor: pointer;
  min-width: 240px; padding: 11px 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--line);
  font-size: .95rem; font-weight: 600; color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cat-dd__toggle::-webkit-details-marker { display: none; }
.cat-dd__toggle:hover { border-color: var(--brand); }
.cat-dd[open] .cat-dd__toggle { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.cat-dd__current { flex: 1; white-space: nowrap; }
.cat-dd__chevron { width: 18px; height: 18px; color: var(--brand); transition: transform var(--transition); flex-shrink: 0; }
.cat-dd[open] .cat-dd__chevron { transform: rotate(180deg); }
.cat-dd__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.cat-dd__menu {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0;
  min-width: 100%; width: max-content; max-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  animation: catddIn .16s ease;
}
@keyframes catddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.cat-dd__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: .94rem; font-weight: 600; color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.cat-dd__item:hover { background: var(--surface-2); color: var(--ink); }
.cat-dd__item.is-active { background: var(--brand-50); color: var(--brand); }
.cat-dd__name { flex: 1; white-space: nowrap; }
.cat-dd__count {
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  background: var(--surface-3); padding: 1px 9px; border-radius: 999px; min-width: 24px; text-align: center;
}
.cat-dd__item.is-active .cat-dd__count { background: #fff; color: var(--brand); }
@media (max-width: 640px) {
  .cat-dd, .cat-dd__toggle { width: 100%; }
  .cat-dd__menu { max-width: none; }
}

/* Unikalny blok SEO/LLM na dole strony głównej */
.home-seo { border-top: 1px solid var(--line); background: var(--surface-2); }
.home-seo__inner { max-width: var(--container-narrow); padding-top: 44px; padding-bottom: 52px; }
.home-seo h2 { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.home-seo h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.home-seo p { color: var(--text-muted); margin-bottom: 12px; font-size: .96rem; line-height: 1.75; }
.home-seo a { color: var(--brand); font-weight: 600; }
.home-seo ul { margin: 8px 0 12px 20px; color: var(--text-muted); }
.home-seo li { margin: 4px 0; }
/* Box autora na stronie głównej — biały, wyraźnie wydzielony od szarego bloku */
.author-box--home { margin-top: 30px; background: #fff; }

/* ============================================================
   ARTICLE GRID / CARDS
   ============================================================ */
.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.card__media { position: relative; aspect-ratio: 16/9; background: var(--surface-3); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media--placeholder {
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
}
.card__media--placeholder svg { width: 56px; height: 56px; opacity:.5; stroke: var(--brand); }
.card__cat {
  position: absolute; top: 12px; left: 12px;
  font-size: .72rem; font-weight: 700; color: #fff;
  background: rgba(33,73,146,.92); padding: 5px 11px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card__body { padding: 20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.card__title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; letter-spacing:-.01em; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand); }
.card__excerpt { margin-top: 10px; color: var(--text-muted); font-size: .94rem; flex:1; }
.card__meta {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  display:flex; align-items:center; gap: 14px; font-size: .82rem; color: var(--text-muted);
}
.card__meta time { display:inline-flex; align-items:center; gap:6px; }
.meta-dot { width:3px; height:3px; border-radius:50%; background: var(--text-muted); }

/* Empty state */
.empty {
  text-align:center; padding: 70px 20px; color: var(--text-muted);
  border: 2px dashed var(--line); border-radius: var(--radius-lg);
}
.empty svg { width: 56px; height:56px; stroke: var(--brand); opacity:.4; margin: 0 auto 16px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display:flex; justify-content:center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 10px; border: 1px solid var(--line); background:#fff;
  font-weight: 600; font-size: .92rem; color: var(--text);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color:#fff; }
.pagination .is-disabled { opacity:.4; pointer-events:none; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs { font-size: .85rem; color: var(--text-muted); padding: 22px 0 0; }
.breadcrumbs ol { list-style:none; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.breadcrumbs li { display:flex; align-items:center; gap:8px; }
.breadcrumbs li:not(:last-child)::after { content:"/"; color: var(--line); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight:600; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero { padding: 14px 0 8px; }
.article-hero__cat {
  display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.03em;
  color: var(--brand); background: var(--brand-50); padding: 5px 13px; border-radius:999px; margin-bottom:16px;
}
.article-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height:1.15; font-weight:800; color: var(--ink); letter-spacing:-.02em; }
.article-hero__lead { margin-top: 16px; font-size: 1.18rem; color: var(--text-muted); }
.article-hero__meta {
  margin-top: 22px; display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  font-size:.9rem; color: var(--text-muted);
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.article-hero__author { display:flex; align-items:center; gap:10px; font-weight:600; color: var(--ink); }
.avatar {
  width:38px; height:38px; border-radius:50%; background: var(--brand); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.9rem;
}
.article-cover { margin: 28px 0 8px; border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow); }

/* Layout artykułu z TOC */
.article-layout {
  display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 8px;
}
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0,1fr) 260px; }
  .article-layout__main { min-width: 0; }
}

/* TOC */
.toc {
  position: sticky; top: 92px; align-self: start;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.toc__title { font-size:.78rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color: var(--text-muted); margin-bottom: 12px; }
.toc ul { list-style:none; }
.toc li { margin: 2px 0; }
.toc a {
  display:block; padding: 6px 10px; border-radius: 8px; font-size:.9rem;
  color: var(--text-muted); border-left: 2px solid transparent;
}
.toc a:hover { color: var(--brand); background:#fff; }
.toc a.is-active { color: var(--brand); font-weight:600; border-left-color: var(--brand); background:#fff; }
.toc .toc--sub a { padding-left: 24px; font-size:.85rem; }
.toc-mobile { display:none; }

/* PROSE — typografia treści artykułu */
.prose { font-size: 1.08rem; color: var(--text); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: 1.55rem; font-weight: 800; color: var(--ink); letter-spacing:-.01em;
  margin-top: 2em; padding-top: .2em; line-height:1.25;
}
.prose h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-top: 1.6em; }
.prose h2 + p, .prose h3 + p { margin-top: .6em; }
.prose p { line-height: 1.8; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--brand-700); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .5em 0; line-height: 1.7; }
.prose ul li::marker { color: var(--brand); }
.prose blockquote {
  border-left: 4px solid var(--accent); background: var(--accent-50);
  padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text);
  font-style: italic;
}
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 1.6em auto; }
.prose code {
  background: var(--surface-3); padding: 2px 7px; border-radius: 6px;
  font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prose pre { background: var(--ink); color:#e6edf6; padding: 18px 20px; border-radius: var(--radius); overflow-x:auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
/* Tabela dopasowuje się do szerokości kolumny treści (bez poziomego scrolla).
   table-layout: auto → kolumny dobierają szerokość do treści: wąska kolumna
   (np. numeracja „#") zostaje wąska, a kolumna z największą ilością tekstu
   dostaje najwięcej miejsca. overflow-wrap: anywhere gwarantuje, że tabela
   nigdy nie wyjdzie poza kontener (długie słowa mogą się złamać w razie potrzeby). */
.prose .table-scroll { max-width: 100%; margin: 1.15em 0; }
.prose .table-scroll > table { margin: 0; }
.prose table { width:100%; max-width:100%; border-collapse: collapse; font-size:.95rem; table-layout: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 11px; text-align:left; vertical-align: top; overflow-wrap: anywhere; hyphens: auto; }
.prose thead th { background: var(--brand-50); color: var(--ink); font-weight:700; }
.prose tbody tr:nth-child(even) { background: var(--surface-2); }
/* Na wąskich ekranach dodatkowo zmniejsz gęstość, żeby zmieściły się szersze tabele */
@media (max-width: 640px) {
  .prose table { font-size: .86rem; }
  .prose th, .prose td { padding: 7px 8px; }
}

/* Okiem eksperta (delikatne wyróżnienie sekcji w treści) */
.prose .expert-note {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 4px 26px 22px;
  margin: 2.4em 0;
}
.prose .expert-note > h2:first-child { margin-top: 1em; color: var(--brand); }
.prose .expert-note p { color: var(--text); }

/* FAQ */
.faq { margin-top: 56px; }
.faq h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow:hidden; background:#fff; }
.faq__q {
  width:100%; text-align:left; cursor:pointer; background:none; border:0;
  padding: 18px 22px; font-size: 1.05rem; font-weight:700; color: var(--ink);
  display:flex; align-items:center; justify-content:space-between; gap: 16px; font-family:inherit;
}
.faq__q:hover { color: var(--brand); }
.faq__icon { flex-shrink:0; width:22px; height:22px; transition: transform var(--transition); stroke: var(--brand); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--text-muted); line-height:1.7; }

/* Share */
.share { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display:flex; align-items:center; gap: 14px; flex-wrap:wrap; }
.share__label { font-weight:700; color: var(--ink); font-size:.95rem; }
.share__btns { display:flex; gap:10px; }
.share__btn {
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; color: var(--brand);
}
.share__btn:hover { background: var(--brand); color:#fff; border-color: var(--brand); }
.share__btn svg { width:20px; height:20px; }

/* CTA box */
.cta-box {
  margin-top: 48px; padding: 32px; border-radius: var(--radius-lg); color:#fff;
  background: linear-gradient(135deg, var(--brand-800), var(--brand));
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-box__text h3 { font-size: 1.3rem; font-weight:800; }
.cta-box__text p { color: rgba(255,255,255,.85); margin-top:6px; }

/* Author box (E-E-A-T) */
.author-box {
  margin-top: 48px; display: flex; gap: 22px; align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 26px;
}
.author-box__photo { flex-shrink: 0; }
.author-box__photo img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: var(--shadow);
}
.author-box--noimg .author-box__photo { display: none; }
.author-box__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand);
}
.author-box__name { font-size: 1.25rem; font-weight: 800; color: var(--ink); margin-top: 2px; }
.author-box__title { font-size: .9rem; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.author-box__bio { font-size: .94rem; color: var(--text); margin-top: 10px; line-height: 1.65; }
.author-box__knf { font-size: .82rem; color: var(--text-muted); margin-top: 10px; }
@media (max-width: 560px) {
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* Related */
.related { margin-top: 72px; }
.related h2 { font-size: 1.5rem; font-weight:800; color: var(--ink); margin-bottom: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); margin-top: 80px; }
.site-footer__grid {
  max-width: var(--container); margin: 0 auto; padding: 56px 24px 36px;
  display:grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.footer-brand p { margin-top: 14px; font-size:.92rem; line-height:1.7; max-width: 320px; }
.footer-logo { display:flex; align-items:center; gap:10px; }
.footer-logo-text { color:#fff; font-weight:800; font-size:1.2rem; }
.footer-col h4 { color:#fff; font-size:.82rem; letter-spacing:.05em; text-transform:uppercase; margin-bottom:14px; }
.footer-col a { display:block; color: rgba(255,255,255,.7); font-size:.92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.site-footer__bottom {
  max-width: var(--container); margin: 0 auto; padding: 22px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-size:.85rem; color: rgba(255,255,255,.55);
}
.footer-badges { display:flex; gap:10px; flex-wrap:wrap; }
.footer-badge { font-size:.74rem; padding:5px 12px; border-radius:999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .site-header__nav { display:none; }
  .header-menu-btn { display:block; }
  .site-header__nav.is-open {
    display:flex; position:absolute; top:70px; left:0; right:0; flex-direction:column;
    align-items:flex-start; gap:0; background:#fff; border-bottom:1px solid var(--line); padding: 8px 24px 16px;
  }
  .site-header__nav.is-open a { padding: 12px 0; width:100%; border-bottom:1px solid var(--line-soft); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .toc { display:none; }
  .toc-mobile { display:block; margin: 20px 0; }
  .toc-mobile summary { cursor:pointer; font-weight:700; padding: 14px 18px; background: var(--surface-2); border:1px solid var(--line); border-radius: var(--radius); }
  .toc-mobile ul { list-style:none; padding: 12px 18px; }
  .toc-mobile li { margin:4px 0; }
  .toc-mobile a { color: var(--text-muted); }
}
@media (max-width: 640px) {
  /* Hero: mniejsze odstępy nad i pod tekstem na tle niebieskim (oszczędność wysokości) */
  .hero { padding: 28px 0 32px; }
  .hero__eyebrow { margin-bottom: 8px; }
  .hero p { margin-top: 10px; }
  .hero__search { margin-top: 18px; }
  /* Sekcja: brak odstępu nad „Najnowsze artykuły" */
  .section { padding-top: 20px; }
  .section__head { margin-bottom: 18px; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction:column; align-items:flex-start; }
}
