/* Kodrel — style strony (tokeny z design systemu Kodrel) */
:root {
  --surface: #ffffff;
  --surface-subtle: #f4f7f5;
  --line: #e2e8e5;
  --line-strong: #7f8c86;
  --ink: #0d1411;
  --ink-muted: #56625c;
  --brand: #0a7d5a;
  --brand-strong: #066448;
  --brand-tint: #e3f4ec;
  --on-brand: #ffffff;
  --signal: #c6f03e;
  --code-bg: #0d1411;
  --code-ink: #dfe8e3;
  --code-muted: #8c9c95;
  --danger: #c23a1c;
  --warning: #8f5a00;
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-float: 0 12px 32px rgba(13, 20, 17, 0.1), 0 1px 2px rgba(13, 20, 17, 0.06);
  --container: 1200px;
  --gutter: 16px;
  --nav-height: 64px;
  --section-y: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 80px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; --nav-height: 72px; --section-y: 96px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input, textarea, button, select { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

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

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand);
  display: flex; align-items: center; gap: 8px;
}
.sq { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; }
.sq--signal { background: var(--signal); outline: 1px solid var(--ink); }
.sq--ink { background: var(--ink); }
.sq--brand { background: var(--brand); }
.muted { color: var(--ink-muted); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { flex-shrink: 0; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-height);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 28px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 32px; } }

.nav { display: none; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 4px 0;
}
.nav a:not(.btn):hover { color: var(--brand); }
.nav a[aria-current="page"] {
  font-weight: 600; color: var(--brand);
  box-shadow: inset 0 -2px 0 var(--brand);
}
.menu-toggle {
  width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }

.mobile-menu {
  position: absolute; top: var(--nav-height); left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  padding: 8px var(--gutter) 20px;
  display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  height: 52px; display: flex; align-items: center;
  border-bottom: 1px solid var(--surface-subtle);
  font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.mobile-menu a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.mobile-menu .btn { margin-top: 12px; width: 100%; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Sekcje ---------- */
.section { padding-block: var(--section-y); }
.section--subtle { background: var(--surface-subtle); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 32px; }
@media (min-width: 1024px) { .section-head { gap: 16px; margin-bottom: 48px; } }
.h1 { font-size: 44px; line-height: 48px; font-weight: 600; letter-spacing: -0.03em; }
.h1--page { letter-spacing: -0.025em; }
@media (min-width: 1024px) {
  .h1 { font-size: 64px; line-height: 68px; }
  .h1--page { font-size: 44px; line-height: 50px; }
}
.h2 { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; }
.h3 { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
@media (min-width: 1024px) { .lead { font-size: 20px; line-height: 32px; } }

.grid-3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 1024px) { .card { padding: 32px; gap: 16px; } }
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-muted); }
.icon-tile {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--brand-tint); color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
}
.card p { color: var(--ink-muted); }

/* ---------- Hero ---------- */
.hero { padding-block: 48px 64px; }
@media (min-width: 1024px) { .hero { padding-block: 96px; } }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1100px) { .hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; } }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { .hero__copy { gap: 24px; } }
.hero__actions { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
@media (min-width: 560px) { .hero__actions { flex-direction: row; padding-top: 8px; } }
.hero__stat {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
@media (min-width: 560px) { .hero__stat { flex-direction: row; align-items: baseline; gap: 16px; padding-top: 24px; } }
.hero__stat span:first-child { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.hero__stat strong { font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }

/* Karta agenta w hero */
.agent-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-float); overflow: hidden;
}
.agent-card__head {
  min-height: 52px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1024px) { .agent-card__head { padding: 0 20px; } }
.agent-card__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; }
.badge {
  padding: 2px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-strong);
  font-size: 12px; line-height: 20px; font-weight: 600; white-space: nowrap;
}
.steps { padding: 8px 16px; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .steps { padding: 16px 20px 8px; } }
.step {
  min-height: 44px; padding: 8px 0;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--surface-subtle);
}
.step__node { width: 12px; height: 12px; flex-shrink: 0; border: 1.5px solid var(--line-strong); background: #fff; }
.step__n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); width: 20px; display: none; }
@media (min-width: 560px) { .step__n { display: inline; } }
.step__label { flex-grow: 1; font-size: 14px; line-height: 20px; }
@media (min-width: 1024px) { .step__label { font-size: 15px; line-height: 22px; } }
.step__status { flex-shrink: 0; font-size: 12px; line-height: 18px; font-weight: 600; }
@media (min-width: 1024px) { .step__status { font-size: 13px; line-height: 20px; } }
.progress { padding: 4px 16px 16px; }
@media (min-width: 1024px) { .progress { padding: 8px 20px 20px; } }
.progress__track { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress__bar { height: 4px; width: 0; background: var(--brand); transition: width 600ms ease; }
.terminal {
  background: var(--code-bg); padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12px; line-height: 20px;
}
@media (min-width: 1024px) { .terminal { padding: 16px 20px; font-size: 13px; line-height: 22px; } }
.terminal__prompt { color: var(--code-muted); }
.terminal__line { display: flex; gap: 12px; white-space: nowrap; overflow: hidden; }
.terminal__line .t { color: var(--code-muted); flex-shrink: 0; }
.terminal__line .m { overflow: hidden; text-overflow: ellipsis; }
.cursor { width: 8px; height: 16px; margin-top: 4px; background: var(--signal); animation: kdBlink 1s steps(1) infinite; }
.agent-card__foot {
  padding: 12px 16px; display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--ink-muted);
}
@media (min-width: 560px) {
  .agent-card__foot { min-height: 52px; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 20px; }
}
.agent-card__foot strong { color: var(--ink); font-weight: 600; }
.agent-card__foot .guard { display: flex; align-items: center; gap: 8px; }

.pulse { animation: kdPulse 1.4s ease-in-out infinite; }

/* ---------- Usługi ---------- */
.service {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 1024px) { .service { padding: 24px; gap: 20px; } }
.service h3 { margin-top: -8px; }
.service p { color: var(--ink-muted); }
.viz {
  height: 212px; border-radius: var(--radius-md); background: var(--surface-subtle);
  padding: 16px; display: flex; flex-direction: column; gap: 8px; justify-content: center;
}
.viz__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-muted); }
.viz--doc { flex-direction: row; gap: 16px; }
.doc-sheet {
  width: 120px; flex-shrink: 0; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 12px; display: flex; flex-direction: column; gap: 8px;
}
.doc-sheet i { display: block; height: 4px; background: var(--line); }
.doc-sheet i:first-child { height: 6px; width: 60%; background: var(--ink); border-radius: 1px; }
.doc-sheet .scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--brand); animation: kdScan 3.6s ease-in-out infinite; }
.fields { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; min-width: 0; }
.field-row {
  height: 30px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-size: 13px;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.field-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-row span:last-child { font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.field-row.is-ok { background: var(--brand-tint); border-color: var(--brand-tint); }
.field-row.is-ok span:last-child { color: var(--brand-strong); }
.check-row {
  height: 34px; padding: 0 12px; display: flex; align-items: center; gap: 10px;
  border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-size: 13px;
}
.check-row .dot { width: 8px; height: 8px; flex-shrink: 0; background: var(--line); }
.check-row .id { flex-grow: 1; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check-row .st { font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.viz--audit { gap: 12px; }
.audit-row { display: flex; flex-direction: column; gap: 4px; }
.audit-row__top { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; }
.audit-row__top span:last-child { color: var(--brand-strong); font-weight: 600; }
.audit-row__track { height: 8px; background: var(--line); border-radius: 2px; overflow: hidden; }
.audit-row__bar { height: 8px; width: 0; background: var(--line-strong); transition: width 900ms ease; }

/* ---------- Na żywo ---------- */
.live-head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; }
.live-head .section-head { margin-bottom: 0; }
@media (min-width: 1100px) {
  .live-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 32px; }
}
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex-shrink: 0; }
@media (min-width: 560px) { .tabs { display: flex; } }
.tab {
  height: 44px; padding: 0 6px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
@media (min-width: 560px) { .tab { padding: 0 18px; font-size: 15px; } }
.tab:hover { border-color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.live-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 16px;
}
@media (min-width: 1100px) { .live-panel { padding: 32px; } }
.col-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-muted); }

/* Wersja pionowa (mobile / tablet) */
.flow-v { display: flex; flex-direction: column; }
.flow-v .col-label { padding-bottom: 10px; }
.flow-v__list { display: flex; flex-direction: column; gap: 8px; }
.node {
  min-height: 56px; padding: 8px 14px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.node--src { justify-content: space-between; gap: 8px; }
.node--src .lbl { font-size: 15px; line-height: 20px; font-weight: 600; }
.node--src .sub { font-family: var(--font-mono); font-size: 11px; line-height: 16px; color: var(--ink-muted); text-align: right; }
.node--src.is-active { background: var(--surface-subtle); border-color: var(--ink); }
.node--out .dot { width: 10px; height: 10px; flex-shrink: 0; background: var(--line); }
.node--out .lbl { flex-grow: 1; font-size: 15px; line-height: 20px; font-weight: 600; }
.node--out .st { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); text-align: right; }
.node--out.is-active { background: var(--brand-tint); border-color: var(--brand); }
.node--out.is-active .dot { background: var(--brand); }
.node--out.is-active .st { color: var(--brand-strong); }
.connector-v { position: relative; height: 56px; width: 10px; margin: 0 auto; }
.connector-v::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.connector-v i { position: absolute; left: 0; width: 10px; height: 10px; background: var(--ink); animation: kdDown 1.6s linear infinite; }
.connector-v--out i { background: var(--brand); animation-delay: -0.8s; }
.agent-box {
  padding: 18px; border-radius: var(--radius-md); background: var(--code-bg); color: var(--code-ink);
  display: flex; flex-direction: column; gap: 8px;
}
.agent-box__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agent-box__head .sq { width: 10px; height: 10px; background: var(--signal); }
.agent-box__head strong { font-size: 16px; font-weight: 600; color: #fff; }
.agent-box__rules { font-family: var(--font-mono); font-size: 11px; line-height: 16px; color: var(--code-muted); }
.agent-box__head .agent-box__rules { margin-left: auto; }
.agent-box__now { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--code-muted); }
.agent-box__task { font-size: 16px; line-height: 24px; color: #fff; min-height: 24px; }

/* Wersja pozioma (desktop) */
.flow-h { display: none; }
@media (min-width: 1100px) {
  .flow-v { display: none; }
  .flow-h { display: flex; flex-direction: column; gap: 24px; }
}
.flow-h__labels { display: flex; justify-content: space-between; }
.flow-h__labels span { width: 19.37%; }
.flow-h__labels span:nth-child(2) { text-align: center; }
.flow-h__labels span:nth-child(3) { text-align: right; }
.flow-h__stage { position: relative; width: 100%; aspect-ratio: 1136 / 400; }
.flow-h__stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-h__col { position: absolute; top: 0; bottom: 0; width: 19.37%; }
.flow-h__col--src { left: 0; }
.flow-h__col--out { right: 0; }
.flow-h__col .node { position: absolute; left: 0; right: 0; height: 72px; transform: translateY(-50%); }
.flow-h__col .node--src { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 0 16px; }
.flow-h__col .node--src .lbl { font-size: 16px; line-height: 22px; }
.flow-h__col .node--src .sub { font-size: 12px; line-height: 18px; text-align: left; }
.flow-h__col .node--out { padding: 0 16px; }
.flow-h__col .node--out .txt { display: flex; flex-direction: column; gap: 2px; }
.flow-h__col .node--out .st { text-align: left; }
.flow-h__col .node:nth-child(1) { top: 17.5%; }
.flow-h__col .node:nth-child(2) { top: 50%; }
.flow-h__col .node:nth-child(3) { top: 82.5%; }
.flow-h__agent {
  position: absolute; left: 40.32%; width: 19.37%; top: 50%; transform: translateY(-50%);
  min-height: 170px; padding: 20px; gap: 10px;
}
.flow-h__agent .agent-box__task { font-size: 15px; line-height: 22px; min-height: 44px; }
.dash { stroke-dasharray: 4 10; animation: kdDash 1.2s linear infinite; }

.legend {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14px; line-height: 20px; color: var(--ink-muted);
}
.legend span { display: flex; align-items: center; gap: 8px; }
@media (min-width: 1100px) { .legend { flex-direction: row; gap: 32px; margin-top: 0; padding-top: 20px; line-height: 22px; } }

/* ---------- Jak pracujemy ---------- */
.process { display: flex; gap: 16px; }
.process__rail { position: relative; width: 12px; flex-shrink: 0; }
.process__rail::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.process__rail i { position: absolute; left: 0; width: 12px; height: 12px; background: var(--brand); animation: kdDown 11.2s linear infinite; }
.process__list { flex-grow: 1; display: flex; flex-direction: column; gap: 12px; }
.process-step {
  padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column; gap: 10px;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.process-step__top { display: flex; align-items: center; gap: 10px; }
.process-step__node { width: 12px; height: 12px; border: 1.5px solid var(--ink); background: #fff; }
.process-step p { color: var(--ink-muted); }
.process-step.is-active { border-color: var(--brand); background: var(--brand-tint); }
.process-step.is-active .process-step__node { background: var(--signal); }
.process-step.is-done .process-step__node { background: var(--brand); }
@media (min-width: 1024px) {
  .process { flex-direction: column; gap: 24px; }
  .process__rail { width: auto; height: 12px; }
  .process__rail::before { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 2px; }
  .process__rail i { top: 0; animation: kdSlide 11.2s linear infinite; }
  .process__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .process-step { padding: 24px; gap: 12px; }
}

/* ---------- Formularz ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; } }
.contact-steps {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line);
}
.contact-steps div { display: flex; gap: 16px; }
.contact-steps .mono { font-size: 12px; line-height: 26px; color: var(--brand); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.form-card--subtle { background: var(--surface-subtle); border: 0; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; line-height: 22px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea, .field select {
  width: 100%; height: 44px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  font-size: 16px; color: var(--ink); background: #fff;
}
.field textarea { height: auto; padding: 12px; line-height: 26px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 13px; line-height: 20px; color: var(--danger); }
.field-error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.consent label { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.form .btn { width: 100%; }
.form-status { font-size: 14px; line-height: 22px; color: var(--danger); }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.form-success { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; }
.form-success[hidden] { display: none; }
.form-success .btn { align-self: flex-start; }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding-block: 48px 32px; }
@media (min-width: 1024px) { .site-footer { padding-block: 64px 32px; } }
.footer-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-grid > :first-child { grid-column: 1 / -1; }
.footer-grid > :last-child { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: auto; }
}
.footer-col { display: flex; flex-direction: column; font-size: 15px; line-height: 22px; }
.footer-col .col-label { font-size: 12px; padding-bottom: 4px; }
.footer-col a { text-decoration: none; min-height: 44px; display: flex; align-items: center; }
@media (min-width: 1024px) {
  .footer-col { gap: 10px; font-size: 14px; }
  .footer-col a { min-height: 0; }
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 28px; width: auto; align-self: flex-start; }
.footer-brand p, .footer-contact { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.footer-contact { gap: 6px; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; line-height: 20px; color: var(--ink-muted);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; margin-top: 48px; padding-top: 24px; } }

.footer-slim { border-top: 1px solid var(--line); padding-block: 32px; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.footer-slim .container { display: flex; flex-direction: column; gap: 12px; }
.footer-slim nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-slim a { text-decoration: none; }
.footer-slim a[aria-current="page"] { font-weight: 600; }
@media (min-width: 768px) { .footer-slim .container { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Podstrony ---------- */
.page-main { padding-block: var(--section-y); }
.page-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }

/* Kontakt */
.contact-page-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1100px) { .contact-page-grid { grid-template-columns: 5fr 7fr; } }
.info-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) { .info-card { padding: 32px; } }
.info-stack { display: flex; flex-direction: column; gap: 24px; }
.kv { display: flex; flex-direction: column; gap: 4px; }
.kv .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-muted); }
.kv-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.direct { display: flex; align-items: center; gap: 14px; }
.direct > span:last-child { display: flex; flex-direction: column; }
.direct .k { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.direct .v { font-weight: 600; }

/* Strony prawne */
.legal-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .legal-grid { grid-template-columns: 3fr 1fr 7fr; gap: 24px; } .legal-grid article { grid-column: 3; } }
.toc { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 22px; }
@media (min-width: 1024px) { .toc { position: sticky; top: calc(var(--nav-height) + 24px); align-self: start; padding-top: 4px; } }
.toc .col-label { font-size: 12px; padding-bottom: 4px; }
.toc a { text-decoration: none; }
.legal { max-width: 720px; display: flex; flex-direction: column; gap: 40px; }
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal ul, .legal ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal strong { font-weight: 600; }
.legal-table { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; font-size: 14px; line-height: 22px; }
.legal-table > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.legal-table > div:first-child { border-top: 0; background: var(--surface-subtle); font-weight: 600; }
.legal-table span { padding: 12px 16px; }
.legal-table > div:not(:first-child) span:last-child { color: var(--ink-muted); }

/* Produkty */
.products { display: flex; flex-direction: column; gap: 80px; }
@media (min-width: 1024px) { .products { gap: 96px; } }
.product { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1100px) {
  .product { grid-template-columns: 5fr 7fr; gap: 48px; }
  .product--rev { grid-template-columns: 7fr 5fr; }
  .product--rev .product__copy { order: 2; }
}
.product__copy { display: flex; flex-direction: column; gap: 20px; }
.product__logo { line-height: 0; }
.product__logo img { width: auto; mix-blend-mode: multiply; }
.product__tagline { font-size: 20px; line-height: 32px; }
.product__copy > p:not(.product__tagline) { color: var(--ink-muted); }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; line-height: 24px; }
.bullets li { display: flex; gap: 12px; }
.bullets li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; flex-shrink: 0; background: var(--brand); }
.demo-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
.demo-scroll > * { min-width: 640px; }
.cta-band {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius-lg); background: var(--surface-subtle);
}
@media (min-width: 768px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 32px; } }
.cta-band p { color: var(--ink-muted); }

/* Demo EUdraft */
.eu { height: 610px; background: #faf9f8; border: 1px solid #edebe9; border-radius: 8px; box-shadow: 0 6.4px 14.4px rgba(0,0,0,.13), 0 1.2px 3.6px rgba(0,0,0,.11); overflow: hidden; display: flex; flex-direction: column; font-family: "Segoe UI", "Open Sans", sans-serif; font-size: 14px; line-height: 20px; color: #323130; }
.eu__bar { height: 48px; flex-shrink: 0; background: #fff; border-bottom: 1px solid #edebe9; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.eu__bar img { height: 30px; width: auto; }
.eu__menu { display: flex; align-self: stretch; gap: 18px; margin-left: 12px; font-size: 13px; }
.eu__menu span { display: flex; align-items: center; }
.eu__menu span.on { font-weight: 600; box-shadow: inset 0 -2px 0 #0078d4; }
.eu-pill { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.eu-pill--blue { margin-left: auto; background: #deecf9; color: #004578; }
.eu-pill--blue i { width: 6px; height: 6px; border-radius: 999px; background: #0078d4; animation: kdPulse 1.2s ease-in-out infinite; }
.eu-pill--grey { background: #f3f2f1; color: #605e5c; }
.eu-pill--green { background: #dff6dd; color: #0b5a0b; }
.eu__stages { flex-shrink: 0; display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #edebe9; }
.eu-stage { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 4px; background: #fff; border: 1px solid #edebe9; }
.eu-stage.on { background: #eff6fc; border-color: #0078d4; }
.eu-stage__ic { width: 22px; height: 22px; flex-shrink: 0; border-radius: 999px; background: #dff6dd; display: flex; align-items: center; justify-content: center; }
.eu-stage.on .eu-stage__ic { background: #0078d4; color: #fff; font-size: 11px; font-weight: 700; }
.eu-stage > span:last-child { display: flex; flex-direction: column; }
.eu-stage b { font-weight: 600; }
.eu-stage small { font-size: 12px; line-height: 16px; color: #605e5c; }
.eu__body { flex-grow: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 0; }
.eu__side { background: #fff; border-right: 1px solid #edebe9; padding: 12px 0; display: flex; flex-direction: column; }
.eu__side-title { padding: 0 16px 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #605e5c; }
.eu-sec { height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #fff; border-left: 3px solid transparent; }
.eu-sec__dot { width: 16px; height: 16px; flex-shrink: 0; border-radius: 999px; border: 1px solid #8a8886; background: #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; }
.eu-sec.done .eu-sec__dot { border: 0; background: #107c10; }
.eu-sec.cur { background: #eff6fc; border-left-color: #0078d4; font-weight: 600; }
.eu-sec.cur .eu-sec__dot { border: 0; background: #0078d4; }
.eu__main { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.eu__title { display: flex; align-items: baseline; gap: 8px; }
.eu__title small { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #0078d4; }
.eu__title b { font-size: 20px; line-height: 28px; font-weight: 600; color: #201f1e; }
.eu__text { background: #fff; border: 1px solid #edebe9; border-radius: 4px; padding: 14px 16px; min-height: 112px; font-size: 14px; line-height: 22px; }
.eu__caret { display: inline-block; width: 2px; height: 16px; margin-left: 2px; vertical-align: -3px; background: #0078d4; animation: kdBlink 1s steps(1) infinite; }
.eu__cite { padding: 8px 12px; background: #fff; border: 1px solid #edebe9; border-left: 3px solid #0078d4; border-radius: 2px; font-size: 12px; line-height: 16px; color: #605e5c; }
.eu__cite strong { color: #323130; }
.eu__budget { background: #fff; border: 1px solid #edebe9; border-radius: 4px; }
.eu__budget[hidden] { display: none; }
.eu__budget div { display: flex; justify-content: space-between; padding: 7px 12px; border-bottom: 1px solid #f3f2f1; }
.eu__budget div:last-child { font-weight: 600; }
.eu__foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Demo Wyrocznik */
.wy { height: 560px; background: #fafaf9; border: 1px solid #c9c7c1; border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; font-family: "Public Sans", sans-serif; color: #0a0a0a; }
.wy__bar { height: 52px; flex-shrink: 0; border-bottom: 1px solid #c9c7c1; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.wy__bar img { height: 30px; width: auto; }
.wy__status { font-size: 12px; font-weight: 600; color: #53565c; letter-spacing: 0.04em; }
.wy__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.wy-box { display: flex; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid #c9c7c1; border-radius: 2px; }
.wy-box--q { align-items: center; }
.wy-box--a { flex-direction: column; gap: 4px; }
.wy-k { font-size: 12px; font-weight: 600; color: #53565c; letter-spacing: 0.04em; }
.serif { font-family: "Newsreader", serif; }
.wy__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; flex-grow: 1; }
.wy__cells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.wy__cells span { aspect-ratio: 1 / 1; border-radius: 999px; background: #e7e5e0; transition: background-color 300ms ease; }
.wy__voted { margin-top: 10px; font-size: 13px; color: #35383d; }
.wy__voted strong { font-weight: 600; color: #0a0a0a; }
.wy__bars { display: flex; flex-direction: column; gap: 12px; }
.wy-bar__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.wy-bar__top span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.wy-bar__track { height: 8px; background: #e7e5e0; }
.wy-bar__fill { height: 8px; width: 0; transition: width 500ms ease; }
.wy__note { font-size: 12px; color: #53565c; }

/* Demo Rumb */
.rb { height: 560px; background: #faf7f3; border: 1px solid #e4dfd6; border-radius: 12px; box-shadow: 0 12px 32px rgba(16,23,31,0.10), 0 1px 2px rgba(16,23,31,0.06); overflow: hidden; display: flex; flex-direction: column; font-family: "Inter", sans-serif; color: #10171f; }
.rb__bar { height: 56px; flex-shrink: 0; background: #fdfbf7; border-bottom: 1px solid #e4dfd6; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.rb__bar img { height: 28px; width: auto; }
.rb__acct { height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d9d4ca; border-radius: 8px; background: #f6f2ec; font-size: 14px; font-weight: 500; white-space: nowrap; }
.rb__acct i { width: 8px; height: 8px; border-radius: 999px; background: #2f7fb8; }
.rb__acct em { font-style: normal; padding: 1px 6px; border: 1px solid #d9d4ca; border-radius: 4px; background: #fdfbf7; font-size: 12px; font-weight: 400; color: #4b525b; }
.rb__note { margin-left: auto; font-size: 12px; color: #6b7178; white-space: nowrap; }
.rb__body { display: grid; grid-template-columns: 236px minmax(0, 1fr); flex-grow: 1; min-height: 0; }
.rb__side { padding: 14px 0 14px 14px; }
.rb-card { background: #fdfbf7; border: 1px solid #e4dfd6; border-radius: 10px; box-shadow: 0 1px 2px rgba(16,23,31,0.05); }
.rb-card > div { padding: 10px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; border-bottom: 1px solid #ebe6de; }
.rb-card > div:first-child { padding: 14px 16px; gap: 2px; }
.rb-card > div:last-child { border-bottom: 0; padding-bottom: 14px; }
.rb-k { font-size: 11px; letter-spacing: 0.12em; color: #4b525b; }
.rb-serif { font-family: "Source Serif 4", Georgia, serif; }
.rb-mono { font-family: "IBM Plex Mono", monospace; }
.rb-value { font-size: 27px; line-height: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rb-kv { display: flex; justify-content: space-between; }
.rb-kv span:first-child { color: #4b525b; }
.pos { color: #4a8255; }
.rb-alloc { display: flex; height: 8px; border-radius: 2px; overflow: hidden; }
.rb-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.rb-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rb-legend i { width: 7px; height: 7px; }
.rb__main { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rb__h { margin-top: -8px; font-size: 26px; line-height: 32px; font-weight: 600; }
.rb-tabs { align-self: flex-start; display: flex; padding: 3px; gap: 2px; border: 1px solid #d9d4ca; border-radius: 8px; background: #f1ede6; }
.rb-tabs span { padding: 6px 12px; border-radius: 6px; font-size: 13px; color: #2b3138; transition: background-color 150ms ease; }
.rb-tabs span.on { background: #fdfbf7; box-shadow: 0 1px 2px rgba(16,23,31,0.12); color: #10171f; }
.rb-pane[hidden] { display: none; }
.rb-overview { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.rb-big { font-size: 46px; line-height: 52px; font-weight: 500; color: #4a8255; font-variant-numeric: tabular-nums; }
.rb-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.rb-tile { padding: 12px 14px; border: 1px solid #e4dfd6; border-radius: 10px; background: #fdfbf7; display: flex; flex-direction: column; gap: 2px; }
.rb-tile span:first-child, .rb-tile span:last-child { font-size: 12px; color: #4b525b; }
.rb-tile .rb-serif { font-size: 22px; color: #4a8255; }
.rb-table { border: 1px solid #e4dfd6; border-radius: 10px; overflow: hidden; background: #fdfbf7; }
.rb-table > div { display: grid; grid-template-columns: 60px minmax(0, 1fr) 50px 72px; gap: 8px; padding: 8px 12px; font-size: 13px; align-items: center; border-top: 1px solid #f1ede6; }
.rb-table > div:first-child { font-size: 11px; letter-spacing: 0.08em; color: #4b525b; border-top: 0; border-bottom: 1px solid #ebe6de; }
.rb-table span:nth-child(2) { color: #4b525b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-table span:last-child { text-align: right; }
.rb-list { display: flex; flex-direction: column; gap: 8px; }
.rb-item { background: #fdfbf7; border: 1px solid #e4dfd6; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.rb-item small { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: #4b525b; }
.rb-item b { font-size: 13px; line-height: 18px; font-weight: 600; }
.rb-item span { font-size: 12px; line-height: 17px; color: #4b525b; }
.rb-signal { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.rb-signal > span:first-child { font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 500; width: 48px; flex-shrink: 0; color: #10171f; }
.rb-signal > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.rb-signal b { font-size: 14px; }

/* ---------- Animacje ---------- */
@keyframes kdDash { to { stroke-dashoffset: -28; } }
@keyframes kdPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes kdScan { 0% { top: 10%; } 50% { top: 84%; } 100% { top: 10%; } }
@keyframes kdSlide { 0% { left: 0; } 100% { left: calc(100% - 12px); } }
@keyframes kdDown { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
@keyframes kdBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Poprawki zawijania w makietach produktów */
.eu__menu span, .eu-stage b, .eu-stage small { white-space: nowrap; }
.rb-kv { gap: 8px; white-space: nowrap; }
.rb-card .rb-mono { font-size: 12px; }

/* ---------- Baner cookies (Klaro) ---------- */
.klaro {
  --font-family: var(--font-sans);
  --title-font-family: var(--font-sans);
  --font-size: 14px;
  --border-radius: var(--radius-sm);
  --dark1: var(--ink);
  --dark2: #24302b;
  --dark3: var(--code-muted);
  --light1: var(--surface);
  --light2: var(--line);
  --light3: var(--ink-muted);
  --white1: var(--surface);
  --white2: var(--surface-subtle);
  --white3: var(--line);
  --green1: var(--brand);
  --green2: var(--brand-strong);
  --green3: var(--brand-tint);
  --blue1: var(--brand);
  --button-text-color: var(--on-brand);
  --notice-left: 16px;
  --notice-right: 16px;
  --notice-bottom: 16px;
  --notice-max-width: 440px;
}
@media (min-width: 768px) { .klaro { --notice-left: auto; --notice-right: 24px; --notice-bottom: 24px; } }
.klaro .cookie-notice:not(.cookie-modal-notice) { box-shadow: var(--shadow-float); }
.klaro .cookie-notice a, .klaro .cookie-modal a { color: var(--signal); }
.klaro .cookie-modal .cm-modal.cm-klaro { border-radius: var(--radius-md); }
.klaro .cookie-notice .cm-btn { padding: 8px 14px; font-weight: 600; }
.klaro .cookie-notice .cm-btn.cm-btn-danger { background: transparent; border: 1px solid var(--code-ink); color: var(--code-ink); }
