/* Fundacja Potencjał Możliwości – wersja 5 (finalna, na bazie wersji 1 „Rzetelny partner instytucji”) */
:root {
  --bg: #FAF6EF;
  --bg-alt: #EDE3D3;
  --surface: #FFFDF9;
  --text: #1F2E4A;
  --navy: #1F3459;
  --muted: #4B5263;
  --line: #DCCFBA;
  --accent: #4F6B4A;
  --accent-hover: #3F5A3B;
  --accent-ink: #3D5538;
  --on-accent: #FFFFFF;
  --label-num: #7A5636;
  --green: #5FA64A;
  --blue: #2F7FCB;
  --yellow: #EFA531;
  --violet: #7E58B5;
  --green-soft: #DDE5D3;
  --blue-soft: #DCE8F3;
  --yellow-soft: #F7E6C4;
  --violet-soft: #E7DDF0;
  --font-head: Georgia, 'Times New Roman', 'Liberation Serif', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --radius: 14px;
  --maxw: 72rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

@media (min-width: 60em) { body { font-size: 1.125rem; } }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 6.5vw, 3.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
svg { display: block; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: .75rem; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.5rem;
  padding-block: .8rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--navy);
  text-decoration: none;
}
.brand:hover { color: var(--accent-ink); }
/* Logo cropped to the circle of figures: the full logo is shown in the hero and the footer */
.brand-logo {
  position: relative;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  overflow: hidden;
}
.brand-logo img {
  position: absolute;
  left: -32%;
  top: -1%;
  width: 164.7%;
  max-width: none;
  height: auto;
}
.brand-small {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav { order: 3; width: 100%; }
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .3rem;
  margin-inline: -.5rem;
}
.main-nav a {
  display: block;
  padding: .4rem .5rem;
  color: var(--text);
  text-decoration: none;
  font-size: .97rem;
  border-radius: 6px;
}
.main-nav a:hover { background: var(--green-soft); color: var(--accent-ink); }

.header-cta { display: none; }

@media (min-width: 40em) {
  .header-cta { display: inline-flex; padding: .65rem 1.1rem; font-size: .95rem; }
}
@media (min-width: 75em) {
  .main-nav { order: 0; width: auto; }
  .main-nav ul { margin: 0; }
  .header-inner { flex-wrap: nowrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .75rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--accent-ink); }
.btn-ghost:hover { background: var(--green-soft); color: var(--accent-ink); }
.btn-light { background: var(--surface); border-color: var(--surface); color: var(--accent-ink); }
.btn-light:hover { background: var(--green-soft); border-color: var(--green-soft); color: var(--accent-ink); }
.btn-outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, var(--green-soft) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, #F1E8DA 0%, transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow, .section-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .9rem;
}
.hero h1 { margin-bottom: .45em; }
.lead { font-size: 1.15em; color: var(--text); max-width: 40em; }
.hero .lead { margin-bottom: 1rem; }
.hero-note {
  max-width: 38em;
  margin-bottom: 1.6rem;
  padding-left: 1rem;
  border-left: 3px solid var(--yellow);
  color: var(--muted);
}

.values {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.8rem;
}
.values li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .25rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-head);
  font-style: italic;
  color: var(--muted);
}
.values li::before {
  content: "";
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--dot, var(--green));
}
.v-blue { --dot: var(--blue); }
.v-yellow { --dot: var(--yellow); }
.v-violet { --dot: var(--violet); }

.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 0 1.4rem 1.2rem;
  box-shadow: 0 18px 40px -24px rgba(31, 46, 74, .35);
  overflow: hidden;
}
.fact-logo {
  margin: 0 -1.4rem 1.1rem;
  padding: 1.2rem 1.4rem .4rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.fact-logo img { width: min(100%, 19rem); margin-inline: auto; }
.fact-title { font-size: 1.3rem; margin-bottom: .6rem; }
.facts { margin: 0; }
.facts div {
  display: grid;
  gap: .1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.facts dd { margin: 0; }

@media (min-width: 52em) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 3.5rem; }
  .facts div { grid-template-columns: 9.5rem 1fr; gap: 1rem; align-items: baseline; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.25rem, 8vw, 5.75rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-label {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.section-label span {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: normal;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--label-num);
}
.section-label::after {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.split { display: grid; gap: 1.5rem; }
@media (min-width: 52em) {
  .split { grid-template-columns: 1fr 1.5fr; gap: 4rem; }
}
.motto {
  margin: 1.5rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--green);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.motto p {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--navy);
}
.prose .lead { font-size: 1.12em; }
.goals-title { margin-top: 1.8rem; }
.goals { list-style: none; display: grid; gap: .6rem; }
.goals li {
  position: relative;
  padding: .7rem 1rem .7rem 2.8rem;
  background: var(--green-soft);
  border-radius: 10px;
}
.goals li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: .95rem;
  height: .55rem;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Colour marks taken from the logo */
.c-green { --mark: var(--green); --soft: var(--green-soft); }
.c-blue { --mark: var(--blue); --soft: var(--blue-soft); }
.c-yellow { --mark: var(--yellow); --soft: var(--yellow-soft); }
.c-violet { --mark: var(--violet); --soft: var(--violet-soft); }

/* Areas */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 52em) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.2rem;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--soft, var(--green-soft));
  color: var(--navy);
  box-shadow: inset 0 -4px 0 var(--mark, var(--green));
}
.card-icon svg { width: 2.4rem; height: 2.4rem; }
.card p { color: var(--muted); }

/* Ideas: example activities */
.ideas { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .ideas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) {
  .ideas { grid-template-columns: repeat(3, 1fr); }
  .idea-open { grid-column: span 2; }
}
.idea {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.idea img {
  width: 100%;
  aspect-ratio: 400 / 260;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.idea-body { padding: 1.3rem 1.4rem 1.4rem; }
.idea h3 { margin-bottom: .4rem; }
.idea p { margin: 0; color: var(--muted); }
.idea-open {
  background: var(--green-soft);
  border: 1.5px dashed #8FA382;
  justify-content: center;
}
.idea-open-icon {
  width: 3.4rem;
  height: 3.4rem;
  margin: 1.5rem 1.4rem 0;
  color: var(--accent);
}
.idea-open p { margin-bottom: 1.1rem; color: var(--text); }
.idea-open .btn { background: var(--surface); }
@media (min-width: 64em) {
  .idea-open { flex-direction: row; align-items: center; }
  .idea-open-icon { width: 5rem; height: 5rem; margin: 0 0 0 2rem; flex: none; }
  .idea-open .idea-body { padding: 2rem; }
}

.special {
  margin-top: 1.5rem;
  padding: 1.3rem 1.5rem;
  background: var(--bg-alt);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
}
.special h3 { margin-bottom: .35rem; }
.special p { margin: 0; max-width: 52em; }
.small-note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }

/* Audience */
.audience {
  list-style: none;
  display: grid;
  gap: 1rem;
}
@media (min-width: 30em) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .audience { grid-template-columns: repeat(4, 1fr); } }
.audience li {
  padding: 1.3rem 1.2rem;
  border-top: 4px solid var(--green);
  background: var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}
.audience li:nth-child(2) { border-top-color: var(--blue); }
.audience li:nth-child(3) { border-top-color: var(--yellow); }
.audience li:nth-child(4) { border-top-color: var(--violet); }
.audience h3 { font-size: clamp(1.35rem, 3.5vw, 1.6rem); margin-bottom: .35rem; }
.audience p { margin: 0; color: var(--muted); }
.note {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin: 1.75rem 0 0;
  padding: 1.1rem 1.25rem;
  background: var(--green-soft);
  border-radius: var(--radius);
  max-width: 52rem;
}
.note svg { width: 1.5rem; height: 1.5rem; flex: none; margin-top: .15rem; }

/* Cooperation */
.partners {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.partners li {
  padding: .45rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
}
.forms { display: grid; gap: 1rem; margin-bottom: 2.75rem; }
@media (min-width: 52em) { .forms { grid-template-columns: repeat(3, 1fr); } }
.form-card {
  padding: 1.4rem 1.4rem 1.2rem;
  background: var(--soft);
  border-radius: var(--radius);
  border-top: 4px solid var(--mark);
}
.form-card p { margin: 0; }
.steps-title { margin-bottom: 1rem; }
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 1.3rem 1.2rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-size: 1.25rem;
}
@media (min-width: 64em) {
  .steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.7rem;
    left: 4.4rem;
    right: -1rem;
    border-top: 2px dashed #A9B99C;
  }
}
.steps h4 { margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97em; }

.cta-box {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
}
.cta-box p { margin: 0; font-size: 1.08em; }
@media (min-width: 52em) { .cta-box { grid-template-columns: 1fr auto; padding: 1.6rem 2rem; } }

/* Support */
.support { background: var(--accent); color: var(--on-accent); }
.support h2, .support h3, .support h4, .support .section-label, .support .lead { color: var(--on-accent); }
.support .section-label span { color: #F7E6C4; }
.support .actions { margin-top: 1.5rem; }
.support :focus-visible { outline-color: #fff; }
.support-grid { display: grid; gap: 2rem; }
@media (min-width: 52em) { .support-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; } }
.support-sub { font-size: 1.2rem; }
.support-list { list-style: none; display: grid; gap: 1rem; }
.support-list li {
  position: relative;
  padding: 1.2rem 1.3rem 1.2rem 3.2rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}
.support-list li::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  top: 1.55rem;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: var(--yellow);
}
.support-list li:nth-child(2)::before { background: #9CC9F0; }
.support-list li:nth-child(3)::before { background: #C9B3E8; }
.support-list h4 { margin-bottom: .3rem; }
.support-list p { margin: 0; }

/* Projects and privacy */
.privacy {
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.privacy svg { width: 3rem; height: 3rem; margin-bottom: .9rem; }
.privacy p { color: var(--muted); }
.privacy p:last-child { margin: 0; color: var(--text); font-weight: 500; }

/* Contact */
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 40em) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1.4rem 1.3rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}
a.contact-item { transition: border-color .2s, background-color .2s; }
a.contact-item:hover { border-color: var(--accent); background: var(--surface); color: var(--text); }
.contact-item svg {
  width: 2.6rem;
  height: 2.6rem;
  padding: .55rem;
  margin-bottom: .6rem;
  border-radius: 50%;
  background: var(--green-soft);
  fill: var(--accent);
}
.contact-label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.contact-value { font-size: 1.08em; font-weight: 600; overflow-wrap: break-word; }
a.contact-item .contact-value { color: var(--accent-ink); text-decoration: underline; text-underline-offset: .2em; }
.contact-person { margin: 1.5rem 0 0; color: var(--muted); }
.contact-person strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.5rem;
  background: var(--text);
  color: #E4E8F0;
  font-size: .95rem;
}
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 .6rem; }
.footer-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 52em) { .footer-inner { grid-template-columns: 1fr auto; } }
.footer-brand-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.footer-logo {
  width: 8.5rem;
  padding: .4rem;
  background: var(--surface);
  border-radius: var(--radius);
}
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; color: #fff; }
.footer-motto { font-family: var(--font-head); font-style: italic; color: #C9D1DF; }
.credit { color: #C9D1DF; font-size: .9rem; }
.credit a { color: #fff; }
.site-footer :focus-visible { outline-color: #DDE5D3; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
