/* Startup Discovery Sprint · Infopack — design Sprintu:
   liliowy, czarny Anton, latarka w rastrze, naklejki z darto papieru. */
:root {
  --peri: #b9c5ff;
  --ink: #0b0b0b;
  --soft: #3c3c46;
  --muted: #7a7d92;
  --paper: #fffdf3;
  --cream: #f6f3ea;
  --lime: #a6f893;
  --blue: #2347d6;
  --line: rgba(11, 11, 11, 0.14);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --torn: polygon(0.6% 9%, 7% 1%, 33% 4%, 58% 0%, 86% 3%, 99.4% 0.5%, 98.6% 38%, 100% 74%, 97% 100%, 66% 95%, 38% 99%, 10% 96%, 1% 100%, 1.6% 62%, 0% 33%);
  --torn2: polygon(1% 2%, 26% 4%, 54% 0.5%, 80% 3%, 100% 1%, 99% 46%, 99.6% 98%, 72% 100%, 45% 97%, 18% 100%, 0.4% 98%, 1.2% 52%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
b, strong { font-weight: 700; }
img { display: block; max-width: 100%; }

/* ---------- hero ---------- */
.hero { background: var(--peri); position: relative; overflow: hidden; }
.hero__in { max-width: 1040px; margin: 0 auto; padding: 44px 28px 40px; position: relative; z-index: 2; }
.hero__kick { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; text-decoration: none; }
.hero__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 11vw, 132px); line-height: .9; margin-top: 18px; max-width: 760px; }
.hero__title span { display: inline-block; }
.hero__lat { position: absolute; z-index: 1; right: -40px; top: 20px; width: min(42vw, 460px); filter: drop-shadow(0 14px 18px rgba(0,0,0,.2)); pointer-events: none; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
/* na podstronach hero jest niższy */
body.sub .hero__in { padding: 22px 28px 20px; }
body.sub .hero__title { font-size: clamp(30px, 5vw, 46px); margin-top: 8px; }
body.sub .hero__title span { display: inline; }
body.sub .tags { display: none; }
body.sub .hero__lat { width: min(28vw, 220px); top: -6px; right: -24px; }

/* ---------- naklejki ---------- */
.tag { display: inline-block; font-family: var(--display); text-transform: uppercase; font-size: 16px; line-height: 1; letter-spacing: .01em; padding: 9px 14px 8px; clip-path: var(--torn); background: var(--paper); color: var(--ink); text-decoration: none; white-space: nowrap; }
.tag--lime { background: var(--lime); }
.tag--peri { background: var(--peri); }
.tag--paper { background: var(--paper); }
.tag--ink { background: var(--ink); color: #fff; }
.tag--sm { font-size: 13px; padding: 7px 11px 6px; }
.tag--lg { font-size: 20px; padding: 12px 18px 11px; }
a.tag:hover { filter: brightness(.95); }

/* ---------- layout ---------- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 40px 28px 30px; }
.view { display: block; }
.js .view { display: none; }
.js .view.on { display: block; animation: in .35s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view + .view { margin-top: 64px; }
.js .view + .view { margin-top: 0; }

.H { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1; }
.lead { font-size: 20px; line-height: 1.5; }
p + p { margin-top: 12px; }
em { font-style: italic; }
.mk { background: linear-gradient(transparent 50%, var(--lime) 50%, var(--lime) 94%, transparent 94%); padding: 0 .12em; font-weight: 700; }

/* ---------- strona główna ---------- */
.intro { max-width: 720px; }
.intro__hi { font-family: var(--display); text-transform: uppercase; font-size: 34px; line-height: 1; margin-bottom: 14px; }
.intro .lead { margin-bottom: 12px; }
.motto { margin-top: 18px !important; font-size: 20px; }
.sec { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 32px; line-height: 1; margin: 52px 0 18px; padding-top: 18px; border-top: 3px solid var(--ink); }
.sec__n { font-family: var(--display); font-size: 15px; background: var(--ink); color: var(--lime); padding: 7px 10px 6px; clip-path: var(--torn); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--cream); padding: 18px 18px 20px; border-radius: 4px; transition: transform .15s ease, background .15s ease; min-height: 128px; }
.card:hover { background: var(--peri); transform: translateY(-3px); }
.card--hl { background: var(--lime); }
.card--hl:hover { background: var(--lime); }
.card__i { font-size: 26px; line-height: 1; }
.card__t { font-family: var(--display); text-transform: uppercase; font-size: 22px; line-height: 1.05; margin-top: 6px; }
.card__s { font-size: 14px; color: var(--soft); margin-top: auto; }

/* ---------- podstrony ---------- */
.pt { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 6vw, 60px); line-height: 1; margin-bottom: 26px; }
.pt small { font-size: .5em; color: var(--muted); }
.pt__i { font-size: .7em; }
.h3 { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1; margin: 40px 0 16px; }
.view > .lead { max-width: 760px; margin-bottom: 8px; }
.view > p { max-width: 760px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.fact { background: var(--cream); padding: 22px 22px 24px; }
.fact h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1.05; margin: 14px 0 10px; }
.addr { font-size: 19px; }
.btn { display: inline-block; margin-top: 16px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 16px; border-radius: 3px; }
.btn:hover { background: var(--blue); }

.checks { list-style: none; display: grid; gap: 12px; max-width: 760px; }
.checks li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 18px; }
.checks li::before { content: "✓"; width: 34px; height: 34px; display: grid; place-items: center; background: var(--lime); font-family: var(--display); font-size: 20px; clip-path: var(--torn); }
.callout { margin-top: 26px; background: var(--peri); padding: 18px 22px; font-size: 19px; max-width: 760px; clip-path: var(--torn2); }
.callout--ink { background: var(--ink); color: #fff; }

.kv { display: grid; grid-template-columns: 220px 1fr; max-width: 860px; border-top: 3px solid var(--ink); }
.kv dt, .kv dd { padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--display); text-transform: uppercase; font-size: 18px; line-height: 1.3; padding-right: 16px; }
.todo { background: #ffe9a8; padding: 0 .3em; font-weight: 700; }

.bul { list-style: none; display: grid; gap: 12px; max-width: 760px; }
.bul li { position: relative; padding-left: 26px; }
.bul li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; max-width: 760px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 16px; background: var(--ink); color: var(--lime); height: 34px; display: grid; place-items: center; clip-path: var(--torn); }
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* agenda */
.day + .day { margin-top: 40px; }
.day__h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.day__h .H { font-size: 40px; margin-right: 8px; }
.ag { max-width: 900px; }
.ag__i { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 14px 0 13px; border-top: 2px solid var(--ink); }
.ag__t { font-family: var(--display); font-size: 20px; line-height: 1.25; }
.ag__w { font-weight: 700; font-size: 17px; line-height: 1.35; }
.ag__w span { display: block; font-weight: 400; font-size: 15px; color: var(--soft); margin-top: 2px; }
.ag__w a { color: var(--blue); }
.ag__i.brk .ag__t, .ag__i.brk .ag__w { color: var(--muted); font-weight: 500; }
.ag__i.hi { background: var(--lime); border-top-color: transparent; padding-left: 14px; padding-right: 14px; margin: 0 -14px; }
.ag__i.hi + .ag__i { border-top-color: transparent; }
.ag__w .dl { display: table !important; margin-top: 8px !important; font-family: var(--display); text-transform: uppercase; font-size: 14px; color: var(--ink) !important; background: var(--peri); padding: 6px 10px 5px; clip-path: var(--torn); }

/* osoby */
.tog { margin-top: 22px; border-top: 3px solid var(--ink); }
.tog summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.tog summary::-webkit-details-marker { display: none; }
.tog summary::before { content: "▸"; font-size: 20px; transition: transform .2s; }
.tog[open] summary::before { transform: rotate(90deg); }
.tog summary .H { font-size: 32px; }
.tog__c { font-family: var(--display); font-size: 14px; background: var(--lime); padding: 5px 9px 4px; clip-path: var(--torn); }
.ppl { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding-bottom: 12px; }
.ppl--2 { margin-top: 24px; max-width: 760px; }
.person { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; background: var(--cream); padding: 18px; }
.av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 22px; background: var(--peri); }
.av--lime { background: var(--lime); }
.av--ink { background: var(--ink); color: var(--lime); }
.av--paper { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.person h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 21px; line-height: 1.1; }
.person h4 a { text-decoration: none; }
.person h4 a:hover { color: var(--blue); }
.li { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; background: var(--blue); color: #fff; font-family: var(--sans); font-weight: 800; font-size: 11px; text-transform: none; vertical-align: 2px; margin-left: 4px; }
.role { font-weight: 700; font-size: 14px; margin-top: 4px; }
.bio { font-size: 14px; color: var(--soft); margin-top: 6px !important; line-height: 1.45; }

/* formularz */
.clock { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 30px; }
.clock .H { font-size: 64px; }
.clock p { margin-top: 4px !important; }
.clock__arr { font-size: 40px; font-weight: 800; }

/* know-how */
.ab { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; max-width: 900px; }
.ab__i { background: var(--cream); padding: 20px 20px 22px; }
.ab__i h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 24px; line-height: 1.05; margin: 12px 0 8px; }
.recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 900px; }
.rec { position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--peri); padding: 18px 40px 20px 18px; clip-path: var(--torn2); transition: background .15s; }
.rec:hover { background: var(--lime); }
.rec b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 21px; line-height: 1.05; }
.rec span { font-size: 14px; color: var(--soft); }
.rec i { position: absolute; right: 16px; top: 16px; font-style: normal; font-weight: 800; }

/* rekrutacja */
.big { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; }
.big__n { font-size: clamp(80px, 14vw, 150px); color: var(--blue); }
.big > div:last-child { flex: 1; min-width: 260px; }

/* nawigacja między podstronami */
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 20px; border-top: 3px solid var(--ink); }
.pager a { font-family: var(--display); text-transform: uppercase; font-size: 18px; text-decoration: none; padding: 10px 14px 9px; clip-path: var(--torn); background: var(--cream); }
.pager a:hover { background: var(--lime); }
.pager__next { background: var(--peri) !important; }
.pager__next:hover { background: var(--lime) !important; }
[hidden] { display: none !important; }

.foot { max-width: 1040px; margin: 0 auto; padding: 24px 28px 36px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: .04em; }

/* ---------- telefon ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__in { padding: 28px 20px 26px; }
  .hero__lat { width: 52vw; right: -60px; top: 10px; opacity: .9; }
  .wrap { padding: 28px 20px 20px; }
  .lead, .motto { font-size: 18px; }
  .sec { font-size: 26px; margin-top: 40px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 14px; min-height: 118px; }
  .card__t { font-size: 18px; }
  .card__s { font-size: 12.5px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .kv dd { padding-top: 4px; }
  .ag__i { grid-template-columns: 1fr; gap: 2px; }
  .ag__t { font-size: 17px; }
  .ppl { grid-template-columns: 1fr; }
  .person { grid-template-columns: 52px 1fr; padding: 14px; }
  .av { width: 52px; height: 52px; font-size: 18px; }
  .day__h .H { font-size: 32px; }
  .clock .H { font-size: 48px; }
  .pager a { font-size: 15px; }
  .tag--lg { font-size: 17px; }
}

/* ============ wersja spokojniejsza ============ */
.hero__lat { width: min(30vw, 320px); top: 30px; right: -30px; }
.hero__title { font-size: clamp(52px, 9vw, 104px); }
.hero__meta { font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: .03em; align-self: center; }
.sec { font-size: 26px; margin: 48px 0 16px; padding-top: 16px; border-top-width: 2px; }
.card { background: transparent; border: 1.5px solid var(--line); border-radius: 2px; min-height: 104px; padding: 18px; }
.card:hover { background: var(--cream); transform: none; border-color: var(--ink); }
.card--hl, .card--hl:hover { background: transparent; }
.card__t { margin-top: 0; font-size: 21px; }
.label { font-family: var(--display); text-transform: uppercase; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.fact { background: transparent; border-top: 2px solid var(--ink); padding: 16px 0 0; }
.fact h3 { margin-top: 6px; }
.checks li::before { content: ""; width: 10px; height: 10px; margin: 9px 0 0 12px; background: var(--ink); border-radius: 50%; clip-path: none; }
.checks li { grid-template-columns: 34px 1fr; }
.callout { clip-path: none; background: var(--cream); border-left: 4px solid var(--lime); }
.steps li::before { background: transparent; color: var(--ink); clip-path: none; font-size: 20px; height: auto; place-items: start; }
.bul li::before { background: var(--ink); width: 8px; height: 8px; top: .62em; }
.lnk { font-weight: 700; color: var(--blue); }
.links { gap: 22px; }
.day__h .H { font-size: 34px; }
.day__m { font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: .03em; color: var(--muted); }
.ag__w .dl { background: var(--lime); }
.tog { border-top-width: 2px; }
.tog summary .H { font-size: 26px; }
.person { background: transparent; border-top: 1.5px solid var(--line); padding: 16px 0; grid-template-columns: 52px 1fr; }
.av { width: 52px; height: 52px; font-size: 18px; background: var(--peri); color: var(--ink); box-shadow: none; }
.li { background: transparent; color: var(--blue); width: auto; height: auto; font-size: 12px; margin-left: 6px; }
.ab__i { background: transparent; border-top: 2px solid var(--ink); padding: 14px 0 0; }
.ab__i h4 { margin-top: 0; }
.recs { gap: 0; grid-template-columns: 1fr; max-width: 760px; }
.rec { clip-path: none; background: transparent; border-top: 1.5px solid var(--line); padding: 14px 40px 14px 0; flex-direction: row; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rec:hover { background: transparent; }
.rec:hover b { color: var(--blue); }
.rec b { font-size: 19px; }
.rec i { top: 14px; right: 0; }
.big__n { color: var(--ink); }
.pager a, .pager__next { clip-path: none; background: transparent !important; padding: 8px 0; }
.pager a:hover { color: var(--blue); background: transparent !important; }
.pt { font-size: clamp(34px, 5vw, 52px); }
@media (max-width: 640px) {
  .hero__lat { width: 38vw; right: -40px; top: 14px; }
  .grid { grid-template-columns: 1fr; gap: 8px; }
  .card { min-height: 0; }
  .card__s { margin-top: 2px; }
}

/* zdjęcia osób */
.person { grid-template-columns: 96px 1fr; gap: 18px; }
.ph { width: 96px; height: 128px; object-fit: cover; display: block; }
.ph--none { display: grid; place-items: center; background: var(--peri); font-family: var(--display); font-size: 26px; }
.person h4 a:hover { color: var(--blue); }
.lnk--sm { display: inline-block; margin-top: 8px; font-size: 13px; text-decoration: none; }
.lnk--sm:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .person { grid-template-columns: 84px 1fr; }
  .ph { width: 84px; height: 112px; }
}

/* ============ czarne tło wszędzie ============ */
html[data-theme="dark"] body { background: var(--ink); color: #f4f2ea; }
html[data-theme="dark"] .hero { background: var(--ink); border-bottom: 1.5px solid rgba(255,255,255,.14); }
html[data-theme="dark"] .hero__kick, html[data-theme="dark"] .hero__meta { color: #f4f2ea; }
html[data-theme="dark"] .hero__title { color: #fff; }
html[data-theme="dark"] .hero__kick, html[data-theme="dark"] .hero__meta, html[data-theme="dark"] .label, html[data-theme="dark"] .day__m, html[data-theme="dark"] .foot { color: rgba(244,242,234,.62); }
html[data-theme="dark"] .foot { color: rgba(244,242,234,.62); }
html[data-theme="dark"] .sec, html[data-theme="dark"] .kv, html[data-theme="dark"] .tog, html[data-theme="dark"] .fact, html[data-theme="dark"] .ab__i, html[data-theme="dark"] .pager, html[data-theme="dark"] .ag__i { border-top-color: rgba(255,255,255,.85); }
html[data-theme="dark"] .card { border-color: rgba(255,255,255,.2); }
html[data-theme="dark"] .card:hover { background: #1b1b1f; border-color: var(--peri); }
html[data-theme="dark"] .card__s, html[data-theme="dark"] .ag__w span, html[data-theme="dark"] .bio, html[data-theme="dark"] .rec span { color: rgba(244,242,234,.62); }
html[data-theme="dark"] .ag__i.brk .ag__t, html[data-theme="dark"] .ag__i.brk .ag__w, html[data-theme="dark"] .pt small { color: rgba(244,242,234,.45); }
html[data-theme="dark"] .ag__i.hi { background: var(--lime); color: var(--ink); }
html[data-theme="dark"] .ag__i.hi .ag__w span { color: var(--soft); }
html[data-theme="dark"] .ag__i.hi a { color: var(--blue); }
html[data-theme="dark"] .ag__w .dl { color: var(--ink) !important; }
html[data-theme="dark"] .kv dt, html[data-theme="dark"] .kv dd, html[data-theme="dark"] .person, html[data-theme="dark"] .rec { border-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .person h4 a:hover, html[data-theme="dark"] .rec:hover b, html[data-theme="dark"] .pager a:hover { color: var(--peri); }
html[data-theme="dark"] .lnk, html[data-theme="dark"] .ag__w a, html[data-theme="dark"] .view a:not(.card):not(.btn):not(.lnk):not(.rec):not(.pager__home):not(.pager__next) { color: var(--peri); }
html[data-theme="dark"] .lnk { color: var(--peri); }
html[data-theme="dark"] .callout { background: #1b1b1f; border-left-color: var(--lime); }
html[data-theme="dark"] .checks li::before, html[data-theme="dark"] .bul li::before { background: var(--lime); }
html[data-theme="dark"] .steps li::before { color: var(--lime); }
html[data-theme="dark"] .btn { background: var(--peri); color: var(--ink); }
html[data-theme="dark"] .btn:hover { background: var(--lime); }
html[data-theme="dark"] .big__n { color: var(--lime); }
html[data-theme="dark"] .todo { background: #ffe9a8; color: var(--ink); }
html[data-theme="dark"] .ph--none { color: var(--ink); }
html[data-theme="dark"] .pager a { color: #f4f2ea; }
html[data-theme="dark"] .mk { color: var(--ink); }
html[data-theme="dark"] .view .ag__i.hi a { color: var(--ink); font-weight: 700; }

/* ============ kafelki: czytelniejsze na czarnym ============ */
.sec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border-top: 0; padding-top: 0; margin: 56px 0 18px; font-size: 30px; }
.sec__tag { align-self: center; font-size: 15px; background: var(--lime); color: var(--ink); padding: 6px 10px 5px; clip-path: var(--torn); }
.sec__sub { flex-basis: 100%; font-family: var(--sans); text-transform: none; font-size: 15px; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
html[data-theme="dark"] .sec__sub { color: rgba(244,242,234,.6); }
.grid { gap: 12px; }
.card { position: relative; border: 0; border-radius: 6px; padding: 18px 18px 18px; min-height: 140px; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.grid--peri .card { background: var(--peri); }
.grid--paper .card { background: var(--paper); }
.grid .card--hl { background: var(--lime); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.8); border-color: transparent; }
.grid--peri .card:hover { background: var(--peri); }
.grid--paper .card:hover { background: #fff; }
.grid .card--hl:hover { background: var(--lime); }
.card__n { font-family: var(--display); font-size: 14px; opacity: .45; }
.card__t { font-size: 22px; line-height: 1.05; margin-top: 4px; padding-right: 22px; }
.card__s { color: var(--soft) !important; font-size: 14px; }
.card__a { position: absolute; right: 16px; top: 14px; font-weight: 800; font-size: 18px; transition: transform .15s ease; }
.card:hover .card__a { transform: translateX(3px); }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .card { min-height: 128px; padding: 14px; }
  .card__t { font-size: 18px; }
  .sec { font-size: 24px; }
}
html[data-theme="dark"] .view .person h4 a { color: #fff; } html[data-theme="dark"] .view .person h4 a:hover { color: var(--peri); }

/* Miejsce i dojazd: jedna kolumna */
.facts { grid-template-columns: 1fr; gap: 36px; max-width: 760px; }

/* Co zabrać: zwykła lista (tekst nie rozbija się na komórki siatki) */
.checks { gap: 14px; }
.checks li { display: block; position: relative; padding-left: 30px; font-size: 18px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 10px; margin: 0; border-radius: 50%; background: var(--lime); }

/* Kroki: numer po lewej, tekst płynie normalnie */
.steps { gap: 14px; }
.steps li { display: block; position: relative; padding-left: 44px; line-height: 1.45; }
.steps li::before { position: absolute; left: 0; top: 0; height: auto; width: auto; display: block; font-size: 20px; line-height: 1.2; }


/* ============ jasny motyw: kremowe tło (domyślny CSS) — dopracowanie kafelków ============ */
html:not([data-theme="dark"]) .grid--paper .card { background: #fff; box-shadow: 0 0 0 1.5px var(--line); }
html:not([data-theme="dark"]) .grid--paper .card:hover { box-shadow: 0 0 0 1.5px var(--ink), 0 10px 24px -14px rgba(0,0,0,.35); }
html:not([data-theme="dark"]) .card:hover { box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
html:not([data-theme="dark"]) .sec__tag { background: var(--ink); color: var(--lime); }

/* ============ przełącznik motywu ============ */
.theme { position: absolute; z-index: 3; top: 18px; right: 22px; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(11,11,11,.08); border: 1.5px solid var(--ink); }
.theme button { border: 0; background: transparent; cursor: pointer; font-family: var(--display); text-transform: uppercase; font-size: 13px; letter-spacing: .04em; padding: 7px 12px 6px; border-radius: 999px; color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .theme { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.5); }
html[data-theme="dark"] .theme button { color: #f4f2ea; }
html[data-theme="dark"] .theme button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
body.sub .theme { top: 12px; }
@media (max-width: 640px) { .theme { top: 10px; right: 10px; } .theme button { font-size: 11px; padding: 6px 9px 5px; } }
html:not([data-theme="dark"]) .grid--paper .card--hl, html:not([data-theme="dark"]) .grid--paper .card--hl:hover { background: var(--lime); box-shadow: none; }

/* ============ Miejsce i dojazd: karta adresu + oś czasu ============ */
.venue { background: var(--peri); color: var(--ink); padding: 26px 28px 28px; max-width: 760px; border-radius: 6px; }
.venue .label { color: rgba(11,11,11,.6) !important; }
.venue__name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 4vw, 36px); line-height: 1.05; margin-top: 6px; }
.venue__addr { font-size: 20px; font-weight: 700; margin-top: 8px !important; }
.venue .btn { background: var(--ink); color: #fff; margin-top: 18px; }
.venue .btn:hover { background: var(--blue); }
.where { max-width: 760px; display: grid; gap: 28px; }
.where__d { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.where__d .H { font-size: 28px; }
.where__row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.where__t { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.where__p b { display: block; font-size: 18px; }
.where__p span { display: block; color: var(--soft); margin-top: 2px; }
html[data-theme="dark"] .where__d { border-bottom-color: rgba(255,255,255,.85); }
html[data-theme="dark"] .where__row { border-bottom-color: rgba(255,255,255,.14); }
html[data-theme="dark"] .where__p span { color: rgba(244,242,234,.62); }
html[data-theme="dark"] .where__t { color: var(--lime); }
@media (max-width: 640px) { .where__row { grid-template-columns: 64px 1fr; } .where__t { font-size: 20px; } }
html .venue .btn, html[data-theme="dark"] .venue .btn { background: var(--ink); color: #fff; }
html .venue .btn:hover, html[data-theme="dark"] .venue .btn:hover { background: var(--blue); color: #fff; }
.venue + .h3 { margin-top: 44px; margin-bottom: 20px; }
.venue + .where { margin-top: 40px; }
/* przełącznik zawsze czytelny, nawet na tle latarki */
.theme { background: var(--paper); }
html[data-theme="dark"] .theme { background: var(--ink); }

/* agenda na żywo */
.ag__w .now-tag { display: inline-block !important; margin: 0 0 6px !important; font-family: var(--display); text-transform: uppercase; font-size: 12px !important; letter-spacing: .06em; color: var(--ink) !important; background: #fff; padding: 4px 8px 3px; border-radius: 3px; }
.ag__i.past .ag__t, .ag__i.past .ag__w { opacity: .45; }
.ag__w .now-tag { margin: 0 8px 4px 0 !important; vertical-align: 2px; }
@media (min-width: 641px) { .grid--peri { grid-template-columns: repeat(3, 1fr); } }
#kontakt-social .links { margin-top: 0; }

/* Zostańmy w kontakcie: karty social mediów */
#kontakt-social .lead { margin-bottom: 26px; }
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; }
.soc { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 210px; padding: 22px 22px 20px; border-radius: 6px; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.soc:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -14px rgba(0,0,0,.45); }
.soc--li { background: var(--peri); }
.soc--ig { background: var(--lime); }
.soc--yt { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); }
.soc__n { font-family: var(--display); text-transform: uppercase; font-size: 38px; line-height: 1; }
.soc__h { font-weight: 700; font-size: 15px; opacity: .75; }
.soc__d { font-size: 15px; line-height: 1.45; margin-top: 6px; }
.soc__a { margin-top: auto; padding-top: 14px; font-family: var(--display); text-transform: uppercase; font-size: 15px; letter-spacing: .03em; }
html[data-theme="dark"] .soc--yt { background: var(--paper); color: var(--ink); box-shadow: none; }
#kontakt-social .callout { margin-top: 30px; }
@media (max-width: 640px) { .socials { grid-template-columns: 1fr; } .soc { min-height: 0; } .soc__n { font-size: 30px; } }
html .view a.soc, html[data-theme="dark"] .view a.soc { color: var(--ink); }
html:not([data-theme="dark"]) .view a.soc--yt { color: #fff; }

/* =====================================================================
   RUNDA ZMIAN Z DOKUMENTU
   ===================================================================== */

/* --- jasny motyw: strona główna fioletowa, podstrony kremowe bez paska --- */
html:not([data-theme="dark"]) body:not(.sub) { background: var(--peri); }
html:not([data-theme="dark"]) body:not(.sub) .hero { border-bottom: 0; }
html:not([data-theme="dark"]) body:not(.sub) .sec__sub,
html:not([data-theme="dark"]) body:not(.sub) .foot { color: rgba(11,11,11,.6); }
html:not([data-theme="dark"]) body.sub { background: var(--paper); }
html:not([data-theme="dark"]) body.sub .hero { background: var(--paper); border-bottom: 1.5px solid var(--line); }

/* --- kafelki: 4 w rzędzie w obu sekcjach --- */
@media (min-width: 641px) { .grid--peri { grid-template-columns: repeat(4, 1fr); } }

/* --- kafelki: kolory + hover, przy którym tekst zawsze jest widoczny --- */
/* jasny (fioletowe tło strony): sekcja 1 czarna, sekcja 2 kremowa, agenda limonkowa */
html:not([data-theme="dark"]) .grid--peri .card { background: var(--ink); color: #fff; box-shadow: none; }
html:not([data-theme="dark"]) .grid--peri .card .card__s { color: rgba(255,255,255,.7) !important; }
html:not([data-theme="dark"]) .grid--paper .card { background: var(--paper); color: var(--ink); box-shadow: none; }
html:not([data-theme="dark"]) .grid .card--hl { background: var(--lime); color: var(--ink); }
html:not([data-theme="dark"]) .grid .card:hover { background: #fff; color: var(--ink); box-shadow: 0 12px 26px -14px rgba(0,0,0,.45); }
html:not([data-theme="dark"]) .grid .card:hover .card__s { color: var(--soft) !important; }
html:not([data-theme="dark"]) .grid--peri .card:hover { background: var(--lime); }
/* ciemny: sekcja 1 liliowa, sekcja 2 kremowa, agenda limonkowa */
html[data-theme="dark"] .grid .card { color: var(--ink); border: 0; }
html[data-theme="dark"] .grid .card:hover { background: #fff; color: var(--ink); }
html[data-theme="dark"] .grid--peri .card:hover { background: var(--lime); }
html[data-theme="dark"] .grid .card--hl:hover { background: var(--peri); }
.grid .card:hover .card__t, .grid .card:hover .card__n, .grid .card:hover .card__a { color: inherit; }

/* --- agenda: klikalne nazwiska + okienko --- */
.hint { color: var(--muted); font-size: 15px; margin: -14px 0 18px; }
html[data-theme="dark"] .hint { color: rgba(244,242,234,.55); }
.who { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.who:hover { color: var(--blue); text-decoration-style: solid; }
html[data-theme="dark"] .who:hover { color: var(--peri); }
.ag__i.hi .who:hover { color: var(--ink); }
.noscroll { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(11,11,11,.55); backdrop-filter: blur(4px); animation: in .2s ease both; }
.modal__card { position: relative; width: min(640px, 100%); max-height: 90vh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: 8px; padding: 28px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.modal__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; }
.mp { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: start; }
.mp__ph { width: 160px; height: 213px; object-fit: cover; display: grid; place-items: center; background: var(--peri); font-family: var(--display); font-size: 40px; }
.mp__n { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1.05; padding-right: 30px; }
.mp .role { font-size: 15px; margin-top: 6px; }
.mp__b { margin-top: 12px !important; color: var(--soft); line-height: 1.55; }
.mp .lnk { display: inline-block; margin-top: 14px; color: var(--blue); }
@media (max-width: 560px) { .mp { grid-template-columns: 1fr; } .mp__ph { width: 120px; height: 160px; } }

/* --- mentorzy: co przegadać --- */
.talk { max-width: 860px; margin: 22px 0 8px; padding: 22px 24px; border-radius: 6px; background: var(--lime); color: var(--ink); }
.talk__h { font-family: var(--display); text-transform: uppercase; font-size: 24px; line-height: 1.1; }
.talk__h span { display: block; font-size: 16px; opacity: .65; margin-top: 4px; }
.talk__l { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-top: 16px; }
.talk__l li { position: relative; padding-left: 20px; font-size: 16px; }
.talk__l li::before { content: "→"; position: absolute; left: 0; font-weight: 800; }
@media (max-width: 640px) { .talk__l { grid-template-columns: 1fr; } }

/* --- spotkania: 3 fakty + karty przygotowania --- */
.facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 980px; margin-top: 24px; }
.f3 { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 6px; background: var(--peri); color: var(--ink); }
.f3 .label { color: rgba(11,11,11,.6) !important; }
.f3 b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 22px; line-height: 1.1; }
.f3 span:last-child { font-size: 14px; color: var(--soft); }
.prep { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; max-width: 980px; }
.prep__i { padding: 18px 20px 20px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1.5px var(--line); }
.prep__n { font-family: var(--display); font-size: 14px; color: var(--muted); }
.prep__i h4 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 21px; line-height: 1.1; margin: 4px 0 8px; }
.prep__i p { font-size: 15px; line-height: 1.5; color: var(--soft); }
html[data-theme="dark"] .prep__i { background: #17171b; box-shadow: 0 0 0 1.5px rgba(255,255,255,.12); }
html[data-theme="dark"] .prep__i p { color: rgba(244,242,234,.7); }
html[data-theme="dark"] .prep__n { color: var(--lime); }
@media (max-width: 640px) { .facts3 { grid-template-columns: 1fr; } }

/* --- formularz --- */
.formbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; max-width: 980px; margin-top: 24px; padding: 24px 26px; border-radius: 6px; background: var(--peri); color: var(--ink); }
.formbox .clock { margin: 0; }
.formbox .clock p { color: var(--ink); }
.formbox__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.formbox__note { font-size: 14px; color: rgba(11,11,11,.7); }
html .formbox .btn--form { background: var(--ink); color: #fff; font-size: 17px; padding: 14px 20px; }
html .formbox .btn--form.is-off { background: rgba(11,11,11,.18); color: rgba(11,11,11,.55); cursor: not-allowed; }

/* --- miesiąc online: karty sesji --- */
.sess { display: grid; grid-template-columns: 170px 1fr; gap: 24px; max-width: 980px; padding: 26px 0; border-top: 2px solid var(--ink); }
html[data-theme="dark"] .sess { border-top-color: rgba(255,255,255,.85); }
.sess__when .H { display: block; font-size: 44px; }
.sess__when span:last-child { display: block; margin-top: 6px; font-weight: 700; font-size: 14px; }
.sess__body h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1.08; margin: 4px 0 12px; }
.sess__body > p { max-width: 720px; }
.sess__body .steps--sm { margin-top: 14px; }
.small-note { font-size: 14px; color: var(--muted); margin-top: 12px !important; }
.sess--soon { opacity: .6; }
.sess--soon .sess__when .H { font-size: 28px; }
.sess--soon h3 { margin: 0; font-size: 22px; }
.spk { margin-top: 18px; }
.spk .person { background: var(--cream); border-radius: 6px; padding: 16px; border: 0; }
html[data-theme="dark"] .spk .person { background: #17171b; }
@media (max-width: 640px) { .sess { grid-template-columns: 1fr; gap: 6px; } .sess__when .H { font-size: 34px; } }

/* --- MD Fellowship: zdjęcia --- */
.mdphotos { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 170px 170px; gap: 8px; max-width: 980px; margin: 26px 0 8px; }
.mdphotos img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.mdphotos img:first-child { grid-row: span 2; }
.mdphotos img:nth-child(4) { grid-column: span 2; }
#rekrutacja .btn { margin-top: 20px; }
@media (max-width: 640px) { .mdphotos { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 120px 120px; } .mdphotos img:first-child { grid-column: span 2; grid-row: auto; } .mdphotos img:nth-child(4) { grid-column: span 2; } }
html[data-theme="dark"] .view .person h4 a:not(:hover) { color: #fff; }
/* agenda: podświetlony wiersz zawsze czarnym tekstem (też w dark mode) */
html .view .ag__i.hi, html .view .ag__i.hi .ag__t, html .view .ag__i.hi .ag__w, html .view .ag__i.hi .ag__w span, html .view .ag__i.hi .who, html .view .ag__i.hi a { color: var(--ink) !important; opacity: 1; }
html .view .ag__i.hi .ag__w span { color: #2e2e36 !important; }
/* social media w dark mode: czytelny tekst na kartach */
html[data-theme="dark"] .view a.soc, html[data-theme="dark"] .view a.soc span { color: var(--ink) !important; }
html[data-theme="dark"] .view a.soc--yt { background: var(--paper); }
