:root {
  --cream: #fbf7ec;
  --paper: #ffffff;
  --ink: #17261e;
  --green: #00a33a;       /* zieleń z logo – tylko dekoracje */
  --green-dark: #0a5a2a;  /* tekst i przyciski */
  --blue: #0072bb;        /* niebieski z logo */
  --navy: #0b3a63;
  --sun: #ffd83d;         /* żółć z włosów dziewczynki */
  --line: #c9c4b0;
  --focus: #000;
  --radius: 1.1rem;
  --font: "Atkinson Hyperlegible", "Segoe UI", Verdana, Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 1.6em; }
p, ul, ol, dl { margin: 0 0 1.1em; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .16em; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }

/* Widoczny fokus – podwójny kontur działa na jasnym i ciemnym tle */
:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
  box-shadow: 0 0 0 6px #fff; border-radius: .25rem;
}
main:focus { outline: none; box-shadow: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem; border-radius: .5rem;
  font-weight: 700;
}
.skip:focus { top: .5rem; }

/* Nagłówek */
.site-header { background: var(--paper); border-bottom: 4px solid var(--green); position: relative; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .75rem; }
.brand { display: block; width: 8.5rem; flex: none; }
.brand img { width: 100%; }

.menu-toggle {
  font: inherit; font-weight: 700; color: #fff; background: var(--navy);
  border: 0; border-radius: .6rem; padding: .7rem 1.3rem; min-height: 2.9rem; cursor: pointer;
}
.main-nav { flex-basis: 100%; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.js .main-nav { display: none; }
.js .menu-toggle[aria-expanded="true"] + .main-nav { display: block; }
.main-nav > ul > li { border-top: 1px solid var(--line); }
.main-nav a, .sub-toggle {
  display: flex; align-items: center; gap: .5rem; width: 100%;
  min-height: 3rem; padding: .6rem .5rem; font: inherit; font-weight: 700;
  color: var(--navy); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer;
}
.main-nav a:hover, .sub-toggle:hover { text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .2em; }
.sub-toggle svg { transition: transform .15s; margin-left: auto; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub { display: none; padding: 0 0 .5rem 1rem !important; }
.sub-toggle[aria-expanded="true"] + .sub { display: block; }
html:not(.js) .sub { display: block; }
.sub a { font-weight: 400; color: var(--ink); }
.main-nav [aria-current="page"], .sub-toggle.is-active { box-shadow: inset 0 -4px 0 var(--green); }
.sub [aria-current="page"] { font-weight: 700; box-shadow: inset 4px 0 0 var(--green); padding-left: .9rem; }
.nav-cta { padding: .75rem 0 .25rem; }

@media (min-width: 62rem) {
  .brand { width: 10rem; }
  .menu-toggle { display: none; }
  .js .main-nav, .main-nav { display: block; flex-basis: auto; }
  .main-nav > ul { display: flex; align-items: center; gap: .25rem; }
  .main-nav > ul > li { border: 0; position: relative; }
  .main-nav a, .sub-toggle { width: auto; padding: .6rem .9rem; }
  .sub-toggle svg { margin-left: .1rem; }
  .sub {
    position: absolute; top: 100%; left: 0; min-width: 17rem; z-index: 30;
    background: var(--paper); border: 2px solid var(--navy); border-radius: .75rem;
    padding: .4rem !important; box-shadow: 0 .6rem 1.2rem rgb(0 0 0 / .15);
  }
  .sub a { padding: .6rem .8rem; border-radius: .4rem; }
  .sub a:hover { background: #e9f4ec; }
  .main-nav [aria-current="page"], .sub-toggle.is-active { box-shadow: inset 0 -4px 0 var(--green); }
  .sub [aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); }
  .nav-cta { padding: 0 0 0 .5rem; }
}

/* Przyciski */
.btn {
  display: inline-flex !important; align-items: center; justify-content: center; width: auto !important;
  min-height: 3rem; padding: .65rem 1.4rem !important; border-radius: .7rem; border: 3px solid transparent;
  font-weight: 700; text-decoration: none !important; text-align: center; line-height: 1.25;
}
.btn-primary { background: var(--green-dark); color: #fff !important; }
.btn-primary:hover { background: #07431f; }
.btn-warm { background: var(--sun); color: #1a1a1a !important; border-color: #1a1a1a; }
.btn-warm:hover { background: #ffe56e; }
.btn-light { background: #fff; color: var(--green-dark) !important; }
.btn-light:hover { background: #eaf6ee; }
.btn.is-active { box-shadow: none !important; outline: 3px double #1a1a1a; outline-offset: 2px; }

/* Strona główna */
.hero { padding-block: 2rem 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.eyebrow { font-weight: 700; color: var(--green-dark); letter-spacing: .04em; text-transform: uppercase; font-size: .95rem; margin-bottom: .5rem; }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%;
  border-radius: 2.5rem 0.6rem 2.5rem 0.6rem; border: 4px solid var(--paper);
  box-shadow: .6rem .6rem 0 var(--green);
}
@media (min-width: 62rem) {
  .hero { padding-block: 3.5rem 4.5rem; }
  .hero-grid { grid-template-columns: 5fr 6fr; gap: 3.5rem; }
  .hero-photo img { aspect-ratio: 5 / 4; }
}

.section { padding-block: 2.5rem; }
.section h2 { margin-top: 0; }
.tiles { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.tiles a {
  display: block; height: 100%; padding: 1.3rem 1.4rem; background: var(--paper);
  border: 2px solid var(--navy); border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.tiles li:nth-child(odd) a { border-radius: var(--radius) .3rem var(--radius) .3rem; }
.tiles li:nth-child(even) a { border-radius: .3rem var(--radius) .3rem var(--radius); }
.tiles a:hover { background: #eef5fb; }
.tiles a:hover .tile-title { text-decoration: underline; text-decoration-thickness: .12em; }
.tile-title { display: block; font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.tile-text { display: block; }

.support { background: var(--green-dark); color: #fff; }
.support h2 { color: #fff; }
.support a:not(.btn) { color: #fff; }
.support-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) { .support-grid { grid-template-columns: 1fr auto; gap: 3rem; } }
.krs-box { display: inline-flex; flex-direction: column; margin: 0; padding: 1rem 1.6rem; background: var(--sun); color: #1a1a1a; border-radius: var(--radius); }
.krs-label { font-weight: 700; font-size: .95rem; }
.krs-number { font-size: 2rem; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.krs-inline { border: 3px solid #1a1a1a; margin-bottom: 1rem; }

/* Podstrony */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 1.5rem 1.8rem; }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin-bottom: 0; }
.crumbs { font-size: 1rem; margin-bottom: .8rem; }
.prose { padding-block: 1.5rem 3.5rem; }
.prose > * { max-width: 50rem; }
.prose > h2:first-child { margin-top: .5em; }
.prose li { margin-bottom: .5em; }
.todo { padding: .9rem 1.1rem; background: #fff4c2; border-left: 6px solid #8a6d00; border-radius: .3rem; }
.contact-card { background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; }
.contact-card h2 { margin-top: 0; font-size: 1.35rem; }
.contact-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
.contact-card dt { font-weight: 700; }
.contact-card dd { margin: 0; }

/* Stopka */
.site-footer { background: var(--navy); color: #fff; padding-block: 2.5rem 1.5rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 3fr 2fr; } }
.footer-title { font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem; }
address { font-style: normal; margin-bottom: .6rem; }
.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .35); margin-top: 1.5rem; padding-top: 1rem; font-size: 1rem; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .btn, .tiles a { border: 2px solid ButtonText; } }
@media print { .site-header .menu-toggle, .main-nav, .skip { display: none; } }

/* przycisk w menu – wyższa specyficzność niż .main-nav a */
.main-nav a.btn-warm { background: var(--sun); color: #1a1a1a; border-color: #1a1a1a; justify-content: center; }
.main-nav a.btn-warm:hover { background: #ffe56e; text-decoration: none; }
@media (max-width: 61.99rem) { .main-nav a.btn-warm { width: 100% !important; } }

.file-link { display: inline-block; padding: 1rem 1.3rem; background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius); font-weight: 700; }
.file-meta { font-weight: 400; color: var(--ink); white-space: nowrap; }
