/* Новоросс-ИТ V7 / независимые эффекты Hero и бегущей строки.
   Подключается отдельным новым файлом, чтобы старый CSS в кэше не мешал.
   Бегущая строка работает БЕЗ JavaScript. */
.home .hero { position:relative; isolation:isolate; }
/* Старый визуальный слой имел z-index:-1, из-за чего сигнал мог оказаться под фоном. */
.home .hero-visual { z-index:0; pointer-events:none; }
.home .hero-visual .hero-photo { z-index:0; }
.home .hero-visual .hero-mask { z-index:1; }
.home .hero-visual .fx-scanline { z-index:2; }
.home .hero-visual .fx-tech-orbit { z-index:3; }
.home .hero-grid { position:relative; z-index:7; pointer-events:none; }
.home .hero-grid a,.home .hero-grid button { pointer-events:auto; }
.home .hero-visual .hero-v7-lines { display:block; position:absolute; inset:0; width:100%; height:100%; z-index:6; pointer-events:none; overflow:visible; opacity:1; -webkit-mask-image:linear-gradient(90deg,transparent 0%,transparent 26%,#000 48%,#000 100%); mask-image:linear-gradient(90deg,transparent 0%,transparent 26%,#000 48%,#000 100%); }
.hero-v7-lines .v7-wire path { fill:none; stroke:#e4b15e; stroke-width:1.8; stroke-opacity:.70; filter:drop-shadow(0 0 5px rgba(255,183,67,.70)); }
.hero-v7-lines .v7-signal path { fill:none; stroke:#ffe8a3; stroke-width:5.4; stroke-linecap:round; stroke-dasharray:2 98; stroke-dashoffset:100; opacity:.98; filter:drop-shadow(0 0 8px #ffbf44); animation:v7-signal-run 6s linear infinite; }
.hero-v7-lines .v7-signal path:nth-child(2) { animation-delay:-2s; animation-duration:7.1s; stroke:#aee9ff; filter:drop-shadow(0 0 8px #67cfff); }
.hero-v7-lines .v7-signal path:nth-child(3) { animation-delay:-3s; animation-duration:5.4s; }
.hero-v7-lines .v7-nodes circle { fill:#ffdf94; stroke:#f6b64a; stroke-width:2; transform-box:fill-box; transform-origin:center; animation:v7-node-pulse 2.3s ease-in-out infinite alternate; filter:drop-shadow(0 0 6px #ffc45c); }
.hero-v7-lines .v7-nodes circle:nth-child(even) { animation-delay:-1.15s; }
@keyframes v7-signal-run { to { stroke-dashoffset:0; } }
@keyframes v7-node-pulse { from { opacity:.43; transform:scale(.70); } to { opacity:1; transform:scale(1.55); } }
.home .fx-v7-toggle { position:absolute; z-index:9; right:max(17px,calc((100vw - 1230px)/2)); bottom:44px; border:1px solid rgba(245,198,112,.6); border-radius:20px; background:rgba(3,14,26,.85); color:#ffe3a2; padding:6px 12px; font:700 11px/1.35 system-ui,sans-serif; cursor:pointer; box-shadow:0 0 14px rgba(255,200,94,.17); }
.home .fx-v7-toggle:hover,.home .fx-v7-toggle:focus-visible { background:#18334b; outline:1px solid #ffe3a2; }
.fx-v7-toggle[hidden] { display:none!important; }
/* Ticker: duplicate strip, CSS-only GPU transform. It follows closing </section> of Hero. */
.home .hero + .service-ticker { position:relative; display:flex; overflow:hidden; isolation:isolate; width:100%; min-height:49px; background:#061827; border-block:1px solid #e1af5b80; }
.home .service-ticker .ticker-track { display:flex; align-items:center; gap:0; width:max-content; min-width:0; flex:0 0 auto; transform:translate3d(0,0,0); will-change:transform; animation:v7-strip-scroll 20s linear infinite !important; }
.home .service-ticker .ticker-segment { flex:0 0 auto; padding-right:0; gap:0; }
.home .service-ticker .ticker-item { flex:0 0 auto; white-space:nowrap; }
@keyframes v7-strip-scroll { from { transform:translate3d(0,0,0); } to { transform:translate3d(-50%,0,0); } }
/* When disabled manually or by OS, leave the content legible. */
html.fx-v7-off .home .ticker-track,html.fx-v7-off .home .v7-signal path,html.fx-v7-off .home .v7-nodes circle { animation:none!important; }
@media(max-width:760px) {
 .home .hero-visual .hero-v7-lines { opacity:.58; }
 .hero-v7-lines .v7-wire path { stroke-width:2; }
 .home .fx-v7-toggle { bottom:21px; right:17px; }
 .home .service-ticker { min-height:43px; }
 .home .service-ticker .ticker-track { animation-duration:18s!important; }
}
@media(prefers-reduced-motion:reduce) {
 .home .service-ticker .ticker-track, .home .hero-v7-lines .v7-signal path, .home .hero-v7-lines .v7-nodes circle { animation:none!important; }
 /* User can explicitly opt in by pressing the visible toggle (when JS is on). */
 html.fx-v7-force .home .service-ticker .ticker-track { animation:v7-strip-scroll 20s linear infinite!important; }
 html.fx-v7-force .home .hero-v7-lines .v7-signal path { animation:v7-signal-run 6s linear infinite!important; }
 html.fx-v7-force .home .hero-v7-lines .v7-signal path:nth-child(2) {animation-delay:-2s!important;animation-duration:7.1s!important;}
 html.fx-v7-force .home .hero-v7-lines .v7-signal path:nth-child(3) {animation-delay:-3s!important;animation-duration:5.4s!important;}
 html.fx-v7-force .home .hero-v7-lines .v7-nodes circle {animation:v7-node-pulse 2.3s ease-in-out infinite alternate!important;}
}

/* V32: do not animate SVG signal lines or the ticker on mobile by default.
   The existing manual switch can enable them when explicitly requested. */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  html:not(.fx-mobile-effects-on) .home .hero-visual .hero-v7-lines {
    display: none !important;
  }
  html:not(.fx-mobile-effects-on) .home .hero + .service-ticker {
    overflow-x: auto;
    scrollbar-width: none;
  }
  html:not(.fx-mobile-effects-on) .home .hero + .service-ticker::-webkit-scrollbar {
    display: none;
  }
  html:not(.fx-mobile-effects-on) .home .service-ticker .ticker-track {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
}


/* V39: seamless full-width homepage hero.
   Previously .home .hero-visual started at 31% of page width, leaving a visible
   vertical edge against the independently tinted hero background. Make the
   image and its shade cover the entire hero; use one smooth fade across it. */
.home .hero-visual {
  inset: 0;
}
.home .hero-visual .hero-mask {
  background:
    linear-gradient(90deg,
      rgba(6,20,33,.97) 0%,
      rgba(6,20,33,.94) 18%,
      rgba(6,20,33,.83) 32%,
      rgba(6,20,33,.62) 45%,
      rgba(6,20,33,.32) 61%,
      rgba(6,20,33,.11) 79%,
      rgba(6,20,33,.02) 100%),
    linear-gradient(0deg,rgba(6,20,33,.70) 0%,transparent 24%,rgba(6,20,33,.08) 100%);
}
/* Mobile stays softly shaded and retains the V32 performance rules. */
@media(max-width:760px) {
  .home .hero-visual .hero-mask {
    background:
      linear-gradient(90deg,rgba(6,20,33,.94),rgba(6,20,33,.82) 85%,rgba(6,20,33,.72)),
      linear-gradient(0deg,rgba(6,20,33,.8),transparent 65%);
  }
}
