/* =========================================================
   zaawizowani.pl — system designu
   Na styku logistyki (TSL) i technologii (IT)
   ========================================================= */

:root {
  /* Kolory marki */
  --navy-950: #06121f;
  --navy-900: #0a1b2e;
  --navy-800: #0f2740;
  --navy-700: #163556;
  --navy-600: #1d4674;
  --navy-500: #2660a0;

  --teal-600: #0e9b94;
  --teal-500: #14b8ad;
  --teal-400: #2dd4c4;
  --teal-300: #7eede2;

  --amber-500: #f5a623;
  --amber-400: #ffc24b;

  --ink-900: #0c1622;
  --ink-700: #2c3a4b;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;

  --paper: #ffffff;
  --paper-soft: #f6f9fc;
  --paper-mute: #eef3f8;
  --line: #e2e9f1;
  --line-strong: #cdd9e6;

  /* Kategorie */
  --cat-nauka: #6d5cf0;
  --cat-branza: #14b8ad;
  --cat-raport: #f5a623;

  /* Typografia */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  /* Skala */
  --maxw: 1200px;
  --maxw-prose: 760px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 27, 46, .06), 0 1px 3px rgba(10, 27, 46, .08);
  --shadow: 0 8px 24px rgba(10, 27, 46, .08);
  --shadow-lg: 0 24px 60px rgba(10, 27, 46, .16);

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy-600);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--teal-600); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.55rem); }

p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.25em; }

:focus-visible {
  outline: 3px solid var(--teal-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3.5rem, 6vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }
.section--soft { background: var(--paper-soft); }
.section--mute { background: var(--paper-mute); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--navy-900);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-600); font-size: 1.08rem; }

.lead { font-size: 1.18rem; color: var(--ink-600); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--teal-600), var(--navy-600));
}
.btn--accent { --btn-bg: linear-gradient(135deg, var(--amber-500), #f57e23); --btn-fg: #1a1205; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-700);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--paper-soft); border-color: var(--teal-400); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); }
.btn--sm { padding: .6rem 1rem; font-size: .88rem; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-600);
}
.btn-arrow svg { transition: transform .2s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--line);
}
/* backdrop-filter na ::before — nie na samym headerze, żeby nie tworzył
   containing blocka dla position:fixed (#primary-nav) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav__links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink-700);
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
}
.nav__links a:hover { background: var(--paper-soft); color: var(--navy-700); }
.nav__links a[aria-current="page"] { color: var(--teal-600); }
.nav__cta { margin-left: .6rem; }
.nav__cta a.btn,
.nav__cta a.btn:hover,
.nav__cta a.btn:focus,
.nav__cta a.btn:visited { color: #fff; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span { top: 50%; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--ink-900);
  letter-spacing: -.02em;
}
.logo:hover { color: var(--ink-900); }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__name b { color: var(--teal-600); font-weight: 700; }
.logo__name { line-height: 1; }
.logo__tld { color: var(--ink-400); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(20, 184, 173, .22), transparent 60%),
    radial-gradient(900px 520px at 8% 110%, rgba(38, 96, 160, .20), transparent 55%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 65%, var(--navy-800));
  color: #e9f1f8;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 500px at 70% 20%, #000, transparent 80%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.hero h1 { color: #fff; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--teal-300), var(--teal-400) 40%, var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { font-size: 1.2rem; color: #b9cbdc; max-width: 38ch; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--teal-300);
  background: rgba(20, 184, 173, .12);
  border: 1px solid rgba(45, 212, 196, .3);
  padding: .45rem .9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.6rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero__stat span { font-size: .85rem; color: #8fa6bc; }

/* Hero panel (wizualizacja) */
.hero__panel {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(4px);
}
.hero__panel-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: .7rem;
}
.hero__panel-row:last-child { margin-bottom: 0; }
.hero__panel-ico {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(20, 184, 173, .16);
  color: var(--teal-300);
}
.hero__panel-row b { display: block; color: #fff; font-family: var(--font-display); font-size: .98rem; }
.hero__panel-row span { font-size: .82rem; color: #94abc1; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- Category badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .32rem .7rem;
  border-radius: var(--radius-pill);
  background: var(--paper-mute);
  color: var(--ink-600);
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge--nauka { color: var(--cat-nauka); background: rgba(109, 92, 240, .1); }
.badge--branza { color: var(--teal-600); background: rgba(20, 184, 173, .12); }
.badge--raport { color: #b5740d; background: rgba(245, 166, 35, .14); }

/* ---------- Post cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
/* Cała karta klikalna (link tytułu rozciągnięty na cały box) */
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}
.card__media svg { width: 100%; height: 100%; }
.card__body { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; flex: 1; }
.card__title { font-size: 1.2rem; margin: 0; line-height: 1.3; }
.card__title a { color: var(--ink-900); }
.card__title a:hover { color: var(--teal-600); }
.card__excerpt { color: var(--ink-600); font-size: .96rem; margin: 0; flex: 1; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  color: var(--ink-500);
  margin-top: .2rem;
}
.card__meta time { white-space: nowrap; }
.card__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-400); }

/* Featured card (duża) */
.card--feature { grid-column: span 2; }
.card--feature .card__media { aspect-ratio: 21 / 10; }
.card--feature .card__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.card--feature .card__body { padding: 1.8rem; gap: .9rem; }

/* Media gradients */
.cover-nauka { background: linear-gradient(135deg, #4b3fb8, #6d5cf0 60%, #9b8bff); }
.cover-branza { background: linear-gradient(135deg, #0c6b66, #14b8ad 60%, #2dd4c4); }
.cover-raport { background: linear-gradient(135deg, #b5740d, #f5a623 60%, #ffc24b); }
.cover-navy { background: linear-gradient(135deg, var(--navy-800), var(--navy-600) 60%, var(--teal-600)); }

/* ---------- Feature tiles (kategorie / wartości) ---------- */
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  height: 100%;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.tile__ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  color: #fff;
}
.tile h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.tile p { color: var(--ink-600); font-size: .98rem; margin: 0; }
.tile__link { margin-top: 1rem; display: inline-block; }

.ico-teal { background: linear-gradient(135deg, var(--teal-600), var(--teal-400)); }
.ico-navy { background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); }
.ico-violet { background: linear-gradient(135deg, #4b3fb8, #6d5cf0); }
.ico-amber { background: linear-gradient(135deg, #b5740d, var(--amber-500)); }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.stat-card {
  text-align: center;
  padding: 1.6rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
  font-weight: 700;
  color: var(--navy-700);
  line-height: 1;
}
.stat-card span { font-size: .9rem; color: var(--ink-600); display: block; margin-top: .5rem; }
.stat-card small { color: var(--ink-400); font-size: .76rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 4vw, 3.6rem);
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(20, 184, 173, .3), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #b9cbdc; margin: 0; max-width: 52ch; }

/* ---------- Newsletter ---------- */
.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.newsletter input[type="email"] {
  flex: 1 1 240px;
  padding: .85rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
}
.newsletter input::placeholder { color: #9fb4c8; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-900);
  margin-bottom: .4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 173, .14);
}
.field textarea { min-height: 150px; resize: vertical; }
.field__hint { font-size: .82rem; color: var(--ink-500); margin-top: .35rem; }
.form-note {
  font-size: .85rem;
  color: var(--ink-500);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
}
.form-status { font-size: .95rem; margin-top: 1rem; font-weight: 600; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-size: .85rem;
  color: var(--ink-500);
  padding-block: 1.1rem;
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: .45rem; color: var(--ink-400); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--teal-600); }

/* ---------- Article ---------- */
.article-hero {
  background:
    radial-gradient(800px 360px at 85% -10%, rgba(20, 184, 173, .14), transparent 60%),
    var(--paper-soft);
  border-bottom: 1px solid var(--line);
}
.article-hero__inner { max-width: var(--maxw-prose); margin-inline: auto; padding-block: clamp(2rem, 4vw, 3.2rem); }
.article-hero h1 { margin-top: .8rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem 1rem;
  margin-top: 1.4rem;
  font-size: .9rem;
  color: var(--ink-600);
}
.author-chip { display: flex; align-items: center; gap: .6rem; }
.author-chip__ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: .9rem;
  flex: none;
}
.author-chip b { display: block; color: var(--ink-900); font-size: .92rem; }
.author-chip span { font-size: .8rem; color: var(--ink-500); }

.prose {
  max-width: var(--maxw-prose);
  margin-inline: auto;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.8;
  color: #20303f;
}
.prose > h2 {
  font-family: var(--font-display);
  margin-top: 2.4em;
  margin-bottom: .6em;
  scroll-margin-top: 90px;
}
.prose > h3 {
  font-family: var(--font-display);
  margin-top: 1.8em;
  margin-bottom: .5em;
  scroll-margin-top: 90px;
}
.prose p { margin: 0 0 1.3em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--navy-600); text-decoration: underline; text-decoration-color: var(--teal-300); text-underline-offset: 3px; }
.prose a:hover { color: var(--teal-600); }
.prose strong { color: var(--ink-900); }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }

.prose blockquote {
  margin: 1.8em 0;
  padding: .4em 1.4em;
  border-left: 4px solid var(--teal-500);
  font-style: italic;
  color: var(--ink-700);
  background: var(--paper-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.lead-para {
  font-size: 1.32rem;
  line-height: 1.65;
  color: var(--ink-700);
  font-family: var(--font-serif);
}

/* Drop cap dla pierwszego akapitu po lead */
.prose .first::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  font-weight: 700;
  float: left;
  line-height: .8;
  margin: .06em .12em 0 0;
  color: var(--teal-600);
}

/* TL;DR / key takeaways */
.callout {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 2em 0;
}
.callout h3, .callout h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 .7rem;
}
.callout ul { margin: 0; padding-left: 1.2em; }
.callout li { margin-bottom: .45em; }
.callout--key { border-left-color: var(--amber-500); background: #fff9ef; }
.callout--key h3, .callout--key h4 { color: #b5740d; }
.callout--info { border-left-color: var(--navy-500); }

/* Data tables */
.table-wrap { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: .95rem;
  min-width: 480px;
}
table.data caption {
  text-align: left;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--ink-500);
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}
table.data th,
table.data td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--navy-900); color: #fff; font-family: var(--font-display); font-size: .85rem; }
table.data tbody tr:nth-child(even) { background: var(--paper-soft); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Figure / stat highlight inside article */
.stat-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2em 0;
}
.stat-inline div {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  font-family: var(--font-body);
}
.stat-inline strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--teal-300);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-inline span { font-size: .85rem; color: #b9cbdc; }

/* Table of contents */
.toc {
  font-family: var(--font-body);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 0 0 2em;
}
.toc strong {
  display: block;
  font-family: var(--font-display);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-500);
  margin-bottom: .8rem;
}
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: .4em; font-size: .98rem; }
.toc a { color: var(--navy-700); text-decoration: none; }
.toc a:hover { color: var(--teal-600); }

/* Sources */
.sources {
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-600);
}
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: .6em; }
.sources a { word-break: break-word; }

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.3rem;
  margin-bottom: .8rem;
  background: var(--paper);
  transition: box-shadow .2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal-600);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; margin: 0; color: var(--ink-600); font-family: var(--font-body); }

/* Article footer / author bio */
.author-bio {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin-top: 2.5em;
}
.author-bio .author-chip__ava { width: 64px; height: 64px; font-size: 1.3rem; }
.author-bio b { font-size: 1.1rem; color: var(--ink-900); font-family: var(--font-display); }
.author-bio .role { color: var(--teal-600); font-size: .9rem; font-weight: 600; }
.author-bio p { margin: .5rem 0 0; font-size: .95rem; color: var(--ink-600); }

.share { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 2em; }
.share span { font-size: .85rem; color: var(--ink-500); font-family: var(--font-display); }
.share a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--navy-700);
}
.share a:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5em; }
.tag {
  font-size: .82rem;
  color: var(--ink-600);
  background: var(--paper-mute);
  padding: .35rem .8rem;
  border-radius: var(--radius-pill);
}
.tag:hover { background: var(--paper-soft); color: var(--teal-600); }

/* ---------- Filters (blog) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.2rem;
}
.filter-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink-700);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--teal-400); color: var(--teal-600); }
.filter-btn[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.is-hidden { display: none !important; }
.no-results { color: var(--ink-500); padding: 2rem 0; }

/* ---------- Profile / experts ---------- */
.profile {
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.profile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.profile__ava {
  width: 86px; height: 86px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.7rem;
  color: #fff;
}
.profile h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.profile .role { color: var(--teal-600); font-weight: 600; font-size: .9rem; font-family: var(--font-display); }
.profile p { color: var(--ink-600); font-size: .92rem; margin: .9rem 0 0; }
.profile .tags { justify-content: center; }

/* ---------- Timeline (o nas) ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line-strong);
}
.timeline__item { position: relative; padding-bottom: 1.8rem; }
.timeline__item::before {
  content: ""; position: absolute; left: -2rem; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-500); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-strong);
}
.timeline__item h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.timeline__item span { font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--teal-600); }
.timeline__item p { margin: .3rem 0 0; color: var(--ink-600); font-size: .96rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 88% -20%, rgba(20, 184, 173, .14), transparent 60%),
    var(--paper-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.4rem, 5vw, 4rem);
}
.page-hero .lead { max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #9fb4c8;
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer .logo { color: #fff; }
.site-footer .logo__tld { color: #6f8aa6; }
.footer-about { font-size: .95rem; max-width: 36ch; margin-top: 1rem; color: #93a9bf; }
.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: #9fb4c8; font-size: .95rem; }
.footer-col a:hover { color: var(--teal-300); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: .85rem;
  color: #6f8aa6;
}
.footer-bottom a { color: #9fb4c8; }
.social { display: flex; gap: .6rem; }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  color: #cfe0ef;
}
.social a:hover { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: 1.1rem; }
.muted { color: var(--ink-500); }
.divider { height: 1px; background: var(--line); border: 0; margin: 2.5em 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { max-width: 460px; width: 100%; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: .6rem 1.1rem 1.2rem;
    transform: translateY(calc(-100% - 72px));
    transition: transform .3s var(--ease), visibility .3s var(--ease);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
    z-index: 101;
  }
  .nav__links.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav__links a { padding: .9rem .4rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__cta { margin: .8rem 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav__toggle { display: block; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .card--feature { grid-column: span 1; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .prose { font-size: 1.08rem; }
  .lead-para { font-size: 1.16rem; }
  .author-bio { flex-direction: column; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.2rem; }
  .stat-strip { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .share, .newsletter, .nav__toggle, .cta-band { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .prose { max-width: none; }
}
