/* =========================================================
   Instytut Rozwoju Logistyki — system designu
   Paleta: granat naukowy + turkus + piaskowy akcent
   ========================================================= */

:root {
  /* Kolory bazowe */
  --ink:        #0B1F33;
  --ink-2:      #102A43;
  --ink-3:      #1C3D5A;
  --slate:      #486581;
  --slate-2:    #627D98;
  --mist:       #9FB3C8;
  --line:       #E2E8F0;
  --paper:      #F7F9FB;
  --paper-2:    #EEF3F8;
  --white:      #FFFFFF;

  /* Akcenty */
  --teal:       #0E8C7F;
  --teal-600:   #0B7165;
  --teal-200:   #B7E4DD;
  --teal-50:    #E7F6F3;
  --sand:       #C9A227;   /* "naukowy sznyt" — złoto/piaskowy */
  --sand-50:    #FBF4DE;
  --indigo:     #3B5BDB;
  --indigo-50:  #EAEEFC;

  /* Kategorie wpisów */
  --cat-research:   #0E8C7F;
  --cat-research-bg:#E7F6F3;
  --cat-industry:   #3B5BDB;
  --cat-industry-bg:#EAEEFC;
  --cat-report:     #B07A12;
  --cat-report-bg:  #FBF1DA;

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

  /* Promienie i cienie */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,31,51,.06), 0 1px 3px rgba(11,31,51,.04);
  --shadow-md: 0 6px 24px -8px rgba(11,31,51,.18);
  --shadow-lg: 0 24px 60px -24px rgba(11,31,51,.32);

  --maxw: min(1200px, 100%);
  --gut: clamp(16px, 3vw, 48px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---------- Typografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.7rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--teal);
  display: inline-block;
}
.lead { font-size: 1.18rem; color: var(--slate); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 9vw, 110px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
/* Na dużych ekranach (desktop) o połowę mniejszy odstęp góra/dół sekcji */
@media (min-width: 1024px) {
  .section { padding-block: 55px; }
  .section--tight { padding-block: 36px; }
  .page-hero { padding-block: 44px; }
}
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #DCE5EE; }
.section--ink h2, .section--ink h3 { color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: var(--mist);
  font-size: .82rem;
  letter-spacing: .02em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar a { color: #BCCCDC; }
.topbar .topbar__meta { display: flex; gap: 1.4rem; align-items: center; }
.topbar .topbar__meta span { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand:hover { text-decoration: none; }
.brand__logo { width: 42px; height: 42px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name strong {
  font-family: var(--serif); font-weight: 600; font-size: 1.06rem;
  color: var(--ink); letter-spacing: -.01em;
}
.brand__name span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  color: var(--ink-2); font-weight: 500; font-size: .98rem;
  padding: .55rem .9rem; border-radius: 999px; transition: background .15s, color .15s;
}
.nav__links a:hover { background: var(--paper-2); text-decoration: none; }
.nav__links a.is-active { color: var(--teal-600); background: var(--teal-50); }

.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; padding: .72rem 1.25rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-600); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--mist); background: var(--white); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--light:hover { background: rgba(255,255,255,.18); }
.btn--sand { background: var(--sand); color: #2A2310; }
.btn--sand:hover { background: #b8911f; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(45,212,191,.16), transparent 60%),
    radial-gradient(900px 500px at -5% 110%, rgba(59,91,219,.12), transparent 55%),
    linear-gradient(180deg, var(--white), var(--paper));
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(56px, 8vw, 104px);
}
.hero h1 { margin: 1rem 0 1.1rem; }
.hero .lead { max-width: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__stats { display: flex; gap: 2.2rem; margin-top: 2.8rem; flex-wrap: wrap; }
.hero__stat strong { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); display: block; line-height: 1; }
.hero__stat span { font-size: .85rem; color: var(--slate-2); }

/* Hero visual: stylizowana "karta danych" */
.hero__visual {
  position: relative; min-height: clamp(340px, 26vw, 480px);
  border-radius: var(--r-lg); background: var(--ink);
  box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid var(--ink-3);
}
.hero__visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(159,179,200,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,179,200,.10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 100% at 70% 10%, #000 40%, transparent 100%);
}
.hero__visual-inner { position: relative; padding: 26px; min-height: clamp(340px, 26vw, 480px); display: flex; flex-direction: column; color: #CFE8E3; }
.hero__visual .spark { flex: 1 1 auto; min-height: 150px; margin-top: 1.4rem; }
.hero__chip {
  align-self: flex-start; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-200); border: 1px solid rgba(45,212,191,.4); border-radius: 999px;
  padding: .3rem .7rem; background: rgba(45,212,191,.08);
}
.hero__visual h3 { color: #fff; font-size: 1.35rem; margin-top: 1.4rem; }
.hero__visual p { color: var(--mist); font-size: .92rem; margin-top: .5rem; }
.spark { margin: 18px 0; }

/* ---------- Cards / wpisy ---------- */
.cards { display: grid; gap: 26px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }
.card a { color: inherit; }
.card a:hover { text-decoration: none; }
.card__cover { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.card__cover svg, .card__cover .pattern { width: 100%; height: 100%; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.28rem; margin: .55rem 0 .55rem; }
.card a:hover .card__title { color: var(--teal-600); }
.card__excerpt { color: var(--slate); font-size: .96rem; margin-bottom: 1.1rem; }
.card__meta {
  margin-top: auto; display: flex; align-items: center; gap: .75rem;
  font-size: .82rem; color: var(--slate-2); padding-top: 1rem; border-top: 1px solid var(--line);
}
.card__meta .author { display: flex; align-items: center; gap: .5rem; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: .72rem; color: #fff;
  background: var(--ink-3); letter-spacing: .02em;
}

/* Tagi kategorii */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .32rem .65rem; border-radius: 999px;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--research { color: var(--cat-research); background: var(--cat-research-bg); }
.tag--industry { color: var(--cat-industry); background: var(--cat-industry-bg); }
.tag--report   { color: var(--cat-report);   background: var(--cat-report-bg); }

/* Okładki generatywne (bez plików graficznych) */
.cover {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  position: relative;
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(120% 120% at 30% 0%, #000, transparent 75%);
}
.cover--teal   { background: linear-gradient(135deg, #0E8C7F, #0B1F33); }
.cover--indigo { background: linear-gradient(135deg, #3B5BDB, #0B1F33); }
.cover--report { background: linear-gradient(135deg, #B07A12, #0B1F33); }
.cover__glyph { position: relative; z-index: 1; color: rgba(255,255,255,.92); width: 64px; height: 64px; }

/* ---------- Section header ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.section-head p { color: var(--slate); max-width: 56ch; margin-top: .7rem; }
.section-head__link { white-space: nowrap; font-weight: 600; }

/* ---------- Feature / wartości ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-600); margin-bottom: 1.1rem;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { color: var(--slate); font-size: .96rem; }

/* ---------- Page hero (podstrony) ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(45,212,191,.14), transparent 60%),
    linear-gradient(180deg, var(--white), var(--paper));
  border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 88px);
}
.page-hero h1 { margin: .9rem 0 .8rem; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.breadcrumbs { font-size: .85rem; color: var(--slate-2); }
.breadcrumbs a { color: var(--slate); }
.breadcrumbs span { margin-inline: .4rem; color: var(--mist); }

/* ---------- Prose (treść artykułów / podstron) ---------- */
/* Pełna szerokość — wszystkie elementy dopasowują się do szerokości kontenera. */
.prose { max-width: none; color: var(--ink-2); }
.prose.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2.6rem; }
.prose h3 { font-size: 1.32rem; margin-top: 2rem; }
.prose p { font-size: 1.06rem; line-height: 1.78; color: #243B53; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: .5rem; padding-left: .2rem; }
.prose li::marker { color: var(--teal); }
.prose a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--teal); padding: .4rem 0 .4rem 1.3rem; margin-block: 1.8rem;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); font-style: italic;
}
.prose figure figcaption { font-size: .85rem; color: var(--slate-2); margin-top: .6rem; }
.prose strong { color: var(--ink); }
.prose hr { border: none; border-top: 1px solid var(--line); margin-block: 2.4rem; }

/* Callout / ramka danych */
.callout {
  background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: var(--r-md);
  padding: 20px 22px; margin-block: 1.8rem;
}
.callout strong { color: var(--teal-600); }
.callout--sand { background: var(--sand-50); border-color: #EAD79A; }
.callout--sand strong { color: #8A6A0F; }

/* Spis treści */
.toc {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 22px; margin-block: 1.8rem;
}
.toc__title { display: block; color: var(--ink); margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin: .25rem 0; break-inside: avoid; }
.toc a { color: var(--teal-600); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Tabela danych */
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-block: 1.6rem; }
.data-table caption { text-align: left; color: var(--slate-2); font-size: .85rem; margin-bottom: .6rem; caption-side: top; }
.data-table th,
.data-table td {
  text-align: left;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table thead th { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.data-table tbody tr:hover { background: var(--paper); }
/* th.num i td.num — to samo wyrównanie (wcześniej tylko td.num było do prawej) */
.data-table th.num,
.data-table td.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--ink);
}

/* „/ 75” przy sumie punktów — wyszarzone i nieco mniejsze */
.pts-max { color: var(--slate-2); font-weight: 400; font-size: .78em; white-space: nowrap; }

/* Ikonka (i) z własnym tooltipem w nagłówkach kolumn */
.th-i {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 4px;
  border: 1px solid var(--slate-2); color: var(--slate-2);
  border-radius: 50%; font-size: 10px; font-style: italic; font-weight: 700;
  font-family: Georgia, "Times New Roman", serif; line-height: 1;
  cursor: help; vertical-align: middle; user-select: none;
}
.th-i:hover, .th-i:focus { background: var(--slate-2); color: #fff; outline: none; }

.th-tip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 248px;
  background: var(--ink, #102A43);
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .78rem; font-weight: 400; font-style: normal; line-height: 1.45;
  text-align: left; text-transform: none; letter-spacing: normal;
  padding: .6rem .7rem; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 42, 67, .28);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease;
  z-index: 60; pointer-events: none; white-space: normal;
}
.th-tip::before {
  content: ""; position: absolute; bottom: 100%; left: 14px;
  border: 6px solid transparent; border-bottom-color: var(--ink, #102A43);
}
.th-i--r .th-tip { left: auto; right: 0; }
.th-i--r .th-tip::before { left: auto; right: 14px; }
.th-i:hover .th-tip, .th-i:focus .th-tip {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* Owijka tabel — pełna szerokość kontenera + czytelny scroll poziomy */
.table-wrap {
  margin-block: 1.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  scrollbar-width: thin;
  scrollbar-color: var(--slate-2) var(--paper-2);
}
.table-wrap > .data-table { margin: 0; }
.table-wrap > .data-table caption { padding: .9rem 1rem 0; margin-bottom: 0; }
/* wyraźny pasek przewijania */
.table-wrap::-webkit-scrollbar { height: 14px; width: 14px; }
.table-wrap::-webkit-scrollbar-track { background: var(--paper-2); border-radius: 999px; }
.table-wrap::-webkit-scrollbar-thumb {
  background: var(--slate-2); border-radius: 999px; border: 4px solid var(--paper-2);
}
.table-wrap::-webkit-scrollbar-thumb:hover { background: var(--slate); }

/* Wariant z przyklejonym nagłówkiem — tytuły kolumn widoczne podczas przewijania */
.table-wrap--sticky { max-height: 80vh; overflow: auto; }
.table-wrap--sticky .data-table { border-collapse: separate; border-spacing: 0; }
.table-wrap--sticky .data-table thead th {
  position: sticky; top: 0; z-index: 3;
  box-shadow: inset 0 -1px 0 var(--line);
  background: var(--paper-2);
}
/* Najechany nagłówek wychodzi na wierzch, by tooltip nie chował się pod sąsiednimi kolumnami */
.table-wrap--sticky .data-table thead th:hover,
.table-wrap--sticky .data-table thead th:focus-within { z-index: 40; }

/* ---------- Tabele jako karty na mobile ---------- */
/* Generowane przez JS z tabel oznaczonych [data-cards]. Domyślnie ukryte. */
.table-cards { display: none; }
.t-card {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--white); padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.t-card__head {
  display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap;
  padding-bottom: .7rem; margin-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.t-card__rank {
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--teal-600);
  background: var(--paper-2); border-radius: 8px; padding: .05rem .5rem; line-height: 1.3;
}
.t-card__title { font-weight: 600; color: var(--ink); flex: 1; min-width: 50%; }
.t-card__score { margin-left: auto; font-weight: 700; color: var(--ink); white-space: nowrap; }
.t-card__grid { display: grid; grid-template-columns: 1fr auto; gap: .4rem .9rem; margin: 0; }
.t-card__row { display: contents; }
.t-card__row dt { color: var(--slate); font-size: .9rem; }
.t-card__row dd {
  margin: 0; color: var(--ink); font-weight: 600; text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .table-wrap--has-cards { display: none; }
  .table-cards { display: grid; gap: 14px; margin-block: 1.6rem; }
}

/* Statystyki w kafelkach */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-block: 1.8rem; }
.stat-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.stat-tile strong { font-family: var(--serif); font-size: 2rem; color: var(--teal-600); display: block; line-height: 1; }
.stat-tile span { font-size: .85rem; color: var(--slate); display: block; margin-top: .5rem; }

/* ---------- Article layout ---------- */
.article-head { padding-block: clamp(40px, 6vw, 72px) 0; }
.article-head .container { max-width: var(--maxw); }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 1rem 0 1.2rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--slate-2); font-size: .9rem; }
.article-meta .author { display: flex; align-items: center; gap: .6rem; color: var(--ink-2); font-weight: 600; }
.article-cover {
  margin-top: 2.4rem; border-radius: var(--r-lg); overflow: hidden; height: clamp(220px, 34vw, 380px);
  box-shadow: var(--shadow-md);
}
.article-body { padding-block: clamp(36px, 5vw, 56px) 0; }
/* Cała treść artykułu wykorzystuje pełną szerokość kontenera. */
.article-body .container { max-width: var(--maxw); }
.article-footer { padding-block: clamp(36px, 5vw, 56px); }
.article-footer .container { max-width: var(--maxw); }
.author-card {
  display: flex; gap: 1.1rem; align-items: flex-start; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-sm);
  max-width: 760px;
}
.author-card .avatar { width: 54px; height: 54px; font-size: 1rem; }
.author-card h4 { font-family: var(--sans); font-size: 1rem; color: var(--ink); }
.author-card p { font-size: .92rem; color: var(--slate); margin-top: .3rem; }
.author-card .role { color: var(--teal-600); font-weight: 600; font-size: .85rem; }

/* ---------- Filtry (artykuły) ---------- */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.filter-btn {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--slate); transition: all .15s;
}
.filter-btn:hover { border-color: var(--mist); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.is-hidden { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink-2), var(--ink));
  border-radius: var(--r-lg); padding: clamp(36px, 5vw, 60px); color: #fff;
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 100% 0%, rgba(45,212,191,.22), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--mist); margin-top: .7rem; max-width: 50ch; }
.cta-band .cta-actions { display: flex; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; align-items: center; }

/* Wariant z dwoma (lub więcej) przyciskami akcji — szersza prawa kolumna,
   przyciski równej szerokości obok siebie, symetrycznie. */
.cta-band:has(.cta-actions .btn:nth-child(2)) { grid-template-columns: 1fr auto; }
.cta-band .cta-actions:has(.btn:nth-child(2)) { flex-wrap: nowrap; }
.cta-band .cta-actions:has(.btn:nth-child(2)) > .btn {
  flex: 1 1 0; justify-content: center;
}

/* Pusty komunikat newslettera nie zajmuje miejsca */
[data-newsletter-note]:empty { display: none; }

/* Ujednolicona wysokość kontrolek, by formularz i przyciski tworzyły równą linię. */
.cta-band .newsletter input,
.cta-band .newsletter > .btn,
.cta-band .cta-actions > .btn {
  height: 52px;
}

/* Newsletter inline */
.newsletter { display: flex; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; align-items: stretch; }
.newsletter input {
  flex: 1; min-width: 220px; padding: .8rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  font: inherit; background: var(--white); color: var(--ink);
}
.newsletter input:focus { outline: 2px solid var(--teal); border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9FB3C8; padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #9FB3C8; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: .55rem; }
.footer-brand .brand__name strong { color: #fff; }
.footer-brand .brand__name span { color: var(--mist); }
.footer-brand p { margin-top: 1rem; max-width: 40ch; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid var(--ink-3); margin-top: 2.6rem; padding-top: 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--slate-2);
}
.social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social span { width: 38px; height: 38px; border: 1px solid var(--ink-3); border-radius: 10px; display: grid; place-items: center; color: #9FB3C8; }
.social svg { width: 18px; height: 18px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.divider { height: 1px; background: var(--line); border: none; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { font-size: .82rem; padding: .35rem .8rem; border-radius: 999px; background: var(--paper-2); color: var(--slate); border: 1px solid var(--line); }

/* ---------- Responsywność ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
  .cards--3, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band:has(.cta-actions .btn:nth-child(2)) { grid-template-columns: 1fr; }
  .cta-band .cta-actions { justify-content: flex-start; }
  /* Na mobile przyciski mogą się zawijać i rozciągać na pełną szerokość */
  .cta-band .cta-actions:has(.btn:nth-child(2)) { flex-wrap: wrap; }
  .cta-band .cta-actions:has(.btn:nth-child(2)) > .btn { flex: 1 1 200px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .site-header.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
    border-bottom: 1px solid var(--line); padding: .8rem var(--gut) 1.2rem; gap: .2rem;
    box-shadow: var(--shadow-md);
  }
  .site-header.is-open .nav__links a { padding: .8rem 1rem; }
  .nav__cta .btn { display: none; }
  .topbar .topbar__meta span.hide-sm { display: none; }
  .cards--3, .cards--2, .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 1.4rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
