/* ═══════════════════════════════════════════════════════════
   Selection page (автоподбор) — inspection hero (CSS only)
   ═══════════════════════════════════════════════════════════ */

html[data-route="selection"] body {
  background-color: #06080c !important;
  background-image:
    radial-gradient(900px 520px at 12% -5%, rgba(59, 130, 246, 0.07), transparent 55%),
    radial-gradient(760px 440px at 88% 6%, rgba(45, 212, 168, 0.05), transparent 52%) !important;
}

html[data-route="selection"] .nav-link.active {
  color: #bfdbfe !important;
}

html[data-route="selection"] .nav-link.active::after {
  background: linear-gradient(90deg, #3b82f6, #bfdbfe) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35) !important;
}

/* ── Hero with X-ray inspection photo ── */
html[data-route="selection"] #root main > div > section:first-of-type {
  position: relative;
  isolation: isolate;
  min-height: min(52vh, 520px);
  display: flex;
  align-items: center;
  padding-top: 2rem !important;
  padding-bottom: 2.5rem !important;
  overflow: hidden;
}

html[data-route="selection"] #root main > div > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.9) 0%, rgba(6, 8, 12, 0.62) 28%, rgba(6, 8, 12, 0.12) 50%, rgba(6, 8, 12, 0.18) 100%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.42) 0%, rgba(6, 8, 12, 0.04) 42%, rgba(6, 8, 12, 0.58) 100%),
    radial-gradient(ellipse 52% 58% at 54% 54%, transparent 28%, rgba(6, 8, 12, 0.28) 100%),
    url("/assets/hero/selection-hero.webp") 54% 56% / cover no-repeat;
  transform: scale(1.05);
  transform-origin: 54% center;
  filter: brightness(1.12) contrast(1.06);
}

html[data-route="selection"] #root main > div > section:first-of-type::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 8, 12, 0.22) 0%,
    transparent 45%,
    rgba(6, 8, 12, 0.38) 100%
  );
}

html[data-route="selection"] #root main > div > section:first-of-type > .absolute.inset-0 {
  background: transparent !important;
  opacity: 0 !important;
}

html[data-route="selection"] #root main > div > section:first-of-type .max-w-7xl {
  position: relative;
  z-index: 2;
  width: 100%;
}

html[data-route="selection"] #root main > div > section:first-of-type h1 span.text-blue-500 {
  background: linear-gradient(135deg, #dbeafe 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  filter: none;
}

html[data-route="selection"] #root main > div > section:first-of-type [class*="bg-blue-500/10"] {
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  backdrop-filter: blur(8px);
}

html[data-route="selection"] #root main > div > section:first-of-type .text-blue-400,
html[data-route="selection"] #root main > div > section:first-of-type .text-blue-500 {
  color: #60a5fa !important;
}

html[data-route="selection"] #root main > div > section:first-of-type .btn-primary.bg-blue-500 {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

html[data-route="selection"] #root main > div > section:first-of-type .glass-card {
  background: rgba(8, 12, 20, 0.78) !important;
  border-color: rgba(96, 165, 250, 0.18) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  html[data-route="selection"] #root main > div > section:first-of-type {
    min-height: min(44vh, 420px);
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
  }

  html[data-route="selection"] #root main > div > section:first-of-type::before {
    background:
      linear-gradient(180deg, rgba(6, 8, 12, 0.72) 0%, rgba(6, 8, 12, 0.28) 44%, rgba(6, 8, 12, 0.78) 100%),
      url("/assets/hero/selection-hero-mobile.webp") center 54% / cover no-repeat;
    transform: none;
    transform-origin: center center;
    filter: none;
  }

  html[data-route="selection"] #root main > div > section:first-of-type::after {
    display: none;
  }

  html[data-route="selection"] #root main > div > section:not(:first-of-type) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
  }

  html[data-route="selection"] #root main > div > section:first-of-type [class*="bg-blue-500/10"],
  html[data-route="selection"] #root main > div > section:first-of-type .glass-card {
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  html[data-route="selection"] #root main > div > section:first-of-type h1,
  html[data-route="selection"] #root main > div > section:first-of-type h1 span {
    font-family: Manrope, system-ui, sans-serif !important;
    -webkit-text-fill-color: unset;
    background: none !important;
    color: #fff !important;
  }

  html[data-route="selection"] #root main > div > section:first-of-type h1 span.text-blue-500 {
    color: #93c5fd !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-route="selection"] #root main > div > section:first-of-type::before {
    transform: scale(1.05);
  }
}
