/* Local fonts: versioned files with Latin/Polish and Cyrillic subsets. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("assets/fonts/inter-uk-pl-e225b1d5.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/playfair-uk-pl-4751946d.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/playfair-italic-uk-pl-ea563116.woff2") format("woff2");
}

/* ==========================================================================
   Cook & Connect — landing page
   Design option 2a (Dark Editorial v2)
   Structure: tokens → base → layout helpers → components → sections
              → responsive (@media max-width:960px) → reduced motion
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand palette */
  --green: #578e6f;
  --green-hover: #4c7d62;          /* ~8% darker */
  --green-soft: rgba(87, 142, 111, .35);
  --sand: #e9d5c2;
  --sand-hover: #dcc4ad;           /* ~8% darker */
  --cream: #e9e7ce;                /* also the default body text — see --text */
  --tan: #bc937a;
  --black: #000000;
  --black-hover: #1a1a1a;          /* black pill hover (lifted, not darkened) */
  --white: #ffffff;

  /* Surfaces */
  --surface: #0d0d0d;
  --surface-raised: rgba(233, 231, 206, .06);
  --surface-raised-hover: rgba(233, 231, 206, .09);
  --hover-tint: rgba(233, 231, 206, .03);
  --overlay: rgba(0, 0, 0, .7);
  --sticky-bg: rgba(0, 0, 0, .92);

  /* Hairlines */
  --hairline: rgba(233, 231, 206, .12);
  --hairline-mid: rgba(233, 231, 206, .14);
  --hairline-strong: rgba(233, 231, 206, .18);
  --hairline-chip: rgba(233, 231, 206, .35);
  --rule-on-green: rgba(255, 255, 255, .22);

  /* Text — ordered most to least prominent */
  --text: var(--cream);
  --text-nav: rgba(233, 231, 206, .75);
  --text-muted: rgba(233, 231, 206, .78);
  --text-muted-soft: rgba(233, 231, 206, .7);
  --text-muted-strong: rgba(233, 231, 206, .68);
  --text-muted-strongest: rgba(233, 231, 206, .65);
  --text-dim: rgba(233, 231, 206, .5);
  --text-card: rgba(233, 231, 206, .72);
  --text-list: rgba(233, 231, 206, .8);
  --on-green-muted: rgba(255, 255, 255, .85);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  /* Longest comfortable line for the 13–15px body sizes. Body text does not
     scale with the viewport (only the display type does), so on a wide screen
     a full-width paragraph would run past 200 characters without this. */
  --measure: 74ch;

  /* Radii */
  --radius-pill: 100px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm-md: 10px;            /* between sm and md — cards at mobile */
  --radius-sm: 8px;
  --radius-xs: 3px;

  /* Layout — the bands themselves stay full-bleed (backgrounds, photo strips
     and the hero image still run edge to edge), but their contents stop
     widening at --content-max. The gutter is whichever of three arms is widest:
     a 22px floor for phones, the artboard's ratio (44px of 1040px ≈ 4vw), and
     whatever is left over once the content column has taken its 1512px. The
     ratio arm wins up to ~1643px, so nothing below that changes; past it the
     leftover arm takes over — 204px a side at 1920 instead of 77px, which keeps
     paragraphs on a readable measure rather than stretching them to 1750px. */
  --content-max: 1512px;
  --gutter: max(22px, 4vw, (100vw - var(--content-max)) / 2);
  --header-h: 77px;

  /* Vertical rhythm follows the same artboard ratio as the type: 64px of the
     1040px board is 6.15vw. Heights and paddings that stayed fixed would leave
     the bands letterboxed on a wide screen while the columns grew around them. */
  --section-pad: clamp(30px, 6.15vw, 96px);

  /* Motion (set to 0ms under prefers-reduced-motion) */
  --t: 180ms;
  --t-details: 220ms;

  /* Enables height animation from 0 to auto where supported */
  interpolate-size: allow-keywords;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--cream);
  color: var(--black);
  font: 500 13px/1 var(--font-sans);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Anchor offset for the sticky header. Every <section id> is a nav destination,
   so the structural selector keeps this in sync as sections come and go. */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* --- Two languages in one document ----------------------------------------
   Every translated string ships as a pair of inner <span>s — see the contract
   at the top of index.html — and this one pair of rules decides which half of
   every pair is visible. `data-lang` is set on <html> by the inline <head>
   script before the first paint, so the page never renders in one language and
   then swaps. Ukrainian is the default: no attribute, no query string, no JS at
   all — still Ukrainian.
   The selectors are (0,2,1); every rule they have to beat in this file is a
   single class. That only holds because twins are always classless inner
   <span>s: put data-lang-* on a block with its own display rule and this stops
   being reliable. */
html:not([data-lang="pl"]) [data-lang-pl],
html[data-lang="pl"] [data-lang-uk] { display: none; }

/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
/* Not a centred column — just the shared side padding. Every band (green facts
   bar, photo bands, closing CTA) already spans the viewport; this keeps their
   contents on one vertical line without capping the page width. */
.container {
  padding-inline: var(--gutter);
}

/* ==========================================================================
   4. SHARED COMPONENTS
   ========================================================================== */

/* --- Eyebrows, labels, headings ------------------------------------------ */
.eyebrow {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow--tan { color: var(--tan); }
.eyebrow--sand { color: var(--sand); }

/* Same small-caps lockup in two colours: .label for section sub-headings,
   .brand__word for the wordmark in the header (see §5). */
.label, .brand__word {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.label { color: var(--text-dim); }

/* Display sizes are expressed as the artboard's own ratio: the desktop board is
   1040px wide, so its 34px title is 3.27vw. Every clamp below follows the same
   rule — min = the 390px board's value, slope = the 1040px board's ratio, max =
   a ceiling so a 2560px monitor stops growing. At a 1040px viewport the page
   therefore renders at exactly the artboard's type sizes. */
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3.27vw, 44px);
  line-height: 1.2;
  color: var(--text);
}

.lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.22;
  color: var(--text);
  text-wrap: pretty;
}

.body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--t) ease, color var(--t) ease;
}
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-hover); }
.btn--sand { background: var(--sand); color: var(--black); }
.btn--sand:hover { background: var(--sand-hover); }
.btn--black { background: var(--black); color: var(--cream); }
.btn--black:hover { background: var(--black-hover); }
.btn--sm { padding: 11px 20px; }
.btn--block { display: block; width: 100%; padding: 14px; }

/* --- Accordions (native details/summary) --------------------------------- */
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }

/* The +/− glyph is generated in CSS so it always reflects the open state */
.sign {
  flex: none;
  color: var(--green);
  font-weight: 400;
  line-height: 1;
}
.sign--md { font-size: 20px; }
.sign--lg { font-size: 22px; }
summary .sign::after { content: "+"; }
details[open] > summary .sign::after { content: "−"; }

/* Native height animation; main.js supplies a fallback where unsupported. */
details::details-content {
  block-size: 0;
  overflow: clip;
  content-visibility: hidden;
  transition:
    block-size var(--t-details) ease-out,
    content-visibility var(--t-details) ease-out allow-discrete;
}
details[open]::details-content {
  block-size: auto;
  content-visibility: visible;
}

/* The JS fallback animates the whole details box and keeps it open until the
   closing animation ends. Do not run a second transition on its contents. */
details.details--animated::details-content { transition: none; }
details.details--animating { overflow: hidden; }

/* ==========================================================================
   5. HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--hairline);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-xs);
}
/* Type comes from the shared `.label, .brand__word` rule in §4. */
.brand__word { color: var(--sand); }

.nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__link {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-nav);
  text-decoration: none;
  transition: color var(--t) ease;
}
.nav__link:hover { color: var(--cream); }
.nav__item--mobile { display: none; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Language switcher ----------------------------------------------------
   Two languages fit the header at every width, so — unlike the three-locale
   version this replaces — there is no mobile dropdown and no JS of its own:
   the links reload the page with ?lang=…, and the inline <head> script does the
   rest. The active pill is driven by `data-lang` on <html> rather than by a
   class, so it is already correct on the first frame; main.js only moves
   `aria-current`, which is not a visual concern. */
.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
/* Without JS the <head> script never runs, the page stays Ukrainian and the
   switch cannot take effect — so the control does not pretend to be there. */
html:not(.js) .lang { display: none; }

.lang__item {
  padding: 8px 12px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-nav);
  text-decoration: none;
  transition: background-color var(--t) ease, color var(--t) ease;
}
.lang__item:hover { color: var(--cream); background: var(--hover-tint); }

/* Active state last: it has to win over the hover rule above on source order. */
html:not([data-lang="pl"]) .lang__item[hreflang="uk"],
html[data-lang="pl"] .lang__item[hreflang="pl"] {
  background: var(--cream);
  color: var(--black);
}
html:not([data-lang="pl"]) .lang__item[hreflang="uk"]:hover,
html[data-lang="pl"] .lang__item[hreflang="pl"]:hover {
  background: var(--sand-hover);
  color: var(--black);
}

/* --- Hamburger ------------------------------------------------------------ */
.hamburger {
  display: none;
  width: 26px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger__bar {
  display: block;
  height: 1.5px;
  background: var(--cream);
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(500px, 48vw, 780px);
}
.hero__text {
  display: flex;
  align-items: center;
  padding-block: clamp(34px, 5.77vw, 92px);
}
/* The text column starts at the grid's left edge, so the same --gutter every
   .container uses lands the headline on the same vertical line as every section
   below it — at any width, and without a 100vw expression that would count the
   classic scrollbar and shift the hero right of everything else. */
.hero__inner {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: clamp(22px, 4.23vw, 66px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 5.19vw, 72px);
  line-height: 1.05;
  color: var(--text);
  text-wrap: pretty;
}
.hero__title em { color: var(--green); }
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.hero__note {
  font-weight: 400;
  font-size: 13px;
  color: var(--tan);
}
.hero__media {
  position: relative;
  background: var(--surface);
}
/* Full-bleed photo bands: the picture is taken out of flow so its portrait
   source (2:3) cannot drive the band's height, then stretched to fill whatever
   the band comes to. The hero row is sized by the text column against .hero's
   min-height; .topic (§10) is sized by its own padding and content. */
.hero__media img,
.topic__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   7. FACTS BAR
   ========================================================================== */
.facts {
  background: var(--green);
  color: var(--white);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.facts__item { padding: clamp(20px, 2.5vw, 38px) clamp(20px, 3.85vw, 60px); }
.facts__item:first-child { padding-left: 0; }
.facts__item:last-child { padding-right: 0; }
.facts__item + .facts__item { border-left: 1px solid var(--rule-on-green); }
.facts__label {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
}
.facts__value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(18px, 1.92vw, 24px);
  line-height: 1.3;
}
.facts__date { display: block; }
.facts__date + .facts__date { border-top: 1px solid var(--rule-on-green); margin-top: 12px; padding-top: 12px; }
.facts__sub {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  opacity: .9;
}

/* ==========================================================================
   8. CO TO JEST
   ========================================================================== */
.about { padding-block: clamp(32px, 6.54vw, 100px); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* looks better without gap */
  /* gap: clamp(24px, 5vw, 78px); */
  align-items: center;
}
.about__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: var(--measure);
}
.about__cta { margin-top: 6px; }
.about__cta .btn { padding: 15px 26px; }
.about__media { height: clamp(220px, 40.4vw, 560px); overflow: hidden; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   9. DLA KOGO? / CO WAS CZEKA?
   ========================================================================== */
.audience { border-top: 1px solid var(--hairline-mid); }
.audience__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.audience__col { padding: clamp(30px, 5vw, 78px) clamp(22px, 4.23vw, 66px); }
.audience__col:first-child {
  padding-left: 0;
  border-right: 1px solid var(--hairline-mid);
}
.audience__col:last-child { padding-right: 0; }
.audience__intro {
  margin: 14px 0 20px;
  max-width: var(--measure);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted-soft);
}
.eyebrow + .dashlist { margin-top: 20px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 9px 18px;
  border: 1px solid var(--hairline-chip);
  border-radius: var(--radius-pill);
  font-weight: 400;
  font-size: 13px;
}

.dashlist {
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: var(--measure);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-list);
}
.dashlist li { display: flex; gap: 12px; }
.dashlist__dash { color: var(--green); }

/* ==========================================================================
   10. TEMAT PRZEWODNI (photo band)
   ========================================================================== */
.topic {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 8.08vw, 130px);
  text-align: center;
  color: var(--text);
}
/* .topic__bg is positioned and sized by the shared full-bleed rule in §6. */
.topic__scrim {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.topic__content { position: relative; }
/* The max-widths on the display blocks are in em, so the measure grows with the
   type and the line breaks stay where the artboard put them. */
.topic__quote {
  max-width: 19em;
  margin: 16px auto 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.85vw, 52px);
  line-height: 1.25;
  text-wrap: pretty;
}
.topic__body {
  max-width: 640px;
  margin: 12px auto 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-list);
}
.topic__quote + .topic__body { margin-top: 22px; }
.topic__cta { margin-top: 26px; }
.topic__cta .btn { padding: 15px 28px; }

/* ==========================================================================
   11. PROGRAM WIECZORU
   ========================================================================== */
.program { padding-block: var(--section-pad); }
.program__frame {
  margin-top: 20px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.program__head {
  display: grid;
  grid-template-columns: clamp(110px, 14.4vw, 230px) 1fr;
  gap: clamp(16px, 2.12vw, 34px);
  padding: 13px clamp(16px, 2.12vw, 34px);
  background: var(--green);
  color: var(--white);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.program__row {
  display: grid;
  grid-template-columns: clamp(110px, 14.4vw, 230px) 1fr;
  gap: clamp(16px, 2.12vw, 34px);
  padding: clamp(14px, 1.73vw, 26px) clamp(16px, 2.12vw, 34px);
  border-top: 1px solid var(--hairline);
}
.program__row:nth-child(even) { background: var(--hover-tint); }
.program__time {
  border-left: 2px solid var(--green);
  padding-left: 14px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(16px, 1.73vw, 20px);
  color: var(--green);
}
.program__detail {
  border-left: 2px solid var(--green-soft);
  padding-left: 16px;
}
.program__title {
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}
.program__desc {
  max-width: var(--measure);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted-strong);
}
/* The one program line the client wants to stand out. The change-request mock
   drew it as an amber plate, which was styled for that document's light page —
   here it is a sand-on-raised chip so it reads as an accent, not a warning. */
.program__highlight {
  max-width: var(--measure);
  margin-top: 12px;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--surface-raised);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--sand);
}

/* ==========================================================================
   12. REJESTRACJA I PŁATNOŚĆ
   ========================================================================== */
.registration {
  background: var(--surface);
  border-top: 1px solid var(--hairline-mid);
  padding-block: var(--section-pad);
}
.registration__lead {
  max-width: 25em;
  margin: 14px 0 34px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.69vw, 36px);
  line-height: 1.35;
  text-wrap: pretty;
}
.registration__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 4.23vw, 66px);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  max-width: var(--measure);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-list);
}
.steps__item { display: flex; gap: 14px; }
.steps__num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
}

.registration__cards {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.rcard {
  background: var(--surface-raised);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.12vw, 34px);
  transition: background-color var(--t) ease;
}
.rcard:hover { background: var(--surface-raised-hover); }
.rcard__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rcard__title {
  font-weight: 500;
  font-size: 15px;
  color: var(--sand);
}
.rcard__body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-card);
}
.rcard__body p + p { margin-top: 10px; }

/* ==========================================================================
   13. O NAS
   ========================================================================== */
.team {
  border-top: 1px solid var(--hairline-mid);
  padding-block: var(--section-pad);
}
.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3.46vw, 54px);
  margin-top: 34px;
}
.person {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.person__photo {
  width: 100%;
  /* Kadr prowadzi proporcja ~A4 (poziomo). Podłoga wysokości trzyma zdjęcie duże
     tam, gdzie karta jest wąska — obniża ją media query przy 700px. */
  aspect-ratio: 727 / 550;
  height: auto;
  min-height: 550px;
  max-height: 640px;
  object-fit: cover;
  object-position: center 20%;
}
.person__body { padding: clamp(16px, 2.31vw, 36px); }
.person__name {
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.31vw, 28px);
}
.person__role {
  margin-bottom: 10px;
  font-weight: 400;
  font-size: 14px;
  color: var(--sand);
}
.person__link {
  margin-bottom: 14px;
  font-weight: 400;
  font-size: 13px;
}
.person__link a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t) ease;
}
.person__link a:hover { color: var(--green); }
.person__bio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted-soft);
}

/* "Czytaj więcej" / "Zwiń" — both labels live in the DOM; the open state decides
   which one is shown, so the control keeps an accessible name without CSS. */
.bio-more__summary {
  padding: 6px 0;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  transition: color var(--t) ease;
}
.bio-more__summary:hover { color: var(--cream); }
.bio-more__label--less,
details[open] > .bio-more__summary .bio-more__label--more { display: none; }
details[open] > .bio-more__summary .bio-more__label--less { display: inline; }
.bio-more__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

/* ==========================================================================
   14. CLOSING CTA BAND
   ========================================================================== */
.closing {
  background: var(--green);
  color: var(--white);
  padding-block: clamp(34px, 5.77vw, 92px);
}
.closing__inner { text-align: center; }
/* Sized down from the display scale: this heading now carries the full
   invitation copy, so at 38px it ran as a wall of serif across the band. */
.closing__title {
  max-width: 30em;
  margin-inline: auto;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(18px, 2.02vw, 27px);
  line-height: 1.45;
  text-wrap: pretty;
}
.closing__cta { margin-top: 24px; }
.closing__cta .btn { padding: 16px 30px; }

/* ==========================================================================
   15. FAQ
   ========================================================================== */
.faq { padding-block: var(--section-pad); }
.faq .section-title { margin-bottom: 26px; }
.faq__item { border-top: 1px solid var(--hairline-mid); }
.faq__item:last-of-type { border-bottom: 1px solid var(--hairline-mid); }
.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 10px;
  margin-inline: -10px;
  border-radius: var(--radius-sm);
  transition: background-color var(--t) ease;
}
.faq__summary:hover { background: var(--hover-tint); }
.faq__q {
  font-weight: 500;
  font-size: 16px;
  color: var(--cream);
}
.faq__body {
  padding: 0 60px 20px 0;
  max-width: var(--measure);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted-soft);
}
/* The MarSo answer is the only multi-paragraph one, and `p { margin: 0 }` in the
   reset was running all four of its paragraphs together into one block. */
.faq__body p + p { margin-top: 10px; }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--hairline-mid);
  font-weight: 300;
  font-size: 12px;
  color: var(--text-dim);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 26px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   17. MOBILE STICKY BOOKING BAR (mobile only)
   ========================================================================== */
.sticky-bar {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: var(--sticky-bg);
  padding: 12px 18px;
  border-top: 1px solid var(--hairline-mid);
}

/* ==========================================================================
   18. 404 PAGE (404.html only)
   ========================================================================== */
/* The whole page is this one block, so it centres itself in the viewport rather
   than sitting under a header that 404.html deliberately does not carry: a
   visitor who mistyped the URL needs the way back, not the navigation of a page
   they are not on. `--section-pad` keeps the top and bottom breathing room on the
   same vertical rhythm as every band of the landing page. */
.error-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding-block: var(--section-pad);
}
.error-page .body { max-width: var(--measure); }

/* ==========================================================================
   19. RESPONSIVE — single breakpoint at 960px
   ========================================================================== */
@media (max-width: 960px) {
  :root {
    --gutter: 22px;
    --header-h: 59px;
    --section-pad: 30px;
  }

  .nav__item--mobile { display: list-item; }

  /* Header ---------------------------------------------------------------- */
  .header__inner { padding-block: 12px; gap: 12px; }
  .brand { gap: 10px; }
  .brand__logo { width: 34px; height: 34px; }
  .brand__word { font-size: 10px; letter-spacing: .14em; }
  .header__actions { gap: 14px; }
  .header__cta { display: none; }
  .lang__item { padding: 7px 10px; font-size: 10px; }

  /* Collapsing the nav is only safe when JS is there to open it again, so every
     hiding rule below is gated on the `js` class that main.js puts on <html>.
     The hamburger is inert without JS, so it stays hidden in the fallback. */
  .js .hamburger { display: flex; }

  /* Nav becomes a drawer panel that reuses the same link list -------------- */
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 55;
    background: var(--black);
    border-bottom: 1px solid var(--hairline);
    padding: 4px var(--gutter) 18px;
  }
  .js .site-header.nav-open .nav { display: block; }
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--hairline);
  }
  .js .nav__list li:last-child .nav__link { border-bottom: 0; }

  /* No-JS fallback: the header stacks — the logo on the first row, the nav links
     wrapping across the row underneath. The language pills are hidden in this
     fallback too (see `html:not(.js) .lang` in §5), so nothing sits beside it. */
  html:not(.js) .header__inner { flex-wrap: wrap; }
  html:not(.js) .nav { order: 3; flex-basis: 100%; }
  html:not(.js) .nav__list { flex-wrap: wrap; gap: 10px 18px; }

  /* Hero ------------------------------------------------------------------ */
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 34px 0 28px; }
  .hero__inner { padding-inline: var(--gutter); gap: 14px; }
  .hero__cta-row { flex-direction: column; align-items: stretch; margin-top: 4px; }
  .hero__note { text-align: center; }
  .hero__media { height: 280px; }

  /* Every CTA goes full-width at this breakpoint (the hero one is already
     blockified as a stretched flex item; `display: block` just says so). */
  .hero__cta-row .btn,
  .about__cta .btn,
  .topic__cta .btn,
  .closing__cta .btn { display: block; padding: 15px; }

  /* Facts ----------------------------------------------------------------- */
  .facts__grid { grid-template-columns: 1fr; gap: 16px; padding-block: 22px; }
  .facts__item { padding: 0; }
  .facts__item + .facts__item { border-left: 0; }

  /* Co to jest ------------------------------------------------------------ */
  .about { padding-block: 32px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 0; }
  .about__text { gap: 14px; }
  .about__media {
    height: 220px;
    margin-top: 32px;
    margin-inline: calc(var(--gutter) * -1);
  }

  /* Dla kogo / Co Was czeka ----------------------------------------------- */
  .audience { border-top: 0; }
  .audience__grid { grid-template-columns: 1fr; }
  .audience__col { padding: 30px 0; }
  .audience__col:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--hairline-mid);
  }

  /* Temat przewodni -------------------------------------------------------- */
  .topic { padding-block: 44px; }

  /* Program — table becomes a bordered timeline list ----------------------- */
  .program__frame { border: 0; border-radius: 0; overflow: visible; margin-top: 16px; }
  .program__head { display: none; }
  .program__list { display: flex; flex-direction: column; gap: 14px; }
  .program__row {
    display: block;
    padding: 0 0 0 12px;
    border-top: 0;
    border-left: 2px solid var(--green);
  }
  .program__row:nth-child(even) { background: none; }
  /* The row's own left border replaces both inner rules. */
  .program__time,
  .program__detail { border-left: 0; padding-left: 0; }
  .program__title { font-size: 13px; margin-bottom: 2px; }
  .program__desc { font-size: 12.5px; line-height: 1.5; color: var(--text-muted-strongest); }

  /* Rejestracja ----------------------------------------------------------- */
  .registration__lead { margin: 12px 0 18px; }
  .registration__grid { grid-template-columns: 1fr; gap: 18px; }
  .steps { gap: 12px; margin-top: 12px; font-size: 13.5px; }
  .steps__num { width: 26px; height: 26px; font-size: 12px; }
  .steps__item { gap: 12px; }
  .rcard { border-radius: var(--radius-md); padding: 16px; }
  .rcard__title { font-size: 14px; }
  .rcard__body { font-size: 13px; line-height: 1.6; }
  .registration__cards { gap: 12px; }

  /* O nas ----------------------------------------------------------------- */
  .team__grid { gap: 18px; margin-top: 18px; }
  .person { border-radius: var(--radius-sm-md); }
  .person__body { padding: 16px; }
  .person__bio { font-size: 12.5px; line-height: 1.6; }

  /* Closing band ----------------------------------------------------------- */
  .closing { padding-block: 34px; }
  .closing__cta { margin-top: 18px; }

  /* FAQ -------------------------------------------------------------------- */
  .faq .section-title { margin-bottom: 14px; }
  .faq__summary { gap: 14px; padding: 14px 10px; }
  .faq__q { font-weight: 400; font-size: 13.5px; }
  .sign--md,
  .sign--lg { font-size: 18px; }
  .faq__body { padding: 0 0 14px; font-size: 12.5px; line-height: 1.65; }

  /* Footer + sticky bar ---------------------------------------------------- */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-block: 20px 26px;
    font-size: 11px;
  }
  .sticky-bar { display: block; }
}

/* ==========================================================================
   19b. WĄSKIE EKRANY — karty „O nas”

        Kolumny rozpadają się dopiero przy 640px, żeby zdjęcia jak najdłużej
        trzymały pionowy kadr. Niższa podłoga wysokości od 700px w dół oddaje
        sterowanie proporcji z aspect-ratio: przy karcie szerszej niż ~465px
        (jedna kolumna, 500–640px) kadr wraca do tych samych ~1.32:1 co na
        desktopie, zamiast rozciągać się w wąski pionowy pasek.
   ========================================================================== */
@media (max-width: 700px) {
  .person__photo { min-height: 350px; }
}

@media (max-width: 640px) {
  .team__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   20. REDUCED MOTION — neutralises every transition and the smooth scroll
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t: 0ms;
    --t-details: 0ms;
  }
  html { scroll-behavior: auto; }
}

/* Previous events: a fixed photo stage keeps portrait and landscape slides stable. */
.past-events { border-top: 1px solid var(--hairline-mid); padding-block: var(--section-pad); }
.past-event { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 60px); margin-top: 34px; align-items: start; }
.past-event + .past-event { border-top: 1px solid var(--hairline-mid); padding-top: 34px; }
.past-event__date { display: block; margin-bottom: 12px; }
.past-event__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2; margin-bottom: 20px; }
.event-slider { min-width: 0; }
.event-slider__viewport { position: relative; width: 100%; aspect-ratio: 2500 / 1666; background: transparent; touch-action: pan-y pinch-zoom; }
.event-slider__viewport .swiper-wrapper { transition-timing-function: cubic-bezier(.22, .61, .36, 1); }
.event-slider__viewport .swiper-slide { height: 100%; }
.event-slider__slide { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: none; }
.event-slider__viewport:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.event-slider__dots { display: flex; width: 100%; margin-top: 6px; background: linear-gradient(#292929, #292929) center / 100% 2px no-repeat; }
.event-slider__dots[hidden] { display: none; }
.event-slider__dot { flex: 1 1 0; min-width: 0; height: 24px; padding: 11px 0; border: 0; background: transparent; cursor: pointer; }
.event-slider__dot::before { content: ""; display: block; height: 2px; border-radius: 1px; background: transparent; }
.event-slider__dot.is-active::before { background: var(--green); }
.event-slider__dot:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 960px) {
  .past-event { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .event-slider__viewport .swiper-wrapper { transition-duration: 0ms !important; }
}
