/* =========================================================
   NM Technische Products | Global stylesheet
   Structure: tokens -> layout -> components -> responsive
   ========================================================= */

:root {
  --navy: #071a36;
  --blue: #0d5bd7;
  --blue-dark: #08439f;
  --ink: #132238;
  --muted: #65748b;
  --line: #dce3ec;
  --surface: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 26, 54, 0.10);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.container, main, section, article, header, footer, nav, div { min-width: 0; }
.section { padding: 96px 0; }
.section--soft { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,227,236,.9);
}
.nav {
  min-height: 84px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; color: var(--navy); }
.brand-logo { width: 67px; height: 67px; flex: 0 0 67px; display: block; }
.brand span:last-child { line-height: 1.05; }
.brand small { display: block; color: var(--blue); font-size: .62rem; letter-spacing: .1em; margin-top: 3px; }
.nav-links { display: flex; min-width: 0; align-items: center; gap: 26px; }
.nav-links a { color: #46566d; font-weight: 700; font-size: .94rem; position: relative; padding: 28px 0; }
.nav-links a::after { content:""; position:absolute; left:0; right:100%; bottom:20px; height:2px; background:var(--blue); transition:.25s; }
.nav-links a:hover::after, .nav-links a.active::after { right:0; }
.nav-links a.active { color: var(--navy); }
.nav-cta { padding: 11px 18px !important; border-radius: 999px; color:#fff !important; background:var(--navy); }
.nav-cta::after { display:none; }
.menu-toggle { display:none; border:0; background:transparent; padding:10px; }
.menu-toggle span { display:block; width:24px; height:2px; background:var(--navy); margin:5px 0; }

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; border:1px solid transparent; border-radius:999px; padding:13px 20px; font-weight:800; transition:transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(7,26,54,.13); }
.btn-primary { background:var(--blue); color:#fff; }
.btn-dark { background:var(--navy); color:#fff; }
.btn-outline { border-color:var(--line); background:#fff; color:var(--navy); }
.btn-link { color:var(--blue); padding-inline:0; border-radius:0; }
.btn-liquid {
  position: relative;
  background: none;
  border: 2px solid var(--blue);
  color: var(--navy);
  overflow: hidden;
  background: linear-gradient(var(--blue) 0 0) no-repeat calc(200% - var(--p, 0%)) 100% / 200% var(--p, 0.2em);
  transition: 0.3s var(--t, 0s), background-position 0.3s calc(0.3s - var(--t, 0s));
}
.btn-liquid:hover { --p: 100%; --t: 0.3s; color: #fff; }


/* Homepage hero slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-slides {
  position: relative;
  height: 540px;
  isolation: isolate;
  perspective: 1400px;
  perspective-origin: 50% 35%;
}

/*
 * Slider motion: depth-based product reveal.
 * Incoming slides rise from depth while the outgoing slide gently pushes
 * toward the viewer before leaving the stage.
 */
.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.82) translate3d(0, 48px, 0) rotateX(9deg);
  filter: blur(6px);
  transition:
    opacity 900ms cubic-bezier(.16, 1, .3, 1),
    transform 900ms cubic-bezier(.16, 1, .3, 1),
    filter 900ms cubic-bezier(.16, 1, .3, 1),
    visibility 0s linear 900ms;
  transform-style: preserve-3d;
  will-change: opacity, transform, filter;
}

.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translate3d(0, 0, 0) rotateX(0deg);
  filter: blur(0);
  transition-delay: 0s;
}

.hero-slide.is-leaving {
  z-index: 1;
  opacity: 0;
  visibility: visible;
  transform: scale(1.10) translate3d(0, -20px, 0) rotateX(-5deg);
  filter: blur(5px);
  transition-delay: 0s;
}

.hero-slide.is-leaving .hero-slide__media img {
  transform: scale(1.12);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
}

/* Dedicated media frame keeps the slow image zoom completely contained. */
.hero-slide__media {
  width: min(100%, 430px);
  height: 430px;
  flex: 0 0 430px;
  overflow: hidden;
  border-radius: 0;
}

.hero-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .45s ease;
  will-change: transform;
}

.hero-slide.is-active .hero-slide__media img {
  transform: scale(1.035);
}

/* Caption owns the space below the artwork, so it never covers the image/logo. */
.hero-slide__caption {
  position: relative;
  z-index: 2;
  width: min(430px, calc(100% - 80px));
  min-height: 86px;
  margin: 0;
  padding: 14px 20px 15px;
  border: 1px solid rgba(7,26,54,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 34px rgba(7,26,54,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(.985);
  transition:
    opacity 560ms cubic-bezier(.16, 1, .3, 1),
    transform 700ms cubic-bezier(.16, 1, .3, 1);
}

.hero-slide.is-active .hero-slide__caption {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 110ms;
}

.hero-slide__caption strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
}

.hero-slide__caption small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.5;
}

/*
 * Arrow controls use an inline SVG so the shaft can draw in before the
 * chevron head appears. The control remains geometrically centred.
 */
.hero-slider__control {
  --control-size: 56px;
  position: absolute;
  top: 50%;
  z-index: 5;
  width: var(--control-size);
  height: var(--control-size);
  display: grid;
  place-items: center;
  padding: 0;
  transform: translate3d(0, -50%, 0);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(53,75,103,.96), rgba(30,48,72,.96));
  color: #fff;
  font-size: 0;
  line-height: 0;
  opacity: .98;
  box-shadow: 0 12px 28px rgba(7,26,54,.16), inset 0 1px 0 rgba(255,255,255,.18);
  --pointer-x: 0px;
  --pointer-y: 0px;
  transition:
    background 420ms cubic-bezier(.16,1,.3,1),
    box-shadow 420ms cubic-bezier(.16,1,.3,1),
    transform 420ms cubic-bezier(.16,1,.3,1),
    border-color 420ms cubic-bezier(.16,1,.3,1);
}

.hero-slider__control::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent 46%);
  opacity: .8;
  pointer-events: none;
}

.hero-slider__control::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(13,91,215,0);
  border-radius: inherit;
  transform: scale(.9);
  transition:
    transform 500ms cubic-bezier(.16,1,.3,1),
    border-color 500ms cubic-bezier(.16,1,.3,1),
    opacity 500ms cubic-bezier(.16,1,.3,1);
  opacity: 0;
}

.hero-slider__arrow-icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
  color: currentColor;
  transition: transform 420ms cubic-bezier(.16,1,.3,1);
}

.hero-slider__arrow-icon .arrow-shaft {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 320ms cubic-bezier(.16,1,.3,1);
}

.hero-slider__arrow-icon .arrow-head {
  opacity: 0;
  transition: opacity 200ms ease 160ms;
}

.hero-slider__control--prev .hero-slider__arrow-icon {
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scaleX(-1);
}

.hero-slider__control--next .hero-slider__arrow-icon {
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0);
}

.hero-slider__control--prev { left: calc(50% - 240px); }
.hero-slider__control--next { right: calc(50% - 240px); }

.hero-slider__control:hover {
  background: var(--blue);
  border-color: rgba(255,255,255,.98);
  box-shadow: 0 16px 34px rgba(7,26,54,.22), 0 0 0 4px rgba(13,91,215,.08), inset 0 1px 0 rgba(255,255,255,.24);
  transform: translate3d(0, -50%, 0) scale(1.06);
}

.hero-slider__control:hover::after {
  border-color: rgba(13,91,215,.18);
  transform: scale(1);
  opacity: 1;
}

.hero-slider__control:hover .arrow-shaft {
  stroke-dashoffset: 0;
}

.hero-slider__control:hover .arrow-head {
  opacity: 1;
}

.hero-slider__control--prev:hover .hero-slider__arrow-icon {
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0) scaleX(-1) translateX(1px);
}

.hero-slider__control--next:hover .hero-slider__arrow-icon {
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0) translateX(1px);
}

.hero-slider__control:active {
  transform: translate3d(0, -50%, 0) scale(.97);
}

.hero-slider__control:active::after {
  transform: scale(1.15);
  opacity: 0;
  transition-duration: 300ms;
}

.hero-slider__control:focus-visible {
  outline: 3px solid rgba(13,91,215,.22);
  outline-offset: 3px;
}

.hero-slider__dots {
  position: absolute;
  z-index: 6;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-slider__dots button {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  box-shadow: 0 0 0 1px rgba(7,26,54,.12);
  transition: width 560ms cubic-bezier(.22,.61,.36,1), border-radius 560ms cubic-bezier(.22,.61,.36,1), background 560ms cubic-bezier(.22,.61,.36,1);
}

.hero-slider__dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: #fff;
}

.hero-slider__dots button.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: rgba(13,91,215,.22);
}

.hero-slider.is-playing .hero-slider__dots button.is-active::after {
  width: 100%;
  transition: width 6500ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide__caption,
  .hero-slide__media img,
  .hero-slider__control,
  .hero-slider__control::before,
  .hero-slider__control::after,
  .hero-slider__arrow-icon,
  .hero-slider__dots button { transition:none !important; }
}

/* Hero */
.hero { background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%); overflow:hidden; }
.hero-grid { min-height: 650px; min-width: 0; display:grid; grid-template-columns: 1.02fr .98fr; align-items:center; gap:60px; }
.hero-copy { padding: 70px 0; }
.hero-copy h1 span { color:var(--blue); }
.hero-actions { display:flex; min-width:0; flex-wrap:wrap; gap:12px; margin:30px 0; }
.hero-meta { display:flex; min-width:0; flex-wrap:wrap; gap:20px; color:#4f5f74; font-size:.88rem; font-weight:700; }
.hero-meta span { display:flex; align-items:center; gap:7px; }
.hero-media { position:relative; }
.hero-image { width:100%; height:auto; aspect-ratio:auto; object-fit:contain; border-radius:28px; box-shadow:var(--shadow); background:#fff; }
.hero-badge { position:absolute; left:-25px; bottom:28px; background:#fff; border-radius:16px; padding:17px 20px; box-shadow:var(--shadow); max-width:220px; }
.hero-badge strong { display:block; color:var(--navy); }
.hero-badge small { color:var(--muted); }

/* Cards / grids */
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.card { border:1px solid var(--line); border-radius:var(--radius); background:#fff; overflow:hidden; transition:.25s; }
.card:hover { transform:translateY(-5px); box-shadow:var(--shadow); border-color:#c9d6e7; }
.card-media { overflow:hidden; background:#edf2f7; }
.card-media img { width:100%; height:auto; object-fit:contain; transition:transform .45s ease; }
.card:hover .card-media img { transform:scale(1.035); }
.card-body { padding:24px; }
.card-body p { color:var(--muted); margin-bottom:0; }

.service-card { padding:28px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; }
.icon { width:48px; height:48px; border-radius:13px; display:grid; place-items:center; background:#e9f1ff; color:var(--blue); margin-bottom:22px; }
.icon svg { width:25px; height:25px; }
.service-card p { color:var(--muted); margin-bottom:0; }

.split { display:grid; grid-template-columns: .9fr 1.1fr; gap:70px; align-items:center; }
.split--reverse { grid-template-columns: 1.1fr .9fr; }
.split-media img { width:100%; height:auto; object-fit:contain; border-radius:24px; box-shadow:var(--shadow); background:#fff; }
.split-copy ul { padding:0; margin:28px 0; list-style:none; display:grid; gap:13px; }
.split-copy li { display:flex; gap:12px; align-items:flex-start; }
.check { width:23px; height:23px; min-width:23px; border-radius:50%; display:grid; place-items:center; background:#e7f0ff; color:var(--blue); font-size:.75rem; font-weight:900; margin-top:2px; }

.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:20px; overflow:hidden; }
.stat { padding:28px; background:#fff; }
.stat strong { display:block; font-size:2rem; color:var(--navy); }
.stat span { color:var(--muted); font-size:.9rem; }

.banner { background:var(--navy); color:#fff; border-radius:26px; padding:52px; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.banner p { color:#c4d0e0; margin-bottom:0; }
.banner .btn { background:#fff; color:var(--navy); }

/* Page hero */
.page-hero { padding:80px 0; background:linear-gradient(135deg,var(--navy),#0d3e79); color:#fff; }
.page-hero .lead { color:#c8d5e7; }
.breadcrumb { color:#9eb1c9; font-size:.88rem; margin-bottom:20px; }

/* Products */
.filter-bar { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:30px; }
.filter-btn { border:1px solid var(--line); background:#fff; color:#506078; border-radius:999px; padding:9px 15px; font-weight:800; }
.filter-btn.active, .filter-btn:hover { background:var(--navy); color:#fff; border-color:var(--navy); }
.product-card { position:relative; }
.product-tag { position:absolute; top:14px; left:14px; background:rgba(255,255,255,.94); padding:6px 10px; border-radius:999px; font-size:.72rem; font-weight:900; color:var(--navy); z-index:2; }

/* Process */
.process { display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid var(--line); }
.process-step { padding:28px 24px; border-right:1px solid var(--line); position:relative; }
.process-step:last-child { border-right:0; }
.step-no { color:var(--blue); font-size:.78rem; font-weight:900; letter-spacing:.1em; }

/* Gallery */
.gallery {
  width:100%;
  max-width:1000px;
  margin-inline:auto;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.gallery-card {
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 2px 0 rgba(7,26,54,.02);
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.gallery-card:hover {
  transform:translateY(-6px);
  border-color:#c5d4e7;
  box-shadow:0 18px 38px rgba(7,26,54,.12);
}

.gallery-card__media {
  overflow:hidden;
  background:#edf2f7;
}

.gallery-card__media img {
  width:100%;
  height:auto;
  object-fit:contain;
  transition:transform .45s ease;
}

.gallery-card:hover .gallery-card__media img {
  transform:scale(1.035);
}

.gallery-card__body {
  min-height:78px;
  padding:17px 20px;
  border-top:1px solid var(--line);
  background:#fff;
}

.gallery-card__body h3 {
  margin:0 0 4px;
  font-size:1rem;
  color:var(--navy);
}

.gallery-card__body span {
  color:var(--muted);
  font-size:.84rem;
}

.contact-details {
  display:grid;
  gap:14px;
  margin-top:28px;
}
.contact-detail {
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.contact-detail strong { display:block; margin-bottom:4px; color:var(--navy); }
.contact-detail a, .contact-detail span { color:var(--muted); }
.contact-detail a:hover { color:var(--blue); }

/* Contact */
.contact-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:30px; }
.contact-list { display:grid; gap:14px; }
.contact-item { display:flex; gap:15px; padding:18px; border:1px solid var(--line); border-radius:16px; }
.contact-item .icon { margin:0; min-width:42px; width:42px; height:42px; }
.contact-item strong { display:block; }
.contact-item span { color:var(--muted); font-size:.92rem; }
.form { border:1px solid var(--line); border-radius:22px; padding:30px; background:#fff; box-shadow:0 12px 35px rgba(7,26,54,.05); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { display:grid; gap:7px; }
.field--full { grid-column:1 / -1; }
.field label { font-weight:800; font-size:.85rem; }
.field input, .field textarea, .field select { width:100%; border:1px solid #ccd6e2; border-radius:12px; padding:12px 13px; outline:none; background:#fff; color:var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(13,91,215,.1); }
.field textarea { min-height:140px; resize:vertical; }
.form-note { color:var(--muted); font-size:.82rem; margin-top:10px; }
.form-status { display:none; margin-top:15px; padding:12px 14px; border-radius:10px; background:#eaf7ef; color:#21633a; font-weight:700; }
.form-status.show { display:block; }

.footer-brand-copy { margin:18px 0 0; max-width:310px; }
.contact-list--spaced { margin-top:28px; }
.page-hero--centered { min-height:100vh; display:grid; place-items:center; text-align:center; }
.page-hero__lead { margin:0 auto 28px; }

/* Footer */
.footer { background:var(--navy); color:#fff; padding:70px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px; padding-bottom:45px; }
.footer .brand { color:#fff; }
.footer p, .footer a { color:#aebed2; }
.footer h3 { font-size:1rem; margin-bottom:14px; }
.footer-links { display:grid; gap:9px; font-size:.92rem; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding-top:20px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px 20px; color:#8fa1b8; font-size:.8rem; }

.reveal { opacity:0; transform:translateY(18px); transition:.6s ease; }
.reveal.visible { opacity:1; transform:none; }



/* Shared interactive cards */
.service-card,
.stat,
.process-step,
.contact-item {
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.service-card:hover,
.stat:hover,
.process-step:hover,
.contact-item:hover {
  transform:translateY(-4px);
  border-color:#c5d4e7;
  box-shadow:0 14px 30px rgba(7,26,54,.08);
}

.service-card:hover .icon,
.contact-item:hover .icon {
  transform:translateY(-2px);
}

.service-card .icon,
.contact-item .icon {
  transition:transform .25s ease;
}

.process-step:hover {
  background:#fbfdff;
}

.stat:hover {
  background:#fbfdff;
}

.banner {
  transition:transform .28s ease, box-shadow .28s ease;
}

.banner:hover {
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(7,26,54,.16);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .gallery-card,
  .gallery-card__media img,
  .service-card,
  .stat,
  .process-step,
  .contact-item,
  .banner,
  .service-card .icon,
  .contact-item .icon,
  .btn {
    transition:none;
  }
}

@media (max-width: 1080px) {
  .nav-links { position:absolute; top:84px; left:0; right:0; background:#fff; padding:18px 20px 25px; display:none; flex-direction:column; align-items:stretch; border-bottom:1px solid var(--line); box-shadow:0 18px 30px rgba(7,26,54,.08); }
  .nav-links.open { display:flex; }
  .nav-links a { padding:10px 0; }
  .nav-links a::after { bottom:3px; }
  .menu-toggle { display:block; }
  .hero-grid, .split, .split--reverse, .contact-grid { grid-template-columns:1fr; }
  .hero-grid { min-height:auto; padding-bottom:70px; }
  .hero-copy { padding-bottom:20px; }
  .hero-badge { left:18px; }
  .grid-4, .process { grid-template-columns:repeat(2,1fr); }
  .process-step:nth-child(2) { border-right:0; }
  .process-step:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 900px) and (min-width: 681px) {
  .gallery { max-width:720px; }
}

@media (max-width: 680px) {
  .container { width:min(var(--container), calc(100% - 28px)); }
  .section { padding:70px 0; }
  .nav { min-height:70px; }
  .nav-links { top:70px; }
  .brand-logo { width:50px; height:50px; flex-basis:50px; }
  .brand small { display:none; }
  h1 { font-size:2.7rem; }
  .grid-3, .grid-4, .stats, .process { grid-template-columns:1fr; }
  .stats { gap:0; }
  .stat { border-bottom:1px solid var(--line); }
  .process-step { border-right:0; border-bottom:1px solid var(--line); }
  .process-step:last-child { border-bottom:0; }
  .gallery { grid-template-columns:1fr; }
  .gallery-card { width:100%; }
  .gallery-card__body { min-height:0; }
  .banner { padding:32px 24px; flex-direction:column; align-items:flex-start; }
  .form-grid { grid-template-columns:1fr; }
  .field--full { grid-column:auto; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { flex-direction:column; }
}


/* Responsive safety: prevent accidental overflow on narrow screens. */
@media (max-width: 680px) {
  html, body { width:100%; max-width:100%; overflow-x:clip; }
  .container { width:calc(100% - 28px); max-width:100%; }
  .hero-grid, .split, .contact-grid, .grid-3, .grid-4, .stats, .process, .gallery, .footer-grid { width:100%; max-width:100%; }
  .hero-copy, .hero-media, .split-copy, .split-media, .section-head, .service-card, .card, .form, .banner { max-width:100%; }
  .hero-image, .split-media img, .card-media img, .gallery-card__media img { width:100%; max-width:100%; height:auto; }
  .hero-badge { position:relative; left:auto; bottom:auto; margin:-36px 14px 0; max-width:calc(100% - 28px); }
  .hero-actions .btn { max-width:100%; }
  .hero-meta { gap:10px 16px; }
  .lead, p, li, h1, h2, h3, a, span, label { overflow-wrap:anywhere; }
}

/* Contact page: focused quote experience */
.contact-hero {
  background:linear-gradient(135deg,#f7faff 0%,#edf4fc 100%);
  border-bottom:1px solid var(--line);
}
.contact-hero__inner {
  min-height:330px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  padding:72px 0 64px;
}
.contact-hero h1 { max-width:850px; margin:14px 0 18px; font-size:clamp(2.7rem,5.6vw,5rem); }
.contact-hero h1 span { color:var(--blue); }
.contact-hero .lead { max-width:720px; margin-bottom:0; }
.contact-hero__signal {
  flex:0 0 310px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:18px 20px;
  border:1px solid #d5e0ee;
  border-radius:16px;
  background:rgba(255,255,255,.78);
  box-shadow:0 12px 30px rgba(7,26,54,.05);
}
.contact-hero__signal-dot { width:10px; height:10px; flex:0 0 10px; border-radius:50%; background:var(--blue); box-shadow:0 0 0 6px #e5efff; }
.contact-hero__signal strong { display:block; color:var(--navy); font-size:.9rem; }
.contact-hero__signal small { color:var(--muted); font-size:.76rem; }

.contact-section { background:#fff; }
.contact-layout { display:grid; grid-template-columns:minmax(280px,.78fr) minmax(0,1.22fr); gap:56px; align-items:start; }
.contact-sidebar { display:grid; gap:30px; }
.contact-intro { max-width:520px; }
.contact-intro h2 { margin-top:14px; }
.contact-intro .lead { font-size:1rem; }

/* Left column is split into two clear information systems. */
.brief-block,
.contact-info-block { padding-top:2px; }
.side-section-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.side-kicker {
  display:block;
  margin-bottom:6px;
  color:var(--blue);
  font-size:.66rem;
  font-weight:900;
  letter-spacing:.16em;
}
.side-section-head h3 { margin:0; color:var(--navy); font-size:1.02rem; }
.side-section-mark {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  flex:0 0 30px;
  border:1px solid #d9e4f1;
  border-radius:10px;
  background:#f5f8fc;
  color:var(--blue);
  font-size:.78rem;
  font-weight:900;
}
.brief-list { display:grid; gap:9px; margin-top:0; }
.brief-card {
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:13px;
  align-items:start;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.brief-card:hover { transform:translateY(-4px); border-color:#c5d4e7; box-shadow:0 14px 30px rgba(7,26,54,.08); }
.brief-number { width:36px; height:36px; display:grid; place-items:center; border-radius:10px; background:#eaf1ff; color:var(--blue); font-weight:800; font-size:.8rem; }
.brief-card h3 { margin:2px 0 4px; font-size:.91rem; }
.brief-card p { margin:0; color:var(--muted); font-size:.78rem; line-height:1.45; }

.contact-info-block { border-top:1px solid #e6edf5; padding-top:24px; }
.contact-card-stack { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:0; }
.contact-detail {
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  min-width:0;
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  color:var(--ink);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease,background .25s ease;
}
.contact-detail:hover { transform:translateY(-3px); border-color:#c5d4e7; box-shadow:0 12px 25px rgba(7,26,54,.07); background:#fbfdff; }
.contact-detail__icon { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; background:#edf3ff; color:var(--blue); font-size:.62rem; font-weight:900; }
.contact-detail strong { display:block; margin:0 0 2px; color:var(--navy); font-size:.76rem; }
.contact-detail small { display:block; color:var(--muted); font-size:.69rem; line-height:1.4; }
.contact-detail__arrow { color:#90a0b5; font-size:.82rem; transition:transform .2s ease,color .2s ease; }
.contact-detail:hover .contact-detail__arrow { color:var(--blue); transform:translate(2px,-2px); }
.contact-detail--address { grid-column:1 / -1; }
.contact-detail--address small { max-width:290px; }

.quote-panel {
  position:relative;
  overflow:hidden;
  border:1px solid #d5dfeb;
  border-radius:24px;
  background:#fff;
  box-shadow:0 24px 60px rgba(7,26,54,.09);
}
.quote-panel::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:linear-gradient(90deg,var(--blue),#6ea7ff); }
.quote-panel__head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding:30px 32px 4px; }
.quote-panel__head h2 { margin:12px 0 0; font-size:clamp(1.8rem,3vw,2.5rem); }
.quote-panel__badge { display:inline-flex; align-items:center; gap:4px; padding:8px 11px; border-radius:999px; background:#edf3ff; color:var(--blue); font-weight:900; font-size:.72rem; }
.quote-panel__badge small { color:#8191a8; font-weight:700; }
.form--clean { border:0; border-radius:0; padding:26px 32px 32px; box-shadow:none; }
.form-section + .form-section { margin-top:28px; padding-top:28px; border-top:1px solid #e7edf4; }
.form-section__title { display:flex; align-items:center; gap:11px; margin-bottom:17px; }
.form-section__title > span { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; background:#edf3ff; color:var(--blue); font-size:.7rem; font-weight:900; }
.form-section__title strong { display:block; color:var(--navy); font-size:.92rem; }
.form-section__title small { display:block; margin-top:1px; color:var(--muted); font-size:.74rem; }
.form--clean .form-grid { gap:15px; }
.form--clean .field { gap:6px; }
.form--clean .field label { font-size:.76rem; }
.form--clean .field input,.form--clean .field textarea,.form--clean .field select { padding:12px 13px; border-radius:11px; font-size:.88rem; }
.form--clean .field textarea { min-height:122px; }
.form-actions { display:flex; align-items:center; gap:18px; margin-top:25px; }
.form-actions .btn { min-height:48px; padding-inline:22px; }
.form-actions .form-note { margin:0; max-width:430px; }
.contact-reference { border-top:1px solid var(--line); }

@media (max-width:1080px) {
  .contact-hero__signal { flex-basis:270px; }
  .contact-layout { grid-template-columns:1fr; gap:42px; }
  .contact-sidebar { max-width:760px; }
  .contact-card-stack { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .quote-panel { width:100%; }
}

@media (max-width:680px) {
  .contact-hero__inner { min-height:0; display:block; padding:58px 0 48px; }
  .contact-hero h1 { font-size:2.65rem; }
  .contact-hero__signal { margin-top:28px; width:100%; }
  .contact-layout { gap:34px; }
  .contact-sidebar { gap:24px; }
  .contact-card-stack { grid-template-columns:1fr; }
  .contact-detail--address { grid-column:auto; }
  .quote-panel__head { padding:24px 20px 0; }
  .quote-panel__head h2 { font-size:1.8rem; }
  .form--clean { padding:22px 20px 24px; }
  .form-section + .form-section { margin-top:24px; padding-top:24px; }
  .form-actions { align-items:stretch; flex-direction:column; gap:10px; }
  .form-actions .btn { width:100%; }
  .form-actions .form-note { max-width:none; }
}




/* Responsive slider sizing */
@media (max-width: 700px) {
  .hero-slides {
    height: 500px;
  }

  .hero-slide__media {
    width: min(100%, 390px);
    height: 390px;
    flex-basis: 390px;
  }

  .hero-slide__caption {
    width: min(390px, calc(100% - 64px));
    min-height: 78px;
    padding: 12px 15px 13px;
    border-radius: 16px;
  }

  .hero-slide__caption strong { font-size: .92rem; }
  .hero-slide__caption small { font-size: .72rem; }

  .hero-slider__control {
    width: 38px;
    height: 38px;
  }

  .hero-slider__control--prev { left: calc(50% - 214px); }
  .hero-slider__control--next { right: calc(50% - 214px); }

  .hero-slider__dots {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .hero-slides { height: 455px; }

  .hero-slide__media {
    width: min(100%, 340px);
    height: 340px;
    flex-basis: 340px;
  }

  .hero-slide__caption {
    width: calc(100% - 56px);
    min-height: 76px;
  }

  .hero-slider__control {
    width: 36px;
    height: 36px;
  }

  .hero-slider__control--prev { left: calc(50% - 188px); }
  .hero-slider__control--next { right: calc(50% - 188px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide__media img,
  .hero-slider__control,
  .hero-slider__dots button {
    transition: none !important;
  }
}

/* =========================================================
   NM TECHNISCHE PRODUCTS
   FULL-BLEED CINEMATIC HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 84px));
  overflow: hidden;
  isolation: isolate;
  background: #071a36;
}

/* Full-width image stage */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* Remove the old contained-card treatment */
.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #071a36;
  box-shadow: none;
}

/* Full hero slide area */
.hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  perspective: none;
}

/* Individual full-screen slide */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.045);
  filter: blur(2px);
  transition:
    opacity 1100ms cubic-bezier(.16, 1, .3, 1),
    transform 6000ms cubic-bezier(.16, 1, .3, 1),
    filter 1100ms cubic-bezier(.16, 1, .3, 1),
    visibility 0s linear 1100ms;
}

/* Active slide */
.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  filter: blur(0);
}

/* Leaving slide */
.hero-slide.is-leaving {
  z-index: 1;
  opacity: 0;
  visibility: visible;
  transform: scale(1.08);
  filter: blur(4px);
}

/* Full-bleed image */
.hero-slide__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}

/* Cinematic image treatment */
.hero-slide__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition:
    transform 6000ms cubic-bezier(.16, 1, .3, 1),
    filter 1100ms cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

/* Slow cinematic movement while slide is active */
.hero-slide.is-active .hero-slide__media img {
  transform: scale(1.08);
}

/* Outgoing image pushes forward slightly */
.hero-slide.is-leaving .hero-slide__media img {
  transform: scale(1.13);
}

/* =========================================================
   LEFT-SIDE READABILITY LAYER
   ========================================================= */

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(245, 248, 252, .98) 0%,
      rgba(245, 248, 252, .94) 24%,
      rgba(245, 248, 252, .76) 43%,
      rgba(245, 248, 252, .30) 63%,
      rgba(245, 248, 252, 0) 82%
    );
}

/* Very subtle bottom protection */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    rgba(7, 26, 54, .20),
    transparent
  );
}

/* Keep the existing text above the image */
.hero-grid {
  position: relative;
  z-index: 3;
  min-height: min(760px, calc(100vh - 84px));
  display: block;
}

/* Preserve your existing hero content */
.hero-copy {
  position: relative;
  z-index: 4;
  width: min(620px, 58%);
  padding: 110px 0 90px;
}

/* Keep the existing headline treatment */
.hero-copy h1 span {
  color: var(--blue);
}

/* Keep buttons above everything */
.hero-actions,
.hero-meta {
  position: relative;
  z-index: 5;
}

/* =========================================================
   SLIDE CAPTION
   ========================================================= */

.hero-slide__caption {
  position: absolute;
  z-index: 5;
  right: 42px;
  bottom: 42px;
  width: min(390px, 34vw);
  min-height: 0;
  margin: 0;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 16px;
  background: rgba(7, 26, 54, .72);
  box-shadow: 0 18px 50px rgba(7, 26, 54, .22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 700ms cubic-bezier(.16, 1, .3, 1),
    transform 700ms cubic-bezier(.16, 1, .3, 1);
}

.hero-slide.is-active .hero-slide__caption {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 180ms;
}

.hero-slide__caption strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

.hero-slide__caption small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .76);
  line-height: 1.5;
}

/* =========================================================
   HERO CONTROLS
   ========================================================= */

.hero-slider__control {
  --control-size: 54px;
  position: absolute;
  top: 50%;
  z-index: 8;
  width: var(--control-size);
  height: var(--control-size);
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  background: rgba(7, 26, 54, .58);
  color: #fff;
  box-shadow: 0 14px 32px rgba(7, 26, 54, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-slider__control:hover {
  background: rgba(13, 91, 215, .88);
}

.hero-slider__control--prev {
  left: 28px;
}

.hero-slider__control--next {
  right: 28px;
}

/* =========================================================
   HERO DOTS / PROGRESS
   ========================================================= */

.hero-slider__dots {
  position: absolute;
  z-index: 8;
  right: 42px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-slider__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 0 0 1px rgba(7, 26, 54, .12);
}

.hero-slider__dots button.is-active {
  width: 32px;
  border-radius: 999px;
  background: #fff;
}

/* 6-second progress indicator */
.hero-slider.is-playing .hero-slider__dots button.is-active::after {
  width: 100%;
  transition: width 6000ms linear;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1080px) {
  .hero {
    min-height: 720px;
  }

  .hero-grid {
    min-height: 720px;
  }

  .hero-copy {
    width: min(650px, 68%);
    padding: 100px 0 80px;
  }

  .hero-slide__caption {
    right: 28px;
    bottom: 38px;
    width: min(360px, 40vw);
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 720px;
  }

  .hero-grid {
    min-height: 720px;
  }

  .hero-copy {
    width: 100%;
    padding: 76px 0 70px;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(245, 248, 252, .98) 0%,
        rgba(245, 248, 252, .92) 34%,
        rgba(245, 248, 252, .54) 58%,
        rgba(245, 248, 252, .08) 82%,
        rgba(7, 26, 54, .18) 100%
      );
  }

  .hero-slide__caption {
    right: 18px;
    left: 18px;
    bottom: 34px;
    width: auto;
    padding: 14px 16px;
  }

  .hero-slider__control {
    --control-size: 42px;
  }

  .hero-slider__control--prev {
    left: 14px;
  }

  .hero-slider__control--next {
    right: 14px;
  }

  .hero-slider__dots {
    right: 18px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide__media img,
  .hero-slide__caption,
  .hero-slider__control,
  .hero-slider__dots button {
    transition: none !important;
  }
}