/* Human Hub – wspólne style strony. Kolory, krój i odstępy z design systemu „Human Hub”. */
/* Układ: jasna, ciepła strona; czerwień fundacji prowadzi, kolory tematów tylko na kartach. */
:root {
  --red: #a8322a;
  --red-dark: #7e241e;
  --red-deep: #5e1f1a;
  --red-tint: #f6e3df;
  --red-text: #4a2420;
  --nat-surface: #f3f6f1;
  --nat-mid: #c5d0c1;
  --nat-light: #e4eae1;
  --nat-ink: #4d6249;
  --tech-surface: #f3f5f8;
  --tech-mid: #c2cad6;
  --tech-light: #e3e7ed;
  --tech-ink: #45536b;
  --page: #faf8f5;
  --white: #ffffff;
  --ink: #26221f;
  --muted: #5a554e;
  --on-dark: #cfc7c1;
  --line: #ece6e1;

  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 20px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --content: 1200px;
  --gutter: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

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

h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 520px) { :root { --gutter: 16px; } }

.section { padding-block: var(--space-7); }
.section--white { background: var(--white); }
.section__head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 46rem; margin-bottom: var(--space-5); }
.h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.15; }
.lead { font-size: clamp(18px, 2.2vw, 20px); line-height: 1.55; color: var(--muted); max-width: 36rem; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-dark); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; justify-content: space-between; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo span { font-size: 21px; font-weight: 300; letter-spacing: 0.01em; }
.nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); font-weight: 600; box-shadow: inset 0 -2px 0 var(--red); }
.nav .btn { padding: 10px 18px; }
.nav .btn--primary, .nav .btn--primary:hover { color: var(--white); }
.nav .btn:hover { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 13px 24px;
  font: 500 16px/1.2 var(--font);
  text-decoration: none; text-align: center; cursor: pointer;
  border-radius: var(--radius-pill); border: 1.5px solid var(--red);
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--red); }
.btn--secondary:hover { background: var(--red-tint); color: var(--red-dark); }
.btn--card { border-radius: var(--radius-sm); width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) var(--space-7); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-6); align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1; letter-spacing: -0.01em; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--red); }
.hero__art { position: relative; aspect-ratio: 1; max-width: 100%; }
.hero__photo {
  position: absolute; inset: 0 0 0 8%;
  border-radius: var(--radius-lg);
  background: var(--nat-light);
  display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
  color: var(--nat-ink); font-size: 15px;
}
.hero__disc {
  position: absolute; left: 0; bottom: 10%; width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
}
.hero__disc svg { width: 46%; height: 46%; }
.hero__dot { position: absolute; right: -2%; top: 14%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: var(--tech-mid); }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { max-width: 420px; width: 100%; margin-inline: auto; }
}

/* ---------- Kroki (Doświadczaj – Działaj – Rozwijaj się) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); border-top: 2px solid var(--line); }
.step:first-child { border-top-color: var(--red); }
.step__num { font-size: 14px; font-weight: 600; color: var(--red-dark); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 26px; line-height: 1.2; }
.step p { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }

/* ---------- Karty narzędzi (warsztaty, e-booki, zestawy) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-4); }
.card { border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card--eco { background: var(--nat-surface); --c-img: var(--nat-mid); --c-img-soon: var(--nat-light); --c-ink: var(--nat-ink); }
.card--tech { background: var(--tech-surface); --c-img: var(--tech-mid); --c-img-soon: var(--tech-light); --c-ink: var(--tech-ink); }
.card__img { aspect-ratio: 16 / 10; background: var(--c-img); color: var(--c-ink); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.card--soon .card__img { background: var(--c-img-soon); }
.card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex-grow: 1; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink); }
.title-link { color: inherit; text-decoration: none; }
.title-link:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.more-link { font-size: 15px; font-weight: 500; color: var(--red); text-underline-offset: 3px; }
.card__cta { display: flex; flex-direction: column; gap: var(--space-3); }

/* ---------- Strona szczegółów warsztatu ---------- */
.detail { padding-block: var(--space-6) var(--space-7); }
.detail__head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 46rem; margin-bottom: var(--space-5); }
.detail__head h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
.back-link { font-size: 15px; color: var(--muted); text-decoration: none; margin-bottom: var(--space-2); }
.back-link:hover { color: var(--red); }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--space-6); align-items: start; }
.detail__body { gap: var(--space-3); }
.detail__body h2 { font-size: 22px; margin-top: var(--space-4); color: var(--ink); }
.detail__body h3 { font-size: 18px; margin-top: var(--space-2); }
.subtitle { font-size: 20px; color: var(--red-dark); margin-top: -4px; }
.detail__body ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--space-2); }
.detail__body p, .detail__body li { font-size: 17px; line-height: 1.6; }
.detail__box { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.detail__box.card--eco { background: var(--nat-surface); }
.detail__box.card--tech { background: var(--tech-surface); }
.detail__price { font-size: 34px; font-weight: 600; line-height: 1.1; }
.facts { margin: var(--space-2) 0; display: flex; flex-direction: column; }
.facts div { display: flex; justify-content: space-between; gap: var(--space-3); padding-block: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.detail__missing { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
@media (max-width: 900px) {
  .detail__grid { grid-template-columns: minmax(0, 1fr); }
  .detail__box { position: static; order: -1; }
}
/* ---------- Poradnik chroniony hasłem ---------- */
.guide { background: var(--nat-surface); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 340px); gap: var(--space-5); align-items: center; }
.guide__thumb { width: 84px; height: 110px; border-radius: 10px; background: var(--nat-mid); display: flex; align-items: flex-end; justify-content: flex-start; padding: 10px; position: relative; overflow: hidden; }
.guide__thumb::before { content: ""; position: absolute; right: -14px; top: -14px; width: 48px; height: 48px; border-radius: 50%; background: var(--red); }
.guide__thumb span { font-size: 13px; font-weight: 600; color: var(--nat-ink); position: relative; }
.guide__text { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
@media (max-width: 900px) { .guide { grid-template-columns: auto minmax(0, 1fr); } .guide .pdf-lock { grid-column: 1 / -1; } }
@media (max-width: 480px) { .guide { grid-template-columns: minmax(0, 1fr); } .guide__thumb { display: none; } }
.pdf-lock { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.pdf-lock label { font-size: 15px; font-weight: 500; }
.pdf-lock input[type="password"] { flex: 1 1 160px; min-width: 0; min-height: 48px; font: 400 16px var(--font); padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid #d8d1ca; background: var(--white); color: var(--ink); }
.pdf-lock .btn { border-radius: var(--radius-sm); }
.pdf-lock .form__status { color: var(--red-dark); font-size: 14px; }

/* ---------- Formularz zapisów ---------- */
.signup-form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 640px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 15px; font-weight: 500; padding: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.signup-form input[type="text"], .signup-form input[type="email"], .signup-form input[type="tel"], .signup-form select, .signup-form textarea {
  width: 100%; min-height: 48px; font: 400 16px var(--font); padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid #d8d1ca; background: var(--white); color: var(--ink);
}
.signup-form textarea { resize: vertical; }
.choice, .check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; font-weight: 400 !important; cursor: pointer; padding-block: 6px; }
.choice input, .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.choice em { font-style: normal; color: var(--muted); }
.check { font-size: 14px; color: var(--muted); }
.signup-form .btn { align-self: flex-start; }
.price-note { font-size: 14px; line-height: 1.4; color: var(--muted); }
.cycle { font-size: 14px; color: var(--muted); margin-top: -4px; }
.program { font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.program span { font-weight: 500; }
.program ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.card h3 { font-size: 20px; line-height: 1.25; }
.card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.card__meta { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.card__price { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); margin-top: var(--space-1); }
.card__price b { font-size: 20px; font-weight: 600; }
.card__price span { font-size: 13px; color: var(--red-dark); }
.card__cta { margin-top: auto; padding-top: var(--space-3); }

/* Wersja szeroka (zakładka Warsztaty) */
.list { display: flex; flex-direction: column; gap: var(--space-4); }
.wide { border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.wide .card__img { aspect-ratio: auto; min-height: 220px; }
.wide__body { padding: var(--space-5); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: var(--space-5); align-items: center; }
.wide__main { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.wide h2 { font-size: 24px; line-height: 1.25; }
.wide p { color: var(--muted); font-size: 16px; }
.wide__facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.wide__side { display: flex; flex-direction: column; gap: var(--space-2); }
.wide__side b { font-size: 26px; font-weight: 600; }
.wide__side .seats { font-size: 14px; color: var(--red-dark); }
@media (max-width: 860px) {
  .wide { grid-template-columns: minmax(0, 1fr); }
  .wide .card__img { min-height: 180px; }
  .wide__body { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); gap: var(--space-4); }
}

.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.chip { font: 500 15px/1 var(--font); padding: 12px 18px; min-height: 44px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.empty { border-radius: var(--radius-lg); background: var(--tech-surface); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.empty .tag { --c-ink: var(--tech-ink); }

/* ---------- Tematy narzędzi ---------- */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.topic { border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.topic--eco { background: var(--nat-surface); --c-ink: var(--nat-ink); --c-mid: var(--nat-mid); }
.topic--tech { background: var(--tech-surface); --c-ink: var(--tech-ink); --c-mid: var(--tech-mid); }
.topic h3 { font-size: 26px; line-height: 1.2; }
.topic p { color: var(--muted); }
.tools { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; }
.tools li { display: flex; justify-content: space-between; gap: var(--space-3); padding-block: 12px; border-top: 1px solid var(--c-mid); font-size: 16px; }
.tools li span:last-child { color: var(--c-ink); font-size: 14px; font-weight: 500; }
@media (max-width: 760px) { .topics { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Zapis na nowości ---------- */
.signup { background: var(--red-tint); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.signup h2 { color: var(--red-deep); font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; }
.signup p { color: var(--red-text); }
.signup__text { display: flex; flex-direction: column; gap: var(--space-3); }
.form { display: flex; flex-direction: column; gap: var(--space-2); }
.form label { font-size: 15px; font-weight: 500; color: var(--red-text); }
.form__row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.form input[type="email"] { flex: 1 1 220px; min-width: 0; min-height: 48px; font: 400 16px var(--font); padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid #d9b8b2; background: var(--white); color: var(--ink); }
.form .btn { border-radius: var(--radius-sm); }
.form small { font-size: 13px; color: var(--red-text); }
.form small a { color: var(--red-dark); }
.form__status { font-size: 15px; font-weight: 500; color: var(--red-deep); min-height: 1.4em; }
@media (max-width: 760px) { .signup { grid-template-columns: minmax(0, 1fr); } }

/* ---------- O fundacji ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
.about__text { display: flex; flex-direction: column; gap: var(--space-4); max-width: 34rem; }
.about__text p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.about { align-items: center; }
/* Grafika ilustracyjna: kolory fundacji i obu tematów, kształty z promieni systemu */
.about__art { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.shape { position: absolute; }
.shape--red { left: 0; top: 0; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.shape--nat { right: 0; top: 8%; width: 46%; height: 50%; border-radius: var(--radius-lg); background: var(--nat-mid); }
.shape--tech { left: 6%; bottom: 0; width: 52%; height: 44%; border-radius: var(--radius-lg); background: var(--tech-mid); }
.shape--tint { right: 4%; bottom: 6%; width: 32%; aspect-ratio: 1; border-radius: var(--radius-md); background: var(--red-tint); }
.shape--dots { right: 12%; top: 18%; width: 24%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10%; }
.shape--dots i { aspect-ratio: 1; border-radius: 50%; background: var(--nat-surface); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.person { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.person__photo { aspect-ratio: 1; border-radius: var(--radius-md); background: var(--red-tint); color: var(--red-dark); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.person h3 { font-size: 20px; margin-top: var(--space-2); }
.person .role { font-size: 14px; color: var(--red-dark); }
.person p { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .people { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Jak się zapisać / FAQ ---------- */
.howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.howto li { display: flex; flex-direction: column; gap: var(--space-2); }
.howto .n { width: 44px; height: 44px; border-radius: 50%; background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 18px; }
.howto h3 { font-size: 19px; }
.howto p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .howto { grid-template-columns: minmax(0, 1fr); } }

.faq { display: flex; flex-direction: column; gap: var(--space-3); max-width: 52rem; }
.faq details { background: var(--white); border-radius: var(--radius-md); padding: 18px 22px; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 500; list-style-position: outside; }
.faq details p { margin-top: var(--space-2); color: var(--muted); }

/* ---------- Podstrona tekstowa ---------- */
.prose { max-width: 44rem; display: flex; flex-direction: column; gap: var(--space-4); }
.prose h2 { font-size: 24px; margin-top: var(--space-4); }
.prose p, .prose li { color: var(--muted); }

/* ---------- Landing z przepisami ---------- */
.recipes { padding-block: var(--space-6); }
.recipes__inner { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-5); }
.download { background: var(--nat-surface); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.download__file { display: flex; gap: var(--space-4); align-items: center; }
.download__thumb { width: 64px; height: 84px; flex-shrink: 0; border-radius: 8px; background: var(--nat-mid); color: var(--nat-ink); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.download .btn { border-radius: var(--radius-sm); }
.mini { display: flex; flex-direction: column; gap: var(--space-3); }

/* ---------- Stopka ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding-block: var(--space-6) var(--space-5); margin-top: var(--space-7); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.footer .logo, .footer .logo:hover { color: var(--white); }
.footer h2 { font-size: 16px; color: var(--white); margin-bottom: var(--space-2); }
.footer p, .footer li { font-size: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer a { color: #f1ece8; }
.footer a:hover { color: var(--white); }
.footer__bottom { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid #45403b; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: 14px; }
.footer__bottom span { color: #9c948d; }
.copy { user-select: all; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.hero__photo { padding: 0; overflow: hidden; }
.card__img { overflow: hidden; }
.card__img svg, .hero__photo svg { display: block; }
