/* =========================================================
   OSADA NATURY ZEW — wygląd strony
   Kolory i czcionki zmienisz w sekcji :root poniżej.
   ========================================================= */

:root {
  --forest: #2f4a36;   /* ciemna zieleń – nagłówki, przyciski */
  --moss:   #6b8f4e;   /* mech – akcenty */
  --meadow: #a9c07a;   /* łąka */
  --cream:  #f6f0e2;   /* tło */
  --paper:  #fffaf0;   /* karty */
  --bark:   #7a5233;   /* drewno */
  --ochre:  #d4943a;   /* słońce – wyróżnienia */
  --ink:    #26302a;   /* tekst */
  --muted:  #5d685f;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(38, 48, 42, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--font-head); color: var(--forest); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1100px, 92vw); margin-inline: auto; }
.narrow { width: min(760px, 92vw); margin-inline: auto; }
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

/* ---------- nagłówek ---------- */
#site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 240, 226, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 74, 54, .12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--forest); font-family: var(--font-head); line-height: 1.05; font-size: 1rem; }
.logo svg { width: 38px; height: 38px; }
.logo b { font-size: 1.15rem; }
#main-nav { display: flex; gap: .3rem; }
#main-nav a {
  text-decoration: none; font-weight: 700; color: var(--ink);
  padding: .45rem .9rem; border-radius: 999px; transition: background .2s;
}
#main-nav a:hover { background: rgba(107, 143, 78, .18); }
#main-nav a[aria-current="page"] { background: var(--forest); color: var(--cream); }
.menu-toggle { display: none; font: inherit; font-weight: 700; background: var(--forest); color: var(--cream); border: 0; border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  #main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--cream); padding: .5rem 4vw 1rem; border-bottom: 1px solid rgba(47,74,54,.15); }
  #main-nav.open { display: flex; }
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--forest); color: var(--cream);
  text-decoration: none; font-weight: 800;
  padding: .85rem 1.5rem; border-radius: 999px;
  box-shadow: var(--shadow); transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: #243a2a; }
.btn.alt { background: var(--ochre); color: #2a1c0c; }
.btn.alt:hover { background: #c4842c; }
.btn.ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn.soon, a.soon { opacity: .55; cursor: default; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* ---------- strona główna ---------- */
.hero { text-align: center; padding-bottom: 1rem; }
.hero .lead { font-size: 1.2rem; max-width: 640px; margin: 0 auto; color: var(--muted); }
.eyebrow { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--bark); margin-bottom: .6rem; }

.map-card {
  background: var(--paper); border-radius: 28px; padding: clamp(.6rem, 2vw, 1.2rem);
  box-shadow: var(--shadow); border: 1px solid rgba(122, 82, 51, .15);
}
.village-map { width: 100%; height: auto; display: block; border-radius: 20px; }
.village-map .building { cursor: pointer; }
.village-map .building .body { transition: transform .25s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.village-map .building:hover .body,
.village-map .building:focus .body { transform: translateY(-6px) scale(1.04); }
.village-map .building:focus { outline: none; }
.village-map .label rect { fill: var(--paper); stroke: var(--bark); stroke-width: 2; transition: fill .2s; }
.village-map .label text { font-family: var(--font-head); font-weight: 600; font-size: 23px; fill: var(--forest); text-anchor: middle; }
.village-map .building:hover .label rect,
.village-map .building:focus .label rect { fill: var(--ochre); }
.map-hint { text-align: center; color: var(--muted); font-size: .95rem; margin: .8rem 0 0; }

/* mapa (pionowa, jak plan osady), pod nią przyciski z nazwami miejsc */
.map-layout { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .map-layout { max-width: 760px; margin: 0 auto; }
}
.places-title { text-align: center; margin: .5rem 0 -.5rem; }
.places-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.places-chips .chip {
  background: var(--paper); color: var(--forest); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .5rem 1rem; border-radius: 999px; box-shadow: var(--shadow);
  border: 2px solid transparent; transition: border-color .2s, transform .2s;
}
.places-chips .chip:hover { border-color: var(--moss); transform: translateY(-2px); }

.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 2rem; }
.place {
  background: var(--paper); border-radius: var(--radius); padding: 1.2rem 1.3rem;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  border-top: 5px solid var(--moss); transition: transform .2s;
}
.place:hover { transform: translateY(-4px); }
.place h3 { margin-bottom: .2rem; }
.place p { margin: 0; color: var(--muted); font-size: .95rem; }

.cta-band { background: var(--forest); color: var(--cream); }
.cta-band h2 { color: var(--cream); }
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.cta-grid p { color: #dfe6d6; }

/* ---------- podstrony ---------- */
.page-head { padding-bottom: 1rem; }
.page-head .lead { font-size: 1.2rem; color: var(--muted); }
.card { background: var(--paper); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.card h2 { font-size: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: .5rem; }
.checklist li::before { content: "🌿"; position: absolute; left: 0; }
.note { background: #fdf1d9; border-left: 5px solid var(--ochre); padding: .9rem 1.2rem; border-radius: 10px; font-size: .97rem; }

.photo-placeholder {
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #e9e1cd 0 14px, #efe8d6 14px 28px);
  display: grid; place-items: center; color: var(--muted); font-weight: 700; text-align: center; padding: 1rem;
  margin-bottom: 1.5rem;
}
.building-art { max-width: 320px; margin: 0 auto 1.5rem; }
.back { display: inline-block; margin-top: 1rem; font-weight: 700; }

.contact-list { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s; }
a.contact-item:hover { transform: translateX(4px); }
.contact-item svg { width: 34px; height: 34px; flex: none; fill: var(--forest); }
.contact-item strong { display: block; color: var(--forest); font-family: var(--font-head); font-size: 1.15rem; }
.contact-item span { color: var(--muted); }
.map-embed { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- stopka ---------- */
#site-footer { background: #1f3125; color: #cfd8c8; padding: 2.5rem 0; font-size: .95rem; }
#site-footer a { color: #f0e6cc; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.social { display: flex; gap: .6rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .2s; }
.social a:hover { background: var(--ochre); }
.social svg { width: 22px; height: 22px; fill: #f0e6cc; }

/* ---------- zdjęcia ---------- */
.photo { width: 100%; max-height: 620px; object-fit: cover; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.photo-side { float: right; width: 38%; max-width: 240px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 70%; margin: 0 0 1rem 1.5rem; box-shadow: var(--shadow); }
.card::after { content: ""; display: block; clear: both; }
.wide-photo { margin: 0; position: relative; }
.wide-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; box-shadow: var(--shadow); }
.wide-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(31, 49, 37, .8); color: var(--cream); padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 700; }
@media (max-width: 560px) { .photo-side { float: none; display: block; width: 70%; max-width: 260px; margin: 0 auto 1.2rem; } .wide-photo img { aspect-ratio: 4/3; } }

.logo-img { width: min(340px, 80%); border-radius: 0; margin: .3rem 0 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- mapa na stronie Kontakt ---------- */
.map-box { display: flex; flex-direction: column; gap: .8rem; }
.map-tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.map-tools button {
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  background: var(--paper); color: var(--forest); border: 2px solid var(--forest);
  border-radius: 999px; padding: .35rem .9rem; transition: background .2s, color .2s;
}
.map-tools button:hover { background: rgba(47,74,54,.12); }
.map-tools button[aria-pressed="true"] { background: var(--forest); color: var(--cream); }
.map-tools[role="group"] button { font-size: .85rem; padding: .25rem .8rem; border-width: 1.5px; }
#mapa { aspect-ratio: auto; height: 440px; z-index: 0; }
.map-hint-small { margin: 0; font-size: .9rem; color: var(--muted); }
.map-box .btn { align-self: flex-start; }
.osada-pin { background: none; border: 0; filter: drop-shadow(0 3px 3px rgba(0,0,0,.3)); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-container a { color: var(--forest); }
.leaflet-bar a { width: 36px !important; height: 36px !important; line-height: 36px !important; font-size: 22px !important; }

/* ---------- dane do przelewu (strona Pomóż) ---------- */
.transfer { scroll-margin-top: 90px; }
.transfer-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.transfer-head h2 { margin: 0; }
.transfer-head p { margin: 0; color: var(--muted); }
.transfer-icon { font-size: 2.2rem; width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: #fdf1d9; border-radius: 50%; }
.transfer-data { margin: 0 0 1rem; display: grid; gap: .6rem; }
.transfer-data .row { background: var(--cream); border-radius: 12px; padding: .75rem 1rem; display: grid; grid-template-columns: 140px 1fr; gap: .3rem 1rem; align-items: center; }
.transfer-data dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--bark); }
.transfer-data dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 700; }
.account { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.08rem; letter-spacing: .02em; word-spacing: .1em; }
.account.small { font-size: .9rem; font-weight: 600; }
.copy-btn { font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; border: 0; border-radius: 999px; padding: .35rem .9rem; background: var(--forest); color: var(--cream); transition: background .2s; white-space: nowrap; }
.copy-btn:hover { background: #243a2a; }
.copy-btn.copied { background: var(--moss); }
.transfer-foot { font-size: .92rem; color: var(--muted); }
@media (max-width: 560px) { .transfer-data .row { grid-template-columns: 1fr; } .transfer-data .account { font-size: .84rem; white-space: nowrap; letter-spacing: 0; word-spacing: 0; } .transfer-foot .account { font-size: .78rem; white-space: nowrap; } }

/* ---------- wybór sposobu wsparcia (strona Pomóż) ---------- */
.choose-title { font-size: 1.35rem; margin-bottom: .9rem; }
.give-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.give-option {
  display: flex; flex-direction: column; gap: .25rem; text-decoration: none; color: var(--ink);
  background: var(--paper); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow);
  border: 2px solid transparent; transition: transform .2s, border-color .2s;
}
.give-option[hidden] { display: none; }
.give-option:hover { transform: translateY(-3px); border-color: var(--moss); }
.give-option strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--forest); font-weight: 600; }
.give-option span { color: var(--muted); font-size: .95rem; }
.give-icon { font-size: 1.8rem; line-height: 1; margin-bottom: .3rem; }
.give-option .give-cta { margin-top: auto; padding-top: .7rem; color: var(--forest); font-weight: 800; }
.other-help { text-align: center; color: var(--muted); font-size: .98rem; margin-top: 2rem; }
