/* ==========================================================================
   ERPower.pl — wspólny arkusz stylów (wersja 3)
   Białe tło, kolory z logo (granat #0A1A33, niebieski #0183EE, cyjan #00A1E8),
   krój Plus Jakarta Sans, karty z łagodnymi zaokrągleniami, motyw pikseli z logo.
   ========================================================================== */

:root {
  /* tło i tekst */
  --bg:          #FFFFFF;
  --bg-soft:     #F5F8FC;
  --bg-tint:     #EAF3FE;
  --ink:         #0A1A33;
  --text:        #3A4A5F;
  --text-2:      #4E5D72;
  --muted:       #5E6B7D;
  --line:        #E3E8EF;
  --line-2:      #D3DBE6;

  /* marka (logo) */
  --blue:        #0072D6;   /* przyciski, linki — kontrast ≥ 4.5 na białym */
  --blue-deep:   #005BB0;
  --blue-bright: #0183EE;   /* znak w logo */
  --cyan:        #00A1E8;   /* piksele w logo */

  /* sekcje ciemne */
  --night:       #0A1A33;
  --night-2:     #11264A;
  --night-line:  #22385E;
  --on-night:    #E8EEF6;
  --on-night-mute: #A3B3C8;
  --sky:         #6CC3FF;

  /* statusy */
  --ok:   #127A47;   --ok-bg:   #E6F6EE;
  --warn: #A3570A;   --warn-bg: #FDF1E3;
  --err:  #C0362C;   --err-bg:  #FCECEA;

  --f-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: var(--f-body);
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, 'Courier New', monospace;

  --wrap:    1200px;
  --gutter:  clamp(16px, 4vw, 40px);
  --col-gap: clamp(16px, 2.6vw, 40px);
  --sec-pad: clamp(64px, 8.5vw, 112px);
  --nav-h:   72px;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(10, 26, 51, .06), 0 1px 1px rgba(10, 26, 51, .04);
  --shadow:    0 1px 2px rgba(10, 26, 51, .05), 0 10px 30px -12px rgba(10, 26, 51, .18);
  --shadow-lg: 0 2px 6px rgba(10, 26, 51, .06), 0 28px 60px -24px rgba(10, 26, 51, .32);

  --ease-out: cubic-bezier(.22, .8, .24, 1);

  /* motyw pikseli z logo */
  --px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='8' y='0' width='6' height='6' rx='1.4' fill='%2300A1E8'/%3E%3Crect x='0' y='7' width='6' height='6' rx='1.4' fill='%2300A1E8'/%3E%3Crect x='15' y='7' width='6' height='6' rx='1.4' fill='%230183EE'/%3E%3Crect x='8' y='15' width='6' height='6' rx='1.4' fill='%23006ED0'/%3E%3C/svg%3E");
}

/* ── reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  font-family: var(--f-body);
  font-size: 1.03rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }
button, input { font: inherit; color: inherit; }
code, kbd, samp { font-family: var(--f-mono); font-size: .88em; }
:where(p, li, dd) code {
  background: var(--bg-tint);
  color: var(--blue-deep);
  padding: .1em .4em;
  border-radius: 5px;
}
strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--blue-bright); color: #fff; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 500;
  background: var(--ink); color: #fff;
  padding: .7rem 1rem; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── układ ─────────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
}
.sec { padding-block: var(--sec-pad); position: relative; }
.sec + .sec:not([class*="band--"]):not(.band--deep) { border-top: 1px solid #EEF2F7; }
.band--deep { background: var(--bg-soft); }
.band--sheet { background: var(--bg); }
.band--night {
  background: var(--night);
  color: var(--on-night);
  --line: var(--night-line);
  overflow: hidden;
}
.band--night::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  width: 240px; height: 240px; left: -60px; bottom: -70px;
  background: var(--px) center / contain no-repeat;
  opacity: .14;
}
.band--night > .wrap { z-index: 1; }
.band--night strong { color: #fff; }
.band--night :where(p, li, dd) code { background: var(--night-2); color: var(--sky); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(32px, 5vw, 56px);
}
.span-4  { grid-column: span 4; }
.span-5  { grid-column: span 5; }
.span-6  { grid-column: span 6; }
.span-7  { grid-column: span 7; }
.span-8  { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }
@media (max-width: 960px) {
  .grid > [class*="span-"] { grid-column: 1 / -1; }
}

/* ── typografia ────────────────────────────────────────────────────────── */
.display, .title, .h3 {
  font-family: var(--f-display);
  color: var(--ink);
  text-wrap: balance;
}
.band--night :is(.display, .title, .h3) { color: #fff; }
.display {
  font-weight: 800;
  font-size: clamp(2.4rem, 1.3rem + 3.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.032em;
}
.display--long {
  font-size: clamp(2rem, 1.05rem + 2.45vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -.028em;
}
.display em, .title em { font-style: normal; color: var(--blue); }
.band--night :is(.display, .title) em { color: var(--sky); }
.title {
  font-weight: 800;
  font-size: clamp(1.75rem, 1.15rem + 1.75vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -.026em;
  max-width: 22ch;
}
.title--wide { max-width: 28ch; }
.h3 {
  font-weight: 700;
  font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem);
  line-height: 1.3;
  letter-spacing: -.012em;
}
.lead {
  font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 58ch;
}
.band--night .lead { color: var(--on-night); }
.muted { color: var(--muted); }
.band--night .muted { color: var(--on-night-mute); }
.mono { font-family: var(--f-mono); }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }

/* etykieta nad nagłówkiem hero */
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .38rem .85rem .38rem .6rem;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--blue-deep);
  font-size: .84rem; font-weight: 600; letter-spacing: .01em;
}
.kicker::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: var(--px) center / contain no-repeat;
}
.band--night .kicker { background: var(--night-2); color: var(--sky); }

/* nagłówek sekcji: „brew” z pikselami z logo (numer i kropki ukryte) */
.sec-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem;
  margin-bottom: clamp(14px, 2vw, 20px);
}
.sec-head .no, .sec-head .leader, .sec-head > span:not(.name):not(.status) { display: none; }
.sec-head .name {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.sec-head .name::before {
  content: ""; width: 15px; height: 15px; flex: none;
  background: var(--px) center / contain no-repeat;
}
.band--night .sec-head .name { color: var(--sky); }

/* ── przyciski i linki ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 50px;
  padding: .8rem 1.35rem;
  font-family: var(--f-body);
  font-size: .98rem; font-weight: 700; line-height: 1.2;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:hover { background: #142B52; transform: translateY(-1px); }
.btn .arr { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn:hover .arr--down { transform: translateY(2px); }
.btn--cobalt { background: var(--blue); box-shadow: 0 8px 20px -10px rgba(0, 114, 214, .75); }
.btn--cobalt:hover { background: var(--blue-deep); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: #fff; color: var(--blue); border-color: var(--blue); }
.band--night .btn { background: #fff; color: var(--ink); }
.band--night .btn:hover { background: var(--bg-tint); }
.band--night .btn--cobalt { background: var(--blue-bright); color: #fff; }
.band--night .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.band--night .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.link {
  color: var(--blue); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em;
  transition: color .15s;
}
.link:hover { color: var(--blue-deep); }
.band--night .link { color: var(--sky); }
.band--night .link:hover { color: #fff; }

/* ── nawigacja ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 300;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid #ECF0F5;
}
.topbar .wrap {
  height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(6px, 1.4vw, 18px); margin-left: auto; }
.nav a {
  position: relative;
  font-size: .95rem; font-weight: 600;
  color: #33445C; text-decoration: none;
  padding: .5rem .55rem;
  border-radius: 8px;
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--blue); background: var(--bg-tint); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .55rem; right: .55rem; bottom: -.9rem;
  height: 2px; border-radius: 2px; background: var(--blue);
}
.nav .nav-phone {
  margin-left: .4rem;
  background: var(--blue); color: #fff;
  padding: .6rem 1rem; border-radius: 10px;
  font-weight: 700; letter-spacing: .01em;
}
.nav .nav-phone:hover { background: var(--blue-deep); color: #fff; }
.nav-toggle {
  display: none; margin-left: auto;
  min-height: 44px; min-width: 44px;
  padding: .5rem 1rem;
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px;
  font-size: .92rem; font-weight: 700; color: var(--ink); cursor: pointer;
}
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(10, 26, 51, .3);
    padding: .6rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.08rem; padding: .85rem .75rem; }
  .nav a[aria-current="page"] { background: var(--bg-tint); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .nav-phone { margin: .8rem 0 0; text-align: center; padding: .9rem; }
}

/* ── HERO (strona główna) ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.hero .grid { align-items: center; position: relative; }
.hero .kicker { margin-bottom: 1.4rem; }
.hero .display { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2.1rem; }
.hero-note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.hero-note b { color: var(--ok); font-weight: 700; }

.hero-text { position: relative; z-index: 1; }

/* hero z filmem w tle (images/hero-loop.mp4), zapętlonym płynnie: dwa elementy <video> przenikają się
   (crossfade) na końcu każdego przebiegu — patrz erpower.js. Telefon: film w pasie nad tekstem. */
.hero--video {
  --stage-h: clamp(560px, 86vh, 820px);
  --hero-bg: #030405;
  padding: 0;
  background: var(--hero-bg);
}
.hero--video::after { display: none; }
.hero-stage {
  position: relative;
  min-height: var(--stage-h);
  display: flex; align-items: center;
  padding-block: clamp(56px, 7vw, 104px);
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  opacity: 0;
}
.hero-video:first-child { opacity: 1; }   /* bez JS widać plakat */
.hero-stage::before {   /* przyciemnienie: czytelny tekst po lewej, film pełny po prawej */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 4, 5, .92) 0%, rgba(3, 4, 5, .74) 36%, rgba(3, 4, 5, .22) 64%, rgba(3, 4, 5, .08) 100%);
}
.hero-stage > .wrap { width: 100%; z-index: 2; }
.hero--video .hero-note { color: var(--on-night-mute); }
.hero--video .hero-note b { color: #7FE0AE; }
@media (max-width: 960px) {
  .hero--video { --band: min(64vw, 420px); }
  .hero-stage { display: block; min-height: 0; padding-top: calc(var(--band) + 4px); }
  .hero-media { bottom: auto; height: var(--band); }
  .hero-stage::before {
    background: linear-gradient(to bottom, rgba(3, 4, 5, 0) calc(var(--band) - 90px), var(--hero-bg) var(--band));
  }
}

/* ── dziennik zdarzeń (okno aplikacji) ─────────────────────────────────── */
html.js .journal-wrap:not(.is-visible) .journal-rows li { animation-play-state: paused; }
.apps-head { align-items: center; }
.journal-wrap { position: relative; }
.journal {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.journal-head {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: .8rem; color: var(--muted);
}
.journal-head b { color: var(--ink); font-weight: 700; }
.journal-rows { list-style: none; }
.journal-rows li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  column-gap: .9rem; row-gap: .2rem;
  padding: .72rem 1.1rem;
  align-items: baseline;
  border-bottom: 1px solid #F0F3F7;
  font-size: .78rem; line-height: 1.45; color: var(--muted);
  animation: journal-print .55s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 380ms + 300ms);
}
.journal-rows li:last-child { border-bottom: 0; }
.journal-rows time { grid-column: 1; grid-row: 1 / span 2; font-family: var(--f-mono); }
.journal-rows .j-mod { grid-column: 2; grid-row: 1; color: var(--blue); font-weight: 700; }
.journal-rows .j-msg { grid-column: 2 / -1; grid-row: 2; font-size: .93rem; color: var(--ink); }
.journal-rows .j-st {
  grid-column: 3; grid-row: 1; justify-self: end;
  font-size: .7rem; font-weight: 700; letter-spacing: .03em;
  padding: .12rem .5rem; border-radius: 999px;
}
.j-st.ok   { color: var(--ok); background: var(--ok-bg); }
.j-st.warn { color: var(--warn); background: var(--warn-bg); }
.journal-rows li.is-soon .j-msg { color: var(--muted); }
.journal-foot {
  padding: .75rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: .78rem; color: var(--muted);
}
.journal-foot .cursor {
  display: inline-block; width: .5em; height: 1em; margin-left: .25em; vertical-align: -.15em;
  background: var(--blue-bright); border-radius: 1px;
  animation: blink 1.1s steps(1) infinite;
}
.journal-cap { margin-top: 1.1rem; font-size: .88rem; color: var(--muted); max-width: 48ch; }
@keyframes journal-print { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 480px) { .journal-head span:last-child { display: none; } }

/* ── liczby (statystyki) ───────────────────────────────────────────────── */
.ledger {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 16px;
}
.ledger > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.2vw, 26px);
  box-shadow: var(--shadow-sm);
}
.band--deep .ledger > div { background: #fff; }
.ledger .num {
  display: block;
  font-weight: 800;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  line-height: 1.05; letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.ledger .num--mono { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--blue); }
.ledger .lbl { display: block; margin-top: .45rem; font-size: .9rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 1080px) { .ledger[style*="--cols:6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 640px)  { .ledger[style*="--cols:3"] { grid-template-columns: minmax(0, 1fr); } }

/* ── lista pozycji (usługi, funkcje) ───────────────────────────────────── */
.rows { list-style: none; display: grid; gap: 12px; }
.rows > li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: clamp(18px, 2.2vw, 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s, box-shadow .2s;
}
.rows > li:hover { border-color: #C9D9EE; box-shadow: var(--shadow); }
.rows .idx {
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 10px;
  background: var(--bg-tint); color: var(--blue);
  font-size: .85rem; font-weight: 800;
}
.rows .h3 { margin-bottom: .35rem; }
.rows p { max-width: 62ch; }
.band--night .rows > li { background: var(--night-2); border-color: var(--night-line); }
.band--night .rows > li:hover { box-shadow: none; border-color: #2E4A78; }
.band--night .rows .idx { background: rgba(108, 195, 255, .12); color: var(--sky); }
.rows--split > li { grid-template-columns: 2.6rem minmax(0, 16rem) minmax(0, 1fr); column-gap: clamp(16px, 2.4vw, 32px); }
.rows--split .sub { display: block; margin-top: .3rem; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
@media (max-width: 760px) {
  .rows--split > li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .rows--split > li > ul { grid-column: 2; }
}
.dash { list-style: none; display: grid; gap: .45rem; }
.dash li { position: relative; padding-left: 1.35rem; }
.dash li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--cyan);
}

.stick { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
@media (max-width: 960px) { .stick { position: static; } }

/* ── karty w siatce ────────────────────────────────────────────────────── */
.cells {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 18px;
}
.cells > * {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 28px);
  transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s;
}
.cells > *:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #C9D9EE; }
.cells .idx {
  display: inline-block; margin-bottom: 1rem;
  padding: .22rem .6rem; border-radius: 999px;
  background: var(--bg-tint); color: var(--blue);
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
}
.cells .h3 { margin-bottom: .5rem; }
.cells p { font-size: .97rem; }
.cells--2 { --cols: 2; }
.cells--4 { --cols: 4; }
.band--night .cells > * { background: var(--night-2); border-color: var(--night-line); }
.band--night .cells .idx { background: rgba(108, 195, 255, .12); color: var(--sky); }
@media (max-width: 1100px) { .cells--4 { --cols: 2; } }
@media (max-width: 960px) { .cells { --cols: 2; } }
@media (max-width: 600px) { .cells, .cells--2, .cells--4 { --cols: 1; } }
.cells--3 { --cols: 3; }
@media (max-width: 960px) { .cells--3 { --cols: 1; } }   /* 3 karty: jedna kolumna zamiast 2+1 */

/* ── spis aplikacji (produkty) ─────────────────────────────────────────── */
.index { list-style: none; display: grid; gap: 16px; }
.index-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) minmax(0, 1.15fr) auto;
  gap: clamp(16px, 2.6vw, 36px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 2.6vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: box-shadow .25s var(--ease-out), border-color .25s, transform .25s var(--ease-out);
}
.index-row:hover { box-shadow: var(--shadow-lg); border-color: #C9D9EE; transform: translateY(-2px); }
.index-name {
  font-weight: 800; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem);
  line-height: 1.1; letter-spacing: -.02em; color: var(--ink);
}
.index-name a { text-decoration: none; }
.index-name a::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.index-logo { display: block; height: 52px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.index-tag { margin-top: .5rem; font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.index-desc { font-size: .96rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; list-style: none; }
.chips li {
  font-size: .76rem; font-weight: 600;
  padding: .25rem .65rem; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-2);
  border: 1px solid var(--line);
}
.band--night .chips li { background: var(--night-2); border-color: var(--night-line); color: var(--on-night); }
.index-go { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; font-size: .85rem; }
.index-go .arrow {
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--bg-tint); color: var(--blue);
  font-size: 1.15rem; font-weight: 700;
  transition: background-color .25s, color .25s, transform .25s var(--ease-out);
}
.index-row:hover .arrow { background: var(--blue); color: #fff; transform: translateX(3px); }
.index-go .extra { position: relative; z-index: 2; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 1100px) {
  .index-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; row-gap: 1rem; }
  .index-row > .index-name { grid-column: 1; grid-row: 1; }
  .index-row > .index-go { grid-column: 2; grid-row: 1; }
  .index-row > .index-meta, .index-row > .index-desc { grid-column: 1 / -1; }
  .index-logo { height: 46px; }
}

/* status (pigułka z kropką) */
.status {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .26rem .7rem .26rem .6rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700;
  color: var(--ok); background: var(--ok-bg);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--new  { color: var(--blue); background: var(--bg-tint); }
.status--soon { color: var(--warn); background: var(--warn-bg); }
.status--soon::before { animation: pulse 1.6s ease-in-out infinite; }
.band--night .status { color: #7FE0AE; background: rgba(127, 224, 174, .1); }
.band--night .status--new { color: var(--sky); background: rgba(108, 195, 255, .12); }
.band--night .status--soon { color: #F4B860; background: rgba(244, 184, 96, .12); }
@keyframes pulse { 50% { opacity: .3; } }

/* ── WMS: kolektor danych ──────────────────────────────────────────────── */
.collector { width: 290px; max-width: 100%; margin-inline: auto; }
.collector-body {
  background: #1C2534; border: 1px solid #344257; border-radius: 28px;
  padding: 16px 14px 20px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.collector-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 12px; }
.collector-lens { width: 40px; height: 11px; border-radius: 6px; background: #0B1017; border: 1px solid #344257; }
.collector-dots { display: flex; gap: 7px; }
.collector-dots span { width: 8px; height: 8px; border-radius: 50%; background: #344257; }
.collector-dots span.led { background: #3FB950; box-shadow: 0 0 8px #3FB950; }
.collector-screen { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid #0B1017; background: #fff; }
.collector-scanline {
  position: absolute; left: 0; right: 0; height: 2px; top: 6%;
  background: rgba(255, 70, 60, .85); box-shadow: 0 0 10px 2px rgba(255, 70, 60, .5);
  animation: scanmove 3.4s ease-in-out infinite;
}
@keyframes scanmove { 0%, 100% { top: 6%; } 50% { top: 92%; } }
.collector-keys { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 6px; }
.collector-keys span { height: 20px; border-radius: 6px; background: #2A3546; border: 1px solid #3A4859; }
.collector-scan {
  margin: 10px 6px 0; height: 30px; border-radius: 9px;
  background: linear-gradient(180deg, #F2B04A, #E39A2A); color: #2A1A00;
  font-weight: 800; font-size: .75rem; letter-spacing: .14em;
  display: grid; place-items: center;
}

/* ── schemat integracji ────────────────────────────────────────────────── */
.schema {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 48px);
  aspect-ratio: 1 / 1;
  max-width: 580px; margin-inline: auto;
}
.schema-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: #A9C3E6; pointer-events: none; }
.schema-lines line { stroke-dasharray: 5 6; }
.schema-node {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: .6rem;
  background: #fff;
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm);
  font-size: clamp(.78rem, .7rem + .35vw, .98rem); font-weight: 700; line-height: 1.25;
  color: var(--ink);
}
.schema-node small {
  display: block; margin-top: .4rem;
  font-size: clamp(.6rem, .56rem + .2vw, .72rem); font-weight: 700;
  color: var(--blue);
}
.schema-core {
  background: var(--night); border-color: var(--night); color: #fff;
  font-size: clamp(.95rem, .8rem + .7vw, 1.3rem); font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 20px 40px -18px rgba(10, 26, 51, .55);
}
.schema-core small { color: var(--sky); }

/* ── etapy (proces) ────────────────────────────────────────────────────── */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}
.flow > li { position: relative; padding-top: 64px; counter-increment: step; }
.flow > li::after {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue); color: #fff;
  font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 10px 22px -12px rgba(0, 114, 214, .9);
}
.flow > li::before {
  content: ""; position: absolute; top: 21px; left: 56px; right: -12px;
  height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #BFD5EF 0 6px, transparent 6px 12px);
}
.flow > li:last-child::before { display: none; }
.band--night .flow > li::after { background: var(--blue-bright); }
.band--night .flow > li::before { background: repeating-linear-gradient(90deg, #2E4A78 0 6px, transparent 6px 12px); }
.flow .h3 { margin-bottom: .45rem; }
.flow p { font-size: .97rem; }
@media (max-width: 900px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
  .flow > li::before { display: none; }
}
@media (max-width: 540px) { .flow { grid-template-columns: 1fr; } }

/* ── ilustracje (zrzuty ekranu) ────────────────────────────────────────── */
.fig { margin: 0; }
.fig-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.fig-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .9rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: .78rem; font-weight: 600; color: var(--muted);
}
.fig-bar .win { display: inline-flex; gap: .9rem; color: #8A97A8; font-weight: 400; }
.fig img { width: 100%; }
.fig figcaption { margin-top: 1rem; font-size: .9rem; color: var(--muted); max-width: 64ch; }
.fig figcaption b {
  display: inline-block; margin-right: .45rem;
  padding: .08rem .5rem; border-radius: 999px;
  background: var(--bg-tint); color: var(--blue);
  font-size: .74rem; font-weight: 800;
}
.band--night .fig figcaption { color: var(--on-night-mute); }

/* ── tabela specyfikacji ───────────────────────────────────────────────── */
.spec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: .4rem clamp(16px, 2vw, 24px);
}
.spec > div {
  display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr);
  gap: 1rem; padding-block: .9rem;
  border-bottom: 1px solid #EEF2F7;
}
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-weight: 700; color: var(--ink); }
.spec dd { color: var(--text-2); }
@media (max-width: 560px) { .spec > div { grid-template-columns: 1fr; gap: .2rem; } }
.spec-title { font-size: 1.02rem; font-weight: 800; color: var(--ink); margin-bottom: .9rem; }

/* ── tabela porównawcza (licencje) ─────────────────────────────────────── */
.table-scroll {
  position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
}
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { padding: .95rem 1.1rem; border-bottom: 1px solid #EEF2F7; text-align: left; vertical-align: top; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { vertical-align: bottom; border-bottom: 1px solid var(--line); padding-top: 1.5rem; }
.compare thead th:first-child { width: 42%; }
.compare thead th:not(:first-child) { text-align: center; }
.compare .plan { display: block; font-weight: 800; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.compare .plan-desc { display: block; margin-top: .3rem; font-size: .84rem; font-weight: 500; color: var(--muted); }
.compare .plan-flag {
  display: inline-block; margin-bottom: .6rem;
  padding: .2rem .6rem; border-radius: 999px;
  background: var(--blue); color: #fff;
  font-size: .66rem; font-weight: 800; letter-spacing: .06em;
}
.compare .col-hl { background: #F2F8FF; }
.compare thead .col-hl { box-shadow: inset 0 3px 0 var(--blue); }
.compare td.y, .compare td.n { text-align: center; font-weight: 800; }
.compare td.y { color: var(--ok); }
.compare td.n { color: #B6C0CD; }
.compare tbody th { font-weight: 600; color: var(--ink); }

/* ── kod ───────────────────────────────────────────────────────────────── */
.code {
  background: #0B1730;
  color: #E2E8F0;
  border-radius: 14px;
  font-family: var(--f-mono); font-size: .8rem; line-height: 1.7;
  box-shadow: var(--shadow-lg);
  overflow: hidden; min-width: 0;
}
.code-bar {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 1rem;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid #1B2C4D;
  font-size: .72rem; color: #8FA3C0;
}
.code-bar b { color: #7CC4FF; font-weight: 600; }
.code pre { margin: 0; padding: 1.1rem 1.15rem 1.25rem; overflow-x: auto; white-space: pre; tab-size: 2; }
.code .c  { color: #6E819F; }
.code .k  { color: #FF9C82; }
.code .s  { color: #A5D0FF; }
.code .u  { color: #7CC4FF; }
.code .p  { color: #F5CD79; }
.code .v  { color: #FFB86B; }
.code .ok { color: #6FD39A; }

/* ── mapa API ──────────────────────────────────────────────────────────── */
.apimap-group {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 28px);
}
.apimap-group + .apimap-group { margin-top: 18px; }
.apimap-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .8rem; }
.apimap-head .h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
.apimap-head .mono { font-family: var(--f-body); font-size: .85rem; font-weight: 600; color: var(--muted); }
.apimap-group .table-scroll { border: 0; border-radius: 0; background: transparent; }
.apimap { width: 100%; min-width: 640px; border-collapse: collapse; }
.apimap th, .apimap td { text-align: left; vertical-align: top; padding: .85rem .9rem .85rem 0; border-bottom: 1px solid #EEF2F7; }
.apimap tbody tr:last-child > * { border-bottom: 0; }
.apimap thead th {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); border-bottom: 1px solid var(--line); padding-block: .5rem;
}
.apimap tbody th { font-weight: 700; color: var(--ink); width: 22%; }
.apimap .route { font-family: var(--f-mono); font-size: .8rem; color: var(--blue); width: 24%; }
.apimap .route span { display: block; }
.apimap .desc { font-size: .94rem; }
.apimap .ops { width: 1%; white-space: nowrap; text-align: right; padding-right: 0; }
.apimap .count { display: block; font-size: .76rem; font-weight: 500; color: var(--muted); margin-top: .2rem; }
.m {
  display: inline-block; min-width: 3.3em; margin: 0 0 .25rem .25rem;
  padding: .14rem .4rem; border-radius: 6px;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-align: center;
}
.m-get  { color: var(--ok);   background: var(--ok-bg); }
.m-post { color: var(--blue); background: var(--bg-tint); }
.m-put  { color: var(--warn); background: var(--warn-bg); }
.m-del  { color: var(--err);  background: var(--err-bg); }

/* ── formularz (wersja testowa) ────────────────────────────────────────── */
.form-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3.4vw, 40px);
}
.field-label { display: block; margin-bottom: .5rem; font-weight: 700; color: var(--ink); }
.field-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.field-row input[type="email"] {
  flex: 1 1 240px; min-height: 52px;
  padding: .8rem 1rem; font-size: 1.02rem;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field-row input[type="email"]::placeholder { color: #8A97A8; }
.field-row input[type="email"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 114, 214, .15); }
.field-row input[aria-invalid="true"] { border-color: var(--err); }
.field-row .btn { flex: 0 0 auto; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.consent { margin-top: 1rem; font-size: .82rem; color: var(--muted); max-width: 70ch; }
.form-msg { margin-top: 1rem; font-weight: 600; display: none; padding: .8rem 1rem; border-radius: 10px; }
.form-msg.show { display: block; }
.form-msg.ok  { color: var(--ok); background: var(--ok-bg); }
.form-msg.err { color: var(--err); background: var(--err-bg); }
.ticks { list-style: none; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: .05em;
  display: grid; place-items: center;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--ok-bg); color: var(--ok);
  font-size: .75rem; font-weight: 800;
}

/* legenda statusów */
.legend { display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; margin-top: 1.8rem; font-size: .93rem; }
.legend span.dot { display: inline-block; width: .85rem; height: .85rem; margin-right: .5rem; vertical-align: -.08em; border-radius: 4px; border: 1px solid rgba(10, 26, 51, .18); }
.dot--new { background: #fff; }
.dot--ok  { background: #BFE8CF; }
.dot--err { background: #F5C3BF; }

/* ── kontakt ───────────────────────────────────────────────────────────── */
.contact .title { max-width: 18ch; }
.contact .kicker { display: flex; width: max-content; }
.phone-big {
  display: inline-block;
  font-weight: 800;
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem);
  line-height: 1; letter-spacing: -.035em;
  color: #fff; text-decoration: none;
  font-variant-numeric: lining-nums;
  transition: color .2s;
}
.phone-big:hover { color: var(--sky); }
.mail-big {
  display: block; width: max-content; max-width: 100%;
  margin-top: 1rem;
  font-weight: 700; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  letter-spacing: -.01em;
  color: var(--sky); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .25em;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.mail-big:hover { color: #fff; }
.contact-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-top: clamp(36px, 5vw, 64px);
}
.contact-meta > div {
  padding: 1.1rem 1.2rem;
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: var(--r);
}
.contact-meta dt { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-mute); margin-bottom: .35rem; }
.contact-meta dd { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .contact-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .contact-meta { grid-template-columns: 1fr; } }

/* ── stopka ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 5vw, 64px) 28px;
  font-size: .93rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 28px var(--col-gap); }
.footer h2 { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.footer ul { list-style: none; display: grid; gap: .5rem; }
.footer a { text-decoration: none; color: var(--ink); }
.footer a:hover { color: var(--blue); }
.footer .brand img { height: 38px; margin-bottom: 1rem; }
.footer-note { max-width: 34ch; color: var(--muted); }
.footer-base {
  margin-top: clamp(32px, 4vw, 48px); padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  font-size: .8rem; color: var(--muted);
}
.footer-base span:last-child { flex: 1 1 340px; max-width: 66ch; text-align: right; line-height: 1.5; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-base span:last-child { text-align: left; max-width: none; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── strona produktu: nagłówek ─────────────────────────────────────────── */
.p-hero {
  position: relative;
  padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, #F1F7FE 0%, #FFFFFF 78%);
  overflow: hidden;
}
.p-hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 220px; height: 220px; right: 4%; top: 24px;
  background: var(--px) center / contain no-repeat; opacity: .12;
}
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: clamp(24px, 3.4vw, 40px); font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.p-logo { margin: 1.1rem 0 1.2rem; line-height: 0; }
.p-logo img { display: block; height: clamp(58px, 3vw + 42px, 96px); width: auto; max-width: 100%; }
.p-hero .display { font-size: clamp(2.4rem, 1.2rem + 4vw, 4.4rem); margin-bottom: .8rem; }
.p-hero .subtitle {
  font-weight: 700; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem);
  line-height: 1.3; letter-spacing: -.015em; color: var(--blue);
  margin-bottom: 1.4rem; max-width: 28ch; text-wrap: balance;
}
.p-hero .lead { margin-bottom: 2rem; }

/* nagłówek z wideo w tle (ksef.html): film odtwarza się raz przy wejściu w widok i po każdym powrocie */
.p-hero--clip {
  background: #05070B;
  min-height: clamp(520px, 72vh, 760px);
  display: flex; align-items: center;
}
.p-hero--clip > .wrap { width: 100%; }
.p-hero--clip::after { display: none; }
.clip-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
  pointer-events: none;
}
.p-hero--clip::before {   /* przyciemnienie: czytelny tekst i okno programu na filmie */
  content: ""; position: absolute; inset: 0; width: auto; height: auto; right: 0; top: 0;
  z-index: 1; opacity: 1;
  background:
    linear-gradient(90deg, rgba(4, 6, 10, .93) 0%, rgba(4, 6, 10, .8) 38%, rgba(4, 6, 10, .3) 62%, rgba(4, 6, 10, .12) 100%),
    linear-gradient(180deg, rgba(4, 6, 10, .3) 0%, rgba(4, 6, 10, 0) 26%, rgba(4, 6, 10, .4) 100%);
}
@media (max-width: 960px) {   /* telefon: tekst zajmuje cały kadr — lżejsze przyciemnienie u góry, mocniejsze pod tekstem */
  .p-hero--clip::before {
    background: linear-gradient(180deg, rgba(4, 6, 10, .5) 0%, rgba(4, 6, 10, .78) 40%, rgba(4, 6, 10, .9) 100%);
  }
}
.p-hero--clip .crumbs, .p-hero--clip .crumbs a { color: rgba(232, 238, 246, .72); }
.p-hero--clip .crumbs a:hover { color: #fff; }
.p-hero--clip .crumbs span[aria-current] { color: #fff; }
.p-hero--clip .p-logo {   /* logo ma ciemny napis — na filmie leży na białej plakietce */
  display: inline-block; padding: 12px 22px; background: #fff; border-radius: 16px;
  box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .7);
}
.p-hero--clip .p-logo img { height: clamp(46px, 2.2vw + 34px, 74px); }
.p-hero--clip .subtitle { color: var(--sky); }

/* logo produktu z ciemnym napisem na ciemnej sekcji — biała plakietka */
.logo-plaque {
  display: inline-block; margin: 0 0 1.4rem; padding: 10px 20px; line-height: 0;
  background: #fff; border-radius: 14px; box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .7);
}
.logo-plaque img { display: block; height: 52px; width: auto; max-width: 100%; }

/* kolejka e-mail (OES) */
.queue { background: #fff; color: var(--ink); border: 1px solid #E3E8EF; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.queue .fig-bar { border-radius: 0; }
.queue table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.queue th, .queue td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid #F0F3F7; }
.queue td:first-child { font-family: var(--f-mono); color: var(--muted); }
.queue thead th { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.queue td:last-child, .queue th:last-child { text-align: right; }
.queue .st { font-weight: 700; font-size: .7rem; letter-spacing: .03em; }
.queue .st-sent { color: var(--ok); }
.queue .st-pend { color: var(--blue); }
.queue .st-fail { color: var(--err); }
.queue tbody tr { animation: journal-print .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 260ms + 300ms); }
@media (max-width: 520px) { .queue .hide-s, .queue .fig-bar span:last-child { display: none; } }

/* wyróżnienie */
.note {
  border-left: 3px solid var(--blue-bright);
  padding: .9rem 1.1rem;
  background: var(--bg-tint);
  border-radius: 0 10px 10px 0;
  font-size: .95rem;
}
.band--night .note { background: var(--night-2); border-color: var(--sky); }

/* ── dokument (polityka prywatności) ───────────────────────────────────── */
.doc { max-width: 780px; }
.doc h2 {
  font-weight: 800; color: var(--ink); letter-spacing: -.02em;
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); line-height: 1.25;
  margin: 2.6rem 0 1rem;
}
.doc p, .doc ul, .doc ol, .doc table { margin-bottom: 1rem; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .45rem; }
.doc table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.doc th, .doc td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--bg-soft); font-size: .8rem; font-weight: 700; color: var(--muted); }
.doc a { color: var(--blue); text-underline-offset: .2em; }
.doc .toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.5rem; margin-bottom: 2rem; }
.doc .toc ol { margin: .6rem 0 0; columns: 2; column-gap: 2rem; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
.doc .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; }
.doc .meta { font-size: .85rem; color: var(--muted); margin-top: 2.5rem; }

/* ── odstępy pomocnicze ────────────────────────────────────────────────── */
.mt-s { margin-top: 1rem; }
.mt-m { margin-top: clamp(22px, 3vw, 32px); }
.mt-l { margin-top: clamp(40px, 5.5vw, 64px); }
.mb-m { margin-bottom: clamp(22px, 3vw, 32px); }
.mb-l { margin-bottom: clamp(36px, 5vw, 56px); }

/* ── ruch: szacunek dla prefers-reduced-motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .collector-scanline, .journal-foot .cursor { display: none; }
}

/* ── makieta: ikona w zasobniku Windows (OptiKSeF — wysyłka do KSeF) ───── */
.tray { position: relative; max-width: 460px; margin-inline: auto; padding-bottom: 60px; color: var(--ink); }
.tray-toast {
  width: 88%; margin: 0 0 16px auto;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px 15px;
  animation: journal-print .6s var(--ease-out) both; animation-delay: .4s;
}
.tray-toast-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.tray-toast-head img { width: 18px; height: 18px; }
.tray-toast strong { display: block; font-size: .98rem; color: var(--ink); }
.tray-toast p { margin-top: 2px; font-size: .86rem; color: var(--text-2); }
.tray-menu {
  list-style: none; width: 76%; margin-left: auto;
  background: #F9FAFB; color: var(--ink);
  border: 1px solid #E2E6EC; border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 6px; font-size: .9rem;
}
.tray-menu li { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 6px; }
.tray-menu li.is-primary { background: var(--bg-tint); color: var(--blue-deep); font-weight: 700; }
.tray-menu li.info { color: var(--muted); font-size: .8rem; }
.tray-menu li.check::before { content: "✓"; color: var(--blue); font-weight: 800; }
.tray-menu li.sep { height: 1px; padding: 0; margin: 4px 6px; background: #E2E6EC; border-radius: 0; }
.tray-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  padding: 0 14px;
  background: #1C2433; border: 1px solid #2B3648; border-radius: 12px;
  color: #E5E9F0; font-size: .74rem; line-height: 1.2;
}
.tray-bar .chev { opacity: .7; font-size: .8rem; }
.tray-bar .ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .12); }
.tray-bar .ico img { width: 20px; height: 20px; }
.tray-bar .clock { text-align: right; }
@media (max-width: 520px) { .tray-toast { width: 100%; } .tray-menu { width: 94%; } }
