/* ==========================================================================
   STANAG 6001 — serwis informacyjny
   Język wizualny: "dossier operacyjne" — siatka mapy, róża wiatrów,
   stencilowe etykiety, mosiądz na granacie.
   Wszystko lokalnie: zero zewnętrznych czcionek, skryptów i liczników.
   ========================================================================== */

:root {
  /* granaty */
  --n-950: #060b14;
  --n-900: #0a1322;
  --n-850: #0e1b2f;
  --n-800: #13253e;
  --n-700: #1b3557;
  --n-600: #244b78;
  --n-500: #33689f;

  /* oliwka */
  --ol-900: #232a1a;
  --ol-700: #3d4a2c;
  --ol-500: #5c6e42;
  --ol-300: #93a077;

  /* mosiądz */
  --br-600: #a8801f;
  --br-500: #c99a2e;
  --br-400: #dbb04b;
  --br-300: #eccd83;

  /* papier */
  --p-000: #ffffff;
  --p-100: #f7f5ef;
  --p-200: #efece3;
  --p-300: #e3dfd3;

  --ink:   #111a26;
  --ink-2: #2f3f52;
  --muted: #617082;
  --line:  #dcd8cd;
  --line-2:#c4bfb1;

  --ok:     #2b6b4b;
  --ok-bg:  #e8f2ec;
  --bad:    #a5382a;
  --bad-bg: #fbeae8;
  --warn:   #86651c;
  --warn-bg:#faf1dc;

  --wrap: 1180px;
  --prose: 72ch;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --cond: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed",
          system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas,
          "Liberation Mono", monospace;

  --sh-1: 0 1px 2px rgba(10,11,8,.06), 0 3px 10px rgba(10,11,8,.05);
  --sh-2: 0 2px 6px rgba(10,11,8,.09), 0 16px 40px rgba(10,11,8,.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--p-100);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--n-600); text-underline-offset: 2px; }
a:hover { color: var(--n-800); }

:focus-visible { outline: 3px solid var(--br-500); outline-offset: 2px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--br-400); color: var(--n-950);
  padding: .7rem 1.1rem; font-weight: 800;
}
.skip:focus { left: .5rem; top: .5rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.prose { max-width: var(--prose); }

/* ==========================================================================
   ELEMENTY JĘZYKA WIZUALNEGO
   ========================================================================== */

/* siatka mapy na ciemnym tle */
.gridbg {
  background-image:
    linear-gradient(rgba(147,160,119,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147,160,119,.09) 1px, transparent 1px),
    linear-gradient(rgba(147,160,119,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147,160,119,.045) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* stencilowa etykieta */
.stencil {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--br-600);
}
.stencil::before {
  content: ""; width: 1.9rem; height: 2px;
  background: currentColor; opacity: .75;
}
.stencil--light { color: var(--br-300); }
.stencil--plain::before { display: none; }

/* pasek meta jak w nagłówku dokumentu */
.metastrip {
  border-top: 1px solid rgba(219,176,75,.22);
  border-bottom: 1px solid rgba(219,176,75,.22);
  font-family: var(--mono);
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: #8f8d7c;
}
.metastrip .wrap {
  display: flex; flex-wrap: wrap; gap: .35rem 2rem;
  padding: .55rem 0;
}
.metastrip span { white-space: nowrap; }
.metastrip .sep { color: rgba(219,176,75,.5); }
.metastrip b { color: var(--br-300); font-weight: 700; }

/* róża wiatrów */
.compass { display: block; }
.compass path.pt { fill: currentColor; }
.compass circle { fill: none; stroke: currentColor; stroke-width: 2; opacity: .45; }

/* dywizor z szewronów */
.chev {
  display: flex; align-items: center; gap: .3rem;
  margin: 2.6rem 0; color: var(--line-2);
}
.chev::before, .chev::after {
  content: ""; height: 1px; background: var(--line); flex: 1;
}
.chev i {
  display: block; width: 9px; height: 9px;
  border-right: 2px solid var(--br-500); border-bottom: 2px solid var(--br-500);
  transform: rotate(-45deg); opacity: .8;
}

/* narożniki techniczne */
.bracket { position: relative; }
.bracket::before, .bracket::after {
  content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none;
}
.bracket::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--br-500); border-left: 2px solid var(--br-500);
}
.bracket::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--br-500); border-right: 2px solid var(--br-500);
}

/* ==========================================================================
   NAGŁÓWEK
   ========================================================================== */
.site-head { position: sticky; top: 0; z-index: 60; background: var(--n-950); }
.site-head__bar {
  display: flex; align-items: center; gap: 1rem; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: #fff; text-decoration: none; margin-right: auto; padding: .35rem 0;
}
.brand .compass { width: 30px; height: 30px; color: var(--br-400); flex: 0 0 auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.06; }
.brand__n {
  font-family: var(--cond); font-weight: 700;
  font-size: 1.32rem; letter-spacing: .06em; text-transform: uppercase;
  color: #fff;
}
.brand__s {
  font-family: var(--mono); font-size: .61rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--br-400); margin-top: .18rem;
}

.nav-toggle {
  display: none; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.32); border-radius: 6px;
  padding: .45rem .75rem; font: inherit; font-size: .88rem; cursor: pointer;
  font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.nav-toggle:hover { background: rgba(255,255,255,.09); }

.nav { display: flex; flex-wrap: wrap; gap: .1rem; }
.nav a {
  color: #c2bfab; text-decoration: none;
  padding: .5rem .7rem; font-size: .9rem; font-weight: 650;
  white-space: nowrap; border-bottom: 2px solid transparent;
  letter-spacing: .01em;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--br-400); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--n-950);
    border-bottom: 3px solid var(--br-500); padding: .3rem 1.25rem 1rem;
    box-shadow: var(--sh-2);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .78rem .3rem; border-bottom: 1px solid rgba(255,255,255,.07); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; background: var(--n-950); overflow: hidden; isolation: isolate; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .30;
  filter: grayscale(.45) contrast(1.08) brightness(.95);
  z-index: -2;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10,11,8,.97) 0%, rgba(10,11,8,.86) 42%, rgba(10,11,8,.40) 100%),
    linear-gradient(to top, rgba(10,11,8,.95), transparent 60%);
}
.hero__mark {
  position: absolute; right: -4rem; top: 50%; transform: translateY(-50%);
  width: min(46vw, 460px); height: auto; color: var(--br-400);
  opacity: .07; z-index: -1; pointer-events: none;
}
.hero__inner { padding: clamp(2.8rem, 7vw, 5.4rem) 0 clamp(2.4rem, 5vw, 4rem); }
.hero--sub .hero__inner { padding: clamp(2.2rem, 4.5vw, 3.4rem) 0 clamp(1.9rem, 3.5vw, 2.8rem); }

.hero h1 {
  color: #fff; margin: 1rem 0 0;
  font-family: var(--cond);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: .98; letter-spacing: -.005em;
  text-transform: uppercase; font-weight: 700;
  max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--br-400); }
.hero--sub h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); max-width: 21ch; }

.hero__lead {
  color: #cdc9b6; font-size: clamp(1rem, 1.8vw, 1.16rem);
  max-width: 58ch; margin: 1.15rem 0 0;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }

/* pasek liczb w hero */
.keyfigs {
  display: grid; gap: 1px; margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: rgba(219,176,75,.22);
  border: 1px solid rgba(219,176,75,.22);
}
.keyfigs div { background: rgba(10,11,8,.62); padding: 1rem 1.1rem; }
.keyfigs b {
  display: block; font-family: var(--cond); font-size: 1.85rem;
  color: var(--br-400); line-height: 1; letter-spacing: .01em;
}
.keyfigs b.txt { font-size: 1.18rem; line-height: 1.2; }
.keyfigs span {
  display: block; margin-top: .4rem; font-size: .78rem;
  color: #9d9a87; font-family: var(--mono);
  letter-spacing: .1em; text-transform: uppercase;
}

/* ==========================================================================
   PRZYCISKI
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 750; font-size: .95rem;
  padding: .74rem 1.2rem; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.btn--gold { background: var(--br-400); color: var(--n-950); }
.btn--gold:hover { background: var(--br-300); color: var(--n-950); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--plain { background: var(--n-800); color: #fff; }
.btn--plain:hover { background: var(--n-700); color: #fff; }
.btn--sm { padding: .5rem .85rem; font-size: .8rem; }

/* ==========================================================================
   SEKCJE I TYPOGRAFIA
   ========================================================================== */
.section { padding: clamp(2.8rem, 5.5vw, 4.6rem) 0; }
.section--tight { padding: clamp(1.9rem, 3.5vw, 2.8rem) 0; }
.section--alt { background: var(--p-200); }
.section--dark { background: var(--n-900); color: #cfcbb8; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a { color: var(--br-300); }
.section--dark .card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.13); color: #cfcbb8; }
.section--dark .card h3 { color: #fff; }

.section__head { max-width: 70ch; margin-bottom: 2.1rem; }
.section__head p { color: var(--ink-2); font-size: 1.03rem; margin-bottom: 0; }
.section--dark .section__head p { color: #b3b09c; }

h2 {
  font-family: var(--cond);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.08; letter-spacing: .005em; text-transform: uppercase;
  margin: .5rem 0 .6rem; font-weight: 700; color: var(--n-900);
}
h3 {
  font-size: clamp(1.15rem, 2.1vw, 1.34rem);
  margin: 2rem 0 .5rem; line-height: 1.28;
  color: var(--n-800); font-weight: 750;
}
h4 { font-size: 1.03rem; margin: 1.5rem 0 .35rem; color: var(--n-800); font-weight: 750; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.prose > * + * { margin-top: 1.02em; }

ul, ol { padding-left: 1.35rem; margin: 0 0 1rem; }
li { margin-bottom: .42rem; }
li::marker { color: var(--br-600); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--p-000); border: 1px solid var(--line);
  padding: 1.4rem; box-shadow: var(--sh-1);
}
.card > h3 { margin-top: 0; }
.card > p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover { border-color: var(--br-500); box-shadow: var(--sh-2); color: inherit; }
.card__more {
  display: inline-block; margin-top: .7rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--n-600);
}
.card--link:hover .card__more { color: var(--br-600); }
.card__num {
  font-family: var(--cond); font-size: 2.6rem; line-height: 1;
  color: var(--br-400); display: block; margin-bottom: .5rem; font-weight: 700;
}

/* ==========================================================================
   PROFIL JĘZYKOWY (SPJ)
   ========================================================================== */
.spj { display: inline-flex; gap: 3px; font-family: var(--mono); font-weight: 700; }
.spj span {
  display: inline-grid; place-items: center; min-width: 1.7em;
  padding: .1em .3em; background: var(--n-800); color: #fff;
}
.spj span.is-hi { background: var(--br-400); color: var(--n-950); }
.spj--lg { font-size: 2rem; gap: 5px; }
.section--dark .spj span { background: rgba(255,255,255,.14); }
.section--dark .spj span.is-hi { background: var(--br-400); color: var(--n-950); }

.spj-legend {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: .9rem; margin: 1.3rem 0 0; padding: 0; list-style: none;
}
.spj-legend li { border-left: 3px solid var(--br-500); padding: .25rem 0 .25rem .8rem; margin: 0; }
.spj-legend b {
  display: block; font-family: var(--mono); color: var(--n-800);
  font-size: .95rem; letter-spacing: .04em;
}
.section--dark .spj-legend b { color: #fff; }
.spj-legend span { font-size: .87rem; color: var(--muted); }
.section--dark .spj-legend span { color: #9d9a87; }

/* ==========================================================================
   TABELE
   ========================================================================== */
.table-scroll {
  overflow-x: auto; border: 1px solid var(--line);
  background: var(--p-000); box-shadow: var(--sh-1); margin: 1.4rem 0;
}
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: left; padding: .9rem 1.1rem .2rem; color: var(--muted); font-size: .87rem; }
th, td { padding: .76rem 1.05rem; text-align: left; vertical-align: top; }
thead th {
  background: var(--n-850); color: #fff;
  font-family: var(--mono); font-size: .73rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700; white-space: nowrap;
}
tbody tr + tr { border-top: 1px solid var(--line); }
tbody tr:nth-child(even) { background: #fbfaf6; }
.t-num { font-family: var(--mono); white-space: nowrap; }
.t-lvl {
  font-family: var(--mono); font-weight: 700; color: var(--n-950);
  background: var(--br-300); padding: .08em .5em; white-space: nowrap;
}

/* ==========================================================================
   WYRÓŻNIKI
   ========================================================================== */
.note {
  padding: 1.05rem 1.25rem; margin: 1.6rem 0;
  border-left: 4px solid var(--n-500); background: #f2f0e6; font-size: .96rem;
}
.note > :last-child { margin-bottom: 0; }
.note__t {
  display: block; font-family: var(--mono); font-weight: 700;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .45rem; color: var(--n-700);
}
.note--warn { border-left-color: var(--warn); background: var(--warn-bg); }
.note--warn .note__t { color: var(--warn); }
.note--myth { border-left-color: var(--bad); background: var(--bad-bg); }
.note--myth .note__t { color: var(--bad); }
.note--ok { border-left-color: var(--ok); background: var(--ok-bg); }
.note--ok .note__t { color: var(--ok); }
.section--dark .note {
  background: rgba(255,255,255,.05); color: #cfcbb8; border-left-color: var(--br-400);
}
.section--dark .note__t { color: var(--br-300); }

.figure { margin: 1.9rem 0; }
.figure img { width: 100%; box-shadow: var(--sh-2); }
.figure figcaption {
  font-size: .81rem; color: var(--muted); margin-top: .6rem;
  font-family: var(--mono); letter-spacing: .04em;
}

.facts { margin: 1.4rem 0; }
.facts div {
  display: grid; grid-template-columns: minmax(155px, 250px) 1fr;
  gap: 1.2rem; padding: .82rem 0; border-top: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 750; color: var(--n-800); }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 620px) { .facts div { grid-template-columns: 1fr; gap: .15rem; } }

.steps { list-style: none; padding: 0; counter-reset: s; margin: 1.6rem 0; }
.steps > li {
  counter-increment: s; position: relative;
  padding: 0 0 1.5rem 3.1rem; margin: 0 0 0 1rem;
  border-left: 2px solid var(--line-2);
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: -1.05rem; top: -.2rem;
  width: 2.05rem; height: 2.05rem;
  background: var(--n-850); color: var(--br-400);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: .82rem;
}
.steps b { display: block; color: var(--n-800); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0 1.8rem; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips a {
  display: inline-block; text-decoration: none;
  font-family: var(--mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--p-000); border: 1px solid var(--line-2);
  color: var(--n-700); padding: .42rem .8rem;
}
.chips a:hover { border-color: var(--br-500); color: var(--n-900); background: #fff; }

.toc { background: var(--p-000); border: 1px solid var(--line); padding: 1.15rem 1.35rem; margin: 0 0 2.2rem; }
.toc__t {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .65rem;
}
.toc h2 {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .65rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2.2rem; }
.toc li { margin-bottom: .3rem; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ==========================================================================
   ZADANIA INTERAKTYWNE
   ========================================================================== */
.quiz {
  background: var(--p-000); border: 1px solid var(--line);
  box-shadow: var(--sh-1); margin: 1.9rem 0;
}
.quiz__head {
  background: var(--n-900); color: #fff; padding: .95rem 1.35rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem;
}
.quiz__head h3 { margin: 0; color: #fff; font-size: 1.06rem; }
.quiz__tag {
  font-family: var(--mono); font-size: .7rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  background: var(--br-400); color: var(--n-950); padding: .22rem .55rem;
}
.quiz__score {
  margin-left: auto; font-family: var(--mono); font-size: .88rem;
  color: var(--br-300); font-weight: 700; white-space: nowrap;
  letter-spacing: .06em;
}
.quiz__body { padding: 1.4rem; }

.passage {
  background: #fbfaf5; border: 1px solid var(--line);
  border-left: 4px solid var(--ol-300); padding: 1.15rem 1.3rem;
  margin-bottom: 1.6rem; font-size: .97rem;
}
.passage h4 {
  margin: 0 0 .6rem; font-family: var(--mono);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ol-500);
}
.passage p { margin-bottom: .8rem; }
.passage p:last-child { margin-bottom: 0; }
.passage--script { border-left-color: var(--n-500); }
.passage--script h4 { color: var(--n-600); }
.passage .spk { font-weight: 750; color: var(--n-800); }

.q { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.q:first-child { border-top: 0; padding-top: 0; }
.q__stem { font-weight: 650; margin-bottom: .85rem; }
.q__n { font-family: var(--mono); color: var(--br-600); margin-right: .55rem; font-weight: 700; }
.q__opts { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.q__opts li { margin: 0; }

.opt {
  display: flex; align-items: flex-start; gap: .7rem; width: 100%;
  text-align: left; font: inherit; font-size: .96rem;
  background: var(--p-000); border: 1px solid var(--line-2);
  padding: .7rem .9rem; cursor: pointer; color: var(--ink);
}
.opt:hover:not([disabled]) { border-color: var(--n-600); background: #faf8f1; }
.opt[disabled] { cursor: default; }
.opt__k {
  flex: 0 0 auto; font-family: var(--mono); font-weight: 700; font-size: .84rem;
  width: 1.5rem; height: 1.5rem; background: var(--p-200); color: var(--ink-2);
  display: grid; place-items: center;
}
.opt.is-correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.is-correct .opt__k { background: var(--ok); color: #fff; }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.is-wrong .opt__k { background: var(--bad); color: #fff; }
.opt.is-muted { opacity: .55; }

.q__exp {
  margin-top: .85rem; padding: .8rem 1rem; font-size: .92rem;
  background: var(--p-200); border-left: 3px solid var(--n-600);
}
.q__exp b { color: var(--n-800); }

.quiz__foot {
  border-top: 1px solid var(--line); padding: 1rem 1.35rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; background: #fbfaf6;
}
.quiz__result { font-weight: 750; color: var(--n-800); margin-right: auto; font-size: .96rem; }
.quiz__result.is-pass { color: var(--ok); }
.quiz__result.is-fail { color: var(--bad); }

.task {
  border: 1px solid var(--line); background: var(--p-000);
  padding: 1.4rem; margin: 1.6rem 0; box-shadow: var(--sh-1);
}
.task > h3 { margin-top: .3rem; }
.task .prompt {
  background: #fbfaf5; border: 1px dashed var(--line-2);
  padding: 1rem 1.15rem; margin: 1rem 0; font-size: .97rem;
}
.task .prompt p:last-child { margin-bottom: 0; }

details.reveal { border: 1px solid var(--line); margin: 1rem 0 0; background: #fbfaf6; }
details.reveal > summary {
  cursor: pointer; padding: .78rem 1.05rem; font-weight: 700;
  color: var(--n-700); font-size: .93rem; list-style: none;
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
details.reveal > summary::-webkit-details-marker { display: none; }
details.reveal > summary::before { content: "▸"; color: var(--br-600); }
details.reveal[open] > summary::before { content: "▾"; }
details.reveal[open] > summary { border-bottom: 1px solid var(--line); }
.reveal__body { padding: 1rem 1.15rem; font-size: .95rem; }
.reveal__body > :last-child { margin-bottom: 0; }
.reveal__body .model {
  background: var(--p-000); border: 1px solid var(--line);
  padding: .95rem 1.1rem; font-size: .94rem;
}

.vocab td:first-child { font-weight: 650; color: var(--n-800); width: 32%; }
.vocab td:nth-child(2) { width: 30%; }
.vocab td:last-child { color: var(--muted); font-size: .9rem; }

/* ==========================================================================
   STOPKA
   ========================================================================== */
.site-foot {
  background: var(--n-950); color: #a9a693; padding: 3rem 0 2.2rem;
  font-size: .91rem; border-top: 3px solid var(--br-500);
}
.site-foot h2 {
  color: #fff; font-size: .78rem; margin: 0 0 .8rem;
  font-family: var(--mono); letter-spacing: .16em;
}
.site-foot a { color: var(--br-300); }
.site-foot__grid {
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-foot ul { list-style: none; padding: 0; }
.site-foot li { margin-bottom: .4rem; }
.site-foot__bottom { padding-top: 1.5rem; }
.disclaimer { font-size: .84rem; color: #93917f; max-width: 82ch; }
.disclaimer + .disclaimer { margin-top: .7rem; }

.updated {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); padding: .32rem .8rem; background: var(--p-000);
}
.updated b { color: var(--n-800); }

.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; }

@media print {
  .site-head, .nav, .quiz__foot, .hero__cta, .hero__img, .hero__veil, .hero__mark { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .hero, .section--dark { background: #fff !important; color: #000 !important; }
  .hero h1, .hero__lead, .section--dark h2, .section--dark h3, .section--dark p { color: #000 !important; }
  .q__exp, details.reveal { break-inside: avoid; }
  details.reveal > summary { display: none; }
}

/* =========================================================================
   Menu z grupami rozwijanymi — dodane 2026-09-09.

   Powod: dziesiec pozycji przestalo sie miescic w jednym wierszu (przy
   1024 px menu lamalo sie na dwa wiersze, odstep spadl do 2 px).

   Rozwijanie robi WYLACZNIE CSS: :hover dla myszy, :focus-within dla
   klawiatury. Zero JavaScriptu — bez niego menu dziala tak samo.
   Etykieta grupy jest linkiem do strony wezlowej, wiec na ekranie
   dotykowym klikniecie zawsze cos robi.
   ========================================================================= */

.nav__g { position: relative; }

.nav__gt { display: inline-flex; align-items: center; gap: .3rem; }

/* Strzalka w dol — czysty CSS, zero grafiki. */
.nav__ch {
  width: .34em; height: .34em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-.08em, -.08em);
  opacity: .65;
  transition: transform .15s ease, opacity .15s ease;
}
.nav__g:hover .nav__ch,
.nav__g:focus-within .nav__ch { opacity: 1; }

/* Podstrona z tej grupy jest otwarta — grupa dostaje ten sam znacznik,
   co pojedyncza pozycja menu. */
.nav__g.is-tu > .nav__gt { color: #fff; border-bottom-color: var(--br-400); }

/* --- Panel rozwijany --------------------------------------------------- */
/* Chowamy przez visibility, nie display: przejscie jest plynne, a Tab nie
   wchodzi w niewidoczne linki. */
.nav__pod {
  position: absolute; top: 100%; left: 0;
  min-width: 14.5rem;
  background: var(--n-950);
  border: 1px solid var(--n-700);
  border-top: 2px solid var(--br-500);
  box-shadow: var(--sh-2);
  padding: .3rem 0;
  visibility: hidden; opacity: 0;
  transform: translateY(-.35rem);
  /* visibility NIE jest animowane, tylko przelaczane z opoznieniem: wartosc
     nieciagla w przejsciu potrafi sie zaciac i panel zostaje widoczny mimo
     zdjecia hovera. Opoznienie .15s przy chowaniu daje czas na wygaszenie
     przezroczystoscia, a przy pokazywaniu przelacza sie natychmiast. */
  transition: opacity .15s ease, transform .15s ease, visibility 0s .15s;
  z-index: 60;
}
.nav__g:hover > .nav__pod,
.nav__g:focus-within > .nav__pod {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .15s ease, transform .15s ease, visibility 0s;
}

.nav__pod a {
  display: block;
  padding: .55rem 1rem;
  font-size: .87rem; font-weight: 600;
  border-bottom: 0;
  border-left: 2px solid transparent;
}
.nav__pod a:hover { background: rgba(255,255,255,.09); border-left-color: var(--br-500); }
.nav__pod a[aria-current="page"] {
  color: #fff; border-bottom: 0; border-left-color: var(--br-400);
  background: rgba(255,255,255,.05);
}

@media (prefers-reduced-motion: reduce) {
  .nav__pod, .nav__ch { transition: none; }
}

/* --- Ponizej 980 px: menu pod przyciskiem ------------------------------ */
/* Tu nic sie nie rozwija — grupy sa widoczne od razu, jako sekcje
   z naglowkiem. Na telefonie to jest czytelniejsze niz plaska lista. */
@media (max-width: 980px) {
  .nav__g { position: static; }

  .nav__gt {
    display: block;
    margin-top: .5rem;
    font-family: var(--mono); font-size: .72rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--n-500) !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    padding: .6rem .3rem .35rem;
  }
  .nav__g.is-tu > .nav__gt { color: var(--br-400) !important; }
  .nav__ch { display: none; }

  .nav__pod {
    position: static;
    visibility: visible; opacity: 1; transform: none;
    min-width: 0; background: transparent;
    border: 0; box-shadow: none; padding: 0;
  }
  .nav__pod a {
    padding: .72rem .3rem .72rem 1rem;
    font-size: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    border-left: 2px solid rgba(255,255,255,.12);
  }
  .nav__pod a[aria-current="page"] { background: transparent; }
}
