/* Metasy S.A. - wariant "final": szkielet i typografia wariantu "noc" w jasnej palecie (biel, krem, atrament,
   granat, złoto), zbliżonej do wariantu "kino-dokument". Instalowany przez tools/build.py jako assets/css/styles.css.
   Mobile-first, bez frameworków, bez obrazów z sieci, fonty lokalne (CSP font-src 'self'). */

/* ---------- fonty (self-hosting, variable woff2; subsety latin + latin-ext) ---------- */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/space-grotesk-latin-ext.woff2) format("woff2"); 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: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/space-grotesk-latin.woff2) format("woff2"); 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: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format("woff2"); 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: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); 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: "JetBrains Mono"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/jetbrains-mono-latin-ext.woff2) format("woff2"); 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: "JetBrains Mono"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/jetbrains-mono-latin.woff2) format("woff2"); 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; }

/* ---------- zmienne (paleta jasna) ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;             /* tło strony */
  --cream: #f7f5f0;          /* hero i sekcje naprzemienne (ciepły krem jak w "kino-dokument") */
  --cream-deep: #efebe2;
  --navy: #0f2a44;           /* granat marki (favicon): sekcje ciemne, przyciski, numery kroków */
  --navy-deep: #0a1d31;      /* stopka, dół sekcji ciemnych */
  --navy-soft: #1c3d5e;
  --ink: #101f38;            /* tekst główny: bardzo ciemny granat (branża: granat zamiast czerni) */
  --ink-soft: #2e3d55;       /* akapity: ok. 10:1 na bieli */
  --ink-muted: #56637a;      /* tekst pomocniczy: ok. 6:1 na bieli, 5,5:1 na kremie */
  --line: rgba(17, 24, 39, .12);
  --line-strong: rgba(17, 24, 39, .26);
  --gold: #8a6c2e;
  --gold-text: #6c5320;      /* etykiety i linki na bieli/kremie: >= 5,5:1 */
  --gold-light: #c9a45c;     /* akcenty na granacie */
  --gold-wash: rgba(201, 164, 92, .16);
  --on-dark: rgba(255, 255, 255, .94);
  --on-dark-muted: rgba(255, 255, 255, .76);
  --dark-line: rgba(255, 255, 255, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -18px rgba(17, 24, 39, .22);
  --shadow-hover: 0 1px 2px rgba(17, 24, 39, .05), 0 22px 44px -20px rgba(15, 42, 68, .32);
  --container: 1200px;
  --mx: 50%;
  --my: 50%;
  --gap: 24px;
  --section: 64px;
  --font-display: "Space Grotesk", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (min-width: 900px) { :root { --section: 104px; --gap: 32px; } }

/* ---------- baza ---------- */
/* dłuższe opisy wyjustowane (z dzieleniem wyrazów, żeby nie było „rzek”); nagłówki, listy i etykiety bez zmian */
.hero-lead, .lead, .prose p, .prose-section p, .card-text, .fact-text, .step-text, .group-copy p, .network-box p, .cta-text, .footer-tagline, .lead-member .prose p, .ethic .fact-text { text-align: justify; hyphens: auto; hyphenate-limit-chars: 8 4 3; text-wrap: initial; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--gold-text); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; }
:lang(de) h1, :lang(de) h2, :lang(de) h3 { hyphens: auto; hyphenate-limit-chars: 10 5 4; }
:lang(de) .stat-label, :lang(de) .card-text, :lang(de) .fact-text, :lang(de) .step-text, :lang(de) .member-role, :lang(de) .entity-role, :lang(de) .bullets li { hyphens: auto; hyphenate-limit-chars: 10 5 4; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
::selection { background: rgba(201, 164, 92, .35); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .container { padding: 0 32px; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

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

/* ikony SVG ze stroke="currentColor" - kolor sterowany przez color */
.icon { width: 24px; height: 24px; flex: 0 0 auto; }
.icon-arrow { width: 18px; height: 18px; margin-left: 8px; transition: transform .2s; }
a:hover .icon-arrow, .btn:hover .icon-arrow { transform: translateX(4px); }
.icon-ext { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; display: inline; }
.icon-check { width: 18px; height: 18px; color: var(--gold); margin-top: 4px; }

/* ---------- etykiety monospace (eyebrow) ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 16px; display: inline-flex; align-items: center; gap: 12px; color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); flex: 0 0 auto; }
.eyebrow-light { color: var(--gold-light); }
.eyebrow-light::before { background: var(--gold-light); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2; position: relative; isolation: isolate;
  transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-accent, .btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(15, 42, 68, .6); }
.btn-accent:hover, .btn-primary:hover { background: var(--navy-soft); color: #fff; box-shadow: 0 14px 30px -12px rgba(15, 42, 68, .7); }
.btn-outline-light { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold-text); background: rgba(201, 164, 92, .08); }
/* na tle granatowym (section-dark, cta-box) ten sam przycisk odwraca kolory */
.section-dark .btn-accent, .cta-box .btn-accent, .section-dark .btn-primary, .cta-box .btn-primary { background: var(--gold-light); color: var(--navy-deep); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.section-dark .btn-accent:hover, .cta-box .btn-accent:hover, .section-dark .btn-primary:hover, .cta-box .btn-primary:hover { background: #d8b76f; color: var(--navy-deep); }
.section-dark .btn-outline-light, .cta-box .btn-outline-light { color: var(--on-dark); border-color: rgba(255, 255, 255, .32); }
.section-dark .btn-outline-light:hover, .cta-box .btn-outline-light:hover { border-color: var(--gold-light); color: #fff; background: rgba(255, 255, 255, .06); }

/* ---------- nagłówek (sticky, biel) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; color: var(--ink);
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s;
}
.site-header .container { max-width: 1280px; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 10px 30px -22px rgba(17, 24, 39, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 148px; height: auto; }
@media (min-width: 900px) { .brand img { width: 164px; } }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-strong); color: var(--ink); padding: 9px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.nav-toggle:hover { border-color: var(--gold); color: var(--gold-text); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
/* menu mobilne: JS przełącza klasę .is-open na #site-nav (main.js) */
.site-nav { flex-basis: 100%; display: none; padding: 12px 0 20px; border-top: 1px solid var(--line); margin-top: 6px; }
.site-nav.is-open { display: block; }
.nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-list a { display: block; padding: 11px 10px; color: var(--ink-soft); text-decoration: none; font-weight: 500; border-radius: var(--radius-sm); position: relative; white-space: nowrap; }
.nav-list a:hover { color: var(--ink); background: var(--cream); }
.nav-list a[aria-current="page"] { color: var(--ink); background: var(--cream-deep); }
.nav-extra { display: flex; align-items: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; padding: 0 10px; }
.lang-switch { display: flex; gap: 2px; font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .06em; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang-switch a { color: var(--ink-muted); text-decoration: none; padding: 5px 10px; border-radius: 999px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"], .lang-switch a[aria-current="page"] { color: #fff; background: var(--navy); }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 18px; flex-basis: auto; padding: 0; border: 0; margin: 0; }
  .nav-list { flex-direction: row; gap: 0; }
  .nav-list a { padding: 10px 11px; font-size: .92rem; border-radius: 999px; }
  .nav-list a[aria-current="page"] { background: transparent; }
  .nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold); }
  .nav-extra { margin: 0; gap: 12px; padding: 0; }
}
/* 1024-1279 px: menu desktopowe bez przycisku CTA (jest w hero i w sekcji kontakt), żeby nagłówek nie łamał się na dwa wiersze */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-extra .btn { display: none; }
  .brand img { width: 148px; }
}

/* ---------- hero: krem, delikatna siatka i ciepła poświata (czysty CSS, bez obrazów) ---------- */
.hero { position: relative; overflow: hidden; color: var(--ink); background: var(--cream); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -2;
  background:
    radial-gradient(ellipse 56% 60% at 84% 6%, rgba(201, 164, 92, .26), transparent 64%),
    radial-gradient(ellipse 48% 56% at 4% 96%, rgba(15, 42, 68, .10), transparent 64%),
    linear-gradient(180deg, #faf8f3 0%, var(--cream) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    linear-gradient(rgba(17, 24, 39, .06) 1px, transparent 1px) 0 0 / 112px 112px,
    linear-gradient(90deg, rgba(17, 24, 39, .06) 1px, transparent 1px) 0 0 / 112px 112px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 68% 40%, #000 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 75% at 68% 40%, #000 10%, transparent 100%);
}
/* linia horyzontu na dole hero: łączy hero z pierwszą sekcją */
.hero .container::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(138, 108, 46, .55) 30%, rgba(15, 42, 68, .35) 70%, transparent); pointer-events: none; }
.hero > .container { position: static; z-index: 1; }
.hero-home { padding: 64px 0 64px; }
.hero-sub { padding: 56px 0 56px; }
@media (min-width: 900px) { .hero-home { padding: 120px 0 104px; } .hero-sub { padding: 96px 0 80px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: 56px; } }
.hero-title { color: var(--ink); font-size: clamp(2.1rem, 5.6vw, 3.8rem); font-weight: 600; margin-bottom: 22px; max-width: 20ch; letter-spacing: -.03em; text-wrap: balance; }
.hero-sub .hero-title { max-width: 24ch; font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
.hero-lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 60ch; margin-bottom: 34px; text-wrap: pretty; }
@media (min-width: 900px) { .hero-lead { font-size: 1.25rem; } }
.hero-sub .hero-lead { margin-bottom: 0; }
.hero-sub .hero-lead:not(:last-child) { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* statystyki: duże liczby w granacie, etykiety mono */
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
@media (min-width: 900px) { .stat { padding: 28px 24px; } }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1; letter-spacing: -.035em; color: var(--navy); white-space: nowrap; }
.stat-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); line-height: 1.5; }

/* ---------- sekcje ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-alt { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: radial-gradient(ellipse 70% 60% at 85% 0%, rgba(201, 164, 92, .18), transparent 60%), radial-gradient(ellipse 50% 50% at 0% 100%, rgba(255, 255, 255, .06), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-dark); overflow: hidden; }
.section-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 112px 112px, linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 112px 112px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.section-dark > .container { position: relative; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark a { color: var(--gold-light); }
.section-dark a:hover { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-title { text-wrap: balance; }
@media (min-width: 900px) { .section-head { margin-bottom: 56px; } }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 600; }
.section-head-light .section-title { color: #fff; }
.lead { font-size: 1.1rem; color: var(--ink-muted); margin: 0; text-wrap: pretty; }
.section-head-light .lead { color: var(--on-dark-muted); }
.prose p { color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- siatki i karty (arkusze dokumentu) ---------- */
.grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-4 .card { padding: 24px; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); opacity: 0; transition: opacity .25s; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(201, 164, 92, .12), transparent 60%); }
.card:hover { border-color: rgba(138, 108, 46, .45); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card:hover::before { opacity: 1; }
.section-dark .card { background: rgba(255, 255, 255, .06); border-color: var(--dark-line); box-shadow: none; color: var(--on-dark); }
.section-dark .card:hover { background: rgba(255, 255, 255, .09); border-color: rgba(201, 164, 92, .5); }
.compact .card { padding: 22px; gap: 8px; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--cream); border: 1px solid rgba(138, 108, 46, .28); color: var(--gold-text); display: grid; place-items: center; margin-bottom: 6px; }
.section-dark .card-icon { background: rgba(255, 255, 255, .08); border-color: rgba(201, 164, 92, .4); color: var(--gold-light); }
.card-icon-lg { width: 56px; height: 56px; border-radius: 16px; }
.card-icon-lg .icon { width: 28px; height: 28px; }
.card-title { font-size: 1.25rem; margin: 0; }
.card-title-sm { font-size: 1.1rem; }
.card-title-lg { font-size: 1.5rem; }
.card-text { color: var(--ink-muted); margin: 0; }
.section-dark .card-text { color: var(--on-dark-muted); }
.card-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; color: var(--navy); }
.card-link:hover { color: var(--gold-text); }
.featured .card { padding: 36px; }
.featured .card::before { opacity: 1; }
.bullets { list-style: none; display: grid; gap: 8px; margin: 4px 0 8px; }
.bullets li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.section-dark .bullets li { color: var(--on-dark-muted); }
.section-dark .icon-check { color: var(--gold-light); }
.bullets li > span { min-width: 0; }
.bullets-sm li { font-size: .95rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips li { font-size: .8rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--cream); color: var(--ink-soft); border: 1px solid var(--line); }

/* ---------- o spółce ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin-bottom: 48px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.about-copy .section-head { margin-bottom: 28px; }
.about-facts { display: grid; gap: 24px; align-content: start; }
.fact { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 18px; align-content: start; }
.fact-icon { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--gold-text); display: grid; place-items: center; border: 1px solid rgba(138, 108, 46, .3); grid-row: span 2; }
.fact-title { font-size: 1.15rem; margin: 0; align-self: end; font-family: var(--font-display); font-weight: 600; }
.fact-text { color: var(--ink-muted); margin: 0; }
.facts-dark .fact { grid-template-columns: 1fr; gap: 6px; align-content: start; background: rgba(255, 255, 255, .06); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 24px; }
.facts-dark .fact-icon { grid-row: auto; margin-bottom: 8px; background: rgba(255, 255, 255, .08); border-color: rgba(201, 164, 92, .4); color: var(--gold-light); }
.facts-dark .fact-title { align-self: start; color: #fff; }
.facts-dark .fact-text { color: var(--on-dark-muted); }
.group-box {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.group-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold), var(--gold-light)); }
@media (min-width: 1024px) { .group-box { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 44px; gap: 48px; } }
.group-title { color: var(--ink); font-size: 1.4rem; margin-bottom: 8px; }
.group-copy p { color: var(--ink-muted); margin: 0; }
.entities { list-style: none; display: grid; gap: 0; }
.entity { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.entity:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .entity { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; } }
.entity-name { font-weight: 600; color: var(--ink); }
.entity-name a { color: var(--navy); text-decoration: none; }
.entity-name a:hover { color: var(--gold-text); text-decoration: underline; }
.entity-role { color: var(--ink-muted); font-size: .95rem; }

/* ---------- proces (kroki) ---------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; position: relative; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .steps-1 { grid-template-columns: minmax(0, 1fr); } .steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps-multi { row-gap: 44px; }
  .steps-multi::before { display: none; }
  .steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 164, 92, .7) 15%, rgba(201, 164, 92, .7) 85%, transparent); }
}
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; position: relative; align-content: start; }
@media (min-width: 1024px) { .step { grid-template-columns: 1fr; gap: 18px; } .step-title { min-height: 2.7em; } }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy-deep); color: var(--gold-light);
  font-family: var(--font-mono); font-size: .95rem; font-weight: 600; display: grid; place-items: center; position: relative; z-index: 1;
  box-shadow: 0 0 0 1px rgba(201, 164, 92, .7), 0 0 0 6px var(--navy);
}
.step-body { min-width: 0; }
.step-title { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.step-text { color: var(--on-dark-muted); margin: 0; font-size: .95rem; }
/* kroki poza sekcją ciemną (podstrony na jasnym tle) */
.section:not(.section-dark) .step-num { background: var(--navy); color: #fff; box-shadow: 0 0 0 1px rgba(15, 42, 68, .3), 0 0 0 6px var(--bg); }
.section-alt .step-num { box-shadow: 0 0 0 1px rgba(15, 42, 68, .3), 0 0 0 6px var(--cream); }
.section:not(.section-dark) .step-title { color: var(--ink); }
.section:not(.section-dark) .step-text { color: var(--ink-muted); }

/* ---------- zespół ---------- */
.lead-member { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 40px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .lead-member { grid-template-columns: 120px 1fr; gap: 40px; padding: 40px; } }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--cream); color: var(--navy); font-family: var(--font-display); font-size: 2rem; display: grid; place-items: center; border: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold-light); }
@media (min-width: 900px) { .avatar { width: 120px; height: 120px; font-size: 2.4rem; } }
.avatar-photo { object-fit: cover; object-position: center top; display: block; filter: saturate(.95) contrast(1.03); }
.lead-member-body { min-width: 0; }
.member-heading { font-size: 1.75rem; margin-bottom: 4px; }
.member-role-main { color: var(--gold-text); font-family: var(--font-mono); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 12px; }
.member-tagline { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 16px; line-height: 1.4; }
.lead-member .prose { color: var(--ink-muted); margin-bottom: 16px; }
.team-groups { margin-bottom: 32px; }
.team-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.team-group-title { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); margin-bottom: 14px; font-weight: 600; }
.members { list-style: none; display: grid; }
.members li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.members li:first-child { border-top: 0; padding-top: 0; }
.member-name { font-weight: 600; color: var(--ink); }
.member-role { color: var(--ink-muted); font-size: .92rem; }
.network-box { background: var(--navy); color: var(--on-dark); border: 1px solid var(--navy); border-radius: var(--radius); padding: 28px; display: flex; gap: 20px; align-items: flex-start; }
.network-box .fact-icon { flex: 0 0 48px; background: rgba(255, 255, 255, .08); border-color: rgba(201, 164, 92, .4); color: var(--gold-light); }
.network-box .fact-title, .network-box .group-title { color: #fff; }
.network-box p { color: var(--on-dark-muted); margin: 0; }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.details { margin: 0; display: grid; gap: 18px; }
.detail dt { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); font-weight: 600; margin-bottom: 4px; }
.detail dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 18px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .contact-form { padding: 36px; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field select option { background: #fff; color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 42, 68, .18); }
.field textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .85rem; color: var(--ink-muted); margin: 0; }
.form-note.privacy-link { margin-top: -6px; }
.form-status { font-size: .92rem; font-weight: 500; color: var(--gold-text); margin: 0; }
.form-status:empty { display: none; }
.field input::placeholder, .field textarea::placeholder { color: #6b7688; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(17, 24, 39, .45); }
.contact-copy .lead { margin-bottom: 28px; }
.direct-mail { display: flex; gap: 10px; align-items: center; margin: 18px 0 0; color: var(--ink-muted); }
.direct-mail span { min-width: 0; overflow-wrap: anywhere; }
.direct-mail .icon { color: var(--gold-text); width: 20px; height: 20px; }
.direct-mail a { font-weight: 600; }

/* ---------- etyka ---------- */
.ethics { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 900px) { .ethics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ethic { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.ethic .fact-icon { flex: 0 0 48px; background: var(--cream); }
.ethic > div { min-width: 0; }
.section-dark .ethic { background: rgba(255, 255, 255, .06); border-color: var(--dark-line); box-shadow: none; }
.section-dark .ethic .fact-icon { background: rgba(255, 255, 255, .08); border-color: rgba(201, 164, 92, .4); color: var(--gold-light); }
.section-dark .ethic .fact-title { color: #fff; }
.section-dark .ethic .fact-text { color: var(--on-dark-muted); }

/* ---------- produkty ---------- */
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.badge { font-family: var(--font-mono); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: var(--cream); color: var(--ink-soft); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; margin-right: 7px; vertical-align: 1px; }
.badge-active  { background: #e6f4ea; color: #1d5c31; border-color: #a9d4b4; }
.badge-building { background: #fbf1dc; color: #6c5320; border-color: #e5cf9c; }
.badge-pilot   { background: #e8eef6; color: #1c3d5e; border-color: #b7c7d9; }
.badge-rd      { background: #ede9f7; color: #4a3a7a; border-color: #c9c0e3; }
.badge-service { background: #e4f3f1; color: #145a51; border-color: #a5d5cf; }
.product-domain { font-family: var(--font-mono); font-size: .82rem; color: var(--navy); font-weight: 500; text-decoration: none; margin-top: -6px; }
.product-domain:hover { text-decoration: underline; color: var(--gold-text); }

/* ---------- CTA ---------- */
.cta-section { padding-top: 0; }
.section-dark + .cta-section { padding-top: var(--section); } /* dwa granatowe bloki nie sklejają się */
.cta-box {
  position: relative; overflow: hidden; color: var(--on-dark); border-radius: 24px; padding: 40px 28px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; border: 1px solid var(--navy); box-shadow: var(--shadow-hover);
  background: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(201, 164, 92, .28), transparent 60%), radial-gradient(ellipse 50% 80% at 0% 100%, rgba(255, 255, 255, .08), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
@media (min-width: 900px) { .cta-box { grid-template-columns: 1fr auto; align-items: center; padding: 56px; gap: 40px; } }
.cta-title { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 8px; }
.cta-text { color: var(--on-dark-muted); margin: 0; }
.cta-action { display: grid; gap: 10px; justify-items: start; }
@media (min-width: 900px) { .cta-action { justify-items: center; } }
.cta-privacy { font-size: .85rem; margin: 0; }
.cta-privacy a { color: var(--on-dark-muted); }
.cta-privacy a:hover { color: #fff; }
.cta-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1px, transparent 1.6px) 0 0 / 24px 24px; -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%); mask-image: linear-gradient(115deg, transparent 45%, #000 100%); }
.cta-box > * { position: relative; z-index: 1; }

/* ---------- strona tekstowa (polityka prywatności) ---------- */
.prose-page { max-width: 800px; }
.updated { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-muted); margin: 0 0 40px; padding-bottom: 18px; border-bottom: 1px solid var(--line); letter-spacing: .02em; }
.updated-label { font-weight: 600; color: var(--gold-text); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; margin-right: 6px; }
.prose-section { margin-bottom: 44px; padding-left: 22px; border-left: 2px solid rgba(201, 164, 92, .6); }
.prose-section:last-child { margin-bottom: 0; }
.prose-section h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin-bottom: .6em; color: var(--ink); }
.prose-section p { color: var(--ink-soft); }
.prose-section p:last-child { margin-bottom: 0; }
.prose-section .bullets { margin: 8px 0 0; }
.prose-section a { overflow-wrap: anywhere; }

/* ---------- metodologia: karty ze źródłami ---------- */
.sources-grid .card { gap: 10px; }
.sources-grid .card-text { margin-bottom: 4px; }
.sources-grid .bullets.sources { gap: 0; margin: 4px 0 0; border-top: 1px solid var(--line); }
.sources-grid .bullets.sources li { padding: 9px 0; border-bottom: 1px solid rgba(17, 24, 39, .07); font-size: .92rem; color: var(--ink-muted); align-items: flex-start; line-height: 1.5; }
.sources-grid .bullets.sources li:last-child { border-bottom: 0; }
.sources-grid .bullets.sources .icon-check { width: 14px; height: 14px; margin-top: 5px; color: var(--gold); opacity: .9; }
.about-facts .fact { padding: 4px 0; }

/* ---------- stopka (granat; logo granatowe odwrócone do bieli filtrem) ---------- */
.site-footer { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-dark-muted); padding: 64px 0 28px; border-top: 1px solid var(--navy); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-light) 30%, var(--gold-light) 70%, transparent); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--dark-line); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand img { width: 148px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-tagline { max-width: 40ch; margin: 0; font-size: .95rem; }
.footer-title { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-light); margin-bottom: 14px; font-weight: 600; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: var(--on-dark); text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: .85rem; font-family: var(--font-mono); letter-spacing: .01em; }
.footer-bottom p { margin: 0; min-width: 0; }

/* ---------- mobile (do 639 px): krótsza strona, większe cele dotyku, tekst do lewej ---------- */
html { -webkit-tap-highlight-color: rgba(201, 164, 92, .28); }
[id] { scroll-margin-top: 84px; } /* sticky nagłówek nie zasłania celu kotwicy (#kontakt, #zespol) */
@media (max-width: 639px) {
  :root { --section: 52px; --gap: 16px; --radius: 14px; }
  .hero-home { padding: 44px 0 44px; }
  .hero-sub { padding: 40px 0 40px; }
  .hero-grid { gap: 32px; }
  .hero-title { margin-bottom: 16px; }
  .hero-lead { margin-bottom: 26px; }
  /* justowanie tylko od 640 px: w wąskiej kolumnie telefonu powstają „rzeki” między wyrazami */
  .hero-lead, .lead, .prose p, .prose-section p, .card-text, .fact-text, .step-text, .group-copy p, .network-box p, .cta-text, .footer-tagline, .lead-member .prose p, .ethic .fact-text { text-align: left; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .btn { min-height: 48px; }
  .btn-sm { min-height: 44px; }
  .hero-stats { gap: 10px; }
  .stat { padding: 16px 14px; gap: 8px; }
  .stat-value { font-size: clamp(1.3rem, 6.6vw, 2rem); }
  .stat-label { font-size: .7rem; letter-spacing: .04em; }
  .section-head { margin-bottom: 28px; }
  .card { padding: 22px 20px; }
  .featured .card { padding: 26px 20px; }
  .compact .card { padding: 20px 18px; }
  .card-link { padding: 12px 0 2px; min-height: 44px; }
  .product-domain { padding: 8px 0; margin-top: -4px; }
  .group-box, .lead-member, .contact-form { padding: 24px 20px; border-radius: 18px; }
  .about-grid { gap: 36px; margin-bottom: 36px; }
  .about-facts { gap: 18px; }
  .steps { gap: 22px; }
  .network-box { padding: 22px 20px; gap: 16px; }
  .team-group { padding: 20px 18px; }
  .lead-member { margin-bottom: 28px; }
  .contact-grid { gap: 36px; }
  .contact-form .btn { justify-self: stretch; }
  .cta-box { padding: 32px 22px; border-radius: 18px; }
  .cta-action { justify-items: stretch; }
  .cta-action .btn { width: 100%; }
  .ethic { padding: 20px 18px; }
  .site-footer { padding: 48px 0 24px; }
  .footer-grid { gap: 28px; padding-bottom: 28px; }
  .footer-links { gap: 2px; }
  .footer-links a { display: inline-block; padding: 7px 0; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .footer-bottom a { display: inline-block; padding: 6px 0; }
  .prose-section { padding-left: 16px; margin-bottom: 32px; }
  .updated { margin-bottom: 28px; }
  .lang-switch a { padding: 8px 14px; }
  .nav-extra { gap: 12px; }
  .nav-extra .btn { flex: 1 1 auto; }
}
/* menu mobilne: przewijalne przy niskim ekranie (telefon w poziomie), strona pod spodem zablokowana (html.nav-open z main.js) */
@media (max-width: 1023px) {
  .nav-toggle { min-height: 44px; }
  .site-nav.is-open { max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  html.nav-open { overflow: hidden; }
  .site-header:has(.site-nav.is-open) { box-shadow: 0 18px 40px -20px rgba(17, 24, 39, .4); }
}
/* ekrany dotykowe: bez efektów hover, które po dotknięciu zostają „zawieszone” */
@media (hover: none) {
  .card:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow); }
  .card:hover::before, .card:hover::after { opacity: 0; }
  .featured .card:hover::before { opacity: 1; }
  .section-dark .card:hover { background: rgba(255, 255, 255, .06); border-color: var(--dark-line); }
  .btn:hover { transform: none; }
}
/* bezpieczne marginesy przy wycięciu ekranu (iPhone w poziomie) */
@supports (padding: max(0px)) {
  .container { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  @media (min-width: 900px) { .container { padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); } }
}

/* ---------- scroll-reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
  .card::after { display: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, .98); }
}

@media print {
  .site-header, .skip-link, .contact-form-wrap, .cta-section { display: none; }
  html, body { background: #fff; color: #000; }
  h1, h2, h3, h4, .hero-title, .stat-value, .eyebrow { color: #000; }
  .hero, .section-alt, .section-dark, .group-box, .network-box, .site-footer, .card, .stat, .cta-box { background: #fff; color: #000; box-shadow: none; }
  .hero::before, .hero::after { display: none; }
  .footer-brand img { filter: none; }
  .card-text, .lead, .hero-lead, .stat-label, .fact-text, .step-text, .member-role, .entity-role { color: #333; }
}
