/* ═══════════════════════════════════════════════════════════
   Квадро Групп — командный центр инженерной инфраструктуры
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&family=Tektur:wght@500;600;700;800&display=swap');

#quadro-group-root,
#legal-root,
#careers-root,
#certificates-root,
#contacts-root,
#wsa-2124-root,
#wsa-2136-root,
#wsa-2150-root,
#wsa-2324-root,
#wsa-2336-root,
#wem-root,
#wem-2124-root,
#wem-2324-root,
#wem-2336-root,
#wem-2136-root,
#wem-2150-root,
#wsa-root,
#quadro-group-root *,
#legal-root *,
#careers-root *,
#certificates-root *,
#contacts-root *,
#wsa-2124-root *,
#wsa-2136-root *,
#wsa-2150-root *,
#wsa-2324-root *,
#wsa-2336-root *,
#wem-root *,
#wem-2124-root *,
#wem-2324-root *,
#wem-2336-root *,
#wem-2136-root *,
#wem-2150-root *,
#wsa-root *,
#quadro-group-root *::before,
#legal-root *::before,
#careers-root *::before,
#certificates-root *::before,
#contacts-root *::before,
#wsa-2124-root *::before,
#wsa-2136-root *::before,
#wsa-2150-root *::before,
#wsa-2324-root *::before,
#wsa-2336-root *::before,
#wem-root *::before,
#wem-2124-root *::before,
#wem-2324-root *::before,
#wem-2336-root *::before,
#wem-2136-root *::before,
#wem-2150-root *::before,
#wsa-root *::before,
#quadro-group-root *::after,
#legal-root *::after,
#careers-root *::after,
#certificates-root *::after,
#contacts-root *::after,
#wsa-2124-root *::after,
#wsa-2136-root *::after,
#wsa-2150-root *::after,
#wsa-2324-root *::after,
#wsa-2336-root *::after,
#wem-root *::after,
#wem-2124-root *::after,
#wem-2324-root *::after,
#wem-2336-root *::after,
#wem-2136-root *::after,
#wem-2150-root *::after,
#wsa-root *::after {
  box-sizing: border-box;
}

.qg-page {
  margin: 0;
  scroll-behavior: smooth;
  background: var(--qg-bg, #070b14);
}

#quadro-group-root,
#legal-root,
#careers-root,
#certificates-root,
#contacts-root,
#wsa-2124-root,
#wsa-2136-root,
#wsa-2150-root,
#wsa-2324-root,
#wsa-2336-root,
#wem-root,
#wem-2124-root,
#wem-2324-root,
#wem-2336-root,
#wem-2136-root,
#wem-2150-root,
#wsa-root {
  --qg-bg: #070b14;
  --qg-bg-rgb: 7, 11, 20;
  --qg-bg-2: #0a101c;
  --qg-bg-2-rgb: 10, 16, 28;
  --qg-bg-3: #0d1524;
  --qg-panel: rgba(10, 16, 28, 0.94);
  --qg-border: rgba(255, 255, 255, 0.07);
  --qg-border-hot: rgba(255, 42, 42, 0.55);
  --qg-text: #b8c0cc;
  --qg-muted: #6b7585;
  --qg-heading: #eef0f4;
  --qg-red: #ff2a2a;
  --qg-red-soft: rgba(255, 42, 42, 0.14);
  --qg-red-glow: rgba(255, 42, 42, 0.65);
  --qg-accent-rgb: 255, 42, 42;
  --qg-radius: 12px;
  --qg-font: "Manrope", "Segoe UI", system-ui, sans-serif;
  /* Чернильный display-шрифт (Erebor). Откат — font-backup-original.css */
  --qg-display: "Tektur", "Manrope", "Segoe UI", system-ui, sans-serif;
  --qg-mono: "IBM Plex Mono", ui-monospace, monospace;
  --qg-container: min(1280px, calc(100% - 2rem));

  font-family: var(--qg-font);
  color: var(--qg-text);
  background: var(--qg-bg);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

#quadro-group-root img,
#legal-root img,
#careers-root img,
#certificates-root img,
#contacts-root img,
#quadro-group-root svg,
#legal-root svg,
#careers-root svg,
#certificates-root svg,
#contacts-root svg {
  display: block;
  max-width: 100%;
}

/* Global HUD layers */
.qg-noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.qg-scanlines {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.4;
}

.qg-container {
  width: var(--qg-container);
  margin-inline: auto;
}

.qg-kicker {
  margin: 0 0 0.6rem;
  font-family: var(--qg-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--qg-red);
}

#quadro-group-root h1,
#quadro-group-root h2,
#quadro-group-root h3,
[id$="-root"] h1,
[id$="-root"] h2,
[id$="-root"] h3,
.qg-logo__text {
  font-family: var(--qg-display);
}

#quadro-group-root h1,
#quadro-group-root h2,
#quadro-group-root h3 {
  color: var(--qg-heading);
  line-height: 1.08;
}

#quadro-group-root h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#quadro-group-root h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#quadro-group-root h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.qg-lead,
.qg-section__lead {
  margin: 0;
  max-width: 620px;
  color: var(--qg-muted);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
}

.qg-section {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.qg-section__head {
  margin-bottom: 2rem;
}

.qg-section__hud {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: var(--qg-container);
  display: flex;
  justify-content: space-between;
  font-family: var(--qg-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 42, 42, 0.35);
  pointer-events: none;
}

/* Buttons */
.qg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--qg-font);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.qg-btn:hover { transform: translateY(-1px); }

.qg-btn--primary {
  background: linear-gradient(135deg, var(--qg-red) 0%, #b81818 100%);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 42, 42, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.qg-btn--primary:hover {
  box-shadow: 0 0 45px rgba(255, 42, 42, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.qg-btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--qg-border);
  color: var(--qg-heading);
}

.qg-btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--qg-heading);
}

.qg-btn--outline:hover,
.qg-btn--ghost:hover {
  border-color: var(--qg-border-hot);
  box-shadow: 0 0 24px rgba(255, 42, 42, 0.15);
}

.qg-btn__icon { width: 18px; height: 18px; margin-right: 0.4rem; }
.qg-btn--block { width: 100%; }

.qg-icon { width: 26px; height: 26px; color: var(--qg-red); }

.qg-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.qg-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* HUD meta blocks */
.qg-hud-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--qg-mono);
  font-size: 0.65rem;
}

.qg-hud-meta__label { color: var(--qg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.qg-hud-meta__value { color: var(--qg-red); font-weight: 600; }

.qg-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qg-red);
  box-shadow: 0 0 8px var(--qg-red-glow);
  animation: qgLiveBlink 1.8s ease-in-out infinite;
  margin-right: 0.35rem;
}

/* Header */
.qg-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.qg-header.is-scrolled {
  background: rgba(var(--qg-bg-rgb), 0.92);
  border-color: var(--qg-border);
  backdrop-filter: blur(16px);
}

.qg-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.qg-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

.qg-header__phone {
  color: var(--qg-heading);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

.qg-header__phone:hover { color: var(--qg-red); }

.qg-header__callback { min-height: 38px; padding-inline: 0.9rem; font-size: 0.8rem; }

.qg-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--qg-heading);
}

.qg-logo__hex {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  background: linear-gradient(135deg, var(--qg-red), #6e0e0e);
  color: #fff;
  font-family: var(--qg-mono);
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(255, 42, 42, 0.5);
}

.qg-logo__text {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.qg-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
}

.qg-nav a {
  position: relative;
  color: var(--qg-muted);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.qg-nav a:hover { color: var(--qg-heading); }

.qg-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--qg-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.qg-nav a:hover::after { transform: scaleX(1); }

/* Site header: logo | nav | actions */
.qg-header--site .qg-header__inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo nav actions";
  gap: 0.75rem clamp(1rem, 2vw, 1.75rem);
  min-height: 76px;
  max-height: 84px;
  padding-block: 0.65rem;
}

.qg-header--site .qg-header__logo {
  grid-area: logo;
  flex-shrink: 0;
}

.qg-header--site .qg-header__nav {
  grid-area: nav;
  justify-self: center;
  width: 100%;
  max-width: 100%;
}

.qg-header--site .qg-header__actions {
  grid-area: actions;
  flex-shrink: 0;
  gap: 0.65rem;
}

.qg-header--site .qg-burger {
  grid-area: burger;
  display: none;
}

.qg-header--site .qg-nav__links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0 clamp(0.55rem, 1.1vw, 0.85rem);
}

.qg-header--site .qg-nav__links a {
  font-size: clamp(0.72rem, 0.9vw, 0.8rem);
  white-space: nowrap;
}

.qg-header--site .qg-header__phone {
  font-size: clamp(0.76rem, 0.95vw, 0.84rem);
}

.qg-header--site .qg-header__callback {
  min-height: 36px;
  padding-inline: 0.8rem;
  font-size: 0.76rem;
  white-space: nowrap;
}

.qg-header--site .qg-nav__mobile-actions {
  display: none;
}

@media (max-width: 1140px) {
  .qg-header--site .qg-logo__text {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .qg-header--site .qg-logo__hex {
    width: 36px;
    height: 36px;
    font-size: 0.62rem;
  }
}

@media (max-width: 1024px) {
  .qg-header--site .qg-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo burger";
    min-height: 68px;
    max-height: none;
    padding-block: 0.5rem;
  }

  .qg-header--site .qg-burger {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .qg-header--site .qg-header__nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    max-height: calc(100dvh - 68px);
    padding: 0.85rem;
    overflow-y: auto;
    background: rgba(var(--qg-bg-rgb), 0.98);
    border-bottom: 1px solid var(--qg-border);
    backdrop-filter: blur(16px);
  }

  .qg-header--site .qg-header__nav.is-open {
    display: flex;
  }

  .qg-header--site .qg-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .qg-header--site .qg-nav__links a {
    padding: 0.65rem 0.45rem;
    font-size: 0.92rem;
    white-space: normal;
  }

  .qg-header--site .qg-nav__mobile-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--qg-border);
  }

  .qg-header--site .qg-nav__mobile-actions .qg-header__phone {
    font-size: 0.95rem;
  }

  .qg-header--site .qg-nav__mobile-actions .qg-header__callback {
    width: 100%;
  }

  .qg-header--site .qg-header__actions {
    display: none;
  }
}

.qg-burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.qg-burger span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--qg-heading);
}

/* ═══ HERO ═══ */
.qg-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding-top: 68px;
  overflow: hidden;
}

.qg-hero__bg {
  position: absolute;
  inset: 0;
}

.qg-hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.7;
}

.qg-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(255, 42, 42, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 60%, rgba(255, 42, 42, 0.06), transparent 50%),
    linear-gradient(105deg, rgba(var(--qg-bg-rgb), 0.97) 0%, rgba(var(--qg-bg-rgb), 0.75) 45%, rgba(var(--qg-bg-rgb), 0.55) 100%),
    linear-gradient(180deg, transparent 60%, var(--qg-bg) 100%);
}

.qg-hero__gridlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 42, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 42, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, #000 20%, transparent 75%);
}

.qg-hero__coords {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--qg-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(255, 42, 42, 0.4);
  text-align: right;
}

.qg-hero__layout {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  min-height: calc(100vh - 68px);
  padding-block: 2.5rem 1.5rem;
}

.qg-hero__main {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 2rem;
  align-items: center;
}

.qg-hero__content { max-width: 680px; }

.qg-hero__accent {
  color: var(--qg-red);
  text-shadow: 0 0 40px rgba(255, 42, 42, 0.5), 0 0 80px rgba(255, 42, 42, 0.2);
}

.qg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
}

.qg-hero__network {
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 42, 42, 0.12), inset 0 0 60px rgba(255, 42, 42, 0.03);
  background: rgba(var(--qg-bg-2-rgb), 0.6);
  backdrop-filter: blur(8px);
}

.qg-hero__stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 8px;
  background: rgba(var(--qg-bg-2-rgb), 0.8);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.qg-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--qg-border);
  text-align: center;
}

.qg-hero-stat:last-child { border-right: 0; }

.qg-hero-stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 42, 42, 0.4);
  border-radius: 6px;
  background: rgba(255, 42, 42, 0.06);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 42, 42, 0.12);
  line-height: 0;
}

.qg-hero-stat__icon .qg-icon,
.qg-hero-stat__svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.qg-hero-stat__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.qg-hero-stat strong {
  display: block;
  color: var(--qg-heading);
  font-size: 1rem;
  font-family: var(--qg-mono);
}

.qg-hero-stat__body span {
  display: block;
  font-size: 0.68rem;
  color: var(--qg-muted);
  line-height: 1.35;
  max-width: 11rem;
}

/* Map SVG */
.qg-map { width: 100%; height: 100%; }

.qg-map__land {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(255, 42, 42, 0.3);
  stroke-width: 0.5;
}

.qg-map__land--east { fill: rgba(255, 42, 42, 0.05); }

.qg-map__grid line {
  stroke: rgba(255, 255, 255, 0.02);
  stroke-width: 0.12;
}

.qg-map__line {
  stroke: url(#qgLineGrad);
  stroke-width: 0.4;
  stroke-dasharray: 3 2;
  animation: qgLinePulse 2.5s ease-in-out infinite;
}

.qg-map__impulse {
  fill: var(--qg-red);
  animation: qgImpulseTravel 3s ease-in-out infinite;
}

.qg-map__node { animation: qgNodePulse 2.5s ease-in-out infinite; }

.qg-map__dot {
  fill: var(--qg-red);
  filter: drop-shadow(0 0 8px rgba(255, 42, 42, 1));
}

.qg-map__pulse {
  fill: rgba(255, 42, 42, 0.2);
  animation: qgDotRing 2.2s ease-out infinite;
}

.qg-map__pulse--2 { animation-delay: 0.6s; }

.qg-map__label {
  fill: rgba(255, 255, 255, 0.5);
  font-family: var(--qg-mono);
  font-size: 2px;
  text-anchor: middle;
}

.qg-map__coord {
  fill: rgba(255, 42, 42, 0.35);
  font-family: var(--qg-mono);
  font-size: 2px;
  letter-spacing: 0.05em;
}

.qg-map__scan {
  fill: rgba(255, 42, 42, 0.1);
  animation: qgScan 5s linear infinite;
}

/* Network panel */
.qg-net-viewport {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--qg-bg-2);
}

.qg-net-viewport__map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05) brightness(0.88);
}

.qg-netpanel { width: 100%; height: auto; }

.qg-netpanel--overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.qg-netpanel__bg {
  fill: rgba(var(--qg-bg-2-rgb), 0.85);
  stroke: rgba(255, 42, 42, 0.2);
  stroke-width: 1;
}

.qg-netpanel__grid line {
  stroke: rgba(255, 255, 255, 0.025);
  stroke-width: 0.5;
}

.qg-netpanel__line {
  stroke: url(#qgNetLineGrad);
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
  animation: qgLinePulse 2s ease-in-out infinite;
}

.qg-netpanel__impulse {
  fill: var(--qg-red);
  filter: drop-shadow(0 0 4px rgba(255, 42, 42, 0.9));
  animation: qgImpulseTravel 3s ease-in-out infinite;
}

.qg-netpanel__ring {
  fill: rgba(255, 42, 42, 0.1);
  stroke: rgba(255, 42, 42, 0.5);
  stroke-width: 1;
  animation: qgDotRing 2.5s ease-out infinite;
}

.qg-netpanel__ring--2 { animation-delay: 0.4s; }

.qg-netpanel__dot {
  fill: var(--qg-red);
  filter: drop-shadow(0 0 6px rgba(255, 42, 42, 1));
}

.qg-netpanel__node--hub .qg-netpanel__dot {
  filter: drop-shadow(0 0 10px rgba(255, 42, 42, 1));
}

.qg-netpanel__label {
  fill: rgba(255, 255, 255, 0.65);
  font-family: var(--qg-mono);
  font-size: 7px;
  text-anchor: middle;
  letter-spacing: 0.06em;
}

.qg-netpanel__label--hub {
  fill: rgba(255, 255, 255, 0.85);
  font-size: 7.5px;
}

.qg-netpanel__label--role {
  fill: rgba(255, 42, 42, 0.7);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.qg-netpanel__hud {
  fill: none;
  stroke: rgba(255, 42, 42, 0.5);
  stroke-width: 1.5;
}

.qg-netpanel__meta {
  fill: rgba(255, 42, 42, 0.45);
  font-family: var(--qg-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.qg-netpanel__scan {
  fill: rgba(255, 42, 42, 0.12);
  animation: qgScan 5s linear infinite;
}

.qg-netpanel__node { animation: qgNodePulse 2.5s ease-in-out infinite; }

/* ═══ OBJECT SYSTEM / CUTAWAY ═══ */
.qg-object-system {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 42, 42, 0.07), transparent 50%),
    var(--qg-bg-2);
}

.qg-object-system__head {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.qg-object-system__stage {
  display: grid;
  grid-template-columns: minmax(130px, 0.85fr) minmax(300px, 2.2fr) minmax(130px, 0.85fr) 155px;
  gap: 0.5rem 0.75rem;
  align-items: center;
  min-height: 400px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 10px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 42, 42, 0.05), transparent 60%),
    rgba(var(--qg-bg-2-rgb), 0.8);
  box-shadow: inset 0 0 80px rgba(255, 42, 42, 0.03), 0 0 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.qg-callout {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  align-content: center;
}

.qg-callout li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  font-family: var(--qg-mono);
}

.qg-callout--right li {
  justify-content: flex-end;
  text-align: right;
}

.qg-callout--right .qg-callout__dot { order: 2; }
.qg-callout--right .qg-callout__tag { order: 0; }

.qg-callout__tag {
  font-size: 0.55rem;
  color: rgba(255, 42, 42, 0.5);
  letter-spacing: 0.06em;
  min-width: 2.8rem;
}

.qg-callout__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qg-red);
  box-shadow: 0 0 12px var(--qg-red-glow);
  flex-shrink: 0;
}

.qg-object-system__building { position: relative; min-height: 340px; }

.qg-building-viewport {
  position: relative;
  min-height: 340px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(7, 11, 20, 0.92);
  border: 1px solid rgba(255, 42, 42, 0.18);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55);
}

.qg-building-viewport__plate {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 27px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, #000 40%, transparent 100%);
}

.qg-building-viewport__img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 340px;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.8) contrast(1.06) brightness(0.82);
}

.qg-building-viewport__scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 80% at 50% 45%, transparent 30%, rgba(var(--qg-bg-2-rgb), 0.45) 72%, rgba(var(--qg-bg-2-rgb), 0.98) 100%),
    linear-gradient(180deg, rgba(var(--qg-bg-2-rgb), 0.4) 0%, transparent 16%, transparent 84%, rgba(var(--qg-bg-2-rgb), 0.55) 100%),
    linear-gradient(90deg, rgba(var(--qg-bg-2-rgb), 0.5) 0%, transparent 10%, transparent 90%, rgba(var(--qg-bg-2-rgb), 0.5) 100%),
    rgba(60, 140, 220, 0.04);
}

.qg-building-viewport__hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.qg-building-viewport__corner {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: rgba(255, 42, 42, 0.55);
  border-style: solid;
  border-width: 0;
}

.qg-building-viewport__corner--tl {
  top: 12px;
  left: 12px;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}

.qg-building-viewport__corner--tr {
  top: 12px;
  right: 12px;
  border-top-width: 1.5px;
  border-right-width: 1.5px;
}

.qg-building-viewport__corner--bl {
  bottom: 12px;
  left: 12px;
  border-bottom-width: 1.5px;
  border-left-width: 1.5px;
}

.qg-building-viewport__corner--br {
  bottom: 12px;
  right: 12px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}

.qg-building-viewport__meta {
  position: absolute;
  font-family: var(--qg-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255, 42, 42, 0.45);
}

.qg-building-viewport__meta--tl { top: 18px; left: 24px; }
.qg-building-viewport__meta--bl { bottom: 18px; left: 24px; }

.qg-building-viewport--compact {
  min-height: 100px;
  max-height: 110px;
  border-radius: 6px;
  border-color: rgba(255, 42, 42, 0.12);
}

.qg-building-viewport--compact .qg-building-viewport__img {
  min-height: 100px;
  max-height: 110px;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.9;
}

.qg-building-viewport--compact .qg-building-viewport__hud,
.qg-building-viewport--compact .qg-building-viewport__plate { display: none; }

/* Cutaway SVG */
.qg-cutaway { width: 100%; height: auto; min-height: 340px; }

.qg-cutaway__plate {
  fill: rgba(2, 5, 10, 0.7);
  stroke: rgba(255, 42, 42, 0.15);
  stroke-width: 1;
}

.qg-cutaway__grid line { stroke: rgba(255, 255, 255, 0.02); stroke-width: 0.5; }

.qg-cutaway__base { fill: rgba(20, 50, 90, 0.15); stroke: rgba(80, 160, 240, 0.3); stroke-width: 1; }
.qg-cutaway__wall { stroke: rgba(80, 170, 255, 0.45); stroke-width: 1; }
.qg-cutaway__roof { fill: rgba(60, 140, 220, 0.12); stroke: rgba(100, 190, 255, 0.4); stroke-width: 1; }
.qg-cutaway__floor { stroke: rgba(100, 190, 255, 0.2); stroke-width: 0.7; stroke-dasharray: 4 3; }
.qg-cutaway__core { fill: rgba(255, 42, 42, 0.15); stroke: rgba(255, 42, 42, 0.5); stroke-width: 0.8; }
.qg-cutaway__rack { fill: rgba(60, 140, 220, 0.1); stroke: rgba(100, 190, 255, 0.35); stroke-width: 0.6; }
.qg-cutaway__sensor { fill: rgba(255, 42, 42, 0.2); stroke: rgba(255, 42, 42, 0.4); stroke-width: 0.6; }
.qg-cutaway__wire { fill: none; stroke: rgba(255, 42, 42, 0.45); stroke-width: 1; stroke-dasharray: 4 3; }
.qg-cutaway__node { animation: qgNodePulse 2.5s ease-in-out infinite; }
.qg-cutaway__node-ring { animation: qgDotRing 2.2s ease-out infinite; }
.qg-cutaway__node-dot { fill: var(--qg-red); }
.qg-cutaway__hud { fill: none; stroke: rgba(255, 42, 42, 0.5); stroke-width: 1.5; }
.qg-cutaway__meta { fill: rgba(255, 42, 42, 0.4); font-family: var(--qg-mono); font-size: 9px; letter-spacing: 0.08em; }

.qg-cutaway--compact { min-height: 100px; max-height: 110px; }
.qg-cutaway--compact .qg-cutaway__wire,
.qg-cutaway--compact .qg-cutaway__hud,
.qg-cutaway--compact .qg-cutaway__grid,
.qg-cutaway--compact .qg-cutaway__meta { display: none; }

.qg-model-widget {
  padding: 0.65rem;
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 8px;
  background: rgba(var(--qg-bg-2-rgb), 0.9);
}

.qg-model-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.qg-model-widget__label {
  font-family: var(--qg-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qg-muted);
}

.qg-model-widget__live {
  display: flex;
  align-items: center;
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  color: var(--qg-red);
  letter-spacing: 0.08em;
}

.qg-model-widget__preview {
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  margin-top: 0.4rem;
}

.qg-model-widget__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.qg-model-widget__counter {
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  color: var(--qg-muted);
}

.qg-model-widget__nav button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--qg-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--qg-heading);
  cursor: pointer;
}

.qg-model-widget__nav button:hover { border-color: var(--qg-red); color: var(--qg-red); }

/* ═══ DASHBOARD / SUPPLY DESK ═══ */
.qg-dashboard {
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(255, 42, 42, 0.05), transparent 55%),
    var(--qg-bg);
}

.qg-dashboard__head { margin-bottom: 1.5rem; max-width: 720px; }

.qg-dashboard__command {
  display: grid;
  grid-template-columns: minmax(250px, 300px) 1fr;
  gap: 1rem;
  align-items: start;
}

.qg-dashboard__kit-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(255, 42, 42, 0.22);
  border-radius: 10px;
  background: rgba(var(--qg-bg-2-rgb), 0.85);
  box-shadow: inset 0 0 40px rgba(255, 42, 42, 0.03);
}

.qg-dashboard__kit-head {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--qg-border);
}

.qg-dashboard__kit-tag {
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(255, 42, 42, 0.5);
}

.qg-dashboard__kit-title {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.qg-dashboard__directions {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qg-dashboard__direction {
  position: relative;
  padding: 0.45rem 0.55rem 0.45rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.8rem;
  color: var(--qg-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.qg-dashboard__direction::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--qg-red);
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.45);
  transform: translateY(-50%);
}

.qg-dashboard__direction:hover {
  border-color: rgba(255, 42, 42, 0.2);
  color: var(--qg-heading);
}

.qg-dashboard__metrics {
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--qg-border);
  border-bottom: 1px solid var(--qg-border);
}

/* Command map SVG */
.qg-cmdmap { width: 100%; height: auto; }

.qg-cmdmap__bg {
  fill: rgba(var(--qg-bg-2-rgb), 0.9);
  stroke: rgba(255, 42, 42, 0.15);
  stroke-width: 1;
}

.qg-cmdmap__grid line { stroke: rgba(255, 255, 255, 0.02); stroke-width: 0.4; }
.qg-cmdmap__land { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 42, 42, 0.25); stroke-width: 0.6; }
.qg-cmdmap__line { stroke: rgba(255, 42, 42, 0.4); stroke-width: 0.8; stroke-dasharray: 3 2; }
.qg-cmdmap__dot { fill: var(--qg-red); }
.qg-cmdmap__pulse { animation: qgDotRing 2.5s ease-out infinite; }
.qg-cmdmap__title { fill: rgba(255, 255, 255, 0.6); font-family: var(--qg-mono); font-size: 8px; letter-spacing: 0.12em; }
.qg-cmdmap__meta { fill: rgba(255, 42, 42, 0.4); font-family: var(--qg-mono); font-size: 7px; }
.qg-cmdmap__live { fill: var(--qg-red); animation: qgLiveBlink 1.5s ease-in-out infinite; }
.qg-cmdmap__live-t { fill: rgba(255, 42, 42, 0.6); font-family: var(--qg-mono); font-size: 7px; text-anchor: end; }

.qg-spark__label { fill: rgba(255, 255, 255, 0.45); font-family: var(--qg-mono); font-size: 7px; }
.qg-spark__bg { fill: rgba(255, 255, 255, 0.02); stroke: rgba(255, 255, 255, 0.04); stroke-width: 0.5; }
.qg-spark__line { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.qg-dashboard__shell {
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(4, 6, 12, 0.95);
  box-shadow: 0 0 50px rgba(255, 42, 42, 0.06);
}

.qg-dashboard__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--qg-border);
  background: rgba(255, 42, 42, 0.03);
}

.qg-dashboard__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.qg-dashboard__tab {
  padding: 0.4rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--qg-muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qg-dashboard__tab.is-active,
.qg-dashboard__tab:hover {
  border-color: rgba(255, 42, 42, 0.35);
  background: rgba(255, 42, 42, 0.08);
  color: var(--qg-heading);
}

.qg-dashboard__note {
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  color: var(--qg-muted);
  letter-spacing: 0.06em;
  text-align: right;
}

.qg-dashboard__table-wrap { overflow-x: auto; }

.qg-dashboard__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.qg-dashboard__table--workflow td:nth-child(3) {
  color: var(--qg-muted);
  line-height: 1.45;
}

.qg-dashboard__step-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: 4px;
  font-family: var(--qg-mono);
  font-size: 0.68rem;
  color: rgba(255, 42, 42, 0.75);
  letter-spacing: 0.06em;
  background: rgba(255, 42, 42, 0.06);
}

.qg-dashboard__term {
  font-family: var(--qg-mono);
  font-size: 0.78rem;
  color: var(--qg-heading);
  white-space: nowrap;
}

.qg-dashboard__table th,
.qg-dashboard__table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-align: left;
  vertical-align: middle;
  font-size: 0.84rem;
}

.qg-dashboard__table th {
  font-family: var(--qg-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qg-muted);
  background: rgba(255, 42, 42, 0.03);
}

.qg-dashboard__table tbody tr {
  transition: background 0.15s ease;
}

.qg-dashboard__table tbody tr:hover {
  background: rgba(255, 42, 42, 0.05);
}

.qg-dashboard__obj-id {
  display: block;
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  color: rgba(255, 42, 42, 0.5);
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.qg-status {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--qg-mono);
  font-size: 0.65rem;
  border: 1px solid var(--qg-border);
}

.qg-status--active { color: #fca5a5; border-color: rgba(255, 42, 42, 0.35); background: rgba(255, 42, 42, 0.08); }
.qg-status--done { color: #86efac; border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }
.qg-status--plan { color: #93c5fd; border-color: rgba(59, 130, 246, 0.35); background: rgba(59, 130, 246, 0.08); }
.qg-status--service { color: #fcd34d; border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.08); }

.qg-progress {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 130px;
}

.qg-progress__bar {
  flex: 1;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.qg-progress__bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--qg-red), #ff5555);
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease;
}

.qg-progress__bar.is-animated::after { transform: scaleX(1); }

.qg-progress span {
  font-family: var(--qg-mono);
  font-size: 0.68rem;
  color: var(--qg-muted);
  min-width: 2.2rem;
}

/* ═══ OBJECT TYPES ═══ */
.qg-objtypes {
  background: linear-gradient(180deg, var(--qg-bg-2), var(--qg-bg));
}

.qg-objtypes__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: start;
}

.qg-objtypes__list {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
  padding: 0 0.25rem 0.35rem 0;
}

.qg-objtypes__left {
  overflow: visible;
}

.qg-objtype {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--qg-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--qg-muted);
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qg-objtype__id {
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  color: rgba(255, 42, 42, 0.4);
  letter-spacing: 0.06em;
  min-width: 2rem;
}

.qg-objtype:hover,
.qg-objtype.is-active {
  border-color: var(--qg-border-hot);
  color: var(--qg-heading);
  background: rgba(255, 42, 42, 0.06);
  box-shadow: 0 0 24px rgba(255, 42, 42, 0.1);
}

.qg-objtypes__panel {
  padding: 0;
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 10px;
  background: var(--qg-panel);
  overflow: hidden;
}

.qg-objtypes__visual {
  border-bottom: 1px solid var(--qg-border);
  background: var(--qg-bg-2);
  min-height: 280px;
  transition: opacity 0.25s ease;
}

.qg-objtypes__visual.is-switching { animation: qgSwitch 0.35s ease; }

.qg-objtypes__visual .qg-objvis-viewport__img {
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.qg-objtypes__visual.is-switching .qg-objvis-viewport__img {
  animation: qgCaseImgIn 0.35s ease;
}

@keyframes qgCaseImgIn {
  from { opacity: 0.4; transform: scale(1.03); }
  to { opacity: 1; transform: scale(1); }
}

.qg-objtypes__info { padding: 1rem 1.15rem; }

.qg-objtypes__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.qg-objtypes__tags span {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: 4px;
  font-family: var(--qg-mono);
  font-size: 0.65rem;
  color: var(--qg-muted);
  background: rgba(255, 42, 42, 0.04);
}

/* Object visual SVG */
.qg-objvis-viewport {
  position: relative;
  overflow: hidden;
  background: var(--qg-bg-2);
}

.qg-objvis-viewport__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 460 / 320;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.85) contrast(1.05) brightness(0.82);
}

.qg-objvis-viewport--warm .qg-objvis-viewport__img {
  filter: saturate(0.92) contrast(1.06) brightness(0.86) sepia(0.04);
}

.qg-objvis { width: 100%; height: auto; }

.qg-objvis--overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.qg-objvis__bg {
  fill: rgba(var(--qg-bg-2-rgb), 0.9);
  stroke: rgba(255, 42, 42, 0.15);
  stroke-width: 1;
}

.qg-objvis__grid line { stroke: rgba(255, 255, 255, 0.02); stroke-width: 0.5; }
.qg-objvis__base { fill: rgba(20, 50, 90, 0.12); stroke: rgba(80, 160, 240, 0.3); stroke-width: 1; }
.qg-objvis__roof { fill: rgba(60, 140, 220, 0.1); stroke: rgba(100, 190, 255, 0.35); stroke-width: 1; }
.qg-objvis__dock { stroke: rgba(255, 42, 42, 0.3); stroke-width: 1; stroke-dasharray: 6 3; }
.qg-objvis__wire { fill: none; stroke: rgba(255, 42, 42, 0.4); stroke-width: 1; stroke-dasharray: 4 3; }
.qg-objvis__pulse { animation: qgDotRing 2.2s ease-out infinite; }
.qg-objvis__dot { fill: var(--qg-red); }
.qg-objvis__chimney { fill: rgba(80, 60, 40, 0.25); stroke: rgba(200, 150, 80, 0.3); stroke-width: 0.8; }
.qg-objvis__mullion { stroke: rgba(100, 190, 255, 0.15); stroke-width: 0.6; }
.qg-objvis__rack { fill: rgba(255, 42, 42, 0.1); stroke: rgba(255, 42, 42, 0.35); stroke-width: 0.6; }
.qg-objvis__hud-panel { fill: rgba(255, 42, 42, 0.05); stroke: rgba(255, 42, 42, 0.25); stroke-width: 0.8; }
.qg-objvis__hud-t { fill: rgba(255, 255, 255, 0.4); font-family: var(--qg-mono); font-size: 8px; letter-spacing: 0.08em; }
.qg-objvis__hud-v { fill: var(--qg-red); font-family: var(--qg-mono); font-size: 10px; font-weight: 600; }
.qg-objvis__label { fill: rgba(255, 42, 42, 0.6); font-family: var(--qg-mono); font-size: 11px; letter-spacing: 0.14em; }
.qg-objvis__sublabel { fill: rgba(255, 255, 255, 0.35); font-family: var(--qg-mono); font-size: 7px; letter-spacing: 0.08em; }
.qg-objvis__coord { fill: rgba(255, 255, 255, 0.3); font-family: var(--qg-mono); font-size: 8px; letter-spacing: 0.06em; }

/* ═══ CASES ═══ */
.qg-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.qg-case {
  position: relative;
  border: 1px solid rgba(255, 42, 42, 0.15);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(var(--qg-bg-2-rgb), 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.qg-case:hover {
  transform: translateY(-3px);
  border-color: var(--qg-border-hot);
  box-shadow: 0 8px 40px rgba(255, 42, 42, 0.15), 0 0 60px rgba(255, 42, 42, 0.05);
}

.qg-case__visual {
  height: 180px;
  overflow: hidden;
}

.qg-case__visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qg-case__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent 40%, rgba(var(--qg-bg-rgb), 0.9) 100%);
  pointer-events: none;
}

.qg-case__body {
  position: relative;
  padding: 1rem 1.1rem 1.15rem;
  margin-top: -2rem;
}

.qg-case__id {
  display: block;
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  color: rgba(255, 42, 42, 0.5);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.qg-case__body ul {
  margin: 0.6rem 0;
  padding: 0;
  list-style: none;
  color: var(--qg-muted);
  font-size: 0.82rem;
}

.qg-case__body li {
  display: flex;
  gap: 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.qg-case__key {
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  color: rgba(255, 42, 42, 0.45);
  min-width: 4.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qg-case__link {
  color: var(--qg-red);
  font-size: 0.82rem;
  text-decoration: none;
}

.qg-case__link:hover { text-decoration: underline; }

/* ═══ SOLUTIONS ═══ */
.qg-solutions { background: var(--qg-bg-2); }

.qg-solutions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.qg-solution {
  position: relative;
  display: block;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.qg-solution:focus-visible {
  outline: 2px solid var(--qg-red);
  outline-offset: 2px;
}

.qg-solution::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--qg-red), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.qg-solution:hover,
.qg-solution.is-active {
  transform: translateY(-3px);
  border-color: var(--qg-border-hot);
  box-shadow: 0 0 30px rgba(255, 42, 42, 0.1);
}

.qg-solution:hover::before,
.qg-solution.is-active::before { opacity: 1; }

.qg-solution h3 {
  margin: 0;
  font-size: 0.95rem;
}

.qg-solution__teaser {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--qg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qg-solution-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.qg-solution-drawer.is-open { pointer-events: auto; }

.qg-solution-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 4, 8, 0.72);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.qg-solution-drawer.is-open .qg-solution-drawer__backdrop { opacity: 1; }

.qg-solution-drawer__shell {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 42, 42, 0.25);
  background: var(--qg-panel);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.qg-solution-drawer.is-open .qg-solution-drawer__shell { transform: translateX(0); }

.qg-solution-drawer__hud {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem 0;
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(255, 42, 42, 0.45);
}

.qg-solution-drawer__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--qg-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--qg-heading);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qg-solution-drawer__close:hover {
  border-color: var(--qg-border-hot);
  background: rgba(255, 42, 42, 0.08);
}

.qg-solution-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 2rem;
}

.qg-solution-panel[hidden] { display: none; }

.qg-solution-panel.is-active { animation: qgSwitch 0.35s ease; }

.qg-solution-panel__id {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(255, 42, 42, 0.45);
}

.qg-solution-panel__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 8px;
  background: rgba(255, 42, 42, 0.06);
  color: var(--qg-red);
}

.qg-solution-panel__svg { width: 1.6rem; height: 1.6rem; }

.qg-solution-panel__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.qg-solution-panel__lead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--qg-heading);
}

.qg-solution-panel__detail {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--qg-muted);
}

.qg-solution-panel__cta { width: 100%; }

.qg-solution-panel__more {
  width: 100%;
  margin-bottom: 0.55rem;
}

body.qg-drawer-open { overflow: hidden; }

.qg-solution__id {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  font-family: var(--qg-mono);
  font-size: 0.55rem;
  color: rgba(255, 42, 42, 0.35);
  letter-spacing: 0.06em;
}

.qg-solution__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.qg-solution__arrow {
  color: var(--qg-red);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.qg-solution:hover .qg-solution__arrow,
.qg-solution.is-active .qg-solution__arrow { opacity: 1; transform: translateX(0); }

.qg-solution p { margin: 0; font-size: 0.82rem; color: var(--qg-muted); }

/* ═══ UPLOAD ═══ */
.qg-upload { background: var(--qg-bg); }

.qg-upload__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
  overflow: visible;
}

.qg-upload__info {
  overflow: visible;
}

.qg-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0;
  padding: 0.35rem 0.15rem;
  overflow: visible;
}

.qg-workflow-item {
  position: relative;
  z-index: 0;
  padding: 0.65rem;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
  cursor: default;
  transform-origin: center center;
  transition:
    transform 0.45s ease,
    border-color 0.35s ease,
    box-shadow 0.45s ease,
    background 0.35s ease;
}

.qg-workflow-item:hover,
.qg-workflow-item:focus-within {
  z-index: 2;
  transform: scale(1.06);
  border-color: rgba(255, 42, 42, 0.35);
  background: rgba(255, 42, 42, 0.04);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(255, 42, 42, 0.08);
}

.qg-workflow-item__icon {
  width: 20px;
  height: 20px;
  margin: 0 auto 0.35rem;
  transition: transform 0.45s ease, color 0.35s ease;
}

.qg-workflow-item:hover .qg-workflow-item__icon,
.qg-workflow-item:focus-within .qg-workflow-item__icon {
  transform: scale(1.06);
  color: rgba(255, 42, 42, 0.85);
}

.qg-workflow-item strong {
  display: block;
  font-size: 0.74rem;
  color: var(--qg-heading);
  transition: color 0.25s ease;
}

.qg-workflow-item span {
  font-size: 0.64rem;
  color: var(--qg-muted);
  transition: color 0.25s ease;
}

.qg-workflow-item:hover span,
.qg-workflow-item:focus-within span {
  color: var(--qg-text);
}

.qg-upload__email {
  display: inline-block;
  color: var(--qg-red);
  font-family: var(--qg-mono);
  font-size: 0.84rem;
  text-decoration: none;
}

.qg-upload__email:hover { text-decoration: underline; }

.qg-dropzone__svg { width: 38px; height: 38px; }

.qg-upload__form {
  padding: 1.1rem;
  border: 1px solid rgba(255, 42, 42, 0.18);
  border-radius: 10px;
  background: var(--qg-panel);
}

.qg-dropzone {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  padding: 1.25rem;
  margin-bottom: 0.85rem;
  border: 1px dashed rgba(255, 42, 42, 0.35);
  border-radius: 8px;
  background: rgba(255, 42, 42, 0.03);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qg-dropzone:hover,
.qg-dropzone.is-dragover,
.qg-dropzone.has-file {
  border-color: rgba(255, 42, 42, 0.7);
  background: rgba(255, 42, 42, 0.07);
  box-shadow: 0 0 30px rgba(255, 42, 42, 0.1);
}

.qg-dropzone__text { color: var(--qg-heading); font-weight: 600; font-size: 0.9rem; }
.qg-dropzone__formats, .qg-dropzone__file { font-size: 0.78rem; color: var(--qg-muted); }
.qg-dropzone__file { color: #fca5a5; }

.qg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.qg-form-grid label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--qg-muted);
}

.qg-form-full { grid-column: 1 / -1; }

.qg-form-grid input,
.qg-form-grid textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--qg-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--qg-heading);
  font: inherit;
}

.qg-form-grid input:focus,
.qg-form-grid textarea:focus {
  outline: none;
  border-color: var(--qg-border-hot);
  box-shadow: 0 0 0 2px rgba(255, 42, 42, 0.1);
}

.qg-form-status { min-height: 1.1rem; margin: 0.65rem 0 0; font-size: 0.84rem; color: #86efac; }
.qg-form-status.is-error { color: #fca5a5; }

/* ═══ PROCESS ═══ */
.qg-process__track {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.qg-step {
  position: relative;
  padding: 0.85rem;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  min-height: 160px;
}

.qg-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.4rem;
  width: 0.6rem;
  height: 1px;
  background: rgba(255, 42, 42, 0.4);
}

.qg-step:last-child::after { display: none; }

.qg-step__num {
  font-family: var(--qg-mono);
  font-size: 0.65rem;
  color: var(--qg-red);
  margin-bottom: 0.4rem;
}

.qg-step__icon { margin-bottom: 0.5rem; width: 22px; height: 22px; }
.qg-step p { margin: 0; font-size: 0.78rem; color: var(--qg-muted); }

/* ═══ METRICS ═══ */
.qg-metrics {
  position: relative;
  background: var(--qg-bg-2);
  overflow: hidden;
}

.qg-metrics__topo {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255, 42, 42, 0.05) 0 1px, transparent 1px 22px),
    repeating-radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 16px);
  pointer-events: none;
}

.qg-section__head--center { text-align: center; margin-inline: auto; }

.qg-metrics__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  position: relative;
  z-index: 1;
}

.qg-metric {
  padding: 1rem 0.6rem;
  border: 1px solid var(--qg-border);
  border-top: 2px solid rgba(255, 42, 42, 0.5);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}

.qg-metric__id {
  display: block;
  font-family: var(--qg-mono);
  font-size: 0.55rem;
  color: rgba(255, 42, 42, 0.35);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.qg-metric strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: clamp(0.95rem, 1.8vw, 1.35rem);
  color: var(--qg-heading);
  font-family: var(--qg-mono);
}

/* ═══ TRUSTED ═══ */
.qg-trusted__title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qg-muted);
}

.qg-trusted__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.55rem;
}

.qg-logo-pill {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 0.65rem;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s ease;
}

.qg-logo-pill:hover { border-color: var(--qg-border-hot); }

.qg-logo-pill span {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* ═══ CAREER ═══ */
.qg-career {
  background: var(--qg-bg-2);
}

.qg-career__perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.qg-career-perk {
  padding: 1rem;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}

.qg-career-perk__num {
  display: block;
  font-family: var(--qg-mono);
  font-size: 0.65rem;
  color: var(--qg-red);
  margin-bottom: 0.45rem;
}

.qg-career-perk h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.qg-career-perk p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--qg-muted);
}

.qg-career__vacancies-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.qg-career__vacancies-title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.qg-career__vacancies-count {
  font-family: var(--qg-mono);
  font-size: 0.72rem;
  color: var(--qg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qg-career__vacancies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.qg-career-job {
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qg-career-job:hover {
  border-color: var(--qg-border-hot);
  box-shadow: inset 0 0 30px rgba(255, 42, 42, 0.03);
}

.qg-career-job__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.qg-career-job__id {
  font-family: var(--qg-mono);
  font-size: 0.6rem;
  color: rgba(255, 42, 42, 0.45);
  letter-spacing: 0.08em;
}

.qg-career-job__type {
  font-family: var(--qg-mono);
  font-size: 0.6rem;
  color: var(--qg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qg-career-job__title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.qg-career-job__location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--qg-muted);
}

.qg-career-job__pin {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--qg-red);
}

.qg-career-job__desc {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--qg-muted);
  flex: 1;
}

.qg-career-job__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.qg-career-job__tags span {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--qg-border);
  border-radius: 4px;
  font-family: var(--qg-mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qg-career-job__apply {
  align-self: flex-start;
  margin-top: auto;
}

.qg-career__cta {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(255, 42, 42, 0.18);
  border-radius: 10px;
  text-align: center;
  background: rgba(var(--qg-bg-2-rgb), 0.55);
}

.qg-career__cta h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.qg-career__cta p {
  margin: 0 0 1rem;
  color: var(--qg-muted);
  font-size: 0.88rem;
}

.qg-career__cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* ═══ FINAL CTA ═══ */
.qg-final-cta {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 42, 42, 0.1), transparent 55%),
    var(--qg-bg);
}

.qg-final-cta__inner {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 12px;
  text-align: center;
  background: rgba(var(--qg-bg-2-rgb), 0.7);
  box-shadow: inset 0 0 60px rgba(255, 42, 42, 0.04);
}

.qg-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.qg-final-cta__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
}

.qg-final-cta__contacts a {
  color: var(--qg-muted);
  text-decoration: none;
  font-family: var(--qg-mono);
  font-size: 0.84rem;
}

.qg-final-cta__contacts a:hover { color: var(--qg-heading); }

/* ═══ FOOTER ═══ */
.qg-footer {
  padding: clamp(2rem, 4vw, 2.75rem) 0 1.25rem;
  border-top: 1px solid var(--qg-border);
  background: #020304;
}

.qg-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}

.qg-footer__brand {
  display: grid;
  gap: 0.85rem;
  max-width: 36ch;
}

.qg-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  color: var(--qg-heading);
  text-decoration: none;
}

.qg-footer__logo-text {
  font-family: var(--qg-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.qg-footer__desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--qg-muted);
}

.qg-footer__contacts {
  display: grid;
  gap: 0.35rem;
}

.qg-footer__contact {
  width: fit-content;
  color: var(--qg-heading);
  font-size: 0.84rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.qg-footer__contact:hover {
  color: var(--qg-red);
}

.qg-footer__col {
  display: grid;
  gap: 0;
  align-content: start;
}

.qg-footer__heading {
  margin: 0 0 0.85rem;
  color: var(--qg-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qg-footer__links {
  display: grid;
  gap: 0.5rem;
}

.qg-footer__links a {
  width: fit-content;
  color: var(--qg-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}

.qg-footer__links a:hover {
  color: var(--qg-red);
}

.qg-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: 1rem;
  border-top: 1px solid var(--qg-border);
  color: var(--qg-muted);
  font-size: 0.76rem;
  text-align: center;
}

.qg-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  width: 100%;
}

.qg-footer__legal a,
.qg-footer__legal a:link,
.qg-footer__legal a:visited {
  color: var(--qg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.qg-footer__legal a:hover {
  color: var(--qg-heading);
}

#quadro-group-root .qg-footer__bottom,
#legal-root .qg-footer__bottom,
#careers-root .qg-footer__bottom,
#certificates-root .qg-footer__bottom,
#contacts-root .qg-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#quadro-group-root .qg-footer__legal,
#legal-root .qg-footer__legal,
#careers-root .qg-footer__legal,
#certificates-root .qg-footer__legal,
#contacts-root .qg-footer__legal {
  justify-content: center;
  width: 100%;
}

#quadro-group-root .qg-footer__legal a,
#quadro-group-root .qg-footer__legal a:link,
#quadro-group-root .qg-footer__legal a:visited,
#legal-root .qg-footer__legal a,
#legal-root .qg-footer__legal a:link,
#legal-root .qg-footer__legal a:visited,
#careers-root .qg-footer__legal a,
#careers-root .qg-footer__legal a:link,
#careers-root .qg-footer__legal a:visited,
#certificates-root .qg-footer__legal a,
#certificates-root .qg-footer__legal a:link,
#certificates-root .qg-footer__legal a:visited,
#contacts-root .qg-footer__legal a,
#contacts-root .qg-footer__legal a:link,
#contacts-root .qg-footer__legal a:visited {
  color: var(--qg-muted);
  text-decoration: none;
}

.qg-footer__copyright,
.qg-footer__inn {
  margin: 0;
}

/* ═══ ANIMATIONS ═══ */
@keyframes qgLinePulse {
  0%, 100% { stroke-opacity: 0.35; }
  50% { stroke-opacity: 1; }
}

@keyframes qgNodePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes qgDotRing {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2); opacity: 0; }
}

@keyframes qgScan {
  0% { transform: translateY(-10%); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translateY(280%); opacity: 0; }
}

@keyframes qgImpulseTravel {
  0%, 100% { opacity: 0; r: 1; }
  50% { opacity: 1; r: 2.5; }
}

@keyframes qgLiveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes qgSwitch {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  .qg-hero__main { grid-template-columns: 1fr; }
  .qg-hero__network { max-width: 480px; }
  .qg-dashboard__command { grid-template-columns: 1fr; }
  .qg-dashboard__note { text-align: left; width: 100%; }
}

@media (max-width: 1024px) {
  .qg-hero__stats-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qg-hero-stat:nth-child(3n) { border-right: 0; }
  .qg-object-system__stage { grid-template-columns: 1fr; }
  .qg-callout--right li { justify-content: flex-start; text-align: left; }
  .qg-callout--right .qg-callout__dot { order: 0; }
  .qg-upload__grid,
  .qg-objtypes__grid { grid-template-columns: 1fr; }
  .qg-metrics__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qg-cases__grid { grid-template-columns: 1fr; }
  .qg-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qg-workflow-item:hover,
  .qg-workflow-item:focus-within {
    transform: scale(1.04);
  }
  .qg-process__track { grid-template-columns: repeat(7, minmax(160px, 1fr)); }
  .qg-career__perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qg-career__vacancies { grid-template-columns: 1fr; }
  .qg-section__hud { display: none; }
}

@media (max-width: 820px) {
  .qg-header__inner { grid-template-columns: 1fr auto auto; }

  .qg-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 0.85rem;
    background: rgba(var(--qg-bg-rgb), 0.97);
    border-bottom: 1px solid var(--qg-border);
  }

  .qg-nav.is-open { display: flex; }
  .qg-burger { display: inline-block; }
  .qg-header__actions { display: none; }

  .qg-hero__stats-bar { grid-template-columns: 1fr 1fr; }
  .qg-hero-stat { border-right: 0; border-bottom: 1px solid var(--qg-border); }
  .qg-hero-stat:nth-child(2n) { border-right: 1px solid var(--qg-border); }
  .qg-hero-stat:nth-last-child(-n+2) { border-bottom: 0; }

  .qg-form-grid { grid-template-columns: 1fr; }

  .qg-dashboard__command { grid-template-columns: 1fr; }
  .qg-dashboard__toolbar { flex-direction: column; align-items: stretch; }
  .qg-dashboard__tabs { width: 100%; }
  .qg-dashboard__note { text-align: left; width: 100%; }

  .qg-dashboard__table { min-width: 100%; }
  .qg-dashboard__table thead { display: none; }

  .qg-dashboard__table tr {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--qg-border);
  }

  .qg-dashboard__table td {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.4rem;
    padding: 0.25rem 0;
    border: 0;
  }

  .qg-dashboard__table td::before {
    content: attr(data-label);
    color: var(--qg-muted);
    font-family: var(--qg-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
  }

  .qg-hero__coords { display: none; }
}

@media (max-width: 640px) {
  .qg-hero { min-height: auto; }
  .qg-hero__layout { padding-block: 2rem 1.25rem; min-height: auto; }
  #quadro-group-root h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .qg-hero__stats-bar { grid-template-columns: 1fr; }
  .qg-hero-stat { border-right: 0 !important; }
  .qg-hero-stat:last-child { border-bottom: 0; }
  .qg-workflow { grid-template-columns: 1fr 1fr; }
  .qg-metrics__grid { grid-template-columns: 1fr 1fr; }
  .qg-career__perks { grid-template-columns: 1fr; }
  .qg-step::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #quadro-group-root *,
  #quadro-group-root *::before,
  #quadro-group-root *::after {
    animation: none !important;
    transition: none !important;
  }

  .qg-reveal { opacity: 1; transform: none; }
}

/* ═══ SOUE PAGE ═══ */
.qg-page--soue { background: var(--qg-bg); }

.qg-soue-page { position: relative; }

.qg-soue-hero {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(255, 42, 42, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 60%, rgba(255, 42, 42, 0.04), transparent 50%),
    var(--qg-bg);
  border-bottom: 1px solid var(--qg-border);
}

.qg-soue-hero__hud {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: var(--qg-container);
  display: flex;
  justify-content: space-between;
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(255, 42, 42, 0.4);
  pointer-events: none;
}

.qg-soue-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.qg-soue-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  color: var(--qg-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qg-soue-hero__lead {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--qg-text);
  max-width: 58ch;
}

.qg-soue-hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.qg-soue-perk {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 4px;
  background: rgba(255, 42, 42, 0.05);
  font-size: 0.72rem;
  color: var(--qg-heading);
}

.qg-soue-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.qg-soue-hero__micro {
  margin: 0;
  font-size: 0.82rem;
  color: var(--qg-muted);
  max-width: 52ch;
}

.qg-soue-hero__panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-self: start;
  padding: 0.85rem;
  border: 1px solid rgba(255, 42, 42, 0.22);
  border-radius: 10px;
  background: rgba(var(--qg-bg-2-rgb), 0.85);
  box-shadow: inset 0 0 50px rgba(255, 42, 42, 0.04);
  animation: qgSouePanelPulse 3.2s ease-in-out infinite;
}

.qg-soue-hero__panel-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.qg-soue-ripple-wrap {
  position: relative;
  overflow: hidden;
}

.qg-soue-ripple-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.qg-soue-hero__panel-wrap .qg-soue-ripple-canvas {
  z-index: 2;
}

.qg-soue-cta .qg-soue-ripple-canvas {
  z-index: 0;
}

.qg-soue-hero__panel-wrap .qg-soue-panel {
  position: relative;
  z-index: 1;
  display: block;
}

.qg-soue-panel { width: 100%; height: auto; }
.qg-soue-panel__bg { fill: rgba(var(--qg-bg-2-rgb), 0.95); stroke: rgba(255, 42, 42, 0.15); stroke-width: 1; }
.qg-soue-panel__grid line { stroke: rgba(255, 255, 255, 0.025); stroke-width: 0.4; }
.qg-soue-panel__hud { fill: none; stroke: rgba(255, 42, 42, 0.45); stroke-width: 1.2; }
.qg-soue-panel__meta { fill: rgba(255, 42, 42, 0.5); font-family: var(--qg-mono); font-size: 8px; letter-spacing: 0.1em; }
.qg-soue-panel__rack { fill: rgba(255, 255, 255, 0.02); stroke: rgba(255, 42, 42, 0.25); stroke-width: 0.8; }
.qg-soue-panel__unit { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.08); stroke-width: 0.5; }
.qg-soue-panel__unit--hot {
  fill: rgba(255, 42, 42, 0.12);
  stroke: rgba(255, 42, 42, 0.35);
  animation: qgSoueHotPulse 2.4s ease-in-out infinite;
}
.qg-soue-panel__label { fill: rgba(255, 255, 255, 0.55); font-family: var(--qg-mono); font-size: 7px; }
.qg-soue-panel__wire {
  stroke: rgba(255, 42, 42, 0.45);
  stroke-width: 0.8;
  stroke-dasharray: 3 2;
  animation: qgSoueWireFlow 1.8s linear infinite;
}
.qg-soue-panel__wire--1 { animation-delay: 0s; }
.qg-soue-panel__wire--2 { animation-delay: 0.35s; }
.qg-soue-panel__wire--3 { animation-delay: 0.7s; }
.qg-soue-panel__wire--4 { animation-delay: 0.2s; }
.qg-soue-panel__wire--5 { animation-delay: 0.55s; }
.qg-soue-panel__wire--6 { animation-delay: 0.85s; }
.qg-soue-panel__node {
  fill: var(--qg-red);
  animation: qgSoueNodePulse 2s ease-in-out infinite;
}
.qg-soue-panel__node--1 { animation-delay: 0s; }
.qg-soue-panel__node--2 { animation-delay: 0.45s; }
.qg-soue-panel__node--3 { animation-delay: 0.9s; }
.qg-soue-panel__pulse-ring {
  fill: none;
  stroke: rgba(255, 42, 42, 0.55);
  stroke-width: 1;
  animation: qgSoueRingPulse 2.4s ease-out infinite;
}
.qg-soue-panel__pulse-ring--1 { animation-delay: 0s; }
.qg-soue-panel__pulse-ring--2 { animation-delay: 0.8s; }
.qg-soue-panel__pulse-ring--3 { animation-delay: 1.6s; }
.qg-soue-panel__speaker {
  fill: rgba(255, 42, 42, 0.15);
  stroke: rgba(255, 42, 42, 0.5);
  stroke-width: 0.6;
  animation: qgSoueSpeakerPulse 2.2s ease-in-out infinite;
}
.qg-soue-panel__speaker--1 { animation-delay: 0.15s; }
.qg-soue-panel__speaker--2 { animation-delay: 0.55s; }
.qg-soue-panel__speaker--3 { animation-delay: 0.95s; }
.qg-soue-panel__zone { fill: rgba(255, 255, 255, 0.45); font-family: var(--qg-mono); font-size: 7px; }
.qg-soue-panel__live { fill: var(--qg-red); animation: qgLiveBlink 1.5s ease-in-out infinite; }
.qg-soue-panel__live-t { fill: rgba(255, 42, 42, 0.6); font-family: var(--qg-mono); font-size: 7px; text-anchor: end; }

@keyframes qgSouePanelPulse {
  0%, 100% {
    border-color: rgba(255, 42, 42, 0.22);
    box-shadow: inset 0 0 50px rgba(255, 42, 42, 0.04), 0 0 0 rgba(255, 42, 42, 0);
  }
  50% {
    border-color: rgba(255, 42, 42, 0.42);
    box-shadow: inset 0 0 70px rgba(255, 42, 42, 0.09), 0 0 28px rgba(255, 42, 42, 0.14);
  }
}

@keyframes qgSoueWireFlow {
  to { stroke-dashoffset: -10; }
}

@keyframes qgSoueNodePulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes qgSoueRingPulse {
  0% { r: 5; opacity: 0.75; stroke-width: 1.2; }
  100% { r: 16; opacity: 0; stroke-width: 0.4; }
}

@keyframes qgSoueHotPulse {
  0%, 100% { fill: rgba(255, 42, 42, 0.1); stroke: rgba(255, 42, 42, 0.3); }
  50% { fill: rgba(255, 42, 42, 0.22); stroke: rgba(255, 42, 42, 0.55); }
}

@keyframes qgSoueSpeakerPulse {
  0%, 100% { fill: rgba(255, 42, 42, 0.12); opacity: 0.85; }
  50% { fill: rgba(255, 42, 42, 0.24); opacity: 1; }
}

.qg-soue-about {
  background: var(--qg-bg-2);
}

.qg-soue-about__layout {
  display: flex;
  flex-direction: column;
}

.qg-soue-about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem 2rem;
  align-items: start;
}

.qg-soue-about__head {
  grid-column: 1;
  grid-row: 1;
}

.qg-soue-about__body:first-of-type {
  grid-column: 2;
  grid-row: 1;
}

.qg-soue-about__figure {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0.25rem auto 0;
  max-width: min(920px, 100%);
  padding: 0.75rem;
  border: 1px solid rgba(255, 42, 42, 0.18);
  border-radius: 12px;
  background: rgba(var(--qg-bg-2-rgb), 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.qg-soue-about__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.qg-soue-about__body p {
  margin: 0 0 1rem;
  color: var(--qg-text);
  line-height: 1.65;
}

.qg-soue-about__below {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  gap: 1.25rem;
}

.qg-soue-about__list-title {
  margin: 0;
  font-weight: 600;
  color: var(--qg-heading);
  text-align: center;
}

.qg-soue-about__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 1.75rem;
}

.qg-soue-about__list li {
  position: relative;
  margin: 0;
  padding-left: 1rem;
  color: var(--qg-text);
  line-height: 1.55;
  font-size: 0.92rem;
}

.qg-soue-about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--qg-red);
  box-shadow: 0 0 6px rgba(255, 42, 42, 0.55);
}

.qg-soue-about__closing {
  margin: 0.5rem auto 0;
  max-width: 72ch;
  text-align: center;
  color: var(--qg-text);
  line-height: 1.65;
}

.qg-soue-about__below .qg-soue-note {
  max-width: 72ch;
  margin-inline: auto;
}

.qg-soue-note {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 2px solid rgba(255, 42, 42, 0.45);
  background: rgba(255, 42, 42, 0.04);
  color: var(--qg-heading);
  font-size: 0.9rem;
  line-height: 1.55;
}

.qg-soue-footnote,
.qg-soue-disclaimer {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--qg-muted);
  max-width: 72ch;
}

.qg-soue-objects .qg-soue-footnote {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.65;
  color: var(--qg-muted);
}

.qg-soue-disclaimer {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 42, 42, 0.15);
  border-radius: 6px;
  background: rgba(255, 42, 42, 0.03);
}

.qg-soue-objects { background: var(--qg-bg); }

.qg-soue-objects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.qg-soue-obj {
  position: relative;
  min-height: 92px;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.qg-soue-obj__media {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  transform: scale(1.04);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.qg-soue-obj__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.9) saturate(0.25) brightness(0.7);
  transition: filter 0.35s ease;
}

.qg-soue-obj__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--qg-bg-rgb), 0.35) 0%, rgba(var(--qg-bg-rgb), 0.72) 55%, rgba(var(--qg-bg-rgb), 0.94) 100%);
  opacity: 0.92;
  transition: opacity 0.35s ease;
}

.qg-soue-obj__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  min-height: 92px;
}

.qg-soue-obj:hover,
.qg-soue-obj:focus-within,
.qg-soue-obj.is-active {
  border-color: var(--qg-border-hot);
  box-shadow: 0 0 28px rgba(255, 42, 42, 0.14);
  transform: translateY(-2px);
}

.qg-soue-obj:hover .qg-soue-obj__media,
.qg-soue-obj:focus-within .qg-soue-obj__media,
.qg-soue-obj.is-active .qg-soue-obj__media {
  opacity: 1;
  transform: scale(1);
}

.qg-soue-obj:hover .qg-soue-obj__img,
.qg-soue-obj:focus-within .qg-soue-obj__img,
.qg-soue-obj.is-active .qg-soue-obj__img {
  filter: none;
}

.qg-soue-obj:hover .qg-soue-obj__shade,
.qg-soue-obj:focus-within .qg-soue-obj__shade,
.qg-soue-obj.is-active .qg-soue-obj__shade {
  opacity: 0.42;
}

.qg-soue-obj:hover .qg-soue-obj__id,
.qg-soue-obj:focus-within .qg-soue-obj__id,
.qg-soue-obj.is-active .qg-soue-obj__id {
  color: rgba(255, 42, 42, 0.75);
}

.qg-soue-obj:hover h3,
.qg-soue-obj:focus-within h3,
.qg-soue-obj.is-active h3 {
  color: var(--qg-heading);
}

.qg-soue-obj__id {
  display: block;
  font-family: var(--qg-mono);
  font-size: 0.55rem;
  color: rgba(255, 42, 42, 0.4);
  letter-spacing: 0.06em;
  transition: color 0.25s ease;
}

.qg-soue-obj h3 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.qg-soue-obj__case {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: transparent;
  transition: color 0.25s ease;
}

.qg-soue-obj:hover .qg-soue-obj__case,
.qg-soue-obj:focus-within .qg-soue-obj__case,
.qg-soue-obj.is-active .qg-soue-obj__case {
  color: var(--qg-muted);
}

.qg-soue-equipment { background: var(--qg-bg-2); }

.qg-soue-equipment__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.65rem;
}

.qg-soue-equip {
  padding: 1rem;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.qg-soue-equip {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.qg-soue-equip--link:hover {
  box-shadow: 0 0 28px rgba(255, 42, 42, 0.12);
}

.qg-soue-equip__link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--qg-red);
}

.qg-soue-equip:hover {
  transform: translateY(-2px);
  border-color: var(--qg-border-hot);
}

.qg-soue-equip__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.qg-soue-equip__code {
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  color: rgba(255, 42, 42, 0.55);
  letter-spacing: 0.08em;
}

.qg-soue-equip__head .qg-icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--qg-red);
  opacity: 0.7;
}

.qg-soue-equip h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.qg-soue-equip p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--qg-muted);
}

.qg-soue-catalog {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--qg-border);
}

.qg-soue-catalog__label {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--qg-muted);
  text-transform: uppercase;
}

.qg-soue-catalog__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.qg-soue-catalog__tag {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
  color: var(--qg-muted);
}

/* ── Customization block ── */
.qg-soue-custom {
  position: relative;
  background: var(--qg-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.qg-soue-custom__grid {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}

.qg-soue-custom__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(0.5rem, 2vw, 1.5rem);
}

.qg-soue-custom__copy .qg-kicker {
  margin-bottom: 1rem;
}

.qg-soue-custom__copy h2 {
  margin: 0 0 1.5rem;
  max-width: 18ch;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}

.qg-soue-custom__text {
  margin: 0 0 2rem;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  color: var(--qg-muted);
  max-width: 42ch;
}

.qg-soue-custom__highlights {
  display: grid;
  gap: 1rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.qg-soue-custom__highlights li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--qg-text);
}

.qg-soue-custom__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.qg-soue-custom__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.qg-soue-custom__showcase {
  position: sticky;
  top: 5rem;
  min-width: 0;
}

.qg-soue-custom__gallery {
  position: relative;
  padding: 1rem;
  border: 1px solid rgba(255, 42, 42, 0.22);
  border-radius: 12px;
  background: rgba(var(--qg-bg-2-rgb), 0.88);
  box-shadow:
    inset 0 0 60px rgba(255, 42, 42, 0.03),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

.qg-soue-custom__slides {
  position: relative;
  min-height: 320px;
}

.qg-soue-custom__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.qg-soue-custom__slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.qg-soue-custom__slide-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  min-height: 380px;
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04), transparent 65%),
    rgba(var(--qg-bg-rgb), 0.75);
}

.qg-soue-callpanel-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.qg-soue-callpanel-img--thumb {
  max-height: 64px;
  width: 100%;
  max-width: none;
}

.qg-soue-custom__slide-label {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--qg-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 42, 42, 0.65);
}

.qg-soue-custom__slide-caption {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: center;
  color: var(--qg-muted);
}

.qg-soue-custom__nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.25rem;
  pointer-events: none;
}

.qg-soue-custom__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: 50%;
  background: rgba(var(--qg-bg-rgb), 0.85);
  color: var(--qg-red);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qg-soue-custom__nav-btn:hover {
  border-color: rgba(255, 42, 42, 0.5);
  background: rgba(255, 42, 42, 0.08);
}

.qg-soue-custom__nav-btn .qg-icon {
  width: 1rem;
  height: 1rem;
}

.qg-soue-custom__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--qg-border);
}

.qg-soue-custom__thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.35rem;
  border: 1px solid var(--qg-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qg-soue-custom__thumb:hover,
.qg-soue-custom__thumb.is-active {
  border-color: rgba(255, 42, 42, 0.4);
  background: rgba(255, 42, 42, 0.05);
}

.qg-soue-custom__thumb-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(var(--qg-bg-rgb), 0.5);
}

.qg-soue-custom__thumb-preview .qg-soue-callpanel-img {
  pointer-events: none;
}

.qg-soue-custom__thumb-label {
  font-size: 0.58rem;
  line-height: 1.3;
  text-align: center;
  color: var(--qg-muted);
}

.qg-soue-custom__thumb.is-active .qg-soue-custom__thumb-label {
  color: var(--qg-heading);
}

.qg-soue-types { background: var(--qg-bg); }

.qg-soue-types__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.qg-soue-type {
  padding: 1.25rem 1.1rem;
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 42, 42, 0.06), rgba(255, 255, 255, 0.01));
}

.qg-soue-type__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255, 42, 42, 0.35);
  border-radius: 4px;
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  color: var(--qg-red);
  letter-spacing: 0.08em;
}

.qg-soue-type h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.qg-soue-type p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--qg-muted);
}

/* ── Training & commissioning ── */
.qg-soue-training {
  position: relative;
  background:
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(255, 42, 42, 0.06), transparent 55%),
    radial-gradient(ellipse 45% 35% at 90% 80%, rgba(255, 42, 42, 0.04), transparent 50%),
    var(--qg-bg);
  border-top: 1px solid rgba(255, 42, 42, 0.1);
}

.qg-soue-training__hud {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: var(--qg-container);
  display: flex;
  justify-content: space-between;
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(255, 42, 42, 0.35);
  pointer-events: none;
}

.qg-soue-training__intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  margin-bottom: 1.5rem;
}

.qg-soue-training__head {
  max-width: 58ch;
}

.qg-soue-training__head h2 {
  margin: 0 0 0.85rem;
}

.qg-soue-training__visual {
  position: relative;
}

.qg-soue-training__visual-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 42, 42, 0.22);
  border-radius: 10px;
  background: rgba(var(--qg-bg-rgb), 0.85);
  box-shadow:
    inset 0 0 50px rgba(255, 42, 42, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.35);
}

.qg-soue-training__img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center 35%;
}

.qg-soue-training__visual-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.qg-soue-training__visual-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 42, 42, 0.55);
  border-style: solid;
}

.qg-soue-training__visual-corner--tl {
  top: 0.65rem;
  left: 0.65rem;
  border-width: 1px 0 0 1px;
}

.qg-soue-training__visual-corner--tr {
  top: 0.65rem;
  right: 0.65rem;
  border-width: 1px 1px 0 0;
}

.qg-soue-training__visual-corner--bl {
  bottom: 0.65rem;
  left: 0.65rem;
  border-width: 0 0 1px 1px;
}

.qg-soue-training__visual-corner--br {
  right: 0.65rem;
  bottom: 0.65rem;
  border-width: 0 1px 1px 0;
}

.qg-soue-training__visual-meta {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(255, 42, 42, 0.65);
}

.qg-soue-training__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--qg-text);
}

.qg-soue-training__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.qg-soue-training__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.qg-soue-training__card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 42, 42, 0.18);
  border-radius: 8px;
  background: rgba(var(--qg-bg-2-rgb), 0.75);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.qg-soue-training__card:hover {
  border-color: rgba(255, 42, 42, 0.35);
  box-shadow: inset 0 0 30px rgba(255, 42, 42, 0.04);
}

.qg-soue-training__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: 6px;
  background: rgba(255, 42, 42, 0.06);
  color: var(--qg-red);
}

.qg-soue-training__svg {
  width: 1.1rem;
  height: 1.1rem;
}

.qg-soue-training__card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--qg-heading);
}

.qg-soue-training__card p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--qg-muted);
}

.qg-soue-training__aside {
  display: grid;
  gap: 0.65rem;
}

.qg-soue-training__when {
  padding: 1rem 1.05rem;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.012);
}

.qg-soue-training__when h3 {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--qg-heading);
}

.qg-soue-training__when-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qg-soue-training__when-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--qg-text);
}

.qg-soue-training__when-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--qg-red);
  box-shadow: 0 0 6px rgba(255, 42, 42, 0.45);
}

.qg-soue-training__pnr {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 42, 42, 0.22);
  border-radius: 8px;
  background: rgba(var(--qg-bg-2-rgb), 0.88);
  box-shadow: inset 0 0 40px rgba(255, 42, 42, 0.03);
}

.qg-soue-training__pnr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--qg-border);
}

.qg-soue-training__pnr-label {
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(255, 42, 42, 0.55);
}

.qg-soue-training__pnr-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(255, 42, 42, 0.75);
}

.qg-soue-training__pnr-rows {
  display: grid;
  gap: 0.35rem;
}

.qg-soue-training__pnr-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--qg-muted);
}

.qg-soue-training__pnr-row span:last-child {
  color: rgba(255, 42, 42, 0.65);
}

.qg-soue-training__footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--qg-border);
}

.qg-soue-training__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.qg-soue-training__micro {
  margin: 0;
  font-size: 0.8rem;
  color: var(--qg-muted);
  max-width: 52ch;
}

.qg-soue-refs { background: var(--qg-bg-2); }

.qg-soue-refs__layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.qg-soue-refs__picker-col {
  min-width: 0;
}

.qg-soue-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid var(--qg-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
}

.qg-soue-picker__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  border: 1px solid var(--qg-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--qg-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.qg-soue-picker__btn:hover {
  border-color: var(--qg-border-hot);
  color: var(--qg-heading);
  background: rgba(255, 42, 42, 0.04);
}

.qg-soue-picker__btn-icon {
  width: 18px;
  height: 18px;
}

.qg-soue-picker__viewport {
  position: relative;
  height: 240px;
  overflow: hidden;
  perspective: 900px;
  transform-style: preserve-3d;
  border-radius: 8px;
  background: rgba(var(--qg-bg-2-rgb), 0.55);
}

.qg-soue-picker__scroller {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.qg-soue-picker__scroller::-webkit-scrollbar {
  display: none;
}

.qg-soue-picker__scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.qg-soue-picker__track {
  margin: 0;
  padding: 90px 0;
  list-style: none;
  transform-style: preserve-3d;
}

.qg-soue-picker__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 60px;
  padding: 0 0.75rem;
  scroll-snap-align: center;
  transform-origin: center center;
  will-change: transform, opacity;
  cursor: pointer;
  user-select: none;
}

.qg-soue-picker__selector {
  position: absolute;
  inset: 50% 0 auto;
  z-index: 2;
  height: 60px;
  transform: translateY(-50%);
  border-top: 1px solid rgba(255, 42, 42, 0.35);
  border-bottom: 1px solid rgba(255, 42, 42, 0.35);
  background: rgba(255, 42, 42, 0.05);
  pointer-events: none;
  box-shadow: inset 0 0 24px rgba(255, 42, 42, 0.04);
}

.qg-soue-picker__fade {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 38%;
  pointer-events: none;
}

.qg-soue-picker__fade--top {
  top: 0;
  background: linear-gradient(to bottom, rgba(8, 10, 14, 0.95) 15%, transparent);
}

.qg-soue-picker__fade--bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(8, 10, 14, 0.95) 15%, transparent);
}

.qg-soue-picker__item.is-active .qg-soue-ref__title {
  color: var(--qg-heading);
}

.qg-soue-ref__id {
  flex-shrink: 0;
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  color: rgba(255, 42, 42, 0.4);
  letter-spacing: 0.06em;
  min-width: 2.4rem;
}

.qg-soue-ref__body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.qg-soue-ref__title {
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.qg-soue-ref__category {
  font-size: 0.68rem;
  color: var(--qg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qg-soue-refs__panel {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 10px;
  background: var(--qg-panel);
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.qg-soue-refs__visual {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--qg-border);
  background: var(--qg-bg-2);
  aspect-ratio: 460 / 320;
  overflow: hidden;
}

.qg-soue-refs__visual.is-switching {
  animation: qgSwitch 0.35s ease;
}

.qg-soue-refs__visual .qg-objvis-viewport {
  position: relative;
  height: 100%;
}

.qg-soue-refs__visual .qg-objvis-viewport__img {
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: contain;
  object-position: center center;
}

.qg-soue-refs__visual .qg-objvis {
  display: block;
  width: 100%;
  height: 100%;
}

.qg-soue-refs__info {
  padding: 0.85rem 1rem 1rem;
}

.qg-soue-refs__info-id {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--qg-mono);
  font-size: 0.6rem;
  color: rgba(255, 42, 42, 0.45);
  letter-spacing: 0.08em;
}

.qg-soue-refs__info h3 {
  margin: 0 0 0.3rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.35;
}

.qg-soue-refs__info-category {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--qg-muted);
}

.qg-soue-refs__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.qg-soue-refs__tags span {
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: 4px;
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  color: var(--qg-muted);
  background: rgba(255, 42, 42, 0.04);
}

.qg-soue-certs {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 42, 42, 0.06), transparent 60%),
    var(--qg-bg-elevated);
}

.qg-certificates-page .qg-soue-certs__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.qg-certificates-page .qg-soue-cert-card__group {
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--qg-muted);
}

.qg-certificates-page .qg-soue-cert-card__body {
  padding: 0.75rem 0.75rem 0.85rem;
  gap: 0.28rem;
}

.qg-certificates-page .qg-soue-cert-card__title {
  font-size: 0.78rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qg-certificates-page .qg-soue-cert-card__number,
.qg-certificates-page .qg-soue-cert-card__validity {
  font-size: 0.6rem;
}

@media (max-width: 1180px) {
  .qg-certificates-page .qg-soue-certs__row {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.65rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .qg-certificates-page .qg-soue-certs__row .qg-soue-cert-card {
    flex: 0 0 min(210px, 72vw);
    scroll-snap-align: start;
  }
}

.qg-soue-certs__groups {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.qg-soue-certs__group-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--qg-heading);
}

.qg-soue-certs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.qg-soue-cert-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(var(--qg-bg-2-rgb), 0.72);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.qg-soue-cert-card:hover,
.qg-soue-cert-card:focus-visible {
  border-color: rgba(255, 42, 42, 0.45);
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 42, 42, 0.08);
  outline: none;
}

.qg-soue-cert-card__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04), transparent 70%),
    rgba(var(--qg-bg-rgb), 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.qg-soue-cert-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.qg-soue-cert-card:hover .qg-soue-cert-card__frame img {
  transform: scale(1.03);
}

.qg-soue-cert-card__zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--qg-heading);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.qg-soue-cert-card:hover .qg-soue-cert-card__zoom,
.qg-soue-cert-card:focus-visible .qg-soue-cert-card__zoom {
  opacity: 1;
  transform: none;
}

.qg-soue-cert-card__zoom-icon {
  width: 1rem;
  height: 1rem;
}

.qg-soue-cert-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1rem 1.1rem;
}

.qg-soue-cert-card__badge {
  align-self: flex-start;
  padding: 0.18rem 0.45rem;
  border: 1px solid rgba(255, 42, 42, 0.35);
  border-radius: 4px;
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qg-red);
  background: rgba(255, 42, 42, 0.08);
}

.qg-soue-cert-card__title {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--qg-heading);
}

.qg-soue-cert-card__number,
.qg-soue-cert-card__validity {
  font-family: var(--qg-mono);
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--qg-muted);
}

.qg-cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  place-items: center;
  padding: 1.25rem;
  pointer-events: auto;
  /* Lightbox is injected into body, outside page roots — define tokens locally */
  --qg-bg-rgb: 7, 11, 20;
  --qg-accent-rgb: 255, 42, 42;
  --qg-text: #b8c0cc;
  --qg-muted: #6b7585;
  --qg-heading: #eef0f4;
  --qg-red: #ff2a2a;
  --qg-mono: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--qg-text);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}

.qg-cert-lightbox:not([hidden]) {
  display: grid;
}

.qg-cert-lightbox[hidden] {
  display: none !important;
}

.qg-cert-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--qg-bg-rgb), 0.9);
  backdrop-filter: blur(10px);
}

.qg-cert-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 2.5rem);
}

.qg-cert-lightbox__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2.5rem);
  border: 1px solid rgba(255, 42, 42, 0.28);
  border-radius: 14px;
  background: rgba(8, 10, 16, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.qg-cert-lightbox__meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1rem 3.5rem 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 42, 42, 0.03);
}

.qg-cert-lightbox__meta-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.qg-cert-lightbox__meta-text strong {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--qg-heading);
}

.qg-cert-lightbox__meta-text span,
.qg-cert-lightbox__counter {
  font-family: var(--qg-mono);
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--qg-muted);
}

.qg-cert-lightbox__counter {
  white-space: nowrap;
}

.qg-cert-lightbox__viewport {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 0;
}

.qg-cert-lightbox__stage {
  min-height: 280px;
  max-height: calc(100vh - 12rem);
  overflow: auto;
  padding: 1rem;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03), transparent 70%),
    rgba(var(--qg-bg-rgb), 0.55);
}

.qg-cert-lightbox__slide {
  display: none;
  margin: 0;
}

.qg-cert-lightbox__slide.is-active {
  display: block;
}

.qg-cert-lightbox__slide img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.qg-cert-lightbox__badge {
  align-self: start;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qg-red);
  background: rgba(255, 42, 42, 0.1);
  border: 1px solid rgba(255, 42, 42, 0.25);
}

.qg-cert-lightbox__close,
.qg-cert-lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(var(--qg-bg-2-rgb), 0.96);
  color: #eef0f4;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.qg-cert-lightbox__close:hover,
.qg-cert-lightbox__nav:hover,
.qg-cert-lightbox__close:focus-visible,
.qg-cert-lightbox__nav:focus-visible {
  border-color: rgba(255, 42, 42, 0.5);
  color: var(--qg-red);
  outline: none;
}

.qg-cert-lightbox__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
}

.qg-cert-lightbox__close .qg-icon,
.qg-cert-lightbox__nav .qg-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.qg-cert-lightbox__nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0.35rem;
}

.qg-cert-lightbox__nav .qg-icon {
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 768px) {
  .qg-soue-certs__grid {
    grid-template-columns: 1fr 1fr;
  }

  .qg-cert-lightbox {
    padding: 0.75rem;
  }

  .qg-cert-lightbox__meta {
    grid-template-columns: 1fr;
    padding-right: 3.25rem;
  }

  .qg-cert-lightbox__counter {
    justify-self: start;
  }

  .qg-cert-lightbox__nav {
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 0.15rem;
  }

  .qg-cert-lightbox__stage {
    max-height: calc(100vh - 14rem);
    padding: 0.65rem;
  }
}

@media (max-width: 520px) {
  .qg-soue-certs__grid {
    grid-template-columns: 1fr;
  }
}

.qg-soue-upload {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 42, 42, 0.05), transparent 60%),
    var(--qg-bg);
}

.qg-soue-docs {
  background: var(--qg-bg);
  overflow: visible;
}

.qg-soue-docs .qg-soue-footnote {
  margin: 1.25rem 0 1.35rem;
}

.qg-soue-docs .qg-btn {
  margin-top: 0.15rem;
}

.qg-soue-docs__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
  overflow: visible;
}

.qg-soue-docs__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem 1.5rem 0.75rem 0.25rem;
  list-style: none;
  overflow: visible;
}

.qg-soue-doc {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--qg-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.86rem;
  cursor: default;
  transform-origin: left center;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.qg-soue-doc:hover,
.qg-soue-doc:focus-within {
  z-index: 3;
  transform: scale(1.2);
  border-color: var(--qg-border-hot);
  background: rgba(255, 42, 42, 0.07);
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(255, 42, 42, 0.14);
  color: var(--qg-heading);
}

.qg-soue-doc__check {
  flex-shrink: 0;
  color: var(--qg-red);
  font-size: 0.75rem;
  margin-top: 0.1rem;
  transition: transform 0.3s ease, color 0.25s ease;
}

.qg-soue-doc:hover .qg-soue-doc__check,
.qg-soue-doc:focus-within .qg-soue-doc__check {
  transform: scale(1.15);
  color: var(--qg-heading);
}

@media (max-width: 1024px) {
  .qg-soue-doc:hover,
  .qg-soue-doc:focus-within {
    transform: scale(1.08);
  }

  .qg-soue-docs__list {
    padding: 0.35rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qg-soue-doc {
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .qg-soue-doc:hover,
  .qg-soue-doc:focus-within {
    transform: none;
  }

  .qg-soue-doc:hover .qg-soue-doc__check,
  .qg-soue-doc:focus-within .qg-soue-doc__check {
    transform: none;
  }

  .qg-workflow-item {
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .qg-workflow-item:hover,
  .qg-workflow-item:focus-within {
    transform: none;
  }

  .qg-workflow-item:hover .qg-workflow-item__icon,
  .qg-workflow-item:focus-within .qg-workflow-item__icon {
    transform: none;
  }
}

.qg-soue-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 42, 42, 0.1), transparent 60%),
    var(--qg-bg-2);
}

.qg-soue-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.qg-soue-cta__inner h2 {
  margin: 0 0 0.85rem;
}

.qg-soue-cta__inner > p {
  margin: 0 0 1.5rem;
  color: var(--qg-muted);
  line-height: 1.65;
}

.qg-soue-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.qg-soue-cta__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.qg-soue-cta__contacts a {
  color: var(--qg-heading);
  text-decoration: none;
}

.qg-soue-cta__contacts a:hover {
  color: var(--qg-red);
}

@media (max-width: 1024px) {
  .qg-soue-hero__grid,
  .qg-soue-about__grid,
  .qg-soue-docs__grid,
  .qg-soue-custom__grid,
  .qg-soue-training__intro,
  .qg-soue-training__body {
    grid-template-columns: 1fr;
  }

  .qg-soue-about__head,
  .qg-soue-about__body:first-of-type,
  .qg-soue-about__figure,
  .qg-soue-about__below {
    grid-column: 1;
    grid-row: auto;
  }

  .qg-soue-about__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qg-soue-custom__showcase {
    position: static;
  }

  .qg-soue-custom__grid {
    gap: 2.5rem;
  }

  .qg-soue-custom__copy h2 {
    max-width: none;
  }

  .qg-soue-custom__text {
    max-width: none;
  }

  .qg-soue-training__hud { display: none; }

  .qg-soue-types__grid {
    grid-template-columns: 1fr;
  }

  .qg-soue-refs__layout {
    grid-template-columns: 1fr;
  }

  .qg-soue-refs__panel {
    position: static;
    order: 1;
  }

  .qg-soue-refs__picker-col {
    order: 2;
  }

  .qg-soue-hero__hud { display: none; }
}

@media (max-width: 640px) {
  .qg-soue-about__list {
    grid-template-columns: 1fr;
  }

  .qg-soue-hero__actions,
  .qg-soue-cta__actions,
  .qg-soue-custom__actions,
  .qg-soue-training__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .qg-soue-training__cards {
    grid-template-columns: 1fr;
  }

  .qg-soue-custom__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qg-soue-custom__slides {
    min-height: 280px;
  }

  .qg-soue-custom__slide-frame {
    min-height: 260px;
  }

  .qg-soue-callpanel-img {
    max-height: 320px;
  }

  .qg-soue-objects__grid,
  .qg-soue-equipment__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ LEGAL PAGES ═══ */
.qg-page--legal { background: var(--qg-bg); }

.qg-page--careers { background: var(--qg-bg); }

.qg-page--certificates { background: var(--qg-bg); }

.qg-page--contacts { background: var(--qg-bg); }

@media (max-width: 768px) {
  .qg-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .qg-footer__brand {
    max-width: none;
  }

  .qg-footer__bottom {
    align-items: center;
    gap: 0.65rem;
  }

  .qg-footer__legal {
    justify-content: center;
  }
}

.qg-contacts-page {
  padding-top: 0;
}

.qg-contacts .qg-section__head h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.qg-contacts__grid {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 48rem;
  margin: 2rem auto 0;
}

.qg-contacts-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--qg-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qg-contacts-card:hover {
  border-color: var(--qg-border-hot);
  background: rgba(255, 42, 42, 0.04);
}

.qg-contacts-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.qg-contacts-card__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--qg-red);
  flex-shrink: 0;
}

.qg-contacts-card__label {
  font-family: var(--qg-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qg-muted);
}

.qg-contacts-card__value {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--qg-heading);
  text-decoration: none;
  line-height: 1.2;
}

.qg-contacts-card__value:hover { color: var(--qg-red); }

.qg-contacts-card__value--secondary {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  word-break: break-word;
}

.qg-contacts-card__note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--qg-muted);
  line-height: 1.5;
}

.qg-contacts__cta {
  margin: 2.5rem auto 0;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--qg-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  text-align: center;
  justify-items: center;
}

.qg-contacts__cta h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--qg-heading);
}

.qg-contacts__cta p {
  margin: 0;
  color: var(--qg-muted);
  line-height: 1.55;
}

@media (min-width: 640px) {
  .qg-contacts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.qg-certificates-page-main {
  padding-top: 0;
}

.qg-certificates-page .qg-section__head h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.qg-careers-page {
  padding-top: 0;
}

.qg-header--legal {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.qg-header--legal .qg-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 68px;
}

.qg-header__actions--legal {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.qg-header__callback--sm {
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .qg-header__actions--legal {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}

.qg-header--legal .qg-logo__text {
  color: #eef0f4;
}

.qg-nav--legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

.qg-nav--legal a {
  font-size: 0.78rem;
  color: #b8c0cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.qg-nav--legal a:hover { color: #eef0f4; }

.qg-legal {
  padding: 2.5rem 0 4rem;
}

.qg-legal__inner { max-width: 820px; }

.qg-legal__doc {
  padding: 1.5rem;
  border: 1px solid var(--qg-border);
  border-radius: 10px;
  background: var(--qg-panel);
}

.qg-legal__updated {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--qg-muted);
  font-family: var(--qg-mono);
}

.qg-legal__doc h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
  color: #eef0f4;
}

.qg-legal__body h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.05rem;
  color: var(--qg-heading);
}

.qg-legal__body p,
.qg-legal__body li {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--qg-text);
}

.qg-legal__body p { margin: 0 0 0.85rem; }

.qg-legal__body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.qg-legal__body a {
  color: var(--qg-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══ FORM CONSENT CHECKBOXES ═══ */
.qg-form-consent {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.qg-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--qg-muted);
  cursor: pointer;
}

.qg-checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0.15rem 0 0;
  accent-color: var(--qg-red);
  cursor: pointer;
  flex-shrink: 0;
}

.qg-checkbox__text a {
  color: var(--qg-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qg-checkbox--required .qg-checkbox__text { color: var(--qg-text); }

.qg-checkbox.is-error {
  border: 1px solid rgba(252, 165, 165, 0.55);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 42, 42, 0.06);
}

.qg-checkbox.is-error input[type='checkbox'] {
  outline: 2px solid rgba(252, 165, 165, 0.75);
  outline-offset: 2px;
}

.qg-form-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #fca5a5;
}

/* ═══ CALLBACK MODAL ═══ */
body.qg-callback-open {
  overflow: hidden;
}

.qg-callback-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  /* Modal is injected into body, outside page roots — define tokens locally */
  --qg-bg: #070b14;
  --qg-bg-rgb: 7, 11, 20;
  --qg-bg-2: #0a101c;
  --qg-bg-2-rgb: 10, 16, 28;
  --qg-bg-3: #0d1524;
  --qg-panel: rgba(10, 16, 28, 0.94);
  --qg-border: rgba(255, 255, 255, 0.07);
  --qg-border-hot: rgba(255, 42, 42, 0.55);
  --qg-text: #b8c0cc;
  --qg-muted: #6b7585;
  --qg-heading: #eef0f4;
  --qg-red: #ff2a2a;
  --qg-red-soft: rgba(255, 42, 42, 0.14);
  --qg-red-glow: rgba(255, 42, 42, 0.65);
  --qg-accent-rgb: 255, 42, 42;
  --qg-font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --qg-mono: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--qg-text);
  font-family: var(--qg-font);
}

.qg-callback-modal,
.qg-callback-modal *,
.qg-callback-modal *::before,
.qg-callback-modal *::after {
  box-sizing: border-box;
}

.qg-callback-modal[hidden] {
  display: none !important;
}

.qg-callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(10px);
}

.qg-callback-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 2.5rem);
  min-width: 0;
}

.qg-callback-modal__panel {
  position: relative;
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-height: calc(100vh - 2.5rem);
  padding: 1.35rem 1.25rem 1.25rem;
  border: 1px solid rgba(255, 42, 42, 0.28);
  border-radius: 14px;
  background: rgba(8, 10, 16, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  overflow: auto;
  overflow-x: hidden;
}

.qg-callback-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--qg-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.qg-callback-modal__close:hover {
  color: var(--qg-heading);
  background: rgba(255, 42, 42, 0.12);
}

.qg-callback-modal__head {
  display: grid;
  gap: 0.35rem;
  padding-right: 2rem;
}

.qg-callback-modal__head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--qg-heading);
}

.qg-callback-modal__lead {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--qg-muted);
}

.qg-callback-modal__form {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.qg-callback-modal .qg-form-grid {
  width: 100%;
  min-width: 0;
}

.qg-callback-modal .qg-form-grid label {
  min-width: 0;
}

.qg-callback-modal .qg-form-grid input,
.qg-callback-modal .qg-form-grid textarea,
.qg-callback-modal .qg-form-grid select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.qg-callback-modal .qg-form-grid select {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--qg-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--qg-heading);
  font: inherit;
}

.qg-callback-modal .qg-form-grid select:focus {
  outline: none;
  border-color: var(--qg-border-hot);
  box-shadow: 0 0 0 2px rgba(255, 42, 42, 0.1);
}

.qg-callback-modal .qg-form-grid input,
.qg-callback-modal .qg-form-grid textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--qg-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--qg-heading);
  font: inherit;
}

.qg-callback-modal .qg-form-grid input:focus,
.qg-callback-modal .qg-form-grid textarea:focus {
  outline: none;
  border-color: var(--qg-border-hot);
  box-shadow: 0 0 0 2px rgba(255, 42, 42, 0.1);
}

.qg-callback-modal .qg-form-grid input:-webkit-autofill,
.qg-callback-modal .qg-form-grid input:-webkit-autofill:hover,
.qg-callback-modal .qg-form-grid input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(10, 16, 28, 0.98) inset;
  -webkit-text-fill-color: var(--qg-heading);
  caret-color: var(--qg-heading);
  border: 1px solid var(--qg-border);
}

.qg-callback-modal .qg-dropzone {
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
}

.qg-callback-modal .qg-form-consent {
  min-width: 0;
}

.qg-form-grid--single {
  grid-template-columns: 1fr;
}

.qg-header__callback {
  cursor: pointer;
  font: inherit;
}

.qg-customization-modal .qg-callback-modal__dialog {
  width: min(520px, 100%);
}

.qg-support-modal .qg-callback-modal__dialog {
  width: min(520px, 100%);
}

.qg-support-modal .qg-callback-modal__panel,
.qg-customization-modal .qg-callback-modal__panel {
  gap: 0.75rem;
}

.qg-form-scope {
  margin: 0.5rem 0 1.15rem;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.45rem;
}

.qg-customization-modal .qg-form-scope + .qg-form-grid {
  margin-top: 0.35rem;
}

.qg-customization-modal .qg-form-grid + .qg-dropzone {
  margin-top: 0.85rem;
}

.qg-form-scope legend {
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 0.82rem;
  color: var(--qg-text);
}

.qg-form-scope.is-error legend {
  color: #fca5a5;
}

.qg-dropzone--compact {
  padding: 0.9rem 1rem;
}

/* ═══ COOKIE BANNER ═══ */
.qg-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0.9rem 1rem;
  background: rgba(12, 12, 14, 0.96);
  border-top: 1px solid rgba(255, 42, 42, 0.25);
  backdrop-filter: blur(10px);
  /* Banner is injected into body, outside page roots — define tokens locally */
  --qg-text: #b8c0cc;
  --qg-heading: #eef0f4;
  --qg-red: #ff2a2a;
  --qg-accent-rgb: 255, 42, 42;
  color: var(--qg-text);
}

.qg-cookie__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.5rem;
  width: min(960px, 100%);
  margin-inline: auto;
}

.qg-cookie__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--qg-text);
  text-align: left;
}

.qg-cookie__text a {
  color: var(--qg-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.qg-cookie__text a:hover {
  color: var(--qg-heading);
}

.qg-cookie__btn {
  flex-shrink: 0;
  min-height: 38px;
  padding-inline: 1.35rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .qg-header--legal .qg-header__inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .qg-nav--legal {
    width: 100%;
    order: 3;
  }

  .qg-legal__doc { padding: 1rem; }

  .qg-cookie__inner {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.85rem;
  }

  .qg-cookie__btn {
    width: 100%;
    justify-self: stretch;
  }
}

/* ── Product page (WSA-2124) ─────────────────────────────── */

.qg-page--product { background: var(--qg-bg); }

.qg-product-page-main { padding-top: 0; }

.qg-product-hero {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 42, 42, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(120, 190, 255, 0.04), transparent 50%),
    var(--qg-bg);
  border-bottom: 1px solid var(--qg-border);
}

.qg-product-hero__hud {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: var(--qg-container);
  display: flex;
  justify-content: space-between;
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(255, 42, 42, 0.4);
  pointer-events: none;
}

.qg-product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  font-family: var(--qg-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--qg-muted);
}

.qg-product-breadcrumb a {
  color: var(--qg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.qg-product-breadcrumb a:hover { color: var(--qg-heading); }

.qg-product-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.qg-product-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  color: var(--qg-heading);
  letter-spacing: 0.02em;
}

.qg-product-hero__lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--qg-text);
  max-width: 62ch;
}

.qg-product-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.qg-product-hero__stat {
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 42, 42, 0.18);
  border-radius: 8px;
  background: rgba(255, 42, 42, 0.04);
}

.qg-product-hero__stat strong {
  display: block;
  font-size: 1rem;
  color: var(--qg-heading);
  margin-bottom: 0.15rem;
}

.qg-product-hero__stat span {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--qg-muted);
}

.qg-product-hero__colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.qg-product-hero__colors-label {
  font-size: 0.72rem;
  color: var(--qg-muted);
}

.qg-product-hero__color {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--qg-border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--qg-heading);
  background: rgba(255, 255, 255, 0.03);
}

.qg-product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.qg-product-hero__actions .qg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.qg-product-hero__actions .qg-icon {
  width: 1rem;
  height: 1rem;
}

.qg-product-hero__visual { min-width: 0; }

.qg-product-hero__frame {
  position: relative;
  padding: 1.25rem;
  border: 1px solid rgba(255, 42, 42, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255, 255, 255, 0.04), transparent 60%),
    rgba(var(--qg-bg-2-rgb), 0.9);
  box-shadow: inset 0 0 60px rgba(255, 42, 42, 0.04);
}

.qg-product-hero__frame-hud {
  position: absolute;
  inset: 0.85rem;
  pointer-events: none;
}

.qg-product-hero__frame-hud span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(255, 42, 42, 0.45);
  border-style: solid;
  border-width: 0;
}

.qg-product-hero__frame-hud span:nth-child(1) {
  top: 0;
  left: 0;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}

.qg-product-hero__frame-hud span:nth-child(2) {
  top: 0;
  right: 0;
  border-top-width: 1.5px;
  border-right-width: 1.5px;
}

.qg-product-hero__frame-hud span:nth-child(3) {
  bottom: 0;
  left: 0;
  border-bottom-width: 1.5px;
  border-left-width: 1.5px;
}

.qg-product-hero__frame-hud span:nth-child(4) {
  right: 0;
  bottom: 0;
  border-right-width: 1.5px;
  border-bottom-width: 1.5px;
}

.qg-product-hero__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.qg-product-hero__caption {
  margin: 0.65rem 0 0;
  font-family: var(--qg-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--qg-muted);
  text-align: center;
}

.qg-product-gallery {
  background: var(--qg-bg-2);
}

.qg-product-gallery__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.qg-product-gallery__stage {
  position: relative;
  min-height: 320px;
  padding: 1rem;
  border: 1px solid var(--qg-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.qg-product-gallery__slide {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.qg-product-gallery__slide img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  cursor: zoom-in;
}

.qg-product-gallery__slide figcaption {
  margin-top: 0.85rem;
  text-align: center;
}

.qg-product-gallery__slide figcaption strong {
  display: block;
  color: var(--qg-heading);
  font-size: 0.9rem;
}

.qg-product-gallery__slide figcaption span {
  font-size: 0.75rem;
  color: var(--qg-muted);
}

.qg-product-gallery__zoom {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(var(--qg-bg-rgb), 0.75);
  color: var(--qg-heading);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qg-product-gallery__zoom:hover {
  border-color: var(--qg-border-hot);
  background: rgba(255, 42, 42, 0.12);
}

.qg-product-gallery__zoom .qg-icon {
  width: 1rem;
  height: 1rem;
}

.qg-product-gallery__thumbs-frame {
  padding: 0.85rem;
  border: 1px solid rgba(255, 42, 42, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255, 255, 255, 0.04), transparent 60%),
    rgba(var(--qg-bg-2-rgb), 0.9);
  box-shadow: inset 0 0 60px rgba(255, 42, 42, 0.04);
}

.qg-product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.qg-product-gallery__thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qg-product-gallery__thumb:hover,
.qg-product-gallery__thumb.is-active {
  border-color: var(--qg-border-hot);
  background: rgba(255, 42, 42, 0.06);
}

.qg-product-gallery__thumb img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.qg-product-gallery__thumb-label {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--qg-heading);
}

.qg-product-desc { background: var(--qg-bg); }

.qg-product-desc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.qg-product-desc__block {
  padding: 1rem 1.1rem;
  border: 1px solid var(--qg-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.qg-product-desc__block h3 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--qg-heading);
}

.qg-product-desc__block p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--qg-text);
}

.qg-product-modes {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255, 42, 42, 0.18);
  border-radius: 10px;
  background: rgba(255, 42, 42, 0.04);
}

.qg-product-modes h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--qg-heading);
}

.qg-product-modes ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.qg-product-modes li {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--qg-text);
}

.qg-product-specs { background: var(--qg-bg-2); }

.qg-product-specs__groups {
  display: grid;
  gap: 0.75rem;
}

.qg-product-specs__group {
  border: 1px solid var(--qg-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.qg-product-specs__group summary {
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--qg-heading);
  cursor: pointer;
  list-style: none;
}

.qg-product-specs__group summary::-webkit-details-marker { display: none; }

.qg-product-specs__group summary::after {
  content: "−";
  float: right;
  font-family: var(--qg-mono);
  color: var(--qg-red);
}

.qg-product-specs__group:not([open]) summary::after { content: "+"; }

.qg-product-specs__table {
  width: 100%;
  border-collapse: collapse;
}

.qg-product-specs__table th,
.qg-product-specs__table td {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--qg-border);
  font-size: 0.82rem;
  line-height: 1.45;
  vertical-align: top;
  text-align: left;
}

.qg-product-specs__table th {
  width: 52%;
  color: var(--qg-muted);
  font-weight: 500;
}

.qg-product-specs__table td {
  color: var(--qg-heading);
}

.qg-product-doc { background: var(--qg-bg); }

.qg-product-doc__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--qg-border);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 42, 42, 0.06), transparent 45%),
    rgba(255, 255, 255, 0.02);
}

.qg-product-doc__icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 42, 42, 0.12);
  border: 1px solid rgba(255, 42, 42, 0.25);
  font-family: var(--qg-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--qg-red);
}

.qg-product-doc__body {
  flex: 1 1 220px;
}

.qg-product-doc__body h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.15rem;
  color: var(--qg-heading);
}

.qg-product-doc__meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--qg-muted);
  font-family: var(--qg-mono);
}

.qg-product-cta {
  background: var(--qg-bg-2);
  padding-bottom: 3rem;
}

.qg-product-cta__inner {
  padding: 1.5rem;
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 12px;
  background: rgba(255, 42, 42, 0.04);
  text-align: center;
}

.qg-product-cta__inner h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--qg-heading);
}

.qg-product-cta__inner p {
  margin: 0 auto 1rem;
  max-width: 52ch;
  color: var(--qg-text);
  line-height: 1.6;
}

.qg-product-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.qg-product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  --qg-bg-rgb: 7, 11, 20;
  --qg-accent-rgb: 255, 42, 42;
  --qg-text: #b8c0cc;
  --qg-muted: #6b7585;
  --qg-heading: #eef0f4;
  --qg-red: #ff2a2a;
  --qg-border: rgba(255, 255, 255, 0.12);
  --qg-mono: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--qg-text);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}

.qg-product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(var(--qg-bg-rgb), 0.88);
  cursor: pointer;
}

.qg-product-lightbox__panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 2rem 3.5rem;
}

.qg-product-lightbox__stage {
  width: min(920px, 100%);
}

.qg-product-lightbox__slide {
  margin: 0;
  text-align: center;
}

.qg-product-lightbox__slide img {
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
}

.qg-product-lightbox__slide figcaption {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--qg-muted);
}

.qg-product-lightbox__close,
.qg-product-lightbox__nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.96);
  color: #eef0f4;
  cursor: pointer;
}

.qg-product-lightbox__close .qg-icon,
.qg-product-lightbox__nav .qg-icon {
  stroke: currentColor;
}

.qg-product-lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
}

.qg-product-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
}

.qg-product-lightbox__nav--prev { left: 1rem; }
.qg-product-lightbox__nav--next { right: 1rem; }

.qg-product-lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--qg-mono);
  font-size: 0.72rem;
  color: var(--qg-muted);
}

@media (max-width: 960px) {
  .qg-product-hero__grid,
  .qg-product-gallery__layout,
  .qg-product-desc__grid {
    grid-template-columns: 1fr;
  }

  .qg-product-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qg-product-hero__hud { display: none; }
}

@media (max-width: 640px) {
  .qg-product-hero__actions,
  .qg-product-cta__actions {
    flex-direction: column;
  }

  .qg-product-hero__actions .qg-btn,
  .qg-product-cta__actions .qg-btn,
  .qg-product-doc__card .qg-btn {
    width: 100%;
    justify-content: center;
  }

  .qg-product-doc__card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .qg-product-lightbox__panel {
    padding: 3.5rem 1rem 2.5rem;
  }

  .qg-product-lightbox__nav--prev { left: 0.35rem; }
  .qg-product-lightbox__nav--next { right: 0.35rem; }
}

/* ── WSA series hub ──────────────────────────────────────── */

.qg-series-hero {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 55% 45% at 20% 15%, rgba(255, 42, 42, 0.08), transparent 55%),
    var(--qg-bg);
  border-bottom: 1px solid var(--qg-border);
}

.qg-series-hero__hud {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: var(--qg-container);
  display: flex;
  justify-content: space-between;
  font-family: var(--qg-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(255, 42, 42, 0.4);
  pointer-events: none;
}

.qg-series-hero__head h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  color: var(--qg-heading);
}

.qg-series-models {
  background: var(--qg-bg-2);
}

.qg-series-models__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.qg-series-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--qg-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.qg-series-card:hover {
  transform: translateY(-2px);
  border-color: var(--qg-border-hot);
  box-shadow: 0 0 28px rgba(255, 42, 42, 0.12);
}

.qg-series-card__media {
  display: grid;
  place-items: center;
  padding: 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.qg-series-card__media img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.qg-series-card__code {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(255, 42, 42, 0.55);
}

.qg-series-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  color: var(--qg-heading);
}

.qg-series-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.qg-series-card__tags span {
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 42, 42, 0.18);
  border-radius: 999px;
  font-size: 0.68rem;
  color: var(--qg-heading);
  background: rgba(255, 42, 42, 0.04);
}

.qg-series-card p {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--qg-text);
}

.qg-series-card__link {
  font-size: 0.74rem;
  color: var(--qg-red);
}

.qg-product-siblings {
  background: var(--qg-bg);
}

.qg-product-siblings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.qg-product-sibling {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--qg-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qg-product-sibling:hover {
  border-color: var(--qg-border-hot);
  background: rgba(255, 42, 42, 0.05);
}

.qg-product-sibling__media {
  display: grid;
  place-items: center;
  padding: 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.qg-product-sibling__media img {
  width: 100%;
  object-fit: contain;
}

.qg-product-sibling__code {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  color: rgba(255, 42, 42, 0.55);
}

.qg-product-sibling__body strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--qg-heading);
  font-size: 0.92rem;
}

.qg-product-sibling__body p {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--qg-text);
}

.qg-product-sibling__link {
  font-size: 0.72rem;
  color: var(--qg-red);
}

.qg-product-siblings__all {
  margin: 1rem 0 0;
  text-align: center;
}

.qg-product-siblings__all a {
  font-family: var(--qg-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--qg-muted);
  text-decoration: none;
}

.qg-product-siblings__all a:hover {
  color: var(--qg-heading);
}

@media (max-width: 1100px) {
  .qg-series-models__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .qg-series-card {
    grid-template-columns: 1fr;
  }

  .qg-series-hero__hud { display: none; }
}

@media (max-width: 640px) {
  .qg-product-sibling {
    grid-template-columns: 1fr;
  }
}

/* Customization service page */
.qg-custom-page__layout {
  max-width: 920px;
}

.qg-custom-page__layout--wide {
  max-width: none;
}

.qg-custom-page__hero {
  padding: clamp(5rem, 10vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--qg-border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 42, 42, 0.06), transparent 65%),
    var(--qg-bg);
}

.qg-custom-page__hero h1 {
  margin: 0 0 1.75rem;
  max-width: 16ch;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.12;
}

.qg-custom-page__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

.qg-custom-page__hero-lead {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
  color: var(--qg-text);
}

.qg-custom-page__hero-note {
  margin: 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(255, 42, 42, 0.18);
  border-radius: 10px;
  background: rgba(255, 42, 42, 0.04);
}

.qg-custom-page__hero-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--qg-muted);
}

.qg-custom-page__section {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  border-bottom: 1px solid var(--qg-border);
}

.qg-custom-page__section--alt {
  background: var(--qg-bg-2);
}

.qg-custom-page__head {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.qg-custom-page__head .qg-kicker {
  margin-bottom: 0.75rem;
}

.qg-custom-page__head h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.2;
}

.qg-custom-page__intro,
.qg-custom-page__subhead,
.qg-custom-page__gallery-lead {
  margin: 0 0 1.15rem;
  line-height: 1.7;
  color: var(--qg-muted);
}

.qg-custom-page__subhead {
  margin-top: 0.25rem;
  color: var(--qg-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.qg-custom-page__section--ripple {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(255, 42, 42, 0.06), transparent 65%),
    var(--qg-bg);
}

.qg-custom-page__section--ripple .qg-soue-ripple-canvas {
  z-index: 0;
}

.qg-custom-page__ripple-content {
  position: relative;
  z-index: 1;
}

.qg-custom-page__section--ripple .qg-custom-page__steps {
  position: relative;
  z-index: 1;
}

.qg-custom-page__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0.15rem;
  list-style: none;
  overflow: visible;
}

.qg-custom-page__item {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transform-origin: center center;
  transition:
    transform 0.35s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    background 0.3s ease;
}

.qg-custom-page__item:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: var(--qg-border-hot);
  background: rgba(255, 42, 42, 0.04);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(255, 42, 42, 0.06);
}

.qg-custom-page__item-mark {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--qg-red);
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.45);
  transition: transform 0.35s ease;
}

.qg-custom-page__item:hover .qg-custom-page__item-mark {
  transform: scale(1.25);
}

.qg-custom-page__item-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--qg-text);
}

.qg-custom-page__callout {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid rgba(255, 42, 42, 0.55);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.025);
}

.qg-custom-page__section--alt .qg-custom-page__callout {
  background: rgba(0, 0, 0, 0.18);
}

.qg-custom-page__callout p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--qg-muted);
}

.qg-custom-page__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0.15rem;
  list-style: none;
  overflow: visible;
}

.qg-custom-page__step {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border: 1px solid var(--qg-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transform-origin: center center;
  transition:
    transform 0.35s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    background 0.3s ease;
}

.qg-custom-page__step:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: var(--qg-border-hot);
  background: rgba(255, 42, 42, 0.04);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(255, 42, 42, 0.06);
}

.qg-custom-page__step-badge {
  display: grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(255, 42, 42, 0.25);
  border-radius: 6px;
  background: rgba(255, 42, 42, 0.06);
  color: rgba(255, 42, 42, 0.8);
  font-family: var(--qg-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  transition: transform 0.35s ease, border-color 0.3s ease;
}

.qg-custom-page__step:hover .qg-custom-page__step-badge {
  transform: scale(1.08);
  border-color: rgba(255, 42, 42, 0.45);
}

.qg-custom-page__step-body h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--qg-heading);
}

.qg-custom-page__step-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--qg-muted);
}

.qg-custom-page__technical-panel {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 12px;
  background: rgba(255, 42, 42, 0.04);
}

.qg-custom-page__technical-panel .qg-custom-page__head {
  border-bottom-color: rgba(255, 42, 42, 0.12);
}

.qg-custom-page__technical-text {
  display: grid;
  gap: 0.85rem;
}

.qg-custom-page__technical-text p {
  margin: 0;
  max-width: 72ch;
  line-height: 1.75;
  color: var(--qg-muted);
}

.qg-custom-page__gallery-lead {
  margin-top: -0.35rem;
}

.qg-custom-page__examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.85rem;
}

.qg-custom-page__example {
  margin: 0;
  padding: 0.65rem;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.qg-custom-page__example:hover {
  border-color: var(--qg-border-hot);
  background: rgba(255, 42, 42, 0.04);
}

.qg-custom-page__example-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: zoom-in;
  text-align: inherit;
}

.qg-custom-page__example-btn:focus-visible {
  outline: 2px solid rgba(255, 42, 42, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.qg-custom-page__example-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 0.5rem;
  border-radius: 6px;
  background: rgba(var(--qg-bg-rgb), 0.75);
}

.qg-custom-page__example-frame .qg-soue-callpanel-img {
  max-height: 140px;
}

.qg-custom-page__example-label {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--qg-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 42, 42, 0.65);
}

/* Compact gallery lightbox — customization page */
.qg-custom-example-lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1rem;
  --qg-bg-rgb: 7, 11, 20;
  --qg-accent-rgb: 255, 42, 42;
  --qg-text: #b8c0cc;
  --qg-muted: #6b7585;
  --qg-heading: #eef0f4;
  --qg-red: #ff2a2a;
  --qg-border: rgba(255, 255, 255, 0.12);
  --qg-mono: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--qg-text);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
}

.qg-custom-example-lightbox[hidden] {
  display: none !important;
}

body.qg-custom-lightbox-open {
  overflow: hidden;
}

.qg-custom-example-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(var(--qg-bg-rgb), 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.qg-custom-example-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(540px, 94vw);
}

.qg-custom-example-lightbox__panel {
  position: relative;
  padding: 1.15rem 3rem 1.2rem;
  border: 1px solid rgba(255, 42, 42, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 42, 42, 0.08), transparent 60%),
    rgba(8, 10, 14, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.qg-custom-example-lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 340px;
}

.qg-custom-example-lightbox__slide {
  grid-area: 1 / 1;
  margin: 0;
  width: 100%;
  text-align: center;
}

.qg-custom-example-lightbox__slide:not(.is-active) {
  visibility: hidden;
  pointer-events: none;
}

.qg-custom-example-lightbox__slide img {
  width: auto;
  max-width: 100%;
  max-height: min(58vh, 520px);
  margin-inline: auto;
  object-fit: contain;
}

.qg-custom-example-lightbox__caption {
  margin: 0.85rem 0 0.25rem;
  font-family: var(--qg-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 42, 42, 0.75);
}

.qg-custom-example-lightbox__counter {
  margin: 0;
  font-size: 0.72rem;
  text-align: center;
  color: var(--qg-muted);
}

.qg-custom-example-lightbox__close,
.qg-custom-example-lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--qg-heading);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.qg-custom-example-lightbox__close:hover,
.qg-custom-example-lightbox__nav:hover,
.qg-custom-example-lightbox__close:focus-visible,
.qg-custom-example-lightbox__nav:focus-visible {
  border-color: rgba(255, 42, 42, 0.45);
  background: rgba(255, 42, 42, 0.08);
  color: #fff;
}

.qg-custom-example-lightbox__close {
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.35rem;
  line-height: 1;
}

.qg-custom-example-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2.4rem;
  font-size: 1.35rem;
  line-height: 1;
}

.qg-custom-example-lightbox__nav--prev { left: 0.55rem; }
.qg-custom-example-lightbox__nav--next { right: 0.55rem; }

@media (max-width: 520px) {
  .qg-custom-example-lightbox__dialog {
    width: min(420px, 94vw);
  }

  .qg-custom-example-lightbox__panel {
    padding: 0.95rem 2.5rem 1rem;
  }

  .qg-custom-example-lightbox__slide img {
    max-height: min(50vh, 400px);
  }
}

.qg-custom-page__cta {
  border-bottom: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(255, 42, 42, 0.07), transparent 70%),
    var(--qg-bg);
}

.qg-custom-page__cta-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(255, 42, 42, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.qg-custom-page__cta-copy {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.qg-custom-page__cta-copy p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.7;
  color: var(--qg-muted);
}

@media (prefers-reduced-motion: reduce) {
  .qg-custom-page__item {
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .qg-custom-page__item:hover {
    transform: none;
  }

  .qg-custom-page__item:hover .qg-custom-page__item-mark {
    transform: none;
  }

  .qg-custom-page__step {
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .qg-custom-page__step:hover {
    transform: none;
  }

  .qg-custom-page__step:hover .qg-custom-page__step-badge {
    transform: none;
  }
}

@media (max-width: 900px) {
  .qg-custom-page__hero-grid,
  .qg-custom-page__steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .qg-custom-page__list {
    grid-template-columns: 1fr;
  }

  .qg-custom-page__hero h1 {
    max-width: none;
  }

  .qg-custom-page__head h2 {
    max-width: none;
  }

  .qg-custom-page__examples-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .qg-custom-page__example-frame {
    min-height: 120px;
  }

  .qg-custom-page__example-frame .qg-soue-callpanel-img {
    max-height: 110px;
  }

  .qg-custom-page__cta-actions .qg-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .qg-custom-page__examples-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.qg-page--seo .qg-seo-hero {
  padding: clamp(5rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 4rem);
  border-bottom: 1px solid var(--qg-border);
}

.qg-seo-hero__inner {
  max-width: 820px;
}

.qg-seo-hero__lead {
  margin: 1rem 0 1.75rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  color: var(--qg-muted);
}

.qg-seo-hero__actions,
.qg-seo-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.qg-seo-block h2 {
  margin-bottom: 1.25rem;
}

.qg-seo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.qg-seo-list__item {
  position: relative;
  padding-left: 1.1rem;
  color: var(--qg-muted);
  line-height: 1.5;
}

.qg-seo-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qg-accent);
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.5);
}

.qg-workflow--seo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.qg-seo-cta {
  border-top: 1px solid var(--qg-border);
  border-bottom: 1px solid var(--qg-border);
  background: rgba(255, 42, 42, 0.03);
}

.qg-seo-cta__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.qg-seo-cta__inner p {
  color: var(--qg-muted);
  margin: 0.75rem 0 1.5rem;
}

.qg-seo-cta__actions {
  justify-content: center;
}

@media (max-width: 640px) {
  .qg-seo-hero__actions .qg-btn,
  .qg-seo-cta__actions .qg-btn {
    width: 100%;
  }
}

.qg-seo-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.qg-seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.qg-seo-table th,
.qg-seo-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--qg-border);
  text-align: left;
  vertical-align: top;
}

.qg-seo-table th {
  color: var(--qg-text);
  background: rgba(255, 255, 255, 0.03);
}

.qg-seo-table th[scope='row'] {
  white-space: nowrap;
  width: 7rem;
}

.qg-seo-table td {
  color: var(--qg-muted);
}

.qg-seo-note {
  margin: 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--qg-accent);
  background: rgba(255, 42, 42, 0.04);
  color: var(--qg-muted);
  line-height: 1.6;
  border-radius: 0 6px 6px 0;
}

.qg-seo-note--inline {
  margin-top: 1rem;
}

.qg-seo-list__item a {
  color: var(--qg-accent);
  text-decoration: none;
}

.qg-seo-list__item a:hover {
  text-decoration: underline;
}

.qg-seo-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.qg-seo-gallery__item {
  margin: 0;
  text-align: center;
}

.qg-seo-gallery__item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--qg-border);
  background: rgba(255, 255, 255, 0.02);
}

.qg-seo-gallery__item figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--qg-muted);
}

.qg-seo-block__intro {
  margin: 0 0 1.25rem;
  color: var(--qg-muted);
  line-height: 1.65;
  max-width: 820px;
}

.qg-seo-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.qg-seo-card {
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--qg-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qg-seo-card:hover {
  border-color: rgba(255, 42, 42, 0.35);
  background: rgba(255, 42, 42, 0.03);
}

.qg-seo-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--qg-text);
}

.qg-seo-card__text {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--qg-muted);
}

.qg-seo-faq__list {
  display: grid;
  gap: 0.75rem;
}

.qg-seo-faq__item {
  border: 1px solid var(--qg-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.qg-seo-faq__item summary {
  padding: 1rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--qg-text);
}

.qg-seo-faq__item summary::-webkit-details-marker {
  display: none;
}

.qg-seo-faq__item summary::after {
  content: '+';
  float: right;
  color: var(--qg-accent);
  font-weight: 700;
}

.qg-seo-faq__item[open] summary::after {
  content: '−';
}

.qg-seo-faq__item p {
  margin: 0;
  padding: 0 1.15rem 1rem;
  color: var(--qg-muted);
  line-height: 1.6;
}

.qg-seo-related__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.qg-seo-related__link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--qg-border);
  border-radius: 999px;
  color: var(--qg-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.qg-seo-related__link:hover {
  border-color: rgba(255, 42, 42, 0.45);
  color: var(--qg-accent);
  background: rgba(255, 42, 42, 0.04);
}

.qg-seo-note a {
  color: var(--qg-accent);
  text-decoration: none;
}

.qg-seo-note a:hover {
  text-decoration: underline;
}

.qg-soue-types__more {
  margin: 1.25rem 0 0;
}

/* ═══ PANEL CONFIGURATOR ═══ */
.qg-custom-page__configurator .qg-custom-page__head {
  margin-bottom: 1.5rem;
}

.qg-panel-config__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.qg-panel-config__preview-card {
  position: sticky;
  top: 5.5rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--qg-border);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.qg-panel-config__preview-stage {
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 1.25rem 0.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(0, 0, 0, 0.35), transparent 72%);
}

.qg-panel-config__panel {
  width: min(200px, 62vw);
  height: auto;
}

.qg-panel-config__body {
  fill: var(--panel-color, #a5a5a5);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.8;
}

.qg-panel-config__body-brush,
.qg-panel-config__body-shine {
  pointer-events: none;
}

.qg-panel-config__cutout {
  fill: #06080c;
}

.qg-panel-config__pinhole {
  fill: #030406;
}

.qg-panel-config__btn-hole-ring {
  pointer-events: none;
}

.qg-panel-config__logo-text {
  font-family: var(--qg-display, var(--qg-mono));
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qg-panel-config__preview-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--qg-muted);
  text-align: center;
}

.qg-panel-config__controls-col {
  display: grid;
  gap: 1.25rem;
}

.qg-panel-config__group {
  padding: 1rem 1.05rem;
  border: 1px solid var(--qg-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}

.qg-panel-config__group-title {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qg-heading);
}

.qg-panel-config__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.qg-panel-config__preset {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.35rem 0.7rem 0.35rem 0.45rem;
  border: 1px solid var(--qg-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--qg-text);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.qg-panel-config__preset:hover,
.qg-panel-config__preset.is-active {
  border-color: var(--qg-border-hot);
  background: rgba(255, 42, 42, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 42, 42, 0.12);
}

.qg-panel-config__preset-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.qg-panel-config__picker {
  position: relative;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  margin-bottom: 1rem;
}

.qg-panel-config__wheel {
  display: block;
  width: min(220px, 72vw);
  height: auto;
  touch-action: none;
  cursor: crosshair;
}

.qg-panel-config__wheel-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.qg-panel-config__sliders {
  width: 100%;
  display: grid;
  gap: 0.65rem;
}

.qg-panel-config__slider-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--qg-muted);
}

.qg-panel-config__slider-label input[type='range'] {
  width: 100%;
  accent-color: var(--qg-red);
}

.qg-panel-config__color-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--qg-border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
}

.qg-panel-config__color-swatch {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--swatch);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.qg-panel-config__color-meta {
  display: grid;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--qg-text);
}

.qg-panel-config__color-meta p {
  margin: 0;
}

.qg-panel-config__meta-label {
  color: var(--qg-muted);
  font-family: var(--qg-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qg-panel-config__field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--qg-heading);
}

.qg-panel-config__field input[type='text'] {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--qg-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--qg-heading);
  font: inherit;
}

.qg-panel-config__field input:focus {
  outline: none;
  border-color: var(--qg-border-hot);
}

.qg-panel-config__hint {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--qg-muted);
}

.qg-panel-config__radios,
.qg-panel-config__checks {
  display: grid;
  gap: 0.55rem;
}

.qg-panel-config__radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--qg-text);
  cursor: pointer;
}

.qg-panel-config__radio input {
  accent-color: var(--qg-red);
}

.qg-panel-config__checkbox {
  font-size: 0.84rem;
}

.qg-panel-config__actions {
  display: grid;
  gap: 0.75rem;
}

.qg-panel-config__submit {
  width: 100%;
  min-height: 48px;
}

.qg-panel-config__legal,
.qg-panel-config__audience {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--qg-muted);
}

.qg-configurator-modal .qg-callback-modal__panel {
  max-width: 520px;
}

@media (max-width: 960px) {
  .qg-panel-config__grid {
    grid-template-columns: 1fr;
  }

  .qg-panel-config__preview-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .qg-panel-config__presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .qg-panel-config__preset {
    width: 100%;
    justify-content: flex-start;
  }

  .qg-panel-config__preview-stage {
    min-height: 400px;
  }
}



/* ── Mobile UX hotfix (2026-07-28) ─────────────────────────── */
@media (max-width: 640px) {
  .qg-section {
    padding: 2.15rem 0;
  }

  .qg-section__head {
    margin-bottom: 1.25rem;
  }

  .qg-kicker {
    margin-bottom: 0.45rem;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  #quadro-group-root h2 {
    font-size: clamp(1.25rem, 7vw, 1.7rem);
    line-height: 1.12;
  }

  .qg-section__lead,
  .qg-soue-custom__text,
  .qg-soue-training__text,
  .qg-soue-objects .qg-soue-footnote {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  /* Horizontal swipe instead of a long vertical list */
  .qg-soue-objects__grid,
  .qg-soue-types__grid,
  .qg-soue-training__cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 82vw);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    gap: 0.65rem;
  }

  .qg-soue-objects__grid::-webkit-scrollbar,
  .qg-soue-types__grid::-webkit-scrollbar,
  .qg-soue-training__cards::-webkit-scrollbar,
  .qg-soue-custom__thumbs::-webkit-scrollbar {
    height: 4px;
  }

  .qg-soue-obj,
  .qg-soue-type,
  .qg-soue-training__card {
    scroll-snap-align: start;
  }

  .qg-soue-obj {
    min-height: 108px;
  }

  .qg-soue-obj__content {
    min-height: 108px;
    padding: 1rem;
  }

  .qg-soue-objects .qg-soue-footnote {
    margin-top: 0.95rem;
  }

  /* Make customization block lighter and more compact */
  .qg-soue-custom__grid {
    gap: 1.35rem;
  }

  .qg-soue-custom__text {
    margin-bottom: 1.1rem;
  }

  .qg-soue-custom__highlights {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .qg-soue-custom__highlights li {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .qg-soue-custom__gallery {
    padding: 0.85rem;
    border-radius: 10px;
  }

  .qg-soue-custom__slides {
    min-height: 220px;
  }

  .qg-soue-custom__slide-frame {
    min-height: 220px;
    max-width: 100%;
    padding: 0.75rem;
  }

  .qg-soue-callpanel-img {
    max-height: 250px;
  }

  .qg-soue-custom__slide-label {
    margin-top: 0.7rem;
    font-size: 0.66rem;
  }

  .qg-soue-custom__slide-caption {
    font-size: 0.64rem;
  }

  .qg-soue-custom__nav {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding: 0;
  }

  .qg-soue-custom__nav-btn {
    width: 2.2rem;
    height: 2.2rem;
  }

  .qg-soue-custom__thumbs {
    display: flex;
    overflow-x: auto;
    gap: 0.55rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    padding-bottom: 0.2rem;
    border-top: 1px solid var(--qg-border);
    scroll-snap-type: x proximity;
  }

  .qg-soue-custom__thumb {
    flex: 0 0 108px;
    min-width: 108px;
    scroll-snap-align: start;
  }

  .qg-soue-custom__thumb-preview {
    min-height: 64px;
  }

  .qg-soue-custom__thumb-label {
    font-size: 0.54rem;
  }

  .qg-soue-type {
    padding: 1rem 0.95rem;
  }

  .qg-soue-type h3 {
    font-size: 0.98rem;
  }

  .qg-soue-type p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .qg-soue-types__more {
    margin-top: 0.95rem;
  }

  .qg-soue-training__intro {
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .qg-soue-training__visual-frame {
    border-radius: 10px;
  }

  .qg-soue-training__img {
    max-height: 220px;
  }

  .qg-soue-training__body {
    gap: 0.85rem;
  }

  .qg-soue-training__card {
    padding: 0.95rem 1rem;
  }

  .qg-soue-training__card h3 {
    font-size: 0.9rem;
  }

  .qg-soue-training__card p,
  .qg-soue-training__when-item,
  .qg-soue-training__support p {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}
