:root {
  --navy-900: #0a1733;
  --navy-800: #102451;
  --navy-700: #1a3570;
  --navy-100: #e8edf7;
  --gold-600: #a8841a;
  --gold-500: #c9a227;
  --gold-300: #e2c874;
  --gold-200: #f1e3b3;
  --cream: #f3f6fb;
  --cream-2: #e8edf6;
  --paper: #ffffff;
  --ink: #1b2233;
  --ink-soft: #4a5368;
  --line: #dbe2ee;
  --danger: #b3261e;
  --ok: #1d6b3a;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 8px;
  --radius-sm: 6px;
  --radius-xs: 4px;
  --shadow: 0 1px 2px rgb(10 23 51 / .06), 0 8px 24px rgb(10 23 51 / .08);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 9vw, 112px);
}

html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html[data-font="lg"] { font-size: 115%; }
html[data-font="xl"] { font-size: 130%; }
html[data-font="xxl"] { font-size: 150%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-900); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: var(--radius-xs); }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.15; color: var(--navy-900); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; text-wrap: pretty; }

main { container: main / inline-size; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--white { background: var(--paper); }
.section--navy { background: var(--navy-900); color: #dfe6f5; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; flex: none; }
.section--navy .eyebrow, .hero .eyebrow, .cta-card .eyebrow { color: var(--gold-500); }
.section-head--center .eyebrow::after { content: ""; width: 32px; height: 2px; background: currentColor; flex: none; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--gold-500); color: var(--navy-900); padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { top: 12px; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold-500); margin: 0 auto 18px; }
.ornament::before, .ornament::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .7; }
.ornament svg { width: 18px; height: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 26px; border-radius: var(--radius-sm); border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 6px 18px -6px rgb(201 162 39 / .6); }
.btn--gold:hover { background: #d8b33a; color: var(--navy-900); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-900); color: #fff; }
.btn--ghost { border-color: rgb(255 255 255 / .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / .08); }
.btn--outline { border-color: var(--navy-700); color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); color: #fff; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }

.topbar { container: top / inline-size; background: var(--navy-900); color: #c9d3ea; font-size: .875rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__contact span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact svg { width: 15px; height: 15px; opacity: .7; }
.topbar__tools { display: flex; align-items: center; gap: 4px; }
.tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; min-height: 34px;
  background: none; border: 1px solid transparent; color: #fff; border-radius: var(--radius-xs); cursor: pointer;
  font: 600 .85rem var(--font-sans); padding: 2px 8px;
}
.tool:hover { background: rgb(255 255 255 / .08); }
.tool svg { width: 18px; height: 18px; }
.tool--font { font-family: var(--font-serif); font-weight: 700; font-size: .95rem; }
.tool--font.f2 { font-size: 1.05rem; }
.tool--font.f3 { font-size: 1.2rem; }
.tool[aria-pressed="true"] { border-color: var(--gold-500); color: var(--gold-500); }
.tool--a11y { border-color: rgb(255 255 255 / .3); margin-left: 6px; }
.topbar__sep { width: 1px; height: 20px; background: rgb(255 255 255 / .2); margin: 0 4px; }
@container top (max-width: 51.4em) {
  .topbar__contact .hide-sm, .tool .lbl-md { display: none; }
}
@container top (max-width: 28.6em) { .tool--font.f3 { display: none; } }

.masthead { container: mst / inline-size; background: var(--paper); }
.masthead .wrap { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); padding-block: 14px; }
.masthead__rule { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold-500)); }
.masthead__rule:last-child { background: linear-gradient(to left, transparent, var(--gold-500)); }
.masthead__brand { flex: none; display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--navy-900); }
.masthead__brand:hover { color: var(--navy-900); }
.masthead__brand img { width: 88px; height: 88px; flex: none; }
.masthead__text { display: flex; flex-direction: column; gap: 4px; }
.masthead__kicker { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); }
.masthead__name { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.95rem); line-height: 1.12; letter-spacing: -.005em; }
@container mst (max-width: 50em) {
  .masthead__rule { display: none; }
  .masthead .wrap { justify-content: center; padding-block: 16px; }
}
@container mst (max-width: 30em) {
  .masthead .wrap { justify-content: flex-start; padding-block: 12px; }
  .masthead__brand { gap: 12px; }
  .masthead__brand img { width: 64px; height: 64px; }
  .masthead__kicker { font-size: .75rem; letter-spacing: .03em; }
  .masthead__name { font-size: 1.05rem; }
}

.header { container: hdr / inline-size; position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .96); backdrop-filter: saturate(1.4) blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.header.is-stuck { box-shadow: 0 8px 24px -16px rgb(10 23 51 / .35); }
.header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.mini-brand { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em;
  max-width: 0; opacity: 0; overflow: hidden; visibility: hidden; transition: max-width .35s ease, opacity .3s ease, visibility .3s; white-space: nowrap; }
.mini-brand img { width: 38px; height: 38px; flex: none; }
.header.is-stuck .mini-brand { max-width: 200px; opacity: 1; visibility: visible; }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 2px; }
.nav a { position: relative; display: block; white-space: nowrap; padding: 20px 14px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; letter-spacing: .01em; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 12px; height: 2px; background: var(--gold-500); transform: scaleX(0); transition: transform .25s; }
.nav a:hover { color: var(--navy-900); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--navy-900); font-weight: 600; }
.nav .nav__cta { display: none; }
.menu-toggle { display: none; }

@container hdr (max-width: 68em) {
  .nav a { padding-inline: 10px; font-size: .95rem; }
  .nav a::after { left: 10px; right: 10px; }
  .header.is-stuck .mini-brand span { display: none; }
}
@container hdr (max-width: 54em) {
  .header .wrap { min-height: 64px; }
  .menu-toggle {
    order: -1; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px;
    border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-sm); font: 600 1rem var(--font-sans); color: var(--navy-900); cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .mini-brand { margin-right: auto; }
  .header:not(.is-stuck) .header__cta { margin-left: auto; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: 100vh; height: 100dvh; background: var(--navy-900); padding: 24px var(--gutter) 160px; display: none; overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; max-width: 560px; margin-inline: auto; }
  .nav a { color: #fff; font-size: 1.35rem; font-family: var(--font-serif); padding: 14px 16px; border-bottom: 1px solid rgb(255 255 255 / .1); white-space: normal; }
  .nav a::after { display: none; }
  .nav a:hover, .nav a[aria-current="true"] { background: rgb(255 255 255 / .06); color: var(--gold-500); }
  .nav .nav__cta { display: block; margin-top: 24px; }
  .nav .nav__cta a { background: var(--gold-500); color: var(--navy-900); border-radius: var(--radius-sm); text-align: center; font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; border: 0; }
}
@container hdr (max-width: 26em) {
  .header__cta { padding-inline: 14px; }
  .header.is-stuck .mini-brand span { display: none; }
}
body.menu-open { overflow: hidden; }
body.menu-open .menu-toggle { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

.hero {
  position: relative; overflow: hidden; color: #dfe6f5;
  background:
    radial-gradient(900px 520px at 78% 30%, rgb(201 162 39 / .22), transparent 62%),
    radial-gradient(900px 600px at -10% 110%, rgb(26 53 112 / .9), transparent 60%),
    var(--navy-900);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M26 18h4v8h8v4h-8v8h-4v-8h-8v-4h8z' fill='%23fff'/%3E%3C/svg%3E");
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 4vw, 52px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero .lead { color: #c3cde3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 18px; font-size: .95rem; color: #9fb0d3; display: flex; gap: 8px; align-items: flex-start; }
.hero__note svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold-500); }

.portrait { position: relative; margin: 0; justify-self: end; width: min(100%, 300px); }
.portrait img { position: relative; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 12%; border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); }
.portrait figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 60px 20px 18px; border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(to top, rgb(10 23 51 / .92), rgb(10 23 51 / 0));
  color: #fff; font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; line-height: 1.3;
}
.portrait figcaption span { display: block; font-family: var(--font-sans); font-weight: 500; font-size: .85rem; color: var(--gold-300); margin-top: 2px; }

.hero__facts { position: relative; z-index: 1; list-style: none; margin: clamp(22px, 2.6vw, 34px) 0 0; padding: 20px 0 150px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid rgb(255 255 255 / .12); }
.hero__facts li { display: flex; gap: 14px; align-items: center; }
.hero__facts .ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgb(201 162 39 / .5); border-radius: var(--radius-sm); color: var(--gold-500); }
.hero__facts svg { width: 24px; height: 24px; }
.hero__facts strong { display: block; font-family: var(--font-serif); color: #fff; font-size: 1.1rem; line-height: 1.25; }
.hero__facts span { font-size: .9rem; color: #9fb0d3; line-height: 1.35; display: block; }

@container main (max-width: 53.3em) {
  .hero__grid { grid-template-columns: 1.25fr .75fr; gap: 36px; }
  .hero__facts { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
}
@container main (max-width: 38em) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .hero .lead { font-size: 1.08rem; }
  .hero__actions { margin-top: 22px; }
  .portrait { justify-self: stretch; width: calc(100% - 14px); margin-top: 4px; }
  .portrait img { aspect-ratio: 16 / 11; object-position: 60% 40%; }
  .portrait figcaption { padding: 40px 16px 14px; font-size: 1rem; }
  .hero__facts { margin-top: 36px; padding: 24px 0 132px; gap: 18px 14px; }
  .hero__facts .ico { width: 40px; height: 40px; }
  .hero__facts svg { width: 20px; height: 20px; }
  .hero__facts strong { font-size: 1rem; }
  .hero__facts span { font-size: .84rem; }
}
@container main (max-width: 23.3em) { .hero__actions .btn { width: 100%; } .hero__facts li { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* Telefon: pierwszy ekran = ok. 70% zdjęcie + jedna karta (tytuł i fakty w jednej linii); przyciski są w dolnym pasku (.pasek). */
@container main (max-width: 38em) {
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 0; }
  .portrait { order: -1; justify-self: auto; width: auto; margin: 0 calc(-1 * var(--gutter)); }
  .portrait img { aspect-ratio: auto; height: clamp(260px, calc(100svh - 148px - 236px), 560px); object-position: 50% 14%; border-radius: 0; box-shadow: none; }
  .portrait figcaption { border-radius: 0; padding: 48px var(--gutter) 46px; font-size: .95rem; }
  .hero__grid > div { position: relative; z-index: 2; margin-top: -32px; padding: 20px 18px 14px; background: var(--paper); border-top: 4px solid var(--gold-500); border-radius: var(--radius) var(--radius) 0 0; }
  .hero .eyebrow { margin-bottom: .5rem; font-size: .75rem; letter-spacing: .08em; }
  .hero h1 { color: var(--navy-900); font-size: clamp(1.5rem, 7vw, 1.9rem); margin: 0; }
  .hero h1 em { color: var(--gold-600); }
  .hero .lead, .hero__actions, .hero__note { display: none; }
  .hero__facts { margin: 0; padding: 12px 10px 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: var(--paper); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 24px 40px -24px rgb(10 23 51 / .5); }
  .hero__facts li { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
  .hero__facts .ico { width: 30px; height: 30px; border-color: var(--gold-300); color: var(--gold-600); }
  .hero__facts svg { width: 17px; height: 17px; }
  .hero__facts strong { color: var(--navy-900); font-family: var(--font-sans); font-weight: 600; font-size: .8rem; line-height: 1.25; }
  .hero__facts span { display: none; }
  .hero { padding-bottom: 24px; }
  .nextbar.nextbar { margin-top: 0; padding-top: 28px; }
}

/* Niskie ekrany laptopów (768–860 px wysokości): powitanie z paskiem faktów ma się zmieścić na pierwszym ekranie. */
@media (min-width: 37.5em) and (max-height: 860px) {
  .masthead .wrap { padding-block: 8px; }
  .masthead__brand img { width: 76px; height: 76px; }
  .hero__grid { padding-top: 26px; grid-template-columns: minmax(0, 1fr) 250px; }
  .portrait { width: min(100%, 250px); }
  .hero__note { display: none; }
  .hero__actions { margin-top: 22px; }
  .hero__facts { margin-top: 22px; padding-top: 16px; }
}

@keyframes pasek-wjazd { from { transform: translateY(100%); } }
/* Dolny pasek na telefonie: pojawia się po przewinięciu powitania, chowa się nad stopką i przy otwartym menu. */
.pasek { display: none; }
@media (max-width: 37.5em) {
  .pasek {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--navy-900); border-top: 2px solid var(--gold-500);
    animation: pasek-wjazd .25s ease;
  }
  /* poza widokiem display: none – belka wykonawcy w demo nie dolicza wtedy miejsca na pasek */
  .pasek:not(.is-on), body.menu-open .pasek { display: none; }
  .pasek a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: var(--radius-sm); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid rgb(255 255 255 / .25); }
  .pasek a svg { width: 18px; height: 18px; flex: none; }
  .pasek .pasek__cta { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
  body.pasek-on .a11y-fab { bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* górny pasek znika: telefon jest w dolnym pasku, wielkość tekstu i kontrast – w „Ułatwieniach dostępu” (przycisk w rogu) */
  .topbar { display: none; }
}

.nextbar { position: relative; z-index: 2; margin-top: -110px; }
.next {
  display: grid; grid-template-columns: 210px 1fr auto; align-items: stretch;
  background: var(--paper); color: var(--ink); border-radius: var(--radius); border-top: 4px solid var(--gold-500);
  box-shadow: 0 30px 60px -24px rgb(10 23 51 / .45);
}
.next__title { padding: 26px 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.next__title h2 { font-size: 1.35rem; margin: 0; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; border-radius: var(--radius-xs); background: var(--gold-200); color: #6b520c; white-space: nowrap; }
#next-list { display: grid; grid-template-columns: 1fr 1fr; }
.next__item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 22px 24px; border-left: 1px solid var(--line); }
.cal { text-align: center; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.cal__m { background: var(--navy-800); color: #fff; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 4px 0; }
.cal__d { font-family: var(--font-serif); font-weight: 700; font-size: 1.9rem; line-height: 1.25; color: var(--navy-900); padding: 2px 0 0; }
.cal__w { font-size: .72rem; color: var(--ink-soft); padding-bottom: 5px; }
.cal--empty .cal__d { font-size: 1.3rem; padding: 10px 0; }
.next__city { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--navy-900); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.next__city .badge { font-family: var(--font-sans); }
.next__place { font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }
.next__foot { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 22px 24px; border-left: 1px solid var(--line); background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; }
@container main (max-width: 60em) {
  .next { grid-template-columns: 1fr; }
  .next__title { flex-direction: row; justify-content: space-between; align-items: center; padding: 20px 22px 6px; }
  .next__title .badge { align-self: center; }
  .next__item { border-left: 0; border-top: 1px solid var(--line); padding: 18px 22px; }
  #next-list .next__item + .next__item { border-left: 1px solid var(--line); }
  .next__foot { flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: 16px 22px; }
  .next__foot .btn { flex: 1 1 200px; }
}
@container main (max-width: 37.8em) {
  #next-list { grid-template-columns: 1fr; }
  #next-list .next__item + .next__item { border-left: 0; }
  .nextbar { margin-top: -120px; }
}

.news { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.card--flat { box-shadow: none; }
.card--media { padding: 0; overflow: hidden; }
.card--media > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card--media .card__body { padding: 22px 24px 26px; }
.meta { font-size: .88rem; color: var(--ink-soft); margin-bottom: .6rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); background: var(--navy-100); padding: 3px 9px; border-radius: var(--radius-xs); }
.letter-card { position: relative; border-top: 4px solid var(--navy-800); }
.letter-card::after {
  content: ""; position: absolute; right: 22px; top: 22px; width: 44px; height: 44px; opacity: .07; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2h4v6h6v4h-6v10h-4V12H4V8h6z' fill='%23102451'/%3E%3C/svg%3E") no-repeat center / contain;
}
.letter { font-family: var(--font-serif); font-size: 1.12rem; }
.letter blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--gold-500); font-style: italic; color: var(--ink-soft); }
.letter .sign { text-align: right; font-style: italic; margin-top: 1.2em; }
.letter .sign strong { display: block; font-style: normal; letter-spacing: .08em; font-size: .9rem; }
details.more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-700); font-family: var(--font-sans); font-size: 1rem; margin-top: .5em; min-height: 44px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
details.more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.more[open] > summary .open-lbl, details.more:not([open]) > summary .close-lbl { display: none; }
.news__side { display: grid; gap: 24px; }
.cta-card { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #dfe6f5; border: 0; }
.cta-card::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border: 2px solid rgb(201 162 39 / .35); transform: rotate(45deg); border-radius: var(--radius); }
.cta-card > * { position: relative; }
.cta-card h3 { color: #fff; }
@container main (max-width: 50em) { .news { grid-template-columns: 1fr; } }

.benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: b; }
.benefit { position: relative; background: var(--cream); border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: var(--radius); padding: 26px 22px; counter-increment: b; transition: transform .25s, box-shadow .25s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit::after { content: "0" counter(b); position: absolute; right: 16px; top: 12px; font-family: var(--font-serif); font-weight: 700; font-size: 2rem; color: var(--gold-200); line-height: 1; }
.benefit__icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--navy-800); color: var(--gold-500); margin-bottom: 16px; }
.benefit__icon svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.15rem; margin-bottom: .35em; }
.benefit p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
@container main (max-width: 61.1em) { .benefits { grid-template-columns: repeat(3, 1fr); } }
@container main (max-width: 38.9em) {
  .benefits { grid-template-columns: 1fr; gap: 10px; }
  .benefit { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-items: start; padding: 16px 16px 16px 14px; border-top-width: 1px; border-left: 3px solid var(--gold-500); }
  .benefit:hover { transform: none; }
  .benefit::after { display: none; }
  .benefit__icon { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .benefit__icon svg { width: 22px; height: 22px; }
  .benefit h3 { font-size: 1.08rem; margin: 2px 0 2px; }
  .benefit p { font-size: .96rem; }
}

.about-cst { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: clamp(48px, 7vw, 88px); align-items: start; padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.about-cst p { color: var(--ink-soft); }
.about-cst__book { display: flex; gap: 18px; align-items: center; margin-top: 24px; padding: 16px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem; color: var(--ink-soft); }
.about-cst__book svg { width: 40px; height: 40px; color: var(--gold-600); flex: none; }
@container main (max-width: 47.8em) { .about-cst { grid-template-columns: 1fr; } }

.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.venue { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.venue__head { position: relative; overflow: hidden; background: var(--navy-800); color: #fff; padding: 24px 28px; }
.venue__head::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border: 2px solid rgb(201 162 39 / .3); transform: rotate(45deg); border-radius: var(--radius); }
.venue__head h3 { color: #fff; font-size: 1.6rem; margin: 0 0 4px; }
.venue__head p { margin: 0; color: #c3cde3; font-size: .98rem; line-height: 1.5; }
.venue__head a { color: var(--gold-500); font-weight: 600; font-size: .95rem; }
.dates { list-style: none; margin: 0; padding: 12px 28px 8px; flex: 1; }
.dates li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.dates li:last-child { border-bottom: 0; }
.dates .d { font-weight: 600; color: var(--navy-900); }
.dates .w { color: var(--ink-soft); font-size: .95rem; }
.dates .past .d, .dates .past .w { color: #8a91a1; text-decoration: line-through; text-decoration-color: #c4c9d4; font-weight: 400; }
.dates .is-next { background: var(--gold-200); margin-inline: -14px; padding-inline: 14px; border-radius: var(--radius-sm); border-bottom-color: transparent; }
.dates .is-next .w::after { content: " · najbliższy"; font-weight: 600; color: #6b520c; }
.dates .gap .d { font-weight: 400; font-style: italic; color: var(--ink-soft); }
.venue__foot { padding: 16px 28px 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); background: var(--cream); font-size: .95rem; color: var(--ink-soft); }
.schedule-note { margin-top: 20px; font-size: .95rem; color: var(--ink-soft); }
@container main (max-width: 38em) { .schedule { grid-template-columns: 1fr; } }

.topics { display: grid; gap: 12px; max-width: 900px; }
.acc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--navy-900); min-height: 64px; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .sem { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--navy-100); color: var(--navy-800); font-size: .95rem; }
.acc > summary .when { font-family: var(--font-sans); font-weight: 500; font-size: .9rem; color: var(--ink-soft); margin-left: auto; white-space: nowrap; }
.acc > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--navy-700); border-bottom: 2px solid var(--navy-700); transform: rotate(45deg); transition: transform .2s; margin: 0 4px 4px 8px; }
.acc[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.acc[open] { border-left: 3px solid var(--gold-500); }
.acc[open] > summary .sem { background: var(--navy-800); color: var(--gold-500); }
.acc__body { padding: 0 24px 22px 84px; }
.acc__body h4 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin: 18px 0 6px; }
.acc__body ul { margin: 0; padding-left: 1.1em; }
.acc__body li { margin: 4px 0; }
.acc--todo { border-style: dashed; border-width: 2px; background: transparent; padding: 22px 24px; }
.acc--todo p { margin: 0; color: var(--ink-soft); }
@container main (max-width: 35.6em) {
  .acc > summary { flex-wrap: wrap; padding: 16px 18px; }
  .acc > summary .when { margin-left: 62px; order: 3; width: 100%; }
  .acc__body { padding: 0 18px 20px 18px; }
}

.quote { padding-bottom: 0; overflow: hidden;
  background:
    radial-gradient(600px 420px at 18% 100%, rgb(201 162 39 / .28), transparent 65%),
    var(--navy-900);
}
.quote__grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.quote__img { align-self: end; width: 100%; max-width: 320px; }
.quote__text { padding-bottom: var(--section); }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.35; color: #fff; font-weight: 500; text-wrap: balance; }
.quote blockquote::before { content: "„"; display: block; font-size: 4em; line-height: .6; color: var(--gold-500); margin-bottom: .15em; }
.quote cite { display: flex; align-items: center; gap: 12px; margin-top: 1.4em; font-style: normal; color: var(--gold-500); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; }
.quote cite::before { content: ""; width: 40px; height: 2px; background: currentColor; }
@container main (max-width: 42.2em) {
  .quote { padding-top: 56px; }
  .quote__grid { grid-template-columns: 1fr; }
  .quote__text { padding-bottom: 0; order: -1; }
  .quote__img { max-width: 220px; margin: 16px auto 0; }
}

.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-grid .card h3 { display: flex; align-items: center; gap: 10px; }
.about-grid .card h3 svg { width: 24px; height: 24px; color: var(--gold-600); }
.about-grid p { font-size: 1rem; color: var(--ink-soft); }
.about-grid p:last-child { margin-bottom: 0; }
.people-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 20px; }
.person-lg { display: flex; gap: 20px; align-items: center; }
.person-lg img { width: 96px; height: 96px; border-radius: var(--radius); object-fit: cover; flex: none; }
.role { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.centers { list-style: none; margin: 0; padding: 0; }
.centers li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.centers li:last-child { border-bottom: 0; }
.centers strong { color: var(--navy-900); }
@container main (max-width: 53.3em) { .about-grid { grid-template-columns: 1fr 1fr; } .about-grid > :last-child { grid-column: 1 / -1; } .people-row { grid-template-columns: 1fr 1fr; } }
@container main (max-width: 38em) { .about-grid, .people-row { grid-template-columns: 1fr; } }
@container main (max-width: 26.7em) { .person-lg { flex-direction: column; align-items: flex-start; } .centers li { flex-direction: column; gap: 0; } }

.council { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.member { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.member img, .member .avatar { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; flex: none; background: var(--navy-100); }
.member .avatar { display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; color: var(--navy-700); font-size: 1.2rem; }
.member__name { font-weight: 600; color: var(--navy-900); line-height: 1.3; font-size: 1rem; }
.member__fn { font-size: .88rem; color: var(--ink-soft); line-height: 1.35; margin-top: 2px; }
.member--lead { grid-column: 1 / -1; background: var(--navy-800); border: 0; border-left: 4px solid var(--gold-500); padding: 22px; }
.member--lead img { width: 84px; height: 84px; }
.member--lead .member__name { color: #fff; font-size: 1.2rem; font-family: var(--font-serif); }
.member--lead .role { color: var(--gold-500); }

.register { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.steps { list-style: none; margin: 24px 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 60px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--navy-800); color: var(--gold-500); display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; }
.steps li::after { content: ""; position: absolute; left: 20px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; color: var(--navy-900); }
.steps span { color: var(--ink-soft); font-size: 1rem; }
.notice { display: flex; gap: 12px; background: var(--gold-200); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 1rem; color: #4d3b08; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; border-top: 4px solid var(--gold-500); }
.form .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-weight: 600; font-size: .98rem; color: var(--navy-900); margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select {
  width: 100%; min-height: 54px; padding: 12px 14px; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid #b6c0d4; border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgb(26 53 112 / .15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.field .err { color: var(--danger); font-size: .9rem; margin-top: 4px; display: none; font-weight: 500; }
.field [aria-invalid="true"] ~ .err { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 52px; padding: 10px 22px; border: 1.5px solid #b6c0d4; border-radius: var(--radius-sm); background: var(--paper); font-weight: 500; font-size: 1.05rem; }
.choice input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.check input { width: 26px; height: 26px; flex: none; margin-top: 0; accent-color: var(--navy-800); }
.pole-pulapka { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input, .field textarea { width: 100%; }
.field textarea { min-height: 120px; padding: 12px 14px; font: inherit; background: var(--paper); border: 1.5px solid #b6c0d4; border-radius: var(--radius-sm); }
.field input::placeholder { color: #7d879c; }
.form .btn { width: 100%; }
.formularz__wynik { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: #e3f2e8; color: var(--ok); font-weight: 500; }
.formularz__wynik:empty { display: none; }
.formularz__wynik--blad { background: #fbe6e4; color: var(--danger); }
.form .po-uruchomieniu { grid-column: 1 / -1; margin: -4px 0 0; text-align: center; }
.po-uruchomieniu { font-size: .8rem; line-height: 1.45; color: var(--ink-soft); letter-spacing: .01em; }
.footer__social { display: flex; gap: 16px; margin-top: 12px; }
.form__status { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius-sm); display: none; }
.form__status.is-ok { display: block; background: #e3f2e8; color: var(--ok); }
.form__status.is-err { display: block; background: #fbe6e4; color: var(--danger); }
@container main (max-width: 53.3em) { .register { grid-template-columns: 1fr; } }
@container main (max-width: 31.1em) { .form { grid-template-columns: 1fr; } }

.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 72px); }
.partners a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink-soft); font-size: .95rem; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.partners a:hover { filter: none; opacity: 1; }
.partners img { height: 56px; width: auto; }

.footer { container: ftr / inline-size; background: var(--navy-900); color: #b9c4dd; font-size: 1rem; border-top: 4px solid var(--gold-500); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 64px 40px; }
.footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: var(--gold-500); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer address { font-style: normal; line-height: 1.8; }
.footer .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin: 0 0 16px; }
.footer .brand img { width: 54px; height: 54px; }
.footer .brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.footer .brand__name { white-space: normal; }
.acct { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.copy { background: rgb(255 255 255 / .1); color: #fff; border: 0; border-radius: var(--radius-xs); padding: 6px 12px; font: 500 .85rem var(--font-sans); cursor: pointer; }
.copy:hover { background: rgb(255 255 255 / .18); }
.footer__bottom { border-top: 1px solid rgb(255 255 255 / .1); }
.footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; font-size: .88rem; color: #8797bb; }
.credit { white-space: nowrap; font-size: .85rem; }
.credit a { color: #9fb0d3; text-decoration: none; }
.credit a:hover { color: #fff; text-decoration: underline; }
@container ftr (max-width: 60em) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@container ftr (max-width: 35em) { .footer .wrap { grid-template-columns: 1fr; } }
@container ftr (max-width: 60em) { .footer__bottom .wrap { padding-bottom: 96px; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.a11y-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 60px; height: 60px; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; border: 2px solid var(--gold-500); border-radius: var(--radius); cursor: pointer;
  box-shadow: 0 10px 30px -8px rgb(10 23 51 / .6);
  translate: 0 calc(-1 * var(--fab-lift, 0px));
}
.a11y-fab svg { width: 34px; height: 34px; }
.a11y-fab:hover { background: var(--navy-900); }

.a11y-backdrop { position: fixed; inset: 0; z-index: 99; background: rgb(10 23 51 / .45); }
.a11y {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%); overflow-y: auto;
  background: var(--paper); color: var(--ink); box-shadow: -20px 0 60px -20px rgb(10 23 51 / .5);
  display: flex; flex-direction: column;
}
.a11y[hidden], .a11y-backdrop[hidden] { display: none; }
.a11y__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--navy-900); color: #fff; }
.a11y__head h2 { color: #fff; font-size: 1.3rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.a11y__head h2 svg { width: 28px; height: 28px; color: var(--gold-500); }
.a11y__close { min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .35); border-radius: var(--radius-sm); cursor: pointer; font: 600 .95rem var(--font-sans); padding: 0 12px; }
.a11y__close svg { width: 20px; height: 20px; }
.a11y__body { padding: 8px 20px 24px; display: grid; gap: 4px; }
.a11y__group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.a11y__group:last-child { border-bottom: 0; }
.a11y__label { font-weight: 700; font-size: 1rem; color: var(--navy-900); margin: 0 0 10px; }
.a11y__seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.a11y__seg--3 { grid-template-columns: repeat(3, 1fr); }
.a11y__seg button {
  min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--cream); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  font: 600 .82rem/1.2 var(--font-sans); padding: 8px 4px; text-align: center;
}
.a11y__seg button b { font-family: var(--font-serif); color: var(--navy-900); line-height: 1; }
.a11y__seg button[aria-pressed="true"] { border-color: var(--navy-800); background: var(--navy-100); box-shadow: inset 0 0 0 1px var(--navy-800); }
.swatch { width: 40px; height: 26px; border-radius: var(--radius-xs); display: grid; place-items: center; font: 700 .9rem var(--font-serif); border: 1px solid #0003; }
.swatch--std { background: #fff; color: var(--navy-900); }
.swatch--yb { background: #000; color: #ff0; }
.swatch--bw { background: #fff; color: #000; border: 2px solid #000; }
.a11y__toggles { display: grid; gap: 8px; }
.a11y-toggle {
  width: 100%; min-height: 60px; display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--cream); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  font: 600 1rem/1.3 var(--font-sans); padding: 10px 14px;
}
.a11y-toggle > svg { width: 26px; height: 26px; flex: none; color: var(--navy-700); }
.a11y-toggle small { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.a11y-toggle .sw { margin-left: auto; flex: none; width: 50px; height: 28px; border-radius: var(--radius-xs); background: #c9c2b2; position: relative; transition: background .2s; }
.a11y-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 3px; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px #0004; }
.a11y-toggle[aria-pressed="true"] { border-color: var(--navy-800); background: var(--navy-100); }
.a11y-toggle[aria-pressed="true"] .sw { background: var(--navy-800); }
.a11y-toggle[aria-pressed="true"] .sw::after { transform: translateX(22px); }
.a11y__reset { width: 100%; margin-top: 8px; }
.a11y__info { font-size: .88rem; color: var(--ink-soft); margin: 10px 0 0; }

html[data-tts] main p, html[data-tts] main li, html[data-tts] main h1, html[data-tts] main h2, html[data-tts] main h3,
html[data-tts] main h4, html[data-tts] main blockquote, html[data-tts] .next__item { cursor: help; }
html[data-tts] main p:hover, html[data-tts] main li:hover, html[data-tts] main h2:hover, html[data-tts] main h3:hover,
html[data-tts] main blockquote:hover { outline: 2px dashed var(--gold-500); outline-offset: 4px; }
.tts-reading { outline: 3px solid var(--gold-500) !important; outline-offset: 4px; background-color: rgb(241 227 179 / .5) !important; }
.tts-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 12px; background: var(--navy-900); color: #fff; padding: 10px 12px 10px 18px; border-radius: var(--radius); border: 2px solid var(--gold-500); box-shadow: 0 10px 30px -8px rgb(0 0 0 / .5); font-size: .95rem; max-width: calc(100% - 110px); }
.tts-bar[hidden] { display: none; }
.tts-bar button { min-height: 40px; }

html[data-spacing] body { line-height: 1.95; letter-spacing: .04em; word-spacing: .14em; }
html[data-spacing] p, html[data-spacing] li { margin-bottom: .8em; }
html[data-spacing] h1, html[data-spacing] h2, html[data-spacing] h3 { line-height: 1.35; }

html[data-links] a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .2em; }
html[data-links] a:not(.btn):not(.brand) { background-color: rgb(241 227 179 / .45); }
html[data-links] .btn { outline: 2px dashed currentColor; outline-offset: 3px; }

html[data-readable] body, html[data-readable] body *:not(svg):not(svg *) { font-family: 'Atkinson Hyperlegible', Verdana, Tahoma, Arial, sans-serif !important; font-style: normal !important; }
html[data-readable] h1, html[data-readable] h2, html[data-readable] h3 { letter-spacing: 0; }

html[data-cursor], html[data-cursor] * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 20-13 3 8 15-6 3-8-15-11 9z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important; }
html[data-cursor] a, html[data-cursor] button, html[data-cursor] summary, html[data-cursor] label, html[data-cursor] a *, html[data-cursor] button * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 20-13 3 8 15-6 3-8-15-11 9z' fill='%23c9a227' stroke='%23000' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, pointer !important; }

html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { transition: none !important; animation: none !important; }
html[data-motion="off"] .reveal { opacity: 1; transform: none; }

html[data-contrast="yb"] { --hc-bg: #000; --hc-fg: #ff0; }
html[data-contrast="bw"] { --hc-bg: #fff; --hc-fg: #000; }
html[data-contrast] body { background: var(--hc-bg) !important; color: var(--hc-fg) !important; }
html[data-contrast] body *, html[data-contrast] body *::before, html[data-contrast] body *::after {
  background-color: transparent !important; background-image: none !important; color: inherit !important;
  border-color: currentColor !important; box-shadow: none !important; text-shadow: none !important; opacity: 1 !important; filter: none !important;
}
html[data-contrast] .hero::before, html[data-contrast] .letter-card::after, html[data-contrast] .cta-card::before,
html[data-contrast] .venue__head::after, html[data-contrast] .benefit::after { display: none; }
html[data-contrast] .header, html[data-contrast] .masthead, html[data-contrast] .topbar, html[data-contrast] .nav, html[data-contrast] .a11y,
html[data-contrast] .a11y__head, html[data-contrast] .tts-bar, html[data-contrast] .a11y-fab { background-color: var(--hc-bg) !important; }
html[data-contrast] .card, html[data-contrast] .venue, html[data-contrast] .benefit, html[data-contrast] .acc, html[data-contrast] .member,
html[data-contrast] .next, html[data-contrast] .doc, html[data-contrast] .toc__box, html[data-contrast] .doc__summary, html[data-contrast] .btn, html[data-contrast] .notice, html[data-contrast] .a11y-toggle, html[data-contrast] .a11y__seg button,
html[data-contrast] .field input, html[data-contrast] .field select, html[data-contrast] .choice span, html[data-contrast] .cal,
html[data-contrast] .a11y-fab, html[data-contrast] .tool, html[data-contrast] .menu-toggle, html[data-contrast] .tag, html[data-contrast] .badge { border: 2px solid var(--hc-fg) !important; }
html[data-contrast] .btn--gold, html[data-contrast] .choice input:checked + span, html[data-contrast] [aria-pressed="true"],
html[data-contrast] .dates .is-next, html[data-contrast] .cal__m, html[data-contrast] .a11y-toggle[aria-pressed="true"] .sw,
html[data-contrast] .steps li::before, html[data-contrast] .tts-reading, html[data-contrast] .nav .nav__cta a {
  background-color: var(--hc-fg) !important; color: var(--hc-bg) !important;
}
html[data-contrast] .a11y-toggle .sw::after { background-color: var(--hc-fg) !important; }
html[data-contrast] .a11y-toggle[aria-pressed="true"] .sw::after { background-color: var(--hc-bg) !important; }
html[data-contrast] a { text-decoration: underline !important; }
html[data-contrast] .field input::placeholder { color: var(--hc-fg); }
html[data-contrast] :focus-visible { outline: 4px solid var(--hc-fg) !important; outline-offset: 3px; }
html[data-contrast] .portrait figcaption { background-color: var(--hc-bg) !important; position: static; padding: 12px 0 0; }
html[data-contrast] .quote__img, html[data-contrast] .portrait img { filter: grayscale(1) contrast(1.1) !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary, label { -webkit-tap-highlight-color: rgb(201 162 39 / .25); touch-action: manipulation; }

@container main (max-width: 38em) {
  .section { padding-block: 52px; }
  .eyebrow { font-size: .75rem; letter-spacing: .1em; gap: 10px; }
  .eyebrow::before { width: 22px; }
  .section-head { margin-bottom: 26px; }
  .section-head .lead { font-size: 1.05rem; }
  h2 { font-size: 1.7rem; }
  .card { padding: 20px; }
  .card--media { padding: 0; }
  .card--media .card__body { padding: 18px 20px 22px; }

  .next__title { padding: 18px 18px 4px; }
  .next__title h2 { font-size: 1.2rem; }
  .next__item { grid-template-columns: 60px 1fr; gap: 14px; padding: 14px 18px; }
  .cal__d { font-size: 1.6rem; }
  .next__foot { padding: 14px 18px 18px; gap: 8px; }

  .news { gap: 16px; }
  .news__side { gap: 16px; }
  .letter { font-size: 1.06rem; }
  .letter blockquote { margin: 1em 0; padding-left: .9em; }

  .about-cst { margin-top: 40px; padding-top: 32px; gap: 8px; }
  .about-cst h2 { font-size: 1.5rem; }

  .venue__head { padding: 20px; }
  .venue__head h3 { font-size: 1.4rem; }
  .dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; }
  .dates li { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); line-height: 1.35; }
  .dates li:last-child { border-bottom: 1px solid var(--line); }
  .dates .d { font-size: 1rem; }
  .dates .w { font-size: .85rem; }
  .dates .gap { border-style: dashed; background: var(--cream); justify-content: center; }
  .dates .gap .d { font-size: .9rem; }
  .dates .is-next { margin: 0; padding: 10px 12px; border-color: var(--gold-500); }
  .dates .is-next .w::after { content: " · najbliższy"; }
  .venue__foot { padding: 14px 16px 18px; }
  .venue__foot .btn { width: 100%; }

  .topics { gap: 10px; }
  .acc > summary { font-size: 1.05rem; gap: 12px; min-height: 60px; }
  .acc > summary .sem { width: 40px; height: 40px; font-size: .85rem; }
  .acc > summary .when { margin-left: 52px; }

  .quote blockquote { font-size: 1.35rem; }
  .quote__img { max-width: 190px; }

  .person-lg img { width: 80px; height: 80px; }

  .council { grid-template-columns: 1fr; gap: 8px; }
  .member { padding: 10px 12px; gap: 12px; }
  .member img, .member .avatar { width: 52px; height: 52px; }
  .member__name { font-size: .98rem; }
  .member__fn { font-size: .84rem; }
  .member--lead { padding: 16px; }
  .member--lead img { width: 68px; height: 68px; }
  .member--lead .member__name { font-size: 1.08rem; }

  .steps { margin: 18px 0; }
  .steps li { padding: 0 0 16px 54px; }
  .steps li::before { width: 38px; height: 38px; font-size: 1.05rem; }
  .steps li::after { left: 18px; top: 40px; }
  .form { gap: 16px; padding: 20px 18px; }
  .choices { display: grid; grid-template-columns: 1fr 1fr; }
  .choice span { width: 100%; justify-content: center; }
  .partners { gap: 24px 36px; }
  .partners img { height: 44px; }
}

@container main (min-width: 38.01em) and (max-width: 61em) {
  .council { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member--lead { grid-column: 1 / -1; }
  .news { grid-template-columns: 1fr; }
  .news__side { grid-template-columns: 1fr 1fr; }
  .register { gap: 32px; }
}

@container ftr (max-width: 35em) {
  .footer .wrap { gap: 26px; padding-block: 44px 28px; }
  .footer h3 { margin-bottom: 8px; }
  .footer__bottom .wrap { flex-direction: column; gap: 14px; }
}

@media (max-width: 600px) {
  .a11y-fab { width: 52px; height: 52px; right: 12px; bottom: 12px; }
  .a11y-fab svg { width: 30px; height: 30px; }
  .a11y__body { padding-inline: 16px; }
  .tts-bar { left: 12px; right: 76px; transform: none; max-width: none; bottom: 12px; }
}
@media (hover: none) {
  .benefit:hover, .btn:hover { transform: none; }
}

.page-hero { position: relative; overflow: hidden; color: #dfe6f5; padding-block: clamp(40px, 6vw, 76px);
  background: radial-gradient(900px 420px at 85% 0%, rgb(201 162 39 / .2), transparent 62%), var(--navy-900); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M26 18h4v8h8v4h-8v8h-4v-8h-8v-4h8z' fill='%23fff'/%3E%3C/svg%3E"); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: .3em; }
.page-hero .lead { color: #c3cde3; margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 22px; padding: 0; font-size: .92rem; color: #9fb0d3; }
.crumbs li + li::before { content: "›"; margin-right: 10px; color: var(--gold-500); }
.crumbs a { color: #fff; }

.doc-section { padding-top: clamp(32px, 5vw, 64px); }
.doc-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: 88px; }
.toc__box { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: var(--radius); }
.toc__box > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; min-height: 56px; font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--navy-900); }
.toc__box > summary::-webkit-details-marker { display: none; }
.toc__box > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--navy-700); border-bottom: 2px solid var(--navy-700); transform: rotate(45deg); transition: transform .2s; margin-bottom: 4px; }
.toc__box[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.toc__box ol { list-style: none; margin: 0; padding: 0 8px 10px; max-height: calc(100vh - 240px); overflow-y: auto; }
.toc__box a { display: block; padding: 8px 10px; border-left: 2px solid transparent; border-radius: 0 var(--radius-xs) var(--radius-xs) 0; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.toc__box a small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.toc__box a:hover { background: var(--cream); }
.toc__box a[aria-current="true"] { background: var(--navy-100); border-left-color: var(--gold-500); color: var(--navy-900); font-weight: 600; }
.toc__tools { display: flex; gap: 8px; margin-top: 12px; }
.toc__tools .btn { flex: 1; }

.doc { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 56px); }
.doc__part { scroll-margin-top: 96px; }
.doc__part + .doc__part { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.doc h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: .75em; }
.doc h2 small { display: block; margin-bottom: 6px; font-family: var(--font-sans); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.doc p { max-width: 70ch; }
.doc ol { counter-reset: p; list-style: none; margin: 0 0 1em; padding: 0; max-width: 72ch; }
.doc ol > li { counter-increment: p; position: relative; margin: .75em 0; padding-left: 2.4em; }
.doc ol > li::before { content: counter(p) "."; position: absolute; left: 0; top: 0; min-width: 1.8em; font-weight: 700; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.doc ol ol { margin: .5em 0 .25em; }
.doc ol ol > li { margin: .35em 0; padding-left: 2em; }
.doc ol ol > li::before { content: counter(p, lower-alpha) ")"; font-weight: 600; color: var(--gold-600); }
.doc blockquote { margin: 1.1em 0 1.4em; padding: 16px 20px; background: var(--cream); border-left: 3px solid var(--gold-500); border-radius: 0 var(--radius) var(--radius) 0; }
.doc blockquote p:first-child { font-weight: 600; margin-bottom: .4em; }
.doc blockquote ol { margin: 0; }
.doc__summary { margin-bottom: 40px; padding: 22px 24px; background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--gold-500); border-radius: var(--radius); }
.doc__summary .doc__summary-title { font-size: 1.2rem; margin-bottom: .6em; }
.doc__summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc__summary li { position: relative; padding-left: 32px; }
.doc__summary li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: var(--radius-xs); background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 14px; }
.doc__updated { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }

@container main (max-width: 53.3em) {
  .doc-layout { grid-template-columns: 1fr; gap: 16px; }
  .toc { position: static; }
  .toc__box ol { max-height: none; }
}
@container main (max-width: 38em) {
  .doc { padding: 20px 18px; border-radius: var(--radius); }
  .doc ol > li { padding-left: 2em; }
  .doc ol ol > li { padding-left: 1.8em; }
  .doc blockquote { padding: 14px 16px; }
  .doc__summary { padding: 18px; margin-bottom: 28px; }
  .crumbs ol { margin-bottom: 16px; }
}
@media print {
  .page-hero { background: none !important; color: #000; padding: 0 0 12pt; }
  .page-hero h1, .page-hero .lead, .crumbs a { color: #000 !important; }
  .page-hero::before, .crumbs, .toc { display: none !important; }
  .doc-layout { display: block; }
  .doc { border: 0; padding: 0; }
}

@media print {
  .topbar, .header, .hero__actions, .next__foot, .form, .footer, .partners, .a11y-fab, .a11y, .portrait { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding-block: 16pt; }
  .nextbar { margin-top: 0; }
  details > *:not(summary) { display: block !important; }
}
