/* ═══════════════════════════════════════════════════════════
   POLIPANEL S.r.l. — sito vetrina
   Palette: rosso brand #e30613 · nero industriale · bianco
   ═══════════════════════════════════════════════════════════ */

:root {
  --red: #e30613;
  --red-hi: #ff2b36;
  --bg: #07080a;
  --bg-alt: #0c0e12;
  --bg-card: #12151a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f3f5;
  --muted: #9aa3ad;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

/* ── Reveal animations ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-3d {
  opacity: 0;
  transform: perspective(900px) rotateX(14deg) translateY(46px);
  transform-origin: top center;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-3d.is-in { opacity: 1; transform: perspective(900px) rotateX(0) translateY(0); }

/* la specificità doppia garantisce che l'animazione di reveal vinca sui
   transition shorthand dei componenti (.card, .qcard, .lab__group);
   il JS rimuove le classi reveal a fine animazione */
.reveal.is-in, .reveal-3d.is-in {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-3d { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

/* Static mode (?static=1) — rendering senza animazioni, per audit/print */
html.static-mode { scroll-behavior: auto; }
.static-mode .hero { min-height: 780px; }
.static-mode .reveal, .static-mode .reveal-3d { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ── Sections ──────────────────────────────────────── */
.section { padding: clamp(84px, 11vw, 150px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: #050608; }

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-hi);
  margin-bottom: 18px;
}
.section__kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: 22px;
}
.section__title em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, var(--red-hi), #ff7a5c);
  -webkit-background-clip: text;
  background-clip: text;
}
.section__lead { color: var(--muted); max-width: 62ch; margin-bottom: 48px; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(120deg, var(--red), #b3050f);
  color: #fff;
  box-shadow: 0 12px 34px -10px rgba(227, 6, 19, 0.55);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(227, 6, 19, 0.7); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.07); }

/* ── Navbar ────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: box-shadow 0.4s;
}
/* il vetro sta su uno pseudo-elemento: un backdrop-filter direttamente su
   .nav la renderebbe containing block del menu mobile position:fixed */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled::before { opacity: 1; }
.nav__inner {
  position: relative;
  width: min(1280px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 46px; height: 26px;
  color: var(--red);
  filter: drop-shadow(0 0 8px rgba(227, 6, 19, 0.6));
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: #fff;
}
.brand__word em { font-style: normal; color: var(--red-hi); }
.brand__word small {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-left: 6px;
  vertical-align: super;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.3s;
}
.nav__links a:hover { color: #fff; }
.nav__links a.nav__cta {
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--red), #b3050f);
  box-shadow: 0 8px 24px -8px rgba(227, 6, 19, 0.6);
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(140% 90% at 70% 0%, #101318 0%, var(--bg) 55%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  left: -18vw; bottom: -30vw;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.16) 0%, transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1280px, 94vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  padding: 140px 0 90px;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(227, 6, 19, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.6vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(95deg, var(--red-hi) 10%, #ff8a3c 90%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 6px 30px rgba(227, 6, 19, 0.35));
}
.hero__sub { color: var(--muted); max-width: 54ch; margin-bottom: 36px; font-size: 17.5px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 38px; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.hero__badges li {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfd5db;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

/* Hero visual — 3D tilt stack */
.hero__visual {
  position: relative;
  min-height: 460px;
  transform-style: preserve-3d;
  perspective: 1200px;
}
.hero__card {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card--front {
  inset: 8% 0 auto auto;
  width: 78%;
  aspect-ratio: 16 / 10.5;
  z-index: 2;
}
.hero__card--front figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 20px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #e8eaee;
  background: linear-gradient(transparent, rgba(5, 6, 8, 0.88));
}
.hero__card--back {
  inset: auto auto 4% 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  opacity: 0.92;
}
.hero__chip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(14, 16, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease-out;
}
.hero__chip strong { font-family: var(--font-display); font-size: 19px; color: var(--red-hi); }
.hero__chip span { font-size: 12px; color: var(--muted); }
.hero__chip--a { top: -2%; left: 4%; }
.hero__chip--b { bottom: 3%; right: -2%; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
}
.hero__mouse {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  position: relative;
}
.hero__mouse::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--red-hi);
  animation: wheel 1.8s infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ── Stats ─────────────────────────────────────────── */
.stats {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(227, 6, 19, 0.05), transparent 70%);
  padding: 54px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  color: #fff;
}
.stat__num i {
  font-style: normal;
  font-size: 0.55em;
  color: var(--red-hi);
  margin-left: 3px;
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ── About ─────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
}
.about__media { position: relative; min-height: 520px; }
.about__photo {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  will-change: transform;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--main { inset: 0 12% 18% 0; }
.about__photo--accent {
  width: 46%;
  aspect-ratio: 3 / 4;
  right: 0; bottom: 0;
  z-index: 2;
}
.about__frame {
  position: absolute;
  inset: 8% -4% 10% 55%;
  border: 1px solid rgba(227, 6, 19, 0.4);
  border-radius: var(--radius);
  pointer-events: none;
}
.about__copy p { color: var(--muted); margin-bottom: 18px; }
.about__quote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--red);
  background: rgba(227, 6, 19, 0.06);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: #fff;
}
.about__quote strong { color: var(--red-hi); }
.about__values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.about__values li {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #cfd5db;
}

/* ── Timeline ──────────────────────────────────────── */
.timeline__track {
  list-style: none;
  margin-top: 64px;
  position: relative;
  display: grid;
  gap: 42px;
}
.timeline__track::before {
  content: "";
  position: absolute;
  left: 200px;
  top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--red) 0%, rgba(227, 6, 19, 0.15) 100%);
}
.timeline__item {
  display: grid;
  grid-template-columns: 178px 1fr;
  gap: 34px;
  align-items: start;
  position: relative;
}
.timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-hi);
  text-align: right;
  padding-top: 22px;
  padding-right: 56px;
  position: relative;
}
.timeline__year::after {
  content: "";
  position: absolute;
  right: -31px;
  top: 27px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--red);
  box-shadow: 0 0 14px rgba(227, 6, 19, 0.7);
}
.timeline__card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-left: 26px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.timeline__card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 6, 19, 0.45);
  box-shadow: 0 22px 48px -20px rgba(227, 6, 19, 0.35);
}
.timeline__card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 8px;
}
.timeline__card p { color: var(--muted); font-size: 15.5px; }
.timeline__item--future .timeline__card {
  border-color: rgba(227, 6, 19, 0.5);
  background: linear-gradient(140deg, rgba(227, 6, 19, 0.12), var(--bg-card) 55%);
}

/* ── Service cards ─────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.4s, box-shadow 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover {
  border-color: rgba(227, 6, 19, 0.5);
  box-shadow: 0 26px 54px -22px rgba(227, 6, 19, 0.4);
}
.card__icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(227, 6, 19, 0.12);
  color: var(--red-hi);
  margin-bottom: 18px;
  transform: translateZ(30px);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 17.5px;
  margin-bottom: 8px;
  transform: translateZ(22px);
}
.card p { color: var(--muted); font-size: 14.5px; transform: translateZ(14px); }

/* ── Mech ──────────────────────────────────────────── */
.mech__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
}
.mech__copy > p { color: var(--muted); margin-bottom: 22px; }
.mech__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  margin-bottom: 24px;
}
.mech__list li {
  position: relative;
  padding: 12px 16px 12px 40px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
}
.mech__list li::before {
  content: "";
  position: absolute;
  left: 15px; top: 19px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(227, 6, 19, 0.8);
  transform: rotate(45deg);
}
.mech__list li:last-child { grid-column: 1 / -1; }
.mech__note { font-size: 14.5px; color: var(--muted); font-style: italic; }
.mech__media { position: relative; min-height: 480px; }
.mech__photo {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  will-change: transform;
}
.mech__photo img { width: 100%; height: 100%; object-fit: cover; }
.mech__photo { inset: 0 16% 22% 0; }
.mech__photo--b {
  inset: auto 0 0 auto;
  width: 44%;
  aspect-ratio: 3 / 4.1;
  z-index: 2;
}

/* ── Lab ───────────────────────────────────────────── */
.lab__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lab__group {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.lab__group:hover { border-color: rgba(227, 6, 19, 0.45); transform: translateY(-4px); }
.lab__group h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lab__group h3 span { color: var(--red-hi); }
.lab__group ul { list-style: none; display: grid; gap: 10px; }
.lab__group li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--muted);
}
.lab__group li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* ── Coverflow ─────────────────────────────────────── */
.coverflow {
  position: relative;
  margin-top: 20px;
  padding: 30px 0 10px;
  outline: none;
  user-select: none;
  touch-action: pan-y;
}
.coverflow:focus-visible {
  outline: 2px solid var(--red-hi);
  outline-offset: 6px;
  border-radius: 8px;
}
.coverflow__track {
  position: relative;
  height: clamp(300px, 42vw, 480px);
  perspective: 1400px;
  transform-style: preserve-3d;
}
.cf-item {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(300px, 44vw, 640px);
  aspect-ratio: 16 / 10.2;
  margin-left: calc(clamp(300px, 44vw, 640px) / -2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 80px -24px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease), filter 0.7s var(--ease);
  will-change: transform;
  background: var(--bg-card);
}
.cf-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.cf-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 46px 22px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(4, 5, 7, 0.9));
  opacity: 0;
  transition: opacity 0.5s;
}
.cf-item.is-active figcaption { opacity: 1; }
.coverflow__caption {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-top: 30px;
  min-height: 1.6em;
}
.coverflow__nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.cf-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.cf-btn:hover { background: var(--red); border-color: var(--red); transform: scale(1.06); }
.cf-btn:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; }
.cf-btn svg { width: 22px; height: 22px; }
.cf-btn .icon-play { display: none; }
.cf-btn.is-paused .icon-play { display: block; }
.cf-btn.is-paused .icon-pause { display: none; }

/* ── Quality ───────────────────────────────────────── */
.quality__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin-inline: auto;
}
.qcard {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transform-style: preserve-3d;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.qcard:hover { border-color: rgba(227, 6, 19, 0.5); box-shadow: 0 26px 54px -22px rgba(227, 6, 19, 0.35); }
.qcard__logo {
  height: 84px;
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  transform: translateZ(26px);
}
.qcard__logo img {
  max-height: 84px;
  max-width: 220px;
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
}
.qcard__logo--soa span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(120deg, var(--red), #8f040c);
  padding: 14px 26px;
  border-radius: 12px;
  box-shadow: 0 14px 34px -12px rgba(227, 6, 19, 0.6);
}
.qcard h3 { font-family: var(--font-display); font-size: 18.5px; margin-bottom: 10px; transform: translateZ(18px); }
.qcard p { color: var(--muted); font-size: 14.5px; transform: translateZ(12px); }

/* ── Partners & marquee ────────────────────────────── */
.partners__row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}
.partners__row a {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  color: #dfe3e8;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), border-color 0.35s, color 0.35s;
}
.partners__row a:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 6, 19, 0.55);
  color: #fff;
}
.marquee { margin-top: 84px; overflow: hidden; }
.marquee__title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}
.marquee__row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  padding: 8px 0;
}
.marquee__inner {
  display: inline-flex;
  gap: 16px;
  white-space: nowrap;
  animation: marquee 46s linear infinite;
  padding-right: 16px;
}
.marquee__row--reverse .marquee__inner { animation-direction: reverse; }
.marquee__row:hover .marquee__inner { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee__inner span {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.02);
}

/* ── Contact ───────────────────────────────────────── */
.contact {
  background:
    radial-gradient(70% 90% at 85% 20%, rgba(227, 6, 19, 0.1) 0%, transparent 60%),
    var(--bg);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(44px, 6vw, 90px);
  align-items: center;
}
.contact__copy > p { color: var(--muted); max-width: 50ch; margin-bottom: 30px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.contact__card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 36px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}
.contact__card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 24px;
  transform: translateZ(24px);
}
.contact__card ul { list-style: none; display: grid; gap: 20px; transform: translateZ(16px); }
.contact__card strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-hi);
  margin-bottom: 3px;
}
.contact__card span { color: #dfe3e8; font-size: 15.5px; }
.contact__card a { color: #dfe3e8; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
.contact__card a:hover { color: #fff; border-color: var(--red); }
.contact__map {
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-hi) !important;
  border: 0 !important;
  transform: translateZ(20px);
}

/* ── Contact form ──────────────────────────────────── */
.contact__form {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px 36px;
  box-shadow: var(--shadow);
  margin-top: 10px;
}
.contact__form h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 26px;
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field--full { grid-column: 1 / -1; }
.form__field span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__field input,
.form__field textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form__field textarea { resize: vertical; min-height: 120px; }
.form__field input::placeholder,
.form__field textarea::placeholder { color: #5d6670; }
.form__field input:focus-visible,
.form__field textarea:focus-visible {
  outline: none;
  border-color: var(--red);
  background: rgba(227, 6, 19, 0.05);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.18);
}
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}
.form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
}
.form__actions .btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.form__status { font-size: 14.5px; color: var(--muted); min-height: 1.5em; }
.form__status.is-ok { color: #4ade80; }
.form__status.is-err { color: var(--red-hi); }

/* ── Footer ────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  background: #050608;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
}
.brand__word--lg { font-size: 26px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-content: center;
  justify-content: flex-end;
}
.footer__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.footer__nav a:hover { color: #fff; }
.footer__meta {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #8b959f;
  font-size: 13px;
}

/* ── Lightbox ──────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 5, 7, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  animation: lbIn 0.35s var(--ease);
}
@keyframes lbIn { from { opacity: 0; } }
.lightbox[hidden] { display: none; }
.lightbox figure {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}
.lightbox figcaption { text-align: center; color: var(--muted); font-size: 15px; }
.lightbox__close {
  position: absolute;
  top: 22px; right: 30px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.lightbox__close:hover { background: var(--red); transform: rotate(90deg); }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 120px; }
  .hero__visual { min-height: 400px; max-width: 620px; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
  .about__grid, .mech__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 440px; max-width: 620px; }
  .mech__media { min-height: 420px; max-width: 620px; order: -1; }
  .lab__grid, .quality__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 8, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .nav__links a { font-size: 19px; }
  .nav__links.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__burger { display: flex; z-index: 70; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__inner { padding-top: 110px; gap: 54px; }
  .hero__visual { min-height: 320px; }
  .hero__chip--b { right: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .timeline__track::before { left: 8px; }
  .timeline__item { grid-template-columns: 1fr; gap: 10px; }
  .timeline__year { text-align: left; padding-top: 0; padding-left: 30px; padding-right: 0; }
  .timeline__year::after { left: 0; right: auto; top: 5px; }
  .timeline__card { margin-left: 30px; }
  .mech__list { grid-template-columns: 1fr; }
  .lab__grid, .quality__grid { grid-template-columns: 1fr; }
  .coverflow__track { height: 62vw; }
  .cf-item { width: 84vw; margin-left: -42vw; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
  .form__grid { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 22px; }
}