/* ==========================================================================
   U40 SARP Poznań - OPTYMALIZACJA · styles.css
   System wizualny wprost z plakatu (inspirations/PLAKAT_u40_poznan.svg).
   Tokeny i reguły: .claude/rules/design-visual.md
   ========================================================================== */

/* --- Fonty (self-hosted, variable) --------------------------------------- */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokeny ---------------------------------------------------------------- */

:root {
  /* paleta plakatu (źródło prawdy: design-visual.md) */
  --navy: #293793;
  --cream: #fffcf6;
  --ink: #1c1717;
  --blue: #0009ff;
  --red: #ff0000;
  --red-dark: #c00000; /* wyłącznie drobne teksty błędów (kontrast 5,5:1 na kremie) */
  --red-50: rgba(255, 0, 0, 0.5);
  --red-40: rgba(255, 0, 0, 0.4);
  --red-30: rgba(255, 0, 0, 0.3);
  --red-20: rgba(255, 0, 0, 0.2);
  --red-15: rgba(255, 0, 0, 0.15);

  /* negatyw: jasne tło z tekstury + ciepły akcent */
  --paper: #faf8f2; /* średnia barwa tekstury hero (źródło: inspirations/TLO_MAIN.JPG) */
  --coral: #ff7e7b; /* ciepły akcent - pełne tło sekcji Idea */

  /* typografia */
  --font-display: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, "Segoe UI", Arial, sans-serif;

  /* rytm plakatu: moduł 151 px, kadr 1190 px, margines 64 px */
  --cell: 151px;
  --container: 1190px;
  --gutter: clamp(20px, 5vw, 64px);

  /* skala odstępów (8 px) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 72px;
  --s-8: 112px;

  /* animacje */
  --t-fast: 160ms;
  --t-med: 240ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* warstwy */
  --z-nav: 100;
  --z-menu: 200;
}

/* --- Reset / baza ----------------------------------------------------------- */

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

* {
  margin: 0;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("../img/hero-paper.jpg"); /* wzór kafelkowany na całej stronie */
  background-repeat: repeat;
  background-size: 200px auto;
  overflow-wrap: break-word;
}

html,
body {
  overflow-x: clip; /* bezpiecznik: zero poziomego scrolla na mobile */
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--blue);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.bg-navy :focus-visible,
.bg-blue :focus-visible,
.bg-ink :focus-visible,
.is-dark :focus-visible {
  outline-color: var(--cream);
}

/* globalny wyłącznik animacji */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Typografia ------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  max-width: 38rem;
}

a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

.bg-navy a,
.bg-blue a,
.bg-ink a {
  color: var(--cream);
}

.tnum {
  font-variant-numeric: tabular-nums;
}

.kicker {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.875rem;
}

/* --- Narzędzia ---------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--s-3);
  z-index: calc(var(--z-menu) + 1);
  padding: var(--s-2) var(--s-3);
  background: var(--blue);
  color: var(--cream);
  font-family: var(--font-display);
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: var(--s-3);
  color: var(--cream);
}

.bg-navy {
  background: var(--navy);
  color: var(--cream);
}

/* negatyw: pełnokolorowe / ciemne tła sekcji */
.bg-paper {
  background: var(--paper);
  color: var(--ink);
}

.bg-coral {
  background: var(--coral);
  color: var(--ink); /* ink na koralu = 6,9:1 (navy dałby tylko 4,1:1) */
}

.bg-blue {
  background: var(--blue);
  color: var(--cream);
}

.bg-ink {
  background: var(--ink);
  color: var(--cream);
}

/* --- Przyciski ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0.7em 1.5em;
  border: 2px solid transparent;
  border-radius: 0; /* ostre rogi - precyzja architektoniczna */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.btn--primary {
  background: var(--blue);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
}

.btn--outline:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  min-height: 44px;
  padding-inline: 0.5em;
}

.btn--ghost:hover {
  color: var(--ink);
}

.bg-navy .btn--ghost {
  color: var(--cream);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn:disabled:hover {
  background: var(--blue); /* primary nie zmienia koloru, gdy zablokowany */
}

/* --- Nagłówek sekcji ------------------------------------------------------------ */

.section {
  padding-block: var(--s-8);
}

main {
  counter-reset: section; /* licznik widocznych sekcji (pomija hidden = display:none) */
}

.section-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  counter-increment: section;
}

.section-head__no {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.section-head__no::before {
  content: counter(section, decimal-leading-zero); /* 01, 02, … z widocznych sekcji */
}

.section-head__rule {
  flex: 0 0 var(--s-6);
  height: 2px;
  background: currentColor;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
}

.section-head__module {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: 84px;
}

body.u-no-scroll {
  overflow: hidden;
}

/* --- Topbar ----------------------------------------------------------------- */

.topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  color: var(--ink); /* nad jasnym hero - ciemny tekst */
  transition: background-color var(--t-med) var(--ease),
    color var(--t-med) var(--ease);
}

.topbar.is-scrolled,
.topbar.is-open {
  background: var(--blue);
  border-bottom: 1px solid rgba(255, 252, 246, 0.18);
  color: var(--cream); /* po przewinięciu / w menu - kobalt, jasny tekst */
}

.topbar.is-scrolled :focus-visible,
.topbar.is-open :focus-visible {
  outline-color: var(--cream);
}

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 72px;
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit; /* dziedziczy z .topbar: ink nad hero, cream po przewinięciu */
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
}

/* nad hero logo jest już w samej sekcji hero - w pasku ukryte, by się nie dublowało */
.topbar:not(.is-scrolled):not(.is-open) .topbar__logo {
  opacity: 0;
  visibility: hidden;
}

.topbar__logo em {
  font-style: normal;
  color: var(--red);
}

.topbar__logo-img {
  display: block;
  width: 148px;
  height: 26px;
  background-color: currentColor; /* logo dziedziczy kolor paska: ink nad hero, cream po przewinięciu */
  -webkit-mask: url("../img/logo-u40.svg") no-repeat left center / contain;
  mask: url("../img/logo-u40.svg") no-repeat left center / contain;
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar__list a:not(.btn) {
  display: inline-block;
  padding: 8px 2px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 3px solid transparent;
}

.topbar__list a:not(.btn):hover,
.topbar__list a.is-active {
  border-bottom-color: var(--blue);
  color: inherit;
}

/* na kobaltowym pasku (po przewinięciu / w menu) podkreślenie na koralowo - widoczne na niebieskim */
.topbar.is-scrolled .topbar__list a:not(.btn):hover,
.topbar.is-scrolled .topbar__list a.is-active,
.topbar.is-open .topbar__list a:not(.btn):hover,
.topbar.is-open .topbar__list a.is-active {
  border-bottom-color: var(--coral);
}

.topbar__cta .btn {
  min-height: 42px;
  padding: 0.45em 1.1em;
  font-size: 0.85rem;
}

/* granatowy CTA na granatowym pasku (po przewinięciu / w menu) - odwróć na jasny, by się wyróżniał */
.topbar.is-scrolled .topbar__cta .btn--primary,
.topbar.is-open .topbar__cta .btn--primary {
  background: var(--cream);
  color: var(--blue);
}

.topbar.is-scrolled .topbar__cta .btn--primary:hover,
.topbar.is-open .topbar__cta .btn--primary:hover {
  background: var(--blue);
  color: var(--cream);
}

.topbar__burger {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.topbar__burger-box {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  width: 24px;
}

.topbar__burger-box span {
  height: 2px;
  background: currentColor;
  transition: transform var(--t-fast) var(--ease);
}

.topbar[data-topbar].is-open .topbar__burger-box span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.topbar.is-open .topbar__burger-box span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 899.98px) {
  .topbar__burger {
    display: inline-flex;
  }

  .topbar__nav {
    display: none;
  }

  .topbar.is-open .topbar__nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--blue);
    padding: 110px var(--gutter) 48px;
    overflow-y: auto;
  }

  .topbar.is-open .topbar__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }

  .topbar.is-open .topbar__list a:not(.btn) {
    font-size: 1.5rem;
    padding: 10px 0;
  }

  .topbar.is-open .topbar__cta {
    margin-top: var(--s-4);
    width: 100%;
  }

  .topbar.is-open .topbar__cta .btn {
    width: 100%;
    min-height: 52px;
    font-size: 1rem;
  }
}

/* --- HERO --------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  padding-top: 88px;
}

/* negatyw: jasne hero - tekstura dziedziczona z body (repeat na całej stronie) */
.hero--light {
  color: var(--ink);
}

.hero__grid-wrap {
  width: min(78vw, 420px);
  margin-inline: auto;
  margin-block: var(--s-4);
}

.hero__grid-wrap svg {
  width: 100%;
  height: auto;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: var(--s-6);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s-4);
  opacity: 0.92;
}

.hero__kicker::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--blue);
}

/* logo U40 w hero (zamiast tekstowego kickera) */
.hero__logo {
  display: block;
  width: clamp(220px, 56vw, 300px);
  aspect-ratio: 364 / 64;
  margin-bottom: var(--s-4);
  background-color: currentColor; /* ink na jasnym hero */
  -webkit-mask: url("../img/logo-u40.svg") no-repeat left center / contain;
  mask: url("../img/logo-u40.svg") no-repeat left center / contain;
}

.hero__title {
  font-size: clamp(2.4rem, 10.2vw, 8.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin-top: var(--s-4);
  max-width: 30rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  opacity: 0.92;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  text-transform: uppercase;
}

.hero__dot {
  opacity: 0.6;
}

/* licznik dni + przycisk programu w jednej linii pod datą i lokalizacją */
.hero__meta-extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.hero__countdown {
  display: inline-block;
  padding: 2px 12px;
  background: var(--blue);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .hero {
    flex-direction: row;
    align-items: center;
    padding-top: 72px;
  }

  .hero__content {
    padding-block: var(--s-7);
  }

  .hero__grid-wrap {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: max(calc((100vw - var(--container)) / 2 - 30px), 1.5vw);
    transform: translateY(-50%);
    width: min(46vw, 86vh);
    margin: 0;
  }
}

/* moduły siatki */
.hg-mod {
  transition: transform 760ms var(--ease), opacity 620ms var(--ease);
  will-change: transform, opacity;
}

.hero-grid--settled .hg-mod {
  transition: transform 260ms var(--ease), opacity 220ms var(--ease);
  will-change: auto;
}

.hg-mod.is-mutating {
  transform: scale(0.86);
  opacity: 0.3;
}

.hg-mod.is-hot .hg-shape {
  fill: var(--blue);
  fill-opacity: 1;
}

.hg-glow {
  opacity: 0;
  pointer-events: none;
}

.hg-shape {
  transition: fill 420ms var(--ease);
}

/* fala koralowa na diagonali: szybki rozbłysk, spokojny powrót do błękitu */
.hg-mod.is-flash .hg-shape:not(.hg-glow) {
  fill: var(--coral);
  transition-duration: 140ms;
}

/* --- Sekcje wspólne ----------------------------------------------------------- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--alt {
  border-top: 2px solid var(--ink);
}

.section-lead {
  font-size: 1.125rem;
  max-width: 44rem;
  margin-bottom: var(--s-6);
}

/* --- 01 IDEA --------------------------------------------------------------------- */

.idea__grid {
  display: grid;
  gap: var(--s-6);
}

.idea__copy p + p {
  margin-top: var(--s-4);
}

.idea__lead {
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  line-height: 1.4;
  max-width: none;
}

.idea__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tile {
  border: 2px solid var(--cream); /* sekcja Idea ma teraz pełne tło niebieskie */
  padding: var(--s-4);
  transition: border-color var(--t-fast) var(--ease);
}

.tile:hover {
  border-color: var(--coral);
}

.tile__module {
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-3);
}

.tile h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.tile p {
  font-size: 0.92rem;
  opacity: 0.85;
}

@media (min-width: 1024px) {
  .idea__grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

/* --- 02 TUTORZY --------------------------------------------------------------------- */

.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 560px) {
  .people {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .people {
    grid-template-columns: repeat(3, 1fr); /* trzech tutorów w rzędzie */
  }
}

.person {
  position: relative;
  border: 2px solid var(--ink);
  padding: var(--s-4);
  transition: border-color var(--t-fast) var(--ease);
}

/* hover-afordancja tylko na kartach rozwijanych - placeholdery „Wkrótce" są bierne */
.person[data-expandable]:hover,
.person.is-open {
  border-color: var(--blue);
}

/* nazwisko jako przycisk rozwijania - wizualnie zwykły nagłówek */
.person__toggle {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

.person__toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* hit-area: w stanie zamkniętym klikalna jest cała karta;
   po otwarciu klika się tylko nazwisko / znacznik „×" (tekst bio da się zaznaczać) */
.person:not(.is-open) .person__toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: pointer;
}

/* znacznik „+" na ćwierćkole (język plakatu); po otwarciu kreski obracają się w „ד */
.person__plus {
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 0 0 0 100%;
  transform-origin: top right;
  transition: transform var(--t-fast) var(--ease);
}

.person[data-expandable]:hover .person__plus {
  transform: scale(1.18);
}

.person__plus::before,
.person__plus::after {
  content: "";
  position: absolute;
  background: var(--cream);
  transition: transform var(--t-med) var(--ease);
}

.person__plus::before {
  left: 16px;
  top: 7px;
  width: 2px;
  height: 12px;
}

.person__plus::after {
  left: 11px;
  top: 12px;
  width: 12px;
  height: 2px;
}

.person.is-open .person__plus::before,
.person.is-open .person__plus::after {
  transform: rotate(45deg);
}

.person__photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: var(--s-3);
  background: var(--blue);
  overflow: hidden;
}

.person__photo svg {
  width: 100%;
  height: 100%;
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person__photo--initials span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  color: var(--cream);
}

.person__name {
  font-size: 1.12rem;
}

.person__role {
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6f6b69; /* szarawy, ciepły pod paletę papieru; kontrast ~5:1 na --paper */
}

.person__topic {
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.person__bio {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.82;
  max-width: none;
}

.person__more {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.82;
  max-width: 65ch;
}

.person__more p + p {
  margin-top: 10px;
}

.person--soon .person__photo {
  background: transparent; /* sam wycięty kształt na teksturze strony, bez prostokątnego tła */
  border-bottom: 0;
}

/* --- karta rozwinięta: pełny wiersz siatki ------------------------------------------- */

.person.is-open {
  grid-column: 1 / -1;
}

@media (min-width: 560px) {
  /* układ poziomy: zdjęcie po lewej, treść po prawej */
  .person.is-open {
    display: grid;
    /* kolumna zdjęcia ≈ szerokość zdjęcia w karcie zamkniętej (1/3 wiersza minus odstępy) */
    grid-template-columns: minmax(180px, calc((100% - 144px) / 3)) 1fr;
    grid-template-rows: repeat(4, auto) 1fr;
    column-gap: var(--s-6);
    align-content: start;
  }

  .person.is-open .person__photo {
    grid-row: 1 / -1;
    margin-bottom: 0;
  }

  .person.is-open .person__name {
    font-size: 1.45rem;
  }
}

/* --- 03 PROGRAM --------------------------------------------------------------------- */

.program {
  display: grid;
  gap: var(--s-6);
}

.day__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  padding-bottom: 12px;
  margin-bottom: var(--s-3);
  border-bottom: 2px solid var(--ink);
  font-size: 1.3rem;
}

.day__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.slot {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(28, 23, 23, 0.18);
}

.slot__time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  padding-top: 2px;
}

.slot h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
}

.slot p {
  margin-top: 3px;
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.85;
  max-width: none;
}

.slot--break {
  opacity: 0.6;
}

.slot--break h4 {
  font-weight: 500;
}

.day--soon .day__list {
  opacity: 0.75;
}

@media (min-width: 1024px) {
  .program {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
  }
}

/* --- 03 PROGRAM: wersja skrócona (tryb startowy) ------------------------------ */

.brief__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.brief__item {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid rgba(28, 23, 23, 0.18);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

/* punktor = trójkątny moduł w stylu plakatu */
.brief__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 14px;
  height: 14px;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.brief__item--soon {
  opacity: 0.6;
  font-weight: 500;
}

/* --- 03 PROGRAM: stan „wkrótce" (komunikat zamiast harmonogramu) -------------- */

.program--soon {
  display: block; /* reset gridu 3-kolumnowego z .program */
}

.program-soon {
  max-width: 600px;
  margin-inline: auto;
  padding-block: var(--s-6);
  text-align: center;
}

.program-soon__module {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s-4);
}

.program-soon__head {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.program-soon__text {
  margin-top: var(--s-3);
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.82;
}

/* --- 04 LOKALIZACJA --------------------------------------------------------------- */

.venues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.venue {
  border: 2px solid var(--ink); /* sekcja Lokalizacja ma teraz pełne tło koralowe */
  transition: border-color var(--t-fast) var(--ease);
}

.venue:hover,
.venue:focus-within {
  border-color: var(--blue);
}

/* cały kafelek jest linkiem do mapy miejscówek (Google My Maps) */
.venue__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--s-4);
  color: inherit;
  text-decoration: none;
}

.venue h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.venue p {
  font-size: 0.93rem;
  opacity: 0.9;
}

.venue__addr {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85; /* 0.65 dawało <4,5:1 na koralu - za mało na realny adres */
}

.venue__cta {
  margin-top: auto; /* dociśnięte do dołu - równy rytm przy kafelkach różnej wysokości */
  padding-top: var(--s-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.venue__link:hover .venue__cta,
.venue__link:focus-visible .venue__cta {
  text-decoration-color: var(--blue);
}

.venues__note {
  margin-top: var(--s-6);
  padding-left: var(--s-3);
  border-left: 4px solid var(--blue); /* akcent niebieski na koralowym tle Lokalizacji */
  max-width: 44rem;
}

.venues__map-btn {
  margin-top: var(--s-3);
  color: inherit; /* atrament zamiast globalnego koloru linków - kobalt na koralu ma za niski kontrast */
}

/* --- 05 PARTNERZY ----------------------------------------------------------- */

/* Neutralna, płaska „ściana logotypów" - najjaśniejszy krem dla czytelności logo.
   Loga leżą wprost na tle: bez ramek, bez kafelków (przyjazne brand-guides firm). */
.bg-partners {
  background: var(--cream);
  color: var(--ink);
}

/* Pionowy rytm między tierami (Organizatorzy / Główni / Partnerzy / Medialni). */
.partners {
  display: grid;
  gap: var(--s-7);
}

.partners__tier {
  display: grid;
  gap: var(--s-4);
}

/* Podnagłówek tieru - grotesk, wersaliki; cienka kreska (echo section-head__rule). */
.partners__label {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  opacity: 0.7;
}

.partners__label::after {
  content: "";
  display: block;
  width: var(--s-6);
  height: 2px;
  margin: var(--s-3) auto 0;
  background: currentColor;
  opacity: 0.35;
}

/* Rząd logotypów - wyśrodkowany, zawijany; duży odstęp = clear-space. */
.partners__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-5) var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Pojedyncze logo - czyste, bez ramki i tła; margines ochronny wokół.
   flex-basis wymusza liczbę log w rzędzie (2 na mobile, 3 na desktopie); niepełne rzędy
   są wyśrodkowane względem sekcji przez justify-content na .partners__row. */
.partner {
  flex: 0 0 calc((100% - var(--s-6)) / 2); /* max 2 loga w rzędzie (mobile) */
  min-width: 0; /* pozwól komórce zejść do flex-basis mimo szerokich log (fix overflow) */
  display: flex;
  justify-content: center; /* logo wyśrodkowane w swojej kolumnie */
  padding: var(--s-2);
}

@media (min-width: 768px) {
  .partner {
    flex-basis: calc((100% - 2 * var(--s-6)) / 3); /* max 3 loga w rzędzie (desktop) */
  }
}

.partner__logo {
  display: block;
  width: auto;
  height: auto;
  /* ogranicznik dla bardzo szerokich log (np. długie wordmarki) - żeby nie dominowały;
     wpp. wysokość jest jednolita we wszystkich tierach */
  max-width: min(374px, 100%);
  max-height: clamp(58px, 8.6vw, 86px);
  object-fit: contain;
}

/* Logo z własnym limitem szerokości (--partner-max z danych partnera) - długi, wąski wordmark
   (np. Architektura-murator) nie „chudnie" w kolumnie: dostaje szerszą komórkę pod swoją szerokość. */
.partner--wide {
  flex-basis: 100%; /* mobile: własny wiersz - czytelność wąskiego wordmarku */
}

.partner--wide .partner__logo {
  max-width: min(var(--partner-max, 374px), 100%);
}

@media (min-width: 768px) {
  .partner--wide {
    /* komórka pod szerokość loga (+ padding .partner z obu stron) */
    flex-basis: calc(var(--partner-max, 374px) + 2 * var(--s-2));
  }
}

/* Klikalne logo - subtelny feedback (opacity, nie ruch) + wyraźny focus ring. */
.partner__link {
  display: block;
  transition: opacity var(--t-fast) var(--ease);
}

.partner__link:hover {
  opacity: 0.72;
}

.partner__link:focus-visible {
  outline-offset: 4px;
}

/* Partnerzy główni - mocno wyeksponowani: podnagłówek i loga ~+44% względem pozostałych tierów
   (bazowe +20% × dodatkowe +20%). */
.partners__tier[data-tier="glowni"] .partners__label {
  font-size: 1.3rem;
}

.partners__tier[data-tier="glowni"] .partner__logo {
  max-width: min(539px, 100%);
  max-height: clamp(84px, 12.4vw, 124px);
}

/* Skrajnie szeroki wordmark w tierze głównym (np. dormakaba, proporcja ~9:1): własny limit
   z danych (--partner-max) ma pierwszeństwo nad powiększonym limitem tieru, inaczej logo
   „chudnie" do 539px mimo szerszej komórki. Wysokość i tak zostaje daleko pod max-height. */
.partners__tier[data-tier="glowni"] .partner--wide .partner__logo {
  max-width: min(var(--partner-max, 539px), 100%);
}

/* --- 05 REJESTRACJA / formularz ------------------------------------------------- */

.form-root {
  max-width: 880px;
  margin-inline: auto; /* formularz wyśrodkowany w osi sekcji */
}

.form-noscript {
  border: 2px solid var(--red-dark);
  color: var(--red-dark);
  padding: var(--s-4);
  font-weight: 600;
}

.reg {
  position: relative;
  border: 2px solid var(--ink);
  padding: clamp(20px, 4vw, 48px);
}

.reg__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.reg__progress {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.88rem;
}

.reg__step-no {
  font-weight: 700;
  color: var(--red-dark);
}

.reg__step-title {
  font-weight: 600;
}

.reg__bar {
  height: 4px;
  background: var(--red-15);
  margin-bottom: var(--s-5);
}

.reg__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 300ms var(--ease);
}

.reg__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.reg__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.reg__intro {
  margin-bottom: var(--s-5);
  font-size: 0.95rem;
  opacity: 0.85;
  max-width: none;
}

.field {
  margin-bottom: var(--s-5);
}

.field__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
  transition: border-color var(--t-fast) var(--ease);
}

.field textarea {
  resize: vertical;
}

.field__select {
  width: 100%;
  min-height: 48px;
  padding: 11px 40px 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background-color: var(--cream);
  /* strzałka SVG (--ink) zamiast natywnej, dla spójności plakatowej */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 5l5 6 5-6' fill='none' stroke='%231C1717' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease);
}

.field__select:focus-visible {
  border-color: var(--blue);
  outline-offset: 0;
}

/* Rozwijana lista - dociągnięcie kolorów do identyfikacji (krem/atrament).
   Pełny popup natywny jest renderowany przez system, ale tła/teksty opcji
   honoruje większość przeglądarek. */
.field__select option {
  background-color: var(--cream);
  color: var(--ink);
}

.field__select option:checked {
  background-color: var(--blue);
  color: var(--cream);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--blue);
  outline-offset: 0;
}

.field.is-invalid input[type="text"],
.field.is-invalid input[type="email"],
.field.is-invalid input[type="tel"],
.field.is-invalid textarea,
.field.is-invalid .field__select {
  border-color: var(--red);
}

.field__hint {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.72;
  max-width: none;
}

.field__note {
  margin: 4px 0 10px;
  font-weight: 700;
  color: var(--red-dark);
  letter-spacing: 0.01em;
  max-width: none;
}

.field__error {
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red-dark);
  max-width: none;
}

.reg__choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* Skala oceny 1-5: wszystkie warianty zawsze w jednym rzędzie, jako zwarte przyciski. */
.reg__choices--scale {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.reg__choices--scale .choice {
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 10px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.reg__choices--scale .choice__box {
  display: none;
}

@media (min-width: 768px) {
  .reg__choices {
    grid-template-columns: 1fr 1fr;
  }
  /* pola wymagające układu pionowego (np. dni udziału) - zawsze jedna kolumna */
  .reg__choices--stack {
    grid-template-columns: 1fr;
  }
  /* skala oceny pozostaje w jednym rzędzie również na desktopie */
  .reg__choices--scale {
    grid-template-columns: repeat(5, 1fr);
  }
}

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  cursor: pointer;
  font-size: 0.94rem;
  line-height: 1.35;
  transition: border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice__box {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid var(--ink);
  background: var(--cream);
}

.choice input[type="radio"] + .choice__box {
  border-radius: 50%;
}

.choice:has(input:checked) {
  border-color: var(--blue);
  background: rgba(0, 9, 255, 0.05);
}

.choice input:checked + .choice__box {
  background: var(--blue);
  box-shadow: inset 0 0 0 3px var(--cream);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.choice:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.choice:hover:not(:has(input:disabled)) {
  border-color: var(--blue);
}

/* link do PDF wpleciony w treść zgody (RODO / wizerunek) - wyróżniony w drobnym tekście */
.consent-doc {
  font-weight: 600;
}

.reg__other {
  grid-column: 1 / -1;
}

.reg__other input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
}

.reg__counter {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  opacity: 0.7;
}

.reg__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: var(--s-5);
}

.reg__hint {
  flex-basis: 100%;
  font-size: 0.875rem;
  opacity: 0.8;
  max-width: none;
}

.reg__result {
  padding-block: var(--s-4);
  padding-left: var(--s-3);
  border-left: 4px solid var(--blue);
}

.reg__result--error {
  border-left-color: var(--red);
}

.reg__result h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.reg__result--error h3 {
  color: var(--red-dark);
}

.reg__result p {
  margin-bottom: var(--s-3);
}

/* --- Stopka --------------------------------------------------------------------- */

.footer {
  padding-block: var(--s-7) var(--s-5);
}

.footer__cols {
  display: grid;
  gap: var(--s-5);
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer__head {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer__col p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer__col .footer__org {
  font-weight: 600;
  opacity: 1;
}

.footer__col .footer__reg {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 252, 246, 0.25);
  font-size: 0.8rem;
  opacity: 0.72;
  max-width: none;
}

@media (min-width: 768px) {
  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- HERO wariant B (hero-alt.html) ----------------------------------------------- */

.hero--alt .hero__grid-wrap {
  position: static;
  transform: none;
  width: 100%;
  overflow: hidden; /* bezpiecznik na czas intra; po zmianie skalowania SVG i tak nic nie wystaje */
  margin: 0 0 var(--s-5); /* oddech od sekcji Idea na każdej proporcji ekranu */
  order: 2;
}

/* Bok kwadratowej siatki ograniczony jednocześnie szerokością i wysokością okna -
   dzięki temu na proporcjach szerszych niż 1:2 (np. iPhone SE, tablety w pionie,
   landscape) siatka jest skalowana, a nie ucinana, i nie styka się z sekcją Idea. */
.hero--alt .hero__grid-wrap svg {
  width: min(88vw, 44vh, 520px);
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .hero--alt {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--s-6);
    padding-inline: var(--gutter);
  }

  .hero--alt .hero__content {
    padding-inline: 0;
    max-width: none;
  }

  .hero--alt .hero__grid-wrap {
    max-height: none;
    justify-self: end;
    width: 100%;
    max-width: min(44vw, 84vh);
    margin-block: var(--s-7);
  }

  .hero--alt .hero__grid-wrap svg {
    width: 100%;
    margin: 0;
  }
}

