:root {
  color-scheme: light;
  --bg: #e9f0ec;
  --surface: #f8fbf9;
  --text: #1c2a24;
  --accent: #1f6e5a;
  --accent2: #c98a2b;
  --muted: #4e6258;
  --line: #becfc5;
  --heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --body: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.8; overflow-wrap: break-word; }
.page { min-width: 0; }
main { display: block; }
::selection { color: var(--text); background: #e9d6ad; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .23em; transition: color 180ms ease, background-color 180ms ease; }
a:hover { color: #154c3e; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 1px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 1rem; font-family: var(--heading); font-weight: 400; line-height: 1.25; text-wrap: pretty; }
h1 { font-size: clamp(2rem, 1.35rem + 2vw, 3.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.3vw, 2.4rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.3rem, 1.1rem + .55vw, 1.65rem); }
h4, h5, h6 { font-size: 1.2rem; }
p { margin: 0 0 1.4em; }
ul, ol { padding-inline-start: 1.4em; }
li { padding-inline-start: .2em; }
li::marker { color: var(--accent); }
strong, b { font-weight: 650; }
figure { margin: 0; }
img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; background: #d7e2da; }
figcaption { margin-top: .75rem; color: var(--muted); font: .875rem/1.6 var(--body); }
hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
blockquote { margin: 2rem 0; padding: .5rem 0 .5rem 1.5rem; border-left: 2px solid var(--accent); }
blockquote p:last-child { margin-bottom: 0; }
mark { background: #f2e4c8; color: var(--text); padding: .08em .18em; }
small { font-size: .875em; }
code, pre { font-family: ui-monospace, monospace; font-size: .9em; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: .9em; }
th, td { padding: .75em; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
button, input, textarea, select { max-width: 100%; font: inherit; color: inherit; }
.wrap { width: min(100% - 3rem, 48rem); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .65rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--surface); border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); }
.header-inner { width: min(100% - 3rem, 72rem); display: flex; flex-direction: column; align-items: center; padding-block: 1.6rem .8rem; gap: .85rem; }
.brand { font-family: var(--heading); font-size: clamp(1.7rem, 1.4rem + .65vw, 2.1rem); letter-spacing: -.035em; text-decoration: none; color: var(--text); }
.brand::after { content: ''; display: block; width: 2rem; margin: .6rem auto 0; border-bottom: 2px solid var(--accent2); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem 1.6rem; padding: 0; margin: 0; list-style: none; }
.site-nav li, .footer-nav li { padding: 0; min-width: 0; }
.site-nav a { display: block; padding-block: .5rem; font-size: .83rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--accent); border-bottom-color: var(--accent); }

.hero { padding-top: clamp(1.5rem, 3vw, 3rem); }
.hero-inner { width: min(100% - 3rem, 72rem); display: flex; flex-direction: column; }
.hero-media { order: -1; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); position: relative; }
.hero-media img { height: clamp(14rem, 30vw, 25rem); object-position: center 55%; }
.hero-media::after { content: ''; position: absolute; bottom: -1rem; left: 0; width: 4rem; height: 2px; background: var(--accent); }
.hero-text { max-width: 48rem; margin-inline: auto; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.eyebrow { margin-bottom: 1.1rem; font-size: .75rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.hero-text h1 { margin-bottom: 1.5rem; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.85; color: var(--muted); }
.hero-actions { margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; max-width: 100%; padding: .65rem 1.3rem; font-size: .875rem; font-weight: 600; border: 1px solid var(--accent); text-decoration: none; text-align: center; border-radius: 2px; }
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { color: var(--surface); background: #185644; }

.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-title { max-width: 24ch; margin-bottom: 1.35rem; }
.section-intro { color: var(--muted); margin-bottom: 2.25rem; }
#poradniki { border-top: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); margin-block: 2rem 3rem; }
.card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: .6rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); transition: background-color 180ms ease; }
.card:hover { background: #f1f6f2; }
.card-title { margin: 0; color: var(--accent); }
.card-text { margin: 0; font-size: .95rem; line-height: 1.75; }
.card-link { grid-column: 2; justify-self: start; padding-block: .3rem; font-size: .8rem; font-weight: 650; }
.card-link::after { content: ' \2192'; margin-left: .4em; }
.section-feature { background: var(--surface); }
.split { display: flex; flex-direction: column; gap: 2rem; }
.split-text { min-width: 0; }
.split-text p:last-child { margin-bottom: 0; }
.split-media img { aspect-ratio: 16 / 9; }
.fact-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; margin: 0; gap: 1.75rem 2.5rem; }
.fact { padding: .25rem 0 .25rem 1rem; border-left: 2px solid var(--accent2); color: var(--accent); font: clamp(1.15rem, 1rem + .5vw, 1.45rem)/1.5 var(--heading); }

.section-partners { background: #e0e9e3; border-top: 1px solid var(--line); }
.section-partners > .wrap { width: min(100% - 3rem, 72rem); }
.section-partners .section-title, .section-partners .section-intro { max-width: 48rem; margin-inline: auto; }
.partner-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.partner { min-width: 0; padding: 1.2rem; background: var(--surface); border: 1px solid #c7d6cc; }
.partner-link { display: block; overflow-wrap: anywhere; word-break: normal; font-size: .8rem; line-height: 1.65; }
.partner-phrase { margin: .85rem 0 .5rem; font-size: .95rem; font-weight: 650; line-height: 1.5; }
.partner-desc { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.75; }

.page-sub { background: var(--surface); }
.article { padding-block: clamp(2rem, 4vw, 4rem) clamp(4rem, 8vw, 7rem); }
.article > .wrap { max-width: 52rem; }
.breadcrumb { margin-bottom: clamp(2rem, 4vw, 3.5rem); font-size: .8rem; color: var(--muted); }
.breadcrumb a { margin-right: .35rem; }
.breadcrumb span { margin-left: .35rem; }
.page-header { max-width: 46rem; margin: 0 auto 2.5rem; }
.page-header h1 { margin-bottom: 1.5rem; }
.prose { max-width: 40rem; margin-inline: auto; font-family: var(--heading); font-size: clamp(1.1rem, 1.02rem + .3vw, 1.25rem); line-height: 1.9; }
.article .prose { border-left: 1px solid var(--accent); padding-left: clamp(1rem, 3vw, 2rem); margin-top: 3rem; }
.prose h2 { margin-top: 2.8rem; margin-bottom: 1.2rem; font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem); }
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose-figure { margin-block: 2.5rem; }
.prose-figure img { max-height: 32rem; object-fit: cover; }
.prose .prose-figure img { max-height: 27rem; }
.prose img[src='img/kora.jpg'] { width: min(100%, 22rem); max-height: none; margin-inline: auto; }
.note { margin-block: 2rem; padding: 1.25rem 1.5rem; border-left: 3px solid var(--accent2); background: #f3e9d5; color: var(--text); font: 1rem/1.8 var(--body); }
.note > :last-child { margin-bottom: 0; }

.site-footer { padding-block: 3rem; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-note { max-width: 43rem; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.footer-nav ul { justify-content: flex-start; gap: .25rem 1.3rem; }
.footer-nav a { display: inline-block; padding-block: .35rem; font-size: .8rem; }

@media (max-width: 760px) {
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav ul { gap: .1rem 1rem; }
  .site-nav a { font-size: .8rem; }
}
@media (max-width: 520px) {
  .wrap, .header-inner, .hero-inner, .section-partners > .wrap { width: calc(100% - 2.25rem); }
  .header-inner { padding-top: 1.2rem; }
  .site-nav ul { gap: 0 .9rem; }
  .site-nav a { padding-block: .4rem; font-size: .75rem; }
  .hero-media img { height: 15rem; }
  .hero-media { margin-bottom: 2.5rem; }
  .card { grid-template-columns: minmax(0, 1fr); gap: .8rem; padding-block: 1.4rem; }
  .card-link { grid-column: 1; }
  .fact-list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .partner-list { grid-template-columns: minmax(0, 1fr); }
  .partner { padding: 1.1rem; }
  .article .prose { padding-left: 1rem; }
  .page-header .lead { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body, .page-sub { background: white; color: black; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .hero-actions, .section-partners { display: none; }
  .wrap, .article > .wrap, .hero-inner { width: 100%; max-width: none; }
  .section, .article { padding-block: 1rem; }
  .prose { max-width: none; }
  h1, h2, h3 { break-after: avoid; }
  figure, .note { break-inside: avoid; }
  a { color: inherit; }
}

.page-home { background: var(--bg); }
