/* ==========================================================================
   Fundacja Pomocny Sąsiad - strona opieki domowej
   Paleta zdjęta z ulotki: granat #123A6D, zieleń #6BB32E, krem #F7F3E9
   ========================================================================== */

/* ---------- 1. Tokeny ---------- */
:root {
  --navy:        #123a6d;
  --navy-700:    #0e2d55;
  --navy-900:    #091f3b;
  --navy-100:    #e7eef7;
  --navy-050:    #f2f6fb;

  /* --green to zieleń marki z ulotki. Nadaje się na tła ikon, akcenty i obrysy,
     ale BIAŁY TEKST na niej daje kontrast 2,59:1 - poniżej progu WCAG AA (4,5:1).
     Dlatego wypełnienia przycisków biorą ciemniejszy --green-cta (4,6:1).
     Odbiorcą tej strony są osoby starsze i z niepełnosprawnościami, więc
     czytelność wygrywa tu z dosłownym odwzorowaniem odcienia z ulotki. */
  --green:       #6bb32e;
  --green-600:   #5a9c24;
  --green-700:   #44771a;
  --green-200:   #cfe6b4;
  --green-050:   #eef6e3;

  --green-cta:       #4a831c;
  --green-cta-hover: #3d6d17;

  --cream:       #f7f3e9;
  --cream-deep:  #efe8d8;
  --panel-green: #e5efd4;

  --ink:         #1c2b3d;
  --ink-soft:    #4d5f75;
  --line:        #dfe5ed;
  --white:       #fff;

  --radius-sm:  10px;
  --radius:     16px;
  --radius-lg:  26px;
  --radius-xl:  36px;

  --shadow-sm: 0 2px 8px rgba(18, 58, 109, .06);
  --shadow:    0 10px 30px rgba(18, 58, 109, .09);
  --shadow-lg: 0 24px 60px rgba(18, 58, 109, .14);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
          "Inter", "Source Sans Pro", Arial, sans-serif;

  --shell: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 8vw, 6.75rem);

  --ease: cubic-bezier(.22, .68, .3, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .97rem + .16vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.16; color: var(--navy); font-weight: 700; letter-spacing: -.015em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 200; background: var(--navy); color: #fff; padding: .7rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none; font-weight: 600; transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 820px; }

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

.section-head { max-width: 660px; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }

.section-title {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.65rem);
  margin-bottom: .7rem;
}

.section-sub { color: var(--ink-soft); font-size: 1.06em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--green-700);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px;
  background: var(--green); flex: none;
}
.eyebrow-light { color: var(--green-200); }
.eyebrow-light::before { background: var(--green-200); }

/* ---------- 4. Logo ---------- */
/* Znak słowny fundacji: „FUNDACJA" nadtytułem, nazwa poniżej, serce po prawej. */
.brand-logo  { width: 190px; height: auto; }
.logo-kicker { font: 700 10.5px/1 var(--font); fill: var(--green-700); letter-spacing: .24em; }
.logo-word   { font: 700 23px/1 var(--font); fill: var(--navy); letter-spacing: -.3px; }
.logo-heart  { fill: var(--green); }
.brand-logo-light .logo-word { fill: #fff; }
.brand-logo-light .logo-kicker,
.brand-logo-light .logo-heart { fill: var(--green-200); }

/* ---------- 5. Przyciski ---------- */
.btn {
  --btn-bg: var(--green-cta);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.7rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-green { --btn-bg: var(--green-cta); box-shadow: 0 6px 18px rgba(74, 131, 28, .3); }
.btn-green:hover { --btn-bg: var(--green-cta-hover); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--navy);
  border-color: var(--navy-100); box-shadow: none;
}
.btn-ghost:hover { --btn-bg: var(--navy-050); border-color: var(--navy); }

/* .72rem, nie .62rem - przy mniejszym paddingu przycisk miał 42 px wysokości,
   poniżej zalecanych 44 px na obszar dotyku. */
.btn-sm { padding: .72rem 1.35rem; font-size: .94rem; }
.btn-block { width: 100%; }
.btn-ico { width: 20px; height: 20px; flex: none; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 76px;
}

.brand { margin-right: auto; text-decoration: none; flex: none; }
.brand .brand-logo { width: clamp(150px, 17vw, 186px); }

.nav { display: flex; align-items: center; gap: 1.9rem; }

.nav-list { display: flex; align-items: center; gap: 1.7rem; }
.nav-list a {
  position: relative; text-decoration: none; font-weight: 600;
  font-size: .97rem; color: var(--navy-700); padding-block: .3rem;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--green); border-radius: 2px; transition: right .22s var(--ease);
}
.nav-list a:hover::after, .nav-list a:focus-visible::after { right: 0; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: var(--navy-050); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; color: var(--navy);
}
.nav-toggle-bars { display: grid; gap: 5px; place-items: center; }
.nav-toggle-bars span {
  display: block; width: 20px; height: 2.4px; border-radius: 2px;
  background: currentColor; transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 88% -12%, var(--green-050) 0%, transparent 62%),
    linear-gradient(180deg, var(--cream) 0%, #fdfcf8 100%);
  padding-block: clamp(2.75rem, 6vw, 5.25rem) clamp(3.25rem, 7vw, 5.75rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.15rem, 1.25rem + 3.9vw, 4rem);
  letter-spacing: -.03em;
  margin-bottom: 1.15rem;
}

.accent-word { position: relative; display: inline-block; color: var(--navy); }
.heart-mark {
  position: absolute; right: -.74em; top: .04em;
  width: .8em; height: .8em; overflow: visible;
}

.hero-lead {
  font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem);
  color: var(--ink-soft); max-width: 34em; margin-bottom: 1.85rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.35rem; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  padding-top: 1.4rem; border-top: 1px solid var(--cream-deep);
  font-size: .94rem; color: var(--ink-soft);
}
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.hero-trust li::before {
  content: ""; width: 17px; height: 17px; flex: none; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.6l4.4 4.4L19 7.4' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.hero-trust strong { color: var(--navy); font-weight: 700; }

.hero-figure { margin: 0; position: relative; }
.hero-figure::before {
  content: ""; position: absolute; inset: auto -22px -22px auto;
  width: 62%; height: 62%; border-radius: var(--radius-xl);
  background: var(--panel-green); z-index: 0;
}
.hero-figure img,
.photo-slot {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.photo-slot {
  display: grid; place-items: center; overflow: hidden;
  background: var(--navy-050); border: 1px dashed var(--navy-100);
}
.photo-slot-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-slot-note {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, .84); color: var(--navy-700);
  font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .45rem 1rem; border-radius: 999px;
}

/* ---------- 8. Karty usług ---------- */
.services { background: var(--white); }

/* 235px (nie 255) - przy szerokości powłoki 1180px cztery karty mieszczą się
   w jednym rzędzie. Przy 255px ostatnia spadała do drugiego rzędu jako sierota. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.75rem);
}

.card {
  padding: clamp(1.6rem, 2.4vw, 2.1rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease),
              border-color .24s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--green-200);
  box-shadow: var(--shadow);
}

.card-ico {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: 1.25rem;
  border-radius: 50%;
}
.card-ico svg { width: 30px; height: 30px; }
.card-ico-navy  { background: var(--navy);  color: #fff; }
.card-ico-green { background: var(--green); color: #fff; }

.card-title { font-size: 1.16rem; margin-bottom: .55rem; }
.card-text  { color: var(--ink-soft); font-size: .985rem; }

/* ---------- 9. Dofinansowanie ---------- */
.funding { background: var(--cream); }

.funding-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3.5rem);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.funding-title { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); margin-bottom: 1rem; }
.funding-text  { color: rgba(255, 255, 255, .86); margin-bottom: 1.9rem; max-width: 34em; }
.funding-text strong { color: #a9dd6d; font-weight: 700; }

.funding-points { display: grid; gap: .85rem; }
.funding-points li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
}
.funding-ico {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff;
}
.funding-ico svg { width: 24px; height: 24px; }
.funding-points strong { display: block; color: #fff; font-size: 1.02rem; margin-bottom: .18rem; }
.funding-points span   { display: block; color: rgba(255, 255, 255, .74); font-size: .92rem; line-height: 1.55; }

.funding-note {
  max-width: 820px; margin: 1.75rem auto 0;
  font-size: .86rem; color: var(--ink-soft); text-align: center;
}

/* ---------- 10. Kroki ---------- */
.steps { background: var(--white); }

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}

.step { position: relative; padding-top: 1.5rem; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green-200); border-radius: 3px;
}
.step:first-child::before { background: var(--green); }

.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1rem;
  background: var(--green-050); color: var(--green-700);
  border-radius: 50%; font-weight: 700; font-size: 1.18rem;
}
.step-title { font-size: 1.14rem; margin-bottom: .5rem; }
.step-text  { color: var(--ink-soft); font-size: .985rem; }

/* ---------- 11. FAQ ---------- */
.faq { background: var(--navy-050); }
.faq .section-head { margin-inline: auto; text-align: center; }
.faq .eyebrow { justify-content: center; }

.faq-list { display: grid; gap: .75rem; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: var(--green-200); box-shadow: var(--shadow-sm); }

.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600; color: var(--navy); cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.5l6 6 6-6' fill='none' stroke='%234a831c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat;
  transition: transform .22s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--navy-050); }

.faq-answer { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: .985rem; }

/* ---------- 12. Kontakt ---------- */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: start;
}

.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }

.contact-ico {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-050); color: var(--green-700);
}
.contact-ico svg { width: 24px; height: 24px; }

.contact-label {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.contact-value {
  display: block; font-size: 1.12rem; font-weight: 700;
  color: var(--navy); text-decoration: none;
}
.contact-value:hover { color: var(--green-700); }
.contact-value-plain { font-weight: 600; }

/* Formularz */
.contact-form-wrap {
  padding: clamp(1.5rem, 3vw, 2.35rem);
  background: var(--panel-green);
  border-radius: var(--radius-xl);
}

.form-intro { font-size: .96rem; color: var(--navy-700); margin-bottom: 1.4rem; }

.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field label,
.check span { font-size: .92rem; font-weight: 600; color: var(--navy-700); }
.field label { display: block; margin-bottom: .38rem; }
.req { color: var(--green-700); }

.field input,
.field select,
.field textarea {
  width: 100%; padding: .82rem 1rem;
  font: 400 1rem/1.5 var(--font); color: var(--ink);
  background: var(--white);
  border: 1.5px solid transparent; border-radius: 12px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 108px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.5l6 6 6-6' fill='none' stroke='%23123a6d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
  padding-right: 2.6rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(107, 179, 46, .18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c0392b; }

.field-error { font-size: .84rem; font-weight: 600; color: #a5281a; margin-top: .35rem; }

/* padding-block podnosi obszar dotyku całej etykiety do ~45 px.
   Sam kwadracik ma 21 px, ale klikalny jest cały wiersz z tekstem. */
.check {
  display: flex; align-items: flex-start; gap: .7rem;
  margin: 0 0 1rem; padding-block: .6rem; cursor: pointer;
}
.check input {
  flex: none; width: 21px; height: 21px; margin-top: .12rem;
  accent-color: var(--green-600); cursor: pointer;
}
.check span { font-weight: 500; font-size: .89rem; line-height: 1.5; }

.form-note {
  margin-top: 1rem; font-size: .84rem; line-height: 1.55;
  color: var(--navy-700); opacity: .82;
}
.form-note.is-success {
  opacity: 1; font-weight: 600; color: var(--green-700);
}

/* ---------- 13. Stopka ---------- */
.site-footer {
  background: var(--navy-900); color: rgba(255, 255, 255, .72);
  padding-block: clamp(2.75rem, 5vw, 4rem) 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-claim { margin-top: 1rem; font-size: .95rem; max-width: 26em; }

.footer-head {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; margin-bottom: 1rem;
}

.footer-nav ul, .footer-contact ul { display: grid; gap: .6rem; }
.footer-nav a, .footer-contact a {
  color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .95rem;
}
.footer-nav a:hover, .footer-contact a:hover { color: #a9dd6d; }
.footer-hours { font-size: .95rem; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between; padding-top: 1.5rem;
  font-size: .84rem; color: rgba(255, 255, 255, .55);
}

/* ---------- 14. Pływający przycisk (mobile) ---------- */
/* Wyśrodkowanie przez left:0/right:0 + margin auto, NIE przez left:50%.
   Przy left:50% element fixed dostaje do dyspozycji tylko prawą połowę
   ekranu, więc napis łamał się na dwie linie. */
.fab {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 1rem;
  width: max-content; max-width: calc(100% - 2rem); margin-inline: auto;
  z-index: 90; align-items: center; gap: .55rem;
  padding: .85rem 1.5rem;
  background: var(--green-cta); color: #fff;
  border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .97rem; white-space: nowrap;
  box-shadow: 0 10px 26px rgba(18, 58, 109, .3);
}
.fab svg { width: 19px; height: 19px; }

/* ---------- 15. Animacje wejścia ----------
   Elementy chowamy WYŁĄCZNIE gdy JS działa (klasa .js na <html>).
   Bez tego zablokowany lub uszkodzony skrypt zostawiłby pustą stronę.       */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .07s; }
.js .reveal:nth-child(3) { transition-delay: .14s; }
.js .reveal:nth-child(4) { transition-delay: .21s; }

/* ---------- 16. Strona treściowa (polityka prywatności) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, #fdfcf8 100%);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.page-title { font-size: clamp(1.85rem, 1.35rem + 2vw, 2.75rem); }
.page-meta { margin-top: .6rem; color: var(--ink-soft); font-size: .92rem; }

.prose { padding-block: clamp(2.5rem, 5vw, 4rem); }
.prose h2 { font-size: 1.32rem; margin: 2.35rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin-bottom: .9rem; }
.prose ul { list-style: disc; padding-left: 1.35rem; margin-bottom: 1rem; display: grid; gap: .4rem; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; white-space: nowrap;
  background: var(--white); color: var(--navy-700);
  padding: .1em .42em; border-radius: 5px; border: 1px solid var(--line);
}
.prose .todo {
  padding: 1rem 1.25rem; background: var(--cream); border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .93rem; margin-bottom: 1.25rem;
}

/* ==========================================================================
   17. Responsywność
   ========================================================================== */

@media (max-width: 1000px) {
  .hero-grid,
  .funding-panel,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-grid { gap: 2.5rem; }
  .hero-figure { order: -1; max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  html { scroll-padding-top: 76px; }

  .nav-toggle { display: grid; place-items: center; }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    clip-path: inset(0 0 100% 0);
    opacity: 0; pointer-events: none;
    transition: clip-path .3s var(--ease), opacity .2s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    display: block; padding: .95rem .25rem;
    border-bottom: 1px solid var(--line); font-size: 1.02rem;
  }
  .nav-list a::after { display: none; }

  .nav-cta { margin-top: 1.1rem; align-self: flex-start; }

  .fab { display: inline-flex; }
  .site-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-figure::before { inset: auto -12px -14px auto; }
  .heart-mark { width: .6em; height: .6em; right: -.5em; }
}

/* ---------- 18. Preferencje użytkownika ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .fab, .nav, .contact-form-wrap, .hero-figure { display: none !important; }
  body { color: #000; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; }
}
