/* ============================================================
   WARSZTAT TŁOK — design system
   Kierunek: dokumentacja techniczna / rysunek złożeniowy
   ============================================================ */

/* ---------- Fonty (self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/oswald-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/oswald-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/oswald-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/oswald-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokeny ---------- */
:root {
  /* paleta */
  --c-ink:        #14171a;   /* grafit — tło hero / sekcji ciemnych */
  --c-ink-2:      #1b1f24;   /* panele na ciemnym */
  --c-ink-3:      #242a31;
  --c-line-dark:  #343b43;   /* ramki na ciemnym */
  --c-paper:      #eef0f2;   /* papier techniczny */
  --c-paper-2:    #f7f8f9;   /* karty na papierze */
  --c-line-light: #d5dade;   /* ramki na jasnym */
  --c-steel:      #98a1ab;   /* tekst drugorzędny na ciemnym (AA) */
  --c-text-on-dark:  #d9dee3;
  --c-text-on-light: #24292f;
  --c-muted-on-light:#5b636c;
  --c-orange:     #ff5f1f;   /* pomarańcz bezpieczeństwa — jedyny akcent */
  --c-orange-hi:  #ff7a3d;   /* na ciemnym tle */
  --c-orange-deep:#b83400;   /* na jasnym tle (AA dla tekstu) */

  /* typografia */
  --f-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --f-sans: 'Inter', system-ui, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

  /* rytm */
  --nav-h: 64px;
  --wrap-max: 1200px;
  --pad-x: clamp(20px, 5vw, 48px);

  /* siatka techniczna na ciemnych sekcjach */
  --grid-img:
    linear-gradient(to right, rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .035) 1px, transparent 1px);
  --grid-size: 56px 56px;
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text-on-dark);
  background: var(--c-ink);
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.12; text-wrap: balance; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

::selection { background: var(--c-orange); color: #14171a; }

:focus-visible {
  outline: 2px solid var(--c-orange-hi);
  outline-offset: 2px;
  border-radius: 2px;
}
.section--paper :focus-visible { outline-color: var(--c-orange-deep); }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-orange);
  color: #14171a;
  font-family: var(--f-mono);
  font-size: .85rem;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.6em;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, translate .18s;
}
.btn--solid {
  background: var(--c-orange);
  color: #14171a;
  border-color: var(--c-orange);
}
.btn--solid:hover { background: var(--c-orange-hi); border-color: var(--c-orange-hi); translate: 0 -1px; }
.btn--ghost {
  color: var(--c-text-on-dark);
  border-color: var(--c-line-dark);
}
.btn--ghost:hover { border-color: var(--c-orange-hi); color: var(--c-orange-hi); }
.btn--small { padding: .55em 1.1em; font-size: .9rem; }

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--c-ink) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.nav--scrolled { border-bottom-color: var(--c-line-dark); background: color-mix(in srgb, var(--c-ink) 94%, transparent); }

.nav__inner {
  max-width: var(--wrap-max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 1.15rem;
  letter-spacing: .1em;
}
.nav__logo b { color: var(--c-orange-hi); font-weight: 600; }
.nav__mark { width: 26px; height: 26px; color: var(--c-orange); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}
.nav__menu > a:not(.btn) {
  font-family: var(--f-mono);
  font-size: .85rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--c-text-on-dark);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.nav__menu > a:not(.btn):hover { color: var(--c-orange-hi); border-bottom-color: var(--c-orange-hi); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--c-line-dark);
  color: var(--c-text-on-dark);
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
}
.nav__toggle-bar {
  width: 16px; height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-ink);
    border-bottom: 1px solid var(--c-line-dark);
    padding: 8px var(--pad-x) 20px;
    display: none;
  }
  .nav--open .nav__menu { display: flex; }
  .nav__menu > a:not(.btn) { padding: 14px 2px; border-bottom: 1px solid var(--c-ink-3); }
  .nav__menu > .btn { margin-top: 16px; justify-content: center; }
}

/* ============================================================
   HERO — scena 3D z eksplozją na scrollu
   ============================================================ */
.hero { position: relative; background: var(--c-ink); }

/* długość „pinowania” nadawana tylko przy działającym JS + WebGL */
.js.webgl .hero { height: 420svh; }
@media (max-width: 760px) { .js.webgl .hero { height: 330svh; } }

.hero__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* bez JS lub bez WebGL: brak stickiness, naturalna wysokość */
.no-js .hero__stage, .no-webgl .hero__stage {
  position: static;
  height: auto;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 24px);
}

.hero__gridbg {
  position: absolute; inset: 0;
  background-image: var(--grid-img);
  background-size: var(--grid-size);
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}

.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: none;
  touch-action: pan-y;
  cursor: grab;
}
.hero__canvas:active { cursor: grabbing; }
.webgl .hero__canvas { display: block; }

/* --- fallback (no-JS / no-WebGL) --- */
.hero__fallback {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 24px var(--pad-x) 48px;
}
.webgl .hero__fallback { display: none; }
.hero__blueprint { width: 100%; height: auto; }
.hero__fallback-note {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--c-steel);
}

/* --- copy --- */
.hero__copy {
  position: relative;
  z-index: 3;
  order: -1;
  max-width: 620px;
  padding: calc(var(--nav-h) + clamp(28px, 6svh, 64px)) var(--pad-x) 0;
  pointer-events: none;
}
.hero__copy a { pointer-events: auto; }
.no-js .hero__copy, .no-webgl .hero__copy { padding-top: 12px; margin-bottom: 24px; }

.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-orange-hi);
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  text-transform: uppercase;
  letter-spacing: .015em;
  color: #fff;
}
.hero__lead {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--c-text-on-dark);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* --- etykiety części (rysunek techniczny) --- */
.hero__leaders {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  display: none;
}
.webgl .hero__leaders { display: block; }

.hero__labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; }
.webgl .hero__labels { display: block; }

.plabel {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 12px;
  background: color-mix(in srgb, var(--c-ink) 86%, transparent);
  border: 1px solid var(--c-line-dark);
  border-left: 2px solid var(--c-orange);
  font-family: var(--f-mono);
  white-space: nowrap;
  opacity: 0;
  translate: 0 6px;
  transition: opacity .35s, translate .35s;
  will-change: transform;
}
.plabel--on { opacity: 1; translate: 0 0; }
.plabel__no { color: var(--c-orange-hi); font-weight: 700; font-size: .95rem; }
.plabel__name { color: var(--c-text-on-dark); font-size: .82rem; letter-spacing: .02em; }

/* tryb statyczny (reduced-motion / brak GSAP): etykiety w pasku na dole sceny */
.motion-static .hero__leaders { display: none !important; }
.motion-static .hero__labels {
  inset: auto 24px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.motion-static .plabel { position: static; }

/* mobile: etykiety pod sceną zamiast wokół modelu */
@media (max-width: 760px) {
  .hero__leaders { display: none !important; }
  .hero__labels {
    inset: auto 16px 88px 16px;
    display: none;
    flex-direction: column;
    gap: 6px;
  }
  .webgl .hero__labels { display: flex; }
  .plabel { position: static; width: fit-content; }
  .plabel:not(.plabel--on) { display: none; }
}

/* --- HUD postępu --- */
.hero__hud {
  position: absolute;
  z-index: 3;
  left: var(--pad-x);
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--c-steel);
}
.hero__hud-bar {
  width: 120px; height: 3px;
  background: var(--c-ink-3);
  overflow: hidden;
}
.hero__hud-fill {
  display: block;
  width: 100%; height: 100%;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left center;
}
.no-js .hero__hud, .no-webgl .hero__hud { display: none; }

/* --- hint --- */
.hero__hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: .78rem;
  color: var(--c-steel);
  opacity: 0;
  transition: opacity .4s;
  white-space: nowrap;
}
.hero__hint--on { opacity: 1; }
.hero__hint--on svg { animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}
.no-js .hero__hint, .no-webgl .hero__hint { display: none; }

@media (max-width: 760px) {
  .hero__hud { display: none; }
  .hero__hint { bottom: 16px; }
}

/* ============================================================
   SEKCJE
   ============================================================ */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--paper { background: var(--c-paper); color: var(--c-text-on-light); }
.section--dark {
  background: var(--c-ink);
  color: var(--c-text-on-dark);
  background-image: var(--grid-img);
  background-size: var(--grid-size);
}

.wrap { max-width: var(--wrap-max); margin-inline: auto; padding-inline: var(--pad-x); }
.wrap--narrow { max-width: 860px; }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__kicker {
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section--paper .section__kicker { color: var(--c-orange-deep); }
.section--dark .section__kicker { color: var(--c-orange-hi); }
.section__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.section--paper .section__title { color: #16191c; }
.section__intro { margin-top: 14px; max-width: 56ch; }
.section--paper .section__intro { color: var(--c-muted-on-light); }
.section--dark .section__intro { color: var(--c-steel); }

/* ---------- Usługi ---------- */
.services {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .services { grid-template-columns: 1fr; } }

.card {
  background: var(--c-paper-2);
  border: 1px solid var(--c-line-light);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, translate .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--c-orange);
  translate: 0 -3px;
  box-shadow: 0 10px 24px rgb(20 23 26 / .08);
}
.card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.card__no {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--c-orange-deep);
}
.card__icon { width: 30px; height: 30px; color: var(--c-muted-on-light); flex: none; }
.card__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #16191c;
}
.card__desc { font-size: .92rem; color: var(--c-muted-on-light); flex: 1; }
.card__price {
  font-family: var(--f-mono);
  font-size: .88rem;
  color: #16191c;
  border-top: 1px dashed var(--c-line-light);
  padding-top: 12px;
}

/* ---------- Jak pracujemy ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .steps { grid-template-columns: 1fr; } }

.step {
  border-top: 2px solid var(--c-line-dark);
  padding-top: 18px;
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  top: -2px; left: 0;
  width: 48px; height: 2px;
  background: var(--c-orange);
}
.step__no {
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  color: var(--c-orange-hi);
}
.step__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: 8px;
  color: #fff;
}
.step__desc { margin-top: 10px; font-size: .92rem; color: var(--c-steel); }

/* ---------- Liczby ---------- */
.section--numbers { padding-top: 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-block: 1px solid var(--c-line-dark);
  padding-block: clamp(28px, 4vw, 48px);
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat { text-align: left; }
.stat__label {
  order: 2;
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.stat__label sup { color: var(--c-orange-hi); }
.stat__value { margin: 0; }
.stat__num {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  color: var(--c-orange-hi);
  font-variant-numeric: tabular-nums;
}
.stats__note {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--c-steel);
}

/* ---------- Opinie ---------- */
.reviews {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }

.review {
  background: var(--c-paper-2);
  border: 1px solid var(--c-line-light);
  padding: 22px;
}
.review__meta {
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--c-orange-deep);
  border-bottom: 1px dashed var(--c-line-light);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.review__text p { color: var(--c-text-on-light); }
.review__text p::before { content: '„'; }
.review__text p::after { content: '”'; }
.review__author {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--c-muted-on-light);
}

/* ---------- Formularz — zlecenie serwisowe ---------- */
.order {
  background: var(--c-ink-2);
  border: 1px solid var(--c-line-dark);
}
.order__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px dashed var(--c-line-dark);
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--c-steel);
}
.order__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  padding: 24px 22px;
}
@media (max-width: 640px) { .order__grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.field input:not([type="checkbox"]), .field textarea {
  background: var(--c-ink);
  border: 1px solid var(--c-line-dark);
  color: var(--c-text-on-dark);
  padding: 12px 14px;
  border-radius: 0;
  width: 100%;
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #6b737d; opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--c-orange); outline: none; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--c-orange); box-shadow: 0 0 0 1px var(--c-orange); }

.field--check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}
.field--check input {
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--c-orange);
  flex: none;
}
.field--check label {
  flex: 1;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--f-sans);
  font-size: .84rem;
  color: var(--c-steel);
}

.field__err {
  display: none;
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--c-orange-hi);
}
.field--error input, .field--error textarea { border-color: var(--c-orange); }
.field--error .field__err { display: block; width: 100%; }

.order__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 4px 22px 26px;
}
.order__alt { font-size: .9rem; color: var(--c-steel); }
.order__phone { font-family: var(--f-mono); color: var(--c-orange-hi); text-decoration: none; }
.order__phone:hover { text-decoration: underline; }
.order__noscript { padding: 0 22px 22px; font-size: .9rem; color: var(--c-orange-hi); }
.order__noscript a { color: inherit; }

/* --- potwierdzenie / pieczęć --- */
.order-confirm {
  position: relative;
  background: var(--c-ink-2);
  border: 1px solid var(--c-line-dark);
  padding: 56px 32px 44px;
  text-align: center;
}
.order-confirm__stamp {
  display: inline-block;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: .22em;
  color: var(--c-orange-hi);
  border: 3px double var(--c-orange-hi);
  padding: 10px 26px 10px 32px;
  rotate: -6deg;
  margin-bottom: 26px;
}
.order-confirm__no {
  font-family: var(--f-mono);
  font-size: .85rem;
  letter-spacing: .14em;
  color: var(--c-steel);
}
.order-confirm__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.7rem;
  text-transform: uppercase;
  margin-top: 10px;
  color: #fff;
}
.order-confirm__text { margin-top: 12px; max-width: 52ch; margin-inline: auto; color: var(--c-steel); }
.order-confirm__text a { color: var(--c-orange-hi); }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) 7fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.contact__h {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-orange-deep);
  margin-top: 26px;
}
.contact__h:first-child { margin-top: 0; }
.contact__hours { border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.contact__hours th {
  text-align: left;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: .88rem;
  color: var(--c-muted-on-light);
  padding: 4px 26px 4px 0;
}
.contact__hours td { font-family: var(--f-mono); font-size: .88rem; color: var(--c-text-on-light); }
.contact__row { margin-top: 10px; }
.contact__row a { color: var(--c-text-on-light); font-family: var(--f-mono); font-size: .95rem; }
.contact__note { margin-top: 26px; font-size: .88rem; color: var(--c-muted-on-light); max-width: 40ch; }

.contact__map { margin: 0; }
.contact__map svg { width: 100%; height: auto; border: 1px solid var(--c-line-light); }
.contact__map-note {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--c-muted-on-light);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--c-ink);
  border-top: 1px solid var(--c-line-dark);
  padding: 36px 0 44px;
}
.footer__inner { display: flex; flex-direction: column; gap: 8px; }
.footer__brand { font-family: var(--f-display); letter-spacing: .1em; color: #fff; }
.footer__brand b { color: var(--c-orange-hi); }
.footer__nip { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; color: var(--c-steel); }
.footer__legal, .footer__credit { font-family: var(--f-mono); font-size: .78rem; color: var(--c-steel); }
.footer__credit a { color: var(--c-orange-hi); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Animacje wejścia ----------
   Gated na .enhanced (nadawane przez main.js) — jeśli moduły ES nie
   wystartują (stara przeglądarka, file://), treść pozostaje widoczna. */
.enhanced .reveal { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s ease; }
.enhanced .reveal--in { opacity: 1; translate: 0 0; }

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js.webgl .hero { height: auto; }
  .hero__stage { position: static; height: auto; min-height: 100svh; }
  .hero__hint, .hero__hud { display: none !important; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .plabel { transition: none; }
  .hero__hint--on svg { animation: none; }
  .btn, .card, .nav { transition: none; }
}
