/* =========================================================
   ESCO Elektrik — Design tokens
   ========================================================= */
:root {
  --red: #E52329;
  --red-700: #C41C22;
  --graphite: #222326;
  --charcoal: #34363A;
  --off: #F7F7F5;
  --white: #FFFFFF;
  --line: #E8E9EA;
  --muted: #70747A;
  --ink: #222326;
  --on-dark: rgba(255, 255, 255, .92);
  --on-dark-muted: rgba(255, 255, 255, .66);
  --line-dark: rgba(255, 255, 255, .12);

  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* 8px spacing scale */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s7: 56px; --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;

  --container: 1440px;
  --gutter: 80px;
  --header-h: 84px;
  --section-y: var(--s16);

  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .45s;
}

@media (max-width: 1200px) { :root { --gutter: 48px; --section-y: var(--s12); } }
@media (max-width: 1024px) { :root { --header-h: 72px; } }
@media (max-width: 768px)  { :root { --gutter: 32px; --section-y: 80px; } }
@media (max-width: 480px)  { :root { --gutter: 24px; --section-y: 64px; --header-h: 64px; } }

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--graphite); color: #fff; padding: 12px 16px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Icons */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 24px; height: 24px; }
.ico--xl { width: 40px; height: 40px; }
.ico--line { stroke-width: 1.2; }
/* =========================================================
   Typography
   ========================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow--red { color: var(--red); }
.eyebrow--red::before { content: ""; width: 24px; height: 2px; background: currentColor; }

.h2, .h3, .h4, .hero__title, .cap__title {
  font-family: var(--font-head); color: var(--graphite); letter-spacing: -.02em;
}
.h2 {
  font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; font-weight: 800;
  text-transform: uppercase; margin-top: var(--s2); max-width: 18ch;
}
.h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; font-weight: 700; }
.h4 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.lead { font-size: 18px; line-height: 1.65; }
.muted { color: var(--muted); font-size: 14px; }

/* =========================================================
   Buttons & links
   ========================================================= */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 24px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--lg { --h: 56px; padding: 0 32px; font-size: 16px; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-700); }
.btn--dark { background: var(--graphite); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--graphite); color: var(--graphite); }
.btn--outline:hover { background: var(--graphite); color: #fff; }
.btn--outline:hover .ico { transform: none; }
.btn--outline-red { border-color: var(--red); color: var(--red); }
.btn--outline-red:hover { background: var(--red); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--graphite); border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--graphite);
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
  transition: color .25s var(--ease), gap .3s var(--ease);
}
.link-arrow .ico { width: 18px; height: 18px; color: var(--red); }
.link-arrow:hover { color: var(--red); gap: 14px; }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: #fff; }

.arrow-box {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border: 1px solid var(--line); color: var(--graphite);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.arrow-box--red { background: var(--red); border-color: var(--red); color: #fff; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; color: var(--graphite);
  border-radius: var(--radius); transition: background-color .2s;
}
.icon-btn:hover { background: var(--off); }

/* =========================================================
   Header + navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(34, 35, 38, .35); }
.header__inner { display: flex; align-items: center; gap: var(--s3); height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 132px; height: auto; }
.brand__sub {
  font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--graphite);
  padding-left: 10px; border-left: 1px solid var(--line); line-height: 28px;
}

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav__head, .primary-nav__foot { display: none; }
.nav-list { display: flex; align-items: stretch; height: var(--header-h); }
.nav-list > li { display: flex; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 0 10px; font-size: 15px; font-weight: 500; color: var(--graphite); white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link .ico { transition: transform .3s var(--ease); color: var(--muted); }
.nav-link[aria-expanded="true"] .ico { transform: rotate(180deg); color: var(--red); }

.header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--graphite);
  list-style: none; cursor: pointer; border-radius: var(--radius);
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn:hover { background: var(--off); }
.lang__flag { width: 20px; height: 14px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.lang__btn .ico { width: 14px; height: 14px; color: var(--muted); transition: transform .3s var(--ease); }
.lang[open] > .lang__btn .ico { transform: rotate(180deg); color: var(--red); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 40;
  min-width: 232px; max-height: min(420px, 70vh); overflow: auto;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 32px 48px -32px rgba(34, 35, 38, .45); padding: 8px 0;
}
.lang__menu a {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  font-size: 14px; font-weight: 600; color: var(--graphite);
}
.lang__menu a:hover { background: var(--off); }
.lang__menu a[aria-current="true"] { color: var(--red); }
.lang__menu small { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.lang__menu a[aria-current="true"] small { color: var(--red); }
.nav-toggle { display: none; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 32px 48px -32px rgba(34, 35, 38, .35);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-sub { position: relative; }
.has-sub .mega { left: 0; right: auto; top: calc(100% - 1px); min-width: 240px; border: 1px solid var(--line); border-top: 0; }
.nav-sub { display: grid; padding: 8px 0; }
.nav-sub a { display: block; padding: 12px 20px; font-size: 15px; font-weight: 600; color: var(--graphite); }
.nav-sub a:hover { background: var(--off); color: var(--red); }
.mega__grid {
  display: grid; grid-template-columns: 3fr 6fr 3fr; gap: var(--s6);
  padding-block: var(--s6) var(--s6);
}
.mega__title { font-family: var(--font-head); font-size: 24px; font-weight: 800; line-height: 1.2; margin: 16px 0 12px; color: var(--graphite); }
.mega__text { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.mega__services { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); align-self: start; }
.mega__services a {
  display: flex; gap: 16px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}
.mega__services a:hover { background: var(--off); }
.mega__services .ico { width: 28px; height: 28px; color: var(--red); }
.mega__services strong { display: block; font-size: 15px; font-weight: 600; color: var(--graphite); }
.mega__services small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.mega__feature { position: relative; display: block; min-height: 280px; overflow: hidden; background: var(--charcoal); color: #fff; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: transform .6s var(--ease); }
.mega__feature:hover img { transform: scale(1.04); }
.mega__feature-body { position: absolute; inset: auto 0 0 0; padding: 24px; display: grid; gap: 12px; }
.mega__feature-body .eyebrow { color: rgba(255, 255, 255, .7); }
.mega__feature-body strong { font-family: var(--font-head); font-size: 20px; line-height: 1.25; }

.mega__grid--products { grid-template-columns: repeat(3, 1fr) 1fr; gap: var(--s4); }
.mega__cat {
  display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; color: var(--graphite);
}
.mega__cat .ico { width: 28px; height: 28px; color: var(--red); }
.mega__cat:hover { color: var(--red); }
.mega__links li + li { margin-top: 10px; }
.mega__links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.mega__links a:hover { color: var(--graphite); }
.mega__catalog {
  display: grid; gap: 12px; align-content: start; padding: 24px; background: var(--off); border: 1px solid var(--line);
}
.mega__catalog > .ico { width: 32px; height: 32px; color: var(--red); }
.mega__catalog strong { font-family: var(--font-head); font-size: 17px; line-height: 1.3; color: var(--graphite); }
.mega__catalog .link-arrow { justify-self: start; }
.nav-scrim { display: none; }

/* Search dialog */
.search {
  width: 100%; max-width: none; height: auto; margin: 0; padding: 0; border: 0;
  background: #fff; color: var(--ink); border-bottom: 1px solid var(--line);
}
.search::backdrop { background: rgba(34, 35, 38, .55); }
.search[open] { animation: drop .3s var(--ease); }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }
.search__inner { padding-block: var(--s5); }
.search__form { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--graphite); padding-bottom: 12px; }
.search__form > .ico { color: var(--red); }
.search__form input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font-family: var(--font-head); font-size: clamp(20px, 2.4vw, 32px); font-weight: 700; color: var(--graphite);
}
.search__form input::placeholder { color: #A5A8AC; }
.search__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.search__suggest ul { display: flex; flex-wrap: wrap; gap: 8px; }
.search__suggest a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); font-size: 14px; transition: border-color .2s, color .2s; }
.search__suggest a:hover { border-color: var(--red); color: var(--red); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; height: 700px; min-height: 560px; max-height: calc(100vh - var(--header-h)); background: var(--graphite); color: #fff; overflow: hidden; }
@media (min-height: 900px) { .hero { max-height: none; } }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 0s 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 70% 40%; }
.hero__slide.is-active .hero__media img { animation: kenburns 9s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(34, 35, 38, .94) 0%, rgba(34, 35, 38, .82) 32%, rgba(34, 35, 38, .25) 62%, rgba(34, 35, 38, 0) 80%),
    linear-gradient(0deg, rgba(34, 35, 38, .6) 0%, rgba(34, 35, 38, 0) 30%);
}
.hero__scene { background: radial-gradient(circle at 68% 78%, #2e3034 0%, var(--graphite) 62%); }
.hero__scene canvas { display: block; width: 100%; height: 100%; }
.hero__slide--scene::after {
  background:
    linear-gradient(90deg, rgba(34, 35, 38, .9) 0%, rgba(34, 35, 38, .6) 30%, rgba(34, 35, 38, 0) 55%),
    linear-gradient(0deg, rgba(34, 35, 38, .5) 0%, rgba(34, 35, 38, 0) 25%);
}
.hero__slide--scene .hero__content { pointer-events: none; }
.hero__slide--scene .hero__content > * { pointer-events: auto; }
.hero__hint {
  position: absolute; right: var(--gutter); bottom: 96px; z-index: 2; display: none;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted);
}
@media (min-width: 1025px) and (pointer: fine) {
  .hero__scene canvas { cursor: grab; }
  .hero__scene canvas.is-dragging { cursor: grabbing; }
  .hero__hint { display: block; }
}
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; padding-bottom: 72px;
}
.hero__content > * { max-width: 760px; }
.hero__title {
  margin: 24px 0 24px; color: #fff; font-size: clamp(38px, 5vw, 72px); line-height: 1.02; font-weight: 800;
  text-transform: uppercase; letter-spacing: -.025em; max-width: 14ch;
}
.hero__lead { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; color: var(--on-dark); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero__slide.is-active .hero__content > * { animation: rise .9s var(--ease) both; }
.hero__slide.is-active .hero__content > :nth-child(2) { animation-delay: .08s; }
.hero__slide.is-active .hero__content > :nth-child(3) { animation-delay: .16s; }
.hero__slide.is-active .hero__content > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.hero__controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 24px; height: 72px;
  border-top: 1px solid var(--line-dark);
}
.hero__counter { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.hero__total { color: var(--on-dark-muted); margin-left: 6px; }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 64px; height: 32px; display: flex; align-items: center; }
.hero__dots span { position: relative; display: block; width: 100%; height: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero__dots span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dots [aria-selected="true"] span::after { background: var(--red); animation: progress var(--hero-interval, 7s) linear forwards; }
.hero.is-paused .hero__dots [aria-selected="true"] span::after { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.hero__pause { width: 32px; height: 32px; display: grid; place-items: center; margin-left: auto; border: 1px solid var(--line-dark); }
.hero__pause:hover { border-color: #fff; }
.hero__sound { width: 32px; height: 32px; display: grid; place-items: center; margin-left: auto; border: 1px solid var(--line-dark); color: #fff; }
.hero__sound:hover { border-color: #fff; }
.hero__sound .ico { grid-area: 1 / 1; width: 16px; height: 16px; }
.hero__sound .ico--on, .hero__sound[aria-pressed="true"] .ico--off { display: none; }
.hero__sound[aria-pressed="true"] .ico--on { display: block; }
.hero__sound[aria-pressed="true"] { border-color: var(--red); }
.hero__sound + .hero__pause { margin-left: -16px; }
.hero__sound[hidden] { display: none; }
.hero__sound[hidden] + .hero__pause { margin-left: auto; }
.hero__pause-ico { width: 8px; height: 10px; border-left: 2px solid #fff; border-right: 2px solid #fff; }
.hero.is-paused .hero__pause-ico { width: 0; height: 0; border: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }

/* =========================================================
   Capabilities strip
   ========================================================= */
.capabilities { border-bottom: 1px solid var(--line); }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cap {
  position: relative; padding: var(--s6) var(--s5) var(--s6);
  border-left: 1px solid var(--line);
}
.cap:last-child { border-right: 1px solid var(--line); }
.cap::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.cap:hover::before { transform: scaleX(1); }
.cap__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--s4); }
.cap__top .ico { color: var(--graphite); transition: color .3s; }
.cap:hover .cap__top .ico { color: var(--red); }
.cap__num { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.cap__title { font-size: 22px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.cap p { color: var(--muted); font-size: 15px; }

/* =========================================================
   Generic sections
   ========================================================= */
.section { padding-block: var(--section-y); }
.section--off { background: var(--off); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--dark .h2, .section--dark .h3, .section--dark .h4 { color: #fff; }
.section--rule > .container { position: relative; }
.section--rule { padding-top: 0; }
.section--rule > .container::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: var(--section-y); }

.section-head {
  display: grid; grid-template-columns: 7fr 5fr; gap: var(--s6); align-items: end; margin-bottom: var(--s8);
}
.section-head__aside { display: grid; gap: 24px; justify-items: start; color: var(--muted); max-width: 440px; justify-self: end; }
.section-head__aside--actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; max-width: none; }
.section-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section-head--center .h2 { max-width: 22ch; }

/* Technical grid texture for dark sections */
.section--dark { position: relative; isolation: isolate; overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 75% 50%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 75% 50%, #000 0%, transparent 70%);
}

/* =========================================================
   Trust
   ========================================================= */
.trust__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s12); align-items: center; }
.trust__copy { display: grid; gap: 24px; justify-items: start; }
.trust__copy .h2 { margin-top: 0; }
.trust__copy p { color: var(--on-dark-muted); max-width: 520px; }
.trust__copy .lead { color: var(--on-dark); }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.stat {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 12px;
  padding: var(--s5); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  min-height: 200px; position: relative;
}
.stat::before { content: ""; position: absolute; left: -1px; top: -1px; width: 24px; height: 2px; background: var(--red); }
.stat dt { order: 2; margin-top: auto; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.stat dd { display: contents; }
.stat__note { order: 3; margin-top: -6px; }
.stat__value { order: 1; font-family: var(--font-head); font-size: clamp(44px, 4.4vw, 64px); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__value[data-value=""] { color: rgba(255, 255, 255, .35); }
.stat__note { font-size: 14px; color: var(--on-dark-muted); }

/* =========================================================
   Solutions
   ========================================================= */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.sol-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.sol-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--off); }
.sol-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sol-card:hover .sol-card__media img { transform: scale(1.06); }
.sol-card__body { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 24px; }
.sol-card__body::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.sol-card:hover .sol-card__body::before, .sol-card:focus-visible .sol-card__body::before { transform: scaleX(1); }
.sol-card__num { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--red); align-self: start; padding-top: 4px; }
.sol-card h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--graphite); }
.sol-card:hover .arrow-box { background: var(--red); border-color: var(--red); color: #fff; }

/* =========================================================
   Products
   ========================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #fff; margin-bottom: var(--s10); }
.cat-grid li + li { border-left: 1px solid var(--line); }
.cat {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 28px 24px;
  height: 100%; transition: background-color .25s;
}
.cat::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.cat:hover::after { transform: scaleX(1); }
.cat > .ico:first-child { width: 36px; height: 36px; color: var(--red); }
.cat strong { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--graphite); }
.cat small { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.cat__arrow { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.cat:hover .cat__arrow { color: var(--red); transform: translateX(4px); }

.sub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.sub-head .h4 { text-transform: uppercase; letter-spacing: .02em; font-size: 16px; }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.prod { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.prod:hover { border-color: #D3D5D8; box-shadow: 0 24px 40px -32px rgba(34, 35, 38, .45); }
.prod__media { aspect-ratio: 1; background: #F1F1EF; overflow: hidden; }
.prod__media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.prod:hover .prod__media img { transform: scale(1.04); }
.prod__body { padding: 24px 24px 0; flex: 1; }
.prod__cat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.prod__name { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--graphite); margin: 8px 0 6px; }
.prod__code { display: inline-block; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.prod__specs { margin-top: 20px; border-top: 1px solid var(--line); }
.prod__specs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.prod__specs dt { color: var(--muted); }
.prod__specs dd { color: var(--graphite); font-weight: 500; text-align: right; }
.prod__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 24px; flex-wrap: wrap; }
.prod__actions .link-arrow { font-size: 14px; }

/* Catalogue product card: white-background product renders */
.prod__media--contain { display: block; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); padding: 12px; }
.prod__media--contain img { object-fit: contain; mix-blend-mode: normal; }
.prod--catalog .prod__name a { transition: color .2s; }
.prod--catalog .prod__name a:hover { color: var(--red); }
.prod__code span { margin-left: 6px; color: var(--red); font-weight: 600; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--line); background: var(--off); }

/* Live search results (header dialog + catalogue page) */
.search-results { display: grid; margin-top: var(--s3); border: 1px solid var(--line); background: #fff; max-height: min(60vh, 520px); overflow-y: auto; }
.search-results[hidden] { display: none; }
.search-results li + li { border-top: 1px solid var(--line); }
.search-results a { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 16px; padding: 10px 16px; transition: background-color .2s; }
.search-results a:hover, .search-results a:focus-visible { background: var(--off); }
.search-results img, .search-results .ph { width: 72px; height: 45px; object-fit: contain; background: #fff; }
.search-results img.is-photo { object-fit: cover; }
.search-results strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--graphite); }
.search-results small { display: block; font-size: 13px; color: var(--muted); }
.search-results mark { background: none; color: var(--red); font-weight: 600; }
.search-results .ico { color: var(--red); }
.search-results__empty { padding: 16px; font-size: 14px; color: var(--muted); }

/* =========================================================
   Industries
   ========================================================= */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.ind-card {
  position: relative; display: flex; align-items: flex-end; gap: 16px; min-height: 440px; padding: 32px;
  overflow: hidden; color: #fff; background: var(--charcoal); isolation: isolate;
}
.ind-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ind-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(34, 35, 38, .1) 0%, rgba(34, 35, 38, .35) 45%, rgba(34, 35, 38, .92) 100%);
  transition: background-color .4s;
}
.ind-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(34, 35, 38, 0); transition: background-color .4s var(--ease); }
.ind-card:hover::after { background: rgba(34, 35, 38, .35); }
.ind-card:hover img { transform: scale(1.06); }
.ind-card__num { position: absolute; top: 32px; left: 32px; font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .08em; padding-top: 12px; border-top: 2px solid var(--red); }
.ind-card__body { flex: 1; }
.ind-card h3 { font-family: var(--font-head); font-size: 24px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: -.01em; }
.ind-card__text {
  display: block; font-size: 15px; color: var(--on-dark); max-width: 300px;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .4s var(--ease);
}
.ind-card:hover .ind-card__text, .ind-card:focus-visible .ind-card__text { max-height: 80px; opacity: 1; margin-top: 12px; }
.ind-card .arrow-box { transition: transform .4s var(--ease), background-color .3s; }
.ind-card:hover .arrow-box { transform: translate(2px, -2px); background: var(--red-700); }
@media (hover: none) { .ind-card__text { max-height: none; opacity: 1; margin-top: 12px; } }

/* =========================================================
   Process
   ========================================================= */
.process { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.process::before, .process::after {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line);
}
.process::after { background: var(--red); height: 2px; top: 6px; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.process.is-visible::after { transform: scaleX(1); }
.step { position: relative; padding: 48px 32px 0 0; }
.step__node {
  position: absolute; top: 0; left: 0; width: 15px; height: 15px; background: #fff;
  border: 1px solid var(--graphite); transform: rotate(45deg) scale(.8);
  transition: background-color .4s, border-color .4s;
}
.process.is-visible .step__node { background: var(--red); border-color: var(--red); }
.process.is-visible .step:nth-child(2) .step__node { transition-delay: .3s; }
.process.is-visible .step:nth-child(3) .step__node { transition-delay: .6s; }
.process.is-visible .step:nth-child(4) .step__node { transition-delay: .9s; }
.process.is-visible .step:nth-child(5) .step__node { transition-delay: 1.2s; }
.step__num { display: block; font-family: var(--font-head); font-size: 56px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px #C9CBCE; letter-spacing: -.03em; margin-bottom: 24px; }
.step > .ico { color: var(--red); margin-bottom: 20px; display: block; }
.step h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--graphite); margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); }

/* =========================================================
   References
   ========================================================= */
.ref-featured { display: grid; grid-template-columns: 8fr 4fr; background: var(--charcoal); color: var(--on-dark); margin-bottom: var(--s4); }
.ref-featured__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; align-self: stretch; }
.ref-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ref-featured:hover .ref-featured__media img { transform: scale(1.04); }
.ref-featured__body { display: flex; flex-direction: column; gap: 24px; padding: var(--s6) var(--s5); }
.ref-featured__body .h3 { color: #fff; }
.ref-featured__body .btn { align-self: flex-start; margin-top: auto; }
.meta { display: grid; gap: 16px; }
.meta div { padding-top: 16px; border-top: 1px solid var(--line-dark); }
.meta dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 4px; }
.meta dd { font-size: 15px; color: #fff; }

.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.ref-card { display: flex; flex-direction: column; align-items: flex-start; }
.ref-card__media { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 24px; }
.ref-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ref-card:hover .ref-card__media img { transform: scale(1.05); }
.ref-card__sector { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.ref-card h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--graphite); margin: 8px 0 8px; }
.ref-card p { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.ref-card .link-arrow { margin-top: auto; font-size: 14px; }

.logos { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: var(--s4); margin-top: var(--s10); padding-top: var(--s5); border-top: 1px solid var(--line); }
.logos__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logos__list { display: grid; grid-template-columns: repeat(6, 1fr); border-left: 1px solid var(--line); }
.logos__list li { display: grid; place-items: center; height: 88px; border-right: 1px solid var(--line); }
.logos__list span { font-size: 12px; color: #A5A8AC; letter-spacing: .04em; padding: 6px 10px; border: 1px dashed #D3D5D8; }
.logos__list--names { grid-template-columns: repeat(6, 1fr); }
.logos__list--names li { padding: 12px 16px; text-align: center; }
.logos__list--names span { padding: 0; border: 0; font-family: var(--font-head); font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--charcoal); }

@media (max-width: 1280px) { .logos__list--names { grid-template-columns: repeat(3, 1fr); } .logos__list--names li { border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .logos__list--names { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   Technical knowledge
   ========================================================= */
.kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.kb-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s; }
.kb-card:hover { box-shadow: 0 24px 40px -32px rgba(34, 35, 38, .45); }
.kb-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.kb-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: transform .8s var(--ease), filter .5s; }
.kb-card:hover .kb-card__media img { transform: scale(1.05); filter: none; }
.kb-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; flex: 1; }
.kb-card__meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); padding: 4px 10px; border: 1px solid var(--line); }
.kb-card h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--graphite); }
.kb-card h3 a::after { content: ""; position: absolute; inset: 0; }
.kb-card h3 a:focus-visible { outline: none; }
.kb-card:has(h3 a:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }
.kb-card p { font-size: 15px; color: var(--muted); }
.kb-card .link-arrow { margin-top: auto; font-size: 14px; }
.kb-card:hover .link-arrow { color: var(--red); gap: 14px; }

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s4); }
.tool {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px 28px;
  background: var(--graphite); color: #fff; transition: background-color .3s;
}
.tool:hover { background: #000; }
.tool > .ico:first-child { color: var(--red); width: 36px; height: 36px; }
.tool strong { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.tool small { display: block; font-size: 14px; color: var(--on-dark-muted); }
.tool__arrow { transition: transform .3s var(--ease); }
.tool:hover .tool__arrow { transform: translateX(4px); }

/* =========================================================
   CTA + quote form
   ========================================================= */
.cta::before { -webkit-mask-image: radial-gradient(ellipse at 15% 30%, #000 0%, transparent 60%); mask-image: radial-gradient(ellipse at 15% 30%, #000 0%, transparent 60%); }
.cta__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s12); align-items: start; }
.cta__copy { display: grid; gap: 24px; justify-items: start; position: sticky; top: calc(var(--header-h) + 48px); }
.cta__copy .h2 { margin-top: 0; max-width: 16ch; }
.cta__copy .lead { color: var(--on-dark-muted); max-width: 480px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.contact-list { display: grid; gap: 16px; margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line-dark); width: 100%; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--on-dark); }
.contact-list .ico { color: var(--red); margin-top: 2px; }
.contact-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.quote { background: #fff; color: var(--ink); padding: var(--s6); position: relative; }
.quote::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 3px; background: var(--red); }
.section--dark .quote .h4 { color: var(--graphite); }
.quote__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--graphite); }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid #D3D5D8; border-radius: var(--radius);
  background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: #A5A8AC; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--graphite); box-shadow: inset 0 -2px 0 var(--red); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea, .field.is-invalid .dropzone { border-color: var(--red); }
.field__error { font-size: 13px; color: var(--red-700); min-height: 0; }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select .ico { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }

.dropzone {
  display: grid; justify-items: center; gap: 6px; padding: 28px 16px; text-align: center; cursor: pointer;
  border: 1px dashed #BFC2C6; background: var(--off); transition: border-color .2s, background-color .2s;
  font-weight: 400 !important;
}
.dropzone .ico { color: var(--red); }
.dropzone strong { color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }
.dropzone small { color: var(--muted); font-size: 13px; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--graphite); background: #F0F0EE; }
#f-files:focus-visible + .file-list, .field:has(#f-files:focus-visible) .dropzone { outline: 2px solid var(--red); outline-offset: 2px; }
.file-list { display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); font-size: 14px; }
.file-list .ico { color: var(--muted); }
.file-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { color: var(--muted); }
.file-list button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.file-list button:hover { color: var(--red); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px !important; font-weight: 400 !important; color: var(--muted) !important; line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; width: 20px; height: 20px; flex: none; margin-top: 1px; border: 1px solid #BFC2C6; background: #fff; color: transparent; transition: background-color .2s, border-color .2s; }
.check input:checked + .check__box { background: var(--red); border-color: var(--red); color: #fff; }
.check input:focus-visible + .check__box { outline: 2px solid var(--red); outline-offset: 2px; }
.check a { color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }

.quote__success { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 48px; background: #fff; }
.quote__success[hidden] { display: none; }
.quote__success .ico { color: #fff; background: var(--red); width: 64px; height: 64px; padding: 16px; stroke-width: 2; }
.quote__success p { color: var(--muted); max-width: 360px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--graphite); color: var(--on-dark-muted); padding-top: var(--s12); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 4fr 3fr 3fr 3fr; gap: var(--s6); padding-bottom: var(--s10); }
.footer__brand img { width: 132px; margin-bottom: 24px; }
.footer__brand p { max-width: 340px; margin-bottom: 32px; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); color: #fff; transition: background-color .25s, border-color .25s; }
.social a:hover { background: var(--red); border-color: var(--red); }
.social .ico { width: 18px; height: 18px; }
.footer__title { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); }
.footer__col li + li { margin-top: 12px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: #fff; }
.contact-list--footer { margin: 0; padding: 0; border: 0; gap: 16px; }
.contact-list--footer li { color: var(--on-dark-muted); margin: 0 !important; }
.footer__bottom { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.legal { display: flex; gap: 24px; flex-wrap: wrap; margin-right: auto; }
.legal a:hover, .to-top:hover { color: #fff; }
#top { scroll-margin-top: 0; }
.to-top { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.to-top .ico { width: 16px; height: 16px; color: var(--red); transform: rotate(-45deg); }

/* =========================================================
   Reveal animation
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive — large tablet / small desktop
   ========================================================= */
@media (max-width: 1360px) {
  .nav-link { padding: 0 8px; font-size: 14px; }
  .nav-link::after { left: 8px; right: 8px; }
}
@media (max-width: 1280px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .mega__grid--products { grid-template-columns: repeat(2, 1fr) 1fr; }
  .mega__grid--products .mega__catalog { grid-row: 1 / span 2; grid-column: 3; }
}

/* Off-canvas navigation */
@media (max-width: 1024px) {
  .nav-toggle { display: grid; }
  .header__cta { display: none; }
  .header__actions { margin-left: auto; }
  .primary-nav__foot .lang { width: 100%; }
  .primary-nav__foot .lang__btn { width: 100%; border: 1px solid var(--line); }
  .primary-nav__foot .lang__menu { position: static; min-width: 0; margin-top: 8px; box-shadow: none; }

  .primary-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(420px, 100%);
    flex-direction: column; justify-content: flex-start; background: #fff; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s .45s;
  }
  .primary-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .primary-nav__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); flex: none; }
  .primary-nav__foot { display: grid; gap: 16px; padding: 24px var(--gutter) 32px; margin-top: auto; }
  .contact-line { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--graphite); }
  .contact-line .ico { color: var(--red); }

  .nav-list { flex-direction: column; height: auto; gap: 0; padding: 8px 0; }
  .nav-list > li { display: block; border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; min-height: 60px; padding: 0 var(--gutter); font-family: var(--font-head); font-size: 18px; font-weight: 700; }
  .nav-link::after { display: none; }

  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; background: var(--off); transition: none; }
  .has-mega.is-open .mega { display: block; }
  .has-sub .mega { min-width: 0; }
  .nav-sub a { padding: 14px var(--gutter); font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-sub li:last-child a { border-bottom: 0; }
  .mega .container { padding-inline: var(--gutter); }
  .mega__grid, .mega__grid--products { grid-template-columns: 1fr; gap: 24px; padding-block: 8px 24px; }
  .mega__intro, .mega__feature { display: none; }
  .mega__services { grid-template-columns: 1fr; border: 0; }
  .mega__services a { padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none !important; }
  .mega__services li:last-child a { border-bottom: 0; }
  .mega__catalog { grid-row: auto !important; grid-column: auto !important; background: #fff; }
  .mega__cat { margin-bottom: 12px; padding-bottom: 12px; }

  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(34, 35, 38, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-scrim.is-visible { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }

  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: var(--s6); }
  .section-head__aside { justify-self: start; }
  .section-head__aside--actions { justify-content: flex-start; }

  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap { border-bottom: 1px solid var(--line); }
  .cap:nth-child(2) { border-right: 1px solid var(--line); }
  .cap-grid { margin-bottom: -1px; }

  .trust__grid, .cta__grid { grid-template-columns: 1fr; gap: var(--s8); }
  .cta__copy { position: static; }

  .sol-grid, .ind-grid, .kb-grid, .ref-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid li:nth-child(3) { border-left: 0; }
  .cat-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .process { grid-template-columns: 1fr; gap: 0; padding-left: 40px; }
  .process::before, .process::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process::after { width: 2px; left: 6px; transform: scaleY(0); transform-origin: top; }
  .process.is-visible::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; padding: 0 0 40px; }
  .step:last-child { padding-bottom: 0; }
  .step__node { left: -40px; top: 6px; }
  .step__num { grid-row: 1 / span 3; font-size: 40px; margin: 0; }
  .step > .ico { display: none; }

  .ref-featured { grid-template-columns: 1fr; }
  .ref-grid .ref-card:last-child { display: none; }
  .logos { grid-template-columns: 1fr; gap: 16px; }
  .logos__list { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
  .logos__list li { border-bottom: 1px solid var(--line); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s4); }
  .footer__brand { grid-column: 1 / -1; }
}

/* Tablet 768 */
@media (max-width: 768px) {
  .hero { height: 640px; max-height: none; }
  .hero__media img { object-position: 72% 50%; }
  .hero__slide::after {
    background:
      linear-gradient(90deg, rgba(34, 35, 38, .9) 0%, rgba(34, 35, 38, .7) 60%, rgba(34, 35, 38, .45) 100%),
      linear-gradient(0deg, rgba(34, 35, 38, .7) 0%, rgba(34, 35, 38, 0) 40%);
  }
  .hero__dots button { width: 40px; }

  .cap { padding: 32px 24px; }
  .stat { padding: 28px 24px; min-height: 168px; }

  .prod-grid { gap: 16px; }
  .ind-card { min-height: 360px; padding: 24px; }
  .ind-card__num { top: 24px; left: 24px; }
  .ref-featured__body { padding: 32px 24px; }
  .quote { padding: 32px 24px; }
  .tools { grid-template-columns: 1fr; }
}

/* Mobile 390 */
@media (max-width: 600px) {
  .brand img { width: 108px; }
  .brand__sub { display: none; }

  .hero { height: auto; min-height: 600px; }
  .hero__slides { position: relative; }
  .hero__content { justify-content: flex-end; padding-top: 96px; padding-bottom: 112px; }
  .hero__media img { object-position: 78% 50%; }
  .hero__slide::after {
    background: linear-gradient(0deg, rgba(34, 35, 38, .96) 0%, rgba(34, 35, 38, .82) 45%, rgba(34, 35, 38, .25) 100%);
  }
  .hero__slide { position: absolute; }
  .hero__slide.is-active { position: relative; }
  .hero__title { font-size: 34px; margin: 16px 0; }
  .hero__actions { flex-direction: column; align-items: stretch; margin-top: 32px; }
  .hero__actions .btn { width: 100%; }

  .cap-grid { grid-template-columns: 1fr; }
  .cap { border-right: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: 20px; padding: 24px; }
  .cap__top { grid-row: 1 / span 2; flex-direction: column; gap: 8px; margin: 0; }
  .cap__top .ico { width: 32px; height: 32px; }
  .cap__num { order: -1; }
  .cap__title { font-size: 18px; margin-bottom: 2px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; min-height: 148px; }
  .stat dt { font-size: 13px; }
  .stat__note { font-size: 12px; }

  .sol-grid, .ind-grid, .kb-grid, .ref-grid { grid-template-columns: 1fr; }
  .ref-grid .ref-card:last-child { display: flex; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid li + li { border-left: 0; border-top: 1px solid var(--line); }
  .cat { padding: 20px; }

  .prod-grid { grid-template-columns: 1fr; }
  .prod { display: grid; grid-template-columns: 120px 1fr; }
  .prod__media { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; }
  .prod__media--contain { border-bottom: 0; border-right: 1px solid var(--line); padding: 8px; }
  .search-results a { grid-template-columns: 56px 1fr; }
  .search-results a > .ico { display: none; }
  .search-results img, .search-results .ph { width: 56px; height: 35px; }
  .prod__body { padding: 16px 16px 0; }
  .prod__name { font-size: 16px; }
  .prod__specs { display: none; }
  .prod__actions { padding: 12px 16px 16px; gap: 12px; }
  .prod__actions .btn { width: 100%; }

  .ind-card { min-height: 280px; }
  .ind-card h3 { font-size: 20px; }

  .ref-featured__media { aspect-ratio: 4 / 3; }
  .ref-featured__body .btn { width: 100%; }
  .logos__list { grid-template-columns: repeat(2, 1fr); }

  .cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .quote { padding: 28px 20px; margin-inline: calc(var(--gutter) * -1); }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* =========================================================
   Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
