/* =====================================================================
   DMYTRO.DEV — styl "dokumentu technicznego":
   masthead z grubą linią, pasek meta, gigantyczna typografia Archivo,
   sekcje jako FIG. 0X z włosowymi liniami, projekty jako okno terminala.
   ===================================================================== */

/* fallbacki dopasowane metrycznie — swap fontów nie przesuwa layoutu (CLS 0) */
@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial');
  size-adjust: 101%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'JetBrains Mono Fallback';
  src: local('Consolas'), local('Courier New');
  size-adjust: 109%;
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
}

:root,
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0e0b;
  --panel: #0a0d0a;
  --panel-2: #0e120e;
  --footer: #070a07;
  --text: #ecefe8;
  --text-2: #cfd6cd;
  --muted: #98a298;      /* 7.4:1 na --bg */
  --dim: #8a938a;        /* 6.2:1 */
  --dim-2: #7b857c;      /* 5.2:1 — najmniejsze etykiety wciąż AA */
  --faint: #5d675e;      /* tylko dekoracja / tekst nieistotny */
  --ghost: #2a322a;      /* wielkie cyfry w tle — czysta dekoracja */
  --accent: #2ce8a0;
  --accent-hi: #7ff0c4;
  --accent-ink: #08110c;
  --accent-wash: rgba(44, 232, 160, 0.06);
  --amber: #d7a44a;
  --rule: rgba(255, 255, 255, 0.14);
  --rule-soft: rgba(255, 255, 255, 0.08);
  --rule-row: rgba(255, 255, 255, 0.06);
  --shot-bg: #101410;
}

/* jasny motyw = ta sama typografia na "papierze drukarskim" */
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f4f5f1;
  --panel: #eef0ea;
  --panel-2: #e6e9e0;
  --footer: #e9ebe4;
  --text: #12160f;
  --text-2: #2c3329;
  --muted: #4f584d;
  --dim: #5c655a;
  --dim-2: #6b746a;
  --faint: #98a095;
  --ghost: #d7dbd2;
  --accent: #0e7a4e;
  --accent-hi: #0a5c3a;
  --accent-ink: #ffffff;
  --accent-wash: rgba(14, 122, 78, 0.07);
  --amber: #8a5a09;
  --rule: rgba(0, 0, 0, 0.18);
  --rule-soft: rgba(0, 0, 0, 0.1);
  --rule-row: rgba(0, 0, 0, 0.07);
  --shot-bg: #ffffff;
}

:root {
  --display: 'Archivo', 'Archivo Fallback', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, monospace;
  --pad: 34px;
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 2px;
  transition: top 0.15s;
}
.skip-link:focus { top: 10px; color: var(--accent-ink); }

/* ---------- RAMA DOKUMENTU ---------- */
.sheet {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  border-left: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
  min-height: 100vh;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
  z-index: 60;
  will-change: transform;
}

/* ---------- MASTHEAD ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--pad) 16px;
  border-bottom: 2px solid var(--text);
}
.mast-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text);
}
.mast-sub {
  font-size: 10px;
  color: var(--dim-2);
  letter-spacing: 0.24em;
  margin-top: 5px;
}
.mast-right { display: flex; align-items: center; gap: 20px; }

.nav-links { display: flex; gap: 18px; font-size: 11px; letter-spacing: 0.04em; }
.nav-links a { color: var(--dim); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

/* podkreślenie rysowane od lewej */
.u-link { position: relative; }
.u-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.28s ease;
}
.u-link:hover::after,
.u-link:focus-visible::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang-toggle {
  display: flex;
  gap: 2px;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--text); }
.lang-opt { color: var(--dim-2); }
.lang-opt.active { color: var(--accent); font-weight: 700; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 27px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
:root[data-theme='dark'] .theme-icon-moon { display: none; }
:root[data-theme='light'] .theme-icon-sun { display: none; }

.nav-toggle {
  display: none;
  width: 30px; height: 27px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-icon { display: block; width: 13px; }
.nav-toggle-icon span { display: block; height: 1px; background: currentColor; margin: 3px 0; }

/* ---------- PASEK META ---------- */
.meta-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 8px var(--pad);
  border-bottom: 1px solid var(--rule);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim-2);
}
.meta-strip .live { color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.meta-strip .live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2.4s steps(1) infinite;
}

/* ---------- GIGANTYCZNY NAGŁÓWEK ---------- */
.headline { padding: 38px var(--pad) 14px; }
.headline h1 { margin: 0; }
.hl-line {
  display: block;
  font-family: var(--display);
  font-size: clamp(50px, 11.2vw, 130px);
  letter-spacing: -0.04em;
  color: var(--text);
}
.hl-solid { font-weight: 900; line-height: 0.86; }
.hl-solid .dot { color: var(--accent); }
/* kontur: widoczny "tusz" to obrys, więc color = kolor obrysu (spełnia 3:1
   dla dużego tekstu), a wypełnienie znika przez text-fill-color */
.hl-outline {
  font-weight: 400;
  line-height: 0.9;
  color: var(--dim);
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--dim);
}
@supports not (-webkit-text-stroke: 1px black) {
  .hl-outline { -webkit-text-fill-color: currentColor; color: var(--dim); }
}
.hl-note {
  font-size: 10px;
  color: var(--dim-2);
  letter-spacing: 0.2em;
  text-align: right;
  margin-top: 10px;
}

/* ---------- LEAD + DEMO ---------- */
.lead-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border-top: 1px solid var(--rule);
}
.lead-col { padding: 26px 30px 30px var(--pad); border-right: 1px solid var(--rule); }
.lead-text {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.lead-text::before { content: '— '; font-weight: 800; color: var(--accent); }
.cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  padding: 12px 20px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-hi); color: var(--accent-ink); }
.text-link { font-family: var(--mono); font-size: 12px; color: var(--text-2); padding: 12px 4px; }
.text-link:hover { color: var(--accent); }

.demo-col { padding: 26px var(--pad) 30px 30px; display: flex; flex-direction: column; gap: 12px; }
.fig-static { font-size: 10px; letter-spacing: 0.2em; color: var(--dim-2); }

/* ---------- NAGŁÓWKI SEKCJI: FIG. 0X ---------- */
main { counter-reset: fig 2; }
main > section { counter-increment: fig; border-top: 1px solid var(--rule); }

.fig-head { display: flex; align-items: center; gap: 16px; padding: 26px var(--pad) 0; }
.fig-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--dim-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.fig-label::before { content: 'FIG. 0' counter(fig) ' — '; }
.fig-rule { flex: 1; height: 1px; background: var(--rule); }
.fig-sub { font-size: 10px; color: var(--faint); white-space: nowrap; letter-spacing: 0.08em; }

.section-lead {
  padding: 0 var(--pad);
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 640px;
}

/* ---------- PROJEKTY — okno terminala ---------- */
.terminal {
  margin: 18px var(--pad) 34px;
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 9px;
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--panel-2);
}
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--ghost); display: block; }
.term-title { font-size: 11px; color: var(--dim); }
.term-cmd { padding: 16px 18px 8px; font-size: 11px; color: var(--dim-2); }
.term-body { padding: 0 18px 14px; }
.term-end { padding: 12px 8px 4px; font-size: 11px; color: var(--faint); }
.caret {
  display: inline-block;
  width: 8px; height: 13px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}

/* wiersz projektu = rozwijany <details> */
.prow-item { border-bottom: 1px solid var(--rule-row); }
.prow {
  display: grid;
  /* wszystkie kolumny content-sized → długi status nie nachodzi na tagi */
  grid-template-columns: 24px 140px minmax(0, 1fr) max-content max-content;
  gap: 16px;
  align-items: center;
  padding: 12px 8px;
  font-size: 12.5px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.prow::-webkit-details-marker { display: none; }
.prow:hover { background: var(--accent-wash); padding-left: 14px; }
.prow-n { color: var(--faint); }
.prow-name { color: var(--accent); font-weight: 700; }
.prow-desc { color: var(--muted); }
.prow-stack { color: var(--dim); font-size: 11px; }
.prow-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  font-size: 10px;
  color: var(--dim-2);
  white-space: nowrap;
}
.prow-status .sdot { width: 6px; height: 6px; border-radius: 50%; background: var(--ghost); flex: none; }
.prow-status.up { color: var(--accent); }
.prow-status.up .sdot { background: var(--accent); animation: blink 2.4s steps(1) infinite; }
.prow-status.slow { color: var(--amber); }
.prow-status.slow .sdot { background: var(--amber); }
.prow-status.down .sdot { background: var(--faint); }

/* rozwinięty szczegół projektu */
.prow-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  padding: 6px 8px 22px;
  align-items: start;
}
.prow-shot {
  display: block;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  overflow: hidden;
  background: var(--shot-bg);
}
.prow-shot img {
  width: 100%;
  height: auto;            /* bez tego atrybut height="800" wygrywa z aspect-ratio */
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s var(--ease-out);
}
.prow-shot:hover img { transform: scale(1.03); }
.prow-facts { display: flex; flex-direction: column; gap: 12px; }
.prow-fact dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.prow-fact dd { font-size: 12.5px; line-height: 1.6; color: var(--text-2); }
.prow-links { display: flex; gap: 18px; padding-top: 4px; font-size: 11px; }
.prow-links a { color: var(--text-2); }
.prow-links a:hover { color: var(--accent); }

/* ---------- KOLUMNY (proces / stack / dostępność) ---------- */
.cols { display: grid; gap: 0; padding: 20px var(--pad) 34px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

.col-step { padding: 0 22px 0 0; border-right: 1px solid var(--rule-soft); }
.col-step:last-child { border-right: none; }
.col-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: var(--ghost);
  margin-bottom: 12px;
}
.col-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}
.col-title .slash { color: var(--accent); }
.col-desc { font-size: 11.5px; line-height: 1.6; color: var(--dim); text-wrap: pretty; }

.col-stack { padding: 16px 22px 16px 0; border-top: 1px solid var(--rule-soft); }
.col-cat {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}
.col-items { font-size: 13px; line-height: 1.6; color: var(--text-2); }

/* ---------- O MNIE ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 22px var(--pad) 36px;
}
.about-lead {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.about-body { font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.about-body strong { color: var(--text-2); font-weight: 700; }
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.fact-k { font-size: 10px; letter-spacing: 0.16em; color: var(--dim-2); text-transform: uppercase; }
.fact-v { font-size: 13px; color: var(--text); text-align: right; }

/* ---------- OPINIE ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote { border-left: 2px solid var(--accent); background: var(--panel); padding: 20px 22px; }
.quote blockquote {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 14px;
}
.q-name { display: block; font-size: 12px; color: var(--text-2); font-weight: 700; }
.q-role { display: block; font-size: 11px; color: var(--dim-2); }

/* ---------- KONTAKT ---------- */
.contact { border-top: 2px solid var(--text) !important; padding: 34px var(--pad) 30px; }
.contact-head {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 6.6vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 14px 0 20px;
}
.contact-head .dot { color: var(--accent); }
.contact-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.contact-sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; max-width: 460px; }
.mail-big {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(16px, 3vw, 26px);
  color: var(--accent);
  word-break: break-all;
}
.contact-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.avail { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--accent); }
.avail::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2.4s steps(1) infinite;
}
.useme {
  display: block;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  background: var(--panel);
  padding: 16px 20px;
  max-width: 440px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.useme:hover { transform: translateY(-2px); border-color: var(--accent); }
.cu-k { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); }
.cu-v { display: block; font-weight: 700; font-size: 15px; color: var(--text); margin: 7px 0 6px; }
.useme:hover .cu-v { color: var(--accent); }
.cu-sub { display: block; font-size: 12px; line-height: 1.55; color: var(--muted); }
.contact-links { display: flex; gap: 20px; font-size: 11px; }
.contact-links a { color: var(--text-2); }
.contact-links a:hover { color: var(--accent); }

/* ---------- STOPKA — pas przewijany ---------- */
.footer-marquee {
  border-top: 1px solid var(--rule-soft);
  overflow: hidden;
  padding: 11px 0;
  background: var(--footer);
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: marq 28s linear infinite;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.footer-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { opacity: 0.75; }

/* ---------- DEMO (booking.flow) ---------- */
.demo-box {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 9px;
  overflow: hidden;
}
.demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--panel-2);
}
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ghost); }
.demo-title { font-size: 11px; color: var(--dim); }
.booking-demo { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 16px 18px 18px; }
.booking-controls { display: flex; flex-direction: column; gap: 14px; }
.filter-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim-2);
  margin-bottom: 8px;
}
.service-options { display: flex; flex-direction: column; gap: 6px; }
.service-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.service-option small { color: var(--dim-2); font-size: 10.5px; }
.service-option:hover { border-color: var(--accent); color: var(--text); }
.service-option.is-selected { border-color: var(--accent); background: var(--accent-wash); color: var(--text); }
.service-option.is-selected small { color: var(--accent); }
.time-options { display: flex; flex-wrap: wrap; gap: 6px; }
.time-option {
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.time-option:hover { border-color: var(--accent); }
.time-option.is-selected { border-color: var(--accent); background: var(--accent-wash); color: var(--text); }
.demo-book-btn {
  padding: 11px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 2px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11.5px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.demo-book-btn:hover:not(:disabled) { transform: translateY(-2px); background: var(--accent-hi); }
.demo-book-btn:disabled { opacity: 0.55; cursor: default; }
.demo-note { font-size: 10.5px; line-height: 1.5; color: var(--dim-2); }

.booking-output { display: flex; flex-direction: column; }
.demo-req { font-size: 11.5px; color: var(--text-2); margin-bottom: 7px; word-break: break-all; }
.demo-req .method { color: var(--accent); font-weight: 700; margin-right: 8px; }
.demo-status { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--dim-2); margin-bottom: 14px; }
.demo-status .ok {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 2px;
}
.demo-status .ok.pending { background: var(--ghost); color: var(--dim); }
.flow-list { list-style: none; display: flex; flex-direction: column; }
.flow-step {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px solid var(--rule-row);
  transition: background 0.2s ease, opacity 0.2s ease;
}
.flow-index { font-size: 10px; color: var(--dim-2); }
.flow-copy strong { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-2); }
.flow-copy code { font-size: 10.5px; color: var(--dim); }
.flow-state { font-size: 10.5px; color: var(--dim); }
/* stan "czeka" oznaczamy kolorem, nie przezroczystością — opacity psuje kontrast */
.flow-step.is-waiting .flow-copy strong { color: var(--dim); }
.flow-step.is-active { background: var(--accent-wash); }
.flow-step.is-active .flow-state,
.flow-step.is-complete .flow-state { color: var(--accent); font-weight: 700; }
.payment-summary[hidden] { display: none; } /* display:flex nie może wygrać z [hidden] */
.payment-summary {
  margin-top: 14px;
  border: 1px solid var(--rule-soft);
  border-left: 2px solid var(--accent);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}
.payment-summary-title {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim-2);
  margin-bottom: 2px;
}
.payment-summary div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.payment-summary strong { color: var(--text); }

/* ---------- ANIMACJE ---------- */
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.js .anim { opacity: 0; animation: rise 0.5s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease-out, transform 0.3s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
  .marquee-track { animation: none; }
}

/* ---------- RESPONSYWNOŚĆ ---------- */
@media (max-width: 900px) {
  .lead-grid { grid-template-columns: 1fr; }
  .lead-col { border-right: none; border-bottom: 1px solid var(--rule); padding-right: var(--pad); }
  .demo-col { padding-left: var(--pad); }
  .cols-4, .cols-3 { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .prow-detail { grid-template-columns: 1fr; }
  .prow-shot { max-width: 420px; }
}

@media (max-width: 700px) {
  .booking-demo { grid-template-columns: 1fr; }
  .prow {
    grid-template-columns: 22px 1fr auto;
    grid-template-areas:
      'n name status'
      '. desc desc'
      '. stack stack';
    gap: 4px 12px;
    padding: 12px 6px;
  }
  .prow-n { grid-area: n; }
  .prow-name { grid-area: name; }
  .prow-status { grid-area: status; }
  .prow-desc { grid-area: desc; font-size: 12px; }
  .prow-stack { grid-area: stack; font-size: 10.5px; }
}

@media (max-width: 640px) {
  :root { --pad: 18px; }
  .masthead { padding: 14px var(--pad) 12px; flex-wrap: wrap; gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .mast-right { gap: 10px; }
  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--rule-soft);
  }
  .nav-links.is-open { display: flex; }
  .meta-strip { font-size: 9px; letter-spacing: 0.1em; }
  .headline { padding-top: 26px; }
  .cols-4, .cols-3 { grid-template-columns: 1fr; gap: 26px 0; }
  .col-step { padding-right: 0; border-right: none; }
  .terminal { margin: 16px var(--pad) 26px; }
  .term-body { padding: 0 10px 12px; }
  .contact-row { flex-direction: column; align-items: flex-start; }
}
