/* TON – Towarzystwo Osób Niesłyszących – style */
:root {
  --ink: #12262c;
  --ink-2: #3c5359;
  --muted: #5d7177;
  --bg: #fbf8f3;
  --surface: #ffffff;
  --tint: #eef5f3;
  --line: #dde6e4;
  --primary: #0f4c5c;
  --primary-2: #0b3a46;
  --accent: #f2a541;
  --accent-2: #e36414;
  --teal: #2a9d8f;
  --dark: #0c2f38;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(12, 47, 56, .25);
  --focus: #f2a541;
  --fs: 1.0625rem;
  font-size: 100%;
}
html[data-fs="1"] { font-size: 115%; }
html[data-fs="2"] { font-size: 130%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 1rem; color: #fff; }

/* Pasek dostępności */
.a11y-bar { background: var(--dark); color: #d9e7e6; font-size: .9rem; }
.a11y-inner { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .45rem 0; }
.a11y-label { font-weight: 700; }
.a11y-group { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; overflow: hidden; }
.a11y-group button, .contrast-btn {
  font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer;
  padding: .3rem .8rem; line-height: 1.2; font-weight: 700;
}
.a11y-group button + button { border-left: 1px solid rgba(255,255,255,.25); }
.a11y-group .fs1 { font-size: 1.1em; }
.a11y-group .fs2 { font-size: 1.22em; }
.a11y-group button[aria-pressed="true"] { background: var(--accent); color: var(--dark); }
.contrast-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; }
.contrast-btn svg { width: 1.1em; height: 1.1em; }
.contrast-btn[aria-pressed="true"] { background: #ff0; color: #000; }
.a11y-pjm { margin-left: auto; opacity: .85; }

/* Nagłówek */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--teal)); color: #fff;
  font-weight: 800; font-size: .95rem; letter-spacing: .06em;
  box-shadow: inset 0 -4px 0 var(--accent);
}
.brand-mark-sm { width: 2.3rem; height: 2.3rem; border-radius: 10px; font-size: .75rem; }
.brand-logo { width: 3.4rem; height: 3.4rem; border-radius: 50%; flex-shrink: 0; box-shadow: 0 2px 8px rgba(12,47,56,.2); }
.brand-logo-sm { width: 2.6rem; height: 2.6rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; }
@media (min-width: 1001px) and (max-width: 1180px) { .brand-text small { display: none; } .nav a { padding-inline: .55rem; } }
.brand-text small { color: var(--muted); font-size: .82rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; align-items: center; }
.nav a {
  display: block; padding: .5rem .75rem; border-radius: 10px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .97rem; white-space: nowrap;
}
.nav a:hover, .nav a.active { background: var(--tint); color: var(--primary); }
.nav a.nav-cta { background: var(--primary); color: #fff; padding-inline: 1rem; }
.nav a.nav-cta:hover { background: var(--primary-2); color: #fff; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem; font: inherit; font-weight: 700;
  background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: .55rem .9rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; }
  .nav a { padding: .8rem 1rem; font-size: 1.05rem; }
  .brand-text small { display: none; }
}
@media (max-width: 560px) { .a11y-pjm { display: none; } .brand-text strong { font-size: .92rem; } }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); color: #fff; }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: #ffb95c; color: var(--dark); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent-2); margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,157,143,.18), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
.hl { background: linear-gradient(transparent 62%, rgba(242,165,65,.55) 62%); padding: 0 .1em; }
.hl-2 { background: linear-gradient(transparent 62%, rgba(42,157,143,.35) 62%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1.6rem; }
.hero-social { list-style: none; padding: 0; margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.hero-social a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem;
}
.hero-social a:hover { border-color: var(--primary); color: var(--primary); }
.hero-social svg { width: 18px; height: 18px; fill: currentColor; }

.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 40%;
  border-radius: 28px; box-shadow: var(--shadow); border: 6px solid #fff;
}
.hero-photo figcaption {
  position: absolute; left: -1.2rem; bottom: -1.2rem; background: var(--accent); color: var(--dark);
  padding: .8rem 1.2rem; border-radius: 18px; font-weight: 700; box-shadow: var(--shadow); line-height: 1.2;
}
.hero-photo figcaption strong { display: block; font-size: 1.8rem; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo figcaption { left: 1rem; bottom: -1rem; }
}

/* Liczby */
.stats { padding: 1rem 0 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--surface); padding: 1.4rem 1.5rem; }
.stat strong { display: block; font-size: 1.9rem; color: var(--primary); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Sekcje */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: #e3efee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--accent); }
.section-dark a { color: #ffd08a; }
.section-head { max-width: 780px; margin-bottom: 2.5rem; }
.lead-light { color: #b9cfcd; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 5vw, 4rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose { font-size: 1.08rem; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose-light { color: #c9dcda; }
.prose-light strong { color: #fff; }

/* Działania */
.centers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.center-card {
  background: linear-gradient(135deg, var(--primary), #13697a); color: #fff; padding: 1.8rem;
  border-radius: var(--radius); display: grid; grid-template-columns: auto 1fr; column-gap: 1.1rem; align-items: center;
}
.center-card h3 { color: #fff; margin: 0; font-size: 1.3rem; }
.center-card p { margin: 0; color: #cfe6e4; grid-column: 2; }
.center-icon { grid-row: span 2; width: 3.4rem; height: 3.4rem; border-radius: 14px; background: var(--accent); display: grid; place-items: center; }
.center-icon svg { width: 1.8rem; height: 1.8rem; fill: var(--dark); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .centers, .cols-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.chips { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--tint); color: var(--primary); font-weight: 700; padding: .45rem .9rem; border-radius: 999px; font-size: .95rem; }
.support {
  margin-top: 1.25rem; display: flex; align-items: center; gap: 1.5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.6rem;
}
.support img { width: 200px; flex-shrink: 0; }
.support p { margin: 0; }
.tag { color: var(--accent-2); font-weight: 700; }
@media (max-width: 600px) { .support { flex-direction: column; align-items: flex-start; } }

/* Głusi */
.glusi-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .glusi-grid { grid-template-columns: 1fr; } }
.tips { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.8rem; }
.tips ol { list-style: none; counter-reset: t; padding: 0; margin: 0 0 1.2rem; }
.tips li { counter-increment: t; position: relative; padding-left: 2.8rem; margin-bottom: 1rem; color: #c9dcda; }
.tips li strong { color: #fff; }
.tips li::before {
  content: counter(t); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--dark); font-weight: 800; display: grid; place-items: center;
}
.tips-cta { color: #c9dcda; }

/* Zarząd */
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.4rem; text-align: center; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin-bottom: 1rem; background: var(--tint); }
.person h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.person p { margin: 0; color: var(--accent-2); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .people { grid-template-columns: repeat(2, 1fr); } }

/* Fundacja */
.fund-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.fund-logo { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
@media (max-width: 800px) { .fund-head { grid-template-columns: 1fr; } }
.fund-goals { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; }
.fund-goals summary {
  cursor: pointer; font-weight: 700; font-size: 1.1rem; padding: 1.2rem 1.6rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.fund-goals summary::-webkit-details-marker { display: none; }
.fund-goals summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--primary); }
.fund-goals[open] summary::after { content: "−"; }
.goals { columns: 2 300px; column-gap: 2.5rem; margin: 0; padding: 0 1.6rem 1.6rem 3rem; }
.goals li { break-inside: avoid; margin-bottom: .6rem; color: var(--ink-2); }
.goals li::marker { color: var(--teal); }

/* Linki */
.links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.links a {
  height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: .8rem;
  padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s;
}
.links a:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--ink); }
.links-title { font-weight: 700; font-size: 1.05rem; }
.links-host { color: var(--teal); font-size: .9rem; font-weight: 600; }
.links-host::after { content: " ↗"; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.contact-card {
  display: flex; gap: 1.3rem; align-items: center; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.4rem;
}
.contact-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); flex-shrink: 0; }
.contact-card h3 { margin-bottom: .1rem; }
.contact-card .muted { color: #9fbab8; margin-bottom: .6rem; }
.section-dark .contact-line { display: block; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; padding: .15rem 0; word-break: break-word; }
.section-dark .contact-line:hover { color: var(--accent); }
.contact-line span { color: var(--accent); display: inline-block; width: 1.4rem; }
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.info-block { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.5rem; }
.section-dark .info-block h3 { color: var(--primary); font-size: 1.05rem; }
.info-block address { font-style: normal; margin-bottom: .8rem; }
.section-dark .info-block a { color: var(--primary); font-weight: 700; }
.info-block .muted { margin-bottom: .3rem; }
.reg { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.reg dt { font-weight: 700; color: var(--muted); }
.reg dd { margin: 0; font-variant-numeric: tabular-nums; }
.account { font-weight: 800; font-size: 1.08rem; font-variant-numeric: tabular-nums; margin-bottom: .8rem; }
.copy-btn { font: inherit; font-weight: 700; background: var(--tint); color: var(--primary); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
.copy-btn:hover { background: var(--primary); color: #fff; }
@media (max-width: 900px) { .contact-grid, .contact-info { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .contact-card { flex-direction: column; align-items: flex-start; } }

/* Stopka */
.site-footer { background: #081f25; color: #a9c1bf; padding: 2.5rem 0 1rem; font-size: .95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 700; margin-bottom: .3rem; }
.site-footer .muted { color: #86a19f; margin: 0; }
.footer-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-social a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-social a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.8rem; padding-top: 1rem; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #86a19f; }

/* Pojawianie się przy przewijaniu */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Wersja kontrastowa (czarno-żółta) ===== */
html[data-contrast="high"] body,
html[data-contrast="high"] .site-header,
html[data-contrast="high"] .a11y-bar,
html[data-contrast="high"] .section,
html[data-contrast="high"] .site-footer,
html[data-contrast="high"] .card,
html[data-contrast="high"] .stat,
html[data-contrast="high"] .person,
html[data-contrast="high"] .support,
html[data-contrast="high"] .links a,
html[data-contrast="high"] .fund-goals,
html[data-contrast="high"] .tips,
html[data-contrast="high"] .contact-card,
html[data-contrast="high"] .info-block,
html[data-contrast="high"] .center-card,
html[data-contrast="high"] .nav,
html[data-contrast="high"] .hero-social a,
html[data-contrast="high"] .chips li,
html[data-contrast="high"] .copy-btn {
  background: #000 !important; color: #ff0 !important; border-color: #ff0 !important; box-shadow: none !important;
}
html[data-contrast="high"] * { color: #ff0 !important; text-shadow: none !important; }
html[data-contrast="high"] a { text-decoration: underline !important; }
html[data-contrast="high"] .btn,
html[data-contrast="high"] .nav a.nav-cta,
html[data-contrast="high"] .nav-toggle,
html[data-contrast="high"] .brand-mark,
html[data-contrast="high"] .center-icon,
html[data-contrast="high"] .tips li::before,
html[data-contrast="high"] .hero-photo figcaption,
html[data-contrast="high"] .a11y-group button[aria-pressed="true"],
html[data-contrast="high"] .contrast-btn[aria-pressed="true"] {
  background: #ff0 !important; color: #000 !important; border-color: #ff0 !important; box-shadow: none !important;
}
html[data-contrast="high"] .btn *, html[data-contrast="high"] .hero-photo figcaption *,
html[data-contrast="high"] .a11y-group button[aria-pressed="true"], html[data-contrast="high"] .contrast-btn[aria-pressed="true"] * { color: #000 !important; }
html[data-contrast="high"] .btn, html[data-contrast="high"] .nav a.nav-cta, html[data-contrast="high"] .brand-mark { color: #000 !important; }
html[data-contrast="high"] .center-icon svg { fill: #000 !important; }
html[data-contrast="high"] .hl, html[data-contrast="high"] .hl-2 { background: none !important; text-decoration: underline; }
html[data-contrast="high"] .hero::before { display: none; }
html[data-contrast="high"] .stats-grid { background: #ff0; border-color: #ff0; }
html[data-contrast="high"] .ticks li::before { background-color: #ff0 !important; filter: invert(1); }
html[data-contrast="high"] .nav-toggle-bars, html[data-contrast="high"] .nav-toggle-bars::before, html[data-contrast="high"] .nav-toggle-bars::after { background: #000 !important; }
html[data-contrast="high"] .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent !important; }
html[data-contrast="high"] :focus-visible { outline-color: #fff; }
html[data-contrast="high"] .reveal { opacity: 1; transform: none; }

.about-logo { width: min(260px, 70%); border-radius: 50%; margin-top: 1.5rem; box-shadow: var(--shadow); }
