/* =========================================================
   Fundacja Od Nowa – arkusz stylów
   Kolory z logotypu: złoto pędzla + czerń; ciepła biel tła.
   ========================================================= */
:root {
  --gold: #c39b3e;
  --gold-2: #a9832f;
  --gold-text: #8a6a21;
  --gold-soft: #ecdcb4;
  --gold-tint: #fbf7ec;
  --ink: #17171a;
  --ink-2: #2a2a2f;
  --ink-3: #4b4b52;
  --muted: #6b6b73;
  --line: #e6e2d9;
  --paper: #ffffff;
  --paper-2: #f8f6f1;
  --font-head: 'Montserrat', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(23, 23, 26, .07);
  --max: 1160px;
  --brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath fill='%23c39b3e' d='M1 10.5C22 6.2 46 4.8 70 5.4c30 .8 58-2.6 88-3.1 14-.2 28 .4 41 1.9l-.6 4.6c-13-1.1-27-1.4-41-.9-30 1-58 4.6-88 4.2-24-.3-48 .6-69 3.4z'/%3E%3Cpath fill='%23c39b3e' opacity='.5' d='M8 13.8c26-3 52-4.2 78-3.6 32 .7 64-2.2 96-2.4l.2 2.3c-32 .6-64 3.5-96 3-26-.4-52 .9-78 3.2z'/%3E%3C/svg%3E");
}

/* ---------- bazowe ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
strong { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 1rem; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #d6d5d0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark strong { color: #fff; }
.section-dark a { color: var(--gold); }
.section-dark a:hover { color: #fff; }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.eyebrow { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .9rem; }
.section-dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.2rem; line-height: 1.6; }
.measure { max-width: 64ch; }
.center { text-align: center; }
.center .measure { margin-inline: auto; }
.section-head { max-width: 68ch; margin-bottom: 2.2rem; }
.note { font-size: .92rem; color: var(--muted); }
.soon { color: var(--muted); font-style: italic; }
.section-dark .soon { color: #a9a8a2; }

.brush { background-image: var(--brush); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% .34em; padding: 0 .06em .1em; }
.statement {
  font-family: var(--font-head); font-weight: 600; font-size: 1.28rem; line-height: 1.45; color: var(--ink);
  border-left: 4px solid var(--gold); padding: .35rem 0 .35rem 1.2rem; margin: 1.8rem 0;
}
.section-dark .statement { color: #fff; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid var(--gold);
  background: var(--gold); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: .88rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--ink); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.section-dark .btn-ghost { border-color: #fff; color: #fff; }
.section-dark .btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .6rem 1.15rem; font-size: .78rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; margin-top: 1.8rem; }
.actions-center { justify-content: center; }
.link-more { font-family: var(--font-head); font-weight: 700; font-size: .92rem; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-more svg { width: 18px; height: 18px; transition: transform .2s; }
.link-more:hover svg { transform: translateX(3px); }

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(23, 23, 26, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.7rem; }
.site-nav a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none;
  padding: .45rem 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; border-radius: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .header-inner { min-height: 66px; }
  .brand img { height: 40px; }
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(23, 23, 26, .1); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: min(100% - 2rem, var(--max)); margin-inline: auto; padding: .5rem 0 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--gold-text); }
  .nav-cta { padding-top: 1rem; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- hero (strona główna) ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem); overflow: hidden; position: relative; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }
.hero h1 { margin-bottom: 1.2rem; max-width: 14ch; }
.hero .lead { max-width: 58ch; }
.hero .lead strong { font-size: 1.05em; }
.hero-art { position: relative; }
.hero-art img { width: min(100%, 520px); margin-inline: auto; }
.hero-art::before { content: ""; position: absolute; inset: 8% 0 4%; background: radial-gradient(closest-side, rgba(195, 155, 62, .17), transparent 72%); z-index: -1; }
@media (max-width: 879px) { .hero-art { order: -1; } .hero-art img { width: min(72%, 380px); } .hero h1 { max-width: none; } }

/* ---------- nagłówek podstrony ---------- */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding-block: clamp(2.6rem, 6vw, 4.6rem); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -2%; top: -12%; width: clamp(180px, 26vw, 360px); aspect-ratio: 279 / 249; background: url(/assets/img/znak-n.webp) no-repeat center / contain; opacity: .09; pointer-events: none; }
.page-head h1 { max-width: 22ch; }
.page-head .lead { max-width: 62ch; }
.page-head .wrap { position: relative; }

/* ---------- układy ---------- */
.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } .two-col.narrow-right { grid-template-columns: 1.3fr 1fr; } }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child, .prose .eyebrow + h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45rem; }
.side-art img { width: min(100%, 440px); margin-inline: auto; }

/* ---------- karty ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.section-dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.card .icon, .contact-card .icon, .area .icon { width: 58px; height: 58px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-text); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card .icon svg, .contact-card .icon svg, .area .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-3); }
.card .link-more { margin-top: 1rem; }

/* obszary pomocy (jak-pomagamy) */
.areas { display: grid; gap: 1.5rem; }
.area { display: grid; gap: 1.2rem; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
@media (min-width: 760px) { .area { grid-template-columns: 58px 1fr; } }
.area .icon { margin-bottom: 0; }
.area h2 { font-size: 1.45rem; margin-bottom: .5rem; }
.area ul { padding-left: 1.2rem; margin: .8rem 0 0; color: var(--ink-3); }
.area li { margin-bottom: .35rem; }

/* lista z „ptaszkami" */
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.15rem; }
.section-dark .check-list li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.check-list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--gold); margin-top: .15rem; stroke-width: 2.4; }

/* ludzie */
.people { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2rem; }
.person { display: flex; gap: 1.2rem; align-items: flex-start; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.4rem; }
.avatar { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 50%; background: #2a2a2f; border: 2px solid var(--gold); display: grid; place-items: center; color: var(--gold); overflow: hidden; }
.avatar svg { width: 38px; height: 38px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: .15rem 0 .2rem; font-size: 1.12rem; }
.person .role { color: var(--gold); font-family: var(--font-head); font-weight: 600; font-size: .86rem; margin-bottom: .55rem; }
.person p { font-size: .98rem; }

/* etykiety */
.tags { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.tags li { border: 1px solid var(--gold-soft); color: var(--gold-text); background: #fff; border-radius: 999px; padding: .4rem .95rem; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }

/* kroki */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: krok; }
.steps li { counter-increment: krok; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.steps li::before { content: counter(krok); display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.steps p { color: var(--ink-3); }

/* komunikat */
.alert { display: flex; gap: .9rem; align-items: flex-start; border-left: 5px solid var(--gold); background: var(--gold-tint); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 0 0 2rem; }
.alert svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--gold-text); margin-top: .1rem; }
.alert p { margin: 0; }

/* telefony zaufania */
.helplines { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.helplines li { border: 1px solid var(--line); border-radius: 12px; padding: 1.15rem 1.25rem; background: #fff; }
.helplines .num { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--ink); text-decoration: none; display: inline-block; letter-spacing: .01em; }
.helplines .num:hover { color: var(--gold-text); }
.helplines .who { display: block; font-weight: 700; color: var(--ink); margin: .3rem 0 .15rem; }
.helplines .when { display: block; color: var(--muted); font-size: .92rem; }

/* kontakt */
.contact-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-card a:hover { text-decoration: underline; }
.data-list { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.data-list dt { font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.data-list dd { margin: 0; }
@media (max-width: 480px) { .data-list { grid-template-columns: 1fr; gap: .1rem; } .data-list dd { margin-bottom: .7rem; } }

/* wezwanie do działania */
.cta { background: linear-gradient(135deg, var(--gold-tint), #f4ead2); border: 1px solid var(--gold-soft); border-radius: 22px; padding: clamp(2rem, 5vw, 3.6rem) clamp(1.25rem, 5vw, 3rem); text-align: center; position: relative; overflow: hidden; }
.cta > * { position: relative; }
.cta::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 280px; height: 250px; background: url(/assets/img/znak-n.webp) no-repeat center / contain; opacity: .09; pointer-events: none; }
.cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta .lead { max-width: 58ch; margin-inline: auto; }
.cta p { max-width: 58ch; margin-inline: auto; }

/* ---------- stopka ---------- */
.site-footer { background: var(--ink); color: #c9c8c3; padding-block: 3.5rem 1.8rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr .8fr 1.1fr; gap: 3rem; } }
.footer-brand img { width: min(100%, 250px); margin-bottom: 1.3rem; }
.footer-brand p { max-width: 42ch; }
.footer-h { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; font-weight: 700; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: .5rem; }
.footer-k { display: inline-block; min-width: 4.4rem; color: #8f8e89; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-head); font-weight: 600; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-alarm { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: center; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.tagline { font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; color: #fff; }
.tagline span { color: var(--gold); margin-inline: .4rem; }

/* ---------- 404 ---------- */
.page-404 .section { text-align: center; }
.page-404 .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); color: var(--gold); line-height: 1; margin: 0 0 .5rem; }

@media print {
  .site-header, .site-footer, .actions, .nav-toggle { display: none !important; }
  body { color: #000; }
}

/* ---------- poprawki po przeglądzie ---------- */
.site-footer strong { color: #fff; }
.cards-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
