/* =========================================================
   FUNDACJA SOLIDA — arkusz stylów
   ========================================================= */

/* Inter — hostowana lokalnie (27.09.2026). Wcześniej ładowana z Google
   Fonts, co przy każdej wizycie przekazywało adres IP odwiedzającego do
   Google. Teraz strona nie wysyła żadnych zapytań do zewnętrznych serwerów. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-400-normal.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;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.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: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-500-normal.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: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.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: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-600-normal.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: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.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: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-700-normal.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: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-700-normal.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;
}

/* Playfair Display — hostowana lokalnie. Zamiennik dla Fraunces: ta
   ostatnia ma w swoim kroju (nie w jakimś "wariancie" czy błędzie ładowania,
   tylko po prostu w samym projekcie liter) bardzo ozdobne, staroświeckie
   "j" ze zdobną łączącą kreską — nie do naprawienia przez CSS, bo to
   celowy element tego fontu. Playfair Display ma tę samą "klasę" (elegancki,
   wysokokontrastowy szeryfowy display), ale ze zwyczajnymi, czytelnymi
   literami. */
@font-face {
  font-family: "PlayfairDisplayLocal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/playfair-display-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "PlayfairDisplayLocal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/playfair-display-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PlayfairDisplayLocal";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/playfair-display-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "PlayfairDisplayLocal";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/playfair-display-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PlayfairDisplayLocal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/playfair-display-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "PlayfairDisplayLocal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0c2547;
  --navy-dark: #081a35;
  --blue: #4d76ad;
  --coral: #e8734a;
  --coral-dark: #d15f38;
  --cream: #faf8f6;
  --grey-100: #f4f5f7;
  --grey-200: #e9ebef;
  --grey-500: #6b7280;
  --text: #1c2333;
  --radius: 6px;
  --max-width: 1180px;
  --font-head: "PlayfairDisplayLocal", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #ffffff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy);
}

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--navy);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 6px;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
}
.section-head { text-align: center; margin-bottom: 30px; }
.section-head .eyebrow::after { left: 50%; transform: translateX(-50%); }
.section-head .lead { color: var(--grey-500); max-width: 560px; margin: 0 auto; }

/* Odstępy między sekcjami zmniejszone o ok. 40% na wyraźną prośbę klienta
   (było 56px/40px na mobile) — dotyczy całej strony (reguła generyczna
   "section"), bo klient zgłosił, że przerwy "wyglądają jakby strona się
   kończyła". Jeśli dla konkretnej sekcji nadal za dużo, patrz też
   .cta-strip gap i margin-top przycisków "Zobacz więcej" w index.php. */
section { padding: 34px 0; }
@media (max-width: 720px) { section { padding: 24px 0; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--grey-200); }
.btn-outline:hover { border-color: var(--navy); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); }
.btn-pill { border-radius: 999px; }

/* =========================== HEADER =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--grey-200);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 48px; height: auto; } /* powiększone o ~40% (było 34px) */
.logo-text { font-family: var(--font-head); line-height: 1.05; }
.logo-text .line1 { display: block; font-size: 1.02rem; font-weight: 700; color: var(--navy); letter-spacing: 0.03em; }
.logo-text .line2 { display: block; font-size: 1.02rem; font-weight: 700; color: var(--coral); letter-spacing: 0.03em; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
}
.main-nav a:hover { color: var(--coral); }

.main-nav a.lang-switch {
  border: 1.5px solid var(--grey-200);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--navy);
}
.main-nav a.lang-switch:hover { border-color: var(--coral); color: var(--coral); }
.lang-switch-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 24px; }
.btn-support {
  background: var(--navy);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-support:hover { background: var(--navy-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 11px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-8px) rotate(-45deg); }

/* =========================== HERO =========================== */
.hero {
  position: relative;
  background: #ffffff;
  overflow: hidden;
  padding: 0;
}
.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  background-size: cover;
  background-position: 62% center;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.05) 26%, rgba(255,255,255,0) 46%);
}
.hero-visual-head {
  position: absolute;
  top: 50%;
  left: 58%;
  transform: translate(-50%, -50%);
  width: 58%;
  max-width: 520px;
  height: auto;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 84px;
  padding-bottom: 50px; /* było 84px — zmniejszone, żeby nie stwarzać wrażenia końca strony */
}
.hero-copy { max-width: 540px; }
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  margin-bottom: 0.2em;
}
.hero h1 .l2 { color: var(--blue); }
.hero h1 .l3 { color: var(--coral); }
.hero .lead {
  color: var(--grey-500);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 2em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================== IDEA / 3 COL =========================== */
.idea-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  text-align: center;
}
.idea-grid > div { flex: 1 1 240px; max-width: 300px; }
.idea-grid figure { margin: 0 0 20px; }
.idea-grid img { width: 96px; height: auto; margin: 0 auto; display: block; }
.idea-grid h2, .idea-grid h3 { font-size: 1.05rem; letter-spacing: 0.02em; margin-bottom: 12px; }
.idea-grid p { color: var(--grey-500); font-size: 0.94rem; margin: 0 auto; }

/* =========================== MISJA =========================== */
.mission { background: var(--cream); }
.mission .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.mission h2 { font-size: 1.7rem; }
.mission p { color: var(--grey-500); }
.mission-copy, .mission-visual { min-width: 0; }
/* Drzewo w sekcji „O fundacji”.
   Na telefonie/tablecie (<= 980px): zwykły obrazek, max 294px.
   Na komputerze js/script.js (fitMissionTree) dopasowuje wysokość drzewa
   dokładnie do bloku tekstu: wierzchołek = pierwsza linijka, podstawa =
   ostatnia linijka akapitów (02.10.2026). Bez JS zostaje rozmiar z tej reguły. */
.mission-visual img { max-width: min(294px, 70%); height: auto; margin: 0 auto; }
@media (min-width: 981px) {
  .mission.is-fitted .mission-visual { align-self: start; }
  .mission.is-fitted .mission-visual img { max-width: 100%; width: auto; }
}

/* =========================== PRACUJEMY (cards) =========================== */
.work-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.work-card {
  display: block;
  flex: 1 1 260px;
  max-width: 340px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.work-card:hover { box-shadow: 0 12px 28px rgba(22,39,77,0.08); transform: translateY(-2px); }
.work-card img { width: 64px; height: auto; margin: 0 auto 20px; display: block; }
.work-card h3 { font-size: 1rem; margin-bottom: 12px; color: var(--navy); }
.work-card p { color: var(--grey-500); font-size: 0.92rem; margin-bottom: 4px; }
.work-card .work-link { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--coral); margin-top: 8px; }
.status-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coral);
}

/* =========================== WIEDZA =========================== */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
/* Gdy opublikowane są tylko 1-2 artykuły, karty zachowują swój rozmiar i są
   wyśrodkowane, zamiast zostawiać pustą kolumnę po prawej (27.09.2026). */
@media (min-width: 981px) {
  .knowledge-grid:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2, calc((100% - 52px) / 3)); justify-content: center; }
  .knowledge-grid:has(> :last-child:nth-child(1)) { grid-template-columns: calc((100% - 52px) / 3); justify-content: center; }
}
.article-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.article-card .body { padding: 18px; }
.article-card h3 { font-size: 1rem; margin-bottom: 8px; }
.article-card p { color: var(--grey-500); font-size: 0.88rem; margin-bottom: 10px; }
.article-card .read-more { font-size: 0.82rem; font-weight: 700; color: var(--coral); }
.article-card.placeholder .body { color: var(--grey-500); }
.article-card.placeholder h3 { color: var(--navy); }
.category-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--coral); text-transform: uppercase; margin-bottom: 6px;
}

/* =========================== CTA STRIP =========================== */
.cta-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.cta-box { border-radius: 10px; padding: 44px; }
.cta-box.dark { background: var(--navy); color: #fff; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.cta-box.dark img { width: 84px; height: auto; border-radius: 10px; }
.cta-box.dark h3 { color: #fff; }
.cta-box.dark p { color: #cbd4e6; font-size: 0.94rem; }
.cta-box.light { background: var(--grey-100); text-align: left; }
.cta-box.light img { width: 72px; height: auto; margin-bottom: 18px; }
.cta-box.light h3 { margin-bottom: 10px; }
.cta-box.light p { color: var(--grey-500); font-size: 0.94rem; }

/* =========================== NEWSLETTER (na stronie głównej) =========================== */
.newsletter-section { padding: 0 0 88px; }
.newsletter-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--grey-100);
  border-radius: 16px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-box .icon {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.newsletter-box .icon svg { width: 26px; height: 26px; }
.newsletter-copy { flex: 1 1 260px; }
.newsletter-copy h2 { font-size: 1.25rem; margin-bottom: 4px; }
.newsletter-copy p { margin: 0; color: var(--grey-500); font-size: 0.92rem; }
.newsletter-form-wrap { flex: 1 1 300px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 180px;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--grey-200);
  font-family: inherit; font-size: 0.9rem; background: #fff;
}
.newsletter-form button {
  padding: 12px 24px; border-radius: 999px; border: none; background: var(--coral);
  color: #fff; font-weight: 600; font-size: 0.85rem; cursor: pointer; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--coral-dark); }
.newsletter-msg { margin: 10px 0 0; font-size: 0.85rem; }
.newsletter-msg.ok { color: #1e7a4a; }
.newsletter-msg.err { color: #b3261e; }
@media (max-width: 700px) {
  .newsletter-box { padding: 32px 24px; text-align: center; justify-content: center; }
  .newsletter-box .icon { margin: 0 auto; }
}

/* =========================== FOOTER =========================== */
.site-footer { background: var(--navy); color: #cbd4e6; padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-col-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-logo img { width: 51px; height: auto; }
.footer-logo .line1 { display: block; font-size: 0.85rem; font-weight: 700; color: #fff; }
.footer-logo .line2 { display: block; font-size: 0.85rem; font-weight: 700; color: var(--coral); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; }
.footer-links a { font-size: 0.85rem; color: #cbd4e6; }
.footer-links a:hover { color: #fff; }
.footer-admin-link { opacity: 0.55; font-size: 0.74rem; }
.footer-admin-link:hover { opacity: 0.9; }

.footer-legal-row { padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.12); text-align: center; }
.footer-legal { margin: 0; font-size: 0.76rem; color: rgba(255,255,255,0.5); letter-spacing: 0.02em; }
.footer-status { margin: 8px auto 0; max-width: 760px; line-height: 1.5; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: left; }
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 980px) {
  .hero-visual { position: relative; width: 100%; height: 260px; }
  .hero-visual::before { background: linear-gradient(0deg, #ffffff 0%, rgba(255,255,255,0) 40%); }
  /* Duże logo/ilustracja (głowa z siecią neuronów) idealnie na środku —
     na desktopie ".hero-visual" to tylko prawa część hero (stąd
     "left:58%" w bazowej regule .hero-visual-head), ale tutaj, na mobile,
     ".hero-visual" jest już na pełną szerokość, więc bez tego nadpisania
     grafika wypadała w prawo zamiast na środek (prośba klienta, 15.09.2026). */
  .hero-visual-head { left: 50%; }
  .hero-inner { padding-top: 40px; }
  .hero-copy { text-align: center; max-width: 560px; margin: 0 auto; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .mission .container { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr; }
  .knowledge-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: #fff; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 60; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; padding: 32px; gap: 4px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--grey-200); }
  .nav-toggle { display: block; }
  .lang-switch-mobile {
    display: inline-flex;
    border: 1.5px solid var(--grey-200);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
  }
  .header-actions .btn-support span.label { display: none; }
}

@media (max-width: 620px) {
  .cta-box.dark { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-inner { padding-top: 32px; padding-bottom: 40px; }
  .hero-visual { height: 200px; }
}

/* Accessibility */
a:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* =========================== TREŚCI Z EDYTORA (WYSIWYG) =========================== */
.rich-content p { margin: 0 0 1em; }
.rich-content ul, .rich-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.rich-content a { color: var(--coral); text-decoration: underline; }
.rich-content strong { font-weight: 700; }
.rich-content em { font-style: italic; }
.rich-content .ql-align-center { text-align: center; }
.rich-content .ql-align-right { text-align: right; }
.rich-content .ql-align-justify { text-align: justify; }
.rich-content .ql-size-small { font-size: 0.8em; }
.rich-content .ql-size-large { font-size: 1.3em; }
.rich-content .ql-size-huge { font-size: 1.7em; }

/* Informacja o danych osobowych pod formularzem kontaktowym (27.09.2026) */
.form-privacy-note { font-size: 0.8rem; line-height: 1.5; color: var(--grey-500); margin: 0; }
.form-privacy-note a { color: inherit; text-decoration: underline; }

/* Przyciski-pigułki w menu (17-18.11.2026): „Trzymaj się” pomarańczowy (kolor przycisku
   „Wypróbuj prototyp aplikacji”), „Ogarniam.” jasnoniebieski (kolor kafelka w aplikacji). */
.main-nav ul { align-items: center; }
.main-nav a.btn-pill {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 9px 16px 5px;
  border-radius: 999px;
  border: 0;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.main-nav a.btn-trzymajsie { background: var(--coral); color: #fff; }
.main-nav a.btn-trzymajsie:hover { background: var(--coral-dark); color: #fff; transform: translateY(-1px); }
.main-nav a.btn-ogarniam { background: #1fd1ff; color: #0b0820; }
.main-nav a.btn-ogarniam:hover { background: #5be0ff; color: #0b0820; transform: translateY(-1px); }
.main-nav a.btn-pill:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (max-width: 1180px) and (min-width: 1025px) {
  .main-nav ul { gap: 16px; }
  .main-nav a.btn-pill { padding: 9px 12px 5px; }
}
@media (max-width: 1024px) {
  .main-nav .nav-pill-item { padding: 9px 0; border-bottom: 1px solid var(--grey-200); }
  /* menu mobilne jest wyśrodkowane: pigułka też, więc jej napis wypada w osi pozostałych pozycji */
  .main-nav a.btn-pill { padding: 9px 22px; margin: 0; border-bottom: 0; font-size: 0.88rem; }
}
#materialy a { color: var(--coral-dark); text-decoration: underline; }
picture { display: contents; }
