/* ==========================================================================
   Stowarzyszenie na Rzecz Promocji Zdrowia — landing page styles
   Design: clean white page with calm green and coral. Light mint and blush
   bands separate the sections; a deep green band carries "Jak możesz pomóc".
   The motif is a pulse line that ends in a heart (health + children).
   Alegreya (warm humanist serif) for headings, Figtree (open, friendly
   sans) for text. Page language: Polish (lang="pl").
   ========================================================================== */

/* Self-hosted fonts (Google Fonts builds, latin + latin-ext so ą ć ę ł ń ó ś ź ż render) */
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/alegreya-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/alegreya-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/alegreya-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/alegreya-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour tokens. Text pairings checked against WCAG AA (ratios in comments). */
  --ink: #17302a;           /* body text: 14:1 on white */
  --ink-2: #3d524b;         /* secondary text: 8.4:1 on white, 7.5:1 on mint/blush */
  --muted: #5b6d66;         /* captions, meta: 5.5:1 on white, 4.9:1 on mint/blush */
  --green: #2c6e58;         /* calm green: icons, links; white on it 6:1 */
  --green-deep: #1c4a3c;    /* dark band; white on it 10:1 */
  --green-darker: #153a2f;  /* footer */
  --mint: #eef6f2;          /* light green band */
  --mint-2: #d9e9e0;        /* borders on mint */
  --coral: #e0603f;         /* pulse line, heart, decorative only (3.5:1) */
  --coral-ink: #b8432a;     /* buttons (white text 5.4:1), coral text on white */
  --coral-deep: #9e3a24;    /* button hover */
  --blush: #fdf0ec;         /* "Zamiast Kwiatów" band */
  --blush-2: #f5d9ce;       /* borders on blush */
  --peach: #ffb59f;         /* accents on the dark band: 5.9:1 on green-deep */
  --white: #ffffff;
  --line: #dde8e2;
  --on-dark: #ffffff;
  --on-dark-2: #cfe3da;     /* 7.5:1 on green-deep */
  --focus: #b8432a;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;
  --shadow: 0 18px 40px rgba(23, 48, 42, 0.12), 0 2px 6px rgba(23, 48, 42, 0.05);
  --shadow-sm: 0 1px 2px rgba(23, 48, 42, 0.06), 0 4px 14px rgba(23, 48, 42, 0.05);

  /* Type */
  --font-head: "Alegreya", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}

p { margin: 0 0 1rem; text-wrap: pretty; }
li, dd { text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

address { font-style: normal; }
figure { margin: 0; }

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--green-deep);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.nowrap { white-space: nowrap; }

.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;
}

.section-head { max-width: 660px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2.125rem, 4.2vw, 3rem); margin-bottom: 1rem; }
.section-head p { color: var(--ink-2); }
.section-head--on-dark h2 { color: var(--white); }
.section-head--on-dark p { color: var(--on-dark-2); }

.sub-title {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  margin-bottom: 1.5rem;
}

/* Small photo note for stock photos placed next to claims about the association */
figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--coral-ink); color: var(--white); }
.btn-primary:hover { background: var(--coral-deep); color: var(--white); text-decoration: none; }

.btn-ghost { border-color: var(--green); color: var(--green-deep); background: transparent; }
.btn-ghost:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); text-decoration: none; }

.btn-sm { min-height: 44px; padding: 0.55rem 1.15rem; font-size: 1rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--green);
}
.text-link svg { width: 18px; height: 18px; flex: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(23, 48, 42, 0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.05;
}
.brand-name small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 3px;
}
.brand--light,
.brand--light:hover { color: var(--white); }
.brand--light .brand-name small { color: var(--on-dark-2); }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: var(--pill);
  white-space: nowrap;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.site-nav ul a:hover { color: var(--ink); background: var(--mint); }
.site-nav ul a[aria-current="true"] { color: var(--green-deep); background: var(--mint); box-shadow: inset 0 -2px 0 var(--coral); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.75rem, 5.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  max-width: 17ch;
}

.lead { font-size: clamp(1.1875rem, 1.8vw, 1.3125rem); color: var(--ink-2); max-width: 36rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-reg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-reg svg { width: 18px; height: 18px; flex: none; color: var(--green); }

.hero-media { position: relative; padding-bottom: 2.5rem; }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--mint);
}
.hero-photo figcaption {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  margin: 0;
  padding: 0.3rem 0.7rem;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.date-card {
  position: absolute;
  left: clamp(-3rem, -4vw, -1rem);
  bottom: 0;
  display: grid;
  gap: 0.35rem;
  width: min(320px, 86%);
  padding: 1.25rem 1.4rem 1.3rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.date-card:hover { color: var(--ink); text-decoration: none; transform: translateY(-2px); }
.date-card-date { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--coral-ink); }
.date-card-date svg { width: 22px; height: 22px; flex: none; color: var(--coral); }
.date-card-text { font-size: 1rem; color: var(--ink-2); line-height: 1.45; }
.date-card-more { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.25rem; font-size: 0.9375rem; font-weight: 700; color: var(--green); }
.date-card-more svg { width: 16px; height: 16px; }

/* Pulse line that ends in a heart */
.pulse { width: 100%; height: auto; margin-top: clamp(1.5rem, 4vw, 3rem); overflow: visible; }
.pulse-line {
  fill: none;
  stroke: var(--coral);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.pulse-heart { fill: var(--coral); }
.js .pulse-line { animation: pulse-draw 1.8s var(--ease) 0.2s both; }
.js .pulse-heart { animation: heart-in 0.5s var(--ease) 1.8s both; transform-box: fill-box; transform-origin: center; }
@keyframes pulse-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes heart-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   O nas
   -------------------------------------------------------------------------- */
.about { background: var(--mint); padding-top: clamp(3rem, 6vw, 5rem); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-copy h2 { font-size: clamp(2rem, 3.8vw, 2.75rem); margin-bottom: 1.25rem; }
.about-copy p { color: var(--ink-2); }
.about-note { font-size: 1rem; color: var(--muted) !important; }

.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pillar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  border: 1px solid var(--mint-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.pillar:hover { color: var(--ink); text-decoration: none; border-color: var(--green); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.pillar-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--green);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-body strong { display: block; font-family: var(--font-head); font-size: 1.3125rem; line-height: 1.2; margin-bottom: 0.2rem; }
.pillar-body span { display: block; color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.pillar-arrow { width: 20px; height: 20px; color: var(--coral-ink); }

/* --------------------------------------------------------------------------
   Pomagamy: timeline
   -------------------------------------------------------------------------- */
.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.help-intro h2 { font-size: clamp(2rem, 3.8vw, 2.75rem); margin-bottom: 1.25rem; }
.help-intro > p { color: var(--ink-2); margin-bottom: 2rem; }
.help-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
}
.timeline-item { position: relative; padding: 0 0 2.25rem 2.75rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
}
.timeline-item--key::before { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 5px var(--blush); }
.timeline-when { font-family: var(--font-head); font-style: italic; font-size: 1.125rem; color: var(--coral-ink); margin-bottom: 0.25rem; }
.timeline-item h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.timeline-item p:not(.timeline-when) { color: var(--ink-2); }
.timeline-item--key {
  margin: 0 0 2.25rem -1.5rem;
  padding: 1.5rem 1.5rem 1.5rem 4.25rem;
  border-radius: var(--radius);
  background: var(--blush);
}
.timeline-item--key::before { left: 1.5rem; top: 1.85rem; }

/* --------------------------------------------------------------------------
   Zamiast Kwiatów
   -------------------------------------------------------------------------- */
.flowers { background: var(--blush); }
.flowers-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.flowers-intro h2 { font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1; margin-bottom: 1.5rem; color: var(--coral-ink); }
.flowers-lead { font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.3; color: var(--ink); margin-bottom: 1.25rem; }
.flowers-intro p:not(.flowers-lead) { color: var(--ink-2); max-width: 40rem; }
.flowers-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.occasions {
  list-style: none;
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.occasion {
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--blush-2);
}
.occasion h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.375rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.occasion-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--blush);
  color: var(--coral-ink);
}
.occasion-icon svg { width: 24px; height: 24px; }
.occasion p { color: var(--ink-2); font-size: 1.0625rem; }

.howto {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.1rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.5rem;
  min-height: 2.5rem;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--coral-ink);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.steps strong { color: var(--ink); }
.steps a { color: var(--coral-ink); }
.steps a:hover { color: var(--coral-deep); }

.invite {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--blush-2);
  box-shadow: var(--shadow-sm);
}
.invite h3 { font-size: 1.375rem; margin-bottom: 1rem; }
.invite-text {
  position: relative;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-top: 2rem;
}
.invite-text::before {
  content: "„";
  position: absolute;
  top: -1.5rem;
  left: -0.1rem;
  font-size: 3.5rem;
  line-height: 1;
  font-style: normal;
  color: var(--coral);
}
.invite-hint { margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--coral-ink);
  border-radius: var(--pill);
  background: var(--white);
  color: var(--coral-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.copy-btn:hover { background: var(--coral-ink); color: var(--white); }
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn .done-icon { display: none; }
.copy-btn.is-copied { background: var(--green); border-color: var(--green); color: var(--white); }
.copy-btn.is-copied .copy-icon { display: none; }
.copy-btn.is-copied .done-icon { display: block; }

.school {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--blush-2);
}
.school img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.school figcaption { margin: 0; font-size: inherit; color: inherit; }
.school-quote { font-family: var(--font-head); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.35; color: var(--ink); margin-bottom: 1rem; }
.school-quote q { color: var(--coral-ink); font-style: italic; quotes: "„" "”"; }
.school-meta { color: var(--ink-2); font-size: 1rem; }
.school-note { color: var(--muted); font-size: 0.875rem; }

/* --------------------------------------------------------------------------
   Rodzinne domy dziecka
   -------------------------------------------------------------------------- */
.homes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.homes-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); }
.homes-copy h2 { font-size: clamp(2rem, 3.8vw, 2.75rem); margin-bottom: 1.25rem; }
.homes-copy p { color: var(--ink-2); }
.homes-copy .homes-cta { margin: 1.75rem 0 0; font-family: var(--font-head); font-size: 1.3125rem; color: var(--ink); }

/* --------------------------------------------------------------------------
   Zdrowie
   -------------------------------------------------------------------------- */
.health { background: var(--mint); }
.tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
}
.tip {
  padding: 1.5rem 0 1.75rem;
  border-top: 2px solid var(--mint-2);
}
.tip h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.375rem;
  margin-bottom: 0.6rem;
}
.tip h3 svg { width: 26px; height: 26px; flex: none; color: var(--green); }
.tip p { color: var(--ink-2); font-size: 1.0625rem; }

.health-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  max-width: 820px;
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--mint-2);
  color: var(--ink-2);
  font-size: 1rem;
}
.health-note svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--green); }
.health-note a { font-weight: 700; }

/* --------------------------------------------------------------------------
   Jak pomóc (dark band)
   -------------------------------------------------------------------------- */
.give { background: var(--green-deep); color: var(--on-dark); }
.give-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.give-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.give-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--peach);
  color: var(--green-darker);
}
.give-icon svg { width: 24px; height: 24px; }
.give-card h3 { color: var(--white); font-size: 1.375rem; margin-bottom: 0.6rem; }
.give-card p { color: var(--on-dark-2); font-size: 1.0625rem; }
.give-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  margin-top: auto;
  padding: 0.75rem 0 0;
  border: 0;
  background: none;
  color: var(--peach);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.give-link:hover { color: var(--white); }
.give-link svg { width: 18px; height: 18px; }
.give .give-card > p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Kontakt i dane
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-copy h2 { font-size: clamp(2.125rem, 4.2vw, 3rem); margin-bottom: 1rem; }
.contact-copy > p { color: var(--ink-2); }
.address-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: var(--mint);
}
.address-card svg { width: 26px; height: 26px; flex: none; color: var(--coral-ink); margin-top: 2px; }
.address-card strong { display: block; font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 0.25rem; }
.address-card address { color: var(--ink-2); }
.address-card + .address-card { margin-top: -0.75rem; }
.contact-mail { font-weight: 600; overflow-wrap: anywhere; }

.data {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--white);
}
.data h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.5rem; margin-bottom: 1.25rem; }
.data h3 svg { width: 24px; height: 24px; color: var(--green); }
.data-list { margin: 0 0 1rem; display: grid; }
.data-list div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.data-list div:last-child { border-bottom: 0; }
.data-list dt { color: var(--muted); font-size: 1rem; }
.data-list dd { margin: 0; color: var(--ink); }
.data-list .num { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { background: var(--mint); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.faq .section-head { margin-bottom: 0; }
.faq-list { display: grid; gap: 0.75rem; }
.faq-list details {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--mint-2);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 1rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 22px; height: 22px; flex: none; color: var(--coral-ink); transition: transform 200ms var(--ease); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { padding: 0 1.4rem 1.3rem; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--green-darker); color: var(--on-dark-2); border-top: 4px solid var(--coral); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.footer-brand p { margin-top: 1.25rem; max-width: 30rem; font-size: 1rem; }
.footer-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.85rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 1rem; }
.footer-links:has(a) { gap: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-2); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9375rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom--solo { border-top: 0; padding-top: 1.75rem; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); }
.footer-bottom a:hover { color: var(--peach); }

/* --------------------------------------------------------------------------
   Photo credits page
   -------------------------------------------------------------------------- */
.credits-page { padding-block: clamp(3rem, 7vw, 5rem) var(--section); }
.credits-page h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 1rem; }
.credits-page .lead { margin-bottom: 2.5rem; }
.credits-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 820px; }
.credits-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.credits-list img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
.credits-list strong { display: block; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.3; margin-bottom: 0.25rem; }
.credits-list strong a { color: var(--ink); }
.credits-list span { color: var(--muted); font-size: 1rem; }
.credits-note { margin-top: 2rem; max-width: 820px; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Reveal on scroll (only once JS has marked the page; see main.js)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Polish menu labels are long: switch to the menu button below 1120px */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(23, 48, 42, 0.1);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0.15rem; }
  .site-nav ul a { width: 100%; min-height: 48px; padding: 0 0.9rem; font-size: 1.0625rem; }
  .nav-cta { width: 100%; }
  .give-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .hero-grid,
  .about-grid,
  .help-grid,
  .homes-grid,
  .contact-grid,
  .faq-grid,
  .howto { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .hero-media { max-width: 520px; }
  .date-card { left: 1rem; }
  .flowers-head { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); }
  .occasions,
  .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school { grid-template-columns: minmax(0, 1fr); }
  .homes-photo { max-width: 560px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .brand svg { width: 40px; height: 40px; }
  .brand-name { font-size: 1.1875rem; }
  .brand-name small { font-size: 0.75rem; }
  .hero-actions .btn { flex: 1 1 100%; white-space: normal; }
  .hero-media { padding-bottom: 0; }
  .date-card { position: relative; left: auto; bottom: auto; width: auto; margin: -2.5rem 1rem 0; }
  .flowers-head { grid-template-columns: minmax(0, 1fr); }
  .flowers-photo { max-width: 300px; }
  .occasions,
  .tips,
  .give-grid,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline-item--key { margin-left: -0.75rem; padding: 1.25rem 1.1rem 1.25rem 3.5rem; }
  .timeline-item--key::before { left: 0.75rem; top: 1.6rem; }
  .data-list div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .faq-list summary { font-size: 1.125rem; padding: 0.9rem 1.1rem; }
  .faq-list details p { padding: 0 1.1rem 1.2rem; }
  .credits-list li { grid-template-columns: 88px minmax(0, 1fr); }
  .credits-list img { width: 88px; height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
