/* PSI – Ogólnopolska Koalicja Środowisk Psychologicznych */

:root {
  --navy: #0f2a3a;
  --navy-2: #163b50;
  --teal: #1b7f86;
  --teal-soft: #e3f1f1;
  --gold: #c99a45;
  --gold-soft: #f6eddc;
  --ink: #14212a;
  --muted: #5a6b75;
  --line: #e4e8ea;
  --bg: #ffffff;
  --bg-alt: #f5f7f7;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 42, 58, .04), 0 8px 24px rgba(15, 42, 58, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Pasek wersji testowej */
.draft-bar {
  background: var(--gold-soft); color: #6b4f1d; font-size: 13.5px; text-align: center; padding: 7px 16px;
  border-bottom: 1px solid #ecdcbc;
}

/* Nagłówek */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); margin-right: auto; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: #fff; display: grid; place-items: center; font: 600 26px/1 var(--font-display);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 19px; letter-spacing: .08em; }
.logo-text span { font-size: 12px; color: var(--muted); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-size: 15px; font-weight: 500;
}
.main-nav a:hover { background: var(--bg-alt); }
.main-nav a[aria-current="page"] { color: var(--teal); background: var(--teal-soft); }
.main-nav a.nav-cta { background: var(--navy); color: #fff; margin-left: 8px; }
.main-nav a.nav-cta:hover { background: var(--navy-2); }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; background: var(--navy); position: relative; content: ""; transition: .2s;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .main-nav a { padding: 12px 14px; border-radius: 12px; }
  .main-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .logo-text span { display: none; }
}

/* Typografia */
h1, h2, h3 { color: var(--navy); margin: 0; }
h1 { font: 600 clamp(38px, 6vw, 68px)/1.05 var(--font-display); letter-spacing: -.02em; }
h2 { font: 600 clamp(30px, 3.8vw, 44px)/1.12 var(--font-display); letter-spacing: -.015em; }
h3 { font-size: 19px; line-height: 1.35; font-weight: 650; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow::after { content: "→"; transition: transform .15s; }
a:hover > .arrow::after, .arrow:hover::after { transform: translateX(3px); }

/* Sekcje */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .lead { margin: 16px 0 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* Hero (strona główna) */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 104px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(27,127,134,.16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(201,154,69,.14), transparent 60%),
    #fbfcfc;
}
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.8vw, 60px); }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero h1 .gold { color: var(--gold); }
.hero .lead { margin: 26px 0 36px; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } .hero { padding: 64px 0 72px; } }

.psi-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 12px;
}
.psi-row { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: 16px; }
.psi-row + .psi-row { border-top: 1px dashed var(--line); border-radius: 0; }
.psi-letter {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font: 600 34px/1 var(--font-display); color: #fff;
}
.psi-row:nth-child(1) .psi-letter { background: var(--navy); }
.psi-row:nth-child(2) .psi-letter { background: var(--teal); }
.psi-row:nth-child(3) .psi-letter { background: var(--gold); }
.psi-row h3 { font-size: 20px; }
.psi-row p { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Nagłówek podstrony */
.page-hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(27,127,134,.14), transparent 60%),
    var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero .lead { margin: 20px 0 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }

/* Siatki i karty */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: #cfd8db; box-shadow: var(--shadow); transform: translateY(-2px); }
.card .num { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--gold); margin-bottom: 14px; }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--teal-soft); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card .more { display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--teal); }

/* Pigułki obszarów */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 500; font-size: 15px; color: var(--navy);
}

/* Dwie kolumny tekstu */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.split .prose p:first-child { margin-top: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.prose p { margin: 0 0 18px; }
.prose { max-width: 70ch; }

/* Cytat */
.quote {
  margin: 0; padding: 40px 44px; border-radius: 24px; position: relative;
  background: var(--navy); color: #fff;
  font: 500 clamp(21px, 2.6vw, 28px)/1.45 var(--font-display);
}
.quote::before {
  content: "“"; position: absolute; top: -8px; left: 28px; font: 120px/1 var(--font-display); color: var(--gold); opacity: .6;
}
.quote footer { margin-top: 18px; font: 500 14px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #a9c3cc; }

/* Zasady */
.principles { counter-reset: p; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); font: 600 22px/1.2 var(--font-display); color: var(--gold); }
.principles h3 { margin-bottom: 6px; }
.principles p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

/* Lista działań */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.checklist li { position: relative; padding-left: 36px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b7f86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

/* Aktualności / dokumenty */
.post { display: flex; flex-direction: column; height: 100%; }
.post .meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--teal-soft); color: var(--teal); }
.tag.gold { background: var(--gold-soft); color: #8a6420; }
.tag.placeholder { background: #eef0f1; color: var(--muted); }
.doc-list { display: grid; gap: 12px; }
.doc {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; align-items: center;
  padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.doc .ext { width: 52px; height: 52px; border-radius: 12px; background: var(--gold-soft); color: #8a6420; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.doc h3 { font-size: 17px; }
.doc .meta { font-size: 14px; color: var(--muted); margin-top: 4px; }
@media (max-width: 600px) { .doc { grid-template-columns: 44px 1fr; } .doc .btn { grid-column: 1 / -1; justify-content: center; } .doc .ext { width: 44px; height: 44px; } }

/* Pusty stan */
.empty {
  border: 2px dashed var(--line); border-radius: 20px; padding: 48px 32px; text-align: center; background: #fff;
}
.empty h3 { margin-bottom: 8px; }
.empty p { margin: 0 auto 24px; color: var(--muted); max-width: 52ch; }

/* Kroki */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 18px;
}
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Formularz */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 12px; border: 1px solid #d3dbde; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--teal-soft); border-color: var(--teal); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { margin-top: 4px; }
.notice { padding: 14px 18px; border-radius: 12px; background: var(--gold-soft); color: #6b4f1d; font-size: 14.5px; }

/* Pasek CTA */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, #1d5a6b 100%);
  color: #fff; border-radius: 28px; padding: 64px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta-band::after {
  content: "Ψ"; position: absolute; right: 24px; bottom: -90px; font: 320px/1 var(--font-display); color: rgba(255,255,255,.05); pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d7dd; margin: 14px 0 0; max-width: 56ch; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } }

/* Motto */
.motto { text-align: center; font: 600 clamp(26px, 3.6vw, 40px)/1.3 var(--font-display); color: var(--navy); }
.motto span { display: block; }
.motto span:nth-child(2) { color: var(--teal); }
.motto span:nth-child(3) { color: var(--gold); }

/* Rozwijany tekst */
details.doc-text { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 28px; }
details.doc-text summary { cursor: pointer; padding: 22px 0; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; }
details.doc-text summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--teal); }
details.doc-text[open] summary::after { content: "–"; }
details.doc-text[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 24px; }
details.doc-text .prose { font: 18px/1.75 var(--font-display); padding-bottom: 12px; }

/* Stopka */
.site-footer { background: var(--navy); color: #c7d7dd; padding: 72px 0 32px; margin-top: 0; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo-text span { color: #a9c3cc; display: block; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #8fabb5; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Animacja wejścia */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Przekonania */
.stance { padding: 32px 28px; border-radius: var(--radius); background: var(--bg-alt); border-top: 4px solid var(--teal); }
.stance:nth-child(2) { border-top-color: var(--gold); }
.stance:nth-child(3) { border-top-color: var(--navy); }
.stance h3 { font: 600 22px/1.3 var(--font-display); }
.stance p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; }

/* Monitor legislacyjny */
a.doc-link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.doc-link:hover { border-color: #cfd8db; box-shadow: var(--shadow); }
.doc .ext { font-size: 10px; letter-spacing: .04em; text-align: center; line-height: 1.1; padding: 2px; }
@media (max-width: 600px) { .doc > .tag { grid-column: 2; justify-self: start; } }
.law { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.law-head { padding: 28px 32px; background: var(--navy); }
.law-head h3 { color: #fff; font: 600 clamp(20px, 2.4vw, 26px)/1.3 var(--font-display); margin-top: 12px; }
.law-body { display: grid; grid-template-columns: repeat(3, 1fr); }
.law-body > div { padding: 28px 32px; }
.law-body > div + div { border-left: 1px solid var(--line); }
.law-body h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.law-body p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .law-body { grid-template-columns: 1fr; } .law-body > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Poziomy interesów */
.levels { display: grid; gap: 12px; }
.level { display: grid; grid-template-columns: 56px 1fr auto; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.level .lvl { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 600 24px/1 var(--font-display); color: #fff; background: var(--teal); }
.level:nth-child(2) .lvl { background: var(--navy); }
.level:nth-child(3) .lvl { background: var(--gold); }
.level p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 700px) { .level { grid-template-columns: 44px 1fr; } .level .lvl { width: 44px; height: 44px; font-size: 20px; } .level > .tag { grid-column: 2; justify-self: start; } }

.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .steps.steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps.steps-4 { grid-template-columns: 1fr; } }
.post .byline { margin-top: auto; padding-top: 16px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
.post p + .byline { margin-top: auto; }

.law-meta { margin: 10px 0 0; color: #a9c3cc; font-size: 14.5px; }
