:root {
  color-scheme: dark;
  --bg: #1a2d6d;
  --surface: #243a85;
  --text: #f6efdc;
  --accent: #5db7ee;
  --accent2: #f2b824;
  --muted: #d0d6e5;
  --line: #53669b;
  --heading: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --body: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { 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; overflow-wrap: break-word; }
.page { min-width: 0; }
.page-sub { text-rendering: optimizeLegibility; }
main { display: block; }
::selection { color: var(--bg); background: var(--accent2); }
a { color: var(--accent); text-underline-offset: .23em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
a, button { -webkit-tap-highlight-color: #5db7ee33; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
figcaption { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 1.2rem; font-family: var(--heading); font-weight: 400; line-height: 1.16; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 2rem + 2.5vw, 4.8rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 1.5vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.5rem, 1.2rem + .65vw, 2rem); }
h4, h5, h6 { font-size: 1.25rem; }
p { margin: 0 0 1.3rem; }
ul, ol { padding-left: 1.5rem; }
li + li { margin-top: .4rem; }
strong, b { font-weight: 700; }
small { font-size: .85em; }
hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--accent2); font-family: var(--heading); font-size: 1.35em; background: var(--surface); }
code, pre { font-family: ui-monospace, monospace; font-size: .9em; }
pre { overflow: auto; padding: 1rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
th { color: var(--accent); }
input, textarea, select, button { max-width: 100%; font: inherit; color: inherit; }
input, textarea, select { background: var(--surface); border: 1px solid var(--line); padding: .65rem; }
button { cursor: pointer; }
.wrap { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: 1rem; padding: .65rem 1rem; background: var(--accent2); color: var(--bg); transform: translateY(-160%); font-weight: 700; }
.skip-link:focus { transform: translateY(0); color: var(--bg); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.65rem; }
.brand { flex-shrink: 0; font: 400 clamp(1.5rem, 1.1rem + .8vw, 2rem)/1.2 var(--heading); color: var(--text); text-decoration: none; letter-spacing: -.04em; }
.brand::after { content: ''; display: block; width: 2rem; height: 3px; margin-top: .6rem; background: var(--accent); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.site-nav li, .footer-nav li { margin: 0; }
.site-nav a { display: block; padding-block: .4rem; font-size: .82rem; font-weight: 600; color: var(--text); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--accent); text-decoration: underline; }
.hero { padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 7vw, 7rem); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: clamp(2rem, 4vw, 4rem); }
.hero-text { position: relative; z-index: 1; min-width: 0; }
.eyebrow { margin-bottom: 1.5rem; color: var(--accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; }
.hero h1 { max-width: 19ch; font-size: clamp(2.35rem, 1.5rem + 3vw, 4.5rem); }
.lead { font-size: clamp(1.15rem, 1rem + .45vw, 1.45rem); line-height: 1.65; }
.hero .lead { max-width: 58ch; font-size: clamp(1rem, .92rem + .3vw, 1.18rem); color: var(--muted); }
.hero-actions { margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; padding: .85rem 1.3rem; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-size: .9rem; font-weight: 700; line-height: 1.5; transition: background-color .2s, color .2s, transform .2s; }
.btn::after { content: '\2197'; font-size: 1.3em; }
.btn-primary { color: var(--bg); background: var(--accent2); border-color: var(--accent2); }
.btn:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.hero-media { position: relative; margin-top: 4rem; padding: 0 0 1.25rem 1.25rem; }
.hero-media::before { content: ''; position: absolute; inset: 2.5rem 2.5rem 0 0; background: var(--surface); border-bottom: 3px solid var(--accent); }
.hero-media img { position: relative; width: 100%; height: clamp(28rem, 42vw, 42rem); object-position: 58% center; }
.section { padding-block: clamp(3rem, 6vw, 6rem); }
.section-title { max-width: 24ch; }
.section-intro { max-width: 60ch; margin-bottom: 2rem; color: var(--muted); }
.page-home .hero + .section { position: relative; padding-top: clamp(4.5rem, 7vw, 7rem); }
.page-home .hero + .section::before, .site-footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 18px; background: repeating-linear-gradient(45deg, transparent 0 7px, var(--accent) 7px 9px, transparent 9px 16px), repeating-linear-gradient(-45deg, transparent 0 7px, var(--accent2) 7px 9px, transparent 9px 16px); background-size: 23px 18px; border-block: 1px solid var(--line); }
.page-home .hero + .section > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(2rem, 6vw, 6rem); }
.page-home .hero + .section .section-title { grid-column: 1; grid-row: 1 / span 2; }
.page-home .hero + .section p { grid-column: 2; }
.section-feature { background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.split-text { min-width: 0; }
.split-text p:last-child { margin-bottom: 0; }
.split-media { padding-top: 2rem; border-top: 3px solid var(--accent2); }
.split-media img { width: 100%; aspect-ratio: 4 / 5; }
.section-feature + .section > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 6vw, 6rem); }
.section-feature + .section .section-title { grid-column: 1; grid-row: span 2; }
.section-feature + .section p { grid-column: 2; }
.section-feature + .section .section-title:nth-of-type(2) { padding-top: 2rem; }
.section-feature + .section .section-title:nth-of-type(2) + p { margin-top: 2rem; }
#tematy { border-top: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
.card { grid-column: span 4; display: flex; flex-direction: column; min-width: 0; padding: clamp(1.4rem, 2.5vw, 2.5rem); background: var(--surface); border-top: 3px solid var(--accent2); transition: transform .2s; }
.card:nth-child(1) { grid-column: span 7; }
.card:nth-child(2) { grid-column: span 5; }
.card-title { margin-bottom: 1rem; }
.card-text { font-size: 1rem; color: var(--muted); }
.card-link { margin-top: auto; padding-top: 1rem; font-size: .9rem; font-weight: 600; }
.card:hover { transform: translateY(-3px); }
.fact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-block: 2rem; padding: 0; list-style: none; }
.fact { margin: 0; border-top: 2px solid var(--accent2); padding: 1.25rem 0; }
.fact strong { display: block; color: var(--accent); font: 400 2.5rem/1.2 var(--heading); }
.section-partners { border-top: 1px solid var(--line); padding-block: 3.5rem; }
.section-partners .section-title { font-size: clamp(1.8rem, 1.4rem + 1vw, 2.5rem); }
.partner-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.partner { min-width: 0; margin: 0; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); }
.partner-link { display: block; max-width: 100%; overflow-wrap: anywhere; font-size: .78rem; line-height: 1.5; color: var(--text); }
.partner-phrase { margin: .7rem 0 .4rem; color: var(--accent); font-size: .95rem; font-weight: 600; line-height: 1.4; }
.partner-desc { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.article { padding-block: clamp(2rem, 4vw, 4rem) clamp(4rem, 7vw, 7rem); }
.article > .wrap { max-width: 1080px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem .65rem; font-size: .8rem; color: var(--muted); margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.page-header { max-width: 68ch; margin-inline: auto; margin-bottom: 3rem; }
.page-header h1 { font-size: clamp(2.25rem, 1.6rem + 2.5vw, 4rem); margin-bottom: 1.75rem; }
.page-header::before { content: ''; display: block; width: 4rem; height: 3px; margin-bottom: 1.5rem; background: var(--accent2); }
.page-header .lead { margin: 0; }
.article-figure { margin: 3rem 0; background: var(--surface); padding-bottom: .75rem; border-bottom: 1px solid var(--accent); }
.article-figure img { width: 100%; max-height: 620px; aspect-ratio: 16 / 10; object-position: center; }
.article-figure img[height='1500'] { object-position: center 35%; }
.prose { max-width: 68ch; margin-inline: auto; font-size: clamp(1.05rem, 1rem + .2vw, 1.2rem); line-height: 1.85; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.65rem, 1.3rem + 1vw, 2.35rem); }
.prose h3 { margin-top: 2rem; }
.prose > :first-child { margin-top: 0; }
.prose a { overflow-wrap: anywhere; }
.prose .article-figure { margin-block: 2.5rem; }
.note { margin-block: 2rem; padding: 1.5rem; background: var(--surface); border-left: 3px solid var(--accent2); }
.note > :last-child { margin-bottom: 0; }
.site-footer { position: relative; padding-block: 3.75rem 2.5rem; background: #14245a; }
.footer-inner { display: flex; align-items: start; justify-content: space-between; gap: 2rem; }
.footer-note { max-width: 54ch; margin: 0; color: var(--muted); font-size: .85rem; }
.footer-nav a { display: inline-block; padding-block: .2rem; font-size: .8rem; }

@media (min-width: 1400px) {
  .hero-media { margin-right: -1.5rem; }
}
@media (max-width: 1100px) {
  .header-inner { align-items: start; flex-direction: column; gap: 1rem; }
  .site-nav ul { gap: .25rem 1.5rem; }
  .hero-inner { gap: 2rem; }
  .hero-media img { height: 34rem; }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-column: span 6; }
  .card:last-child { grid-column: span 12; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 760px) {
  .hero-inner, .split { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 2.5rem; }
  .hero h1 { max-width: 23ch; }
  .hero-media { width: 92%; margin-top: .5rem; margin-left: auto; }
  .hero-media img { height: auto; aspect-ratio: 5 / 4; }
  .page-home .hero + .section > .wrap,
  .section-feature + .section > .wrap { display: block; }
  .section-title { max-width: 28ch; }
  .split-media { width: 90%; }
  .split-media img { aspect-ratio: 3 / 2; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .card, .card:nth-child(1), .card:nth-child(2), .card:last-child { grid-column: 1; }
  .fact-list { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .article-figure img { aspect-ratio: 4 / 3; }
}
@media (max-width: 540px) {
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; }
  .site-nav a { font-size: .76rem; }
  .partner-list { grid-template-columns: minmax(0, 1fr); }
  .hero-media { width: 95%; }
  .footer-nav ul { gap: .5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
