/* lx-company-eco.css
   Background of /company/ hero A: 1:1 the glow + twinkling stars from
   the homepage section #home-services.home-eco
   («Создаём и внедряем современные цифровые продукты»).

   Values copied from the live scoped CSS in pages.CnxC5ASz.css
   ([data-v-68222362], 2026-11-27).

   The decorative layer is a document.body portal (.lxa-eco), not a child
   of the Vue-managed .lxa-hero — inserting nodes into the hero during
   or after hydration dropped .lxa-hero__inner.

   Classes are prefixed so the homepage section is untouched.
   Does not change hero typography or layout.
*/

/* Let the portal show through the opaque page wrappers. */
.app-shell:has(.lxa-hero),
.lxa:has(.lxa-hero) {
  background-color: transparent !important;
}

#__nuxt:has(.lxa-hero) {
  position: relative;
  z-index: 1;
}

.lxa-eco {
  --eco-star: #3b6ea8;
  --eco-glow: radial-gradient(closest-side, #0a6ee624, #0846a00d 50%, transparent);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  overflow: hidden;
}

html.dark .lxa-eco {
  --eco-star: #8fc2ff;
  --eco-glow: radial-gradient(closest-side, #0a6ee661, #0846a024 50%, transparent);
}

.lxa-eco__glow,
.lxa-eco__stars {
  pointer-events: none;
  position: absolute;
}

.lxa-eco__glow {
  background: var(--eco-glow);
  width: 1100px;
  margin-left: -550px;
  top: 0;
  bottom: 0;
  left: 50%;
  -webkit-mask-image: linear-gradient(#000, #000 55%, #0000);
  mask-image: linear-gradient(#000, #000 55%, #0000);
}

.lxa-eco__stars {
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, #0000);
  mask-image: linear-gradient(#000 70%, #0000);
}

.lxa-eco__stars i {
  background: var(--eco-star);
  box-shadow: 0 0 6px color-mix(in srgb, var(--eco-star) 90%, transparent);
  opacity: 0;
  border-radius: 50%;
  animation-name: lxa-eco-twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  position: absolute;
}

/* Same 1:1 twinkle as homepage home-eco-twinkle-68222362 */
@keyframes lxa-eco-twinkle {
  0%   { opacity: 0; transform: translate(0) scale(.5); }
  40%  { opacity: 1; transform: translate(calc(var(--dx) * .4), calc(var(--dy) * .4)) scale(1); }
  to   { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.6); }
}

@media (width <= 767px) {
  .lxa-eco__glow {
    width: 700px;
    margin-left: -350px;
  }
  .lxa-eco__stars i:nth-child(n+29) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lxa-eco__stars i {
    opacity: .45;
    animation: none;
    transform: none;
  }
}
