/* ============================================================
   DZL Industri Komponenten — Design System
   Auf Basis der Reverse-Engineering-Basis (Teil D: Muster)
   Industrial Dark Palette + Molten Amber Accent
   CSS-Variablen = Design Tokens → einfache Portierung auf Tailwind
   ============================================================ */

:root {
  /* Palette (Tokens) */
  --bg: #0a0a0a;
  --bg-2: #101010;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --text: #f2f2f2;
  --text-muted: #a3a3a3;
  --text-dim: #6b6b6b;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff6b1a;          /* molten amber / arc flash */
  --accent-soft: rgba(255, 107, 26, 0.14);
  --accent-glow: rgba(255, 107, 26, 0.35);

  /* Typography */
  --font-head: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --fs-hero: clamp(2.2rem, 5vw, 3.8rem);
  --fs-title: clamp(1.7rem, 3.5vw, 2.6rem);
  --fs-sub: clamp(1.05rem, 2vw, 1.3rem);
  --fs-body: 1.02rem;

  /* Spacing scale (Tokens) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4.5rem;
  --s-7: 6rem;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --nav-h: 76px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
[data-mono] { font-family: var(--font-mono); }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: #000; }

/* ============ LAYOUT ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-3); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; line-height: 1; border-radius: 999px;
  padding: .95rem 1.6rem; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  font-family: var(--font-body);
}
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }
.btn__icon { transition: transform .2s ease; }
.btn:hover .btn__icon { transform: translateX(5px); }
.btn--primary {
  background: var(--accent); color: #000;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px var(--accent-glow); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled { background: rgba(10,10,10,.82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 8px; position: relative;
  background: linear-gradient(135deg, var(--accent), #ff9340);
}
.brand__mark::after {
  content: ''; position: absolute; inset: 7px; border: 2px solid rgba(0,0,0,.55); border-radius: 4px;
}
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.nav__links { display: flex; gap: var(--s-4); }
.nav__links a { color: var(--text-muted); font-weight: 500; font-size: .98rem; position: relative; transition: color .2s; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: .7rem 1.3rem; font-size: .92rem; }
.nav__toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + var(--s-5)) 0 var(--s-6); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}
.hero__glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  filter: blur(60px); top: -10%; right: -10%;
}
.hero__inner { position: relative; max-width: 820px; }
.eyebrow {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s-2);
}
.hero__title { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -.01em; margin-bottom: var(--s-3); }
.hero__title-accent { display: block; color: var(--text-muted); font-weight: 700; margin-top: var(--s-1); }
.hero__sub { font-size: var(--fs-sub); color: var(--text-muted); max-width: 620px; margin-bottom: var(--s-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.hero__meta-item { color: var(--text-dim); font-size: .85rem; }

/* ============ SECTION HEAD ============ */
.section-head { max-width: 720px; margin-bottom: var(--s-5); }
.section-title { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-title); line-height: 1.12; margin-bottom: var(--s-2); }
.section-sub { color: var(--text-muted); font-size: var(--fs-sub); }

/* ============ GENERAL SECTION ============ */
section { padding: var(--s-7) 0; }
.why { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ============ CARDS / WHY ============ */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-4); transition: transform .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(255,107,26,.4); }
.card--accent { background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--surface); border-color: rgba(255,107,26,.35); }
.card__num { font-size: .85rem; color: var(--accent); display: block; margin-bottom: var(--s-2); }
.card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: var(--s-1); }
.card__text { color: var(--text-muted); }

/* ============ SERVICES ============ */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.service {
  display: block; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); position: relative; overflow: hidden; transition: border-color .3s ease;
}
.service::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.service:hover::before { transform: scaleX(1); }
.service__title { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; margin-bottom: .2rem; }
.service__tag {
  display: block; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-top: .25rem; margin-bottom: var(--s-1);
}
.service__list { margin: 0 0 var(--s-3); padding-left: 1.1rem; color: var(--text-muted); }
.service__list li { margin-bottom: .3rem; }
.service__text { color: var(--text-muted); margin-bottom: var(--s-3); }
.service__link { font-weight: 600; color: var(--accent); }
.service__link span { transition: transform .2s ease; display: inline-block; }
.service:hover .service__link span { transform: translateX(4px); }

/* ============ PORTFOLIO / ARBEITSNACHWEIS ============ */
.portfolio { background: var(--bg-2); border-block: 1px solid var(--line); }
.portfolio__filters { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-bottom: var(--s-4); }
.filter {
  background: var(--surface); border: 1px solid var(--line); color: var(--text-muted);
  padding: .6rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  cursor: pointer;
}
.filter:hover { border-color: var(--accent); color: var(--text); }
.filter.is-active { background: var(--accent); color: #000; border-color: var(--accent); }
.portfolio__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.work { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); transition: border-color .3s ease, opacity .4s ease; }
.work:hover { border-color: rgba(255,107,26,.4); }
.work.is-hidden { display: none; }
.work__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__cap { padding: var(--s-2) var(--s-3) var(--s-3); }
.work__title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: .3rem; }
.work__text { color: var(--text-muted); font-size: .95rem; }
.portfolio__note { color: var(--text-dim); font-size: .95rem; margin-top: var(--s-4); }

/* Placeholder for missing images (before real photos are added) */
.work.ph .work__media { display: grid; place-items: center; background: linear-gradient(150deg, var(--surface-2), var(--bg)); }
.work.ph .work__media::after {
  content: 'Ihr Foto'; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--text-dim);
}
.work.ph .work__media img { opacity: 0; }

/* ============ PROCESS ============ */
.process { background: var(--bg-2); border-block: 1px solid var(--line); }
.process__list { list-style: none; display: grid; gap: var(--s-3); counter-reset: step; }
.step {
  display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-3) var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .3s ease;
}
.step:hover { transform: translateX(6px); }
.step__num {
  flex: 0 0 52px; height: 52px; display: grid; place-items: center;
  border-radius: 12px; font-size: 1.05rem; color: var(--accent);
  border: 1px solid rgba(255,107,26,.35); background: var(--accent-soft);
}
.step__title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: .3rem; }
.step__text { color: var(--text-muted); }

/* ============ FORM ============ */
.contact {}
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-4); max-width: 720px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-bottom: var(--s-2); }
.form__field { margin-bottom: var(--s-2); }
.form__field label, .form__label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .45rem; color: var(--text); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: .98rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.form select {
  padding-right: 2.4rem;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a3a3a3' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.form select option { background: var(--bg); color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form textarea { resize: vertical; }

/* Dropzone */
.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  text-align: center; padding: var(--s-5) var(--s-3); border: 2px dashed var(--line);
  border-radius: var(--radius); cursor: pointer; transition: border-color .2s ease, background .2s ease;
  background: var(--bg);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.dropzone input[type="file"] {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.dropzone__icon { font-size: 1.8rem; color: var(--accent); }
.dropzone__title { font-weight: 600; font-size: 1.05rem; }
.dropzone__hint { color: var(--text-dim); font-size: .88rem; }
.dropzone__list { margin-top: .6rem; width: 100%; text-align: left; font-family: var(--font-mono); font-size: .85rem; color: var(--text-muted); }
.dropzone__file { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .25rem 0; }
.dropzone__file span:first-child { min-width: 0; overflow-wrap: anywhere; }
.dropzone__remove {
  background: none; border: 1px solid var(--line); color: var(--text-muted);
  border-radius: 6px; line-height: 1; padding: .2rem .45rem; font-size: .95rem; flex: 0 0 auto;
}
.dropzone__remove:hover { border-color: #ff5050; color: #ff9b9b; }
.dropzone__file-err { display: block; color: #ff9b9b; font-size: .82rem; padding: .2rem 0; }

.form__privacy { font-size: .85rem; color: var(--text-muted); margin-bottom: var(--s-2); }
.form__privacy a { color: var(--accent); text-decoration: underline; }

/* DSGVO-Checkbox */
.form__consent { display: flex; gap: .7rem; align-items: flex-start; }
.form__consent input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; margin-top: .22rem; flex: 0 0 auto; accent-color: var(--accent);
}
.form__consent label { font-weight: 400; font-size: .88rem; color: var(--text-muted); margin-bottom: 0; }
.form__consent a { color: var(--accent); text-decoration: underline; }

/* Honeypot (unsichtbar für Menschen) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.hp-field label { display: block; }
.hp-field input { width: 100%; }

.form__status { padding: .9rem 1.1rem; border-radius: 10px; margin-top: var(--s-2); font-weight: 600; }
.form__status.ok { background: rgba(46,160,67,.15); color: #7ce08b; border: 1px solid rgba(46,160,67,.4); }
.form__status.err { background: rgba(255,80,80,.15); color: #ff9b9b; border: 1px solid rgba(255,80,80,.4); }

/* ============ CERTIFICATIONS / QUALITY ============ */
.certs { background: var(--bg-2); border-block: 1px solid var(--line); }
.certs__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.certs__row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; width: 100%; }
.certs__badge { display: flex; gap: var(--s-3); align-items: flex-start; background: var(--surface); border: 1px solid rgba(255,107,26,.35); padding: var(--s-3) var(--s-4); border-radius: var(--radius-lg); flex: 1 1 340px; }
.certs__icon {
  flex: 0 0 44px; height: 44px; display: grid; place-items: center;
  background: var(--accent); color: #000; font-weight: 800; font-size: 1.3rem; border-radius: 10px;
}
.certs__title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: .2rem; }
.certs__text { color: var(--text-muted); }
.certs__count { flex: 1 1 220px; padding: var(--s-2) 0; }
.certs__count-num { font-size: 2.2rem; font-weight: 700; color: var(--accent); display: block; }

/* ============ FAQ ============ */
.faq {}
.faq__list { max-width: 820px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: var(--s-2); overflow: hidden; }
.faq__q {
  list-style: none; cursor: pointer; padding: var(--s-3) var(--s-3);
  font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: var(--s-2);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; font-size: 1.4rem; color: var(--accent); font-weight: 700; transition: transform .2s ease; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 var(--s-3) var(--s-3); color: var(--text-muted); }

/* ============ SOCIAL PROOF ============ */
.proof { background: var(--bg-2); border-block: 1px solid var(--line); }
.proof__logos { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-5); }
.proof__logo {
  flex: 1 1 200px; min-height: 70px; display: grid; place-items: center;
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--text-dim);
  font-family: var(--font-mono); font-size: .85rem; background: var(--surface);
}
.proof__logo--icon {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 82px; font-family: var(--font-body);
  color: var(--text-muted); border-style: solid; border-color: var(--line);
}
.proof__logo--icon svg { width: 38px; height: 38px; color: var(--accent); flex: 0 0 auto; }
.proof__logo-name { font-size: .9rem; font-weight: 600; line-height: 1.3; text-align: left; }
.proof__logo--icon:hover { border-color: rgba(255,107,26,.4); color: var(--text); }
.proof__quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin-bottom: var(--s-5); }
.quote { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: var(--s-3); }
.quote__text { color: var(--text); font-size: 1.02rem; margin-bottom: var(--s-2); font-style: normal; }
.quote__cap { display: block; }
.quote__name { font-weight: 700; color: var(--accent); display: block; }
.quote__role { color: var(--text-dim); font-size: .9rem; }
.proof__download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.proof__download-text { color: var(--text-muted); max-width: 520px; }
.proof__download-text strong { color: var(--text); }

/* ============ ACCESSIBILITY ============ */
.skip-link {
  position: absolute; left: var(--s-2); top: -100px; z-index: 300;
  background: var(--accent); color: #000; font-weight: 700; padding: .7rem 1.2rem; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: var(--s-2); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
.form__err { display: block; color: #ff9b9b; font-size: .85rem; margin-top: .3rem; }
.form input[aria-invalid="true"] { border-color: #ff5050; }

/* ============ FOOTER ============ */
.footer { background: #070707; border-top: 1px solid var(--line); padding-top: var(--s-6); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-4); padding-bottom: var(--s-5); }
.footer__text { color: var(--text-muted); margin-top: var(--s-1); max-width: 340px; }
.footer__h { font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin-bottom: var(--s-2); color: var(--text); }
.footer__address { color: var(--text-muted); font-style: normal; line-height: 1.9; }
.footer__address a { color: var(--accent); }
.footer__nav { display: flex; flex-direction: column; gap: .6rem; }
.footer__nav a { color: var(--text-muted); transition: color .2s; }
.footer__nav a:hover { color: var(--accent); }
.footer__bar { border-top: 1px solid var(--line); padding: var(--s-2) 0; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; color: var(--text-dim); font-size: .82rem; }

/* ============ STICKY MOBILE CTA ============ */
.sticky-cta {
  position: fixed; left: 50%; bottom: var(--s-2); transform: translateX(-50%) translateY(120%);
  z-index: 90; display: flex; align-items: center; gap: .7rem;
  background: var(--accent); color: #000; font-weight: 700; padding: .95rem 1.5rem;
  border-radius: 999px; box-shadow: 0 12px 30px -6px var(--accent-glow);
  transition: transform .4s cubic-bezier(.2,.7,.3,1); width: max-content; max-width: calc(100% - 2rem);
}
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta.hidden-on-form { opacity: 0; pointer-events: none; }

/* ============ LEGAL PAGES (Impressum / Datenschutz / AGB / 404) ============ */
.legal-hero { padding: calc(var(--nav-h) + var(--s-5)) 0 var(--s-3); }
.legal-content { max-width: 820px; padding-bottom: var(--s-6); }
.legal-content h2 { font-family: var(--font-head); font-size: 1.25rem; margin: var(--s-4) 0 var(--s-2); }
.legal-content h3 { font-family: var(--font-head); font-size: 1.05rem; margin: var(--s-3) 0 var(--s-1); }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: .7rem; }
.legal-content ul { padding-left: 1.2rem; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content strong { color: var(--text); }
.legal-content address { font-style: normal; color: var(--text); margin-bottom: var(--s-2); line-height: 1.8; }
.page-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + var(--s-5)) 0 var(--s-6); }
.page-404__code { font-family: var(--font-mono); font-size: 4.5rem; color: var(--accent); font-weight: 600; line-height: 1; margin-bottom: var(--s-2); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  section { padding: var(--s-5) 0; }
  .section-head { margin-bottom: var(--s-4); }
  .why__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .proof__quotes { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.open { display: flex; position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; background: var(--bg); padding: var(--s-4); border-bottom: 1px solid var(--line); align-items: flex-start; }
  .nav__links.open a { padding: .6rem 0; font-size: 1.2rem; }
}
@media (max-width: 640px) {
  /* Zmniejszone odstępy pionowe całych sekcji (~kompaktowy mobile) */
  section { padding: var(--s-4) 0; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + var(--s-2)); padding-bottom: var(--s-4); }
  .form__row { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: var(--s-2); padding: var(--s-2) var(--s-3); }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; }

  /* Ciaśniejsza typografia i nagłówki */
  .section-head { margin-bottom: var(--s-3); }
  .section-title { font-size: 1.6rem; line-height: 1.15; }
  .section-sub { font-size: 1.02rem; }
  .hero__title { font-size: 1.9rem; line-height: 1.1; }
  .hero__sub { font-size: 1.05rem; margin-bottom: var(--s-3); }
  .hero__meta { gap: .6rem var(--s-3); padding-top: var(--s-2); }
  .hero__cta { margin-bottom: var(--s-3); }
  .eyebrow { font-size: .74rem; margin-bottom: var(--s-1); }

  /* Ciaśniejsze karty i elementy listy */
  .card { padding: var(--s-3); }
  .service { padding: var(--s-3); }
  .card__title { font-size: 1.15rem; }
  .work__cap { padding: var(--s-2) var(--s-2) var(--s-3); }
  .portfolio__filters { gap: .5rem; margin-bottom: var(--s-3); }
  .portfolio__note { margin-top: var(--s-3); }

  /* Zmniejszone formularz i pola */
  .form { padding: var(--s-3); }
  .form__field { margin-bottom: var(--s-1); }
  .dropzone { padding: var(--s-3) var(--s-2); }
  .form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { padding: .7rem .9rem; }
  .btn--lg { padding: .95rem 1.5rem; font-size: 1rem; }

  /* Zwarta stopka */
  .footer { padding-top: var(--s-4); }
  .footer__grid { gap: var(--s-3); padding-bottom: var(--s-3); }

  /* Nowe sekcje: kompakt */
  .certs__inner { gap: var(--s-2); }
  .certs__badge { flex-direction: column; padding: var(--s-3); }
  .certs__count-num { font-size: 1.8rem; }
  .faq__q { padding: var(--s-2) var(--s-2); font-size: 1rem; }
  .faq__a { padding: 0 var(--s-2) var(--s-2); }
  .proof__logos { gap: var(--s-2); margin-bottom: var(--s-3); }
  .proof__logo { flex-basis: 45%; min-height: 56px; }
  .proof__quotes { margin-bottom: var(--s-3); }
  .quote { padding: var(--s-2); }
  .proof__download { padding-top: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .service, .step, button, a { transition: none !important; }
}
