/* ══════════════════════════════════════════════════════════
   EvoMotion — Shared Design System
   Syncopate (logo only) · Archivo (display/body) · Space Mono (data)
   ══════════════════════════════════════════════════════════ */

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

:root {
  --red:    #DC2626;
  --black:  #0A0A0A;
  --ink-1:  #121212;
  --ink-2:  #1A1A1A;
  --line:   #262626;
  --line-2: #333333;
  --muted:  #71757C;
  --dim:    #9DA1A8;
  --paper:  #F4F4F2;
  --shear:  -12deg;

  --f-disp: 'Archivo', system-ui, sans-serif;
  --f-logo: 'Syncopate', sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --pad: 40px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--black);
  color: var(--paper);
  font-family: var(--f-disp);
  font-size: 15px;
  line-height: 1.55;
}

/* ── PRIMITIVES ── */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}
.mono.dim { color: var(--muted); }

.mark {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--red);
  transform: skewX(var(--shear));
  flex-shrink: 0;
}
.mark--sm { width: 5px; height: 9px; }
.mark--dim { background: var(--line-2); }

/* ── SECTION COMMON ── */
section {
  padding: 100px var(--pad);
  border-top: 1px solid var(--line);
}
section > * {
  max-width: var(--maxw);
  margin-inline: auto;
}

.sec-head { margin-bottom: 64px; }
.sec-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.sec-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-num::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--red);
  transform: skewX(var(--shear));
}
.sec-kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-title {
  font-family: var(--f-disp);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 18ch;
}
.sec-lede {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--dim);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.65;
  font-weight: 400;
}

/* ── PAGE HEADER (subpages, not full-height) ── */
.page-head {
  padding: 110px var(--pad) 64px;
  border-top: none;
  border-bottom: 1px solid var(--line);
  background: var(--ink-1);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: repeating-linear-gradient(115deg, transparent 0 36px, rgba(220,38,38,0.04) 36px 38px);
  pointer-events: none;
}
.page-head > * {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
}
.page-head-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
}
.page-head__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.page-title,
.page-head__title {
  font-family: var(--f-disp);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-title em,
.page-head__title em { color: var(--red); font-style: italic; }
.page-lede,
.page-head__lede {
  max-width: 55ch;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.65;
}

/* Stats bar inside page-head (e.g. realizacje) */
.page-head-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.ph-stat {
  background: var(--ink-2);
  padding: 20px 24px;
}
.ph-stat-num {
  font-family: var(--f-disp);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.ph-stat-num.accent { color: var(--red); }
.ph-stat-lbl {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .page-head-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--pad);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-evo {
  font-family: var(--f-logo);
  font-weight: 700;
  font-size: 1rem;
  color: var(--paper);
  letter-spacing: 0.1em;
}
.logo-slash {
  width: 11px;
  height: 28px;
  background: var(--red);
  transform: skewX(var(--shear));
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(220,38,38,0.45);
}
.logo-motion {
  font-family: var(--f-logo);
  font-weight: 400;
  font-size: 1rem;
  color: var(--paper);
  letter-spacing: 0.1em;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-family: var(--f-disp);
  font-weight: 500;
  font-size: 13px;
  color: #C7CAD0;
  text-decoration: none;
  transition: color 150ms;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a.active { color: var(--paper); font-weight: 700; }
.nav-cta {
  background: var(--red);
  color: #0A0A0A;
  font-family: var(--f-disp);
  font-weight: 700;
  font-style: italic;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms;
  white-space: nowrap;
}
.nav-cta:hover { background: #b91c1c; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
  transition: transform 200ms, opacity 200ms, width 200ms;
  transform-origin: center;
}
.hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger--open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── COOKIE BANNER ── */
#cookie-banner[hidden] { display: none !important; }
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
#cookie-banner p {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--dim);
  margin: 0;
  line-height: 1.6;
}
#cookie-banner a { color: var(--red); text-decoration: none; }
#cookie-accept {
  background: var(--red);
  color: #0A0A0A;
  font-family: var(--f-disp);
  font-weight: 700;
  font-style: italic;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .01em;
  border: none;
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 150ms;
}
#cookie-accept:hover { background: #b91c1c; }

/* ── FORM STATUS ── */
.form-status {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  padding: 12px 16px;
  border: 1px solid;
  margin-bottom: 8px;
}
.form-status--ok  { color: #4ade80; border-color: #166534; background: rgba(74,222,128,.06); }
.form-status--err { color: var(--red); border-color: rgba(220,38,38,.3); background: rgba(220,38,38,.05); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--red);
  color: #0A0A0A;
  font-family: var(--f-disp);
  font-weight: 700;
  font-style: italic;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  border: none;
  padding: 14px 26px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 150ms;
}
.btn-primary:hover { background: #b91c1c; }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  font-family: var(--f-disp);
  font-weight: 600;
  font-style: italic;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  border: 1px solid var(--line-2);
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 150ms, color 150ms;
}
.btn-ghost:hover { border-color: var(--dim); }

/* ── TICKER ── */
.ticker {
  background: var(--red);
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(0,0,0,0.15);
}
.ticker-inner {
  display: inline-flex;
  animation: ticker-scroll 24s linear infinite;
}
.ticker-inner span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.75);
  padding: 11px 48px 11px 0;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SERVICES LIST ── */
.services-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.service-item {
  display: grid;
  grid-template-columns: 52px 1fr auto 32px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 150ms;
}
.service-item:hover {
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -12px;
  background: rgba(255,255,255,0.015);
}
.si-id {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.si-main h3 {
  font-family: var(--f-disp);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.si-main p {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.55;
  max-width: 55ch;
}
.si-tag {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}
.si-arrow {
  font-size: 20px;
  color: var(--muted);
  text-align: center;
  transition: color 150ms, transform 150ms;
}
.service-item:hover .si-arrow { color: var(--red); transform: translateX(4px); }

/* ── REALIZACJE GRID ── */
.real-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.real-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.real-card {
  background: var(--black);
  cursor: pointer;
  transition: background 200ms;
  overflow: hidden;
}
.real-card:hover { background: var(--ink-1); }
.real-card-hd {
  padding: 22px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.real-car-name {
  font-family: var(--f-disp);
  font-weight: 800;
  font-style: italic;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.real-car-stage {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
}
.real-power-badge {
  background: var(--red);
  color: #0A0A0A;
  font-family: var(--f-disp);
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 5px 10px;
  white-space: nowrap;
}
.real-chart {
  padding: 14px 24px;
  height: 150px;
  position: relative;
}
.real-card-ft {
  padding: 14px 24px 22px;
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.real-stat-val {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.real-stat-val em {
  font-style: normal;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
}
.real-stat-lbl {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── CONTACT ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact-info {
  background: var(--black);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ci-label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ci-value {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.45;
}
.contact-form {
  background: var(--ink-2);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.form-input {
  background: var(--black);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--f-disp);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 150ms;
  width: 100%;
}
.form-input:focus { border-color: var(--red); }
.form-input::placeholder { color: var(--muted); font-style: italic; }
textarea.form-input { resize: vertical; min-height: 110px; }

/* ── FOOTER ── */
footer {
  background: #070707;
  border-top: 1px solid var(--line);
  padding: 28px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-copy {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.footer-copy strong { color: var(--red); }
.footer-tagline {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--line-2);
  text-transform: uppercase;
}

/* ── USŁUGI page — detail cards ── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 1px;
}
.service-detail--wide { grid-template-columns: 1fr; }
.sd-main {
  background: var(--black);
  padding: 48px 44px;
}
.sd-aside {
  background: var(--ink-1);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sd-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sd-num::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 12px;
  background: var(--red);
  transform: skewX(var(--shear));
}
.sd-title {
  font-family: var(--f-disp);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 18px;
}
.sd-desc {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.7;
  max-width: 52ch;
}
.sd-stages { display: flex; flex-direction: column; gap: 16px; }
.sd-stage {
  border-left: 2px solid var(--line-2);
  padding-left: 18px;
  transition: border-color 150ms;
}
.sd-stage:hover { border-left-color: var(--red); }
.sd-stage-name {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.sd-stage-desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.55;
}
.sd-meta { display: flex; flex-direction: column; gap: 10px; }
.sd-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.sd-meta-key {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.sd-meta-val {
  font-family: var(--f-disp);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
}
.sd-meta-val.accent { color: var(--red); }

/* ── MODAL OVERLAY ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none !important; }
.modal {
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 80px rgba(220,38,38,0.12);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  width: 32px; height: 32px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 150ms, color 150ms;
  line-height: 1;
  z-index: 1;
}
.modal-close:hover { border-color: var(--red); color: var(--paper); }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 0;
  gap: 16px;
}
.modal-car-name {
  font-family: var(--f-disp);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.modal-car-stage {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--red);
  text-transform: uppercase;
}
.modal-chart-wrap {
  padding: 20px 24px 4px;
  height: 220px;
  position: relative;
}
.modal-rpm {
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  margin-bottom: 4px;
}
.modal-rpm span { font-family: var(--f-mono); font-size: 9px; color: var(--line-2); }
.modal-legend {
  display: flex;
  gap: 20px;
  padding: 10px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 24px;
}
.modal-leg { display: flex; align-items: center; gap: 8px; }
.modal-leg-dot { width: 20px; height: 2px; flex-shrink: 0; }
.modal-leg span { font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 16px 24px 24px;
}
.modal-stat {
  background: var(--black);
  padding: 16px;
}
.modal-stat-val {
  font-family: var(--f-disp);
  font-weight: 800;
  font-style: italic;
  font-size: 15px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.modal-stat-val em { color: var(--red); font-style: normal; font-size: 11px; font-weight: 600; }
.modal-stat-lbl {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .real-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --pad: 24px; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px var(--pad) 28px;
    gap: 0;
    z-index: 99;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
  }
  .hero-visual { display: none; }
  .service-item { grid-template-columns: 40px 1fr 28px; }
  .si-tag { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .real-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
}
