/* SUPERPOSE — Quantum Sales Institute
   System wizualny: papier + atrament, jeden akcent (fiolet interferencyjny),
   drugi kolor tylko w wizualizacjach fal. */

:root {
  --paper: #f5f3ee;
  --paper-2: #ecE9e1;
  --ink: #0d1016;
  --ink-2: #2a2f3a;
  --mute: #5d6371;
  --line: #d9d5ca;
  --accent: #5a3cf0;
  --accent-ink: #3d22c9;
  --accent-soft: #e9e4ff;
  --wave: #13a89e;
  --night: #0b0d14;
  --night-2: #151925;
  --night-line: #262b3a;
  --night-text: #c9ccd6;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- typografia ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(44px, 7.2vw, 96px); }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
h4 { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: 0; }
em, .it { font-style: italic; }
h1 em, h2 em { color: var(--accent); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.mono { font-family: var(--mono); font-size: 0.86em; }
.tm { font-size: 0.55em; vertical-align: super; margin-left: 1px; font-family: var(--sans); }
.muted { color: var(--mute); }

/* ---------- nagłówek ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--sans); font-weight: 700; letter-spacing: 0.22em; font-size: 15px; }
.brand small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--mute); text-transform: uppercase; margin-top: 1px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-ink); }
.top .btn { margin-left: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; }

@media (max-width: 1080px) {
  .nav, .top .btn { display: none; }
  .burger { display: block; }
  .top.open .nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; gap: 0;
  }
  .top.open .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .top.open .nav a.nav-cta { display: block; color: var(--accent-ink); border-bottom: 0; font-weight: 600; }
}
.nav a.nav-cta { display: none; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.005em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); transition: transform .15s, background .15s, color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.night .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.night .btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.night .btn.ghost { background: transparent; color: var(--paper); border-color: #454b5c; }
.link { color: var(--accent-ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.link:hover { border-bottom-color: var(--accent); }

/* ---------- sekcje ---------- */
section { padding-block: clamp(72px, 10vw, 140px); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head p { color: var(--ink-2); max-width: 48ch; margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 20px; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.night { background: var(--night); color: var(--night-text); }
.night h1, .night h2, .night h3, .night h4 { color: #f3f1ea; }
.night h2 em, .night h1 em { color: #a896ff; }
.night .eyebrow { color: #8a90a2; }
.night .lead, .night .sec-head p { color: #b3b7c4; }
.tint { background: var(--paper-2); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 110px) clamp(64px, 9vw, 120px); overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px 44px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 760px; }
.hero-meta div { font-size: 14px; color: var(--mute); }
.hero-meta b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.1; }

.page-hero { padding-block: clamp(56px, 8vw, 110px) clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(42px, 6vw, 80px); max-width: 16ch; }
.page-hero .lead { margin-top: 24px; max-width: 56ch; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--mute); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- siatki i karty ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .g5 { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); letter-spacing: 0.1em; display: block; margin-bottom: 26px; }
.night .card { background: var(--night-2); border-color: var(--night-line); }
a.card { text-decoration: none; transition: border-color .2s, transform .2s; display: block; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }

/* zasady na stronie głównej */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night-line); }
.principles > div { padding: 40px 36px 8px 0; border-right: 1px solid var(--night-line); }
.principles > div + div { padding-left: 36px; }
.principles > div:last-child { border-right: 0; }
.principles .sym { font-family: var(--serif); font-style: italic; font-size: 64px; color: #a896ff; line-height: 1; display: block; margin-bottom: 26px; }
.principles h3 { margin-bottom: 14px; }
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; }
  .principles > div, .principles > div + div { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--night-line); }
}

/* porównanie starej i nowej sprzedaży */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.compare > div { padding: 34px; }
.compare > div + div { border-left: 1px solid var(--line); background: var(--accent-soft); }
.compare h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; color: var(--mute); }
.compare > div + div h4 { color: var(--accent-ink); }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
.compare > div + div li { border-top-color: #d3cafa; }
.compare > div:first-child li { color: var(--mute); text-decoration: line-through; text-decoration-color: #b9b4a8; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* model KWANT */
.kwant { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kwant > div { padding: 32px 22px 30px; border-right: 1px solid var(--line); position: relative; }
.kwant > div:last-child { border-right: 0; }
.kwant .L { font-family: var(--serif); font-size: 84px; line-height: .9; display: block; color: var(--accent); margin-bottom: 18px; }
.kwant h4 { margin-bottom: 8px; }
.kwant p { font-size: 15px; color: var(--ink-2); margin: 0; }
.kwant .ph { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--mute); display: block; margin-bottom: 6px; }
@media (max-width: 960px) { .kwant { grid-template-columns: 1fr 1fr; } .kwant > div { border-bottom: 1px solid var(--line); } .kwant > div:nth-child(2n) { border-right: 0; } }
@media (max-width: 560px) { .kwant { grid-template-columns: 1fr; } .kwant > div { border-right: 0; } }
.night .kwant, .night .kwant > div { border-color: var(--night-line); }
.night .kwant .L { color: #a896ff; }
.night .kwant p { color: #b3b7c4; }

/* warsztaty */
.ws { display: grid; grid-template-columns: 90px 1fr auto; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); align-items: start; }
.ws:last-child { border-bottom: 1px solid var(--line); }
.ws .code { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); letter-spacing: .08em; padding-top: 8px; }
.ws h3 { margin-bottom: 10px; }
.ws p { color: var(--ink-2); margin-bottom: 14px; max-width: 64ch; }
.ws .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); font-size: 11.5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: #fff; white-space: nowrap; }
.tag.acc { border-color: #cfc5fb; background: var(--accent-soft); color: var(--accent-ink); }
.ws .price { text-align: right; min-width: 170px; }
.ws .price b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -0.01em; line-height: 1.1; }
.ws .price small { display: block; color: var(--mute); font-size: 13px; margin-bottom: 14px; }
@media (max-width: 820px) { .ws { grid-template-columns: 1fr; gap: 12px; } .ws .price { text-align: left; } .ws .code { padding-top: 0; } }

.ws-detail { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; font-size: 15px; }
.ws-detail h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0 0 8px; font-weight: 500; }
.ws-detail ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.ws-detail li { margin-bottom: 4px; }
@media (max-width: 640px) { .ws-detail { grid-template-columns: 1fr; } }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-family: var(--mono); }
details.more[open] summary::after { content: "−"; }

/* liczby */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stats > div { padding: 28px 24px 28px 0; border-top: 1px solid var(--night-line); }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 68px); letter-spacing: -0.02em; line-height: 1; color: #f3f1ea; margin-bottom: 12px; }
.stats span { font-size: 15px; color: #9ea3b3; display: block; max-width: 24ch; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
.tint .stats > div, .stats.light > div { border-top-color: var(--line); }
.stats.light b { color: var(--ink); }
.stats.light span { color: var(--mute); }

/* cytaty */
.quote { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.quote::before { content: "„"; }
.quote::after { content: "”"; }
.who { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 15px; }
.who b { display: block; font-weight: 600; }
.who span { color: var(--mute); }
.night .who span { color: #8a90a2; }
.av { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; color: #fff; background: var(--accent); }

/* logotypy */
.logos { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: center; padding-block: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos span { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; color: #8d8a80; }
.logos span:nth-child(2n) { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; font-size: 22px; }
.logos span:nth-child(3n) { letter-spacing: 0.22em; font-size: 15px; }

/* zespół */
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person .ph { aspect-ratio: 4/3; display: block; width: 100%; background: var(--night); }
.person .body { padding: 24px 26px 28px; }
.person h3 { font-size: 24px; margin-bottom: 4px; }
.person .role { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 14px; }
.person p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* case study */
.case { display: grid; grid-template-columns: 320px 1fr; gap: 56px; padding-block: 56px; border-top: 1px solid var(--line); }
.case aside .client { font-family: var(--sans); font-weight: 700; font-size: 22px; letter-spacing: .04em; margin-bottom: 6px; }
.case aside .sector { color: var(--mute); font-size: 14px; margin-bottom: 28px; }
.case .kpi { border-top: 1px solid var(--line); padding: 16px 0; }
.case .kpi b { font-family: var(--serif); font-weight: 400; font-size: 44px; display: block; line-height: 1; color: var(--accent-ink); }
.case .kpi span { font-size: 14px; color: var(--mute); }
.case h3 { margin-bottom: 20px; }
.case h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 26px 0 8px; font-weight: 500; }
.case blockquote { margin: 30px 0 0; padding: 24px 28px; background: var(--paper-2); border-radius: var(--radius); font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.case blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--mute); margin-top: 12px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; gap: 24px; } }

/* poziomy certyfikacji */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.level { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; display: flex; flex-direction: column; }
.level .n { font-family: var(--mono); font-size: 11.5px; color: var(--mute); letter-spacing: .1em; }
.level .e { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent-ink); margin: 18px 0 2px; }
.level h3 { margin-bottom: 14px; }
.level ul { margin: 0 0 20px; padding-left: 18px; font-size: 15px; color: var(--ink-2); }
.level li { margin-bottom: 5px; }
.level .foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.level .foot b { color: var(--ink); font-weight: 600; }
.level.top-l { background: var(--night); color: var(--night-text); border-color: var(--night); }
.level.top-l h3 { color: #f3f1ea; }
.level.top-l .e { color: #a896ff; }
.level.top-l ul { color: #b3b7c4; }
.level.top-l .foot { border-color: var(--night-line); color: #8a90a2; }
.level.top-l .foot b { color: #f3f1ea; }
@media (max-width: 960px) { .levels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .levels { grid-template-columns: 1fr; } }

/* słownik */
.gloss { columns: 2; column-gap: 56px; }
.gloss dl { margin: 0; }
.term { break-inside: avoid; padding: 22px 0; border-top: 1px solid var(--line); }
.term dt { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.term dt .sym { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); margin-left: 8px; vertical-align: middle; }
.term dd { margin: 0; color: var(--ink-2); font-size: 16px; }
.term dd .use { display: block; margin-top: 8px; font-size: 14.5px; color: var(--mute); font-style: italic; }
@media (max-width: 800px) { .gloss { columns: 1; } }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 40px; }
.az a { font-family: var(--mono); font-size: 13px; text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.az a:hover { border-color: var(--ink); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--accent); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 28px; max-width: 72ch; color: var(--ink-2); }

/* artykuły */
.post-list a { display: grid; grid-template-columns: 140px 1fr auto; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.post-list a:last-child { border-bottom: 1px solid var(--line); }
.post-list a:hover h3 { color: var(--accent-ink); }
.post-list time, .post-list .cat { font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.post-list h3 { transition: color .15s; margin-bottom: 8px; }
.post-list p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 70ch; }
@media (max-width: 760px) { .post-list a { grid-template-columns: 1fr; gap: 8px; } }

.article { max-width: 720px; margin: 0 auto; }
.article .meta { font-family: var(--mono); font-size: 12.5px; color: var(--mute); letter-spacing: .06em; margin-top: 28px; }
.prose { font-family: var(--serif); font-size: 21px; line-height: 1.65; color: #1b1f28; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 34px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 25px; margin: 1.5em 0 .5em; }
.prose blockquote { margin: 1.6em 0; padding-left: 28px; border-left: 2px solid var(--accent); font-style: italic; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 26px; }
.prose li { margin-bottom: .4em; }
.prose .callout { font-family: var(--sans); font-size: 16.5px; line-height: 1.6; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin: 1.8em 0; }
.prose .callout b { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 8px; font-weight: 500; }
.prose .formula { font-family: var(--mono); font-size: 17px; text-align: center; padding: 22px; background: var(--night); color: #e6e3ff; border-radius: var(--radius); margin: 1.6em 0; overflow-x: auto; }

/* formularz */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--mute); font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.form-ok { display: none; background: var(--night); color: var(--night-text); border-radius: var(--radius); padding: 40px; }
.form-ok h3 { color: #f3f1ea; margin-bottom: 12px; }
.form-ok.show { display: block; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split.rev { grid-template-columns: 7fr 5fr; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--accent-ink); padding-top: 5px; }
.steps h4 { margin-bottom: 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
.night .steps li { border-color: var(--night-line); }
.night .steps li::before { color: #a896ff; }
.night .steps p { color: #b3b7c4; }

/* diagram 20/60/20 */
.mix { display: flex; height: 64px; border-radius: 12px; overflow: hidden; margin: 28px 0 14px; font-family: var(--mono); font-size: 13px; }
.mix div { display: flex; align-items: center; padding-left: 16px; color: #fff; }
.mix div:nth-child(1) { flex: 20; background: var(--ink-2); }
.mix div:nth-child(2) { flex: 60; background: var(--accent); }
.mix div:nth-child(3) { flex: 20; background: var(--wave); }

.figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.figure figcaption { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-top: 14px; letter-spacing: .04em; }
.night .figure { background: var(--night-2); border-color: var(--night-line); }

/* tabela */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 640px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td b { font-weight: 600; }

/* pasek CTA */
.cta-band { background: var(--accent); color: #fff; border-radius: 22px; padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: #d8d0ff; }
.cta-band p { color: #e4deff; margin: 0 0 24px; max-width: 42ch; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-band svg.bg { position: absolute; right: -80px; top: -60px; width: 520px; opacity: .22; pointer-events: none; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* stopka */
.foot { background: var(--night); color: #9ea3b3; padding-block: 80px 40px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--night-line); }
.foot .brand b { color: #f3f1ea; }
.foot .brand small { color: #6d7385; }
.foot p { max-width: 34ch; margin-top: 20px; }
.foot h5 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #6d7385; margin: 6px 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot a { text-decoration: none; color: #c9ccd6; }
.foot a:hover { color: #fff; }
.foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 13px; color: #6d7385; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > div:first-child { grid-column: 1 / -1; } }

/* animacje wejścia */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 72px; }
.center { text-align: center; }
.maxw { max-width: 62ch; }
.case.case-l { grid-template-columns: 120px 1fr; }
@media (max-width: 640px) { .case.case-l { grid-template-columns: 1fr; gap: 8px; } .case.case-l aside span { font-size: 64px !important; } }
.faq summary { overflow-wrap: anywhere; }

/* ---------- hero z orbitalem ---------- */
.hero.split-hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid h1 { font-size: clamp(44px, 6.2vw, 88px); }
.hero-viz { position: relative; aspect-ratio: 1 / 1.04; background: radial-gradient(120% 90% at 50% 40%, #1a1f33 0%, var(--night) 62%); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(13,16,22,.55), 0 0 0 1px #1c2030 inset; }
.hero-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: #8a90a2; }
.hud .c { position: absolute; padding: 18px 20px; line-height: 1.7; }
.hud .tl { top: 0; left: 0; } .hud .tr { top: 0; right: 0; text-align: right; } .hud .bl { bottom: 0; left: 0; } .hud .br { bottom: 0; right: 0; text-align: right; }
.hud b { color: #f3f1ea; font-weight: 500; }
.hud .v { color: #a896ff; } .hud .g { color: #28c8b9; }
.hud .corner { position: absolute; width: 14px; height: 14px; border-color: #3a4060; border-style: solid; }
.hud .k1 { top: 10px; left: 10px; border-width: 1px 0 0 1px; } .hud .k2 { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.hud .k3 { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; } .hud .k4 { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.hud .eq { position: absolute; left: 0; right: 0; bottom: 64px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 19px; letter-spacing: 0; color: #e6e3ff; }
.hud .eq span { font-family: var(--mono); font-style: normal; font-size: 12px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-viz { aspect-ratio: 1 / 0.9; } }
@media (max-width: 520px) { .hud .tr, .hud .br { display: none; } .hud .eq { font-size: 15px; bottom: 56px; } }

/* ---------- grafiki SVG ---------- */
svg.viz { display: block; width: 100%; height: auto; }
.viz-wrap { margin: 0; }
.viz-wrap figcaption { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-top: 14px; letter-spacing: .03em; max-width: 90ch; }
.night .viz-wrap figcaption { color: #8a90a2; }
.viz-scroll { overflow-x: auto; border-radius: 16px; }
.viz-scroll svg.viz { min-width: 720px; }

/* ---------- testimoniale ---------- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 26px; display: flex; flex-direction: column; }
.tcard .plogo { height: 22px; width: auto; color: var(--ink-2); margin-bottom: 26px; align-self: flex-start; }
.tcard .metric { display: flex; align-items: baseline; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tcard .metric b { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: -0.02em; color: var(--accent-ink); }
.tcard .metric span { font-size: 13.5px; color: var(--mute); line-height: 1.35; }
.tcard blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 19.5px; line-height: 1.45; color: var(--ink); }
.tcard .who { margin-top: auto; font-size: 14px; }
.tcard.feat { grid-column: span 2; background: var(--night); border-color: var(--night); color: var(--night-text); }
.tcard.feat .plogo { color: #e6e3ff; }
.tcard.feat blockquote { font-size: clamp(22px, 2.3vw, 30px); color: #f3f1ea; }
.tcard.feat .metric { border-color: var(--night-line); }
.tcard.feat .metric b { color: #a896ff; }
.tcard.feat .metric span, .tcard.feat .who span { color: #8a90a2; }
.tcard.feat .who b { color: #f3f1ea; }
@media (max-width: 960px) { .tgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tgrid { grid-template-columns: 1fr; } .tcard.feat { grid-column: auto; } }
.logos.svg-logos { justify-content: space-between; }
.logos .plogo { height: 26px; width: auto; color: #8d8a80; }
.av.a2 { background: var(--wave); } .av.a3 { background: var(--ink-2); } .av.a4 { background: #8a6d3b; }
.case aside .spark { margin: 4px 0 24px; }
.award-row { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: center; padding-top: 40px; margin-top: 48px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--mute); text-transform: uppercase; }
.award-row span b { display: block; font-family: var(--serif); font-size: 26px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 400; }
.case > *, .split > *, .grid > *, .hero-grid > *, .ws > * { min-width: 0; }
.split-hero .hero-meta { gap: 24px 36px; margin-top: 56px; flex-wrap: nowrap; }
.split-hero .hero-meta b { font-size: 30px; }
@media (max-width: 560px) { .split-hero .hero-meta { flex-wrap: wrap; } }
.tcard .metric b { white-space: nowrap; }

/* ---------- Wavebook: dokument ---------- */
.dark-t { color: var(--night-text); }
.dark-t th { background: #11141f; color: #8a90a2; border-color: var(--night-line); }
.dark-t td { border-color: var(--night-line); }
.dark-t td:first-child { color: #6d7385; text-decoration: line-through; text-decoration-color: #454b5c; }
.dark-t td b { color: #c9bcff; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -40px rgba(13,16,22,.35); overflow: hidden; }
.doc-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 28px 34px; background: var(--night); color: var(--night-text); }
.doc-h .mono { font-size: 11.5px; letter-spacing: .1em; color: #a896ff; }
.doc-h h3 { color: #f3f1ea; margin-top: 10px; }
.doc-meta { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 11.5px; color: #8a90a2; text-align: right; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.doc-s { padding: 28px 34px; border-top: 1px solid var(--line); }
.doc-s:nth-child(odd):not(.full) { border-right: 1px solid var(--line); }
.doc-s.full { grid-column: 1 / -1; background: var(--paper); }
.doc-s h5 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 14px; font-weight: 500; }
.doc-s p { font-size: 15.5px; color: var(--ink-2); }
.amp div { display: grid; grid-template-columns: 90px 1fr 48px; align-items: center; gap: 12px; margin-bottom: 8px; font-family: var(--mono); font-size: 12.5px; }
.amp i { display: block; height: 12px; background: linear-gradient(90deg, var(--c, var(--accent)) var(--w), var(--paper-2) var(--w)); border-radius: 3px; }
.amp b { font-weight: 500; text-align: right; }
.amp.wide { max-width: 640px; }
ul.x { list-style: none; padding: 0; margin: 0 0 14px; }
ul.x li { padding: 8px 0 8px 28px; border-bottom: 1px dashed var(--line); position: relative; font-family: var(--serif); font-size: 17px; color: var(--mute); text-decoration: line-through; text-decoration-color: #c0492b; }
ul.x li::before { content: "×"; position: absolute; left: 4px; top: 6px; color: #c0492b; font-family: var(--mono); text-decoration: none; }
table.mini { min-width: 0; font-size: 14px; }
table.mini th, table.mini td { padding: 10px 8px; }
table.mini th { background: transparent; }
table.mini .g { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--accent); color: #fff; font-family: var(--serif); font-size: 16px; }
table.mini .g.e { background: var(--ink); }
table.mini td:last-child { font-family: var(--mono); font-size: 11.5px; color: var(--accent-ink); white-space: nowrap; }
.rhythm { position: relative; height: 56px; margin-top: 18px; border-top: 2px solid var(--line); }
.rhythm span { position: absolute; left: var(--x); top: -7px; font-family: var(--mono); font-size: 11px; color: var(--mute); padding-top: 18px; white-space: nowrap; transform: translateX(-4px); }
.rhythm span::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--mute); }
.rhythm span.on { color: var(--accent-ink); transform: translateX(-70%); }
.rhythm span.on::before { background: var(--accent); border-color: var(--accent); left: 70%; }
@media (max-width: 800px) { .doc-grid { grid-template-columns: 1fr; } .doc-s:nth-child(odd):not(.full) { border-right: 0; } .doc-meta { text-align: left; } .doc-s, .doc-h { padding: 24px 22px; } table.mini td:last-child { white-space: normal; } }
@media (max-width: 1200px) { .nav, .top .btn { display: none; } .burger { display: block; }
  .top.open .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; gap: 0; }
  .top.open .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .top.open .nav a.nav-cta { display: block; color: var(--accent-ink); border-bottom: 0; font-weight: 600; } }
.nav a[href="wavebook.html"]::after { content: "NEW"; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: #fff; background: var(--accent); padding: 2px 5px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }
.nav a { white-space: nowrap; padding: 8px 10px; font-size: 14px; }
.top .btn { white-space: nowrap; }
.brand small, .brand b { white-space: nowrap; }
.top .wrap { gap: 20px; }
@media (min-width: 1201px) and (max-width: 1360px) { .nav a { padding: 8px 7px; font-size: 13.5px; } .brand small { display: none; } }

/* ---------- hero instytutu: pełna szerokość, świetliste ---------- */
.hero-inst { position: relative; overflow: hidden; margin-top: -72px; padding-block: calc(72px + clamp(72px, 11vw, 150px)) clamp(56px, 7vw, 96px); text-align: center; color: #c9ccd6;
  background:
    radial-gradient(60% 55% at 50% 108%, rgba(90,60,240,.55) 0%, rgba(90,60,240,0) 70%),
    radial-gradient(40% 40% at 12% 20%, rgba(19,168,158,.16) 0%, rgba(19,168,158,0) 70%),
    radial-gradient(35% 35% at 90% 15%, rgba(168,150,255,.14) 0%, rgba(168,150,255,0) 70%),
    #07080d; }
.hero-inst::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 75%); }
.hero-inst canvas.glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inst .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-inst .eyebrow { color: #a4a9ba; }
.hero-inst .eyebrow::before, .hero-inst .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; }
.hero-inst h1 { color: #f5f3ee; font-size: clamp(46px, 7.4vw, 104px); max-width: 15ch; line-height: 1.02; letter-spacing: -0.025em; }
.hero-inst h1 em { background: linear-gradient(95deg, #c9bcff 0%, #8f74ff 45%, #3fd6c6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px rgba(143,116,255,.45)); padding-right: .06em; }
.hero-inst .lead { color: #b8bccb; margin: 28px auto 0; max-width: 52ch; }
.hero-inst .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.hero-inst .btn { background: #f5f3ee; color: var(--ink); border-color: #f5f3ee; box-shadow: 0 0 40px -8px rgba(168,150,255,.6); }
.hero-inst .btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero-inst .btn.ghost { background: rgba(255,255,255,.04); color: #f5f3ee; border-color: rgba(255,255,255,.22); box-shadow: none; backdrop-filter: blur(6px); }
.pillars { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 56px 0 0; padding: 0; }
.pillars li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; font-size: 14px; color: #e6e3ff;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(168,150,255,.25); backdrop-filter: blur(8px); box-shadow: 0 0 24px -12px rgba(168,150,255,.8) inset; }
.pillars li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(90,60,240,.35); font-family: var(--serif); font-style: italic; font-size: 16px; color: #fff; box-shadow: 0 0 14px rgba(143,116,255,.7); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 980px; margin-top: 72px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stats div { padding: 26px 12px 0; font-size: 14px; color: #8f95a8; }
.hero-stats div + div { border-left: 1px solid rgba(255,255,255,.08); }
.hero-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 44px); color: #f5f3ee; line-height: 1.05; margin-bottom: 6px; letter-spacing: -0.01em; }
@media (max-width: 760px) { .hero-stats { grid-template-columns: 1fr 1fr; } .hero-stats div:nth-child(3) { border-left: 0; } .pillars li { font-size: 13px; } }

/* nagłówek nad ciemnym hero */
.top.on-dark:not(.scrolled):not(.open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top.on-dark:not(.scrolled):not(.open) .brand, .top.on-dark:not(.scrolled):not(.open) .nav a { color: #e6e3ff; }
.top.on-dark:not(.scrolled):not(.open) .brand small { color: #8f95a8; }
.top.on-dark:not(.scrolled):not(.open) .nav a:hover { background: rgba(255,255,255,.08); }
.top.on-dark:not(.scrolled):not(.open) .btn { background: #f5f3ee; color: var(--ink); border-color: #f5f3ee; }
.top.on-dark:not(.scrolled):not(.open) .burger { border-color: rgba(255,255,255,.25); }
.top.on-dark:not(.scrolled):not(.open) .burger span { background: #f5f3ee; }
.top.on-dark:not(.scrolled):not(.open) .nav a[aria-current="page"] { color: #c9bcff; }
.top { transition: border-color .2s, background .25s; }
@media (max-width: 640px) {
  .hero-inst .eyebrow::before, .hero-inst .eyebrow::after { display: none; }
  .pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 40px; }
  .pillars li { font-size: 12px; padding: 8px 10px 8px 8px; gap: 8px; text-align: left; line-height: 1.25; border-radius: 14px; }
  .pillars li span { width: 24px; height: 24px; font-size: 14px; flex: none; }
  .hero-inst .ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { margin-top: 64px; }
}
