/* Новоросс-ИТ | отдельный, легко отключаемый слой визуальных эффектов.
   Не изменяет смысловой контент, SEO или расположение изображений из image-map.json. */

/* 1. Тонкая сетка микросхем: видна в свободных тёмных полях, не перекрывает текст. */
.fx-ready .services-block,
.fx-ready .process-block,
.fx-ready .trust-block,
.fx-ready .news-block,
.fx-ready .faq-section,
.fx-ready .services-detail {
  background-image:
    radial-gradient(circle at 16% 24%, rgba(28, 105, 151, .105), transparent 33%),
    linear-gradient(90deg, rgba(98,159,193,.032) 1px, transparent 1px),
    linear-gradient(0deg, rgba(98,159,193,.032) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
  background-position: center, center, center;
}
.fx-ready .section-ornament::after {
  background:linear-gradient(90deg,transparent 0%,#9c6025 13%,#efb855 24%,#fff2b9 27%,#dba24f 30%,#ae752b 48%,#fae4a7 54%,#b4772b 65%,transparent 100%);
  background-size:220% 100%;
  animation:fx-circuit-border 12s linear infinite;
}
@keyframes fx-circuit-border {to{background-position:220% 0}}

/* 2. Hero: живая схема передачи сигналов и мягкий сканирующий луч. */
.hero-visual,.inner-hero-photo {isolation:isolate;overflow:hidden}
.hero-visual .hero-photo,.inner-hero-photo > img {position:relative;z-index:0;transform:scale(1.045) translate3d(var(--fx-photo-x,0px),var(--fx-photo-y,0px),0);will-change:auto;transition:transform .35s ease-out}
.hero-visual .hero-photo {position:absolute}
.hero-visual .hero-mask,.inner-hero-photo::after {z-index:1}
.fx-network {display:block;position:absolute;inset:0;z-index:2;width:100%;height:100%;pointer-events:none;opacity:.78;mix-blend-mode:screen;contain:strict}
.fx-scanline {position:absolute;z-index:3;pointer-events:none;top:-55%;left:0;width:100%;height:45%;background:linear-gradient(180deg,transparent 0%,rgba(95,169,218,.025) 65%,rgba(255,202,99,.13) 99%,rgba(255,217,138,.3) 100%);opacity:.7;transform:translateY(0);animation:fx-scanner 11s ease-in-out infinite}
@keyframes fx-scanner {0%,14%{transform:translateY(0);opacity:0}19%{opacity:.68}63%{opacity:.68}77%,100%{transform:translateY(380%);opacity:0}}
.hero::after {box-shadow:0 0 26px rgba(244,183,78,.55),0 0 4px #f8d484}
.hero-copy {z-index:5}
.hero-copy .eyebrow {text-shadow:0 0 25px rgba(238,179,78,.16)}
.fx-ready .hero-copy h1 {animation:fx-heading-arrive .9s cubic-bezier(.16,1,.3,1) both}
.fx-ready .hero-copy > p {animation:fx-heading-arrive 1.1s .12s cubic-bezier(.16,1,.3,1) both}
.fx-ready .hero-actions {animation:fx-heading-arrive 1.1s .24s cubic-bezier(.16,1,.3,1) both}
@keyframes fx-heading-arrive {from{opacity:0;transform:translateY(25px);filter:blur(5px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}

/* Ненавязчивая декоративная IT-схема вместо вымышленных системных метрик. */
.fx-tech-orbit {--fx-size:252px;position:absolute;z-index:4;width:var(--fx-size);height:var(--fx-size);right:7%;top:18%;pointer-events:none;opacity:.83;filter:drop-shadow(0 0 22px rgba(255,194,88,.22));animation:fx-orbit-float 8s ease-in-out infinite}
.fx-tech-orbit::before {content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,rgba(14,63,92,.44) 0%,rgba(5,20,36,.16) 44%,transparent 73%)}
.fx-orbit-ring {position:absolute;inset:13%;border:1px solid rgba(234,187,102,.48);border-radius:50%;box-shadow:inset 0 0 12px rgba(247,182,67,.14),0 0 16px rgba(242,185,90,.13)}
.fx-orbit-ring-a {border-style:dashed;animation:fx-orbit-spin 29s linear infinite}
.fx-orbit-ring-b {inset:2%;border-color:rgba(87,162,208,.38);border-top-color:rgba(252,210,126,.88);border-bottom-color:rgba(252,210,126,.78);animation:fx-orbit-spin 40s linear infinite reverse}
.fx-orbit-center {position:absolute;inset:33%;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid rgba(255,213,133,.83);border-radius:19px;background:linear-gradient(150deg,rgba(17,57,84,.94),rgba(4,18,30,.95));box-shadow:0 0 23px rgba(238,172,70,.4),inset 0 0 20px rgba(230,180,89,.12);transform:rotate(45deg)}
.fx-orbit-center span,.fx-orbit-center small {transform:rotate(-45deg);line-height:1}
.fx-orbit-center span {font-size:26px;font-weight:900;letter-spacing:.08em;color:#ffe6a5;text-shadow:0 0 15px rgba(255,204,109,.5)}
.fx-orbit-center small {font-size:6px;letter-spacing:.19em;color:#c4dfeb;margin-top:8px}
.fx-orbit-node {position:absolute;display:grid;place-items:center;height:36px;min-width:50px;border:1px solid rgba(255,204,109,.7);border-radius:8px;background:rgba(5,21,35,.94);box-shadow:0 0 19px rgba(239,183,88,.24);font:800 11px/1 Inter,'Segoe UI',Arial,sans-serif;letter-spacing:.1em;color:#ffdea0}
.fx-orbit-node::before {content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:#ffd581;box-shadow:0 0 9px 3px rgba(255,195,90,.5);right:4px;top:4px;animation:fx-pulse 2.8s ease-in-out infinite}
.fx-orbit-node-a {top:4%;left:-6%}.fx-orbit-node-b{top:22%;right:-10%}.fx-orbit-node-c{bottom:2%;left:14%}
@keyframes fx-orbit-spin {to{transform:rotate(360deg)}}
@keyframes fx-orbit-float {50%{transform:translateY(-13px)}}
@keyframes fx-pulse {50%{opacity:.34;box-shadow:0 0 4px rgba(255,195,90,.23)}}

/* 3. Кнопки — отражение света, а не нескончаемые мигания. */
.fx-ready .btn {position:relative;isolation:isolate;overflow:hidden}
.fx-ready .btn::before {content:"";position:absolute;z-index:0;inset:0;width:45%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.40),transparent);transform:skewX(-24deg) translateX(-400%);opacity:0;pointer-events:none}
.fx-ready .btn:hover::before,.fx-ready .btn:focus-visible::before {animation:fx-button-glint .78s ease both}
.fx-ready .btn > * {position:relative;z-index:1}
@keyframes fx-button-glint {0%{opacity:0;transform:skewX(-24deg) translateX(-400%)}18%{opacity:1}100%{opacity:0;transform:skewX(-24deg) translateX(620%)}}
.fx-ready .btn-gold:hover {box-shadow:0 9px 32px rgba(238,179,78,.53),0 0 33px rgba(248,205,109,.2),inset 0 1px 3px rgba(255,255,255,.75)}

/* 4. Карточки — 3D + световой след и реакция на мышь (desktop only). */
.fx-card {position:relative;isolation:isolate}
.fx-ready .fx-card::before {content:"";position:absolute;z-index:3;top:-20%;left:-72%;height:150%;width:34%;background:linear-gradient(90deg,transparent,rgba(253,216,145,.15),transparent);transform:skewX(-22deg);pointer-events:none;opacity:0}
.fx-ready .fx-card:hover::before {animation:fx-card-shine .95s ease both}
@keyframes fx-card-shine {0%{left:-72%;opacity:0}20%{opacity:1}100%{left:150%;opacity:0}}
.fx-ready .news-card:hover,.fx-ready .mini-articles article:hover {transform:translateY(-5px);box-shadow:0 14px 42px rgba(0,0,0,.35),0 0 24px rgba(235,174,81,.12)}
.fx-ready .news-card,.fx-ready .mini-articles article {transition:transform .27s ease,box-shadow .27s ease,border-color .27s ease}
.fx-ready .news-image img,.fx-ready .mini-articles article img {transition:transform .65s ease,filter .65s ease}
.fx-ready .news-card:hover .news-image img,.fx-ready .mini-articles article:hover img {transform:scale(1.055);filter:saturate(1.13)}
.fx-ready .service-card .service-art-icon {transition:transform .4s cubic-bezier(.2,1,.3,1),box-shadow .4s}
.fx-ready .service-card:hover .service-art-icon {transform:translateY(-5px) scale(1.07);box-shadow:0 0 18px rgba(255,193,90,.28)}

/* 5. Процесс работы: визуальное соединение этапов. */
.fx-ready .process-block .steps-grid {position:relative;isolation:isolate}
@media(min-width:1021px) {
 .fx-ready .process-block .steps-grid::before {content:"";position:absolute;z-index:-1;left:6%;right:6%;height:2px;top:50%;background:linear-gradient(90deg,transparent,#c98b39 30%,#ffdb89 50%,#c98b39 70%,transparent);background-size:190% 100%;box-shadow:0 0 18px rgba(255,202,99,.4);animation:fx-circuit-border 9s linear infinite}
}
.fx-ready .step-icon {animation:fx-step-breathe 5s ease-in-out infinite}
.fx-ready .step:nth-child(2) .step-icon {animation-delay:-1.1s}
.fx-ready .step:nth-child(3) .step-icon {animation-delay:-2.2s}
.fx-ready .step:nth-child(4) .step-icon {animation-delay:-3.3s}
@keyframes fx-step-breathe {0%,100%{box-shadow:0 0 2px rgba(255,208,122,.12)}50%{box-shadow:0 0 23px rgba(255,208,122,.32)}}

/* 6. FAQ, секции и навигация — лёгкая кинетика в интерфейсе. */
.fx-ready .faq-item[open] .faq-answer {animation:fx-faq-in .26s ease both}
@keyframes fx-faq-in {from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.fx-ready .eyebrow {position:relative}
.fx-ready .main-nav>a::before,.fx-ready .nav-group>a::before {content:"";position:absolute;left:0;right:100%;bottom:8px;height:1px;background:#f6ca74;transition:right .25s ease;box-shadow:0 0 8px rgba(244,187,93,.65)}
.fx-ready .main-nav>a:hover::before,.fx-ready .nav-group>a:hover::before {right:0}
.fx-ready .section-heading h2 em {text-shadow:0 0 38px rgba(236,174,72,.12)}
.fx-ready .reveal {transition-duration:.8s;transition-delay:var(--fx-delay,0ms);transition-timing-function:cubic-bezier(.19,1,.22,1)}

/* 7. Кнопка вверх: удобство на длинных SEO-страницах. */
.fx-top {position:fixed;right:24px;bottom:25px;z-index:80;width:49px;height:49px;display:grid;place-items:center;border:1px solid rgba(255,216,143,.7);border-radius:12px;color:#ffdf9c;background:rgba(8,28,44,.96);box-shadow:0 9px 28px #0008,0 0 15px rgba(241,185,83,.13);font-size:24px;font-weight:800;opacity:0;visibility:hidden;transform:translateY(15px);pointer-events:none;transition:opacity .25s,transform .25s,visibility .25s,box-shadow .25s}
.fx-top.is-visible {opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.fx-top:hover {box-shadow:0 0 26px rgba(247,200,104,.3);background:#112e47;transform:translateY(-3px)}
.fx-top:focus-visible {outline:3px solid #ffe1a2;outline-offset:3px}

/* В телефоне не запускаем графический canvas, нет 3D и тяжелого фона. */
@media(max-width:1100px){.fx-tech-orbit{right:2%;top:22%;--fx-size:210px;opacity:.56}}
@media(max-width:760px){
 .fx-network,.fx-tech-orbit,.fx-scanline {display:none!important}
 .fx-top{right:17px;bottom:82px;width:43px;height:43px}
 .hero-visual .hero-photo,.inner-hero-photo > img{transform:none!important}
 .fx-ready .section-ornament::after {animation-duration:18s}
 .fx-ready .services-block,.fx-ready .process-block,.fx-ready .trust-block,.fx-ready .news-block,.fx-ready .faq-section,.fx-ready .services-detail {background-size:auto,70px 70px,70px 70px}
}
@media(hover:hover) and (pointer:fine) {
 .fx-ready .service-card.fx-tilt,.fx-ready .detail-card.fx-tilt {transform:perspective(1100px) rotateX(var(--fx-tilt-x,0deg)) rotateY(var(--fx-tilt-y,0deg)) translateY(var(--fx-lift,0px));will-change:transform}
 .fx-ready .service-card.fx-tilt:hover,.fx-ready .detail-card.fx-tilt:hover {--fx-lift:-5px}
}
@media(prefers-reduced-motion:reduce) {
 .fx-ready *, .fx-ready *::before,.fx-ready *::after {animation:none!important;transition-duration:0.01ms!important}
 .fx-network,.fx-scanline,.fx-tech-orbit {display:none!important}
 .fx-ready .reveal{transition-delay:0ms!important}
 .hero-visual .hero-photo,.inner-hero-photo > img {transform:none!important}
 .fx-top {transition:none}
}

/* V32: mobile performance profile. CSS takes effect before deferred scripts.
   Hoverless touch devices and narrow screens are static by default.
   The homepage toggle may explicitly opt in via fx-mobile-effects-on. */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  html:not(.fx-mobile-effects-on) body.site *,
  html:not(.fx-mobile-effects-on) body.site *::before,
  html:not(.fx-mobile-effects-on) body.site *::after {
    animation: none !important;
  }
  html:not(.fx-mobile-effects-on) body.site .site-header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  html:not(.fx-mobile-effects-on) body.site .fx-network,
  html:not(.fx-mobile-effects-on) body.site .fx-scanline,
  html:not(.fx-mobile-effects-on) body.site .fx-tech-orbit,
  html:not(.fx-mobile-effects-on) body.site .hero-signals {
    display: none !important;
  }
  html:not(.fx-mobile-effects-on) body.site .hero-visual .hero-photo,
  html:not(.fx-mobile-effects-on) body.site .inner-hero-photo > img {
    transform: none !important;
    transition: none !important;
  }
  html:not(.fx-mobile-effects-on) body.site .home .hero-photo {
    filter: none !important;
  }
  html:not(.fx-mobile-effects-on) body.site .gold-wave {
    filter: none !important;
  }
  html:not(.fx-mobile-effects-on) body.site .reveal,
  html:not(.fx-mobile-effects-on) body.site .hero-copy h1,
  html:not(.fx-mobile-effects-on) body.site .hero-copy > p,
  html:not(.fx-mobile-effects-on) body.site .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  html:not(.fx-mobile-effects-on) body.site .fx-card::before,
  html:not(.fx-mobile-effects-on) body.site .btn::before {
    display: none !important;
  }
  html:not(.fx-mobile-effects-on) body.site .progress {
    display: none !important;
  }
}
