/* ── 1. TOKENY ──────────────────────────────────────────── */
:root {
  /* kolory */
  --ink:     #111110;
  --paper:   #f4f2ed;
  --paper2:  #eceae4;
  --ink2:    #6b6860;
  --ink3:    #696660;
  --ink4:    #3d3c39;
  --rule:    rgba(17,17,16,0.14);
  --rule-s:  rgba(17,17,16,0.08);
  --accent:  #0d3331;
  --accent2: #7bb8b4;
  --accent3: #e0f0ee;

  /* stany hover */
  --hover-light: #e4f2f0;
  --hover-dark:  rgba(255,255,255,0.05);

  /* tekst na ciemnym tle (kontrast AA) */
  --on-dark-soft: rgba(224,240,238,0.72);
  --on-dark-mute: rgba(224,240,238,0.60);

  /* typografia */
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;

  /* edytorsko: płasko — bez zaokrągleń i cieni, szkielet budują linie 1px */
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  /* układ — pasma pełnej szerokości; miarę kontroluje treść, nie kontener */
  --pad-inline: clamp(22px, 5.2vw, 68px);
  --nav-h: 56px;

  /* ruch */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 0.22s;
}

/* ── 2. RESET + BAZA ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; }

a { color: var(--accent); }

/* ── 3. WSPÓLNE — SKIP-LINK / FOCUS / RUCH ──────────────── */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 300;
  background: var(--accent);
  color: var(--accent3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 18px;
  text-decoration: none;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.site-nav a:focus-visible,
.gal-btn:focus-visible,
.tst-btn:focus-visible,
.car-toggle:focus-visible,
.cookie-btns button:focus-visible {
  outline-color: var(--accent3);
  outline-offset: -3px;
}

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

/* ── 4. NAWIGACJA ───────────────────────────────────────── */
.site-nav {
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  background: var(--accent);
}

.nav-fixed .site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-fixed main { padding-top: var(--nav-h); }

.site-nav-brand {
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent3);
  white-space: nowrap;
}

.site-nav-links {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.site-nav-links a {
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent2);
  border-left: 1px solid rgba(255,255,255,0.1);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-nav-links a:hover { color: var(--accent3); background: rgba(255,255,255,0.06); }
.site-nav-links a.is-active { color: var(--accent3); background: rgba(255,255,255,0.06); }
.site-nav-links a:visited { color: var(--accent2); }
.site-nav-links a.is-active:visited { color: var(--accent3); }

.lbl-m { display: none; }

/* ── 5. STOPKA ──────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: stretch;
  min-height: 52px;
  border-top: 1px solid var(--rule);
}

.site-footer-copy {
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  flex: 1;
}

.site-footer-links { display: flex; align-items: stretch; }

.site-footer-links a {
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink3);
  text-decoration: none;
  border-left: 1px solid var(--rule);
  transition: color var(--dur) var(--ease);
}
.site-footer-links a:hover { color: var(--accent); }

/* ── 6. BANER COOKIE (pływająca karta) ──────────────────── */
#cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: stretch;
  z-index: 200;
}

.cookie-txt {
  display: flex;
  align-items: center;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  flex: 1;
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1.5;
}
.cookie-txt a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.cookie-btns { display: flex; align-items: stretch; }

.cookie-btns button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 22px;
  border: none;
  border-left: 1px solid var(--rule);
  min-height: 48px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.c-decline { background: var(--paper); color: var(--ink3); }
.c-decline:hover { background: var(--paper2); color: var(--ink); }
.c-accept  { background: var(--accent); color: var(--accent3); }
.c-accept:hover { background: #0a2826; }

/* ============================================================
   7. STRONA HOME
   ============================================================ */

/* — HERO — */
.page-home .hero-body {
  padding: clamp(46px, 6vw, 80px) var(--pad-inline) clamp(52px, 7vw, 80px);
  min-height: clamp(340px, 50vh, 460px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero-ghost {
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: clamp(140px, 22vw, 280px);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(17,17,16,0.06);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink3);
  flex-shrink: 0;
}

.page-home h1,
.page-bio h1 {
  font-family: var(--mono);
  font-size: clamp(36px, 5.4vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.h1-dim {
  display: block;
  font-size: clamp(33px, 5vw, 70px);
  color: var(--ink3);
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-cta-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 16px 30px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  display: inline-block;
}
.hero-cta-btn:hover { background: var(--accent); color: var(--accent3); }
.hero-ctas .hero-cta-btn:first-child { background: var(--accent); color: var(--accent3); }
.hero-ctas .hero-cta-btn:first-child:hover { background: #0a2826; }

/* — POWŁOKA SEKCJI — */
.sec { border-bottom: 1px solid var(--rule); }
.sec:last-of-type { border-bottom: none; }
.sec.sec-dark { border-bottom: none; }

.sec-head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}

.sec-n {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 16px 22px;
  border-right: 1px solid var(--rule);
  display: flex;
  align-items: center;
  min-width: 56px;
}

.sec-label {
  padding: 16px 32px;
  border-left: 2px solid var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.col-h {
  font-family: var(--mono);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 26px;
}

.col-p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink4);
  line-height: 1.75;
  max-width: 360px;
}
.col-p + .col-p { margin-top: 14px; }

/* — JAK TO DZIAŁA — */
.how-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
}

.how-left {
  padding: clamp(48px, 6vw, 72px) var(--pad-inline);
  border-right: 1px solid var(--rule);
}

.steps { display: flex; flex-direction: column; }

.step {
  display: flex;
  padding: 30px 40px;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
  transition: background var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.step:last-child { border-bottom: none; }
.step:hover { background: var(--hover-light); }

.step-n {
  font-family: var(--mono);
  font-size: clamp(80px, 10vw, 120px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(17,17,16,0.13);
  user-select: none;
  pointer-events: none;
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  transition: -webkit-text-stroke-color var(--dur) var(--ease);
}
.step:hover .step-n { -webkit-text-stroke-color: rgba(13,51,49,0.22); }

.step h4 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.step p {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.65;
}
.step-body { max-width: 380px; }

/* — METODY POŁĄCZENIA — */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.access-cell {
  padding: clamp(40px, 5vw, 56px) var(--pad-inline);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.access-cell:last-child { border-right: none; }

.access-word {
  font-family: var(--mono);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.access-cell h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}
.access-cell p {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.65;
}

/* — BIG QUOTE + GALERIA — */
.bq-band {
  background: var(--accent);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.bigquote-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.bq-content {
  padding: clamp(48px, 6vw, 72px) var(--pad-inline);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-width: 0;
}

.bq-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(224,240,238,0.42);
}

.bq-text {
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--accent3);
}
.bq-text em { font-style: normal; color: rgba(224,240,238,0.45); }

.bq-gal {
  position: relative;
  background: rgba(0,0,0,0.2);
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}

.gal-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 28px 0;
}

.gal-slide { display: none; }
.gal-slide.on { display: block; animation: fade .5s var(--ease) both; }

.gal-slide picture { display: block; }
.gal-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.gal-placeholder {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(224,240,238,0.5);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* — STEROWANIE KARUZEL (ciemne) — */
.gal-controls,
.tst-controls {
  display: flex;
  align-items: stretch;
  background: rgba(13,51,49,0.85);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 2;
}
.tst-controls { background: rgba(0,0,0,0.2); }

.gal-dots,
.tst-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  flex: 1;
  flex-wrap: wrap;
}
.tst-dots { gap: 8px; padding: 16px var(--pad-inline); }

.gal-dot,
.tst-dot {
  width: 20px;
  height: 22px;
  border: none;
  cursor: pointer;
  background: transparent;
  padding: 10px 0;
  background-clip: content-box;
  background-color: rgba(224,240,238,0.30);
  transition: background-color var(--dur) var(--ease);
}
.gal-dot.on,
.tst-dot.on { background-color: var(--accent3); }
.gal-dot:hover,
.tst-dot:hover { background-color: rgba(224,240,238,0.6); }

.gal-btn,
.tst-btn,
.car-toggle {
  font-family: var(--mono);
  font-size: 15px;
  color: rgba(224,240,238,0.4);
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding: 0 18px;
  min-width: 52px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.gal-btn:hover,
.tst-btn:hover,
.car-toggle:hover { color: var(--accent3); background: rgba(255,255,255,0.06); }

/* — CECHY (feat) — */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.feat-left {
  padding: clamp(48px, 6vw, 72px) var(--pad-inline);
  border-right: 1px solid var(--rule);
}

.feat-list { display: flex; flex-direction: column; }

.feat-row {
  padding: 22px 36px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background var(--dur) var(--ease);
}
.feat-row:hover { background: var(--hover-light); }
.feat-row:last-child { border-bottom: none; }

.feat-dot {
  width: 20px;
  height: 1px;
  background: var(--ink3);
  flex-shrink: 0;
  margin-top: 12px;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.feat-row:hover .feat-dot { background: var(--accent); width: 28px; }

.feat-h {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}
.feat-p {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.6;
}

/* — DEWELOPERZY — */
.page-home .dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dev-left {
  padding: clamp(48px, 6vw, 72px) var(--pad-inline);
  border-right: 1px solid var(--rule);
}

.dev-list { display: flex; flex-direction: column; }

.dev-row {
  padding: 24px 36px;
  border-bottom: 1px solid var(--rule);
  transition: background var(--dur) var(--ease);
}
.dev-row:hover { background: var(--hover-light); }
.dev-row:last-child { border-bottom: none; }

.dev-row-h {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.dev-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--ink3);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

.dev-row-p {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.65;
}

/* — SPECYFIKACJA — */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.spec-left { border-right: 1px solid var(--rule); }

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 36px;
  border-bottom: 1px solid var(--rule-s);
}
.spec-row:last-child { border-bottom: none; }

.spec-k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink2);
  font-weight: 300;
}
.spec-v {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.spec-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.spec-price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 48px;
}
.spec-price-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 12px;
}
.spec-price-main { display: flex; align-items: baseline; line-height: 1; }
.spec-price-big {
  font-family: var(--mono);
  font-size: clamp(72px, 9vw, 112px);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 0.9;
}
.spec-price-currency {
  font-family: var(--mono);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink4);
  margin-left: 8px;
  align-self: flex-end;
  padding-bottom: 4px;
}
.spec-price-period {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-top: 10px;
}

/* — MID-CTA — */
.mid-cta {
  background: var(--accent);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.mid-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 56px) var(--pad-inline);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mid-cta-text {
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--accent3);
  line-height: 1.15;
}
.mid-cta-sub {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--on-dark-soft);
  line-height: 1.6;
}
.mid-cta-link {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent3);
  text-decoration: none;
  margin-top: 8px;
  transition: color var(--dur) var(--ease);
}
.mid-cta-link:hover { color: var(--accent2); }

/* — OPINIE — */
.tst-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
}
.tst-left {
  padding: clamp(48px, 6vw, 72px) var(--pad-inline);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.tst-right {
  position: relative;
  display: flex;
  flex-direction: column;
}
.tst-stage {
  padding: clamp(48px, 6vw, 72px) var(--pad-inline);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}
.tst-slide { display: none; }
.tst-slide.on { display: block; animation: fade .45s var(--ease) both; }

.tst-quote {
  font-family: var(--mono);
  font-size: clamp(17px, 2.1vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--accent3);
  margin-bottom: 32px;
}
.tst-quote::before {
  content: '\201C';
  display: block;
  font-family: var(--mono);
  font-size: 40px;
  color: var(--accent2);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.55;
}
.tst-author {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent3);
  margin-bottom: 4px;
}
.tst-role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
}

/* — KONTAKT — */
.contact-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(64px, 11vw, 112px) var(--pad-inline);
}
.contact-wrap h2,
.contact-wrap h3 {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
}
.contact-wrap p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink4);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}
.contact-mail {
  font-family: var(--mono);
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--dur) var(--ease);
  display: inline-block;
}
.contact-mail:hover { color: var(--accent); }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.contact-linkedin {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink4);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 14px 24px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.contact-linkedin:hover {
  background: var(--accent);
  color: var(--accent3);
}

/* — SEKCJE CIEMNE — */
.sec-dark { background: var(--accent); }
.sec-dark .sec-head { border-bottom: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.15); }
.sec-dark .sec-n { color: var(--accent2); border-right: 1px solid rgba(255,255,255,0.1); }
.sec-dark .sec-label { color: var(--accent3); border-left-color: var(--accent2); }
.sec-dark .col-h { color: var(--accent3); }
.sec-dark .col-p { color: var(--on-dark-soft); }

.sec-dark .feat-left,
.sec-dark .dev-left { border-right: 1px solid rgba(255,255,255,0.1); }
.sec-dark .feat-row,
.sec-dark .dev-row { border-bottom: 1px solid rgba(255,255,255,0.08); }
.sec-dark .feat-row:last-child,
.sec-dark .dev-row:last-child { border-bottom: none; }
.sec-dark .feat-row:hover,
.sec-dark .dev-row:hover { background: var(--hover-dark); }
.sec-dark .feat-h,
.sec-dark .dev-row-h { color: var(--accent3); }
.sec-dark .feat-p,
.sec-dark .dev-row-p { color: var(--on-dark-mute); }
.sec-dark .feat-dot { background: rgba(255,255,255,0.32); }
.sec-dark .feat-row:hover .feat-dot { background: var(--accent2); }
.sec-dark .dev-tag { border-color: rgba(255,255,255,0.2); color: var(--accent2); }

.sec-dark .spec-left { border-right: 1px solid rgba(255,255,255,0.1); }
.sec-dark .spec-row { border-bottom: 1px solid rgba(255,255,255,0.06); }
.sec-dark .spec-row:last-child { border-bottom: none; }
.sec-dark .spec-k { color: var(--on-dark-mute); }
.sec-dark .spec-v { color: var(--accent2); }
.sec-dark .spec-right { border-left: 1px solid rgba(255,255,255,0.1); }

.sec-dark .contact-wrap h2,
.sec-dark .contact-wrap h3 { color: var(--accent3); }
.sec-dark .contact-wrap p { color: var(--on-dark-soft); }
.sec-dark .contact-mail { color: var(--accent3); }
.sec-dark .contact-mail:hover { color: var(--accent2); }

/* — ROZŁOŻENIE SEKCJI: zróżnicowanie rytmu (te same treści) — */

/* 04 — Dla deweloperów: nagłówek po prawej (lustrzane odbicie) */
#deweloperzy .dev-left {
  order: 2;
  border-right: none;
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* 05 — Jak wygląda zamówienie: nagłówek u góry, 4 kroki w poziomym rzędzie */
#zamowienie .how-grid { display: block; }
#zamowienie .how-left {
  border-right: none;
  border-bottom: 1px solid var(--rule);
}
#zamowienie .steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
#zamowienie .step {
  flex-direction: column;
  border-bottom: none;
  border-right: 1px solid var(--rule);
  padding: clamp(32px, 3.4vw, 44px) clamp(24px, 2vw, 32px);
}
#zamowienie .step:last-child { border-right: none; }
#zamowienie .step-n {
  position: static;
  transform: none;
  font-size: 42px;
  -webkit-text-stroke: 1.2px rgba(13,51,49,0.34);
  margin-bottom: 18px;
  line-height: 1;
}
#zamowienie .step-body { max-width: none; }

/* ============================================================
   8. STRONA BIO
   ============================================================ */
.page-bio .hero { border-bottom: 1px solid var(--rule); }

.page-bio .hero-body {
  padding: clamp(48px, 7vw, 72px) var(--pad-inline) clamp(48px, 6vw, 64px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hero-portrait {
  width: clamp(236px, 27vw, 296px);
  aspect-ratio: 5 / 6.1;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  border: 1px solid var(--rule);
}
.hero-portrait::before,
.hero-portrait::after,
.hero-portrait picture::before,
.hero-portrait picture::after {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}
.hero-portrait::before {
  top: -7px;
  left: -7px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.hero-portrait::after {
  right: -7px;
  bottom: -7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}
.hero-portrait picture::before {
  top: -7px;
  right: -7px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.hero-portrait picture::after {
  bottom: -7px;
  left: -7px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.hero-portrait picture { display: block; width: 100%; height: 100%; position: relative; }
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  display: block;
}

.hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; }

.page-bio .h1-dim {
  font-size: clamp(20px, 2.6vw, 32px);
  margin-top: 14px;
}

.hero-sub {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink4);
  line-height: 1.65;
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.hero-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-pill {
  padding: 24px 36px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero-pill:last-child { border-right: none; }
.hero-pill-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink3);
}
.hero-pill-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.bio-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
}
.bio-left {
  padding: clamp(48px, 6vw, 72px) var(--pad-inline);
  border-right: 1px solid var(--rule);
}
.bio-right {
  padding: clamp(48px, 6vw, 72px) var(--pad-inline);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bio-right p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink4);
  line-height: 1.75;
  max-width: 620px;
}

.page-bio .col-p { max-width: 460px; }

/* doświadczenie — układ 5/7 */
.page-bio .dev-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
}
.page-bio .dev-row { padding: 26px 36px; }
.page-bio .dev-row:hover { background: var(--hover-light); }
.dev-org {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink3);
}
.page-bio .dev-row-p { max-width: 600px; }

/* certyfikaty + wykształcenie */
.creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.creds-col { border-right: 1px solid rgba(255,255,255,0.1); }
.creds-col:last-child { border-right: none; }
.creds-head {
  padding: 20px 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent3);
  letter-spacing: 0.04em;
}
.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
}
.cred-row:last-child { border-bottom: none; }
.cred-k {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent3);
}
.cred-sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: rgba(224,240,238,0.5);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.cred-v {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--accent2);
  letter-spacing: 0.03em;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   9. STRONA WIDEO
   ============================================================ */
.vid-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px) var(--pad-inline);
}
h1.vid-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
h1.vid-label::before { content: ''; width: 24px; height: 1px; background: var(--ink3); }
.vid-wrap video {
  width: 100%;
  max-width: 960px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: block;
  background: #000;
}
.vid-note {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink2);
  text-align: center;
}
.vid-note a { color: var(--accent); }

/* ============================================================
   10. STRONA BŁĘDU
   ============================================================ */
.err-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(48px, 8vw, 80px) var(--pad-inline);
}
.err-inner { max-width: 480px; width: 100%; }
.err-code {
  font-family: var(--mono);
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(17,17,16,0.22);
  margin-bottom: 8px;
}
.err-title {
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}
.err-msg {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 40px;
}
.err-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent3);
  background: var(--accent);
  text-decoration: none;
  padding: 16px 26px;
  border: 1px solid var(--accent);
  transition: background var(--dur) var(--ease);
}
.err-back:hover { background: #0a2826; }

/* ============================================================
   11. STRONA DOKUMENTU PRAWNEGO
   ============================================================ */
/* — nagłówek dokumentu — */
.legal-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: clamp(56px, 9vw, 104px) var(--pad-inline) clamp(40px, 5vw, 60px);
}
.legal-ghost {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: clamp(150px, 26vw, 340px);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(17,17,16,0.06);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin-inline: auto;
}
.legal-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink3);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.legal-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ink3); flex-shrink: 0; }
.legal-title {
  font-family: var(--mono);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  position: relative;
  z-index: 1;
  max-width: 20ch;
}
.legal-meta {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink3);
  position: relative;
  z-index: 1;
}

/* — treść sekcji: pas tytułowy pełnej szerokości, treść wyśrodkowana (max 1024px) — */
.legal-content {
  max-width: 1024px;
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--pad-inline);
}
.legal-content h3 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 12px;}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink4);
  line-height: 1.85;
  margin-top: 12px;}
.legal-content > p:first-child { margin-top: 0; }
.legal-content strong { font-weight: 500; color: var(--ink3); }
.legal-content a { color: var(--accent); text-underline-offset: 2px; }
.legal-content ul,
.legal-content ol {
  list-style: none;
  margin-top: 14px;}
.legal-content li {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink4);
  line-height: 1.8;
  padding: 6px 0 6px 28px;
  position: relative;
}
.legal-content ul > li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 14px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.legal-content ol { counter-reset: oc; }
.legal-content ol > li { counter-increment: oc; }
.legal-content ol > li::before {
  content: counter(oc) '.';
  position: absolute;
  left: 0;
  top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink3);
}

/* — zakończenie dokumentu — */
.legal-end {
  padding: 26px var(--pad-inline);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink3);
  text-align: center;
}

/* ============================================================
   12. ANIMACJE
   ============================================================ */
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .hero-eyebrow { animation: up .55s var(--ease) both; }
  .page-home h1            { animation: up .55s var(--ease) both .09s; }
  .page-home .hero-ctas    { animation: up .55s var(--ease) both .18s; }

  .page-bio .hero-portrait { animation: up .55s var(--ease) both; }
  .page-bio .hero-eyebrow  { animation: up .55s var(--ease) both .06s; }
  .page-bio h1             { animation: up .55s var(--ease) both .12s; }
  .page-bio .hero-sub      { animation: up .55s var(--ease) both .20s; }
  .page-bio .hero-footer   { animation: up .55s var(--ease) both .28s; }
}

/* ============================================================
   13. RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 900px) {
  .site-nav-links a { padding: 0 14px; font-size: 10px; }

  /* home hero */
  .hero-ctas { flex-direction: column; gap: 8px; align-items: stretch; }
  .hero-cta-btn { text-align: center; }
  .hero-ghost { display: none; }
  .page-home h1, .page-bio h1 { font-size: clamp(28px, 8vw, 48px); }

  /* siatki dwukolumnowe → jedna kolumna */
  .how-grid, .feat-grid, .access-grid, .spec-grid, .tst-grid,
  .bigquote-gallery, .bio-grid, .creds-grid,
  .page-home .dev-grid, .page-bio .dev-grid {
    grid-template-columns: 1fr;
  }
  .how-left, .feat-left, .dev-left, .bio-left, .tst-left {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .sec-dark .how-left, .sec-dark .feat-left, .sec-dark .dev-left,
  .sec-dark .tst-left, .sec-dark .spec-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .access-cell:first-child { border-right: none; border-bottom: 1px solid var(--rule); }
  .spec-left { border-right: none; border-bottom: 1px solid var(--rule); }
  .sec-dark .spec-right { border-left: none; }
  .creds-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .creds-col:last-child { border-bottom: none; }

  .step, .feat-row, .dev-row { padding-left: 24px; padding-right: 24px; }
  .step-n { display: none; }

  /* rozłożenie sekcji — powrót do jednej kolumny na mobile */
  #deweloperzy .dev-left { order: 0; border-left: none; }
  #zamowienie .steps { grid-template-columns: 1fr; }
  #zamowienie .step { border-right: none; border-bottom: 1px solid var(--rule); }
  #zamowienie .step:last-child { border-bottom: none; }
  #zamowienie .step-n { display: block; font-size: 38px; margin-bottom: 12px; }

  .bq-gal { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }

  /* bio hero → kolumna */
  .page-bio .hero-body { grid-template-columns: 1fr; align-items: flex-start; }
  .hero-portrait { width: clamp(160px, 42vw, 208px); }
  .hero-footer { grid-template-columns: 1fr; }
  .hero-pill { border-right: none; border-bottom: 1px solid var(--rule); }
  .hero-pill:last-child { border-bottom: none; }

  /* stopka → kolumna */
  .site-footer { flex-direction: column; }
  .site-footer-copy { padding: 14px 24px; border-bottom: 1px solid var(--rule); }
  .site-footer-links { flex-wrap: wrap; }
  .site-footer-links a {
    flex: 1;
    justify-content: center;
    border-left: none;
    border-bottom: 1px solid var(--rule);
    min-height: 42px;
  }
  .site-footer-links a:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  .lbl-d { display: none; }
  .lbl-m { display: inline; }
  .site-nav-brand { padding: 0 16px; font-size: 11px; }
  .site-nav-links a { padding: 0 12px; font-size: 9px; letter-spacing: 0.04em; }

  .sec-label { padding: 16px 20px; }
  .sec-n { min-width: 46px; padding: 16px 14px; }

  #cookie { flex-direction: column; }
  .cookie-btns { border-top: 1px solid var(--rule); }
  .cookie-btns button { flex: 1; }

  .cred-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cred-v { text-align: left; }

  .tst-dots, .gal-dots { padding-left: 20px; padding-right: 20px; }
}
