/* =====================================================================
   DMYTRO.DEV — miękki styl "inżyniera-freelancera":
   ciepłe tło, białe karty z cieniem i zaokrągleniami, Inter dla tekstu,
   mono tylko jako techniczny akcent (stack, etykiety, demo).
   ===================================================================== */

/* 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: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  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%;
}

/* jasny motyw (domyślny) — ciepły papier, białe karty */
:root,
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #faf9f6;
  --panel: #ffffff;
  --panel-2: #f2f1ea;
  --footer: #f2f1ea;
  --text: #191d17;
  --text-2: #333a31;
  --muted: #545c52;
  --dim: #61695f;
  --dim-2: #687067;
  --faint: #6c746a;
  --ghost: #e6e6de;
  /* przygaszona szałwiowa zieleń zamiast "kwaśnej" — spokojniej, mniej neonu */
  --accent: #46795f;
  --accent-hi: #365e4a;
  --accent-ink: #ffffff;
  --accent-wash: rgba(70, 121, 95, 0.08);
  --amber: #8a5f1e;
  --rule: rgba(25, 29, 23, 0.14);
  --rule-soft: rgba(25, 29, 23, 0.08);
  --rule-row: rgba(25, 29, 23, 0.06);
  --shot-bg: #f6f6f1;
  --glass: rgba(250, 249, 246, 0.86);
  --shadow-card: 0 1px 2px rgba(25, 29, 23, 0.04), 0 18px 44px -26px rgba(25, 29, 23, 0.22);
  --shadow-pop: 0 2px 6px rgba(25, 29, 23, 0.06), 0 24px 56px -28px rgba(25, 29, 23, 0.3);
}

/* ciemny motyw — miękka zieleń zamiast "hakerskiej" czerni */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #151815;
  --panel: #1b1f1b;
  --panel-2: #21251f;
  --footer: #111411;
  --text: #edefe9;
  --text-2: #ccd3c9;
  --muted: #9aa398;
  --dim: #8b948a;
  --dim-2: #7d867d;
  --faint: #757f76;
  --ghost: #2c332c;
  /* miękka szałwia zamiast neonowej mięty */
  --accent: #8fc4a6;
  --accent-hi: #aed6bf;
  --accent-ink: #14201a;
  --accent-wash: rgba(143, 196, 166, 0.09);
  --amber: #cfa45e;
  --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: #171b17;
  --glass: rgba(21, 24, 21, 0.86);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 18px 44px -26px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 56px -28px rgba(0, 0, 0, 0.7);
}

:root {
  --display: 'Archivo', 'Archivo Fallback', system-ui, sans-serif;
  --sans: 'Inter', 'Inter Fallback', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, monospace;
  --pad: 34px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;
  --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); }
main > section { scroll-margin-top: 92px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: clip;
  -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 {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.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: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: top 0.15s;
}
.skip-link:focus { top: 10px; color: var(--accent-ink); }

/* ---------- RAMA STRONY ---------- */
.sheet {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

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

/* ---------- MASTHEAD ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--pad) 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.mast-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--text);
}
.mast-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim-2);
  letter-spacing: 0.14em;
  margin-top: 6px;
}
.mast-right { display: flex; align-items: center; gap: 20px; }

.nav-links { display: flex; gap: 20px; font-size: 13.5px; font-weight: 500; }
.nav-links a { color: var(--muted); }
.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: 2px;
  border-radius: 999px;
  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: 999px;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.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: 31px; height: 31px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.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: 34px; height: 31px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  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: 2px; border-radius: 999px; background: currentColor; margin: 3px 0; }

/* ---------- PASEK META ---------- */
.meta-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 10px var(--pad);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim-2);
}
.meta-strip .live { color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.meta-strip .live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ---------- NAGŁÓWEK HERO ---------- */
.headline { padding: 46px var(--pad) 10px; }
.headline h1 { margin: 0; }
.hl-line {
  display: block;
  font-family: var(--display);
  font-size: clamp(44px, 9.6vw, 108px);
  letter-spacing: -0.035em;
  color: var(--text);
}
.hl-solid { font-weight: 900; line-height: 0.92; }
.hl-solid .dot { color: var(--accent); }
/* druga linia: pełny kolor akcentu zamiast "drucianego" konturu */
.hl-outline {
  font-weight: 900;
  line-height: 0.98;
  color: var(--accent);
  -webkit-text-fill-color: currentColor;
}
.hl-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim-2);
  letter-spacing: 0.08em;
  margin-top: 16px;
}

/* ---------- LEAD ---------- */
.hero-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px var(--pad) 44px;
}
.hero-intro .lead-text { max-width: 640px; margin-bottom: 0; }
.lead-text {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-card); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-hi); color: var(--accent-ink); box-shadow: var(--shadow-pop); }
.text-link { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--text-2); padding: 12px 4px; }
.text-link:hover { color: var(--accent); }

/* ---------- NAGŁÓWKI SEKCJI ---------- */
main > section { padding-top: 26px; }

.fig-head { display: flex; align-items: baseline; gap: 16px; padding: 26px var(--pad) 0; }
.fig-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--accent-wash);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  padding: 5px 13px;
}
.fig-rule { flex: 1; height: 1px; background: none; }
.fig-sub { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; letter-spacing: 0.02em; }

/* ---------- FEATURED CASE ---------- */
.featured-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  margin: 22px var(--pad) 24px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-card);
}
.featured-shot {
  display: block;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  border-right: 1px solid var(--rule-soft);
  background: var(--shot-bg);
}
.featured-shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  /* contain: kolumna treści jest wyższa niż 16/10, cover by przycinał i "powiększał" zrzut */
  object-fit: contain;
  object-position: center;
  transition: transform 0.45s var(--ease-out);
}
.featured-shot:hover img { transform: scale(1.02); }
.featured-content { padding: 30px 32px; }
.case-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.featured-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
}
.featured-summary {
  max-width: 680px;
  margin: 14px 0 22px;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.case-grid-featured { gap: 13px; }
.case-fact {
  padding: 12px 0 0;
  border-top: 1px solid var(--rule-row);
}
.case-fact:last-child { grid-column: 1 / -1; }
.case-fact dt {
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-fact dd { color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.case-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- POZOSTAŁE CASE STUDIES — karty widoczne od razu ---------- */
.case-study-list {
  display: grid;
  gap: 24px;
  margin: 22px var(--pad) 24px;
}
.case-card {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.case-summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  grid-template-areas:
    'index name    status'
    '.     summary summary'
    '.     stack   stack';
  align-items: baseline;
  gap: 4px 16px;
  padding: 26px 30px 0;
}
.case-index {
  grid-area: index;
  font-family: var(--mono);
  color: var(--faint);
  font-size: 12px;
}
.case-name {
  grid-area: name;
  font-family: var(--display);
  color: var(--text);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.case-summary-copy { grid-area: summary; color: var(--muted); font-size: 15px; max-width: 680px; }
.case-stack { grid-area: stack; font-family: var(--mono); color: var(--dim); font-size: 11.5px; margin-top: 6px; }
.case-status {
  grid-area: status;
  align-self: center;
  padding: 4px 11px;
  background: var(--accent-wash);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.case-status-warn { color: var(--amber); background: transparent; }
.case-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 26px;
  padding: 20px 30px 28px;
  align-items: start;
}
.case-media {
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  background: var(--shot-bg);
}
.case-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s var(--ease-out);
}
.case-media:hover img { transform: scale(1.02); }
.case-content { min-width: 0; }

/* ---------- SEKCJA DEMO ---------- */
.demo-section-inner {
  display: grid;
  grid-template-columns: minmax(210px, 0.45fr) minmax(0, 1.55fr);
  gap: 28px;
  align-items: start;
  padding: 22px var(--pad) 24px;
}
.demo-section-copy { padding-top: 10px; }
.demo-section-copy h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.demo-section-copy p { color: var(--muted); font-size: 14px; line-height: 1.7; }

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

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

.col-step { padding: 0; }
.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: 17px;
  color: var(--text);
  margin-bottom: 8px;
}
.col-title .slash { color: var(--accent); }
.col-desc { font-size: 13.5px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

.col-stack {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
}
.col-cat {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.col-items { font-size: 14px; line-height: 1.65; color: var(--text-2); }

/* ---------- ORIENTACYJNE CENY (w sekcji Proces) ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 var(--pad) 28px;
}
.price-card {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
}
.price-name {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim-2);
  margin-bottom: 10px;
}
.price-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 8px;
}
.price-desc { font-size: 13px; line-height: 1.6; color: var(--muted); }
.pricing-note {
  grid-column: 1 / -1;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 720px;
}

/* ---------- O MNIE ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 24px var(--pad) 24px;
}
.about-lead {
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.about-body { font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 540px; text-wrap: pretty; }
.about-body strong { color: var(--text-2); font-weight: 600; }
.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-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--dim-2); text-transform: uppercase; }
.fact-v { font-size: 14px; color: var(--text); text-align: right; }

/* ---------- OPINIE ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.quote {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
}
.quote blockquote {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 14px;
}
.q-name { display: block; font-size: 13px; color: var(--text-2); font-weight: 600; }
.q-role { display: block; font-size: 12px; color: var(--dim-2); }

/* ---------- KONTAKT — miękka karta ---------- */
.contact {
  margin: 34px var(--pad) 40px;
  padding: 40px 42px 36px;
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: calc(var(--r-lg) + 6px);
  box-shadow: var(--shadow-card);
}
.contact .fig-label { display: inline-block; }
.contact-head {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 18px 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: 15px; color: var(--muted); margin-bottom: 16px; max-width: 460px; }
.mail-big {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(16px, 3vw, 24px);
  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: 13px; font-weight: 500; color: var(--accent); }
.avail::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.useme {
  display: block;
  border: 1px solid var(--rule-soft);
  background: var(--panel-2);
  border-radius: var(--r-md);
  padding: 18px 22px;
  max-width: 440px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.useme:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-card); }
.cu-k { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-2); }
.cu-v { display: block; font-weight: 700; font-size: 15.5px; color: var(--text); margin: 7px 0 6px; }
.useme:hover .cu-v { color: var(--accent); }
.cu-sub { display: block; font-size: 13px; line-height: 1.55; color: var(--muted); }
.contact-links { display: flex; gap: 20px; font-size: 13px; font-weight: 500; }
.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: 13px 0;
  background: var(--footer);
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  animation: marq 32s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.footer-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { opacity: 0.85; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 18px var(--pad) 22px;
  font-size: 12.5px;
  color: var(--dim);
  background: var(--footer);
}
.site-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer-links a { color: var(--muted); }
.site-footer-links a:hover { color: var(--accent); }

/* ---------- DEMO (booking.flow) ---------- */
.demo-box {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.demo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--panel-2);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ghost); }
.demo-title { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.booking-demo { display: grid; grid-template-columns: 200px 1fr; gap: 22px; padding: 18px 20px 20px; }
.booking-controls { display: flex; flex-direction: column; gap: 14px; }
.filter-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim-2);
  margin-bottom: 8px;
}
.service-options { display: flex; flex-direction: column; gap: 7px; }
.service-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 13px;
  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-family: var(--mono); 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: 7px; }
.time-option {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  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: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  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: 11.5px; line-height: 1.5; color: var(--dim-2); }

.booking-output { display: flex; flex-direction: column; }
.demo-req { font-family: var(--mono); font-size: 12px; 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-family: var(--mono); 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 9px;
  border-radius: 999px;
}
.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: 9px 8px;
  border-bottom: 1px solid var(--rule-row);
  border-radius: 6px;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.flow-index { font-family: var(--mono); font-size: 10px; color: var(--dim-2); }
.flow-copy strong { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); }
.flow-copy code { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.flow-state { font-family: var(--mono); 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);
  background: var(--accent-wash);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.payment-summary-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  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 pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@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) {
  .cols-4, .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .featured-shell { grid-template-columns: 1fr; }
  .featured-shot { border-right: none; border-bottom: 1px solid var(--rule-soft); }
  .featured-shot img { aspect-ratio: 16 / 10; height: auto; }
  .case-body { grid-template-columns: 1fr; }
  .case-media { max-width: 560px; }
  .demo-section-inner { grid-template-columns: 1fr; }
  .demo-section-copy { max-width: 620px; }
}

@media (max-width: 700px) {
  .booking-demo { grid-template-columns: 1fr; }
  .case-summary {
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-areas:
      'index name'
      '.     status'
      '.     summary'
      '.     stack';
    gap: 6px 14px;
  }
  .case-status { justify-self: start; }
}

@media (max-width: 640px) {
  :root { --pad: 18px; }
  .masthead { padding: 14px var(--pad) 12px; flex-wrap: wrap; gap: 10px; align-items: center; }
  .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; }
  .headline { padding-top: 30px; }
  .cols-4, .cols-3 { grid-template-columns: 1fr; }
  .contact { margin-left: 10px; margin-right: 10px; padding: 28px 22px 26px; }
  .contact-row { flex-direction: column; align-items: flex-start; }
  main > section { scroll-margin-top: 124px; }
  .hero-intro { align-items: flex-start; flex-direction: column; gap: 18px; }
  .fig-head { gap: 10px; flex-wrap: wrap; }
  .fig-sub { min-width: 0; white-space: normal; line-height: 1.4; }
  .featured-content { padding: 22px 20px 24px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-fact:last-child { grid-column: auto; }
  .case-study-list { margin-left: 10px; margin-right: 10px; }
  .case-summary { padding: 20px 18px 0; }
  .case-body { padding: 16px 18px 22px; }
  .demo-section-inner { padding-left: 18px; padding-right: 18px; }
  .contact-head { font-size: clamp(30px, 10vw, 38px); overflow-wrap: anywhere; }
}
