/* ==========================================================================
   Alergia i Zdrowie - arkusz stylow
   Portal edukacyjny: alergologia, dermatologia, pulmonologia, laryngologia
   ========================================================================== */

/* --- 1. Tokeny ---------------------------------------------------------- */
:root {
  --ink: #14130E;
  --ink-80: #302E27;
  --ink-70: #4A4840;
  --ink-50: #6E6B61;
  --ink-30: #9C988C;

  --cream: #F4F2EB;
  --cream-2: #EAE7DD;
  --cream-3: #DFDBCE;
  --paper: #FFFFFF;

  --line: #E2DED2;
  --line-2: #D3CEBF;

  --green: #3F5D34;
  --green-2: #6E9155;
  --green-3: #AFC793;
  --green-tint: #EDF2E3;

  --clay: #B5623C;
  --clay-tint: #F7EBE3;

  --sky: #2F6D7A;
  --sky-tint: #E4EFF1;

  --plum: #6B4A63;
  --plum-tint: #F1E9EF;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  --shadow-sm: 0 1px 2px rgba(20, 19, 14, .05);
  --shadow-md: 0 1px 2px rgba(20, 19, 14, .04), 0 10px 24px -14px rgba(20, 19, 14, .18);
  --shadow-lg: 0 2px 4px rgba(20, 19, 14, .04), 0 28px 60px -30px rgba(20, 19, 14, .28);

  --wrap: 1200px;
  --wrap-narrow: 780px;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 220ms;
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-70);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 500; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
a { color: var(--green); text-decoration-color: rgba(63, 93, 52, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

:focus-visible {
  outline: 3px solid var(--green-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--green-3); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 999;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

/* --- 3. Typografia ------------------------------------------------------ */
.display, h1, h2.section-title, .h-serif {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 400;
  letter-spacing: -.018em;
  line-height: 1.08;
  color: var(--ink);
}

h1, .display { font-size: clamp(2.35rem, 1.35rem + 3.6vw, 4.4rem); }
h2.section-title { font-size: clamp(1.85rem, 1.15rem + 2.4vw, 3.05rem); line-height: 1.12; }
h3 { font-size: 1.24rem; letter-spacing: -.012em; line-height: 1.32; font-weight: 600; }
h4 { font-size: 1.02rem; letter-spacing: -.005em; font-weight: 600; }

.lead {
  font-size: clamp(1.06rem, .98rem + .35vw, 1.24rem);
  line-height: 1.6;
  color: var(--ink-70);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-50);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-2); flex: none;
}

.num { font-variant-numeric: tabular-nums; }

/* --- 4. Layout ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--paper { background: var(--paper); }
.section--cream2 { background: var(--cream-2); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, .74); }
.section--ink h2, .section--ink h3, .section--ink .display { color: #fff; }

.grid { display: grid; gap: var(--sp-5); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--top { align-items: start; }

.section-head { max-width: 660px; margin-bottom: var(--sp-7); }
.section-head .eyebrow { margin-bottom: var(--sp-4); }
.section-head p { margin-top: var(--sp-4); }

.section-head--split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
  max-width: none; margin-bottom: var(--sp-7);
}
.section-head--split p { margin-top: 0; padding-bottom: 4px; }

/* --- 5. Komponenty: przyciski i chipy ----------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { flex: none; }
.btn:active { transform: translateY(1px); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--green); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(20, 19, 14, .04); }

.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #344D2B; }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--green-tint); }

.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .875rem; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 13px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 500; color: var(--ink-80);
  white-space: nowrap;
}
.chip svg { flex: none; color: var(--green-2); }
.chip--plain { background: transparent; }

/* --- 6. Naglowek -------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 242, 235, .88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.masthead.is-stuck { border-bottom-color: var(--line); }

.masthead__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 74px;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink); flex: none;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display); font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.14rem; font-weight: 600; letter-spacing: -.02em;
}
.brand__sub { font-size: .63rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-50); font-weight: 600; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 500; color: var(--ink-80); text-decoration: none;
  white-space: nowrap; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: rgba(20, 19, 14, .05); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--green); font-weight: 600; }
.nav__caret { transition: transform var(--dur) var(--ease); }
.nav__link[aria-expanded="true"] { background: rgba(20, 19, 14, .06); }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__item { position: relative; }
.megamenu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(720px, 88vw);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.megamenu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.megamenu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.megamenu__link {
  display: flex; gap: 12px; padding: 11px 12px; border-radius: var(--r-md);
  text-decoration: none; color: var(--ink);
  transition: background var(--dur) var(--ease);
}
.megamenu__link:hover { background: var(--cream); }
.megamenu__icon {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--green-tint); color: var(--green);
}
.megamenu__link[data-tone="clay"] .megamenu__icon { background: var(--clay-tint); color: var(--clay); }
.megamenu__link[data-tone="sky"] .megamenu__icon { background: var(--sky-tint); color: var(--sky); }
.megamenu__link[data-tone="plum"] .megamenu__icon { background: var(--plum-tint); color: var(--plum); }
.megamenu__t { display: block; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.megamenu__d { display: block; font-size: .79rem; color: var(--ink-50); line-height: 1.4; margin-top: 2px; }
.megamenu__foot {
  margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: .82rem; color: var(--ink-50);
}

.masthead__cta { flex: none; margin-left: var(--sp-3); }

.burger {
  display: none; width: 44px; height: 44px; margin-left: auto;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  cursor: pointer; color: var(--ink);
}
.burger span { display: block; width: 17px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative; transition: background var(--dur) var(--ease); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: 74px 0 0; z-index: 55;
  background: var(--cream);
  overflow-y: auto; overscroll-behavior: contain;
  padding: var(--sp-5) 0 var(--sp-8);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer__group { border-top: 1px solid var(--line); padding-top: var(--sp-4); margin-top: var(--sp-4); }
.drawer__group:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.drawer__label { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-50); font-weight: 700; margin-bottom: var(--sp-3); }
.drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drawer__list li { margin: 0; }
.drawer__list a {
  display: block; padding: 11px 12px; border-radius: var(--r-md);
  color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500;
}
.drawer__list a:hover { background: var(--cream-2); }
.drawer__list a[aria-current="page"] { color: var(--green); font-weight: 600; }
.drawer .btn { width: 100%; margin-top: var(--sp-5); }

/* --- 7. Hero ------------------------------------------------------------ */
.hero { position: relative; padding-block: clamp(40px, 5.5vw, 76px) clamp(28px, 3vw, 44px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .82fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.hero__title { margin: var(--sp-5) 0 0; }
.hero__title .accent { color: var(--green); font-style: italic; }
.hero__slash { color: var(--ink-30); font-weight: 300; padding-inline: .12em; }
.hero__date { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--ink-50); letter-spacing: 0; vertical-align: .55em; }

.hero__inline-chip {
  display: inline-flex; align-items: center; gap: 9px; vertical-align: .16em;
  padding: 7px 16px 7px 13px; margin-inline: .12em;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: .46em; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink-80);
}
.hero__inline-chip svg { color: var(--green-2); }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); margin-top: var(--sp-6); }
.hero__note { font-size: .88rem; line-height: 1.5; color: var(--ink-50); max-width: 290px; }

.hero__aside { position: relative; padding-top: 18px; }
.hero__doodle { position: absolute; top: -36px; left: -48px; width: 112px; opacity: .8; color: var(--ink-30); pointer-events: none; }

.spotcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4); box-shadow: var(--shadow-md);
}
.spotcard__head { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: var(--sp-4); align-items: center; }
.spotcard__art { width: 74px; height: 88px; border-radius: var(--r-md); background: var(--green-tint); display: grid; place-items: center; }
.spotcard__title { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.spotcard__sub { display: block; font-size: .8rem; color: var(--ink-50); margin-top: 3px; }
.spotcard__row { display: flex; width: 100%; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.spotcard__foot { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); font-size: .74rem; color: var(--ink-30); letter-spacing: .04em; }

/* --- 8. Bento ----------------------------------------------------------- */
.bento { display: grid; grid-template-columns: .82fr 1.3fr 1.3fr .82fr; gap: var(--sp-3); margin-top: var(--sp-6); }
.tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: 250px; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--sp-4);
}
.tile__bg { position: absolute; inset: 0; z-index: 0; }
.tile__bg svg { width: 100%; height: 100%; }
.tile > *:not(.tile__bg) { position: relative; z-index: 1; }
.tile > .tile__tag {
  position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(226, 222, 210, .8);
  font-size: .74rem; font-weight: 600; color: var(--ink);
}
.tile__stat { color: #fff; }
.tile__stat b { display: block; font-family: var(--font-display); font-variation-settings: "SOFT" 0, "WONK" 0; font-size: 2.5rem; font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.tile__stat span { display: block; font-size: .8rem; opacity: .9; margin-top: 6px; line-height: 1.4; }

.minicard {
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(226, 222, 210, .9); border-radius: var(--r-md);
  padding: 13px 15px; box-shadow: var(--shadow-sm);
}
.minicard__label { font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); font-weight: 700; }
.minicard__value { font-family: var(--font-display); font-variation-settings: "SOFT" 0, "WONK" 0; font-size: 1.6rem; line-height: 1.1; color: var(--ink); margin-top: 4px; }
.minicard__value small { font-size: .8rem; font-family: var(--font-body); color: var(--ink-50); font-weight: 500; margin-left: 4px; }
.minicard__bar { display: block; height: 5px; border-radius: 3px; background: var(--cream-2); margin-top: 10px; overflow: hidden; }
.minicard__bar i { display: block; height: 100%; border-radius: 3px; background: var(--green-2); }

/* --- 9. Pasek specjalizacji --------------------------------------------- */
.railbar {
  display: flex; flex-wrap: wrap; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
  overflow: hidden; margin-top: var(--sp-6);
}
.railbar__item {
  flex: 1 1 190px; display: flex; align-items: center; gap: 11px;
  padding: 17px 20px; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.railbar__item:last-child { border-right: 0; }
.railbar__item:hover { background: var(--cream); }
.railbar__item svg { flex: none; color: var(--green-2); }
.railbar__item span { font-size: .88rem; font-weight: 500; letter-spacing: -.005em; }

/* --- 10. Karty ---------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center; margin-bottom: var(--sp-4);
  background: var(--green-tint); color: var(--green);
}
.card[data-tone="clay"] .card__icon { background: var(--clay-tint); color: var(--clay); }
.card[data-tone="sky"] .card__icon { background: var(--sky-tint); color: var(--sky); }
.card[data-tone="plum"] .card__icon { background: var(--plum-tint); color: var(--plum); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--ink-70); }
.card__more {
  margin-top: auto; padding-top: var(--sp-4);
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .87rem; font-weight: 600; color: var(--green);
}
.card--link:hover .card__more svg { transform: translateX(3px); }
.card__more svg { transition: transform var(--dur) var(--ease); }
.card__meta { display: block; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-30); font-weight: 700; margin-bottom: 10px; }

/* --- 11. Listy ----------------------------------------------------------- */
.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.ticklist li { display: flex; gap: 12px; margin: 0; font-size: .96rem; line-height: 1.55; }
.ticklist li::before {
  content: ""; flex: none; width: 21px; height: 21px; margin-top: 2px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%233F5D34' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.qlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.qlist li {
  display: flex; gap: 11px; align-items: flex-start; margin: 0;
  font-size: .94rem; color: var(--ink-70);
}
.qlist li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%;
  background: var(--clay);
}

/* --- 12. Kroki ---------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.step { counter-increment: step; background: var(--paper); padding: var(--sp-5); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--sp-4); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: 1.55rem; color: var(--green-2); line-height: 1.2;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: .94rem; }

/* --- 13. Statystyki ----------------------------------------------------- */
.statrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--paper); padding: var(--sp-5); }
.stat b {
  display: block; font-family: var(--font-display); font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 400; line-height: 1;
  letter-spacing: -.03em; color: var(--ink);
}
.stat span { display: block; font-size: .86rem; color: var(--ink-50); margin-top: 10px; line-height: 1.45; }
.section--ink .stat { background: rgba(255, 255, 255, .045); }
.section--ink .stat b { color: #fff; }
.section--ink .statrow { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .13); }
.section--ink .stat span { color: rgba(255, 255, 255, .62); }

/* --- 14. Wykres --------------------------------------------------------- */
.chartcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.chartcard__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.chartcard__legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: .8rem; color: var(--ink-50); }
.chartcard__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* --- 15. Tabela --------------------------------------------------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 540px; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); font-weight: 700; background: var(--cream); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td:first-child { color: var(--ink); font-weight: 500; }
table.data caption { caption-side: bottom; padding: 12px 18px; font-size: .8rem; color: var(--ink-50); text-align: left; }

/* --- 16. FAQ ------------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: 1.04rem; font-weight: 600; color: var(--ink);
  line-height: 1.4;
}
.faq__q:hover { color: var(--green); }
.faq__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; margin-top: 1px; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--green-tint); border-color: var(--green-3); }
.faq__a { overflow: hidden; }
.js .faq__a { height: 0; transition: height 280ms var(--ease); }
.faq__a p { padding-bottom: 22px; font-size: .97rem; max-width: 74ch; }

/* --- 17. Blok linku zewnetrznego ---------------------------------------- */
.refbox {
  background: var(--green-tint);
  border: 1px solid var(--green-3);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.5vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-5); align-items: center;
}
.refbox__eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.refbox h3 { font-family: var(--font-display); font-variation-settings: "SOFT" 0, "WONK" 0; font-weight: 400; font-size: clamp(1.35rem, 1.05rem + 1vw, 1.8rem); letter-spacing: -.02em; line-height: 1.22; }
.refbox p { margin-top: 12px; font-size: .95rem; color: var(--ink-70); max-width: 62ch; }
.refbox .btn { flex: none; }

.inlineref {
  border-left: 3px solid var(--green-3);
  padding: 4px 0 4px 20px; margin: var(--sp-5) 0;
  font-size: .97rem; color: var(--ink-70);
}

/* --- 18. Siatka artykulow ----------------------------------------------- */
.postgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.post {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.post:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post__art { height: 146px; position: relative; }
.post__art svg { width: 100%; height: 100%; }
.post__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.post__body h3 { display: block; font-size: 1.1rem; margin-bottom: 8px; }
.post__body p { font-size: .9rem; color: var(--ink-50); }
.post__foot { display: inline-flex; margin-top: auto; padding-top: var(--sp-4); font-size: .8rem; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }

/* --- 19. Strona wewnetrzna ---------------------------------------------- */
.pagehead { padding-block: clamp(32px, 4vw, 60px) clamp(24px, 3vw, 40px); }
.pagehead__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.pagehead h1 { font-size: clamp(2.05rem, 1.3rem + 2.7vw, 3.5rem); margin-top: var(--sp-4); }
.pagehead .lead { margin-top: var(--sp-5); max-width: 62ch; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-50); margin: 0 0 var(--sp-5); padding: 0; list-style: none; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--ink-30); }
.crumbs a { color: var(--ink-50); text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article__body { max-width: 74ch; }
.article__body h2 {
  font-family: var(--font-display); font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 400; font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.1rem);
  letter-spacing: -.02em; line-height: 1.18;
  margin: var(--sp-8) 0 var(--sp-4);
  scroll-margin-top: 96px;
}
.article__body > h2:first-child { margin-top: 0; }
.article__body h3 { margin: var(--sp-6) 0 var(--sp-3); font-size: 1.15rem; }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body li { font-size: .99rem; }

.toc { position: sticky; top: 96px; }
.toc__label { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-50); font-weight: 700; margin-bottom: var(--sp-4); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 8px 0 8px 16px; margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: .87rem; line-height: 1.4; color: var(--ink-50); text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--green-2); }
.toc__side { margin-top: var(--sp-6); }

.notebox {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--clay);
  border-radius: var(--r-md); padding: var(--sp-5); margin: var(--sp-6) 0;
}
.notebox__title { display: flex; align-items: center; gap: 9px; margin-bottom: 8px;
  font-size: 1.02rem; font-weight: 600; color: var(--ink); letter-spacing: -.005em; }
.notebox__title svg { color: var(--clay); flex: none; }
.notebox p { font-size: .94rem; }

.keyfacts { background: var(--cream-2); border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-6); }
.keyfacts__label { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-50); font-weight: 700; margin-bottom: var(--sp-4); }

/* --- 20. Stopka --------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding-block: clamp(56px, 6vw, 84px) var(--sp-6); }
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.footer__brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: rgba(255, 255, 255, .5); }
.footer__about { margin-top: var(--sp-4); font-size: .9rem; max-width: 40ch; line-height: 1.6; }
.footer__label { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255, 255, 255, .42); font-weight: 700; margin-bottom: var(--sp-4); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .9rem; }
.footer__list li { margin: 0; }
.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4);
  font-size: .82rem; color: rgba(255, 255, 255, .48);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-5); }

/* --- 21. Pasmo CTA ------------------------------------------------------ */
.ctaband {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(32px, 4.5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); align-items: center;
  position: relative; overflow: hidden;
}
.ctaband__art { position: absolute; right: -70px; top: -70px; width: 300px; opacity: .45; pointer-events: none; }
.ctaband > * { position: relative; z-index: 1; }

/* --- 22. Mapa strony ---------------------------------------------------- */
.sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.sitemap__group h2 { font-size: 1.05rem; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-4); }
.sitemap__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.sitemap__list li { margin: 0; }
.sitemap__list a { display: block; padding: 9px 10px; margin-left: -10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; }
.sitemap__list a:hover { background: var(--paper); color: var(--green); }
.sitemap__list small { display: block; font-size: .78rem; color: var(--ink-50); font-weight: 400; margin-top: 1px; }

/* --- 23. Kontakt / formularz -------------------------------------------- */
.field { display: grid; gap: 7px; margin-bottom: var(--sp-4); }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--clay); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 15px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(110, 145, 85, .18);
}
.field .hint { font-size: .82rem; color: var(--ink-50); }
.checkline { display: flex; gap: 11px; align-items: flex-start; font-size: .85rem; color: var(--ink-70); margin-bottom: var(--sp-5); }
.checkline input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--green); }

/* --- 24. Animacje ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- 25. Responsywnosc -------------------------------------------------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); background: var(--paper); }
  .toc ol { border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; }
  .toc a:hover, .toc a.is-active { border-left: 0; color: var(--green); }
}

@media (max-width: 960px) {
  .nav, .masthead__cta { display: none; }
  .burger { display: inline-flex; }
  .hero__grid, .pagehead__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__aside { max-width: 420px; }
  .hero__doodle { display: none; }
  .g-4, .postgrid, .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .g-2, .g-3, .g-4, .postgrid, .sitemap { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 210px; }
  .refbox, .ctaband { grid-template-columns: minmax(0, 1fr); }
  .refbox .btn, .ctaband .btn { width: 100%; }
  .railbar__item { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .railbar__item:last-child { border-bottom: 0; }
  .step { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .hero__inline-chip { font-size: .4em; }
  .drawer { inset: 68px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .masthead, .drawer, .footer, .ctaband, .refbox, .toc, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article { grid-template-columns: 1fr; }
}
