/* Production-only WebGL hero. Header, menus and all following homepage blocks stay in home.css. */
:root {
  --hero-p: 0;
  --intro-fade: 0;
  --stats-a-opacity: 0;
  --stats-b-opacity: 0;
  --media-x: 0%;
  --media-y: 0%;
  --media-scale: .84;
  --blueprint-opacity: .22;
  --glow-opacity: .24;
  --glow-scale: .76;
  --grid-opacity: .34;
}

.scroll-hero {
  position: relative;
  height: 350vh;
  height: 350svh;
  min-height: calc(100vh + 1700px);
  overflow: visible;
  background: #090c11;
}

.scroll-hero__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: clip;
  isolation: isolate;
}

.hero-visual,
.hero-visual__media,
.hero-visual__fallback,
.hero-visual__canvas,
.hero-visual__blueprint,
.hero-visual__glow,
.hero-visual__shade,
.hero-visual__grid {
  position: absolute;
  inset: 0;
}

.hero-visual {
  z-index: 0;
  overflow: hidden;
  background: #090d13;
}

.hero-visual__media {
  transform: translate3d(var(--media-x), var(--media-y), 0) scale(var(--media-scale));
  transform-origin: 100% 54%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 9%, #000 24%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 9%, #000 24%, #000 100%);
  will-change: transform;
}

.hero-visual__fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 76% 52%, rgba(49, 140, 255, .14), transparent 24%),
    linear-gradient(128deg, transparent 48%, rgba(49, 140, 255, .055) 49%, transparent 50%),
    #090d13;
  opacity: 1;
  transition: opacity .32s ease;
}

.hero-visual__canvas {
  inset: 18% 1% 2% auto;
  width: 54%;
  height: 84%;
  opacity: 0;
  transition: opacity .32s ease;
}

.scroll-hero.is-webgl-ready .hero-visual__canvas { opacity: 1; }
.scroll-hero.is-webgl-ready .hero-visual__fallback { opacity: 0; }
.scroll-hero.is-webgl-fallback .hero-visual__canvas { opacity: 0; }
.scroll-hero.is-webgl-fallback .hero-visual__fallback { opacity: 1; }

.hero-visual__blueprint {
  background:
    radial-gradient(circle at 76% 50%, rgba(49, 140, 255, .17), transparent 27%),
    linear-gradient(112deg, transparent 38%, rgba(49, 140, 255, .05) 64%, transparent 80%);
  opacity: var(--blueprint-opacity);
  mix-blend-mode: screen;
}

.hero-visual__glow {
  inset: auto 4vw -18vh auto;
  width: min(60vw, 920px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(32, 112, 255, .17);
  filter: blur(120px);
  opacity: var(--glow-opacity);
  transform: scale(var(--glow-scale));
}

.hero-visual__shade {
  z-index: 2;
  background:
    linear-gradient(90deg, #090c11 0%, rgba(9, 12, 17, .98) 23%, rgba(9, 12, 17, .83) 43%, rgba(9, 12, 17, .25) 67%, rgba(9, 12, 17, .08) 100%),
    linear-gradient(180deg, rgba(8, 11, 15, .72) 0%, transparent 27%, transparent 68%, rgba(8, 11, 15, .76) 100%);
}

.hero-visual__grid {
  z-index: 3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 67%);
  mask-image: linear-gradient(90deg, #000, transparent 67%);
  opacity: var(--grid-opacity);
}

.hero-frame {
  position: absolute;
  z-index: 5;
  inset: calc(var(--hdr-h) + 22px) auto 28px max(20px, 2.3vw);
  width: 1px;
  border-left: 1px solid rgba(255, 255, 255, .07);
  pointer-events: none;
}

.hero-frame__corner {
  position: absolute;
  inset: 0 auto auto -1px;
  width: 28px;
  height: 28px;
  border-top: 1px solid rgba(255, 255, 255, .34);
  border-left: 1px solid rgba(255, 255, 255, .34);
}

.hero-scenes {
  position: relative;
  z-index: 10;
  height: 100%;
}

.hero-scene {
  position: absolute;
  top: 50%;
  left: var(--pad);
  right: var(--pad);
  width: auto;
  max-width: 850px;
  will-change: transform, opacity;
}

.hero-scene--intro {
  opacity: calc(1 - var(--intro-fade));
  transform: translate3d(0, -47%, 0);
}

.hero-scene--stats {
  width: min(42vw, 680px);
  max-width: none;
  pointer-events: none;
}

.hero-scene--stats-a {
  opacity: var(--stats-a-opacity);
  transform: translate3d(-32vw, -47%, 0);
}

.hero-scene--stats-b {
  opacity: var(--stats-b-opacity);
  transform: translate3d(-32vw, -47%, 0);
}

.scene-kicker {
  margin-bottom: clamp(18px, 2.4vh, 28px);
  color: var(--text-2);
  font: 620 clamp(10px, .76vw, 12px)/1 var(--f-head);
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero-scene h1 {
  max-width: 850px;
  font-family: var(--f-head);
  font-size: clamp(54px, 4.9vw, 88px);
  font-weight: 590;
  line-height: .96;
  letter-spacing: -.057em;
  text-wrap: balance;
}

.hero-scene h1 > span { display: block; }
.hero-scene h1 em { color: var(--accent); font-style: normal; }

.hero-title__accent {
  color: transparent;
  background: linear-gradient(100deg, var(--accent) 0%, #ff6d4f 58%, #ffad9b 130%);
  -webkit-background-clip: text;
  background-clip: text;
}

.scene-lead {
  max-width: 670px;
  margin-top: clamp(22px, 3vh, 32px);
  color: var(--text-2);
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.58;
}

.scene-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3.2vh, 36px);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 30px;
  margin-top: clamp(24px, 3.2vh, 38px);
  padding: 0;
  color: rgba(197, 204, 212, .72);
  font-size: clamp(12px, .9vw, 14px);
  list-style: none;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.hero-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(244, 67, 31, .42);
}

.hero-stats {
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: 22px clamp(24px, 3vw, 46px);
  margin: 0;
}

.hero-stats--a { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-stats--b { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-stats--b .hero-stat:last-child { grid-column: 1; }

.hero-stat {
  min-width: 0;
  padding: 0 0 18px;
  border-bottom: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-stat--wide { grid-column: 1 / -1; }

.hero-stat dt {
  color: var(--text);
  font: 560 clamp(58px, 5.9vw, 94px)/.88 var(--f-head);
  letter-spacing: -.07em;
  white-space: nowrap;
}

.hero-stat--major dt,
.hero-stat--service dt { color: var(--accent); }
.hero-stat--service dt { text-shadow: 0 0 34px rgba(244, 67, 31, .12); }
.hero-stat--wide dt,
.hero-stats--b dt { font-size: clamp(58px, 5.9vw, 94px); }

.hero-stat__value { color: inherit; }

.hero-stat dt .hero-stat__suffix {
  color: inherit;
  font-size: .58em;
  letter-spacing: -.03em;
}

.hero-stat dd {
  max-width: 280px;
  margin: 22px 0 0;
  color: var(--text-2);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.45;
}

.hero-stat--wide dd {
  margin: 22px 0 4px;
  font-size: clamp(16px, 1.35vw, 20px);
}

.hero-stats--b .hero-stat { padding-bottom: 24px; }
.hero-stats--b .hero-stat dd { min-height: 56px; }

.hero-stats__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 2px;
  padding-bottom: 0;
  color: rgba(245, 247, 249, .86);
  font-size: clamp(13px, .95vw, 15px);
  font-weight: 560;
  text-decoration: none;
  opacity: 0;
  pointer-events: auto;
  will-change: transform, opacity;
  transition: color .2s ease;
}

.hero-stats__cta span { color: var(--accent); }
.hero-stats__cta:hover,
.hero-stats__cta:focus-visible {
  color: var(--text);
}

/* На третьем кадре CTA занимает свободную ячейку под «3»,
   а не уплотняет колонку «24/7». */
@media (min-width:901px) and (min-height:521px) {
  .hero-scene--stats-b .hero-stats__cta {
    position:absolute;
    left:calc(50% + clamp(12px,1.5vw,23px));
    bottom:clamp(20px,3vh,34px);
    margin-top:0;
  }
}

.scroll-progress {
  position: absolute;
  z-index: 20;
  inset: auto 0 0;
  height: 3px;
  background: rgba(255, 255, 255, .06);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff927a);
  box-shadow: 0 0 24px rgba(244, 67, 31, .38);
  transform: scaleX(var(--hero-p));
  transform-origin: left;
}

.hero-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .hero-scene h1 { font-size: clamp(52px, 6.7vw, 80px); }
  .hero-stat dt { font-size: clamp(54px, 7.5vw, 88px); }
}

@media (max-width: 760px), (min-width: 761px) and (max-width: 900px) and (min-height: 701px) {
  .scroll-hero {
    height: 350vh;
    height: 350svh;
    min-height: calc(100vh + 1450px);
  }

  .scroll-hero__pin { min-height: 560px; }

  .hero-visual__media {
    -webkit-mask-image: none;
    mask-image: none;
    transform-origin: 68% 54%;
  }

  .hero-visual__canvas {
    inset: 0;
    width: 100%;
    height: 100%;
    filter: brightness(1.18) saturate(1.12);
  }

  .hero-visual__fallback {
    background:
      radial-gradient(circle at 58% 68%, rgba(49, 140, 255, .16), transparent 28%),
      linear-gradient(142deg, transparent 54%, rgba(49, 140, 255, .06) 55%, transparent 56%),
      #090d13;
  }

  .hero-visual__shade {
    background:
      linear-gradient(180deg, #090c11 0%, rgba(9, 12, 17, .98) 38%, rgba(9, 12, 17, .64) 58%, rgba(9, 12, 17, .18) 70%, rgba(9, 12, 17, .07) 100%),
      linear-gradient(90deg, rgba(9, 12, 17, .58), rgba(9, 12, 17, .04));
  }

  .hero-visual__grid { background-size: 48px 48px; opacity: .22; }
  .hero-frame { inset: calc(var(--hdr-h) + 12px) auto 15px 12px; }

  .hero-scene {
    top: calc(var(--hdr-h) + clamp(38px, 7vh, 62px));
    left: var(--pad);
    right: var(--pad);
    max-width: none;
  }

  .hero-scene--intro,
  .hero-scene--stats-a,
  .hero-scene--stats-b { transform: translate3d(0, 0, 0); }

  .hero-scene--stats { width: auto; }

  .scene-kicker { margin-bottom: 17px; font-size: 9px; letter-spacing: .13em; }
  .hero-scene h1 { max-width: 100%; font-size: clamp(36px, 10.8vw, 50px); line-height: .97; }
  .scene-lead { max-width: 98%; margin-top: 18px; font-size: 13.5px; line-height: 1.45; }
  .scene-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
  .scene-actions .btn { min-height: 49px; padding-inline: 8px; font-size: 12.5px; text-align: center; }
  .hero-facts { gap: 9px 16px; margin-top: 20px; font-size: 10.5px; }
  .hero-facts li { gap: 7px; }
  .hero-facts li::before { width: 5px; height: 5px; }

  .hero-stats { gap: 14px; }
  .hero-stats--a { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats--b { grid-template-columns: 1fr; row-gap: clamp(17px, 3.2vh, 26px); }
  .hero-stat { padding-bottom: 12px; }
  .hero-stat dt,
  .hero-stat--wide dt,
  .hero-stats--b dt { font-size: clamp(44px, 13.2vw, 58px); }
  .hero-stat dd { margin-top: 12px; font-size: 12px; line-height: 1.35; }
  .hero-stat--wide dd { margin: 10px 0 0; font-size: 12.5px; }
  .hero-stats--b .hero-stat {
    display: grid;
    grid-template-columns: clamp(128px, 34vw, 154px) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(17px, 4.5vw, 26px);
    padding: 6px 0;
  }
  .hero-stats--b .hero-stat dd { min-height: 0; margin: 0; }
  .hero-stat--service dt { letter-spacing: -.055em; }
  .hero-stats__cta { margin-top: 6px; font-size: 12px; }
}

@media (max-width: 760px) and (max-height: 650px) {
  .hero-scene { top: calc(var(--hdr-h) + 28px); }
  .scene-kicker { margin-bottom: 13px; }
  .hero-scene h1 { font-size: clamp(34px, 10.7vw, 45px); }
  .scene-lead,
  .hero-facts { display: none; }
  .scene-actions { margin-top: 18px; }
  .scene-actions .btn { min-height: 46px; font-size: 12px; }
  .hero-stats { gap: 9px 13px; }
  .hero-stat { padding-bottom: 8px; }
  .hero-stat dt,
  .hero-stat--wide dt,
  .hero-stats--b dt { font-size: clamp(39px, 12vw, 50px); }
  .hero-stat dd { margin-top: 7px; font-size: 10.5px; line-height: 1.25; }
  .hero-stat--wide dd { margin: 7px 0 0; font-size: 11px; }
  .hero-stats--b { row-gap: 11px; }
  .hero-stats--b .hero-stat {
    grid-template-columns: clamp(108px, 32vw, 126px) minmax(0, 1fr);
    column-gap: 14px;
    padding: 3px 0 7px;
  }
  .hero-stats__cta { margin-top: 2px; padding-bottom: 0; font-size: 11px; }
}

@media (min-width: 761px) and (max-height: 720px) {
  .hero-scene h1 { font-size: clamp(48px, 5vw, 68px); }
  .scene-lead { max-width: 610px; margin-top: 18px; font-size: 14px; }
  .scene-actions { margin-top: 20px; }
  .hero-facts { margin-top: 18px; }
  .hero-stat dt { font-size: clamp(52px, 6.4vw, 76px); }
  .hero-stat dd { margin-top: 12px; font-size: 14px; }
}

@media (min-width: 761px) and (max-height: 520px) {
  .scroll-hero__pin { min-height: 0; }
  .hero-frame { inset: calc(var(--hdr-h) + 10px) auto 14px 18px; }
  .hero-scene {
    top: calc(var(--hdr-h) + 28px);
    right: auto;
    width: min(59vw, 560px);
    max-width: 560px;
  }
  .hero-scene--intro,
  .hero-scene--stats-a,
  .hero-scene--stats-b { transform: translate3d(0, 0, 0); }
  .scene-kicker { margin-bottom: 11px; font-size: 8px; }
  .hero-scene h1 { font-size: clamp(36px, 4.8vw, 45px); }
  .scene-lead,
  .hero-facts { display: none; }
  .scene-actions { margin-top: 15px; }
  .scene-actions .btn { min-height: 42px; padding-inline: 14px; font-size: 12px; }
  .hero-stats { gap: 8px 22px; }
  .hero-stat { padding-bottom: 8px; }
  .hero-stat dt,
  .hero-stat--wide dt,
  .hero-stats--b dt { font-size: clamp(36px, 4.5vw, 48px); }
  .hero-stat dd { margin-top: 5px; font-size: 10px; }
  .hero-stat--wide dd { margin-top: 6px; }
  .hero-stats--b .hero-stat { padding-bottom: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  :root:not(.force-motion) .hero-visual__media { transform: none !important; }
  :root:not(.force-motion) .hero-scene--intro,
  :root:not(.force-motion) .hero-scene--stats-a,
  :root:not(.force-motion) .hero-scene--stats-b { transform: translate3d(0, -47%, 0) !important; }
  :root:not(.force-motion) .hero-stat { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 760px),
       (prefers-reduced-motion: reduce) and (min-width: 761px) and (max-width: 900px) and (min-height: 701px) {
  :root:not(.force-motion) .hero-scene--intro,
  :root:not(.force-motion) .hero-scene--stats-a,
  :root:not(.force-motion) .hero-scene--stats-b { transform: translate3d(0, 0, 0) !important; }
}
