:root {
  --bg: #dfe6e8;
  --surface: #f3f6f6;
  --text: #17262b;
  --accent: #355e55;
  --accent2: #b0612e;
  --muted: #4c6063;
  --line: #bccbc9;
  --heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --body: 'Avenir Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.125rem, 4vw, 4rem);
  --shadow: 0 20px 48px -30px #17262b55;
}

*, *::before, *::after { 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.75; -webkit-font-smoothing: antialiased; }
.page { min-width: 0; }
.page-home { background: var(--bg); }
main { display: block; }
::selection { background: var(--accent); color: var(--surface); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 1rem; font-family: var(--heading); font-weight: 400; line-height: 1.16; text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: auto; }
:is(h1, h2, h3, h4, h5, h6) a { overflow-wrap: normal; word-break: normal; hyphens: auto; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 4.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.4rem, 1.1rem + .7vw, 1.9rem); }
h4, h5, h6 { font-size: 1.25rem; }
p { margin: 0 0 1.25rem; }
p, .breadcrumb, figcaption { color: #50666b; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; overflow-wrap: anywhere; transition: color .2s ease, background-color .2s ease; }
a:hover { color: #85451f; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent2); outline-offset: 5px; }
img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
figcaption { padding: .8rem 0; font-size: .8rem; }
ul, ol { padding-left: 1.4rem; }
li { padding-left: .15rem; }
strong, b { font-weight: 650; }
small { font-size: max(.75rem, .85em); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
blockquote { margin: 2rem 0; padding: .5rem 1.5rem; border-left: 3px solid var(--accent2); font-family: var(--heading); font-size: 1.3em; }
code, pre { font-family: ui-monospace, monospace; font-size: max(.75rem, .9em); overflow-wrap: anywhere; }
pre { white-space: pre-wrap; padding: 1rem; background: var(--bg); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
button, input, textarea, select { max-width: 100%; font: inherit; }
.wrap { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; min-width: 0; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: var(--surface); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.35rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; flex-shrink: 0; color: var(--text); font-family: var(--heading); font-size: clamp(1.4rem, 1.2rem + .5vw, 1.8rem); text-decoration: none; letter-spacing: -.035em; }
.brand::before { content: ''; width: 2.5rem; height: 1.45rem; background: var(--accent); clip-path: polygon(0 90%, 30% 25%, 43% 49%, 65% 0, 100% 90%, 83% 72%, 65% 27%, 46% 75%, 31% 49%, 12% 90%); }
.site-nav ul, .footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; padding: 0; margin: 0; }
.site-nav li, .footer-nav li { padding: 0; }
.site-nav a { display: block; padding: .5rem 0; color: var(--text); font-size: .82rem; font-weight: 550; text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

.hero { position: relative; isolation: isolate; padding: clamp(2.5rem, 6vw, 6rem) 0 6rem; background: radial-gradient(ellipse at 12% 20%, #f3f6f6 0, #f3f6f600 65%), linear-gradient(170deg, #e9efef, var(--bg)); }
.hero::after { content: ''; position: absolute; z-index: -1; bottom: 0; inset-inline: 0; height: 120px; background: #cad6d4; clip-path: polygon(0 68%, 13% 30%, 26% 58%, 44% 8%, 63% 48%, 80% 17%, 100% 60%, 100% 100%, 0 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .16fr 1fr; align-items: center; }
.hero-text { grid-column: 1 / 3; grid-row: 1; z-index: 2; padding: clamp(1.5rem, 3.5vw, 3.5rem); background: linear-gradient(125deg, #f3f6f6, #edf2f1); border: 1px solid #ffffffb3; border-radius: 3px 3px 36px 3px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2.15rem, 1.2rem + 2.55vw, 3.8rem); }
.eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.4rem; }
.eyebrow::before { content: ''; width: 1.8rem; height: 2px; background: var(--accent2); }
.lead { color: #354d51; font-size: clamp(1.05rem, .96rem + .35vw, 1.25rem); line-height: 1.75; }
.hero .lead { font-size: clamp(1rem, .93rem + .2vw, 1.1rem); }
.hero-actions { margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.25rem; padding: .85rem 1.35rem; min-height: 48px; font-size: .85rem; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); border-radius: 2px; }
.btn::after { content: '\2197'; font-size: 1.2rem; }
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { background: #25483f; color: #fff; }
.hero-media { grid-column: 2 / 4; grid-row: 1; position: relative; margin-top: -3rem; margin-bottom: 3rem; box-shadow: 14px 18px 0 #b9c9c5; }
.hero-media img { height: clamp(440px, 47vw, 650px); border-radius: 2px; }
.hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #edf3f033, transparent 50%, #dfe6e866); }

.section { position: relative; padding-block: clamp(3.5rem, 6vw, 6rem); }
.section::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 18px; opacity: .45; background: var(--line); clip-path: polygon(0 80%, 20% 25%, 37% 68%, 61% 0, 78% 60%, 100% 30%, 100% 38%, 78% 70%, 61% 10%, 37% 78%, 20% 35%, 0 90%); }
.section-title { max-width: 24ch; }
.section-intro { max-width: 65ch; color: var(--muted); margin-bottom: 2.25rem; }
.section-feature { padding-block: clamp(3rem, 5vw, 5rem); }
.hero + .section-feature { margin-top: -2rem; z-index: 2; }
.hero + .section-feature::before { display: none; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; }
.split-text { position: relative; z-index: 2; background: var(--surface); padding: clamp(1.5rem, 3.5vw, 3.5rem); border-top: 3px solid var(--accent); border-radius: 3px 3px 24px 3px; box-shadow: var(--shadow); }
.split-text p { font-size: clamp(.96rem, .9rem + .2vw, 1.075rem); }
.split-text > :last-child { margin-bottom: 0; }
.split-media { margin-left: -2rem; transform: translateY(2rem); box-shadow: 12px 12px 0 #c6d3d0; }
.split-media img { height: clamp(340px, 37vw, 480px); }
.section-feature:nth-of-type(3) .split { grid-template-columns: 1fr 1.15fr; }
.section-feature:nth-of-type(3) .split-text { grid-column: 2; grid-row: 1; }
.section-feature:nth-of-type(3) .split-media { grid-column: 1; grid-row: 1; margin-left: 0; margin-right: -2rem; transform: translateY(-2rem); box-shadow: -12px 12px 0 #c6d3d0; }
#poradniki { background: #cdd9d6; margin-top: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0; padding: .5rem 0 2rem; counter-reset: guides; }
.card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 3vw, 2.75rem); background: var(--surface); border: 1px solid #b6c7c2; box-shadow: var(--shadow); counter-increment: guides; min-width: 0; }
.card:nth-child(odd) { margin-right: -1rem; padding-right: 3rem; }
.card:nth-child(even) { top: 2rem; background: #e8efec; border-radius: 0 0 24px 0; }
.card::before { content: '0' counter(guides); color: var(--accent); font-size: .75rem; letter-spacing: .12em; margin-bottom: 1.5rem; border-bottom: 2px solid var(--accent2); padding-bottom: .35rem; }
.card-title { max-width: 24ch; }
.card-text { color: var(--muted); font-size: 1rem; }
.card-link { margin-top: auto; padding-top: 1rem; font-size: .85rem; font-weight: 600; }
.fact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.fact { padding: 1.4rem; background: var(--surface); border-top: 2px solid var(--accent2); }
.fact strong { display: block; color: var(--accent); font-family: var(--heading); font-size: 1.7rem; }

.section-partners { margin-top: 2rem; background: #e5ebeb; border-top: 1px solid var(--line); }
.section-partners::before { display: none; }
.section-partners .section-title { font-size: clamp(1.65rem, 1.25rem + 1vw, 2.25rem); }
.section-partners .section-intro { font-size: .9rem; }
.partner-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; list-style: none; margin: 0; padding: 0; }
.partner { min-width: 0; padding: 12px; border: 1px solid var(--line); background: #edf2f1; }
.partner-link { display: block; overflow-wrap: anywhere; word-break: normal; font-size: .76rem; line-height: 1.5; }
.partner-phrase { margin: .7rem 0 .35rem; font-size: .86rem; font-weight: 650; line-height: 1.4; }
.partner-desc { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }

.page-sub { background: linear-gradient(150deg, #dfe6e8, #cedbd7); }
.article { padding: clamp(1.5rem, 4vw, 4rem) 0 clamp(3rem, 6vw, 6rem); }
.article > .wrap { max-width: 920px; padding: clamp(1.25rem, 4.5vw, 4.5rem); background: var(--surface); border-top: 3px solid var(--accent); box-shadow: 0 12px 0 -6px #bfceca, 0 24px 0 -12px #a9bfba, var(--shadow); border-radius: 2px 2px 30px 2px; }
.breadcrumb { margin-bottom: 2.5rem; font-size: .78rem; line-height: 1.6; overflow-wrap: anywhere; }
.breadcrumb a { margin-right: .4rem; }
.breadcrumb span { margin-left: .4rem; }
.page-header { margin-bottom: 2.5rem; }
.page-header h1 { font-size: clamp(2rem, 1.5rem + 2.1vw, 3.6rem); }
.page-header h1::after { content: ''; display: block; width: 3rem; height: 3px; background: var(--accent2); margin: 1.6rem 0; }
.page-header .lead { margin-bottom: 0; }
.page-media { margin: 0 0 2.75rem; }
.page-media img { max-height: 510px; aspect-ratio: 3 / 2; }
.page-media img[src*="cerkiew"] { aspect-ratio: 4 / 5; max-height: 650px; object-position: center; }
.prose { max-width: 66ch; margin-inline: auto; overflow-wrap: anywhere; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.55rem, 1.2rem + 1vw, 2.1rem); }
.prose h3 { margin-top: 2rem; }
.prose li + li { margin-top: .5rem; }
.prose > :last-child { margin-bottom: 0; }
.note { padding: 1.25rem 1.5rem; margin-block: 2rem; border-left: 3px solid var(--accent2); background: #e4ece9; color: var(--text); }
.site-footer { padding: 3rem 0; background: #243e38; color: var(--surface); border-top: 5px solid #94aba3; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); }
.footer-note { max-width: 42ch; margin: 0; color: inherit; font-family: var(--heading); font-size: 1.15rem; line-height: 1.65; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.5rem; }
.footer-nav a { display: inline-block; padding-block: .35rem; color: #edf2ef; font-size: .8rem; }
.footer-nav a:hover { color: #fff; text-decoration-thickness: 2px; }

.hero p, .split-text p, .card-text, .section-intro, .page-header .lead, .prose p, .section-partners p, .partner-link { color: #50666b; }
.card p, .article p, .section-intro { color: #50666b; }
.partner p, .partner a { font-size: 13px; line-height: 1.5; color: #50666b; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card { transition: transform .25s ease, box-shadow .25s ease; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 25px 42px -26px #17262b66; }
}
@media (max-width: 1050px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .site-nav ul { gap: .25rem 1.35rem; }
  .hero-inner { grid-template-columns: 1.3fr .12fr 1fr; }
  .hero-text { padding: 2rem; }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero { padding-top: 2rem; padding-bottom: 4rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { grid-column: 1; grid-row: 1; margin: 0 0 0 1rem; box-shadow: 8px 10px 0 #b9c9c5; }
  .hero-media img { height: 300px; }
  .hero-text { grid-column: 1; grid-row: 2; margin: -3rem 1rem 0 0; padding: clamp(1.3rem, 5vw, 2rem); }
  .hero h1 { font-size: clamp(2rem, 1.4rem + 2.3vw, 3rem); }
  .split, .section-feature:nth-of-type(3) .split { grid-template-columns: 1fr; }
  .split-media, .section-feature:nth-of-type(3) .split-media { grid-column: 1; grid-row: 1; margin: 0 0 0 1rem; transform: none; box-shadow: 8px 10px 0 #c6d3d0; }
  .split-media img { height: clamp(230px, 50vw, 350px); }
  .split-text, .section-feature:nth-of-type(3) .split-text { grid-column: 1; grid-row: 2; margin: -1.5rem 1rem 0 0; }
  .card-grid { gap: 1rem; }
  .card:nth-child(odd) { margin-right: 0; padding-right: 1.5rem; }
  .card { padding: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .fact-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
}
@media (max-width: 540px) {
  .hero-media img { height: 240px; }
  .eyebrow { font-size: .75rem; letter-spacing: .11em; }
  .card-grid, .partner-list { grid-template-columns: 1fr; }
  .card-grid { gap: 0; padding-bottom: 0; }
  .card { margin-bottom: 0; }
  .card:nth-child(even) { top: 0; margin: -.25rem 0 0 .7rem; }
  .card:nth-child(odd) { margin-right: .7rem; }
  .card + .card { margin-top: .75rem; }
  .article > .wrap { padding: 1.25rem; }
  .breadcrumb { margin-bottom: 1.75rem; }
  .footer-nav ul { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .header-inner > *, .hero-inner > *, .split > *, .card > *, .footer-inner > * { min-width: 0; max-width: 100%; }
  h1, .hero h1, .page-header h1 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  h2, .prose h2, .section-partners .section-title { font-size: clamp(1.25rem, 5.5vw, 1.65rem); }
  h3 { font-size: clamp(1.2rem, 5vw, 1.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body, .page-sub { background: #fff; color: #000; }
  .site-header, .site-footer, .skip-link, .hero-actions, .section-partners { display: none; }
  .article > .wrap { width: 100%; max-width: none; border: 0; padding: 0; box-shadow: none; }
  .prose { max-width: none; }
  .page-media { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  a { color: #000; }
}
