:root {
  color-scheme: dark;
  --bg: #1d2b24;
  --surface: #26382f;
  --text: #f1ecde;
  --accent: #f08a24;
  --accent2: #7cc4e8;
  --muted: #c1cdbf;
  --line: #4d6252;
  --ink: #15221b;
  --heading: 'Trebuchet MS', 'Avenir Next', 'Segoe UI', sans-serif;
  --body: system-ui, -apple-system, 'Segoe 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 + .18vw, 1.125rem); line-height: 1.75; }
.page { min-width: 0; }
main, section, article, nav, figure, div { min-width: 0; }
::selection { color: var(--ink); background: var(--accent2); }
a { color: var(--accent2); text-underline-offset: .25em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent2); outline-offset: 5px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); line-height: 1.14; margin: 0 0 .7em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 4.6rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.75rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); }
h4, h5, h6 { font-size: 1.125rem; }
p { margin: 0 0 1.2em; }
strong, b { font-weight: 750; }
small { font-size: .85em; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
figcaption { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
ul, ol { padding-left: 1.5rem; }
li { padding-left: .2em; }
li::marker { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
blockquote { margin: 2rem 0; padding: .75rem 1.5rem; border-left: 4px solid var(--accent); background: var(--surface); }
code, kbd, pre { font-family: ui-monospace, 'Courier New', monospace; font-size: .9em; }
code, kbd { background: var(--ink); padding: .15em .4em; border-radius: 4px; }
pre { padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .7rem; border: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
th { background: var(--ink); }
button, input, textarea, select { font: inherit; max-width: 100%; }
input, textarea, select { padding: .7rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
summary, button { cursor: pointer; }
.wrap { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; padding: .75rem 1rem; background: var(--text); color: var(--ink); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { padding-block: 25px; border-bottom: 1px solid #3a4b3e; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--text); font: 800 1.65rem/1.1 var(--heading); letter-spacing: -.05em; text-decoration: none; }
.brand::before { content: ''; width: 34px; height: 30px; border: 2px solid var(--ink); border-radius: 50% 50% 43% 43%; background: radial-gradient(ellipse at 60% 40%, var(--ink) 0 2px, transparent 3px), radial-gradient(ellipse at 78% 40%, var(--ink) 0 2px, transparent 3px), var(--accent); box-shadow: -4px 5px 0 #101c16; transform: rotate(-8deg); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 7px; list-style: none; margin: 0; padding: 0; }
.site-nav li, .footer-nav li { padding: 0; }
.site-nav a { display: block; padding: 9px 10px; color: var(--text); font-size: .84rem; font-weight: 650; text-decoration: none; border-radius: 8px; }
.site-nav a:hover { background: var(--surface); color: var(--accent); }
.hero { padding-block: clamp(32px, 5vw, 72px) 40px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: clamp(24px, 3vw, 48px); position: relative; }
.hero-text { padding-block: 12px 24px; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 9px; height: 9px; background: currentColor; box-shadow: 4px 4px 0 #654723; }
.hero h1 { font-size: clamp(2.35rem, 1.3rem + 2.9vw, 4.15rem); max-width: 15ch; }
.lead { color: #d6ddcf; font-size: clamp(1rem, .94rem + .2vw, 1.125rem); line-height: 1.8; max-width: 56ch; }
.hero-actions { margin-top: 28px; padding-bottom: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 22px; max-width: 100%; padding: 17px 25px; border: 2px solid var(--ink); border-radius: 13px; font-weight: 800; line-height: 1.4; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.btn-primary { color: var(--ink); background: var(--accent); box-shadow: 0 6px 0 #9b501a, 0 9px 0 var(--ink); }
.btn-primary::after { content: '\2192'; font-size: 1.3em; }
.btn-primary:hover { color: var(--ink); background: #ffa449; transform: translateY(-2px); box-shadow: 0 8px 0 #9b501a, 0 11px 0 var(--ink); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #9b501a; }
.hero-media { position: relative; padding: 10px; background: #3f5542; border: 1px solid #6a7a58; border-radius: 34px 34px 70px 20px; box-shadow: 8px 12px 0 #111f18, 14px 19px 0 #354331; transform: rotate(1.5deg); }
.hero-media::before { content: ''; position: absolute; z-index: 1; width: 64px; height: 13px; top: -7px; left: 30px; background: var(--accent); border: 2px solid var(--ink); transform: rotate(-8deg); }
.hero-media img { width: 100%; aspect-ratio: 1.05; border-radius: 25px 25px 60px 12px; object-position: center; }
.section { padding-block: clamp(35px, 5vw, 72px); }
.section-title { max-width: 25ch; }
.section-intro { color: var(--muted); max-width: 75ch; font-size: 1.075em; }
.section > .wrap > p { max-width: 78ch; }
.section-feature { margin-top: 20px; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line); border-radius: 28px 28px 12px 28px; background: var(--surface); box-shadow: 7px 9px 0 #142219; }
.split-text p { color: #d6ddcf; }
.split-text p:last-child { margin-bottom: 0; }
.split-media { border: 6px solid #1c2a22; border-radius: 18px; box-shadow: 5px 6px 0 #42533d; transform: rotate(-2deg); }
.split-media img { width: 100%; aspect-ratio: 1.2; border-radius: 12px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin-top: 36px; counter-reset: guide; }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: 27px; border: 1px solid var(--line); border-radius: 20px 20px 8px 20px; background: var(--surface); box-shadow: 5px 6px 0 #132118; position: relative; counter-increment: guide; transition: transform .18s ease, border-color .18s ease; }
.card::before { content: '0' counter(guide); display: block; color: var(--accent); font: 800 .85rem/1 var(--heading); letter-spacing: .08em; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 3px solid #647552; width: 32px; }
.card:nth-child(3n + 2) { background: #2c3d32; border-radius: 8px 24px 24px 24px; }
.card:nth-child(3n + 2)::before { color: var(--accent2); }
.card-title { margin-bottom: 14px; }
.card-text { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.card-link { display: inline-flex; align-items: center; gap: 16px; margin-top: auto; padding-block: 10px 2px; font-size: .9rem; font-weight: 750; }
.card-link::after { content: '\2197'; text-decoration: none; }
.fact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; margin-block: 28px; padding: 0; list-style: none; }
.fact { padding: 20px; border-top: 3px solid var(--accent); background: var(--surface); border-radius: 4px 4px 14px 14px; }
.fact strong { display: block; font-family: var(--heading); font-size: 1.5rem; }
.section-partners { margin-top: 12px; padding-top: 38px; border-top: 1px solid var(--line); background: #1a2720; }
.section-partners .section-title { font-size: 0; }
.section-partners .section-title::after { content: 'Polecane'; font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.75rem); }
.section-partners .section-intro { margin-top: 16px; font-size: .95rem; }
.partner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; gap: 22px; padding: 0; margin: 26px 0 0; }
.partner { display: flex; flex-direction: column; padding: clamp(20px, 2.5vw, 30px); border: 1px solid #425447; border-radius: 12px; background: #26352c; }
.partner-link { overflow-wrap: anywhere; word-break: normal; font-size: .8rem; line-height: 1.65; }
.partner-phrase { order: -1; font-family: var(--heading); font-size: 1.2rem; font-weight: 700; line-height: 1.35; margin-bottom: 14px; }
.partner-desc { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.article { padding-block: clamp(28px, 4vw, 58px) clamp(48px, 6vw, 90px); }
.article > .wrap { max-width: 940px; padding: clamp(22px, 5vw, 72px); background: #304337; border: 1px solid #53634d; border-radius: 28px 28px 14px 28px; box-shadow: 7px 10px 0 #122018, 12px 16px 0 #384632; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 30px; }
.page-header { border-bottom: 1px solid #61705a; padding-bottom: 24px; margin-bottom: 32px; }
.page-header::before { content: ''; display: block; width: 42px; height: 6px; background: var(--accent); box-shadow: 8px 6px 0 #1b2d22; margin-bottom: 27px; }
.page-header h1 { font-size: clamp(2rem, 1.25rem + 2.2vw, 3.4rem); margin-bottom: 0; }
.prose { max-width: 70ch; margin-inline: auto; overflow-wrap: anywhere; line-height: 1.85; }
.prose > p:first-child { font-size: 1.075em; color: var(--text); }
.prose h2 { margin-top: 1.65em; font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); line-height: 1.25; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-block: .5em; }
.prose .figure { margin: 32px 0 40px; }
.figure img { width: 100%; border: 5px solid #1d2b24; border-radius: 17px; box-shadow: 4px 6px 0 #617052; }
.note { margin: 28px 0; padding: 20px 24px; background: #23382c; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; font-size: .95em; }
.note p:last-child { margin-bottom: 0; }
.site-footer { padding-block: 38px 48px; border-top: 1px solid #46563f; background: #16231c; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.footer-note { color: var(--muted); font-size: .85rem; margin: 0; max-width: 56ch; }
.footer-nav ul { gap: 6px 20px; }
.footer-nav a { display: inline-block; padding-block: 5px; font-size: .82rem; color: #d5ddcd; }
.footer-nav a:hover { color: var(--accent); }
@media (hover: hover) { .card:hover { transform: translateY(-4px); border-color: #91a177; } }
@media (min-width: 1100px) { .card:nth-child(3n + 2) { transform: translateY(8px); } .card:nth-child(3n + 2):hover { transform: translateY(4px); } }
@media (max-width: 1100px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-nav a { padding-left: 0; padding-right: 16px; }
  .hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
  .hero-media img { aspect-ratio: .85; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 22px 16px; }
  .site-nav ul { gap: 0 7px; }
  .site-nav a { padding: 10px 9px 10px 0; font-size: .8rem; }
  .hero-inner, .split { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 28px; }
  .hero-text { padding-bottom: 0; }
  .hero h1 { max-width: 18ch; font-size: clamp(2.25rem, 7vw, 3.5rem); }
  .hero-media { margin: 5px 8px 12px 0; transform: rotate(.6deg); }
  .hero-media img { aspect-ratio: 1.5; }
  .split { gap: 28px; }
  .split-media { transform: none; }
  .split-media img { aspect-ratio: 1.5; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .article > .wrap { border-radius: 20px; }
}
@media (max-width: 540px) {
  .card-grid, .partner-list { grid-template-columns: minmax(0, 1fr); }
  .card-grid { gap: 20px; }
  .card { padding: 24px; }
  .card::before { margin-bottom: 18px; }
  .section { padding-block: 32px; }
  .split { padding: 23px; }
  .article > .wrap { padding: 23px 20px; }
  .breadcrumb { font-size: .75rem; }
  .prose { font-size: 1rem; }
  .page-header h1 { font-size: 2rem; }
  .hero-media { border-radius: 24px 24px 40px 16px; }
  .hero-media img { border-radius: 16px 16px 32px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { color: #111; background: white; }
  .site-header, .site-footer, .skip-link, .hero-actions { display: none; }
  .wrap, .article > .wrap { width: 100%; max-width: none; padding: 0; }
  .article > .wrap, .card, .split, .partner { background: white; color: #111; box-shadow: none; border-color: #aaa; }
  .prose > p:first-child, a, .breadcrumb { color: #111; }
  .figure img { max-height: 300px; width: auto; box-shadow: none; }
  h2, h3 { break-after: avoid; }
}
.page-home main { padding-bottom: 0; }
.page-sub main { min-height: 60vh; }
.section-partners .section-title { max-width: none; }
