/* ==========================================================================
   DeaLAB – system wizualny
   Grafitowa plansza + papier specyfikacji. Jedna rodzina (Archivo, oś szerokości),
   jeden sygnał (elektryczny błękit), keyline 1 px, przepływy 1,5 px.
   ========================================================================== */

/* ---------- Fonty (hostowane lokalnie) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokeny ---------- */
:root {
  --ink-900: #0C1322;
  --ink-850: #111A2D;
  --ink-800: #182238;
  --ink-700: #243352;
  --ink-950: #080D18;

  --bone: #F2EFE6;
  --bone-2: #AAB3C5;
  --bone-3: #7E889B;

  --paper: #F3F0E8;
  --paper-2: #E9E5DA;
  --ink-on-paper: #0C1322;
  --ink-on-paper-2: #4B5569;

  --signal: #3F8CFF;
  --signal-hi: #8ABCFF;
  --signal-deep: #1F5BD6;
  --signal-ink: #07122A;
  --signal-field: #173A8A;
  --signal-field-text: #D9E1F5;

  --alert: #FF8A8A;

  --line: rgba(242, 239, 230, 0.14);
  --line-strong: rgba(242, 239, 230, 0.3);
  --line-paper: rgba(12, 19, 34, 0.16);
  --line-paper-strong: rgba(12, 19, 34, 0.42);

  --grid-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M0 .5H32M.5 0V32' stroke='rgba(242,239,230,0.07)' fill='none'/%3E%3C/svg%3E");
  --grid-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M0 .5H32M.5 0V32' stroke='rgba(12,19,34,0.08)' fill='none'/%3E%3C/svg%3E");

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --fs-h3: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.8vw, 3.75rem);
  --fs-h1: clamp(2.5rem, 1.3rem + 3.6vw, 4.75rem);
  --fs-display: clamp(2.5rem, 1rem + 4.9vw, 5.25rem);

  --container: 82rem;
  --gutter: clamp(1rem, 0.5rem + 2.2vw, 3rem);
  --gap: clamp(1rem, 1.5vw, 1.75rem);
  --section: clamp(5rem, 3.5rem + 6vw, 9.5rem);
  --radius: 6px;
  --radius-lg: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4rem;

  color-scheme: dark;
  scrollbar-color: var(--ink-700) var(--ink-900);
}
@media (min-width: 64em) {
  :root { --header-h: 4.5rem; }
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--bone);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
main { overflow-x: clip; }
@supports not (overflow: clip) { main { overflow-x: hidden; } }

::selection { background: var(--signal); color: var(--signal-ink); }
.band--paper ::selection { background: var(--ink-900); color: var(--paper); }
.band--signal ::selection { background: var(--bone); color: var(--signal-field); }

img, svg { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 640;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.015em; font-weight: 600; font-stretch: 106%; }
.display { font-size: var(--fs-display); letter-spacing: -0.032em; line-height: 0.98; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--bone-2);
  max-width: 36em;
}
.band--paper .lead { color: var(--ink-on-paper-2); }

.label {
  font-size: var(--fs-label);
  font-weight: 600;
  font-stretch: 80%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.band--paper .label { color: var(--ink-on-paper-2); }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s, color 0.2s;
}
a:hover { text-decoration-color: currentColor; }
.band--paper a { text-decoration-color: var(--line-paper-strong); }

:focus-visible { outline: 2px solid var(--signal-hi); outline-offset: 3px; border-radius: 2px; }
.band--paper :focus-visible { outline-color: var(--signal-deep); }
.band--signal :focus-visible { outline-color: var(--bone); }
main:focus { outline: none; }

.nowrap { white-space: nowrap; }
.sr-only {
  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: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--radius);
  background: var(--signal); color: var(--signal-ink);
  font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }

.icon {
  display: inline-block; width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Przyciski i linki akcji ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0 1.4rem;
  border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-stretch: 100%; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.4s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.08s; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.4s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--signal); color: var(--signal-ink); }
.btn--primary:hover { background: var(--signal-hi); }
.btn--ghost { border-color: var(--line-strong); color: var(--bone); background: transparent; }
.btn--ghost:hover { border-color: var(--bone); }
.btn--ink { background: var(--ink-900); color: var(--bone); }
.btn--ink:hover { background: var(--ink-800); }
.btn--paper { background: var(--ink-900); color: var(--bone); }
.btn--paper:hover { background: var(--ink-700); }
.btn--sm { min-height: 2.6rem; padding: 0 1rem; font-size: var(--fs-small); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: var(--signal-hi); text-decoration: none;
}
.link-arrow .icon { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-decoration-color: currentColor; }
.band--paper .link-arrow { color: var(--signal-deep); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(12, 19, 34, 0.96);
  border-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 1.9rem; width: auto; }
@media (min-width: 64em) { .logo img { height: 2.15rem; } }

.nav { display: none; }
@media (min-width: 64em) { .nav { display: flex; align-items: center; gap: 0.35rem; } }
.nav__list { display: flex; align-items: center; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.85rem; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--bone-2);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.nav__link:hover,
.nav__link[aria-expanded="true"] { color: var(--bone); background: rgba(242, 239, 230, 0.06); }
.nav__link[aria-current] { color: var(--bone); }
.nav__link[aria-current]::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 2px; border-radius: 1px; background: var(--signal);
}
.nav__link .icon--chevron { width: 0.9em; height: 0.9em; transition: transform 0.3s var(--ease-out); }
.nav__link[aria-expanded="true"] .icon--chevron { transform: rotate(180deg); }
.nav__cta { margin-left: 0.75rem; }

.nav__panel {
  position: absolute; top: calc(100% + 0.6rem); left: 0; z-index: 5;
  min-width: 23rem; padding: 0.5rem;
  background: var(--ink-850); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0; transform: translateY(8px); visibility: hidden;
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.nav__item--menu.is-open .nav__panel { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.nav__panel a {
  display: grid; gap: 0.15rem;
  padding: 0.7rem 0.85rem; border-radius: var(--radius);
  text-decoration: none; transition: background-color 0.2s;
}
.nav__panel a:hover, .nav__panel a:focus-visible { background: rgba(242, 239, 230, 0.06); }
.nav__panel a[aria-current="page"] strong { color: var(--signal-hi); }
.nav__panel strong { font-weight: 600; }
.nav__panel span { font-size: var(--fs-small); color: var(--bone-2); }
.nav__panel .nav__all {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--line); border-radius: 0;
  color: var(--signal-hi); font-weight: 600;
}
.nav__panel .nav__all:hover { background: transparent; text-decoration: underline; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--bone); cursor: pointer;
}
@media (min-width: 64em) { .nav-toggle { display: none; } }
.nav-toggle__bars { position: relative; width: 20px; height: 12px; display: block; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 10.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 5.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 5.25px; transform: rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
  display: grid; align-content: start; gap: 1.75rem;
  padding: 1.25rem var(--gutter) 2.5rem;
  background: var(--ink-900); overflow-y: auto;
  opacity: 0; transform: translateY(-6px); visibility: hidden;
  transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
@media (min-width: 64em) { .drawer { display: none; } }
.drawer__nav { display: grid; gap: 1.25rem; }
.drawer__group { display: grid; gap: 0.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.drawer__link {
  display: block; padding: 0.55rem 0;
  font-size: 1.6rem; font-weight: 600; font-stretch: 106%; letter-spacing: -0.015em; line-height: 1.15;
  text-decoration: none;
}
.drawer__link[aria-current] { color: var(--signal-hi); }
.drawer__sub { list-style: none; margin: 0.1rem 0 0.4rem; padding: 0; display: grid; gap: 0.1rem; }
.drawer__sub a {
  display: block; padding: 0.5rem 0 0.5rem 1rem;
  border-left: 1px solid var(--line-strong);
  color: var(--bone-2); font-size: 1.0625rem; text-decoration: none;
}
.drawer__sub a[aria-current] { color: var(--bone); border-left-color: var(--signal); }
.drawer__cta { display: grid; gap: 1rem; justify-items: start; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.drawer__email { color: var(--bone-2); text-decoration: none; }

/* ---------- Sekcje ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.band--paper { background: var(--paper); color: var(--ink-on-paper); }
.band--signal { background: var(--signal-field); color: var(--bone); }
.band--deep { background: var(--ink-950); }

.section-head {
  display: grid; gap: 1.25rem; align-items: end;
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.section-head p { font-size: var(--fs-lead); line-height: 1.5; color: var(--bone-2); max-width: 34em; }
.band--paper .section-head p { color: var(--ink-on-paper-2); }
@media (min-width: 64em) {
  .section-head { grid-template-columns: 7fr 5fr; gap: var(--gap); }
  .section-head p { padding-bottom: 0.3em; }
}

/* ---------- Hero (arkusz rysunkowy) ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 5.5rem));
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.hero__top { display: grid; gap: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.hero__title { max-width: 13em; }
.hero__row { display: grid; gap: 1.5rem; }
@media (min-width: 64em) {
  .hero__row { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
  .hero__row .lead { grid-column: 1 / 8; max-width: 32em; }
  .hero__row .actions { grid-column: 9 / -1; }
}

.hero__drawing {
  position: relative;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(1.25rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image: var(--grid-dark);
  background-position: center top;
}
.hero__drawing::before, .hero__drawing::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line);
}
.hero__drawing::before { left: -1px; }
.hero__drawing::after { right: -1px; }
@media (max-width: 63.99em) {
  .hero__drawing::before, .hero__drawing::after { display: none; }
}

.titleblock {
  display: grid; grid-template-columns: auto auto;
  width: max-content; max-width: 100%;
  margin: 1.25rem 0 0 auto;
  border: 1px solid var(--line-strong); background: var(--ink-900);
  font-size: 0.72rem; font-weight: 600; font-stretch: 80%; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bone-2);
}
.titleblock > * { padding: 0.45rem 0.75rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.titleblock > :nth-child(2n) { border-right: 0; }
.titleblock > :nth-last-child(-n + 2) { border-bottom: 0; }
.titleblock strong { color: var(--bone); font-weight: 700; }
@media (min-width: 64em) {
  .titleblock { position: absolute; right: 0; bottom: 0; margin: 0; border-right: 0; border-bottom: 0; }
}
@media (max-width: 63.99em) {
  .titleblock { width: 100%; grid-template-columns: 1fr 1fr; }
  .titleblock > * { white-space: normal; }
}

/* ---------- Schematy (SVG) ---------- */
.schem { display: block; width: 100%; height: auto; font-family: var(--font); overflow: visible; }
.schem--landscape { display: none; }
.schem--portrait { display: block; max-width: 24rem; margin-inline: auto; }
@media (min-width: 64em) {
  .schem--landscape { display: block; }
  .schem--portrait { display: none; }
}
.schem text {
  font-size: 12px; font-weight: 600; font-stretch: 80%;
  letter-spacing: 0.08em; text-transform: uppercase;
  fill: var(--bone-2); paint-order: stroke;
}
.schem--portrait text { font-size: 11px; }
.schem .t-muted { fill: var(--bone-3); }
.schem .t-signal { fill: var(--signal-hi); }
/* Wolne podpisy (np. „Zdarzenie?”) dostają obwódkę w kolorze planszy, która odcina linie przepływu pod tekstem. */
.schem .t-muted, .schem .t-signal { stroke: var(--ink-900); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke fill; }
.schem .node { cursor: pointer; }
.schem a.node { outline: none; }
.schem .node rect, .schem .node polygon {
  fill: var(--ink-850); stroke: var(--line-strong); stroke-width: 1;
  transition: stroke 0.3s, fill 0.3s;
}
.schem .node text { fill: var(--bone); }
.schem .node.is-hot rect, .schem .node:hover rect, .schem a.node:focus-visible rect,
.schem .node.is-hot polygon, .schem .node:hover polygon { stroke: var(--signal); fill: var(--ink-800); }
.schem .node .glyph { fill: none; stroke: var(--bone-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.schem .node.is-hot .glyph, .schem .node:hover .glyph { stroke: var(--signal-hi); }
.schem .frame { fill: none; stroke: var(--line); stroke-width: 1; }
.schem .frame--solid { fill: var(--ink-900); stroke: var(--line-strong); }
.schem .flow {
  fill: none; stroke: var(--line-strong); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.3s, stroke-width 0.3s;
}
.schem .flow--manual { stroke-dasharray: 3 7; stroke: var(--bone-3); }
.schem .flow--signal { stroke: var(--signal); }
.schem .flow.is-hot { stroke: var(--signal); stroke-width: 2; }
.schem .bus { stroke-dasharray: 2 6; stroke: var(--bone-3); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.schem .port { fill: var(--ink-900); stroke: var(--line-strong); stroke-width: 1.5; }
.schem .pulse { fill: var(--signal); }
.schem .led { fill: var(--signal); }
.schem .mark { fill: none; stroke: var(--signal); stroke-width: 1.5; stroke-linecap: round; }
.schem .detail { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.schem .detail--fill { fill: var(--ink-700); stroke: none; opacity: 0.8; }

/* rysowanie ploterem (tylko z JS, wyłączone przy reduced-motion) */
.js .schem[data-draw] .flow, .js .schem[data-draw] .frame, .js .schem[data-draw] .bus, .js .schem[data-draw] .mark {
  stroke-dasharray: var(--len, 2400); stroke-dashoffset: var(--len, 2400);
}
.js .schem[data-draw] .bus { stroke-dasharray: var(--len, 2400); }
.js .schem[data-draw].is-drawn .flow, .js .schem[data-draw].is-drawn .frame, .js .schem[data-draw].is-drawn .mark {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s var(--ease-out) var(--d, 0s), stroke 0.3s, stroke-width 0.3s;
}
.js .schem[data-draw].is-drawn .bus { stroke-dasharray: 2 6; stroke-dashoffset: 0; transition: stroke-dasharray 0.6s var(--d, 0.8s); }
.js .schem[data-draw].is-drawn .flow--manual { stroke-dasharray: 3 7; transition: stroke-dasharray 0.4s var(--d, 0.6s), stroke-dashoffset 1.5s var(--ease-out) var(--d, 0s); }
.js .schem[data-draw] .node, .js .schem[data-draw] .detail, .js .schem[data-draw] .detail--fill, .js .schem[data-draw] .t-muted, .js .schem[data-draw] .t-signal {
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.7s var(--ease-out) var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}
.js .schem[data-draw].is-drawn .node, .js .schem[data-draw].is-drawn .detail, .js .schem[data-draw].is-drawn .detail--fill, .js .schem[data-draw].is-drawn .t-muted, .js .schem[data-draw].is-drawn .t-signal {
  opacity: 1; transform: none;
}
.js .schem[data-draw].is-drawn .detail--fill { opacity: 0.8; }
.js .schem .pulse { opacity: 0; }
.js .schem.is-drawn .pulse {
  animation: pulse var(--dur, 7s) linear infinite var(--delay, 0s);
}
.js .schem.is-offscreen .pulse { animation-play-state: paused; }
@keyframes pulse {
  0% { offset-distance: 0%; opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.figure {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background-image: var(--grid-dark); background-position: center;
}
.figure--paper { border-color: var(--line-paper); background-image: var(--grid-paper); }
@media (max-width: 47.99em) {
  /* Na telefonie rysunek idzie od krawędzi do krawędzi, a etykiety rosną (jednostki viewBox 560 px). */
  .figure { padding: 0.75rem 0.5rem; margin-inline: calc(-1 * var(--gutter)); border-left: 0; border-right: 0; border-radius: 0; }
  .figure .schem text { font-size: 17px; letter-spacing: 0; font-stretch: 66%; }
}

/* ---------- Odsłanianie treści ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px); filter: blur(5px);
  clip-path: inset(0 0 14% 0);
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out), filter 0.8s var(--ease-out), clip-path 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 0 0); }

/* ---------- Zaufali nam ---------- */
.trusted { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(4rem, 3rem + 4vw, 7rem); }
.trusted__row { display: grid; gap: 1.5rem var(--gap); align-items: center; }
@media (min-width: 64em) { .trusted__row { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
.trusted__head { display: grid; gap: 0.5rem; }
.trusted__head h2 { font-size: var(--fs-h3); }
.trusted__head p { color: var(--bone-2); max-width: 22em; }
/* Plansze logotypów: stała wysokość planszy i znaku. Bez aspect-ratio i procentowych max-width/max-height,
   bo Safari wliczał wtedy pełną szerokość obrazka do minimum kolumny i rozpychał stronę na telefonie. */
.plates {
  --plate-h: clamp(6.5rem, 4rem + 4vw, 7.75rem);
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
}
@media (max-width: 36em) { .plates { grid-template-columns: minmax(0, 1fr); } }
.plate {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; height: var(--plate-h); padding: 0 1.25rem; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 0.3s;
}
.plate:hover { border-color: var(--bone); }
.plate--paper { background: var(--paper); }
.plate--black { background: #000; }
.plate img {
  flex: none; width: auto; max-width: 100%;
  height: calc(var(--plate-h) * var(--logo-scale, 0.4)); object-fit: contain;
}
.plate--miknet { --logo-scale: 0.54; }

/* ---------- Tabela diagnostyczna (Z jakimi wyzwaniami pomagamy) ---------- */
.diagnostic { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-paper-strong); }
.diagnostic__head, .diagnostic__row { display: grid; gap: 0.9rem var(--gap); border-bottom: 1px solid var(--line-paper); }
.diagnostic__head { display: none; padding: 0.8rem 0; }
.diagnostic__row { padding: clamp(1.4rem, 1rem + 1.5vw, 2.1rem) 0; }
@media (min-width: 48em) {
  .diagnostic__head { display: grid; }
  .diagnostic__head, .diagnostic__row { grid-template-columns: 7fr 5fr; }
}
.diagnostic__symptom {
  font-size: var(--fs-h3); font-weight: 560; font-stretch: 104%;
  line-height: 1.2; letter-spacing: -0.015em; max-width: 19em;
}
.diagnostic__fix { display: grid; gap: 0.45rem; align-content: start; }
.diagnostic__fix p { color: var(--ink-on-paper-2); max-width: 30em; }

/* ---------- Filary (Co możemy zbudować) ---------- */
.pillars { border-top: 1px solid var(--line); }
.pillar {
  display: grid; gap: 2rem var(--gap); align-items: center;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 64em) {
  .pillar { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pillar__text { grid-column: 1 / 7; }
  .pillar__figure { grid-column: 8 / -1; }
}
.pillar__text { display: grid; gap: 1.25rem; align-content: start; }
.pillar__text > p { color: var(--bone-2); max-width: 34em; }
.pillar__text .link-arrow { margin-top: 0.25rem; }

.uses { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.6rem; max-width: 34em; }
.uses li { position: relative; padding-left: 1.6rem; }
.uses li::before {
  content: ''; position: absolute; left: 0; top: 0.8em;
  width: 0.9rem; height: 1.5px; border-radius: 1px; background: var(--signal);
}
.band--paper .uses li::before { background: var(--signal-deep); }

/* ---------- Przykładowe zastosowania ---------- */
.scenarios { border-top: 1px solid var(--line-paper-strong); }
.scenarios__head { display: none; gap: var(--gap); padding: 0.8rem 0; border-bottom: 1px solid var(--line-paper); }
.scenario {
  display: grid; gap: 1.5rem var(--gap);
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.25rem) 0;
  border-bottom: 1px solid var(--line-paper);
}
@media (min-width: 64em) {
  .scenarios__head { display: grid; }
  .scenarios__head, .scenario { grid-template-columns: 3.5fr 5.5fr 3fr; }
  .scenarios .scenario__tag { display: none; }
}
.scenario__tag { display: block; margin-bottom: 0.6rem; }
.scenario__title { font-size: var(--fs-h3); max-width: 12em; }
.scenario__situation { margin-top: 0.75rem; color: var(--ink-on-paper-2); max-width: 26em; }
.scenario__result p { font-weight: 500; max-width: 24em; }

.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.flow-steps li {
  position: relative; padding: 0.9rem 1rem;
  border: 1px solid var(--line-paper-strong); border-radius: var(--radius);
  background: var(--paper); font-size: var(--fs-small); line-height: 1.45;
}
.flow-steps li + li::before {
  content: ''; position: absolute; left: 1.25rem; top: -1.1rem;
  width: 1.5px; height: 1.1rem; background: var(--ink-on-paper);
}
.flow-steps li + li::after {
  content: ''; position: absolute; left: calc(1.25rem - 3.5px); top: -0.6rem;
  width: 6px; height: 6px; border-right: 1.5px solid var(--ink-on-paper); border-bottom: 1.5px solid var(--ink-on-paper);
  transform: rotate(45deg);
}
@media (min-width: 48em) {
  .flow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
  .flow-steps li + li::before { left: -1.5rem; top: 50%; width: 1.5rem; height: 1.5px; transform: translateY(-50%); }
  .flow-steps li + li::after { left: -0.65rem; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}
.band--paper .flow-steps li { background: #fff; }
.flow-steps li { color: var(--ink-on-paper); }
.flow-steps--dark li { background: var(--ink-850); color: var(--bone); border-color: var(--line-strong); }
.flow-steps--dark li + li::before { background: var(--bone-2); }
.flow-steps--dark li + li::after { border-color: var(--bone-2); }

/* ---------- Jak pracujemy ---------- */
.process__rail {
  --progress: 0;
  position: relative; display: grid; gap: 2.5rem var(--gap);
  padding-left: 1.5rem;
}
.process__rail::before {
  content: ''; position: absolute; left: 4.5px; top: 0.6rem; bottom: 0; width: 1.5px; background: var(--line);
}
.process__rail::after {
  content: ''; position: absolute; left: 4.5px; top: 0.6rem; bottom: 0; width: 1.5px; background: var(--signal);
  transform-origin: top; transform: scaleY(var(--progress));
  transition: transform 0.5s var(--ease-out);
}
.phase { position: relative; display: grid; gap: 0.8rem; align-content: start; }
.phase::before {
  content: ''; position: absolute; left: -1.5rem; top: 0.6rem; z-index: 1;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-900); border: 1.5px solid var(--bone);
}
.phase__num { font-size: var(--fs-label); font-weight: 600; font-stretch: 80%; letter-spacing: 0.1em; color: var(--bone-3); }
.phase h2, .phase h3 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); font-weight: 600; font-stretch: 106%; letter-spacing: -0.015em; line-height: 1.1; }
.phase dl { margin: 0; display: grid; gap: 0.75rem; }
.phase dt { font-size: var(--fs-label); font-weight: 600; font-stretch: 80%; letter-spacing: 0.09em; text-transform: uppercase; color: var(--bone-3); }
.phase dd { margin: 0.2rem 0 0; color: var(--bone-2); }
@media (min-width: 48em) {
  .process__rail { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-left: 0; padding-top: 1.75rem; }
  .process__rail::before, .process__rail::after { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1.5px; }
  .process__rail::after { transform-origin: left; transform: scaleX(var(--progress)); }
  .phase::before { left: 0; top: calc(-1.75rem - 4.25px); }
}

/* ---------- O DeaLAB ---------- */
.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; gap: 2.5rem var(--gap); }
@media (min-width: 64em) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .about__text { grid-column: 1 / 8; }
  .about__aside { grid-column: 9 / -1; }
}
.about__text { display: grid; gap: 1.5rem; }
.about__statement { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.012em; max-width: 26em; }
.about__text > p:not(.about__statement) { color: var(--bone-2); max-width: 36em; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; }
.principles li { padding: 1.1rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.3rem; }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles strong { font-weight: 600; font-stretch: 104%; font-size: 1.1rem; }
.principles span { color: var(--bone-2); font-size: var(--fs-small); }
.band--paper .principles li { border-color: var(--line-paper); }
.band--paper .principles span { color: var(--ink-on-paper-2); }

/* ---------- Pole CTA ---------- */
.cta-field { padding-block: var(--section); }
.cta-field__inner { display: grid; gap: 2.25rem var(--gap); align-items: center; }
@media (min-width: 64em) { .cta-field__inner { grid-template-columns: 7fr 5fr; } }
.cta-field__text { display: grid; gap: 1.25rem; }
.cta-field h2 { max-width: 12em; }
.cta-field p { font-size: var(--fs-lead); line-height: 1.5; max-width: 30em; color: var(--signal-field-text); }
.cta-field__actions { display: grid; gap: 1.1rem; justify-items: start; }
.cta-field__email {
  font-size: var(--fs-h3); font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em;
  text-decoration-thickness: 2px; text-decoration-color: rgba(242, 239, 230, 0.45); text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.cta-field__email:hover { text-decoration-color: currentColor; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink-950); border-top: 1px solid var(--line); padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 2rem; }
.site-footer__grid { display: grid; gap: 2.5rem var(--gap); }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
/* 768–1279 px: logo z opisem w osobnym rzędzie, pod nimi trzy równe kolumny (cztery byłyby za wąskie). */
@media (min-width: 48em) and (max-width: 79.99em) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 30em); align-items: center; column-gap: 2.5rem; }
}
.site-footer__brand { display: grid; gap: 1.25rem; align-content: start; }
.site-footer__brand img { height: 3.4rem; width: auto; }
.site-footer__brand p { color: var(--bone-2); max-width: 24em; font-size: var(--fs-small); }
.site-footer__col h2 {
  font-size: var(--fs-label); font-weight: 600; font-stretch: 80%;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--bone-3);
  margin-bottom: 1rem;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer__col a { color: var(--bone-2); text-decoration: none; }
.site-footer__col a:hover { color: var(--bone); text-decoration: underline; }
.site-footer__email { font-weight: 600; color: var(--bone) !important; overflow-wrap: anywhere; }
.site-footer__note { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--bone-3); max-width: 22em; }
.site-footer__legal { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--bone-2); max-width: 24em; }
.site-footer__todo { color: var(--signal-hi); }
.site-footer__address { margin-top: 1rem; font-style: normal; font-size: var(--fs-small); line-height: 1.6; color: var(--bone-2); }
.site-footer__bottom p { margin: 0; }
.site-footer__registry { margin-top: 0.9rem; font-size: 0.8125rem; line-height: 1.6; color: var(--bone-3); max-width: 72em; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--bone-3);
}

/* ---------- Podstrony ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 6rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.page-hero__grid { display: grid; gap: 2.5rem var(--gap); align-items: center; }
@media (min-width: 64em) {
  .page-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .page-hero__text { grid-column: 1 / 7; }
  .page-hero__figure { grid-column: 8 / -1; }
  .page-hero__text--wide { grid-column: 1 / 10; }
}
.page-hero__text { display: grid; gap: 1.5rem; }
.page-hero h1 { max-width: 11em; }
.page-hero--tight { padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.page-hero .actions { margin-top: 0.5rem; }

.spec { margin: 0; border-top: 1px solid var(--line); }
.spec__row { display: grid; gap: 0.5rem var(--gap); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48em) { .spec__row { grid-template-columns: 4fr 8fr; } }
.spec dt { font-size: 1.25rem; font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.25; }
.spec dd { margin: 0; color: var(--bone-2); max-width: 40em; }
.band--paper .spec { border-color: var(--line-paper-strong); }
.band--paper .spec__row { border-color: var(--line-paper); }
.band--paper .spec dd { color: var(--ink-on-paper-2); }

.symptoms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-paper-strong); }
.symptoms li {
  position: relative; padding: 1.1rem 0 1.1rem 2rem; border-bottom: 1px solid var(--line-paper);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em;
}
.symptoms li::before {
  content: ''; position: absolute; left: 0; top: calc(1.1rem + 0.62em);
  width: 1rem; height: 1.5px; border-radius: 1px; background: var(--signal-deep);
}

.two-col { display: grid; gap: 2.5rem var(--gap); }
@media (min-width: 64em) {
  .two-col { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; }
  .two-col__main { grid-column: 1 / 8; }
  .two-col__aside { grid-column: 9 / -1; }
  .two-col--lead .two-col__aside { grid-column: 1 / 5; }
  .two-col--lead .two-col__main { grid-column: 6 / -1; }
}
.two-col__aside { display: grid; gap: 1.25rem; align-content: start; }

.solution-list { border-top: 1px solid var(--line); }
.solution-list__row {
  display: grid; gap: 1rem var(--gap); padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48em) { .solution-list__row { grid-template-columns: 5fr 7fr; } }
.solution-list__row h2, .solution-list__row h3 { font-size: var(--fs-h3); }
.solution-list__row p { color: var(--bone-2); max-width: 34em; }
.solution-list__body { display: grid; gap: 1rem; }

.related { display: grid; gap: var(--gap); }
@media (min-width: 48em) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.related a {
  display: grid; gap: 0.35rem; padding: 1.25rem 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color 0.3s, background-color 0.3s;
}
.related a:hover { border-color: var(--signal); background: var(--ink-850); }
.related strong { font-weight: 600; font-stretch: 104%; font-size: 1.15rem; }
.related span { color: var(--bone-2); font-size: var(--fs-small); }

.prose { display: grid; gap: 1.1rem; max-width: 38em; }
.prose p { color: var(--bone-2); }
.prose strong { color: var(--bone); font-weight: 600; }
.band--paper .prose p { color: var(--ink-on-paper-2); }
.band--paper .prose strong { color: var(--ink-on-paper); }

/* ---------- Formularz ---------- */
.form { display: grid; gap: 1.5rem; }
.form__fields { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 48em) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field__optional { font-weight: 400; color: var(--bone-3); }
.field__hint { font-size: 0.875rem; color: var(--bone-3); }
.field input, .field textarea {
  width: 100%; margin: 0;
  font: inherit; color: var(--bone);
  background: var(--ink-850); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.85rem 1rem; caret-color: var(--signal);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--bone-3); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(63, 140, 255, 0.28);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--alert); }
.field__error { font-size: 0.875rem; color: var(--alert); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: grid; gap: 1rem; justify-items: start; }
.form__legal { font-size: 0.875rem; color: var(--bone-3); max-width: 36em; }
.form__status { padding: 1rem 1.15rem; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.form__status[hidden] { display: none; }
.form__status--ok { border-color: var(--signal); }
.form__status--error { border-color: var(--alert); }
.form__status a { color: var(--signal-hi); }

.contact-aside { display: grid; gap: 1.5rem; align-content: start; }
.contact-aside__block { display: grid; gap: 0.6rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.contact-aside__block h2 { font-size: 1.15rem; }
.contact-aside__block p, .contact-aside__block li { color: var(--bone-2); }
.contact-aside__email { font-size: var(--fs-h3); font-weight: 600; font-stretch: 104%; letter-spacing: -0.01em; text-decoration: none; color: var(--signal-hi); overflow-wrap: anywhere; }
.contact-aside__email:hover { text-decoration: underline; }
.contact-aside ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }

/* ---------- Dopasowanie do monitorów ----------
   Laptopy (np. 15,6" 1920×1080 ze skalowaniem 125–150%) mają niskie okno przeglądarki, ok. 600–750 px.
   Na desktopie hasło, nagłówki i odstępy biorą pod uwagę także wysokość okna, żeby pierwszy ekran
   zawsze pokazywał hasło, przyciski i początek schematu. Przy oknie ok. 950 px wysokości
   (monitor 1920×1080) wartości są takie same jak wcześniej. */
@media (min-width: 64em) {
  :root {
    --fs-display: clamp(2.5rem, min(1rem + 4.9vw, 8.8vh), 5.25rem);
    --fs-h1: clamp(2.5rem, min(1.3rem + 3.6vw, 8vh), 4.75rem);
    --fs-h2: clamp(2rem, min(1.3rem + 2.8vw, 7vh), 3.75rem);
    --section: clamp(5rem, min(3.5rem + 6vw, 16vh), 9.5rem);
  }
  .hero { padding-top: calc(var(--header-h) + clamp(2rem, min(1.5rem + 4vw, 23.6vh - 8.5rem), 5.5rem)); }
  .hero__top { gap: clamp(1.25rem, min(1rem + 2vw, 4.6vh), 2.75rem); }
  .hero__drawing { margin-top: clamp(1.5rem, min(2rem + 4vw, 20vh - 6.875rem), 5rem); }
  .page-hero { padding-top: calc(var(--header-h) + clamp(2rem, min(2rem + 5vw, 12vh - 1rem), 6rem)); }
}

/* 1024–1439 px: schematy renderują się mniejsze, więc ich etykiety są większe. */
@media (min-width: 64em) and (max-width: 89.99em) {
  .figure .schem text { font-size: 13px; font-stretch: 75%; letter-spacing: 0.04em; }
}
@media (min-width: 64em) and (max-width: 74.99em) {
  .schem--landscape text { font-size: 13.5px; letter-spacing: 0.05em; }
}

/* 1024–1279 px: schemat filaru i podstrony zajmuje połowę szerokości,
   a kroki „Przykładowych zastosowań” idą w pionie zamiast trzech wąskich kolumn. */
@media (min-width: 64em) and (max-width: 79.99em) {
  .pillar__text, .page-hero__text:not(.page-hero__text--wide) { grid-column: 1 / 7; padding-right: 1.5rem; }
  .pillar__figure, .page-hero__figure { grid-column: 7 / -1; }
  .scenario .flow-steps { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .scenario .flow-steps li + li::before { left: 1.25rem; top: -1.1rem; width: 1.5px; height: 1.1rem; transform: none; }
  .scenario .flow-steps li + li::after { left: calc(1.25rem - 3.5px); top: -0.6rem; transform: rotate(45deg); }
}

/* Duże monitory (szersze niż 1920 px): cały układ skaluje się proporcjonalnie (do 19 px bazowo),
   zamiast zostawiać wąską kolumnę pośrodku. Do 1920 px nic się nie zmienia. */
@media (min-width: 120.0625em) {
  html { font-size: clamp(100%, 0.8333vw, 118.75%); }
}

/* ---------- Ruch ograniczony ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; clip-path: none; }
  .js .schem[data-draw] .flow, .js .schem[data-draw] .frame, .js .schem[data-draw] .mark { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .schem[data-draw] .bus { stroke-dasharray: 2 6; stroke-dashoffset: 0; }
  .js .schem[data-draw] .flow--manual { stroke-dasharray: 3 7; }
  .js .schem[data-draw] .node, .js .schem[data-draw] .detail, .js .schem[data-draw] .detail--fill, .js .schem[data-draw] .t-muted, .js .schem[data-draw] .t-signal { opacity: 1; transform: none; }
  .js .schem .pulse { display: none; }
  .process__rail::after { transform: none; }
  .btn:hover, .btn:hover .icon, .link-arrow:hover .icon { transform: none; }
}
