/* Centrum Innowacji STB — jasne laboratorium */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #005496;
  --blue-hi: #0a6cbb;
  --sky: #e6f0f8;
  --teal: #13a3b0;
  --bg: #f4f7fa;
  --paper: #ffffff;
  --ink: #0b2540;
  --ink-2: #44566b;
  --ink-3: #5c6e82;
  --line: #d8e2ec;
  --line-soft: rgba(0, 84, 150, 0.07);
  --navy: #0b2540;

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 6px;
  --r-lg: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 10vw, 140px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grid: linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px,
          linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 32px 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; letter-spacing: -0.02em; }
b, strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--blue); border-radius: var(--r);
  background: var(--blue); color: #fff;
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--blue-hi); border-color: var(--blue-hi); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); border-color: var(--blue); color: var(--blue); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 500; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover svg { transform: translateX(3px); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}
.nav-bar { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { margin-right: auto; flex: none; }
.brand img { height: 50px; width: auto; }
.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: var(--r);
  color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--blue); background: var(--sky); }
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.eu-badge img { height: 34px; width: auto; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lang a { padding: 6px 10px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--blue); color: #fff; }
.lang a:not([aria-current="true"]):hover { color: var(--blue); background: var(--sky); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 12px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .js .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .js .nav-links a { padding: 14px 8px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .no-js .nav-bar { flex-wrap: wrap; padding-block: 12px; }
  .no-js .nav-links { flex-wrap: wrap; width: 100%; }
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grid), var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(64vw, 1060px);
  pointer-events: none;
  /* soft fade into the page: left, top and bottom edges dissolve */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 55%), linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 55%), linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 85% 40%; opacity: .92; }
.hero-inner { position: relative; padding-block: clamp(64px, 9vw, 128px) clamp(56px, 8vw, 112px); }
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: 28px;
}
.hero h1 span { color: var(--blue); }
.hero .lead { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); }
.hero .lead b { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.spec-card {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center;
  max-width: 460px;
  margin-top: 48px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--r) var(--r) 0;
}
.spec-card .grade {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 1.875rem; font-weight: 600; color: var(--blue);
  background: var(--sky);
}
.spec-card p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.spec-card .link-arrow { font-size: 0.9375rem; }

/* intro */
.intro p {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.375rem, 2.6vw, 2.125rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink-2);
}
.intro p b { font-weight: 500; color: var(--blue); }
.section--areas { padding-top: 0; }

/* areas */
.areas-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.areas {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.area {
  display: flex; flex-direction: column;
  background: var(--paper);
  transition: background-color .3s var(--ease);
}
.area:hover { background: #fbfdff; }
.area figure { margin: 0; overflow: hidden; background: #fff; }
.area img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 8; transition: transform .8s var(--ease); }
.area-body { flex: 1; }
.area:hover img { transform: scale(1.04); }
.area-body { display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 32px); }
.area h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.area h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.area p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.area .link-arrow { margin-top: auto; padding-top: 8px; font-size: 0.9375rem; }

/* EU band */
.eu-band { background: var(--paper); border-block: 1px solid var(--line); }
.eu-band a { display: block; padding-block: 28px; }
.eu-band img { width: 100%; max-width: 980px; margin-inline: auto; }

/* contact */
.contact h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.1; margin-bottom: 36px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-item {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.contact-item svg { width: 28px; height: 28px; color: var(--blue); margin-bottom: 22px; }
.contact-item h3 { font-size: 0.9375rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-bottom: 6px; }
.contact-item p { margin: 0; font-size: 1.1875rem; line-height: 1.55; }
.contact-item a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-item a:hover { color: var(--blue); border-color: var(--blue); }

/* footer */
.site-footer { background: var(--navy); color: #c9d6e4; padding-top: clamp(56px, 7vw, 88px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.footer-logo img { width: 220px; height: auto; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: #c9d6e4; text-decoration: none; font-size: 0.9375rem; }
.footer-nav a:hover { color: #fff; }
.footer-eu { margin-top: 48px; padding: 16px 20px; background: #fff; border-radius: var(--r-lg); display: flex; justify-content: center; }
.footer-eu img { max-height: 64px; width: auto; }
.footer-bottom { margin-top: 40px; padding-block: 20px 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.875rem; color: #9db0c6; }

/* motion */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-d="1"] { --d: 80ms; } [data-d="2"] { --d: 160ms; } [data-d="3"] { --d: 240ms; }
.js .hero-media { opacity: 0; transform: translateX(40px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js.is-loaded .hero-media { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js [data-reveal], .js .hero-media { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; }
  .hero-media {
    position: relative; order: 2; width: 100%; height: 300px; margin-top: 8px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 75%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 75%, transparent 100%);
  }
  .hero-inner { padding-bottom: 0; }
  .intro, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .brand img { height: 42px; }
  .eu-badge { display: none; }
  .areas { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-card { grid-template-columns: minmax(0, 1fr); }
  .spec-card .grade { grid-row: auto; width: 52px; height: 52px; font-size: 1.5rem; }
}

/* ===================== modern layer ===================== */

/* floating glass header */
.site-header {
  position: fixed; top: 12px; left: 0; right: 0;
  background: transparent; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  pointer-events: none;
}
.site-header .wrap { position: relative; }
.nav-bar {
  pointer-events: auto;
  min-height: 70px;
  padding: 8px 10px 8px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 10px 30px -12px rgba(11, 37, 64, 0.18), 0 1px 0 rgba(11, 37, 64, 0.04);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.is-scrolled .nav-bar { background: rgba(255, 255, 255, 0.9); box-shadow: 0 14px 40px -14px rgba(11, 37, 64, 0.28); }
.brand img { height: 46px; }
.nav-links a { border-radius: 999px; }
.lang { border-radius: 999px; }

/* hero: soft brand glow + fading grid */
.hero { padding-top: 96px; isolation: isolate; border-bottom: 0; background: var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grid);
  -webkit-mask-image: radial-gradient(120% 90% at 20% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 20% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2;
  width: 900px; height: 900px; left: -300px; top: -380px;
  background: radial-gradient(closest-side, rgba(19, 163, 176, 0.18), transparent 70%),
              radial-gradient(closest-side at 70% 60%, rgba(0, 84, 150, 0.16), transparent 70%);
  filter: blur(10px);
  animation: glow 18s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(120px, 80px) scale(1.12); } }
.grad {
  background: linear-gradient(100deg, var(--blue) 10%, var(--teal) 90%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.btn { border-radius: 999px; padding-inline: 26px; box-shadow: 0 8px 22px -10px rgba(0, 84, 150, 0.55); }
.btn:hover { box-shadow: 0 12px 28px -10px rgba(0, 84, 150, 0.7); transform: translateY(-1px); }

.spec-card {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -20px rgba(11, 37, 64, 0.35);
}
.spec-card .grade {
  border: 0; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 8px 20px -8px rgba(19, 163, 176, 0.7);
}

/* intro: highlighted phrases */
.intro p b {
  background: linear-gradient(100deg, var(--blue), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* bento cards with photo overlays */
.areas {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; background: none; border: 0; border-radius: 0; overflow: visible;
}
.area {
  position: relative; isolation: isolate;
  min-height: 460px;
  border-radius: 22px; overflow: hidden;
  background: var(--navy);
  justify-content: flex-end;
  box-shadow: 0 20px 50px -30px rgba(11, 37, 64, 0.5);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.area:hover { background: var(--navy); transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11, 37, 64, 0.6); }
.area--wide { grid-column: span 2; }
.area--csr { order: 3; }
.area--edu { order: 4; }
.area { justify-content: flex-start; min-height: 0; }
.area figure { position: relative; inset: auto; z-index: 0; height: 280px; flex: none; background: #fff; }
.area img { height: 100%; aspect-ratio: auto; }
.area figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 37, 64, 0) 35%, rgba(11, 37, 64, 0.7) 75%, var(--navy) 100%);
}
.area::after { content: none; }
.area-body { position: relative; z-index: 1; flex: 1; margin-top: -64px; padding: 0 clamp(24px, 2.6vw, 36px) clamp(24px, 2.6vw, 36px); color: #fff; }
.area h3 { color: #fff; font-size: clamp(1.5rem, 2vw, 1.875rem); }
.area h3::before { background: #5fe0ea; box-shadow: 0 0 0 4px rgba(95, 224, 234, 0.2); }
.area p { color: rgba(255, 255, 255, 0.86); max-width: 62ch; }
.area .link-arrow {
  align-self: flex-start;
  color: #fff; padding: 10px 16px; margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .25s, border-color .25s;
}
.area .link-arrow:hover { text-decoration: none; background: rgba(255, 255, 255, 0.2); border-color: #fff; }

/* contact */
.contact-item {
  border-radius: 22px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.contact-item:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 50px -28px rgba(11, 37, 64, 0.45); }
.contact-item svg {
  width: 52px; height: 52px; padding: 13px;
  color: #fff; border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 10px 22px -10px rgba(0, 84, 150, 0.7);
}

/* footer glow */
.site-footer { position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before {
  content: ""; position: absolute; z-index: -1; right: -200px; top: -300px; width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(19, 163, 176, 0.25), transparent 70%);
}
.footer-eu { border-radius: 18px; }

@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

@media (max-width: 1080px) {
  .js .nav-links { top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(11,37,64,.35); }
}
@media (max-width: 900px) {
  .areas { grid-template-columns: minmax(0, 1fr); }
  .area--wide { grid-column: auto; }
  .area figure { height: 220px; }
  .hero { padding-top: 92px; }
}

/* ===================== subpages ===================== */

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(140px, 15vw, 190px) 0 clamp(40px, 5vw, 64px);
  background: var(--bg);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grid);
  -webkit-mask-image: radial-gradient(90% 100% at 15% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(90% 100% at 15% 0%, #000 25%, transparent 75%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -2; width: 800px; height: 800px; right: -250px; top: -420px;
  background: radial-gradient(closest-side, rgba(19, 163, 176, 0.16), transparent 70%),
              radial-gradient(closest-side at 30% 70%, rgba(0, 84, 150, 0.14), transparent 70%);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 0.875rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 22ch; }
.page-hero .lead { max-width: 60ch; margin: 24px 0 0; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--ink-2); }
.page-hero .btn-row { margin-top: 28px; }

.section--page { padding-top: clamp(24px, 3vw, 40px); }
.article-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.article-single .prose { max-width: 860px; }
.aside { position: sticky; top: 110px; }
.aside-media {
  border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -36px rgba(11, 37, 64, 0.55);
  max-height: calc(100vh - 140px);
}
.aside-media img { width: 100%; height: 100%; max-height: calc(100vh - 140px); object-fit: cover; object-position: center top; }

.prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose h2 { color: var(--ink); font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.25; letter-spacing: -0.02em; margin: 2em 0 .6em; }
.prose h2::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.prose h3 { color: var(--ink); font-size: 1.125rem; line-height: 1.35; margin: 1.6em 0 .5em; }
.prose h4, .prose h5 { color: var(--ink); font-size: 1.0625rem; margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--teal); }
.prose a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--teal); }
.prose img { border-radius: 14px; margin: 1.4em 0; max-width: min(100%, 440px); }

.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.4em 0 2em; }
.group {
  padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.group:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 22px 44px -28px rgba(11, 37, 64, 0.45); }
.group h3 { margin-top: 0; display: flex; gap: 10px; align-items: center; font-size: 1rem; letter-spacing: .02em; color: var(--blue); }
.group h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.group ul { margin: 0; font-size: .9375rem; line-height: 1.6; }
.prose > .group { margin: 1.4em 0; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 1.4em 0 2em; }
.gallery img { margin: 0; width: 100%; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.gallery img:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(11, 37, 64, 0.45); }

.section--cta { padding-top: 0; }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 26px; color: #fff;
  background: linear-gradient(120deg, var(--blue) 0%, #0a6cbb 55%, var(--teal) 120%);
  box-shadow: 0 30px 60px -36px rgba(0, 84, 150, 0.8);
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 32px 32px; }
.cta h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.1; }
.btn--light { background: #fff; color: var(--blue); border-color: #fff; box-shadow: none; }
.btn--light:hover { background: var(--sky); border-color: var(--sky); color: var(--blue); }

.contact-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
.company-card {
  padding: clamp(28px, 3vw, 40px); border-radius: 22px; color: #fff;
  background: linear-gradient(150deg, var(--navy), #0d3a66 70%, #0f5a86);
  box-shadow: 0 30px 60px -36px rgba(11, 37, 64, 0.7);
}
.company-card h2 { font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.3; margin-bottom: 20px; }
.company-card p { color: rgba(255,255,255,.86); font-size: 1.0625rem; }
.company-card .facts { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: .9375rem; color: rgba(255,255,255,.75); margin-bottom: 0; }
.contact-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-item p { overflow-wrap: anywhere; }
.contact-item .note { margin-top: 12px; font-size: .9375rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .article-grid, .contact-page { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; order: -1; }
  .aside-media, .aside-media img { max-height: 340px; }
  .groups, .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .contact-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
}
.contact-item--accent p { font-size: 1rem; }
.contact-item--accent a { white-space: nowrap; }
@media (max-width: 380px) { .contact-item--accent a { white-space: normal; } }

/* ===================== richer article content ===================== */

.prose .block {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  margin: 0 0 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 40px -34px rgba(11, 37, 64, 0.45);
}
.prose .block--intro {
  background: linear-gradient(135deg, #ffffff 0%, #f1f7fc 100%);
  border-color: #d3e3f1;
}
.prose .block--intro::before {
  content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 4px;
  border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--blue), var(--teal));
}
.prose .block > :last-child { margin-bottom: 0; }
.prose .block > h2:first-child { margin-top: 0; }
.prose .block > h2 + p { font-size: 1.125rem; color: var(--ink); line-height: 1.7; }

/* divider between heading and body */
.prose .block > h2 {
  display: flex; flex-direction: column; gap: 0;
  padding-bottom: 18px; margin-bottom: 20px;
  background: linear-gradient(90deg, var(--line), transparent) bottom left / 100% 1px no-repeat;
}
.prose .block > h2::before { margin-bottom: 16px; }

/* checklist */
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist > li { position: relative; padding-left: 38px; margin-bottom: 12px; }
.prose ul.checklist > li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 24px; height: 24px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 6px 14px -6px rgba(0, 84, 150, 0.6);
}
.prose ul.checklist > li::after {
  content: ""; position: absolute; left: 8px; top: calc(.2em + 6px);
  width: 8px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.prose ul.list-cols { columns: 2; column-gap: 36px; }
.prose ul.list-cols > li { break-inside: avoid; }
.group ul.checklist > li { padding-left: 30px; }
.group ul.checklist > li::before { width: 18px; height: 18px; border-radius: 6px; top: .25em; }
.group ul.checklist > li::after { left: 6px; top: calc(.25em + 4px); width: 6px; height: 9px; }

/* bold-led items as feature cards */
.prose ul.feature-grid {
  list-style: none; padding: 0; margin: 1.4em 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.prose ul.feature-grid > li {
  margin: 0; padding: 18px 20px 18px 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  font-size: .9375rem; line-height: 1.6;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s;
}
.prose ul.feature-grid > li:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 18px 36px -24px rgba(11, 37, 64, 0.45); }
.prose ul.feature-grid > li b,
.prose ul.feature-grid > li strong { display: block; margin-bottom: 4px; font-size: 1rem; color: var(--blue); }

/* numbered tiles */
.prose ol.num-tiles {
  list-style: none; padding: 0; margin: 1.4em 0; counter-reset: tile;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.prose ol.num-tiles > li {
  counter-increment: tile; margin: 0; padding: 18px 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); font-weight: 500; line-height: 1.4;
}
.prose ol.num-tiles > li::before {
  content: counter(tile, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-size: 1.75rem; font-weight: 600; line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* key–value tables */
.table-wrap { margin: 1.4em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table.kv { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.6; }
table.kv th, table.kv td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.kv tr:last-child th, table.kv tr:last-child td { border-bottom: 0; }
table.kv th { width: 32%; color: var(--blue); font-weight: 600; background: #f3f8fc; }
table.kv tr:nth-child(even) td { background: #fbfdff; }

/* group cards inside blocks sit on the tinted ground */
.prose .block .group { background: var(--bg); }

@media (max-width: 900px) {
  .prose ol.num-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .prose ul.list-cols { columns: 1; }
  .prose ul.feature-grid { grid-template-columns: minmax(0, 1fr); }
  .prose .block { padding: 22px 20px; border-radius: 18px; }
  table.kv th { width: 40%; }
}

.prose img[src*="ue-fundusze-pasek"] { max-width: 100%; width: 100%; border-radius: 8px; }

