:root {
  --brown-900: #2b1a0e;
  --brown-700: #5a3b22;
  --brown-500: #8b5a2b;
  --brown-300: #c99566;
  --cream: #fdf8ef;
  --cream-2: #f6ecda;
  --green-700: #2f5b3a;
  --green-500: #5d9450;
  --blue-500: #3f7685;
  --orange-500: #d9822b;
  --text: #2d2620;
  --muted: #6b6158;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(43, 26, 14, .08);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

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

a { color: var(--green-700); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--brown-900); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2rem); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--brown-900); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  background: var(--brown-500);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--brown-500);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--brown-700); border-color: var(--brown-700); transform: translateY(-2px); }
.btn-small { padding: .45rem 1.1rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--brown-700); }
.btn-ghost:hover { color: #fff; }
.btn-light { background: #fff; color: var(--brown-900); border-color: #fff; }
.btn-light:hover { background: var(--cream-2); border-color: var(--cream-2); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green-500);
  margin-bottom: .6rem;
}
.eyebrow-light { color: #b9d8ad; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 239, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(90, 59, 34, .1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--brown-900);
  font-family: var(--font-head); font-size: 1.15rem;
}
.brand strong { color: var(--brown-500); }

.nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; color: var(--text); font-weight: 600; }
.nav a:not(.btn):hover { color: var(--brown-500); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--brown-900); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0; background: radial-gradient(circle at 80% 20%, #f6e2bd 0, transparent 55%), var(--cream); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.scene { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(43, 26, 14, .15)); }

/* ---------- Statystyki ---------- */
.stats { background: var(--brown-700); color: #fff; padding: 2.2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: #f4c46a; }
.stat-label { font-size: .95rem; opacity: .9; }

/* ---------- Sekcje ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--green-700); color: #eef5ea; }
.section-dark h2 { color: #fff; }
.section-dark a { color: #f4c46a; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.section-head p:last-child { color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.feature-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; padding: 1.1rem 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature-list h3 { margin-bottom: .2rem; font-size: 1.05rem; }
.feature-list p { margin: 0; color: var(--muted); font-size: .97rem; }
.icon { font-size: 1.6rem; line-height: 1; padding-top: .15rem; }

/* ---------- Karty bobrów ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.chip {
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .45rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--brown-700); border: 2px solid rgba(90, 59, 34, .2);
  transition: all .2s;
}
.chip:hover { border-color: var(--brown-500); }
.chip.is-active { background: var(--brown-500); border-color: var(--brown-500); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(43, 26, 14, .14); }
.card[hidden] { display: none; }
.card-img { background: var(--bg, #f3dfc6); padding: 1.5rem; display: grid; place-items: center; }
.card-img img { width: 130px; height: 130px; }
.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-body h3 { margin-bottom: .1rem; font-size: 1.4rem; }
.meta { color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: .6rem; }
.card-body p:not(.meta) { font-size: .97rem; }

.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; margin: .15rem .2rem 0 0; }
.badge-orange { background: #fbe6cf; color: #8a4a0c; }
.badge-green { background: #dcefd5; color: var(--green-700); }
.badge-blue { background: #d6e9ef; color: #23525e; }

/* ---------- Pomoc ---------- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.help-card {
  background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start;
}
.help-card p { color: var(--muted); font-size: .97rem; }
.help-card .btn { margin-top: auto; }
.icon-lg { font-size: 2.2rem; margin-bottom: .6rem; }

.amounts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.amount {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: .4rem .8rem; border-radius: 10px; white-space: nowrap;
  background: var(--cream-2); color: var(--brown-700); border: 2px solid transparent;
}
.amount.is-active { border-color: var(--brown-500); background: #fff; }
.amount-info { min-height: 3em; }
.small { font-size: .88rem; color: var(--muted); }
.help-card .small { margin-top: auto; margin-bottom: 0; }

.checklist { margin: 0; padding: 0; list-style: none; font-size: .97rem; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: .3rem; }
.checklist li::before { content: "🌿"; position: absolute; left: 0; font-size: .9rem; }

.callout {
  margin-top: 2.5rem;
  background: linear-gradient(120deg, var(--brown-700), var(--brown-500));
  color: #fff; border-radius: var(--radius); padding: 2rem 2.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.callout h3 { color: #fff; font-size: 1.4rem; }
.callout p { margin: 0; max-width: 40em; opacity: .92; }

/* ---------- Wizyty ---------- */
.hours { background: #fff; border-radius: var(--radius); padding: 1.75rem 2rem; box-shadow: var(--shadow); }
.hours table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.hours th, .hours td { padding: .65rem 0; border-bottom: 1px dashed rgba(90, 59, 34, .2); text-align: left; }
.hours td { text-align: right; font-weight: 700; color: var(--brown-700); }
.hours th { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 0 1.4rem; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; padding: 1.1rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brown-500); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; font-size: 1.05rem; }
.contact-list span { margin-right: .5rem; }

.contact-form { background: #fff; color: var(--text); border-radius: var(--radius); padding: 2rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: .7rem .9rem;
  border: 2px solid #e4d9c8; border-radius: 10px; background: var(--cream);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brown-500); }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; }
.consent input { margin-top: .3rem; }
.consent.has-error span { color: #c0392b; }
.form-status { margin: 1rem 0 0; font-weight: 700; }
.form-status.ok { color: var(--green-700); }
.form-status.err { color: #c0392b; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--brown-900); color: #e9dccb; padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; font-size: .92rem; }
.brand-footer { color: #fff; }
.brand-footer strong { color: var(--brown-300); }
.to-top { color: #f4c46a; text-decoration: none; font-weight: 700; }

/* ---------- Animacje ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 900px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; margin-inline: auto; width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid rgba(90, 59, 34, .1);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1.2rem; }
  .nav li a:not(.btn) { display: block; padding: .8rem 0; border-bottom: 1px solid rgba(90, 59, 34, .08); }
  .nav li .btn { margin-top: 1rem; text-align: center; display: block; }
}

@media (max-width: 520px) {
  .brand span { font-size: 1rem; }
  .callout { padding: 1.5rem; }
  .contact-form { padding: 1.4rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
